/* =========================================
   0. LOKALE SCHRIFTARTEN (DSGVO-konform)
   ========================================= */

/* DM Sans (Normaler Text) */
@font-face {
    font-family: 'DM Sans';
    src: url('assets/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('assets/fonts/dm-sans-v17-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display (Überschriften & Logo) */
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display-v40-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   1. VARIABLEN & GRUNDSETUP
   ========================================= */
/* =========================================
   1. VARIABLEN & GRUNDSETUP
   ========================================= */
:root {
    /* Warme, einladende Hintergrundfarben */
    --bg-warm: #FAF8F5; 
    --bg-warm-light: #FDFDFB;
    --bg-white: #FFFFFF;
    
    /* Textfarben */
    --text-dark: #2A2A28;
    --text-muted: #6B6B66;
    
    /* Die "Blaue Glocke" Farben (Edles Dunkelblau) */
    --blue-dark: #1E2D4A; 
    --blue-accent: #2C4B8C;
    --blue-glass-light: rgba(30, 45, 74, 0.08);

    /* Typografie (DSGVO-konform und lokal geladen) */
    --font-sans: 'DM Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Design-Tokens (Rundungen, Schatten, Animationen) */
    --radius-lg: 20px;
    --radius-sm: 10px;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 36px rgba(30, 45, 74, 0.1);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--font-sans); 
    background: var(--bg-warm); 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

h1, h2, h3, .logo { 
    font-family: var(--font-serif); 
    color: var(--blue-dark); 
    font-weight: 700; 
}

/* Accessibility Focus */
:focus-visible {
    outline: 2px solid var(--blue-accent);
    outline-offset: 4px;
}

/* =========================================
   2. BUTTONS
   ========================================= */
.btn {
    display: inline-flex; 
    justify-content: center; 
    align-items: center;
    padding: 14px 32px; 
    border-radius: 50px; 
    font-weight: 500; 
    text-decoration: none; 
    transition: var(--transition); 
    cursor: pointer;
    border: 2px solid transparent; 
    font-size: 1rem;
}

.btn-sm { 
    padding: 10px 24px; 
    font-size: 0.95rem; 
}

.btn-primary { 
    background: var(--blue-dark); 
    color: var(--bg-white); 
}

.btn-primary:hover { 
    background: var(--blue-accent); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-hover); 
}

.btn-outline { 
    border-color: var(--blue-dark); 
    color: var(--blue-dark); 
    background: transparent; 
}

.btn-outline:hover { 
    background: var(--blue-dark); 
    color: var(--bg-white); 
    transform: translateY(-2px); 
}

.w-100 { 
    width: 100%; 
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    padding: 20px 0; 
    transition: var(--transition);
}

header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Container erzwingt Logo und Burger-Menü auf eine Zeile */
.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: nowrap; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 8px;
    font-size: 1.6rem; 
    text-decoration: none; 
    color: var(--bg-white); 
    transition: var(--transition); 
    flex-shrink: 0;
}

header.scrolled .logo { 
    color: var(--blue-dark); 
}

.desktop-nav { 
    display: none; 
    align-items: center; 
    gap: 32px; 
}

.desktop-nav a:not(.btn) { 
    color: var(--bg-white); 
    text-decoration: none; 
    font-weight: 500; 
    transition: var(--transition); 
}

header.scrolled .desktop-nav a:not(.btn) { 
    color: var(--blue-dark); 
}

.desktop-nav a:not(.btn):hover { 
    color: var(--blue-accent); 
}

/* Burger Menü Anpassungen */
.mobile-menu-btn { 
    display: block; 
    background: none; 
    border: none; 
    color: var(--bg-white); 
    cursor: pointer; 
    z-index: 1001; 
    transition: var(--transition);
    flex-shrink: 0; 
    margin-left: auto; /* Zwingt den Button ganz nach rechts */
    padding: 8px; /* Etwas größere Klickfläche */
}

header.scrolled .mobile-menu-btn { 
    color: var(--blue-dark); 
}

/* Das "X" im offenen Zustand muss zwingend blau sein */
.mobile-menu-btn.is-open {
    color: var(--blue-dark) !important;
}

.mobile-nav {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    height: 100vh;
    background: var(--bg-warm); 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    gap: 30px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 999;
}

.mobile-nav.active { 
    right: 0; 
}

.mobile-nav a.mobile-link { 
    font-family: var(--font-serif); 
    font-size: 2rem; 
    color: var(--blue-dark); 
    text-decoration: none; 
    transition: var(--transition);
}

.mobile-nav a.mobile-link:hover {
    color: var(--blue-accent);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
#hero {
    position: relative; 
    height: 100vh; 
    min-height: 500px;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.hero-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    z-index: -2;
}

