/* chronik.css */
.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
    position: relative;
}

/* Jahr-Überschriften mit großem Punkt */
.year-heading {
    font-size: 22px;
    font-weight: bold;
    color: #007b5f;
    margin: 00px 0 10px;
    text-align: left;
    width: 100%;
    padding-left: 10px;
    position: relative;
}

.year-heading::before {
    content: "";
    position: absolute;
    left: -30px; /* Punkt genau mittig auf der Linie */
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: #007b5f;
    border-radius: 50%;
}

/* Liste der Ereignisse */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Einzelne Ereignis-Einträge */
.event-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-left: 10px;
    position: relative;
}
.event-item-headline {
    font-size: 20px;
    color: #007b5f;
    text-align: left;
    font-weight: bold;
}

/* Punkt für Ereignisse (kleiner als Jahr) */
.event-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 10px; /* Punkt nur bei Text */
    width: 10px;
    height: 10px;
    background-color: #007b5f;
    border-radius: 50%;
}
.event-details {
    display: flex;
    flex-direction: column;
    max-width: 100%; /* Verhindert Überlauf */
}
/* Ereignis-Text */
.event-text {
    font-size: 18px;
    color: #555c5f; /* Schönes Grau für Texte */
    text-align: left;
}
.event-image {
    margin-top: 10px;
    width: 100%; /* Passt sich der Eintragsbreite an */
}

.event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.event-image::before {
    content: none; /* Entfernt den Punkt für das Bild */
}

.event-link {
    margin-top: 5px;
    text-align: left;
}

.event-link a {
    display: inline-block;
    color: #007b5f; /* Vereinsgrün */
    font-weight: bold;
    font-size: 14px;
    text-decoration: underline; /* Unterstrich */
}

.event-link a:hover {
    color: #005f47; /* Dunkleres Grün bei Hover */
}

/* Button Styling */
.read-more-btn {
    background-color: transparent;
    border: none;
    color: #007b5f;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
}

.read-more-btn:hover {
    color: #005f47;
    text-decoration: underline;
}
/* Link "Weiterlesen" */
.toggle-text {
    color: #007b5f !important;
    font-weight: bold;
    text-decoration: none;
    margin-left: 5px;
    cursor: pointer;
    font-size: 16px;
}

.toggle-text:hover {
    text-decoration: underline;
}

.event-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}



/*Container für Chronik und Navigation */
/* Container für Chronik und Navigation */
.chronik-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1100px; /* Begrenzte maximale Breite für bessere Optik */
    margin: 0 auto; /* Zentrierung */
    position: relative;
    padding: 0 20px; /* Seitlicher Abstand für mehr Luft */
}
/* Jahr-Navigation: Jetzt kompakter & ohne Hintergrund */
#year-nav-container {
    position: fixed;
    left: calc(50% + 430px); /* Position bleibt neben den Events */
    top: 190px; /* Abstand zur Überschrift */
    z-index: 1000;
    padding: 10px; /* Innenabstand für bessere Optik */
    border: 2px solid rgba(0, 123, 95, 0.4); /* Dünne, dezente Border */
    border-radius: 10px; /* Abgerundete Ecken */
    background-color: rgba(255, 255, 255, 0.9); /* Leicht transparent für eleganten Look */
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1); /* Sanfter Schatten für 3D-Effekt */

}

/* Jahr-Buttons */
.year-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Verteilt auf zwei Spalten */
    max-width: 220px; /* Anpassung für kleinere Displays */
    gap: 10px;
}

/* Jede Spalte */
.year-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1; /* Beide Spalten haben gleiche Breite */
}
/* Standard-Jahr-Button */
.year-button {
    background: none;
    border: none;
    color: rgba(0, 123, 95, 0.7);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
    text-decoration: none;
    text-align: left;
}


/* Hover-Effekt */
.year-button:hover {
    color: #007b5f;
    opacity: 1; /* Macht es beim Hover deutlicher sichtbar */
    transform: translateX(3px); /* Leichtes Verschieben für Interaktivität */
}

