/* MODERN DARK & BOLD DESIGN */
:root {
    --bg-color: #0a0a0a;       /* Fast Schwarz */
    --bg-accent: #161616;     /* Sehr dunkles Grau für Sektionen */
    --box-bg: #1e1e1e;        /* Lighter Dark für Karten/Eingaben */
    --text-color: #eeeeee;    /* Off-White */
    --text-muted: #a0a0a0;    /* Grauer Text für weniger wichtiges */
    
    --accent-color: #e6b800;   /* Das moderne Dunkelgelb/Gold */
    --accent-hover: #ffcc00;   /* Helleres Gelb für Hover-Effekte */
    
    --border-color: #333333;  /* Subtile dunkle Linien */

    /* Schriften */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Typografie (Modern & Frech) */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400; /* Bebas Neue hat oft nur eine Gewichtung */
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: 4rem; line-height: 1; }
h2 { font-size: 2.5rem; color: var(--text-color); }
h3 { font-size: 1.8rem; color: var(--accent-color); }

.text-center { text-align: center; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Strich unter dem Titel (jetzt Gelb und modern) */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

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

.alert-success { 
    background-color: #27ae60;
    color: white;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}
/* NEU: Für Fehlermeldungen */
.alert-error {
    background-color: #c0392b;
    color: white;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* Navigation (Modern, transparent zu Schwarz) */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* Logo als Bild */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    /* Die Höhe bestimmt, wie gross das Logo in der Leiste wird. 
       40-50px sind meistens ideal. Passe die Zahl an dein Logo an! */
    height: 45px; 
    width: auto; /* Sorgt dafür, dass es nicht verzerrt wird */
    max-width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Slider (Events) - Inhalt modernisiert */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dunkler Overlay-Filter für bessere Lesbarkeit */
.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

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

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px;
}

.event-date {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bg-color);
    background-color: var(--accent-color);
    padding: 5px 15px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 400;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

/* Buttons (Immer noch KANTIG, aber modernes Styling) */
.btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0; /* Radikal kantig */
    transition: all 0.3s;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-color);
}

/* Sektionen Allgemein */
.section { padding: 120px 0; }
.bg-dark { background-color: var(--bg-accent); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);}

/* Getränkekarte (Clean & Modern) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.menu-category {
    background-color: var(--bg-accent);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.menu-category h3 { margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px;}
.menu-category ul { list-style: none; }
.menu-category li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    color: var(--text-muted);
    border-bottom: 1px solid #222; /* Sehr subtile Trennlinie */
    padding-bottom: 5px;
}

.menu-category li:hover { color: var(--text-color); }

/* Fundgrube (NEU: Mit Bildern) */
.fundgrube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fund-card {
    background-color: var(--box-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    text-align: left;
    transition: transform 0.3s;
    overflow: hidden; /* Damit das Bild oben nicht über die Kanten ragt */
    display: flex;
    flex-direction: column;
}

.fund-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }

.fund-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--accent-color);
}

.fund-info {
    padding: 20px;
}

.fund-info h4 { color: var(--text-color); font-size: 1.3rem; margin-bottom: 5px; }
.fund-info p { color: var(--text-muted); font-size: 0.9rem; }

/* Formulare (Dunkel & Kantig) */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
}
.form-container.no-margin { margin: 0; max-width: 100%; }

.input-group { margin-bottom: 20px; }

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--box-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    border-radius: 0;
    font-size: 1rem;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Kontakt-Bereich */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    text-align: left;
}

.contact-info h3 { margin-bottom: 15px; color: var(--text-color); }
.contact-info p { margin-bottom: 10px; color: var(--text-muted); }
.contact-info strong { color: var(--text-color); }

.alert-success {
    background-color: #27ae60; /* Grün für Erfolg */
    color: white;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: #000;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   MOBILE NAVIGATION (Hamburger Menü)
   ========================================= */

/* Hamburger Container (Standardmässig versteckt) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 2000; /* Wichtig: Muss GANZ VORNE sein, über dem Menü */
}