.hero-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(30, 45, 74, 0.65); /* Sanftes blaues Overlay für Kontrast */
    z-index: -1;
}

.hero-card.centered {
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    color: var(--bg-white); 
    padding-top: 40px;
}

.hero-card h1 { 
    color: var(--bg-white); 
    /* clamp(Minimum auf Handy, Wachstumsrate, Maximum auf großem PC) */
    font-size: clamp(3.2rem, 8vw, 5.5rem); 
    line-height: 1.15; 
    margin-bottom: 24px; 
}

.hero-card p { 
    font-size: 1.15rem; 
    opacity: 0.95; 
    margin-bottom: 40px; 
    font-weight: 300; 
    max-width: 500px; 
}

/* =========================================
   5. SEKTIONEN ALLGEMEIN
   ========================================= */
.section-padding { padding: 90px 0; }
.bg-light { background: #EFECE6; }
.bg-warm-light { background: var(--bg-warm-light); }

.section-header { 
    text-align: center; 
    margin-bottom: 50px; 
}

.section-header h2 { 
    font-size: 2.5rem; 
    margin-bottom: 12px; 
}

.section-header p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
}

/* =========================================
   6. SPEISEKARTE (mit Sticky Tabs)
   ========================================= */
.menu-tabs-wrapper {
    position: sticky; 
    top: 85px; /* Optimierter Abstand zum Header */
    z-index: 10;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(8px);
    padding: 25px 0 15px 0; /* Mehr Luft nach oben */
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.menu-tabs { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.tab-btn {
    background: var(--bg-white); 
    border: 1px solid transparent; 
    padding: 10px 22px;
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 500; 
    color: var(--text-muted);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    transition: var(--transition);
}

.tab-btn:hover { 
    transform: translateY(-2px); 
    border-color: var(--blue-accent); 
    color: var(--blue-dark); 
}

.tab-btn.active { 
    background: var(--blue-dark); 
    color: var(--bg-white); 
    box-shadow: var(--shadow-hover); 
}

.menu-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 24px; 
}

.menu-item { 
    background: var(--bg-white); 
    padding: 28px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-soft); 
    transition: var(--transition); 
    border-top: 4px solid transparent; 
}



.menu-item-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-bottom: 10px; 
    border-bottom: 1px dashed #E0DCD3; 
    padding-bottom: 10px; 
}

.menu-item h4 { 
    font-size: 1.25rem; 
}

/* Preis und Akzente zwingend in Blau */
.menu-price { 
    font-weight: 600; 
    color: var(--blue-dark); 
    font-size: 1.1rem; 
}

.menu-item p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.5; 
}

.allergen-info {
    margin-top: 40px; /* Der gewünschte, dezente Abstand */
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05); /* Sehr feine Trennlinie für Professionalität */
    text-align: center;
    max-width: 700px; /* Begrenzt die Textbreite */
    margin-left: auto;
    margin-right: auto;
}

.allergen-info p {
    color: var(--text-muted);
    font-size: 0.85rem; /* Etwas kleiner für den "Kleingedruckt"-Look */
    line-height: 1.6;
}
/* =========================================
   7. GALERIE (Slider Ambiente)
   ========================================= */
.gallery-slider {
    position: relative; 
    max-width: 900px; 
    margin: 0 auto;
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-soft);
}

.gallery-container { 
    display: flex; 
    height: 500px; 
    position: relative; 
    background: var(--blue-dark); 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 0.6s ease-in-out; 
}

.slide.active { 
    opacity: 1; 
    z-index: 1; 
}

.gallery-nav {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 2;
    background: rgba(255,255,255,0.85); 
    border: none; 
    width: 44px; 
    height: 44px;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    color: var(--blue-dark); 
    transition: var(--transition); 
    backdrop-filter: blur(4px);
}

.gallery-nav:hover { 
    background: var(--bg-white); 
    color: var(--blue-accent); 
    transform: translateY(-50%) scale(1.1); 
}

.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }

.gallery-dots { 
    position: absolute; 
    bottom: 20px; 
    left: 0; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    z-index: 2; 
}

.dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.5); 
    cursor: pointer; 
    transition: var(--transition); 
}

.dot.active { 
    background: var(--bg-white); 
    transform: scale(1.2); 
}

/* =========================================
   8. INFO GRID (Zeiten & Kontakt)
   ========================================= */
.info-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 32px; 
}

@media (min-width: 900px) { 
    .info-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 40px; 
    } 
}

.info-card { 
    background: var(--bg-white); 
    padding: 40px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-soft); 
}

