/* public/css/style.css - VERSION: FINAL NEWS & INSTAGRAM FIX */

/* ========================================= */
/* 1. VARIABLEN & GRUNDLAGEN                */
/* ========================================= */
:root {
    --primary-color: #F52113;
    --light-yellow: #F2C150;
    --brown: #e74c3c;
    --gold: #E6831E;
    --background-color: #ffffff;
    --text-color: #13110C;
    --black: #000000;
    --light-gray: #696969;
    --link-blue: #007bff;

    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.15);
    --radius: 12px;
}

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

body {
    font-family: 'FunnelDisplay', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex; flex-direction: column; min-height: 100vh;
}

main { flex: 1; }

/* Typografie */
h1, h2, h3 {
    font-family: 'FunnelDisplay', sans-serif;
    line-height: 1.2; margin-bottom: 1rem; color: var(--black);
}
.font-bavarian { font-family: 'Bavarian', sans-serif; }
.font-script { font-family: 'BonheurRoyale', sans-serif; }

/* Animation Class */
.animate-on-scroll {
    opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ========================================= */
/* 2. NAVBAR                                */
/* ========================================= */
.navbar {
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand p { color: var(--gold); font-size: 1.5rem; font-weight: bold; margin: 0; }
.navbar-brand { text-decoration: none; }

.nav-menu { list-style: none; display: flex; gap: 1rem; margin: 0; }
.nav-menu a { color: var(--background-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--light-yellow); font-weight: bold; }

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.burger-menu span { width: 30px; height: 3px; background: var(--gold); border-radius: 2px; transition: all 0.3s ease; }

.burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }


/* ========================================= */
/* 3. HERO SECTION (Desktop Default)        */
/* ========================================= */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--light-yellow);
    padding: 3rem 2rem 5rem 2rem;
    color: var(--black);
    overflow: hidden;
}

/* Animations */
@keyframes slideInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.hero-anim-1 { animation: fadeInScale 1s ease-out forwards; opacity: 0; }
.hero-anim-2 { animation: slideInUp 0.8s ease-out 0.3s forwards; opacity: 0; }
.hero-anim-3 { animation: slideInUp 0.8s ease-out 0.5s forwards; opacity: 0; }

.hero-image { flex: 1 1 50%; padding: 1rem; text-align: center; }
.hero-image img {
    max-width: 100%; height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25));
}

.hero-text { flex: 1 1 50%; padding: 1rem; }
.hero-text h1 { font-family: 'Bavarian', sans-serif; font-size: 2rem; margin-bottom: 0.5rem; }
.hero-text h2 { font-family: 'BonheurRoyale', sans-serif; font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.1; }
.hero-text p { margin-bottom: 1.5rem; line-height: 1.5; font-size: 1.1rem; }

.news-alert {
    background-color: rgba(255, 255, 255, 0.85); /* Etwas deckender für Lesbarkeit */
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: fit-content;

    /* Standard-Farbe (Fallback) */
    border-left: 5px solid var(--primary-color);
}

/* VERSCHIEDENE TYPEN (Farbcodierung) */
/* Typ: Wichtig (Standard Rot) */
.news-alert.type-Wichtig {
    border-left-color: var(--primary-color);
}
.news-alert.type-Wichtig .news-badge {
    background-color: var(--primary-color);
}
.news-alert.type-Wichtig strong {
    color: var(--primary-color);
}

/* Typ: Info (Blau - neutral) */
.news-alert.type-Info {
    border-left-color: #007bff;
}
.news-alert.type-Info .news-badge {
    background-color: #007bff;
}

/* Typ: Neu (Grün - positiv) */
.news-alert.type-Neu {
    border-left-color: #2e7d32;
}
.news-alert.type-Neu .news-badge {
    background-color: #2e7d32;
}

