/* --- FARBEN UND GRUNDEINSTELLUNGEN --- */
:root {
    /* Trage hier die Farbcodes deiner alten Joomla-Seite ein! */
    --primär-farbe: #ffffff;  
    --footer-bg: #2c3e50;
    --header-text: #333333;
    --sekundär-farbe: #a62100e4;  /* Akzentfarbe für Buttons */
    --hintergrund-hell: #f4f4f4;
    --text-farbe: #333333;
    --text-weiss: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Weiches Scrollen bei Klick auf Links */
}

body {
    color: var(--text-farbe);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
header {
    background-color: rgba(255, 255, 255, 0.9); /* Weiß mit 90% Deckkraft */
    color: var(--header-text);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; /* Muss ganz oben liegen */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px; /* Etwas weniger Padding oben/unten wegen Logo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Leichter Schatten für bessere Lesbarkeit */
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px; /* Maximale Höhe des Logos anpassen, damit die Leiste nicht zu dick wird */
    width: auto;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--sekundär-farbe);
}

/* --- BURGER MENÜ (Mobiles Menü) --- */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--header-text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION & SLIDESHOW (NEU) --- */
.hero {
    height: 70vh; 
    position: relative; /* Wichtig als Bezugspunkt für die absoluten Kinder */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-weiss);
    padding-top: 80px; 
    margin-top: 80px;
    overflow: hidden; /* Verhindert Scrollbalken, falls Bilder minimal zu groß sind */
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Liegt ganz hinten */
}

/* 1. Die Slideshow-Bilder (Ebene 1 - ganz unten) */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1; 
}

/* Nur das aktive Bild einblenden */
.slide.active {
    opacity: 1;
}

/* 2. Das Overlay / Der Filter (Ebene 2 - über den Bildern) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Der dunkle Verlauf für bessere Lesbarkeit */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 50%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2; 
}

/* 3. Der Text-Inhalt (Ebene 10 - ganz oben) */
.hero-content {
    position: relative; /* Erforderlich, damit z-index wirkt */
    z-index: 10; 
    padding: 20px;
    /* Verstärkter Schatten für maximale Lesbarkeit */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Klasse zum einfachen Verstecken von Sektionen */
.hidden {
    display: none !important;
}

/* Der äußere Bereich sorgt für den Abstand zur Slideshow */
.news-area {
    padding-top: 60px;    /* Abstand zur Slideshow oben */
    padding-bottom: 10px; /* Abstand nach unten */
    display: flex;        /* Hilft beim Zentrieren der Box */
    justify-content: center;
}

/* Die Box selbst kümmert sich nur um ihr Aussehen */
.highlight-box {
    position: relative; /* Wichtig, damit das X absolut darin positioniert werden kann */
    background-color: #ffffff; 
    border: 1px solid var(--sekundär-farbe);
    border-radius: 10px;
    padding: 40px;
    max-width: 900px;
    width: 90%;           /* Damit sie auf Handys nicht den Rand berührt */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;   /* Zentriert den Text in der Box */
}

/* Optional: Damit die Überschrift in der Box nicht so riesig ist */
.highlight-box h2 {
    margin-bottom: 20px;
    color: var(--sekundär-farbe);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--sekundär-farbe); /* Wird rot beim Drüberfahren */
}


/* Nur h2-Überschriften, die direkt am Anfang einer Section stehen */
section > h2, 
.content-section > h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: var(--header-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

/* Der rote Strich nur für diese Haupt-Überschriften */
section > h2::after,
.content-section > h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--sekundär-farbe);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Mobil-Anpassung  */
@media (max-width: 768px) {
    section > h2, 
    .content-section > h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
}

/* --- BUTTONS & SECTIONS  --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--sekundär-farbe);
    color: var(--text-weiss);
    text-decoration: none;
    border-radius: 50px; /* Rundere Buttons wirken moderner */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-shadow: none; /* Kein Schatten auf dem Button-Text */
}

.btn:hover {
    background-color: #c0392b; /* Etwas dunkler beim Drüberfahren */
    transform: translateY(-2px); /* Leichter Hebe-Effekt */
}

.content-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    /* Verhindert, dass der Header die Überschrift verdeckt */
    scroll-margin-top: 80px;
}



.bg-light {
    background-color: var(--hintergrund-hell);
    border-radius: 10px;
}

.termine-liste {
    list-style: none;
    max-width: 600px;
    margin: 40px auto 20px auto;
    text-align: left;
}

.termine-liste li {
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid var(--sekundär-farbe);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.1rem;
}


#calendar {
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #333;
}

/* Schriftgröße und Zeilenabstand im gesamten Kalender reduzieren */
.fc {
    font-size: 0.9rem !important; 
}

