/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Bierfarben-Palette */
    --primary-color: #e4a817; /* Gold/Bernstein */
    --secondary-color: #8b4513; /* Sattelbraun (dunkler Akzent) */
    --light-background: #fffaf0; /* Floralweiß/Creme (heller Hintergrund) */
    --lighter-background: #fffdf7; /* Noch hellerer Ton für Abwechslung */
    --dark-background: #654321; /* Dunkelbraun (für Header/Footer) */
    --text-color: #3d2b1f; /* Dunkles Braun (für Text) */
    --white-ish: #fdfdfd; /* Sehr helles Weiß/Creme (für Kontraste) */
    --accent-highlight: #ffcc5c; /* Helleres Gold (für Hover/Akzente) */
    --foam-color: #f8f8f0; /* Schaumfarbe */
    --bubble-color: rgba(255, 255, 255, 0.3); /* Leichte, helle Blasen */
    --warning-bg: #fff3cd; /* Heller Gelbton für Warnung */
    --warning-border: #ffeeba;
    --warning-text: #856404;
    --disclaimer-bg: #f8d7da; /* Heller Rotton für Disclaimer */
    --disclaimer-border: #f5c6cb;
    --disclaimer-text: #721c24; /* Dunkelroter Text */

    /* Layout-Variablen */
    --box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition-speed: 0.4s;
    --section-transition-speed: 0.6s;
    --navbar-height: 56px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding-top: var(--navbar-height);
    background: linear-gradient(180deg, var(--lighter-background) 0%, var(--light-background) 100%);
    color: var(--text-color);
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Anpassung für Bootstrap Navbar */
.navbar.fixed-top {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: var(--white-ish); /* Heller Hintergrund für Navbar */
}
.navbar-brand img {
    max-height: 30px;
}

/* Styling für hinzugefügte Icons/Emojis */
h1 .bi, h2 .bi, .cta-button .bi, .secondary-cta-button .bi {
    vertical-align: -0.1em; /* Feinabstimmung der vertikalen Ausrichtung */
}

/* --- Features Sektion NEU --- */
#features ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Standard-Margin entfernen */
}

#features li {
    display: flex; /* Flexbox für Icon und Text nebeneinander */
    align-items: flex-start; /* Oben ausrichten */
    background-color: var(--lighter-background);
    border: 1px solid rgba(0,0,0,0.08); /* Leichter Rahmen */
    border-radius: var(--border-radius);
    padding: 1.5rem; /* Mehr Innenabstand */
    margin-bottom: 1.5rem; /* Abstand zwischen den Features */
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#features li:last-child {
    margin-bottom: 0; /* Kein Abstand nach dem letzten Element */
}

#features li:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.07);
}

#features li .bi {
    color: var(--primary-color);
    font-size: 1.8em; /* Größere Icons */
    margin-right: 1.2rem; /* Mehr Abstand zum Text */
    margin-top: 0.1em;
    min-width: 1.5em; /* Sicherstellen, dass Icons Platz haben */
}

#features li div { /* Container für Text (strong + p) */
    flex: 1; /* Nimmt den restlichen Platz ein */
}

#features li strong {
    display: block; /* Titel als eigener Block */
    font-size: 1.15rem; /* Etwas größere Schrift für Titel */
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.4rem; /* Abstand zum Beschreibungstext */
}

#features li a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}
#features li a:hover {
    color: var(--primary-color);
}


