/* Block „lernstufen“: Gestaltung, die functions.php nur laedt, wenn die Seite den Block traegt
   (bausteine.php, block_stil). Bis 1.0.83 stand das in style.css; aufgeteilt und entdoppelt am
   08.11.2026 (Bjoern: „raeum es auf“). Je Selektor EINE Stelle - neue Regeln hier aendern, nicht
   unten anhaengen. */

/* ── Block „Lernstufen" (Entwurf ki-lernreise-typo3-schnipsel_2, 19.09.2026) ───
   Das Programm als Treppe: farbige Icon-Flaeche, daneben Stufe und Module als
   Kacheln. Ab 960px steht das Icon ueber dem Text, die Kacheln untereinander. */

.st-stufen {
    padding: clamp(40px, 4.2vw, 60px) 0; background: #F7F8FA;
}

.st-stufen .container, .st-stufen-band .container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
}

.st-stufen__kopf {
    margin-bottom: 28px;
}

.st-stufen__vor {
    margin: 0; font-size: 12.5px; letter-spacing: .09em; color: #37C0AA;
    font-weight: 700; text-transform: uppercase;
}

.st-stufen__titel {
    margin: 8px 0 0; font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.2; font-weight: 700;
}

.st-stufen__satz {
    margin: 12px 0 0; font-size: 16px; color: #5F6B76; max-width: 70ch;
}

.st-stufe {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 26px;
    padding-bottom: 26px; position: relative;
}

.st-stufe:last-child {
    padding-bottom: 0;
}

.st-stufe::before {
    content: ""; position: absolute; left: 39px; top: 88px; bottom: 0;
    width: 2px; background: #E4E9EE;
}

.st-stufe:last-child::before {
    display: none;
}

.st-stufe__feld {
    width: 78px; height: 78px; border-radius: 26px; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(4, 38, 54, .12);
}

.st-stufe__feld svg {
    width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}

.st-stufe--gruen       .st-stufe__feld {
    background: #1F9D57;
}

.st-stufe--tuerkis-hell .st-stufe__feld {
    background: #2FC4B4;
}

.st-stufe--tuerkis     .st-stufe__feld {
    background: #1BB3B6;
}

.st-stufe--blau-hell   .st-stufe__feld {
    background: #1590B4;
}

.st-stufe--blau        .st-stufe__feld {
    background: #1570A6;
}

.st-stufe--blau-tief   .st-stufe__feld {
    background: #175C94;
}

.st-stufe--blau-nacht  .st-stufe__feld {
    background: #14507F;
}

.st-stufe__kopf {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
}

.st-stufe__nr {
    margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
    color: #37C0AA; text-transform: uppercase;
}

.st-stufe__name {
    margin: 0; width: 100%; font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 700; line-height: 1.2;
}

/* Aufklappbare Modulkacheln (19.09.2026). <details> kann der Browser selbst,
   also ohne JavaScript. Die Pille an der Stufe ist weg, die Dauer steht jetzt
   als stille Zeile. */

.st-stufe__dauer {
    margin: 4px 0 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #41525F;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
}

/* Kacheln in fester Groesse nebeneinander. „auto-fill" statt „auto-fit": eine
   einzelne Kachel bleibt dann eine Spalte breit, statt sich ueber die ganze
   Reihe zu ziehen - sonst wird ihr quadratisches Foto riesig (Mechthild,
   21.09.2026, Stufe 0). Deckel bei 300px: Quadrate nur so gross wie noetig. */

/* Eine Zeile traegt das Verb fuer alle Kacheln darunter, damit nicht in jeder
   Kachel „Sie ..." steht (Mechthild, 21.09.2026). */

.st-stufe__lernzeile {
    margin: 16px 0 0; font-size: 13px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: #0A7287;
}

.st-stufe__lernzeile + .st-stufe__module {
    margin-top: 8px;
}

.st-stufe__module {
    margin-top: 15px; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 11px;
    justify-content: start; align-items: stretch;
}

.st-modul {
    background: #fff; border: 1px solid #E4E9EE; border-radius: 0; padding: 14px 15px;   /* Kanten, kein Radius (CI) */
    display: block;
}

.st-modul--klickbar {
    text-decoration: none; color: inherit; transition: border-color .15s ease,
    box-shadow .15s ease;
}

.st-modul--klickbar:hover, .st-modul--klickbar:focus-visible {
    border-color: #37C0AA;
    box-shadow: 0 8px 20px rgba(41, 54, 57, .08);
}

.st-modul__nr {
    margin: 0; font-size: 13.5px; font-weight: 700; color: #37C0AA;
}