/* Aktives Jahr bleibt farblich hervorgehoben */
.year-button.active {
    color: #007b5f !important; /* Bleibt in Hover-Farbe */
    font-weight: bold;
    opacity: 1; /* Kein Transparenz-Effekt für aktive Jahr */

    background: linear-gradient(to right, rgba(0, 123, 95, 0.2), rgba(0, 123, 95, 0));
    padding-left: 8px; /* Leicht nach rechts eingerückt */
    border-left: 3px solid #007b5f; /* Schlanke Markierung */
}

.year-dropdown {
    display: none; /* Standardmäßig ausblenden */
    width: 100%;
    max-width: 200px;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #007b5f;
    border-radius: 5px;
    background: linear-gradient(to bottom, #76b1d8, #5a96c1); /* Schöner Farbverlauf */
    cursor: pointer;
    color: rgb(2, 65, 33);
    font-weight: bold;
    appearance: none; /* Versteckt das Standard-Dropdown-Styling */
    -webkit-appearance: none; /* Safari Fix */
    -moz-appearance: none; /* Firefox Fix */
}

/* 🎨 Dropdown-Pfeil durch eigenes Symbol ersetzen */
.year-dropdown::after {
    content: "▼"; /* Alternativer Pfeil */
    font-size: 14px;
    position: absolute;
    right: 10px;
    color: #007b5f;
}

/* Hover-Effekt */
.year-dropdown:hover {
    background: linear-gradient(to bottom, #5a96c1, #76b1d8); /* Umgekehrter Verlauf */
    border-color: #005f47;
}

/* Aktives (fokussiertes) Dropdown */
.year-dropdown:focus {
    outline: none;
    border: 2px solid #005f47;
    box-shadow: 0px 0px 8px rgba(0, 123, 95, 0.4);
}

/* 🎨 Scrollbar für moderne Browser (Webkit-basierte, Safari, Chrome, Edge) */
.year-dropdown::-webkit-scrollbar {
    width: 10px;
}

/* Hintergrund der Scrollbar */
.year-dropdown::-webkit-scrollbar-track {
    background: #007b5f;
    border-radius: 5px;
}

/* Griff (der bewegliche Teil) */
.year-dropdown::-webkit-scrollbar-thumb {
    background: #007b5f;
    border-radius: 5px;
    border: 2px solid #5a96c1;
}

/* Scrollbar-Griff beim Hover */
.year-dropdown::-webkit-scrollbar-thumb:hover {
    background: #005f47;
}

/* 📌 Fallback für Android/Touchscreens */
.year-dropdown {
    scrollbar-width: thin;  /* Unterstützt Firefox */
    scrollbar-color: #007b5f #088442;
}
@media screen and (max-width: 1100px) {
    .year-dropdown {
        display: block;
        margin: 10px auto;
        overflow-y: auto; /* Falls es nicht automatisch aktiviert ist */
        -webkit-overflow-scrolling: touch; /* Flüssigeres Scrollen auf Android/iOS */
    }

    #year-nav-container {
        display: none; /* Versteckt die Desktop-Jahr-Leiste */
    }


    /* Spezielles Android-Scrollbar-Styling */
    .year-dropdown::-webkit-scrollbar {
        display: none; /* Versteckt den Scrollbalken, aber behält das Scrollen */
    }
}

@media screen and (max-width: 768px) {
    /* 🏑 Chronik-Wrapper: Keine unnötigen Ränder */
    .chronik-wrapper {
        padding: 10px;
    }

    /* 📏 Noch schmalere Timeline */
    .timeline-container {
        padding-right: 5px; /* Falls rechts zu eng */
    }

    /* 📍 Jahreszahlen & Punkte kompakter */
    .year-heading {
        padding-left: 10px; /* Weniger Abstand zwischen Rand und Jahreszahl */
        font-size: 18px; /* Etwas kleiner für bessere Lesbarkeit */
    }

    .year-heading::before {
        left: -10px; /* Punkt näher an die Jahreszahl schieben */
        width: 10px; /* Kleineren Punkt für kompakteres Layout */
        height: 10px;
    }

    /* 📍 Ereignis-Einträge: Weniger Abstand links */
    .event-item {
        padding-left: 10px; /* Noch dichter an den Rand */
    }

    .event-item::before {
        left: -8px; /* Punkt näher an den Text */
        width: 7px;
        height: 7px;
    }
    ul {
       padding-left: 15px;
    }



}
