/* --- CSS-VARIABLEN --- */
:root {
    /* Ein deutlich helleres, frischeres Salbei/Waldgrün */
    --primary-color: #4c7056;
    --primary-dark: #3b5a45;
    --accent-color: #b8905b;  /* Elegantes Gold/Bronze */
    --accent-hover: #9c7849;
    --bg-color: #fdfbf7;      /* Warmes Creme-Weiß */
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --font-heading: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* --- GLOBALE EINSTELLUNGEN --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    font-family: var(--font-body);
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

/* Sichtbarer Tastatur-Fokus für Barrierefreiheit */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip-Link: erscheint nur bei Tastaturnavigation */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 20px;
    z-index: 999;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Nur für Screenreader sichtbar */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- NAVIGATION --- */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img, .logo svg { max-height: 65px; width: auto; transition: transform 0.3s ease; }
.logo img:hover, .logo svg:hover { transform: scale(1.05); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover, .active-link {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- SEITEN-LAYOUT & ÜBERSCHRIFTEN --- */
.page-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}
h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
    font-family: var(--font-heading);
}

/* --- DYNAMISCHER HERO BEREICH (Ken Burns Effekt) --- */
@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    50%  { transform: scale(1.12) translate(-1.5%, 1%); }
    100% { transform: scale(1.18) translate(1.5%, -1%); }
}

.hero {
    position: relative;
    text-align: center;
    padding: 9rem 1rem;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Fallback-Farbe, falls das Hintergrundbild fehlt oder noch lädt */
    background-color: var(--primary-dark);
}

/* Pfad zum Bild im assets Ordner - Sicherere Schreibweise */
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background-image: url('assets/bistro-vorner.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--primary-dark);

    animation: kenburns 25s infinite alternate linear;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(76, 112, 86, 0.75), rgba(76, 112, 86, 0.9));
    z-index: -1;
}

.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 2px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
}
.hero-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- BUTTONS --- */
.btn {
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    color: white;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-outline { background-color: transparent; border: 2px solid var(--white); }
.btn-outline:hover { background-color: var(--white); color: var(--primary-dark); }
.btn-ghost {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-ghost:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* --- KONTAKT & DASHBOARD BEREICH --- */
.info-dashboard { padding-top: 3rem; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.dash-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}
.dash-card:hover { transform: translateY(-5px); }
.dash-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.dash-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.dash-card p { color: var(--text-muted); margin-bottom: 0.5rem; }
.dash-card hr { border: none; border-top: 1px solid #eee; margin: 1.5rem 0; }

/* Klickbare Telefon-/Mail-Links */
.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: color 0.3s;
}
.contact-link:hover { color: var(--accent-hover); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid #f5f5f5; color: var(--text-muted); }
.hours-table tr:last-child td { border-bottom: none; }
.closed-day td { color: #d32f2f; font-weight: 500; }

.google-review .stars { color: #fbbc04; font-size: 1.2rem; margin-bottom: 5px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 10px; align-items: center; }
.social-icon {
    display: flex; justify-content: center; align-items: center;
    width: 40px; height: 40px;
    background: #f5f5f5; color: var(--primary-dark);
    border-radius: 50%; text-decoration: none; font-size: 1.2rem;
    transition: 0.3s ease;
}
.social-icon:hover { background: var(--primary-color); color: var(--white); }

.dash-map { height: 400px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); background: var(--white); }

/* DSGVO-freundlicher Karten-Platzhalter */
.map-consent {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(160deg, #f4f1e8, #e8ede6);
}
.map-consent i { font-size: 3rem; color: var(--primary-color); }
.map-consent-text { max-width: 460px; color: var(--text-muted); font-size: 0.9rem; }
.map-consent-text a { color: var(--primary-color); }

/* --- INSTAGRAM GALERIE --- */
.instagram-section { background-color: var(--white); padding: 4rem 2rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.ig-header h2 i { color: #E1306C; margin-right: 10px; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.ig-post { position: relative; border-radius: 8px; overflow: hidden; display: block; aspect-ratio: 1/1; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ig-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center;
    color: white; font-size: 2rem; opacity: 0; transition: opacity 0.3s ease;
}
.ig-post:hover img { transform: scale(1.05); }
.ig-post:hover .ig-overlay { opacity: 1; }

/* --- BILDER GALERIE (Über Uns / Impressionen) --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--border-radius); transition: 0.4s ease; box-shadow: var(--box-shadow); }
.gallery-grid img:hover { transform: scale(1.03); }

/* --- ÜBER UNS & RECHTLICHER CONTENT --- */
.content-box { background: var(--white); padding: 4rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; font-size: 1.1rem; }
.content-box p { margin-bottom: 1.5rem; }
.content-box h3 { margin-top: 2rem; margin-bottom: 0.8rem; }
.content-box h3:first-child { margin-top: 0; }
.content-left { text-align: left; }
.content-left a { color: var(--primary-color); }
.lead-text { font-size: 1.3rem; font-family: var(--font-heading); color: var(--primary-dark); }

/* --- SPEISEKARTE: SUCHE, FILTER & GRID --- */
.menu-search {
    position: relative;
    max-width: 480px;
    margin: 0 auto 2rem;
}
.menu-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.menu-search input {
    width: 100%;
    padding: 12px 20px 12px 46px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    color: var(--text-main);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.menu-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 112, 86, 0.15);
}

.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn { padding: 8px 20px; border: 1px solid #ddd; background: transparent; color: var(--text-muted); font-weight: 500; cursor: pointer; border-radius: 30px; transition: 0.3s ease; font-family: var(--font-body); }
.filter-btn:hover, .filter-btn.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

.menu-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.menu-cat-title {
    font-size: 1.6rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}
.menu-cat-title:first-of-type { margin-top: 0; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); column-gap: 3rem; row-gap: 2rem; }
.menu-item { display: flex; flex-direction: column; margin-bottom: 1rem; }
.menu-item-header { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.item-line { flex-grow: 1; border-bottom: 1px dotted #ccc; margin: 0 10px; position: relative; top: -4px; }
.item-name { max-width: 75%; }
.item-nr { color: var(--accent-color); margin-right: 5px; }
.item-price { color: var(--accent-color); font-weight: 700; white-space: nowrap; }
.menu-item-desc { font-size: 0.85rem; color: var(--text-muted); font-style: italic; line-height: 1.5; }

.menu-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.menu-empty p:first-child {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 4rem 2rem; background: var(--primary-dark); color: rgba(255,255,255,0.7); margin-top: 4rem; }
.footer-logo { font-family: var(--font-heading); color: var(--accent-color); font-size: 1.5rem; margin-bottom: 10px; }
.footer-contact { margin-top: 15px; font-size: 0.9rem; }
.footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-contact a:hover { color: var(--accent-color); }
.footer-legal { margin-top: 20px; font-size: 0.85rem; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; }
.footer-legal a:hover { color: var(--accent-color); }

/* --- REDUZIERTE BEWEGUNG (Barrierefreiheit) --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg { animation: none; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* --- RESPONSIV --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 1rem; gap: 1rem; }
    .nav-links { width: 100%; justify-content: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero { padding: 5rem 1rem; }
    .menu-grid { grid-template-columns: 1fr; }
    .content-box { padding: 2rem 1.5rem; }
    .page-section { padding: 3rem 1.25rem; }
    .item-name { max-width: 70%; }
}