.st-modul__titel {
    margin: 5px 0 0; font-family: 'Roboto Slab', Georgia, serif; font-size: 18px;
    font-weight: 600; line-height: 1.26;
}

.st-modul__dauer {
    margin: 7px 0 0; font-size: 15px; color: #5F6B76;
}

/* 5,45:1 statt 4,4:1 (WCAG 1.4.3) */

.st-modul__engl {
    margin: 5px 0 0; font-size: 13px; color: #5F6B76; font-style: italic;
}

.st-stufe__knopf {
    margin-top: 14px;
}

.st-stufen-band {
    padding: clamp(40px, 4.2vw, 60px) 0; background: #fff;
}

.st-stufen-band__kasten {
    background: linear-gradient(112deg, #0A8E99 0%, #0A7287 38%,
    #125C80 72%, #154C6E 100%); border-radius: 14px; padding: 24px 26px; display: flex;
    flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: #fff;
}

.st-stufen-band__kasten p {
    margin: 0; max-width: 48ch; font-size: 15.5px;
}

.st-stufen-band__kasten b {
    display: block; font-family: 'Roboto Slab', Georgia, serif;
    font-size: 18px; margin-bottom: 5px;
}

@media (max-width: 960px) {
    .st-stufe {
        grid-template-columns: 1fr; gap: 16px;
    }

    .st-stufe::before {
        display: none;
    }

    .st-stufe__module {
        grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
    }

    .st-stufen-band__kasten {
        flex-direction: column; align-items: flex-start;
    }

    .st-stufen-band__kasten .st-knopf {
        width: 100%;
    }
}

.st-modul--auf {
    padding: 0;
}

.st-modul--auf > summary {
    list-style: none; cursor: pointer; padding: 14px 40px 14px 15px;
    position: relative; display: block;
}

.st-modul--auf > summary::-webkit-details-marker {
    display: none;
}

.st-modul--auf > summary::after {
    content: ""; position: absolute; right: 16px; top: 22px;
    width: 10px; height: 10px; border-right: 2px solid #0A6E7C; border-bottom: 2px solid #0A6E7C;
    transform: rotate(45deg); transition: transform .15s ease;
}

.st-modul--auf[open] > summary::after {
    transform: rotate(-135deg); top: 26px;
}

.st-modul--auf > summary:hover {
    background: #F7F8FA;
}

.st-modul--auf > summary .st-modul__nr {
    display: block; font-size: 12.5px; font-weight: 700;
    color: #37C0AA;
}

.st-modul--auf > summary .st-modul__titel {
    display: block; margin-top: 5px;
    font-family: 'Roboto Slab', Georgia, serif; font-size: 15px; font-weight: 600;
    line-height: 1.26;
}

.st-modul--auf > summary .st-modul__dauer {
    display: block; margin-top: 7px; font-size: 13.5px;
    font-weight: 400; color: #5F6B76;
}

.st-modul__mehr {
    padding: 0 15px 16px; border-top: 1px solid #E4E9EE; margin: 0 15px;
    padding-top: 12px;
}

.st-modul__mehr p {
    margin: 0; font-size: 14.5px; line-height: 1.5;
}

/* Praxisbeispiele stehen oben in der Kachel und heben sich ab */

/* Praxisbeispiele als Pillen: als Fliesstext gingen sie unter (Mechthild,
   20.09.2026). */

.st-modul__merkmale {
    margin: 8px 0 16px;
    font-size: 13px;
    color: #5F6B76;
}

/* Katalogtext in der aufgeklappten Modulkachel */

.st-modul__text {
    margin-top: 10px; font-size: 16px; line-height: 1.6;
}

.st-modul__text p {
    margin: 10px 0 0;
}

.st-modul__text p:first-child {
    margin-top: 0;
}

.st-modul__text ul {
    margin: 6px 0 0; padding-left: 18px; list-style: disc;
}

.st-modul__text li {
    margin: 3px 0;
}

.st-modul__text strong {
    color: #1D2A35;
}

/* Nutzenzeile: warum man das Modul bucht - steht in der Kachel, ohne Aufklappen */

.st-modul--auf > summary .st-modul__nutzen {
    display: block; margin-top: 8px; font-size: 16px;
    line-height: 1.45; color: #41525F;
}

/* Notentabelle in der aufgeklappten Kachel */

.st-modul__text table.st-noten {
    width: 100%; border-collapse: collapse; margin-top: 10px;
    font-size: 14px;
}

.st-modul__text table.st-noten th, .st-modul__text table.st-noten td {
    border: 1px solid #E4E9EE; padding: 6px 8px; text-align: left;
}

.st-modul__text table.st-noten th {
    background: #F7F8FA;
}

/* Die breite Modulzeile nicht breiter als ihr Inhalt - sonst steht rechts eine
   halbleere Flaeche (Mechthild, 20.09.2026). Zugeklappt sitzt der Text mittig
   neben dem Bild. */

/* Breite Module (eine Kachel je Reihe) und die zwei Phasen nebeneinander */

.st-stufe__module--breit {
    grid-template-columns: 1fr;
    max-width: 900px;
}

/* Das Eltern-Theme setzt eigene Aufzaehlungszeichen per ::before - fuer Listen ohne Klasse:
   ul:not([class]) li:before, Staerke (0,1,3). In unseren Kacheln kommt dazu das Zeichen der Liste
   selbst - also zweimal. Hier bleibt das der Liste. Dieselbe :not([class])-Kette plus unsere Klasse
   ist (0,2,3) und gewinnt ohne !important. */

.st-modul__text ul:not([class]) li::before, .st-modul__text ol:not([class]) li::before,
.st-phase ul:not([class]) li::before, .st-phase ol:not([class]) li::before,
.st-karte ul:not([class]) li::before, .st-karte ol:not([class]) li::before {
    content: none;
}

.st-modul__text ul, .st-phase ul, .st-karte ul {
    list-style: disc;
}

.st-modul__text ul:not([class]) li, .st-modul__text ol:not([class]) li,
.st-phase ul:not([class]) li, .st-phase ol:not([class]) li,
.st-karte ul:not([class]) li, .st-karte ol:not([class]) li {
    padding-left: 0;
}

/* Modul mit Bild: Foto links, Text rechts - die schmalere Textspalte liest sich
   besser als eine Zeile ueber die ganze Breite (Mechthild, 20.09.2026).
   Das Foto steht NEBEN dem Aufklapper, nicht darin: in einem zugeklappten
   <details> zeigt der Browser nur die Zusammenfassung, das Bild waere sonst
   erst nach dem Aufklappen zu sehen. */

.st-modul--bild {
    display: grid; grid-template-columns: 220px minmax(0, 1fr); padding: 0;
    overflow: hidden; align-items: stretch;
}

/* Das Bild bleibt quadratisch und oben stehen. Ohne das wird es beim Aufklappen
   auf die ganze Hoehe gezogen und zeigt nur noch einen Streifen. */

.st-modul--bild .st-modul__foto {
    background: #F7F8FA; align-self: start;
}

.st-modul--bild .st-modul__foto img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Der aufgeklappte Teil laeuft unter dem Bild durch ueber die ganze Karte - so
   haben die zwei Spalten Platz (Mechthild, 20.09.2026). */

.st-modul--bild .st-modul__mehr {
    margin-left: -220px; padding: 14px 16px 18px;
    border-top: 1px solid #E4E9EE;
}

.st-modul__klapp > summary {
    list-style: none; cursor: pointer; padding: 14px 40px 14px 15px;
    position: relative; display: block;
}

.st-modul__klapp > summary::-webkit-details-marker {
    display: none;
}

.st-modul__klapp > summary::after {
    content: ""; position: absolute; right: 16px; top: 22px;
    width: 10px; height: 10px; border-right: 2px solid #37C0AA; border-bottom: 2px solid #37C0AA;
    transform: rotate(45deg); transition: transform .15s ease;
}

.st-modul__klapp[open] > summary::after {
    transform: rotate(-135deg); top: 26px;
}

.st-modul__klapp > summary:hover {
    background: #F7F8FA;
}

.st-modul__klapp .st-modul__nr {
    display: block; font-size: 12.5px; font-weight: 700;
    color: #37C0AA;
}

.st-modul__klapp .st-modul__titel {
    display: block; margin-top: 5px;
    font-family: 'Roboto Slab', Georgia, serif; font-size: 18px; font-weight: 600;
    line-height: 1.26;
}

.st-modul__klapp .st-modul__dauer {
    display: block; margin-top: 7px; font-size: 15px;
    font-weight: 400; color: #5F6B76;
}

.st-modul__klapp .st-modul__nutzen {
    display: block; margin-top: 8px; font-size: 16px;
    line-height: 1.45; color: #41525F;
}

@media (max-width: 760px) {
    .st-modul--bild {
        grid-template-columns: 1fr;
    }

    .st-modul--bild .st-modul__foto {
        aspect-ratio: 16 / 9;
    }
}

.st-modul--bild .st-modul__klapp {
    display: flex; flex-direction: column;
}

.st-modul--bild .st-modul__klapp > summary {
    min-height: 220px;
}

/* Der obere Teil ist ueberall gleich hoch - sonst sitzt die Trennlinie in jeder
   Kachel woanders (Mechthild, 20.09.2026). */

.st-stufe__module:not(.st-stufe__module--breit) .st-modul--auf:not(:only-child) > summary {
    min-height: 210px;
}

/* Sie sollen ins Auge fallen: hier erkennt der Leser seine eigene Arbeit
   wieder (Mechthild, 20.09.2026). Tuerkiser Grund, kraeftige Kante. */

.st-modul__mehr .st-modul__merkmale-titel {   /* staerker als .st-modul__mehr p */
    margin: 0 0 10px; color: #0A6E7C; text-transform: uppercase;
    letter-spacing: .06em; font-size: 14.5px; font-weight: 700;   /* 14.5 wie .st-modul__mehr p: die 13px hier griffen nie, abgenommen wurde 14.5 */
}

.st-modul__mehr .st-modul__merkmale-liste {
    margin: 0; display: flex; flex-wrap: wrap; gap: 8px;
}

.st-modul__merkmale-liste .st-pille {
    font-size: 15px; font-weight: 700; color: #0A5F6B;
    background: #E4F7F3; border: 1px solid #9FE2D6; padding: 6px 14px;
}

.st-pille {
    font-size: 13px; font-weight: 700; color: #41525F; background: #fff;
    border: 1px solid #E4E9EE; border-radius: 999px; padding: 3px 11px;
}

/* Stille Kachel (nicht aufklappbar) und der unauffaellige Weg zur Modulseite */

.st-modul--still {
    padding: 0; display: flex; flex-direction: column;
}

.st-modul--still .st-modul__still {
    padding: 14px 15px 16px;
}

@media (max-width: 560px) {
    .st-stufe__module {
        grid-template-columns: 1fr;
    }

    .st-stufe__inhalt .st-modul--still .st-modul__foto img,
    .st-stufe__inhalt .st-stufe__module--breit .st-modul--still .st-modul__foto img {
        aspect-ratio: 16 / 9;   /* ".st-stufe__inhalt" davor: staerker als die Regel der breiten Module (0,3,1) weiter unten */
    }
}

.st-modul--still .st-modul__foto img {
    width: 100%; height: auto; aspect-ratio: 1 / 1;
    object-fit: cover; display: block;
}

.st-modul--still .st-modul__nutzen {
    margin: 8px 0 0; font-size: 16px; line-height: 1.5;
    color: #41525F;
}

.st-stufe__mehr {
    display: inline-block; margin-top: 14px; font-size: 16px; font-weight: 700;
    color: #0A6E7C; text-decoration: none; border-bottom: 2px solid #37C0AA; padding-bottom: 2px;
}

.st-stufe__mehr::after {
    content: " →";
}

.st-stufe__mehr:hover, .st-stufe__mehr:focus-visible {
    color: #1D2A35;
}

/* Die Zeile ist genau so hoch wie das quadratische Bild - kein Weissraum
   darunter (Mechthild, 20.09.2026). Aufgeklappt darf sie wachsen. */

/* Zugeklappt ist die Karte exakt so hoch wie das quadratische Bild: die
   Rasterzeile gibt das Mass vor, Bild und Text fuellen sie. Vorher hing die
   Karte unten ueber (Mechthild, 20.09.2026). */

.st-modul--bild:has(> .st-modul__klapp:not([open])) {
    grid-template-rows: 220px;
    align-items: stretch;
}

.st-modul--bild:has(> .st-modul__klapp:not([open])) .st-modul__foto {
    height: 220px;
}

.st-modul--bild:has(> .st-modul__klapp:not([open])) .st-modul__foto img {
    height: 100%;
    aspect-ratio: auto; object-fit: cover;
}

.st-modul--bild > .st-modul__klapp:not([open]) {
    height: 220px; overflow: hidden;
}

.st-modul--bild > .st-modul__klapp:not([open]) > summary {
    height: 100%; min-height: 0;
    display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}

@media (max-width: 760px) {
    .st-modul--bild .st-modul__klapp:not([open]) > summary {
        height: auto;
    }
}

/* Ueberschrift im aufgeklappten Modul: Schriftart, Groesse und der tuerkise
   Strich machen sie erkennbar - fett allein tat es nicht. */

.st-modul__text .st-modul__kopfzeile {   /* staerker als .st-modul__text p */
    font-family: 'Roboto Slab', Georgia, serif; font-size: 14.5px; line-height: 1.5;   /* wie .st-modul__mehr p: 17px und 1.3 hier griffen nie (schwaechere Regel), abgenommen wurde 14.5/1.5 */
    font-weight: 600; color: #1D2A35; margin: 0 0 14px;
    padding-bottom: 12px; position: relative;
}

.st-modul__kopfzeile::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 30px; height: 2px; background: #37C0AA;
}