/* Die 3 Striche */
.hamburger span {
    width: 35px;
    height: 3px;
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

/* Die Handy-Ansicht aktivieren */
@media (max-width: 768px) {
    /* 1. Hamburger Icon einblenden */
    .hamburger { 
        display: flex; 
    }
    
    /* 2. Die normalen Links komplett umbauen zum Fullscreen-Menü */
    .nav-links {
        display: flex; /* WICHTIG: Das überschreibt alte "display: none" Befehle! */
        position: fixed;
        top: 0;
        right: -100%; /* Versteckt das Menü ausserhalb des rechten Bildschirmrandes */
        height: 100vh;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98); /* Fast schwarzes Overlay */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out; /* Weiches Reinfahren */
        z-index: 1500;
        gap: 30px; /* Mehr Platz zwischen den Links */
    }

    /* Diese Klasse wird per JavaScript hinzugefügt, wenn das Menü öffnet */
    .nav-links.active {
        right: 0; /* Menü fährt in den sichtbaren Bereich */
    }

    /* Links grösser machen auf dem Handy */
    .nav-links a {
        font-size: 2rem;
    }

    /* 3. Animation: Hamburger wird zum X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0; /* Mittlerer Strich verschwindet */
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Responsive Anpassungen für den Rest der Seite (falls du sie hier unten gesammelt hast) */
    .detail-grid { grid-template-columns: 1fr; }
    .detail-img { height: 200px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .slide-content { padding: 20px; }
    nav { padding: 1rem 1.5rem; }
}

/* =========================================
   PARALLAX EFFEKTE
   ========================================= */
.parallax {
    /* Der magische Trick für den Parallax-Effekt: fixed */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    /* Ein bisschen mehr Padding oben und unten, damit der Effekt besser wirkt */
    padding: 150px 0; 
}

/* Dunkler Filter MIT WEICHEN ÜBERGÄNGEN (Gradient) */
.parallax::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* Der Verlauf: Oben unsichtbarer Übergang, Mitte transparentes Bild, Unten unsichtbarer Übergang */
    background: linear-gradient(
        to bottom,
        var(--bg-color) 0%,           /* 0%: Startet komplett in der Seiten-Hintergrundfarbe */
        rgba(10, 10, 10, 0.7) 15%,    /* 15%: Blendet in das halbtransparente Parallax-Bild über */
        rgba(10, 10, 10, 0.7) 85%,    /* 85%: Bleibt so bis fast ganz unten */
        var(--bg-color) 100%          /* 100%: Endet wieder komplett in der Seiten-Hintergrundfarbe */
    );
    z-index: 1;
    pointer-events: none; /* Stellt sicher, dass man nichts auf dem Filter aus Versehen anklickt */
}

/* Sichert ab, dass der Inhalt ÜBER dem dunklen Filter liegt */
.parallax .container {
    position: relative;
    z-index: 2;
}

/* Spezifische Hintergrundbilder für die Sektionen */
.parallax-fundgrube {
    /* Bild: Düstere Bar / Tresen Atmosphäre */
    background-image: url('img/backgrounds/bg_fundgrube.jpg'); /*url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&q=80&w=1920');*/
}

.parallax-booking {
    /* Bild: Live Musik / Mikrofon / Gitarre Vibe */
    background-image: url('img/backgrounds/bg_booking.jpg'); /*url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&q=80&w=1920');*/
}

/* Auf Handys schalten wir Parallax oft ab, da iOS/Safari damit manchmal ruckelt. 
   Es wird dann einfach wie ein normales, schönes Hintergrundbild angezeigt. */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* =========================================
   KALENDER KARUSELL (Karten-Design)
   ========================================= */
.kalender-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0 40px 0; /* Unten etwas Platz für die Scrollbar */
    /* Snapping: Sorgt dafür, dass die Karten beim Scrollen sauber einrasten */
    scroll-snap-type: x mandatory; 
    
    /* Moderne, farbige Scrollbar */
    scrollbar-width: thin; 
    scrollbar-color: var(--accent-color) var(--bg-accent);
}

/* Scrollbar-Styling für Chrome/Safari */
.kalender-carousel::-webkit-scrollbar { height: 8px; }
.kalender-carousel::-webkit-scrollbar-track { background: var(--bg-accent); border-radius: 10px; }
.kalender-carousel::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