.info-card h3 { 
    font-size: 1.8rem; 
    margin-bottom: 24px; 
    color: var(--blue-dark); 
}

.d-flex-col { 
    display: flex; 
    flex-direction: column; 
}

.hours-list { list-style: none; }
.hours-list li {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    padding: 14px 0; 
    border-bottom: 1px solid #EAE7E0; 
    color: var(--text-dark);
}

.hours-list li:last-child { border: none; }
.hours-list .time-block { text-align: right; font-weight: 500; }
.hours-list small { 
    font-size: 0.85em; 
    color: var(--text-muted); 
    font-weight: normal; 
    display: block; 
    margin-top: 4px; 
}

/* Status-Badge in Blau */
.status-badge {
    margin-top: 24px; 
    display: inline-block; 
    padding: 12px 20px;
    background: var(--blue-glass-light); 
    color: var(--blue-accent);
    border-radius: var(--radius-sm); 
    font-size: 0.95rem; 
    font-weight: 600; 
    text-align: center; 
    width: 100%;
    border: 1px solid rgba(44, 75, 140, 0.1);
}

.contact-details { margin-bottom: 24px; }
.contact-details p { margin-bottom: 12px; font-size: 1.1rem; }

.contact-link { 
    color: var(--blue-dark); 
    text-decoration: none; 
    font-weight: 500; 
    transition: var(--transition); 
}

.contact-link:hover { 
    color: var(--blue-accent); 
    text-decoration: underline; 
}

/* Karte */
.map-container { 
    margin-bottom: 24px; 
    border-radius: var(--radius-sm); 
    overflow: hidden; 
    border: 1px solid #EAE7E0; 
}

.contact-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-top: auto; 
}

/* =========================================
   9. SCROLL TO TOP BUTTON
   ========================================= */
.scroll-top-btn {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 900;
    background: var(--blue-dark); 
    color: var(--bg-white); 
    border: none;
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    box-shadow: var(--shadow-soft);
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px); 
    transition: 0.4s ease;
}

.scroll-top-btn.visible { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.scroll-top-btn:hover { 
    background: var(--blue-accent); 
    transform: translateY(-5px); 
}

/* =========================================
   10. FOOTER & ANIMATIONEN
   ========================================= */
footer { 
    background: var(--blue-dark); 
    color: var(--bg-white); 
    padding: 40px 0; 
    text-align: center; 
}

.footer-content { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    align-items: center; 
}

.footer-links { 
    display: flex; 
    gap: 24px; 
}

.footer-links a { 
    color: rgba(255,255,255,0.6); 
    text-decoration: none; 
    font-size: 0.9rem; 
    transition: var(--transition); 
}

.footer-links a:hover { 
    color: var(--bg-white); 
}

/* Scroll Animations */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.delay-1 { 
    transition-delay: 0.2s; 
}

/* =========================================
   11. MEDIA QUERIES (Responsivität)
   ========================================= */
@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
    .desktop-nav { display: flex; }
    .header-content { padding: 0; }
    .contact-actions { flex-direction: row; }
}

@media (max-width: 600px) {
    .gallery-container { height: 350px; }
    .hours-list li { flex-direction: column; gap: 4px; }
    .hours-list .time-block { text-align: left; }
    .section-padding { padding: 60px 0; }
}

/* =========================================
   12. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--blue-dark);
    color: var(--bg-white);
    padding: 16px 0;
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.cookie-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cookie-link {
    color: var(--bg-white);
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-link:hover {
    color: var(--blue-accent);
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* =========================================
   13. LEGAL OVERLAY (Impressum / Datenschutz)
   ========================================= */
/* Die .hidden Klasse sorgt dafür, dass Dinge ausgeblendet werden (auch für das Cookie Banner wichtig!) */
.hidden {
    display: none !important;
}

.legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 45, 74, 0.8); /* Dunkelblaues, leicht durchsichtiges Overlay */
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.legal-card {
    background: var(--bg-warm);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-legal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-white);
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.close-legal:hover {
    background: var(--blue-dark);
    color: var(--bg-white);
}

/* Schriftfarbe im gesamten Legal-Bereich auf das edle Blau setzen */
.legal-content {
    color: var(--blue-dark);
}

/* Überschriften explizit fett machen und Abstände definieren */
.legal-content h2 { 
    margin-bottom: 20px; 
    font-weight: 600; 
}

.legal-content h3 { 
    margin: 20px 0 10px 0; 
    font-size: 1.2rem; 
    font-weight: 600; 
}

/* Normale Absätze und fettgedruckte Wörter innerhalb der Texte */
.legal-content p { 
    margin-bottom: 15px; 
}

.legal-content strong {
    font-weight: 600;
}