.news-badge {
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.news-alert p {
    margin: 0 !important;
    font-size: 1rem;
    color: var(--black);
    line-height: 1.4;
}

.news-link {
    display: inline-block;
    margin-left: 0.5rem;
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.news-link:hover {
    opacity: 1;
}

.hero-buttons { margin-top: 1.5rem; }

.btn { padding: 0.8rem 1.5rem; border: none; cursor: pointer; font-size: 1rem; margin-right: 0.5rem; transition: all 0.3s ease; text-decoration: none; display: inline-block; border-radius: 50px; font-weight: bold; }
.btn-primary { background-color: var(--primary-color); color: var(--background-color); border: 1px solid var(--black); }
.btn-primary:hover { background-color: var(--brown); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.btn-secondary { background-color: transparent; color: var(--black); border: 2px solid var(--black); }
.btn-secondary:hover { background-color: var(--black); color: white; transform: translateY(-2px); }


/* ========================================= */
/* 4. INSTAGRAM                             */
/* ========================================= */
.instagram {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 2.5rem; padding: 3rem 1rem;
    position: relative; z-index: 10; margin-top: -40px;
}

.instagram-link { text-decoration: none; color: inherit; transition: transform 0.3s; }
.instagram-link:hover { transform: scale(1.03); }

.instagram-container {
    margin: 0; display: flex; align-items: center;
    padding: 0.8rem 1.5rem; border-radius: 50px;
    background-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    width: auto; min-width: 320px;
    border: 2px solid transparent; background-clip: padding-box; position: relative;
}
.instagram-container::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; margin: -2px; border-radius: inherit;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 0; transition: opacity 0.3s ease;
}
.instagram-link:hover .instagram-container::before { opacity: 1; }

.profile-wrapper {
    padding: 3px; border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex; align-items: center; justify-content: center; margin-right: 1rem; flex-shrink: 0;
}
.instagram-profile { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }

.instagram-content { display: flex; align-items: center; flex-grow: 1; }
.instagram-text h3 { margin: 0; font-size: 1rem; color: var(--black); font-weight: 700; font-family: 'FunnelDisplay', sans-serif; }
.instagram-text p { margin: 0; font-size: 0.85rem; color: var(--primary-color); font-weight: 600; }
.instagram-icon-wrapper { margin-left: 2.5rem; flex-shrink: 0; display: flex; align-items: center; }

.instagram-prompt { display: flex; flex-direction: column; align-items: center; }
.font-handwritten { font-family: 'Mynerve', cursive; }
.instagram-follow-text { font-size: 1.4rem; color: var(--black); margin-bottom: 0.5rem; text-align: center; line-height: 1.2; }
.instagram-arrow { width: 60px; height: auto; opacity: 0.8; margin-top: 5px; }
@keyframes pointAtButton { from { transform: rotate(-45deg) scaleX(-1) translateY(0); } to { transform: rotate(-45deg) scaleX(-1) translateY(-10px); } }

/* Mobile Anpassung Instagram mit Fix für Overflow */
@media (max-width: 768px) {
    .instagram {
        gap: 1rem; margin-top: -20px; flex-direction: column;
        overflow-x: hidden; /* Verhindert horizontalen Scrollbar */
        width: 100%; padding-left: 1rem; padding-right: 1rem;
    }
    .instagram-container {
        min-width: 0; /* Erlaubt Shrinking */
        width: 100%;
        max-width: 100% !important; /* Wichtig! */
        padding: 0.5rem 0.8rem;
    }
    .instagram-text {
        min-width: 0;
        word-break: break-word; /* Bricht lange Wörter um */
    }
    .instagram-icon-wrapper { margin-left: auto; }
    .instagram-prompt { flex-direction: row; align-items: center; justify-content: center; gap: 10px; margin-top: 0.5rem; }
    .instagram-follow-text { font-size: 1.2rem; margin-bottom: 0; text-align: right; line-height: 1.1; }
    .instagram-arrow { transform: rotate(-45deg) scaleX(-1); width: 50px; margin-top: 0; animation: pointAtButton 1.5s ease-in-out infinite alternate; }
}


/* ========================================= */
/* 5. SERVICES & TEAM                       */
/* ========================================= */
.services { padding: 4rem 1rem; background-color: var(--background-color); text-align: center; }
.services h2 { margin-bottom: 3rem; font-weight: bold; }
.services-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.service {
    background-color: #fdfdfd; max-width: 300px; border: 1px solid var(--light-yellow); border-radius: 12px; padding: 2rem;
    transition: transform 0.3s ease; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-color); box-shadow: var(--shadow-md);
}
.service:hover { transform: translateY(-5px); border-color: var(--gold); }
.service img { width: 80px; height: 80px; margin-bottom: 1.5rem; transition: transform 0.3s; }
.service:hover img { transform: scale(1.1); }

.team { padding: 4rem 1rem; background-color: var(--light-yellow); text-align: center; }
.team-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; }
.team-member { max-width: 180px; text-align: center; transition: transform 0.3s; }
.team-member:hover { transform: scale(1.05); }
.team-member img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 2px solid var(--black); box-shadow: var(--shadow-md); }


