/* ==========================================================================
   🎨 CORPORATE DESIGN & BASIS-STYLES
   ========================================================================== */
:root {
    --bg-black: #191919;         
    --pub-green: #1f6b39;       
    --logo-gold: #f3a81e;       
    --text-light: #f4f4f4;
    --card-bg: #111111;
}

body { 
    font-family: 'Georgia', 'Times New Roman', serif; 
    background-color: var(--bg-black); 
    color: var(--text-light); 
    margin: 0; 
    padding: 0; 
    line-height: 1.6;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Verhindert, dass der fixierte Header den Sektions-Titel verdeckt! */
}

/* ==========================================================================
   ➔ STATISCH FIXIERTER MILCHGLAS-HEADER
   ========================================================================== */
.main-nav { 
    background: rgba(25, 25, 25, 0.85); /* Standard-Transparenz */
    backdrop-filter: blur(12px);     /* Moderner Milchglas-Effekt */
    -webkit-backdrop-filter: blur(12px); 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; 
    z-index: 100; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Wird vom JS vergeben, wenn nach unten gescrollt wird */
.main-nav.header-hidden {
    transform: translateY(-100%);
}

/* Wird vom JS vergeben, sobald gescrollt wurde – für besseren Kontrast über Inhalten */
.main-nav.header-scrolled {
    background: rgba(25, 25, 25, 0.98);
    border-bottom: 1px solid rgba(31, 107, 57, 0.4); /* Dezentes Pub-Grün unten */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative;
}

/* Links: Logo-Bereich */
.nav-logo {
    max-width: 50px; 
    width: 100%;
    height: auto;
}
.nav-logo a {
    border: none !important;
}
.logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mitte: Actions (Anrufen & Social) */
.nav-center-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: opacity 0.2s ease-in-out;
}

.call-btn {
    background-color: var(--pub-green);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px; 
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.call-btn:hover {
    background-color: var(--logo-gold);
    color: var(--bg-black);
}

.social-links-inline {
    display: flex;
    gap: 15px;
    align-items: center;
}
.social-links-inline a {
    color: var(--text-light);
    transition: color 0.2s ease;
    border-bottom: none !important;
}
.social-links-inline a:hover {
    color: var(--logo-gold);
}

/* Rechts: Menü-Links (Desktop) */
.nav-menu {
    display: flex;
    align-items: center;
}
.page-links { 
    display: flex;
    gap: 25px;
}
.page-links a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: bold; 
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1.5px;
    transition: color 0.2s ease-in-out;
    border-bottom: none !important;
}
.page-links a:hover { 
    color: var(--logo-gold); 
}

/* Hamburger-Button */
.hamburger {
    display: none;
    background: transparent !important; 
    border: none !important;             
    outline: none !important;            
    box-shadow: none !important;         
    cursor: pointer;
    padding: 10px;
    margin: 0;
    z-index: 10001; /* Höher als das mobile Menü */
    -webkit-tap-highlight-color: transparent; 
}

/* Die drei Striche im Button */
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: background-color 0.2s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Verhindert klebriges Hover auf Smartphones & lässt Striche weiß */
@media (hover: hover) {
    .hamburger:hover span {
        background-color: var(--text-light);
    }
}

/* Nur die Striche werden gold, wenn das Menü geöffnet ist */
.hamburger.active span {
    background-color: var(--logo-gold);
}


/* ==========================================================================
   🏠 HAUPTINHALT & SEKTIONEN STRUKTUR
   ========================================================================== */
.container { 
    max-width: 800px; 
    margin: 60px auto; 
    padding: 0 20px; 
}

/* --- HERO SECTION MIT PARALLAX --- */
.hero-section {
    position: relative;
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('pics/DSC_0007.jpg'); 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35); z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; max-width: 600px; }
.hero-content h2 { color: var(--logo-gold); font-size: 3.2em; margin-bottom: 15px; text-transform: uppercase; }
.hero-content p { font-size: 1.4em; color: var(--text-light); }