/* Preloader Styling (unverändert) */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-background); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.8s ease-out 0.5s, visibility 0.8s ease-out 0.5s; opacity: 1; visibility: visible; }
#preloader p { color: var(--white-ish); margin-top: 25px; font-size: 1.2rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); animation: pulseText 2s infinite ease-in-out; }
@keyframes pulseText { 0% { opacity: 0.8; } 50% { opacity: 1; } 100% { opacity: 0.8; } }
.beer-glass { width: 100px; height: 180px; border: 5px solid var(--white-ish); border-top: none; border-radius: 0 0 15px 15px; position: relative; background-color: rgba(255, 255, 255, 0.05); overflow: hidden; box-shadow: inset 0 -10px 15px rgba(0,0,0,0.1); }
.beer-liquid { position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background: linear-gradient(to top, var(--primary-color), #f7c144); border-radius: 0 0 10px 10px; animation: fillGlass 3.5s ease-out forwards; overflow: hidden; }
.beer-foam { position: absolute; bottom: 0; left: -10px; width: calc(100% + 20px); height: 0; background-color: var(--foam-color); border-radius: 15px 15px 5px 5px; opacity: 0; animation: foamUp 3.5s ease-out forwards; box-shadow: 0 -5px 10px rgba(0,0,0,0.1); z-index: 2; }
@keyframes fillGlass { 0% { height: 0; } 90% { height: 85%; } 100% { height: 85%; } }
@keyframes foamUp { 0% { height: 0; bottom: 0; opacity: 0; } 75% { height: 0; bottom: 0; opacity: 0.5; } 90% { height: 25px; bottom: 85%; opacity: 1; } 100% { height: 25px; bottom: 85%; opacity: 1; } }
.bubble { position: absolute; bottom: 5px; width: 6px; height: 6px; background-color: var(--bubble-color); border-radius: 50%; opacity: 0; animation: rise 3s infinite ease-in; z-index: 1; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translateY(-160px); opacity: 0; } }
.bubble-1 { left: 20%; width: 8px; height: 8px; animation-duration: 2.5s; animation-delay: 0.5s; }
.bubble-2 { left: 40%; animation-duration: 3s; animation-delay: 1s; }
.bubble-3 { left: 65%; width: 5px; height: 5px; animation-duration: 2.8s; animation-delay: 1.8s; }
.bubble-4 { left: 80%; animation-duration: 3.2s; animation-delay: 0.2s; }
.bubble-5 { left: 50%; width: 7px; height: 7px; animation-duration: 2.2s; animation-delay: 2.5s; }
#preloader.hidden { opacity: 0; visibility: hidden; }
#page-content.hidden { display: none; } /* Versteckt den Inhalt initial */
#page-content { /* Stellt sicher, dass der Inhalt sichtbar ist, wenn .hidden entfernt wird */
    opacity: 1;
    visibility: visible;
}

/* Warnungs-Popup Styling (unverändert) */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; }
.popup-overlay:not(.hidden) { opacity: 1; visibility: visible; }
.popup-content { background-color: var(--warning-bg); color: var(--warning-text); padding: 2rem 2.5rem; border-radius: var(--border-radius); border: 1px solid var(--warning-border); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); max-width: 500px; width: 90%; text-align: center; position: relative; transform: scale(0.9); transition: transform 0.4s ease-out; }
.popup-overlay:not(.hidden) .popup-content { transform: scale(1); }
.popup-content h2 { color: var(--warning-text); margin-top: 0; margin-bottom: 1rem; font-size: 1.8rem; }
.popup-content h2::after { display: none; }
.popup-content p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.6; }
.close-popup { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; font-weight: bold; color: var(--warning-text); cursor: pointer; opacity: 0.7; transition: opacity 0.3s ease; }
.close-popup:hover { opacity: 1; }
.close-popup-button { margin-top: 1rem; background-color: var(--secondary-color); color: var(--white-ish); padding: 0.8rem 2rem; }
.close-popup-button:hover { background-color: #a0522d; }
.popup-overlay.hidden { opacity: 0; visibility: hidden; }
.popup-overlay.hidden .popup-content { transform: scale(0.9); }

/* Restliches CSS */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
header#main-header {
    background: linear-gradient(90deg, var(--primary-color), #d89d0f);
    color: var(--white-ish);
    padding: 4rem 0 3rem 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
header#main-header::before { content: ''; position: absolute; bottom: -50px; left: -50px; width: 150px; height: 150px; background-color: rgba(253, 253, 253, 0.15); border-radius: 50%; opacity: 0.7; animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }
header#main-header h1 { margin: 0 0 0.5rem 0; font-size: 3.5rem; font-weight: 700; animation: fadeInDown 1s ease-out; }
header#main-header p { font-size: 1.3rem; font-weight: 300; opacity: 0.95; animation: fadeInUp 1s ease-out 0.5s; animation-fill-mode: backwards; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 0.95; transform: translateY(0); } }

/* NEUER STYLE FÜR HEADER BUTTON */
.header-actions {
    margin-top: 2rem;
}
.secondary-cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--white-ish);
    padding: 0.8rem 2rem;
    border: 2px solid var(--white-ish);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
    cursor: pointer;
}
.secondary-cta-button:hover {
    background-color: var(--white-ish);
    color: var(--secondary-color);
    transform: translateY(-2px);
}