/* ========================================= */
/* 6. ANFAHRT & KONTAKT                     */
/* ========================================= */
.anfahrt { text-align: center; padding: 4rem 2rem; background-color: #f9f9f9; }
.maps { display: flex; justify-content: center; margin-top: 2rem; }
#display-google-map { width: 100%; max-width: 900px; height: 450px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }

/* Google Maps Platzhalter Styles */
.map-placeholder {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
.map-consent-overlay {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.contact { padding: 4rem 2rem; background-color: var(--background-color); text-align: center; }
.input-wrapper {
    width: fit-content; height: 50px; border-radius: 25px; padding: 4px; box-sizing: border-box;
    display: flex; align-items: center; background-color: #292524; margin: 1rem auto; max-width: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.icon { width: 30px; fill: rgb(255, 255, 255); margin-left: 8px; transition: all 0.3s; flex-shrink: 0; }
.input {
    flex: 1; min-width: 0; max-width: 400px; height: 100%; display: flex; border: none; outline: none;
    padding-left: 10px; padding-right: 10px; background-color: transparent; color: white; font-size: 1rem;
    align-items: center; justify-content: center; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.e-rev { unicode-bidi: bidi-override; direction: rtl; }
.Subscribe-btn {
    height: 100%; width: 95px; border: none; border-radius: 15px; color: rgb(0, 0, 0); cursor: pointer;
    background-color: #ffffff; font-weight: 500; overflow: hidden; display: flex; align-items: center;
    justify-content: center; position: relative; transition: all 0.3s; text-decoration: none; flex-shrink: 0;
}
.arrow { position: absolute; margin-right: 150px; transition: all 0.3s; }
.input-wrapper:active .icon { transform: scale(1.3); }
.Subscribe-btn:hover { color: white; }
.Subscribe-btn:hover .arrow { margin-right: 0; animation: jello-vertical 0.9s both; transform-origin: right; }
.Subscribe-btn:hover .mailicon { display: none; }
@keyframes jello-vertical {
    0% { transform: scale3d(1, 1, 1); } 30% { transform: scale3d(0.75, 1.25, 1); }
    40% { transform: scale3d(1.25, 0.75, 1); } 50% { transform: scale3d(0.85, 1.15, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

@media (max-width: 480px) {
    .contact { padding: 3rem 1rem; }
    .input-wrapper { width: 100%; }
    .input { font-size: 0.85rem; padding: 0 5px; }
    .Subscribe-btn { width: 60px; }
    .Subscribe-btn .arrow { display: none; }
}


/* ========================================= */
/* 7. WIDGETS & SEITEN (Cards, Detail etc.) */
/* ========================================= */

/* Theater Cards */
.theater-container, .jugendtheater-container { margin: 30px auto; max-width: 1400px; padding: 0 15px; }
.theater-header { text-align: center; margin-bottom: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; position: relative; z-index: 50; }
.theater-header h1 { font-family: 'Bavarian', sans-serif; font-size: 3.5rem; margin: 0; color: var(--black); }
.theater-grid, .jugendtheater-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 20px 0; position: relative; z-index: 1; }
.theater-card, .jugendtheater-card {
    position: relative; width: 250px; height: 350px; text-decoration: none; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--black); transition: transform 0.3s ease; background: black; z-index: 1;
}
.theater-card img, .jugendtheater-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; z-index: 1; }
.theater-card h3, .jugendtheater-card h3 {
    position: absolute; bottom: 0; width: 100%; text-align: center; background: rgba(0, 0, 0, 0.8);
    padding: 10px 0; font-size: 1.1rem; font-weight: bold; color: white; margin: 0; z-index: 2; transition: background 0.3s, color 0.3s;
}
.theater-card:hover, .jugendtheater-card:hover { transform: scale(1.05); z-index: 5; }
.theater-card:hover h3, .jugendtheater-card:hover h3 { background: rgba(255, 255, 255, 0.9); color: black; }

/* Starkbierfest */
.starkbier-container { margin: 30px; }
.starkbier-container .theater-header {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; padding: 2rem 1rem;
    margin-bottom: 3rem; position: relative; background-image: url('/images/bavarian1.svg'); background-repeat: repeat;
    border-top: 4px solid #0066b2; border-bottom: 4px solid #0066b2; background-color: #f8f8f8; z-index: 100;
}
.theater-header-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; width: 100%; }
.starkbier-container h1 {
    font-family: 'Bavarian', sans-serif; font-size: 48px; color: var(--black); text-shadow: 2px 2px #a8dadc;
    padding: 20px; border: 1px solid black; border-radius: 10px; background: white; margin: 0;
}
.starkbier-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 30px; z-index: 1; }
.starkbier-card {
    position: relative; width: 280px; height: 350px; text-decoration: none; color: white; border-radius: 8px; overflow: hidden;
    border: 2px solid #a8dadc; display: flex; align-items: center; justify-content: center; background: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 1;
}
.starkbier-card img { width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.starkbier-info { position: absolute; bottom: 0; width: 100%; text-align: center; background: rgba(0, 0, 0, 0.7); padding: 10px; z-index: 2; }
.starkbier-info h2 { font-family: 'Bavarian', sans-serif; font-size: 24px; color: white; margin: 0; }
.starkbier-info p { font-size: 14px; color: white; margin: 5px 0 0 0; }
.starkbier-card:hover { transform: scale(1.05); box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); z-index: 5; }
.starkbier-card:hover .starkbier-info { background: #1d3557; opacity: 0.9; }

/* Sort & Misc */
.sort-dropdown { position: relative; display: inline-block; z-index: 1000; }
.sort-button { background: white; border: 1px solid #ccc; padding: 0.6rem 1.5rem; border-radius: 30px; cursor: pointer; font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s; }
.sort-button:hover { border-color: var(--light-yellow); background: #fffdf5; }
.sort-menu { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 110%; background: white; border: 1px solid #ddd; box-shadow: var(--shadow-lg); border-radius: 12px; z-index: 2000; min-width: 200px; text-align: center; overflow: hidden; }
.sort-dropdown.open .sort-menu { display: block; }
.sort-menu a { display: block; padding: 0.8rem 1rem; color: var(--text-color); text-decoration: none; }
.sort-menu a:hover { background-color: #f8f8f8; color: var(--primary-color); }

/* Verein & Links & Downloads */
.verein { padding: 4rem 1rem; text-align: center; }
.verein h1 { text-align: center; margin-bottom: 2rem; }
.gruppenfoto-container { margin: 0 auto 3rem auto; max-width: 900px; }
.gruppenfoto { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); border: 4px solid white; }
.options-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 4rem; }
.option-card { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #fff; width: 220px; padding: 2rem; text-decoration: none; border-radius: 12px; box-shadow: var(--shadow-md); border: 2px solid transparent; transition: transform 0.3s; }
.option-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.option-card img { max-width: 80px; margin-bottom: 1rem; }
.verein-info { max-width: 850px; margin: 0 auto 5rem auto; padding: 4rem; background: #fff; box-shadow: var(--shadow-md); border: 1px solid #e0e0e0; position: relative; text-align: left; background-image: linear-gradient(#f8f8f8 1px, transparent 1px); background-size: 100% 2rem; }
.verein-info::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(to right, var(--light-yellow), var(--primary-color)); }
.verein-info p { font-size: 1.15rem; line-height: 2rem; margin-bottom: 2rem; color: #333; text-align: justify; }
.downloads { text-align: center; margin-bottom: 6rem; }
.downloads h2 { margin-bottom: 2rem; }
.download-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.download-card { display: flex; align-items: center; gap: 1rem; background: #292524; color: white; padding: 1rem 2rem; border-radius: 50px; text-decoration: none; font-weight: bold; transition: transform 0.3s ease, background 0.3s; box-shadow: var(--shadow-md); }
.download-card:hover { transform: translateY(-3px); background: var(--primary-color); }
.links-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
.link-card { background: var(--background-color); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid #eee; border-left: 5px solid var(--light-yellow); text-align: left; transition: transform 0.3s; }
.link-card:hover { transform: translateY(-5px); border-left-color: var(--primary-color); }
.link-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: bold; }
.link-card a { color: var(--link-blue); font-weight: bold; text-decoration: none; display: inline-block; margin-top: 0.5rem; word-break: break-word; font-size: 0.95rem; }
.link-card a:hover { text-decoration: underline; }

/* Termine, Karten, Kulturbote */
.termine { padding: 4rem 1rem; max-width: 1000px; margin: 0 auto; text-align: center; }
.termine-container { display: flex; flex-direction: column; gap: 1.5rem; }
.termin-card { display: flex; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.3s ease; border: 1px solid #eee; text-align: left; }
.termin-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); border-color: var(--gold); }
.termin-date-badge { background-color: var(--black); color: #fff; min-width: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.termin-date-badge .day { font-size: 2.2rem; font-weight: bold; line-height: 1; color: var(--gold); }
.termin-date-badge .month { font-size: 1rem; text-transform: uppercase; margin-top: 5px; font-weight: 600; }
.termin-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.termin-content h2 { margin: 0 0 0.5rem 0; font-size: 1.4rem; color: var(--black); font-family: 'FunnelDisplay', sans-serif; }
.termin-content .meta-info { font-size: 0.85rem; color: var(--primary-color); font-weight: bold; text-transform: uppercase; margin-bottom: 0.3rem; }
.termin-content .ort { font-weight: bold; color: #555; margin: 0 0 0.5rem 0; font-size: 0.95rem; }
.termin-content .beschreibung { font-size: 0.9rem; color: #666; margin: 0; }
.karten { padding: 4rem 1rem; max-width: 1000px; margin: 0 auto; text-align: center; }
.karten-intro { max-width: 800px; margin: 0 auto 3rem auto; font-size: 1.1rem; color: var(--text-color); }
.tickets-list { display: flex; flex-direction: column; gap: 1.5rem; }
.ticket-card { display: flex; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.3s ease; border: 1px solid #ddd; text-align: left; position: relative; }
.ticket-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.ticket-stub { background-color: var(--black); color: #fff; min-width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; border-right: 3px dashed #fff; position: relative; }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; right: -10px; width: 20px; height: 20px; background-color: var(--background-color); border-radius: 50%; }
.ticket-stub::before { top: -10px; } .ticket-stub::after { bottom: -10px; }
.ticket-stub .day { font-size: 2.2rem; font-weight: bold; line-height: 1; color: var(--gold); }
.ticket-stub .month { font-size: 1.2rem; font-weight: 600; text-transform: uppercase; }
.ticket-stub .time { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.8; }
.ticket-main { flex-grow: 1; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; flex-wrap: wrap; gap: 1rem; }
.ticket-info { flex: 1; min-width: 200px; }
.ticket-info h2 { margin: 0 0 0.3rem 0; font-size: 1.5rem; color: var(--black); font-family: 'FunnelDisplay', sans-serif; }
.ticket-action { display: flex; align-items: center; }
.btn-ticket { background-color: var(--gold); color: var(--black); padding: 0.7rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; border: 2px solid transparent; }
.btn-ticket:hover { background-color: var(--black); color: var(--gold); transform: scale(1.05); }
.status-badge { padding: 0.5rem 1rem; border-radius: 8px; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.no-tickets { padding: 3rem; background: #f9f9f9; border-radius: 12px; border: 1px dashed #ccc; }
.kulturbote-container { max-width: 1200px; margin: 3rem auto; padding: 0 1.5rem; }
.kulturbote-header { text-align: center; margin-bottom: 4rem; }
.kulturbote-header h1 { font-size: 3rem; margin-bottom: 0.5rem; color: var(--black); }
.kulturbote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.5rem; justify-content: center; }
.kulturbote-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.3s ease; border: 1px solid #eee; height: 100%; }
.kulturbote-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); border-color: var(--gold); }
.card-cover { background: linear-gradient(135deg, var(--light-yellow) 0%, var(--gold) 100%); height: 140px; display: flex; align-items: center; justify-content: center; position: relative; }
.cover-icon { width: 60px; height: 60px; color: var(--black); opacity: 0.8; }
.card-badge { position: absolute; top: 10px; right: 10px; background: var(--black); color: var(--gold); font-size: 0.7rem; font-weight: bold; padding: 2px 6px; border-radius: 4px; }
.card-content { padding: 1.5rem; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { margin: 0; font-size: 1.3rem; color: var(--black); font-family: 'FunnelDisplay', sans-serif; font-weight: bold; }
.card-year { font-size: 0.9rem; color: var(--light-gray); margin-top: 0.5rem; }
.read-more { margin-top: auto; padding-top: 1rem; font-size: 0.9rem; font-weight: bold; color: var(--primary-color); display: inline-block; }
.kulturbote-card.disabled { opacity: 0.6; cursor: not-allowed; }
.card-cover.grayscale { background: #e0e0e0; }

/* Detailseiten & Archiv */
.detail-page-container { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; position: relative; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--primary-color); font-weight: bold; text-decoration: none; font-size: 1rem; transition: transform 0.2s ease; }
.back-link:hover { transform: translateX(-5px); text-decoration: underline; }
.detail-header { text-align: center; margin-bottom: 2rem; }
.detail-header h1 { font-size: 3.5rem; margin-bottom: 0.5rem; color: var(--black); }
.detail-year { font-size: 1.2rem; color: var(--light-gray); font-family: 'FunnelDisplay', sans-serif; }
.detail-carousel-wrapper { margin-bottom: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 12px; overflow: hidden; background: #000; }
.carousel-container { position: relative; aspect-ratio: 16/9; width: 100%; display: flex; justify-content: center; align-items: center; background: #000; overflow: hidden; }
.carousel-slide { width: 100%; height: 100%; display: none; position: relative; justify-content: center; align-items: center; overflow: hidden; }
.carousel-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(20px) brightness(0.6); transform: scale(1.1); z-index: 1; }
.carousel-img { position: relative; width: 100%; height: 100%; object-fit: contain; z-index: 2; filter: drop-shadow(0 0 15px rgba(0,0,0,0.5)); }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); border: none; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 10; transition: background 0.3s ease; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(255, 255, 255, 0.2); }
.carousel-prev { left: 15px; } .carousel-next { right: 15px; }
.detail-content { line-height: 1.8; font-size: 1.1rem; color: var(--text-color); background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.detail-content p { margin-bottom: 1.5rem; }
@media (max-width: 768px) { .detail-header h1 { font-size: 2.5rem; } .carousel-container { aspect-ratio: 4/3; } .detail-content { padding: 1rem; } }

.bilderarchiv-page { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.main-title { text-align: center; font-size: 3.5rem; margin-bottom: 4rem; color: var(--black); text-shadow: 2px 2px 0px rgba(0,0,0,0.1); }
.bilderarchiv-container { display: flex; flex-direction: column; gap: 3rem; }
.archive-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #eaeaea; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.archive-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--light-yellow); }
.archive-header { background-color: #fcfcfc; padding: 1.2rem 2rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; }
.archive-header:hover { background-color: #fffdf5; }
.archive-header h2 { margin: 0; font-size: 1.8rem; color: var(--black); }
.icon-wrapper { background: #eee; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.archive-header:hover .icon-wrapper { background: var(--light-yellow); color: var(--black); }
.toggle-icon { font-size: 0.8rem; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.preview-strip { padding: 1.5rem 1rem; display: flex; align-items: center; gap: 1rem; background: #fff; position: relative; }
.preview-track-wrapper { overflow-x: auto; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none; flex: 1; scroll-behavior: smooth; mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); }
.preview-track-wrapper::-webkit-scrollbar { display: none; }
.preview-track { display: inline-flex; gap: 12px; padding: 0 10px; }
.preview-item { display: block; width: 160px; height: 110px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 2px solid transparent; transition: all 0.2s ease; position: relative; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.preview-item:hover { transform: scale(1.05); border-color: var(--gold); box-shadow: 0 5px 15px rgba(0,0,0,0.15); z-index: 10; }
.nav-btn { background: #fff; border: 1px solid #ddd; color: var(--black); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.2s; flex-shrink: 0; z-index: 2; }
.nav-btn:hover { background: var(--black); color: var(--gold); border-color: var(--black); transform: scale(1.1); }
.full-gallery { background-color: #fafafa; padding: 2rem; border-top: 1px solid #f0f0f0; animation: slideDown 0.4s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.gallery-desc { max-width: 800px; margin: 0 auto 2rem auto; text-align: center; color: #555; line-height: 1.6; font-size: 1.05rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.gallery-item { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; position: relative; background: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.card-footer { text-align: center; padding: 1rem; background: #fff; border-top: 1px solid #f5f5f5; color: var(--primary-color); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.2s; }
.card-footer:hover { background: #f9f9f9; color: var(--black); }
.empty-state { text-align: center; padding: 4rem; color: #888; }
@media (max-width: 768px) { .bilderarchiv-page { padding: 1.5rem 1rem; } .main-title { font-size: 2.5rem; margin-bottom: 2rem; } .archive-header h2 { font-size: 1.4rem; } .preview-item { width: 130px; height: 90px; } .nav-btn { width: 32px; height: 32px; } .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; } }


/* ========================================= */
/* 8. GOOGLE REVIEWS                        */
/* ========================================= */
.reviews {
    padding: 4rem 1rem;
    background-color: #fafafa; /* Leichtes Grau zur Abhebung */
    text-align: center;
}

.reviews h2 {
    margin-bottom: 3rem;
    font-weight: bold;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.review-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 2rem;
    width: 320px; /* Feste Breite für Kacheln */
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.author-info h3 {
    font-size: 1.1rem;
    margin: 0;
    font-family: 'FunnelDisplay', sans-serif;
    color: var(--black);
}

.author-info .role {
    font-size: 0.8rem;
    color: var(--light-gray);
    text-transform: uppercase;
    font-weight: bold;
}

.stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1; /* Drückt das Datum nach unten */
    margin-bottom: 1.5rem;
}

.review-footer {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.review-footer .date {
    font-size: 0.8rem;
    color: #888;
}

/* Mobile Anpassung Reviews */
@media (max-width: 768px) {
    .review-card {
        width: 100%;
        max-width: 400px;
    }
}


/* ========================================= */
/* 9. FOOTER                                */
/* ========================================= */
.footer {
    background: var(--black);
    color: #f1faee;
    padding: 3rem 2rem 1rem 2rem;
    text-align: center;
    margin-top: auto;
}

/* Haupt-Layout: Mobile = Spalte, Desktop = Grid */
.footer-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .footer-main-content {
        display: grid;
        /* 1fr (Spacer) - Auto (Mitte) - 1fr (Logo) */
        /* Dadurch bleibt die Mitte exakt in der Mitte */
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    /* Spacer ist auf Mobile unsichtbar */
    .footer-spacer {
        display: none;
    }
}


@media (min-width: 900px) {
    .footer-spacer {
        display: block;
    }
}

/* Mittlerer Block: Titel oben, Links unten */
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand {
    font-family: "Bavarian", sans-serif;
    font-size: 2rem;
    color: var(--gold);
    line-height: 1.1;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: #a8dadc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--light-yellow);
}

/* Logo Bereich rechts */
.footer-logo-container {
    display: flex;
    justify-content: center; /* Mobile: Mitte */
}

@media (min-width: 900px) {
    .footer-logo-container {
        justify-content: flex-end; /* Desktop: Rechts */
    }
}

/* WICHTIG: Überschreibungen für das Logo, damit keine Links/Linien sichtbar sind */
.made-by-lui a {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
    color: inherit !important; /* Keine blaue Linkfarbe */
    display: inline-block;
}

/* Macht den "Made by" Text weiß */
.made-by-lui span {
    color: #ffffff !important;
}

/* Der untere Copyright Balken */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: center;
    width: 100%;
}



/* ========================================= */
/* 10. GLOBAL MOBILE FIXES                  */
/* ========================================= */
@media (max-width: 768px) {
    /* Navbar & Menu */
    .burger-menu {
        display: flex; /* Menü Icon sichtbar machen */
        order: 2; /* Rechts neben Logo */
    }

    .nav-menu {
        display: none; /* Erstmal verstecken */
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--black);
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }

    .nav-menu.active { display: flex; } /* Zeigen wenn per JS aktiviert */

    /* Hero Section - The "Logo is the Title" Version */
    .hero {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem 3rem 1rem; /* Kompakteres Padding */
        gap: 1rem;
    }

    /* WICHTIG: Display Contents erlaubt es uns, die Kinder frei zu sortieren
       auch wenn sie eigentlich verschachtelt sind. */
    .hero-text,
    .hero-anim-2 {
        display: contents;
    }

    /* 1. Begrüßung ganz oben */
    .hero-text h1 {
        order: 1; /* Prio 1 */
        font-size: 1.8rem;
        margin-bottom: 0;
        /* Animation aufheben, da Wrapper (contents) weg ist,
           oder simple Sichtbarkeit erzwingen */
        opacity: 1; transform: none;
    }

    /* 2. Logo - Ersetzt den H2 Text */
    .hero-image {
        order: 2; /* Prio 2 (Zwischen H1 und P) */
        width: 100%;
        margin: 0.5rem 0;
        padding: 0;
        opacity: 1; transform: none;
    }
    .hero-image img {
        max-width: 260px; /* Gute Größe für Mobile */
        width: 100%;
        height: auto;
    }

    /* 3. Zweite Überschrift komplett WEG (steht ja im Logo) */
    .hero-text h2 {
        display: none;
    }

    /* 4. Text bleibt da */
    .hero-text p {
        order: 3; /* Prio 3 */
        display: block;
        font-size: 1rem;
        max-width: 400px;
        margin: 0 auto 1.5rem auto;
        opacity: 1; transform: none;
    }

    .news-alert {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
        width: 100%;
    }
    .news-badge {
        font-size: 0.7rem;
    }

    /* 5. Buttons - Breit & untereinander */
    .hero-buttons {
        order: 4; /* Prio 4 */
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 10px;
        margin: 0 auto;
        opacity: 1; transform: none;
    }
    .btn {
        width: 100%;
        margin: 0;
        padding: 0.9rem;
    }

    .instagram {
        gap: 1rem; margin-top: -20px; flex-direction: column;
        overflow-x: hidden; width: 100%; padding-left: 1rem; padding-right: 1rem;
    }
    .instagram-container {
        min-width: 0; width: 100%; max-width: 100% !important;
        padding: 0.5rem 0.8rem;
        /* Wir nutzen space-between, damit Icon rechts und Text links bleibt */
        justify-content: space-between;
    }

    /* NEU: Text näher ans Profilbild schieben -> Mehr Platz rechts */
    .profile-wrapper {
        margin-right: 0.5rem; /* War vorher 1rem. Das zieht den Text nach links. */
    }

    .instagram-text {
        min-width: 0;
        word-break: break-word;
        margin-right: 0.5rem; /* Erzwingt etwas Luft zum Icon rechts */
    }

    /* NEU: Schriftart minimal kleiner auf Handys, damit lange Namen passen */
    .instagram-text h3 {
        font-size: 0.9rem;
    }

    .instagram-icon-wrapper {
        margin-left: 0; /* Auto entfernen, damit wir die Kontrolle behalten */
        flex-shrink: 0; /* Icon darf nicht gequetscht werden */
    }

    .instagram-prompt { flex-direction: row; align-items: center; justify-content: center; gap: 10px; margin-top: 0.5rem; }
    .instagram-follow-text { font-size: 1.2rem; margin-bottom: 0; text-align: right; line-height: 1.1; }
    .instagram-arrow { transform: rotate(-45deg) scaleX(-1); width: 50px; margin-top: 0; animation: pointAtButton 1.5s ease-in-out infinite alternate; }

    /* Restliche Mobile Anpassungen */
    .verein-info { padding: 2rem 1.5rem; }
    .starkbier-container .theater-header { flex-direction: column; }
    .termin-card { flex-direction: row; }
    .termin-date-badge { min-width: 80px; padding: 0.8rem; }
    .ticket-card { flex-direction: column; }
    .ticket-stub { flex-direction: row; gap: 1rem; min-width: auto; border-right: none; border-bottom: 3px dashed #fff; }
    .ticket-stub::before { top: auto; bottom: -10px; left: -10px; }
    .ticket-stub::after { top: auto; bottom: -10px; right: -10px; }
}

@media (max-width: 768px) {

    /* 1. ÜBERSCHRIFTEN (Karten, Termine, Links) */
    /* Wir überschreiben den Inline-Style (3rem) mit !important */
    h1.font-bavarian {
        font-size: 2.0rem !important; /* Deutlich kleiner für Mobile */
        word-wrap: break-word;        /* Erzwingt Umbruch bei langen Wörtern */
        hyphens: auto;                /* Silbentrennung erlauben */
        line-height: 1.2;             /* Zeilenabstand etwas lockern */
        padding: 0 10px;              /* Sicherheitsabstand zum Rand */
        overflow-wrap: break-word;    /* Moderne Variante für Umbruch */
    }

    /* 2. LINKS SEITE (Boxen & Lange URLs) */
    .links-container {
        /* Erzwingt eine einzige Spalte, die sich der Breite anpasst */
        grid-template-columns: 1fr !important;
        display: flex;       /* Flexbox ist auf Mobile oft stabiler als Grid */
        flex-direction: column;
        padding: 0 0.5rem;   /* Weniger Außenabstand */
    }

    .link-card {
        width: 100%;         /* Volle verfügbare Breite */
        padding: 1.5rem;     /* Innenabstand reduzieren (war 2rem) */
        box-sizing: border-box; /* Wichtig: Padding rechnet nicht zur Breite dazu */
    }

    /* Lange Links und Titel bändigen */
    .link-card h3 {
        word-break: break-word; /* Titel darf umbrechen */
        font-size: 1.1rem;      /* Etwas kleiner */
    }

    .link-card a {
        /* WICHTIG: Lange URLs (https://...) gnadenlos umbrechen */
        word-break: break-all;
        font-size: 0.9rem;
        display: block;         /* Damit der Break funktioniert */
    }
}

/* Ergänzung am Ende der style.css für Mobile Email Animation */
@media (max-width: 480px) {
    /* 1. Container auf volle Breite zwingen */
    .input-wrapper {
        width: 100% !important;
        padding: 4px 4px 4px 10px; /* Links etwas Luft, da Icon weg ist */
    }

    /* 2. Icon ausblenden, um Platz für Text zu gewinnen */
    .input-wrapper .icon {
        display: none;
    }

    /* 3. Textfeld maximalen Platz geben und Schriftgröße anpassen */
    .input {
        width: 100%;
        padding: 0 5px; /* Minimales Padding */

        /* WICHTIG: Schriftgröße verringern, damit die lange Adresse passt */
        font-size: 0.8rem !important;

        /* Damit sichergestellt ist, dass nichts abgeschnitten wird */
        text-overflow: clip;
        overflow: visible;
    }

    /* Der Button bleibt fest, darf aber nicht schrumpfen */
    .Subscribe-btn {
        flex-shrink: 0;
    }
}

/* Für ganz kleine Handys (z.B. iPhone SE) noch einen Tick kleiner */
@media (max-width: 360px) {
    .input {
        font-size: 0.7rem !important;
    }
}
/* Die Bewegung definieren */
@keyframes email-scroll {
    0% { transform: translateX(10px); }  /* Startposition */
    100% { transform: translateX(50px); } /* Endposition - Wert ggf. anpassen je nach Länge */
}