/* --- 1. VARIABLEN & BASIS --- */
:root {
    --brand-red: #7f0000;
    --brand-grey: #515150;
    --bg-light: #f9f9f9;
    --text-dark: #1a1a1a;
    --white: #ffffff;
    --header-color: #1a1a1a;
    --menu-h-color: #7f0000; /* NEU: Farbe für Speisekarten-Titel */
}

[data-theme="dark"] {
    --brand-red: #a00000;
    --brand-grey: #b0b0b0;
    --bg-light: #121212;
    --text-dark: #e0e0e0;
    --white: #1e1e1e;
    --header-color: #ffffff;
    --menu-h-color: #ff8888; /* NEU: Hellerer Ton im Dark Mode */
}

* { margin: 0; padding: 0; box-sizing: border-box; transition: background 0.3s, color 0.3s; }

body { font-family: Verdana, Arial, sans-serif; font-size: 16pt; color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; padding-top: 100px; }

/* --- 2. TYPOGRAFIE & LINKS --- */
/* h1, h2 gelten für die ganze Seite, h3 nutzen wir nun variabel */
h1, h2 { font-family: 'Arial Narrow', Arial, Impact, sans-serif; font-weight: 700; text-transform: uppercase; color: var(--header-color); letter-spacing: 0.05em; margin-bottom: 0px; text-align: center; }
h3 { font-family: 'Arial Narrow', Arial, Impact, sans-serif; font-weight: 700; text-transform: uppercase; color: var(--menu-h-color); letter-spacing: 0.05em; margin-bottom: 20px; }
main h1 { text-align: center; margin-bottom: 0px; }

a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }
[data-theme="dark"] a { color: #ffffff; }
[data-theme="dark"] a:hover { color: #cccccc; }

/* --- 3. LAYOUT-KOMPONENTEN --- */
header { background-color: var(--white); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; }
.logo-img { max-height: 60px; width: auto; }
[data-theme="dark"] .logo-img { filter: brightness(0) invert(1); }

nav { display: flex; align-items: center; }
nav a { font-family: 'Arial Narrow', Arial, sans-serif; color: var(--brand-grey); margin-left: 20px; font-weight: 700; text-transform: uppercase; }

.content, .content-vertical { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.content-vertical { display: flex; flex-direction: column; gap: 30px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); padding: 30px; border-bottom: 4px solid var(--brand-red); box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('pics/hero-bg.jpg') center/cover no-repeat; color: white; padding: 150px 20px; text-align: center; }
.hero h1, .hero p { color: white; }

/* --- 4. FORMULARE & BUTTONS --- */
form { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 600px; margin: 20px auto; }
label { font-weight: bold; font-size: 0.9rem; margin-bottom: -10px; color: var(--text-dark); }
input, select, textarea { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; width: 100%; }
.address-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.full-width { grid-column: span 2; }
.btn, button { padding: 15px 30px; background: var(--brand-red); color: white; border: none; cursor: pointer; font-weight: bold; text-transform: uppercase; text-decoration: none; display: inline-block; }
.btn:hover, button:hover { background-color: #5a0000; }

/* --- 5. EXTRAS (FAQ, MENÜ, FOOTER) --- */
.theme-switch { cursor: pointer; font-size: 1.5rem; margin-right: 20px; }
#menu-toggle, .hamburger { display: none; }
@media (max-width: 768px) {
    .hamburger { display: block; cursor: pointer; font-size: 2rem; color: var(--brand-red); }
    [data-theme="dark"] .hamburger { color: #ffffff; }
    nav { display: none; flex-direction: column; position: fixed; top: 90px; left: 0; width: 100%; height: calc(100vh - 90px); background: var(--white); padding: 40px; text-align: center; }
    #menu-toggle:checked + .hamburger + nav { display: flex; }
}

details summary { cursor: pointer; color: var(--brand-red); font-size: 1.25rem; font-weight: 700; margin-top: 15px; }
details[open] summary::after { content: " ▲"; }

footer { text-align: center; padding: 40px; color: var(--brand-grey); font-size: 0.9rem; }
footer a { color: var(--brand-grey); margin: 0 10px; }

.gutschein-img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Erzwingt Farbe für Speisekarten-Titel, wenn das System auf Dark Mode steht */
@media (prefers-color-scheme: dark) {
    .menu-section-title, 
    .menu-category h4 {
        color: #ff8888 !important;
    }
}

/* Speisekarte kompakt & ohne Punkte/Linien */
.speisekarte-liste { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.speisekarte-liste li { 
    padding: 2px 0; 
    margin-bottom: 0px; /* Kleiner Abstand zwischen den Gerichten */
    border-bottom: none; 
}

.speisekarte-liste em { 
    display: block; /* Beschreibungen in eine neue Zeile */
    font-size: 0.85rem; 
    margin-top: -2px; /* Zieht die Beschreibung näher an das Gericht */
    margin-bottom: 0px; /* Abstand nach unten zur nächsten Zeile */
    line-height: 1.2;
}

/* Container-Stil */
.menu-nav-box { 
    background-color: var(--white); 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    border: 1px solid #ddd;
}

/* Überschriften in der Box */
.menu-nav-box h2 { color: var(--brand-red); margin-top: 0; }
.menu-nav-box strong { font-size: 1rem; color: var(--text-dark); display: block; margin-top: 15px; }

/* Links in der Box */
.nav-links { margin-top: 5px; padding-left: 15px; }
.nav-links a { 
    color: var(--brand-red); 
    text-decoration: none; 
    margin: 0 10px; 
    display: inline-block; 
}
.nav-links a:hover { text-decoration: underline; }

/* Dark Mode Anpassungen für die Box */
[data-theme="dark"] .menu-nav-box { border-color: #333; }
[data-theme="dark"] .nav-links a { color: var(--menu-h-color); }

.download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--brand-red); /* Dein Rotton */
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000; /* Stellt sicher, dass er über allem liegt */
    transition: transform 0.2s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    background-color: #a50000; /* Etwas dunkleres Rot beim Überfahren */
}

/* Optional: Button auf kleinen Handys etwas kleiner machen */
@media (max-width: 600px) {
    .download-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 14px;
    }
}
html {
    scroll-behavior: smooth; /* Sorgt für ein schönes, weiches Scrollen statt hartem Springen */
    scroll-padding-top: 100px; /* Hier den exakten Puffer eintragen (z. B. die Höhe deines Headers + etwas Luft) */
}
.hero-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 75vh; /* Schön viel Platz für das Hintergrundbild */
    padding: 40px 20px;
    
    /* Hier wird dein Hintergrundbild geladen */
    background-image: url('pics/404.jpg'); /* Passe den Dateinamen an dein Bild an */
    background-position: center center;       /* Bild wird mittig ausgerichtet */
    background-repeat: no-repeat;             /* Bild wird nicht gekachelt */
    background-size: cover;                   /* Bild füllt den gesamten Bereich komplett aus */
}

.hero-404 .card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    /* Ein leichter, dunkler oder heller Hintergrund für die Card, 
       damit der Text über dem Bild perfekt lesbar bleibt */
    background: rgba(var(--card-bg-rgb), 0.9); 
    backdrop-filter: blur(5px); /* Macht den Hintergrund hinter der Card leicht unscharf (Edel-Effekt) */
    border-radius: 8px;
}

.hero-404 h1 {
    margin-bottom: 20px !important;
    color: #8B0000;
}

.error-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.error-hint {
    font-size: 15px;
    margin-bottom: 30px;
    opacity: 0.8;
}