/* Speziell für die Monatsansicht (DayGrid) */
.fc-daygrid-event {
    white-space: normal !important; /* Textumbruch erlauben */
    line-height: 1.1 !important;    /* Sehr enger Zeilenabstand */
    margin: 1px 0 !important;       /* Weniger Abstand zwischen Terminen */
}

/* Den Container für den Event-Titel schrumpfen */
.fc-event-main {
    padding: 1px 2px !important;
}

/* Falls die Uhrzeit angezeigt wird, diese noch kleiner oder in eine eigene Zeile */
.fc-event-time {
    font-weight: bold;
    font-size: 0.7rem;
    display: block; /* Uhrzeit über dem Text (spart Breite) */
}

.fc-event-title {
    font-weight: normal !important;
}

/* Verhindert das Abschneiden durch "Punkt-Punkt-Punkt" */
.fc-event-title-container {
    text-overflow: clip !important;
    overflow: visible !important;
}

/* Styling der Listenansicht */
.fc-list-day-cushion {
    background-color: #f8f9fa !important; /* Hellgrauer Balken für das Datum */
    color: var(--header-text) !important;
    font-weight: bold;
}

.fc-list-event:hover td {
    background-color: #fff5f5 !important; /* Dezenter Rotschimmer beim Drüberfahren */
    cursor: pointer;
}

.fc-list-event-title {
    font-weight: 500;
}



/* Farben der Buttons an deine Seite anpassen */
.fc .fc-button-primary {
    background-color: var(--sekundär-farbe);
    border-color: var(--sekundär-farbe);
}

.fc .fc-button-primary:hover {
    background-color: #a00000; /* Etwas dunkleres Rot */
}


.gallery-nav {
    margin-bottom: 30px;
    padding-top: 20px;;
}

.gallery-btn {
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid var(--sekundär-farbe);
    background: none;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
}

.gallery-btn.active, .gallery-btn:hover {
    background-color: var(--sekundär-farbe);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Falls ein Bild nicht zum Filter passt */
.gallery-item.hide {
    display: none;
}


/* Das schwarze Hintergrund-Overlay */
.lightbox {
    display: none; /* Standardmäßig unsichtbar */
    position: fixed;
    z-index: 2000; /* Über dem Header (1000) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* Das vergrößerte Bild */
.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: default;
}

/* Der Schließen-Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--sekundär-farbe);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none; /* Verhindert Markieren des Textes beim Klicken */
    transition: 0.3s;
    z-index: 2010;
}

.lightbox-arrow:hover {
    color: var(--sekundär-farbe);
    background-color: rgba(0,0,0,0.5);
}

.left { left: 10px; }
.right { right: 10px; }

/* Auf dem Handy die Pfeile etwas kleiner machen */
@media screen and (max-width: 600px) {
    .lightbox-arrow { font-size: 30px; padding: 10px; }
}


.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2rem;
    border-radius: 8px;
}

.more-content.hidden {
    display: none; /* Versteckt den Text */
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--sekundär-farbe);
    color: var(--sekundär-farbe);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--sekundär-farbe);
    color: white;
}

.intro-text p {
    font-size: 1.2rem;
    margin-top: 10px;
    margin-bottom: 10px;
}


/*Info-Section */
.info-section {
    background-color: #f4f4f4; /* Das gewünschte Hellgrau */
    padding: 60px 20px;
    color: #333; /* Dunkler Text für Lesbarkeit auf Grau */
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Die weißen Karten auf dem grauen Grund */
.info-box {
    background: #ffffff; 
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    border-top: 4px solid var(--sekundär-farbe); /* Roter Akzent oben */
    margin-top: 10px;
}

.info-box h3 {
    color: #222; /* Fast Schwarz für die Überschrift */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-box p {
    color: #555; /* Etwas weicheres Grau für den Beschreibungstext */
    margin-bottom: 20px;
}

/* Die Download-Balken (Beitrittserklärung etc.) */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fdfdfd;
    margin-bottom: 10px;
    text-decoration: none;
    color: #222;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: #fff;
    border-color: var(--sekundär-farbe);
    color: var(--sekundär-farbe);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Das Gitter für die Jahreszahlen (Musizeitungen) */
.zeitungs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.zeitungs-grid a {
    display: block;
    background: #eee; /* Neutrales Grau statt Weiß */
    color: #333;
    text-align: center;
    padding: 8px 5px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.zeitungs-grid a:hover {
    background: var(--sekundär-farbe); /* Dein Rot beim Drüberfahren */
    color: #ffffff; /* Text wird dann Weiß */
}

.more-years {
    grid-column: span 4;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}


.archiv-button {
    display: block;
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    background: transparent;
    border: 1px dashed #ccc;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.archiv-button:hover {
    background: #eee;
    color: var(--sekundär-farbe);
    border-style: solid;
}

#infos {
    scroll-margin-top: 80px; /* Exakt auf die Header-Höhe abgestimmt */
}

/* --- YOUTUBE BOX SPEZIAL --- */

.youtube-box {
    border-top: 4px solid var(--sekundär-farbe);
}

/* Der Link-Container um das Vorschaubild */
.yt-foto-link {
    text-decoration: none;
    display: block;
    border-radius: 6px;
    overflow: hidden; /* Wichtig für den Zoom-Effekt */
    margin-bottom: 15px;
}

.yt-foto-preview {
    width: 100%;
    height: 150px;
    background-image: url('fotos/Weihnachtskonzert 2025/vorschau.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.4s ease; /* Sanfter Zoom */
    cursor: pointer;
}

/* Dunkler Schleier über dem Foto */
.yt-foto-preview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1;
}

/* Das Play-Icon in der Mitte */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--sekundär-farbe);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    padding-left: 4px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

