/* ==========================================================================
   1. GLOBALE VARIABLEN & BASISELEMENTE (NACHTBLAU & GOLD)
   ========================================================================== */
:root {
    --bg-color: #0a0f1d;          /* Tiefes Kino-Nachtblau */
    --card-bg: #131a30;           /* Etwas helleres Blau für die Karten */
    --accent-gold: #dfb15b;         /* Warmes, edles Gold */
    --accent-gold-light: #f4e6c3;   /* Sanfter Champagner-Ton für wichtige Akzente */
    --text-main: #f0f4f8;           /* Klares, leicht bläuliches Weiß für beste Lesbarkeit */
    --text-muted: #8fa0be;          /* Dezentes Graublau für Nebentexte */
    --whatsapp-green: #25D366;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px;
}

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

/* ==========================================================================
   2. HEADER & HERO SLIDER (HAUPTSEITE)
   ========================================================================== */
header {
    text-align: center;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(180deg, rgba(223,177,91,0.12) 0%, rgba(10,15,29,0) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 380px;
    margin: 30px auto 10px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    background-color: #050811;
}

@media(max-width: 768px) {
    .hero-slider {
        height: 240px;
    }
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-img.active {
    opacity: 1;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.coop {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   3. ELEGANTES KATEGORISIERTES NAVIGATIONS-MENÜ (INDEX.HTML)
   ========================================================================== */
.main-navigation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 35px 0 55px 0;
    padding: 20px;
    background: rgba(19, 26, 48, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
}

@media(min-width: 880px) {
    .main-navigation {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
    }
}

.nav-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Gemeinsame Button-Basis */
.nav-btn {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.25s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

/* KATEGORIE 1: Sprungmarken */
.btn-anchor {
    color: var(--accent-gold);
    border: 1px solid rgba(223, 177, 91, 0.3);
    background: rgba(223, 177, 91, 0.02);
}
.btn-anchor:hover {
    background: rgba(223, 177, 91, 0.09);
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
    transform: translateY(-1px);
}

/* KATEGORIE 2: Primäre Aktion (Download) */
.btn-download {
    color: #0a0f1d;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c59744 100%);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(223, 177, 91, 0.2);
    border: 1px solid transparent;
}
.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(223, 177, 91, 0.35);
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

/* KATEGORIE 3: Info-Seiten */
.btn-page {
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.01);
}
.btn-page:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

@media(max-width: 879px) {
    .nav-group:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 18px;
        width: 100%;
    }
}

.program-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 40px 0;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid rgba(229, 169, 59, 0.2);
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: rgba(229, 169, 59, 0.08);
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
}

/* ==========================================================================
   4. SPRUNGMARKEN & TITEL
   ========================================================================== */
.back-to-nav {
    text-align: right;
    margin-top: 20px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-gold);
}

.section-title {
    font-size: 1.8rem;
    border-left: 4px solid var(--accent-gold);
    padding-left: 15px;
    margin: 50px 0 25px 0;
    color: var(--accent-gold-light);
}

/* ==========================================================================
   5. FILM-KARTEN LAYOUT (PROGRAMM-GRID)
   ========================================================================== */
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.movie-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.03);
}

.movie-poster-wrapper {
    background-color: #050811; 
    width: 100%;
    height: 340px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.movie-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.movie-date {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.movie-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #fff;
}

.movie-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

/* ==========================================================================
   6. ACCORDION / DETAILS (FILM-INFOS AUSKLAPPEN)
   ========================================================================== */
.movie-details-accordion {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto; 
    padding-top: 10px;
}

.movie-details-accordion summary {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    cursor: pointer;
    outline: none;
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-details-accordion summary::after {
    content: "＋";
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.movie-details-accordion[open] summary::after {
    content: "－";
}

.movie-details-accordion summary::-webkit-details-marker {
    display: none;
}

.movie-synopsis {
    font-size: 0.9rem;
    color: #d2daf0;
    margin-bottom: 15px;
    line-height: 1.5;
    padding-top: 5px;
    animation: sweep 0.3s ease-in-out;
}

@keyframes sweep {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.movie-details {
    background: rgba(0,0,0,0.25);
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent-gold);
    color: #e5e5ea;
    margin-top: 10px;
}

/* ==========================================================================
   7. PRACTICAL INFO BOX & WHATSAPP MOBIL-KORREKTUREN
   ========================================================================== */
.info-box {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-top: 60px;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
}

@media(min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr 1fr; 
    }
}

.info-column {
    min-width: 0;
}

.info-column h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-column p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #e2eaf4;
}

.wa-link-wrapper {
    background: rgba(37, 211, 102, 0.04);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    margin-top: 15px;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--whatsapp-green);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 12px;
    transition: background-color 0.2s, transform 0.2s;
}

