
/* =========================================================
   Berichtsarchiv 1998–2019
   Ergänzung zum bestehenden Stylesheet, gleiche Design Tokens.
   ========================================================= */

/* --- Hinweisbox Archiv --------------------------------- */
.archiv-hinweis {
    background: var(--color-bg-soft);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin: 0 0 1.8rem;
    line-height: 1.65;
    color: var(--color-text-soft);
}
.archiv-hinweis p { margin: 0; }
.archiv-hinweis strong { color: var(--color-text); }
.archiv-hinweis--klein {
    margin-top: 2.2rem;
    font-size: .9rem;
    padding: .8rem 1rem;
}

.archiv-filter-aktiv {
    background: var(--color-warn-bg);
    border: 1px solid var(--color-warn-border);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    margin: 0 0 1.4rem;
    font-size: .92rem;
}

.archiv-zurueck { margin: 2rem 0 0; }

/* --- Jahrgangsauswahl ---------------------------------- */
.jahr-nav {
    margin: 0 0 2.4rem;
    padding: 1rem 0 1.2rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.jahr-nav-label {
    display: block;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-text-soft);
    margin-bottom: .6rem;
}
.jahr-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0;
    padding: 0;
}
.jahr-nav a {
    display: inline-block;
    padding: .34rem .7rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-soft);
    text-decoration: none;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.jahr-nav a:hover,
.jahr-nav a:focus-visible {
    background: var(--color-bg-band);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.jahr-nav a.aktiv {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* --- Jahrgang ------------------------------------------ */
.jahrgang { margin: 0 0 2.6rem; }

.jahrgang-titel {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: 1.45rem;
    padding-bottom: .5rem;
    margin-bottom: .2rem;
    border-bottom: 2px solid var(--color-accent);
}
.jahrgang-anzahl {
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

/* --- Berichtsliste ------------------------------------- */
.bericht-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bericht-liste li { border-bottom: 1px solid var(--color-border); }
.bericht-liste li:last-child { border-bottom: 0; }

.bericht-eintrag {
    display: grid;
    grid-template-columns: 3.6rem 1fr auto;
    align-items: baseline;
    gap: 1rem;
    padding: .72rem .3rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--trans), color var(--trans);
}
.bericht-eintrag:hover,
.bericht-eintrag:focus-visible {
    background: var(--color-bg-soft);
    color: var(--color-accent-strong);
}
.bericht-datum {
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-soft);
    text-align: right;
}
.bericht-datum--leer { color: var(--color-border); }
.bericht-titel { line-height: 1.45; }
.bericht-eintrag:hover .bericht-titel { text-decoration: underline; }
.bericht-bilder {
    font-size: .78rem;
    color: var(--color-text-soft);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* --- Einzelansicht ------------------------------------- */
.page-head--bericht h1 { max-width: 34ch; }

.content--bericht { max-width: 780px; }

.bericht-text {
    line-height: 1.72;
    font-size: 1.02rem;
    /*
     * Turn 44: Im Berichtstext fehlte jede Trennregel. Ein einzelnes langes
     * Wort — gemessen an Bericht 2020-budo-akademie-1010 am 22.11.2026 —
     * schob den Absatz auf 346px bei 320px Verfuegbarkeit, die Seite bekam
     * 6px horizontalen Ueberlauf. Die H1 hatte die Regel seit Turn 36, der
     * Fliesstext nicht. hyphens trennt an Silbengrenzen, overflow-wrap ist
     * der Notausgang fuer Woerter, die auch damit nicht passen (z. B. URLs).
     */
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.bericht-text p { margin: 0 0 1.05rem; }
.bericht-text h1,
.bericht-text h2,
.bericht-text h3,
.bericht-text h4 {
    margin: 1.9rem 0 .8rem;
    line-height: 1.3;
}
.bericht-text h1 { font-size: 1.5rem; }
.bericht-text h2 { font-size: 1.3rem; }
.bericht-text h3 { font-size: 1.12rem; }
.bericht-text ul,
.bericht-text ol { margin: 0 0 1.05rem 1.4rem; }
.bericht-text li { margin-bottom: .35rem; }
.bericht-text blockquote {
    margin: 0 0 1.1rem;
    padding: .4rem 0 .4rem 1.1rem;
    border-left: 3px solid var(--color-accent-light);
    color: var(--color-text-soft);
    font-style: italic;
}
.bericht-text hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 1.8rem 0;
}

/* Bilder im Berichtstext */
.bericht-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.1rem 0;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
}
/* Der Altbestand setzte Bilder teils als eigene Zeile ohne Absatz */
.bericht-text p > img:only-child { margin: .6rem 0; }

/* Bilder, die im Altbestand auf Text umflossen, hier nicht mehr umfließen:
   bei 2700 Bildern unterschiedlicher Breite ist Fließtext die robustere Wahl. */

/* --- Navigation zwischen Berichten --------------------- */
.bericht-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2.4rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--color-border);
}
.bericht-nav-link {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color var(--trans), background var(--trans);
}
.bericht-nav-link:hover,
.bericht-nav-link:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-bg-soft);
}
.bericht-nav-link--weiter { text-align: right; }
.bericht-nav-link--leer {
    border: 0;
    padding: 0;
}
.bericht-nav-richtung {
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}
.bericht-nav-titel {
    font-size: .92rem;
    line-height: 1.4;
}

/* --- Mobil --------------------------------------------- */
@media (max-width: 640px) {
    .bericht-eintrag {
        grid-template-columns: 2.9rem 1fr;
        gap: .7rem;
    }
    .bericht-bilder {
        grid-column: 2;
        font-size: .74rem;
    }
    .bericht-nav { grid-template-columns: 1fr; }
    .bericht-nav-link--weiter { text-align: left; }
}


/* =========================================================
   Bildergalerie der Berichte aus der Facebook-Chronik (Turn 45)
   =========================================================
   Der Altbestand traegt seine Fotos mitten im Text. Die Berichte
   von 2020 bis 2026 haben einen eigenen Galerie-Block. Die Bilder
   sind auf 640 px begrenzt (content-figure--narrow), damit sie auf
   grossen Displays nicht ueber die Textspalte hinauswachsen.
   width/height stehen im HTML — dadurch kein Springen beim Laden.
*/

.bericht-galerie-titel {
    margin: 2.4rem 0 1rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.bericht-galerie {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin: 0 0 2rem;
}

.bericht-foto {
    margin: 0;
    max-width: 640px;
}

.bericht-foto img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.bericht-foto figcaption {
    margin-top: .5rem;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--color-text-soft);
}

@media (max-width: 480px) {
    .bericht-galerie {
        gap: 1.2rem;
    }
    .bericht-foto figcaption {
        font-size: .84rem;
    }
}