/* Hover-Effekte: Wenn man über das Bild ODER die Box fährt */
.yt-foto-link:hover .yt-foto-preview {
    transform: scale(1.05);
}

.yt-foto-link:hover .yt-foto-preview::before {
    background: rgba(0, 0, 0, 0.5);
}

.yt-foto-link:hover .play-overlay {
    background: var(--sekundär-farbe);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Der Button-Link unter dem Bild */
.yt-link {
    margin-top: 5px;
}

.yt-link:hover {
    background-color: #fffafa;
    border-color: var(--sekundär-farbe);
    color: var(--sekundär-farbe);
}

.yt-icon {
    background: var(--sekundär-farbe);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.7rem;
    padding-left: 2px;
}

/*.......Ende Info-Section................*/


footer {
    background-color: var(--footer-bg);
    color: var(--text-weiss);
    text-align: center;
    padding: 40px 20px;
}

footer a {
    color: var(--text-weiss);
    text-decoration: underline;
}

/* Chronik Styling */
.chronik-layout {
    padding: 20px 0;
    max-width: 1100px; /* Ein Tick schmaler für bessere Lesbarkeit von Text */
    margin: 0 auto;
}

.chronik-p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
    text-align: justify; /* Blocksatz für ruhigeres Schriftbild */
}

.chronik-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* Grid für die Listen */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.history-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.history-card h4 {
    margin-top: 0;
    border-bottom: 2px solid var(--sekundär-farbe);
    padding-bottom: 10px;
    color: #333;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}

.history-list li span {
    color: #888;
    margin-right: 15px;
    min-width: 90px;
}

.active-entry {
    font-weight: bold;
    color: var(--sekundär-farbe);
}

/* Aktuelle Vorstandschaft */
.current-management {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mgmt-item {
    font-size: 0.9rem;
}

/* Container für Chronik-Bilder */
.chronik-img-container {
    max-width: 400px; /* Standardbreite im Textfluss */
    margin-bottom: 20px;
    background: #fff;
    padding: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 4px;
}

.chronik-img-container img {
    width: 100%;
    max-width: 600px; /* Absolute Obergrenze Breite */
    max-height: 400px; /* Absolute Obergrenze Höhe */
    height: auto;
    object-fit: cover; /* Verhindert Verzerrung bei festen Maßen */
    display: block;
}

/* Spezialfall für das Banner-Bild (darf breiter sein, aber nicht zu hoch) */
.chronik-img-full {
    width: 100%;
    max-width: 1100px; /* Breite der Chronik-Sektion */
    margin: 30px 0;
}

.chronik-img-full img {
    width: 100%;
    max-height: 400px; /* Auch hier Begrenzung der Höhe */
    object-fit: cover;
    border-radius: 6px;
}

/* Float-Klassen für den Textfluss */
.float-right {
    float: right;
    margin-left: 25px;
}

.float-left {
    float: left;
    margin-right: 25px;
}

/* Bildunterschriften */
.img-caption {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.2;
}

/* Responsive Fix: Auf Handys mittig und volle Breite */
@media (max-width: 768px) {
    .float-left, .float-right {
        float: none;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }
    
    .chronik-img-container img {
        max-height: 300px; /* Auf Handys etwas flacher */
    }
}

/* Wichtig: Hebt den Float nach dem Textbereich auf */
.chronik-body::after {
    content: "";
    clear: both;
    display: table;
}


/* --- MOBILE ANPASSUNG --- */
@media screen and (max-width: 768px) {
    header {
        padding: 10px 20px;
    }
    
    .logo-img {
        height: 40px; /* Kleineres Logo auf Handy */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Höhe des Headers anpassen */
        left: 0;
        background-color: var(--primär-farbe);
        text-align: center;
        padding-bottom: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}