.kalender-card {
    /* Jede Karte ist fest 300px breit und schrumpft nicht */
    flex: 0 0 300px; 
    background-color: var(--box-bg);
    border: 1px solid var(--border-color);
    scroll-snap-align: start; /* Einrastpunkt */
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.kalender-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.k-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--accent-color);
}

.k-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Füllt den restlichen Platz auf */
}

.k-date { color: var(--accent-color); font-weight: bold; font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 1px;}
.k-title h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-color); }
.k-action { margin-top: auto; text-align: left; } /* margin-top: auto drückt den Button immer ganz nach unten */

.btn-text {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.kalender-card:hover .btn-text { color: var(--accent-color); }

/* =========================================
   KALENDER INLINE DETAILS
   ========================================= */
.event-detail-container {
    display: none; /* Erstmal unsichtbar, bis man klickt */
    background-color: var(--box-bg);
    border: 1px solid var(--accent-color);
    margin-top: 20px;
    padding: 30px;
    position: relative;
    /* Ein weiches Einblenden von unten */
    animation: slideUpFade 0.4s ease-out;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Bild kriegt 1/3, Text 2/3 Platz */
    gap: 30px;
    align-items: center;
}

.detail-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--accent-color);
}

.detail-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.btn-close-detail {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s;
    font-family: var(--font-body);
}

.btn-close-detail:hover { color: var(--accent-color); }

/* Handyanpassung für die Detailansicht */
@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-img { height: 200px; }
}

/* =========================================
   AKKORDEON GETRÄNKEKARTE (Grundgerüst)
   ========================================= */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-accent);
    scroll-margin-top: 100px; /* Wichtig für sanftes Scrollen via QR-Code */
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: transparent;
    color: var(--text-color);
    border: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.accordion-header:hover, .accordion-header.active {
    color: var(--accent-color);
    background-color: var(--box-bg);
}

.accordion-header .icon {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(45deg); /* Macht aus dem + ein x */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: var(--box-bg);
    padding: 0 20px;
}


/* =========================================
   GETRÄNKEKARTE DETAILS (Listen & Untertitel)
   ========================================= */
.menu-subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-list {
    list-style: none;
    padding-bottom: 20px;
}

.menu-list li {
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
}

.menu-list li:last-child {
    border-bottom: none;
}

.product-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}


/* =========================================
   LINKE SEITE: ICON, NAME, BADGES, DESC
   ========================================= */
.product-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.product-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-top: 3px; /* Richtet das Icon optisch an der ersten Textzeile aus */
}

.product-text {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.alc-tag {
    font-size: 0.8rem;
    color: var(--accent-color);
    background: rgba(230, 184, 0, 0.1);
    padding: 2px 6px;
    border: 1px solid var(--accent-color);
    font-weight: 400;
    border-radius: 3px;
}

.product-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.badge-sale {
    background-color: #d35400; /* Kräftiges Orange */
    color: white;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 5px;
}


/* =========================================
   RECHTE SEITE: MENGEN & PREISE
   ========================================= */
.product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    min-width: 120px; 
}

.product-variants {
    width: 100%;
}

.variant-row {
    display: grid;
    grid-template-columns: 1fr 60px; /* Raster: Links restlicher Platz, Rechts fix 60px */
    gap: 15px;
    margin-bottom: 5px;
    align-items: center;
}

.v-size {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: right; 
}

.v-price {
    font-weight: 700;
    color: var(--text-color);
    text-align: right; 
}

.v-price::after {
    content: 'CHF';
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    padding-left: 3px;
}


/* =========================================
   MOBILE OPTIMIERUNG FÜR GETRÄNKEKARTE
   ========================================= */
@media (max-width: 600px) {
    .product-main {
        flex-direction: column;
        gap: 10px;
    }
    .product-right {
        align-items: flex-start;
        width: 100%;
        background: rgba(255,255,255,0.03);
        padding: 10px;
        border-left: 2px solid var(--accent-color);
        margin-top: 5px;
    }
    .variant-row {
        width: 100%;
        max-width: 200px;
        grid-template-columns: 50px 60px; /* Feste Breiten fürs Handy */
        justify-content: flex-start;
        text-align: left;
    }
    .v-size, .v-price {
        text-align: left;
    }
}