/* Sektionen Styling & Animation */
section {
    padding: 4rem 2rem;
    margin: 3rem auto;
    background-color: var(--white-ish);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--section-transition-speed) ease-out, transform var(--section-transition-speed) ease-out;
}

section h2 { color: var(--secondary-color); font-size: 2.2rem; font-weight: 600; margin-bottom: 2rem; text-align: center; position: relative; padding-bottom: 1rem; }
section h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--primary-color); border-radius: 2px; }

#gallery { text-align: center; }
.gallery-item { margin: 2rem 0; padding: 1rem; background-color: #fdf8f0; border-radius: var(--border-radius); box-shadow: 0 4px 8px rgba(0,0,0,0.05); display: inline-block; max-width: 90%; transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--box-shadow); }
.gallery-item img { max-width: 100%; height: auto; border-radius: calc(var(--border-radius) - 5px); display: block; margin: 0 auto 1rem auto; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.gallery-item p { font-size: 0.95rem; color: var(--text-color); margin: 0; }
.image-placeholder { border: 2px dashed var(--primary-color); padding: 4rem 1rem; margin: 2rem auto; text-align: center; background-color: #e9ecef; color: var(--text-color); border-radius: var(--border-radius); font-style: italic; transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease; display: block; max-width: 90%; margin-left: auto; margin-right: auto; }
.image-placeholder:hover { background-color: #dde4ea; border-color: var(--secondary-color); }
#download { background: linear-gradient(135deg, var(--dark-background), #805c3e); color: var(--white-ish); text-align: center; border-radius: var(--border-radius); padding: 4rem 2rem; }
#download h2 { color: var(--white-ish); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
#download h2::after { background-color: var(--primary-color); }
#download p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-button { display: inline-block; background-color: var(--primary-color); color: var(--dark-background); padding: 1rem 2.5rem; border: none; border-radius: 50px; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.cta-button:hover { background-color: var(--accent-highlight); transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

/* STYLES FÜR DOWNLOAD BEREICH */
.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem; /* Kleiner Abstand nach dem Text */
}

.support-link {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.support-link p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.discord-btn {
    background-color: #5865F2; /* Discord Blurple */
    color: var(--white-ish);
}

.discord-btn:hover {
    background-color: #4752C4; /* Darker Blurple */
    color: var(--white-ish);
}

/* Styling für den Disclaimer-Abschnitt */
.disclaimer {
    background-color: var(--disclaimer-bg);
    color: var(--disclaimer-text);
    border: 1px solid var(--disclaimer-border);
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--section-transition-speed) ease-out, transform var(--section-transition-speed) ease-out;
}
.disclaimer h2 {
    color: var(--disclaimer-text);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.disclaimer h2::after { display: none; }
.disclaimer p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}
.disclaimer strong { font-weight: 600; }
.disclaimer a {
    color: var(--disclaimer-text);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.disclaimer a:hover { color: #491217; }

footer {
    text-align: center;
    margin-top: 0;
    padding: 2rem;
    background-color: var(--dark-background);
    color: var(--light-background);
    font-size: 0.95rem;
}

/* --- Responsive Anpassungen --- */

/* Tablets (bis 992px) */
@media (max-width: 992px) {
    header#main-header h1 { font-size: 3rem; }
    header#main-header p { font-size: 1.2rem; }
    section, .disclaimer { padding: 3.5rem 1.5rem; margin: 2.5rem auto; }
    /* #features ul bleibt block/flex column */
    #features li { padding: 1.2rem; }
    #features li .bi { font-size: 1.6em; margin-right: 1rem; }
    #features li strong { font-size: 1.1rem; }

    section h2 { font-size: 2rem; }
    .cta-button { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
    .gallery-item { max-width: 48%; display: inline-block; vertical-align: top; } /* Versucht 2 nebeneinander */
    .image-placeholder { max-width: 48%; display: inline-block; vertical-align: top; }
}

/* Mobilgeräte (bis 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 51px; /* Höhe der kleineren Navbar */
        font-size: 15px; /* Basis-Schriftgröße leicht anpassen */
        color: var(--text-color); /* Sicherstellen, dass Textfarbe korrekt ist */
        line-height: 1.6; /* Sicherstellen, dass Zeilenhöhe korrekt ist */
        opacity: 1; /* Sicherstellen, dass Body sichtbar ist */
        visibility: visible; /* Sicherstellen, dass Body sichtbar ist */
    }
    p {
        font-size: inherit; /* Erbt von Body, falls nicht spezifischer gesetzt */
        color: inherit; /* Erbt von Body */
        line-height: inherit; /* Erbt von Body */
        /* opacity und visibility werden nicht explizit für p gesetzt, erben von body */
    }

    /* Sicherstellen, dass der Hauptinhalt sichtbar ist, wenn .hidden entfernt wird */
    #page-content {
        opacity: 1 !important;
        visibility: visible !important;
    }

    header#main-header { padding: 3rem 0 2rem 0; }
    header#main-header h1 { font-size: 2.2rem; } /* Kleiner */
    header#main-header p { font-size: 1rem; }

    .header-actions { margin-top: 1.5rem; }
    .secondary-cta-button { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

    section, .disclaimer {
        padding: 2rem 1rem; /* Weniger Padding */
        margin: 1.5rem auto; /* Weniger Margin */
    }
    section h2 { font-size: 1.6rem; } /* Kleinere Überschriften */

    #features li {
        padding: 1rem; /* Weniger Padding auf Mobil */
        flex-direction: column; /* Icon über Text */
        align-items: center; /* Zentrieren */
        text-align: center; /* Text zentrieren */
    }
    #features li .bi {
        font-size: 2em; /* Größeres Icon, wenn es oben steht */
        margin-right: 0; /* Kein Abstand rechts */
        margin-bottom: 0.8rem; /* Abstand nach unten */
    }
    #features li strong {
        font-size: 1.05rem;
    }

    .cta-button { padding: 0.8rem 1.8rem; font-size: 0.95rem; } /* Kleinere Buttons */

    .beer-glass { width: 80px; height: 150px; }
    @keyframes rise { 100% { transform: translateY(-130px); opacity: 0; } }

    .gallery-item {
        display: block; /* Untereinander */
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    .image-placeholder {
        display: block; /* Untereinander */
        max-width: 95%;
    }

    .popup-content {
        padding: 1.5rem 1rem;
        max-width: 95%;
    }
    .popup-content h2 { font-size: 1.3rem; }
    .popup-content p { font-size: 0.9rem; line-height: 1.5; color: var(--warning-text); } /* Explizite Styles für Popup */

    .disclaimer { padding: 1.5rem 1rem; }
    .disclaimer h2 { font-size: 1.3rem; }
    .disclaimer p { font-size: 0.9rem; line-height: 1.5; color: var(--disclaimer-text); } /* Explizite Styles für Disclaimer */
}