/* --- 1. KÄSTCHEN: SPORTS SECTION --- */
.sports-section { 
    background-color: var(--card-bg); 
    padding: 35px; 
    border-radius: 4px; 
    border: 2px solid var(--pub-green);
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.sports-section h3 {
    color: var(--logo-gold);
    font-size: 1.8em;
    margin-top: 0;
}
.matchday-badge {
    display: inline-block;
    background-color: var(--pub-green);
    color: #fff;
    padding: 6px 18px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    margin-bottom: 20px;
}

/* Telefon-Button im Sport-Kästchen */
.pub-phone-btn {
    display: inline-block;
    background-color: var(--logo-gold); 
    color: var(--bg-black); 
    text-decoration: none;
    padding: 12px 28px; 
    font-weight: bold; 
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.pub-phone-btn:hover { 
    background-color: #ffd273; 
}

/* Allgemeiner Button-Fallschirm */
button { 
    background-color: var(--logo-gold); 
    color: var(--bg-black); 
    border: none; 
    padding: 12px 28px; 
    cursor: pointer; 
    font-weight: bold; 
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}
button:hover { background-color: #ffd273; }

/* --- 2. ABSCHNITT: WILLKOMMENS-TEXT --- */
.welcome-text-section {
    max-width: 700px;
    margin: 50px auto; 
    padding: 0 20px;
    text-align: center;
    line-height: 1.8;
}
.welcome-text-section p {
    font-size: 1.15em;
    margin-bottom: 25px;
    color: var(--text-light);
}
.welcome-text-section .gaelic-toast {
    font-size: 2.8em;
    color: var(--logo-gold);
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}
.welcome-text-section .highlight-text {
    font-size: 1.25em;
    font-style: italic;
    color: #ffffff;
}
.welcome-text-section strong {
    color: var(--logo-gold); 
}
.welcome-text-section .closing-toast {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--logo-gold);
    margin-top: 35px;
    border-top: 1px solid #222;
    padding-top: 20px;
}

/* --- 3. ABSCHNITT: ATMOSPHÄRE & GALERIE --- */
.atmosphere-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}
.atmosphere-content {
    text-align: center;
    line-height: 1.8;
    font-size: 1.15em;
    margin-bottom: 40px;
}
.atmosphere-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Galerie Grid & Karten */
.pub-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid var(--pub-green);
    aspect-ratio: 4/3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    background-color: var(--card-bg);
    cursor: pointer;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(85%);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--logo-gold);
    text-align: center;
    padding: 10px 0;
    font-size: 0.95em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

/* Hover-Effekte für Desktop */
.gallery-card:hover img {
    transform: scale(1.05);
    filter: brightness(100%);
}
.gallery-card:hover .gallery-caption {
    transform: translateY(0);
}

/* ==========================================================================
   💥 LIGHTBOX OVERLAYS (Bildvergrößerung)
   ========================================================================== */
.lightbox-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.93); 
    z-index: 99999; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}
.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border: 3px solid var(--logo-gold);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-light);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}
.lightbox-close:hover {
    color: var(--logo-gold);
}

/* --- FOOTER --- */
footer { 
    text-align: center; padding: 40px 20px; color: #666; 
    margin-top: 40px; border-top: 1px solid #222; font-size: 0.9em;
}

/* ==========================================================================
   📸 NEUE VISUELLE TRENNER (PARALLAX BANNER)
   ========================================================================== */
.parallax-divider {
    position: relative;
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    border-top: 2px solid var(--pub-green);
    border-bottom: 2px solid var(--pub-green);
}

.divider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1;
}

.divider-text {
    position: relative;
    z-index: 2;
    color: var(--logo-gold);
    font-family: 'Georgia', serif;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    padding: 0 20px;
}

/* Erweitertes Grid für 4 statt 2 Bilder auf Desktop */
@media (min-width: 769px) {
    .pub-gallery {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* ==========================================================================
   🌐 RESPONSIVE LANGUAGE SWITCHER UTILITIES
   ========================================================================== */
.lang-switch-item {
    display: inline-flex;
    align-items: center;
}
.lang-switch-item .flag-icon {
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.desktop-only {
    display: inline-flex !important;
}
.mobile-only {
    display: none !important;
}


/* ==========================================================================
   📱 RESPONSIVE ANPASSUNGEN (SMARTPHONES) - Schmaler Slide-In von rechts
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }

    .hamburger {
        display: block; 
    }

    /* Das schmale, seitliche Menü */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px; /* Unsichtbar rechts parken */
        width: 250px;  /* Angenehm schmale Breite */
        height: 100vh;
        background: rgba(15, 15, 15, 0.98); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 2px solid var(--pub-green);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 9999;
    }
    
    /* Schiebt sich bei Aktivierung rein */
    .main-nav .nav-menu.active {
        right: 0;
    }

    .page-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 40px;
    }
    .page-links a {
        font-size: 1.1em;
    }

    /* Hamburger "X" Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Sektionen-Anpassungen auf Smartphones */
    .welcome-text-section .gaelic-toast {
        font-size: 2.2em;
    }
    .welcome-text-section p {
        font-size: 1.05em;
    }
    .pub-gallery {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .gallery-caption {
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.7);
    }

    .parallax-divider {
        height: 200px;
        background-attachment: scroll; /* Performance-Optimierung */
    }
    .divider-text {
        font-size: 1.4em;
    }

    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
}

/* Verhindert unschönen Umbruch des Tel-Buttons auf ganz kleinen Displays */
@media (max-width: 480px) {
    .pub-phone-btn {
        font-size: 0.9em;
        padding: 12px 20px;
    }
}