:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --bg: #f4f7f6;
    --success: #27ae60;
    --error: #e74c3c;
    --info: #3498db;
    --warning: #f1c40f;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* --- MENÜ --- */
#menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.food-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.food-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.food-info {
    padding: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.price {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2em;
}

/* --- WARENKORB --- */
.cart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* --- FORMULAR & BUTTONS --- */
.order-form {
    margin-top: 20px;
    border-top: 2px solid var(--primary);
    padding-top: 15px;
}

input[type="email"], 
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background 0.3s, transform 0.1s;
}

button:hover:not(:disabled) {
    filter: brightness(1.1);
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-sm {
    width: auto;
    background: var(--error);
    padding: 2px 8px;
    margin-left: 10px;
}

/* --- OTP / VERIFIZIERUNG --- */
.otp-card {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--info);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
    animation: fadeIn 0.4s ease-out;
}

.otp-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.otp-icon { font-size: 2em; }

#otp-code {
    letter-spacing: 4px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 2px solid #ddd;
}

#otp-code:focus {
    border-color: var(--info);
    outline: none;
}

.btn-confirm {
    background: var(--success);
    margin-top: 10px;
}

.btn-cancel {
    background: transparent;
    color: #7f8c8d;
    text-decoration: underline;
    font-size: 0.85em;
    margin-top: 10px;
    padding: 5px;
}

/* --- TOAST BENACHRICHTIGUNGEN --- */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.5s ease forwards;
}

.toast.info { background-color: var(--success); }
.toast.warning { background-color: var(--warning); color: #333; }
.toast.error { background-color: var(--error); }

/* --- FOOTER --- */
.site-footer {
    margin-top: 50px;
    padding: 20px;
    background-color: var(--primary);
    color: white;
    font-size: 0.9em;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- ANIMATIONEN & RESPONSIVE --- */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.fade-out { opacity: 0; transition: opacity 0.5s ease; }

/* Modal Hintergrund */
.modal {
    display: none; 
    position: fixed;
    z-index: 10001; /* Über den Toasts */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

/* Modal Box */
.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 10;
}

#modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-body { padding: 20px; }

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* Abstand zwischen Preis und Button */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#modal-price {
    flex: 1;
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent);
    /* Falls ein Rahmen oder Hintergrund gewünscht ist: */
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

#modal-add-btn {
    flex: 1;
    padding: 15px; /* Etwas mehr Höhe für bessere Klickbarkeit */
    font-size: 1.1em;
}

.modal-allergens { color: #888; font-style: italic; }

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    #menu { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-links a { margin: 0 10px; }
}