/* ============================================================
   Rastenfeldhof - Modern Design System
   ============================================================ */

/* Fonts werden via head_assets.html lokal geladen (DSGVO-konform, keine Google-Anfrage) */

:root {
    /* Modernes Design-System (2026) */
    --brand: #16a34a;
    --brand-dark: #15803d;
    --brand-light: #dcfce7;
    --bg: #fafaf9;
    --surface: #ffffff;
    --ink: #1f2937;
    --ink-muted: #6b7280;
    --border: #e5e7eb;
    --accent: #f59e0b;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

    /* Legacy-Aliase fuer Rueckwaertskompatibilitaet */
    --primary: var(--brand);
    --primary-dark: var(--brand-dark);
    --primary-light: var(--brand-light);
    --warm: #8b6f47;
    --warm-light: #f5efe6;
    --bg-warm: var(--bg);
    --bg-section: #f5f2ed;
    --text-dark: var(--ink);
    --text-muted: var(--ink-muted);
    --shadow-md: var(--shadow);
    --radius-md: var(--radius);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, "Segoe UI", Roboto, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .display-5 {
    letter-spacing: -0.015em;
}

h1, h2, h3, .display-4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Modern Navbar */
.navbar {
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.navbar.bg-white {
    background-color: rgba(255,255,255,0.95) !important;
}

.navbar .nav-link {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover {
    color: var(--primary) !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 60%;
}

/* Modern Cards */
.card {
    border-radius: var(--radius-md) !important;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card.no-hover:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Hero Section - Photo Background (Speisebild + warmer Verlauf) */
.hero-section {
    background-image:
        linear-gradient(rgba(15, 25, 15, 0.55), rgba(15, 25, 15, 0.78)),
        url('../img/menu-fisch-kartoffeln-gemuese.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: none;
}

.hero-section::after {
    content: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Alternative hero backgrounds */
.hero-garden {
    background-image: linear-gradient(rgba(35, 45, 35, 0.6), rgba(35, 45, 35, 0.7)),
                      url('../img/gewaechshaus-kraut.jpg') !important;
}

.hero-harvest {
    background-image: linear-gradient(rgba(35, 45, 35, 0.6), rgba(35, 45, 35, 0.7)),
                      url('../img/ernte-brokkoli.jpg') !important;
}

/* Modern Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    padding: 0.6rem 1.5rem;
}

/* btn-success - definiert in 2026-Refresh-Block weiter unten (var(--brand)) */

.btn-outline-success {
    border-width: 2px;
}

.btn-outline-success:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
}

/* Feature Cards */
.feature-card {
    border: none;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white !important;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

/* Step Numbers */
.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    margin-bottom: 1rem;
}

/* Section Styling */
.section-light {
    background-color: var(--bg-section);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 3px;
}

/* CTA Section */
.cta-section {
    background-image: linear-gradient(rgba(35, 45, 35, 0.75), rgba(35, 45, 35, 0.8)),
                      url('../img/gewaechshaus-kraut.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: none;
}

/* Kitchen/Restaurant Link Card */
.kitchen-card {
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.kitchen-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Info Badge */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Modern Footer - strukturiert mit Spalten */
.site-footer {
    background: #1f2937;
    color: rgba(255,255,255,0.75);
}

.site-footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

.site-footer .footer-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.site-footer ul li {
    margin-bottom: 0.4rem;
}

.site-footer ul li a i {
    margin-right: 4px;
    opacity: 0.8;
}

.site-footer .footer-logo {
    border-radius: var(--radius-sm);
    background: white;
    padding: 4px;
}

.site-footer .footer-divider {
    border-color: rgba(255,255,255,0.15);
}

/* Legacy-fallback */
footer.site-footer small {
    color: rgba(255,255,255,0.6);
}

/* Scroll Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo styles */
.hero-logo {
    max-height: 110px;
    border-radius: var(--radius-lg);
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.4));
}

.hero-subtitle {
    font-size: 1.3rem;
}

/* Helper: dunklere Brand-Farbe fuer bessere Lesbarkeit auf hellen Buttons */
.text-brand-dark {
    color: var(--brand-dark) !important;
}

/* Map-iframe Helper */
.map-iframe {
    border: 0;
    display: block;
    width: 100%;
}

/* Trust-Bar im Hero - kleine Vertrauens-Pills */
.hero-trust {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
    margin-top: 18px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-trust i {
    color: #86efac;
}

/* Farm Photos */
.farm-photo {
    aspect-ratio: 4 / 3;
    height: auto;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.farm-photo:hover {
    transform: scale(1.05);
}

/* ============================================================
   FAQ Page
   ============================================================ */

.faq-item {
    border: none !important;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    background: white;
    color: var(--text-dark);
    border: none;
    padding: 1.1rem 1.5rem;
}

.faq-item .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}

.faq-item .accordion-button:focus {
    box-shadow: none;
}

.faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235a7a5a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-item .accordion-body {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* FAQ Highlight Card (Gerichttypen) */
.faq-highlight-card {
    padding: 1rem;
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

/* FAQ Price Card */
.faq-price-card {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-light);
    transition: var(--transition);
}

.faq-price-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

/* Admin Navbar */
.admin-navbar {
    background-color: var(--primary-dark);
}

/* ============================================================
   Wochenplan - Public Menu Design
   ============================================================ */

.wochenplan-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Tag-Zeile */
.menu-day-row {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.menu-day-row:hover {
    box-shadow: var(--shadow-md);
}

.menu-day-row.prev-week {
    opacity: 0.7;
}

/* Tag-Label (linke Spalte) */
.menu-day-label {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    min-height: 100%;
    font-size: 0.95rem;
}

.menu-day-label i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.menu-day-label-muted {
    background: linear-gradient(135deg, #8a9a8a 0%, #a0b0a0 100%);
}

/* Einzelnes Gericht-Karte */
.menu-dish-card {
    border-radius: var(--radius-sm);
    background: var(--bg-warm);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-dish-card.has-dish {
    border-left-color: var(--primary);
}

.menu-dish-card:hover {
    background: var(--primary-light);
}

.menu-dish-card.menu-dish-muted {
    background: var(--bg-section);
    border-left-color: #ccc;
}

/* Typ-Punkt (farbiger Punkt vor Gerichttyp) */
.menu-type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.menu-type-dot.menu-type-vegetarisch { background: #27ae60; }
.menu-type-dot.menu-type-fleisch { background: #c0392b; }
.menu-type-dot.menu-type-fisch { background: #2980b9; }

/* Typ-Label */
.menu-type-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

/* Wochengericht Icon */
.weekly-dish-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.card:hover .weekly-dish-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Allergen Legende Item */
.allergen-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--bg-section);
    transition: var(--transition);
}

.allergen-legend-item:hover {
    background: var(--primary-light);
}

/* Mobile: Tag-Label wird horizontal */
@media (max-width: 767px) {
    .menu-day-label {
        min-height: 0;
        padding: 0.5rem !important;
    }

    .menu-day-label .text-center {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .menu-day-label i {
        display: none !important;
    }

    .menu-dish-card {
        padding: 0.5rem !important;
    }

    .menu-type-dot {
        display: none;
    }
}


/* ============================================================
   Existing Application Styles (updated with design system)
   ============================================================ */

/* Login Page */
.login-page {
    background-image: linear-gradient(rgba(35, 45, 35, 0.6), rgba(45, 55, 40, 0.7)),
                      url('../img/bergpanorama-bluete.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.login-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mode Selection Cards */
.mode-card {
    border: 2px solid #dee2e6;
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-height: 300px;
}

.mode-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Menu Table */
.menu-table {
    font-size: 0.9rem;
}

.menu-table th.gericht-col {
    width: 140px;
    white-space: nowrap;
}

.menu-table th.day-col {
    min-width: 140px;
}

.menu-dish {
    padding: 4px;
}

/* ============================================================
   Allergen Badges - Farbkodierung pro Code
   ============================================================ */

.allergen-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: help;
}

.allergen-A { background-color: #d4a574; color: #fff; }  /* Gluten - Weizen */
.allergen-B { background-color: #e74c3c; color: #fff; }  /* Krebstiere - Rot */
.allergen-C { background-color: #f39c12; color: #fff; }  /* Eier - Gelb/Orange */
.allergen-D { background-color: #3498db; color: #fff; }  /* Fisch - Blau */
.allergen-E { background-color: #c0853e; color: #fff; }  /* Erdnuesse - Braun */
.allergen-F { background-color: #85c040; color: #fff; }  /* Soja - Gruen */
.allergen-G { background-color: #ecf0f1; color: #333; }  /* Milch - Weiss */
.allergen-H { background-color: #8b4513; color: #fff; }  /* Schalenfruechte - Dunkelbraun */
.allergen-I { background-color: #27ae60; color: #fff; }  /* Sellerie - Gruen */
.allergen-J { background-color: #d4ac0d; color: #fff; }  /* Senf - Senfgelb */
.allergen-K { background-color: #f5e6cc; color: #333; }  /* Sesam - Beige */
.allergen-L { background-color: #9b59b6; color: #fff; }  /* Sulfite - Lila */
.allergen-M { background-color: #1abc9c; color: #fff; }  /* Lupinen - Tuerkis */
.allergen-N { background-color: #34495e; color: #fff; }  /* Weichtiere - Dunkelgrau */

/* Allergen Conflict Highlight */
.allergen-badge[data-conflict="true"] {
    animation: blink 1s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.8);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Inline Allergen Warning */
.allergen-warning-inline {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #856404;
}

.allergen-warning-inline i {
    color: #dc3545;
}

/* Allergen Checkboxes */
.allergen-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-sm);
}

.allergen-checkboxes .form-check-inline {
    margin-bottom: 4px;
}

/* Card enhancements */
.card-header {
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

/* Alert small variant */
.alert-sm {
    font-size: 0.75rem;
}

/* Order form dish select */
.dish-select {
    font-size: 0.85rem;
}

/* Order table (Bestellformular) */
.order-table {
    font-size: 0.82rem;
}

.order-table .dish-quantity {
    width: 52px;
    padding: 2px 4px;
    font-size: 0.85rem;
    display: inline-block;
}

.order-table .order-cell {
    min-width: 120px;
}

.order-table .order-cell small {
    font-size: 0.72rem;
    word-break: break-word;
}

.day-order-col {
    min-width: 130px;
    width: 15%;
}

.order-table .gericht-col {
    width: 110px;
    white-space: nowrap;
}

.bg-success-subtle {
    background-color: var(--primary-light) !important;
}

/* ============================================================
   Mobile-Optimierung / Responsive
   ============================================================ */

/* Tablets */
@media (max-width: 992px) {
    .order-table {
        font-size: 0.78rem;
    }

    .order-table .dish-quantity {
        width: 46px;
    }

    .day-order-col {
        min-width: 110px;
    }

    .mode-card {
        min-height: 200px;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .menu-table {
        font-size: 0.78rem;
    }

    .menu-table th.day-col {
        min-width: 90px;
    }

    .menu-table th.gericht-col {
        width: 100px;
    }

    .person-order-card .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }

    .order-table {
        font-size: 0.75rem;
    }

    .order-table .dish-quantity {
        width: 42px;
        font-size: 0.8rem;
    }

    .order-table .order-cell {
        min-width: 90px;
    }

    .order-table .gericht-col {
        width: 80px;
        font-size: 0.72rem;
    }

    .day-order-col {
        min-width: 95px;
    }

    /* Dashboard cards: smaller display numbers */
    .display-5 {
        font-size: 1.8rem;
    }

    /* Button sizing */
    .btn-lg {
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    /* Compact cards */
    .card-body {
        padding: 0.75rem;
    }

    .card-header {
        padding: 0.6rem 0.75rem;
    }

    /* Footer */
    footer {
        margin-top: 2rem !important;
        padding: 1rem 0 !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .badge.fs-6 {
        font-size: 0.75rem !important;
    }

    .order-table .order-cell small {
        font-size: 0.65rem;
    }

    .allergen-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .navbar-logo {
        max-height: 22px;
    }
}

/* Touch-friendly: larger tap targets on mobile */
@media (pointer: coarse) {
    .order-table .dish-quantity {
        min-height: 38px;
    }

    .form-check-input {
        width: 1.2em;
        height: 1.2em;
    }

    .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }
}

/* Horizontal scroll for wide tables */
.table-responsive {
    overflow-x: auto;
}

/* Navbar brand */
.navbar-brand i {
    font-size: 1.3rem;
}

/* Table styling */
.table-hover tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

/* Success theme emphasis */
.text-success {
    color: var(--primary) !important;
}

/* Wochengerichte table columns */
.wochen-gericht-col {
    width: 200px;
}

.wochen-allergene-col {
    width: 200px;
}

/* Company Logo */
.company-logo-preview {
    max-height: 80px;
    max-width: 200px;
}

.navbar-logo {
    max-height: 36px;
    border-radius: var(--radius-sm);
    background: white;
    padding: 2px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Login Page Logo */
.login-logo {
    max-height: 140px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Impressum Logo */
.impressum-logo {
    max-height: 100px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* ============================================================
   2026 Refresh - Modern Overrides
   ============================================================ */

/* Bootstrap Success / Brand-Farben ueberschreiben */
.btn-success,
.btn-success:focus {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}

.btn-success:hover,
.btn-success:active,
.btn-success:focus-visible {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
}

.btn-outline-success {
    color: var(--brand);
    border-color: var(--brand);
    border-width: 2px;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.bg-success {
    background-color: var(--brand) !important;
}

.bg-success-subtle {
    background-color: var(--brand-light) !important;
}

.text-success {
    color: var(--brand) !important;
}

.border-success {
    border-color: var(--brand) !important;
}

.table-success {
    --bs-table-bg: var(--brand-light);
    --bs-table-color: var(--ink);
}

/* Cards: weiche Schatten, keine Border */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.card.no-hover,
.card.no-hover:hover {
    box-shadow: var(--shadow-sm);
    transform: none;
}

/* Navbar: backdrop-blur, weicher Schatten */
.navbar {
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.navbar.bg-white,
.navbar.navbar-light {
    background: rgba(255, 255, 255, 0.92) !important;
}

/* Tap-Targets: min 44px */
.btn {
    min-height: 44px;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
}

.btn-sm {
    min-height: 36px;
    padding: 0.4rem 0.85rem;
}

.btn-lg {
    min-height: 52px;
    padding: 0.85rem 1.75rem;
}

/* Form Controls: moderne Fokus-Ringe */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}

/* Mobile Mengen-Inputs: groesser + iOS-Zoom-Schutz */
.dish-quantity,
.order-table .dish-quantity {
    min-width: 56px;
    font-size: 16px;
    min-height: 44px;
}

@media (max-width: 768px) {
    .order-table .dish-quantity {
        width: 56px;
        min-width: 56px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .order-table .dish-quantity {
        width: 56px;
        min-width: 56px;
        font-size: 16px;
    }
}

/* Allergen-Badge groesser & touch-fähig (min 32px hoch fuer Mobile) */
.allergen-badge {
    padding: 6px 12px;
    font-size: 0.82rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 480px) {
    .allergen-badge {
        font-size: 0.78rem;
        padding: 6px 10px;
        min-height: 32px;
    }
}

/* Reduced motion: Blink-Animation respektieren */
@media (prefers-reduced-motion: reduce) {
    .blink,
    .allergen-badge[data-conflict="true"] {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero-Section (Landing) - sanfter Verlauf */
.hero {
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 60%);
    padding: 80px 0 60px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* Error pages */
.error-card {
    max-width: 500px;
    width: 100%;
}

.error-icon {
    font-size: 4rem;
    line-height: 1;
}

/* ============================================================
   Progress-Stepper (Bestellfluss)
   ============================================================ */
.order-steps {
    --step-size: 32px;
    align-items: center;
}

.order-steps .step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0.5rem;
}

.order-steps .step + .step::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--border);
    margin-right: 0.25rem;
    border-radius: 2px;
}

.order-steps .step.done + .step::before,
.order-steps .step.done + .step.done::before {
    background: var(--brand);
}

.order-steps .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--step-size);
    height: var(--step-size);
    border-radius: 50%;
    background: var(--bg-section);
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--border);
    transition: var(--transition);
    flex-shrink: 0;
}

.order-steps .step.active {
    color: var(--brand-dark);
    font-weight: 600;
}

.order-steps .step.active .step-num {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-light);
}

.order-steps .step.done {
    color: var(--brand);
}

.order-steps .step.done .step-num {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: var(--brand);
}

@media (max-width: 480px) {
    .order-steps {
        gap: 0.5rem !important;
    }
    .order-steps .step {
        font-size: 0.8rem;
    }
    .order-steps .step + .step::before {
        width: 16px;
    }
    .order-steps .step-num {
        --step-size: 28px;
    }
}

/* Print-Styles fuer Bestellbestaetigung */
@media print {
    .navbar,
    footer,
    .footer,
    .no-print,
    .btn,
    form button {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* ============================================================
   Hero-Optimierungen (Mobile + Desktop)
   - background-attachment scroll auf Mobile (iOS-fix)
   - Logo + H1 + CTA besser stack-fähig
   ============================================================ */
.hero-section {
    padding: 5rem 0 4rem;
}
@media (max-width: 991px) {
    .hero-section {
        background-attachment: scroll !important;
        padding: 3.5rem 0 2.5rem;
    }
}
@media (max-width: 575px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }
    .hero-section .display-3 {
        font-size: 1.85rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-logo {
        max-height: 80px;
    }
    .hero-section .btn-lg {
        width: 100%;
    }
    .hero-trust {
        font-size: 0.82rem;
        gap: 6px 12px;
    }
}

/* "So funktioniert's" - polierte Step-Cards */
.step-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto;
}