/* Abschluss des aufgeklappten Moduls: zwei Knoepfe nebeneinander, darunter der
   Textlink zu den Terminen. Sichtbar ist damit genau ein gelber Knopf, sobald
   eine Kachel offen ist - die Rangfolge bleibt erhalten (Mechthild, 20.09.2026). */

.st-modul__aktionen {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
    padding-top: 16px; border-top: 1px solid #E4E9EE;
}

.st-modul__aktionen .st-knopf, .st-modul__aktionen .st-zweitknopf {
    font-size: 15px;
    padding: 11px 18px; min-width: 0;
}

.st-modul__termine {
    display: inline-block; margin-top: 12px; font-size: 15px;
    font-weight: 700; color: #0A6E7C; text-decoration: none;
    border-bottom: 2px solid #37C0AA; padding-bottom: 2px;
}

.st-modul__termine::after {
    content: " →";
}

.st-modul__termine:hover, .st-modul__termine:focus-visible {
    color: #1D2A35;
}

/* "Das nehmen Sie mit" ist der wichtigste Satz des Moduls und steht deshalb
   hervorgehoben - nicht kleiner als der Rest (Mechthild, 20.09.2026). */

.st-modul__text .st-mitnehmen {
    margin: 20px 0 0; padding: 16px 18px;
    background: #E4F7F3; border-left: 4px solid #37C0AA; font-size: 17px; line-height: 1.55;
    color: #1D2A35;
}