.wa-btn:hover {
    background-color: #20ba56;
    transform: translateY(-1px);
}

.wa-url-display {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    word-break: break-all;
}

@media(max-width: 768px) {
    .info-box {
        padding: 20px 15px; 
        margin-top: 40px;
    }
    .wa-btn {
        display: flex !important;
        width: 100%;
        padding: 10px 10px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   8. FOOTER LINKS
   ========================================================================== */
.footer-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   9. OPTIMIERTES HEADER-DESIGN FÜR UNTERSEITEN (CHI SIAMO & IMPRESSUM)
   ========================================================================== */
.header-sub {
    padding: 25px 20px 15px 20px;
    margin-bottom: 25px;
    background: linear-gradient(180deg, rgba(223,177,91,0.06) 0%, rgba(10,15,29,0) 100%);
}

.header-sub h1 {
    font-size: 1.7rem;
    letter-spacing: 1px;
}

.header-sub .subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

@media(max-width: 768px) {
    .header-sub {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    .header-sub h1 {
        font-size: 1.3rem;
    }
    .header-sub .subtitle {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   10. HAMBURGER MENÜ (KUGELSICHERES OVERLAY & BUTTON-UNIFORMITY MOBIL)
   ========================================================================== */

/* Der Button oben links */
.hamburger-btn {
    position: absolute; 
    top: 25px;
    left: 20px;
    z-index: 1000;
    background: rgba(19, 26, 48, 0.8);
    border: 1px solid rgba(223, 177, 91, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(223, 177, 91, 0.15);
    border-color: var(--accent-gold);
}

.hamburger-icon {
    color: var(--accent-gold);
    font-size: 1.6rem;
    line-height: 1;
    user-select: none;
}

/* Das Overlay-Menü für echten Smartphone-Einsatz */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 100%;
    height: 100vh;
    background: #0a0f1d; /* Absolut deckendes Kinoblau gegen Durchscheinen */
    z-index: 9999; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    
    overflow-y: auto;           
    -webkit-overflow-scrolling: touch; 
    padding-top: 100px;         
    padding-bottom: 40px;
}

.mobile-menu-overlay.active {
    left: 0;
}

/* Der Schließen-Button (X) oben rechts */
.close-menu-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
    z-index: 10001;
}

.close-menu-btn:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--accent-gold-light);
}

/* Styling der Navigationsgruppe im mobilen Overlay */
.mobile-menu-overlay .nav-group {
    display: flex;
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 0;
    border: none !important; 
    padding: 0 20px;
    width: 100%;
    max-width: 320px; 
}

/* REPARATUR: Macht ALLE Buttons im Hamburger-Menü einheitlich grau-blau,
   überschreibt das Desktop-Gold von .btn-anchor und entfernt falsche Ränder! */
.mobile-menu-overlay .nav-group .nav-btn {
    font-size: 1.1rem !important;
    padding: 12px 24px !important;
    width: 100% !important;
    border-radius: 50px !important;
    justify-content: center !important;
    text-align: center;
    display: inline-flex !important;
    
    /* Einheits-Design für den mobilen Zustand */
    color: var(--text-muted) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    box-shadow: none !important; 
    transform: none !important;
}

/* Hover-Effekt für alle mobilen Buttons identisch */
.mobile-menu-overlay .nav-group .nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

@media(max-width: 879px) {
    .main-navigation {
        display: none !important;
    }
}

/* --- MODAL PRENOTAZIONE (POPUP) --- */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1a1a24;
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-gold);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #d1d1d6;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #2a2a35;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #e6b800; 
}

.prenota-btn-inline {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: transparent !important; 
    color: var(--accent-gold) !important;     
    border: 1px solid var(--accent-gold) !important; 
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;  
    appearance: none;          
}

.prenota-btn-inline:hover {
    background-color: var(--accent-gold) !important;
    color: #000 !important;
}

/* =========================================
   SPRACH-UMSCHALTER (NUR HIER GILT .ACTIVE)
   ========================================= */
.lang-switcher {
    position: absolute;
    top: 25px;
    right: 80px; 
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(19, 26, 48, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(223, 177, 91, 0.3);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

/* Betrifft jetzt AUSSCHLIESSLICH den aktiven Sprach-Button */
.lang-switcher .lang-btn.active {
    color: var(--accent-gold) !important;
    border-bottom: 2px solid var(--accent-gold) !important;
}

.lang-btn:hover {
    color: var(--text-main);
}