.st-modul__text .st-mitnehmen strong {
    color: #0A5F6B;
}

/* Eyebrows stehen im Haus in Großbuchstaben - das gilt auch für die
   Modulnummer in der Kachel (Mechthild, 20.09.2026). */

.st-modul__nr,
.st-modul--auf > summary .st-modul__nr,
.st-modul__klapp .st-modul__nr,
.st-modul--still .st-modul__nr {
    text-transform: uppercase; letter-spacing: .09em; font-size: 12.5px;
}

/* Die aus der Auswertung angesprungene Modulkachel bekommt einen goldenen Rand (0.81.0). */

.st-modul--gezeigt {
    outline: 3px solid #F0B334; outline-offset: 4px; scroll-margin-top: 120px;
}

.st-modul[id] {
    scroll-margin-top: 120px;
}

/* ── Handy-Korrekturen (0.82.0, Bjoern 20.09.2026 an Stufe 1 und 2 gesehen) ────────────────
 * 1. Modulkachel mit Foto: der aufgeklappte Inhalt zieht am Desktop mit margin-left:-220px unter
 *    das Foto. Unter 760px steht das Foto oben, der negative Rand blieb - der Text stand 220px
 *    links aus dem Bild. 2. Fusszeile: das Eltern-Theme gibt die Rechtslinks zweimal aus
 *    (footer__links--desktop und --mobile) und blendet unter 1024px nur die mobile ein, die
 *    Desktop-Liste aber nicht aus. Deshalb am Handy zweimal Impressum, auf jeder Seite. */

@media (max-width: 760px) {
    .st-modul--bild .st-modul__mehr {
        margin-left: 0; margin-right: 0;
    }
}

/* 1.0.56 (27.09.2026) - Vorschau-Seiten: stille Modulkarten in der breiten Ansicht mit Foto links
   wie die aufklappbaren Karten (vorher lag das Foto oben quer ueber 900px - "ernsthaft?"). Und die
   Zeile "Passt das zu mir?" vor dem Stufen-Knopf. */

.st-stufe__module--breit .st-modul--still {
    display: grid; grid-template-columns: 220px minmax(0, 1fr);
}

.st-stufe__module--breit .st-modul--still .st-modul__foto {
    align-self: start; background: #F7F8FA;
}

.st-stufe__module--breit .st-modul--still .st-modul__foto img {
    width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}

.st-stufe__module--breit .st-modul--still .st-modul__still {
    padding: 18px 20px 20px;
}

@media (max-width: 768px) {
    .st-stufe__module--breit .st-modul--still {
        grid-template-columns: 1fr;
    }
}

.st-stufe__knopfzeile {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 0;
}

.st-stufe__knopfzeile > strong {
    font-size: 18px;
}

.st-stufe__knopfzeile .st-stufe__knopf {
    margin-top: 0;
}
