/* Block „kursempfehlung“: 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 „Kursempfehlung" ───────────────────────────────────────────
   Zwei Anordnungen: zweispaltig (links entscheiden, rechts informieren) und
   Karte (alles untereinander). Grauer Grund wie die uebrigen Abschnitte. */

.st-kurs {
    padding: 60px 0; background: #ededed;
}

.st-kurs .container {
    max-width: 1120px; margin: 0 auto; padding: 0 20px;
}

.st-kurs__kopf {
    text-align: center; display: flex; flex-direction: column;
    margin: 0 auto 30px; gap: 10px;
}

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

.st-kurs__titel {
    margin: 0; font-size: 50px; font-weight: 400; line-height: 1.2;
}

.st-kurs__satz {
    margin: 0;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.2;
    color: #000;
}

@media (max-width: 1440px) {
    .st-kurs__titel {
        font-size: 40px;
    }

    .st-kurs__satz {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .st-kurs__titel {
        font-size: 24px;
    }

    .st-kurs__satz {
        font-size: 16px;
    }
}

.st-kurs__karte {
    background: #fff; box-shadow: 0 0 5px 0 #d1d1d1;
}

.st-kurs--zweispaltig .st-kurs__karte {
    display: grid;
    grid-template-columns: 380px 1fr;
    margin: 0 auto;
    max-width: none;
    width: 100%;
}

.st-kurs--zweispaltig .st-kurs__links {
    padding: 34px;
    border-right: 1px solid #E4E9EE;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.st-kurs--zweispaltig .st-kurs__rechts {
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-kurs--karte .st-kurs__links,
.st-kurs--karte .st-kurs__rechts {
    padding: 0 34px;
}

.st-kurs--karte .st-kurs__links {
    padding-top: 0;
}

.st-kurs--karte .st-kurs__rechts {
    padding-bottom: 34px;
}

.st-kurs--karte .st-kurs__bild {
    width: 100%; height: 260px; object-fit: cover; display: block;
    margin: 0 0 26px;
}

.st-kurs--karte .st-kurs__links > :first-child:not(.st-kurs__bild) {
    padding-top: 34px;
}

.st-kurs--zweispaltig .st-kurs__bild {
    height: 190px;
    margin: 0 0 24px;
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

/* Bild links, Text rechts: die Spalten tauschen die Reihenfolge, das Bild steht
   dann in der schmalen Spalte (Mechthild, 27.09.2026). */

.st-kurs--bildlinks .st-kurs__links {
    order: 2; border-right: 0; border-left: 1px solid #E4E9EE;
}

.st-kurs--bildlinks .st-kurs__rechts {
    order: 1;
}

.st-kurs--bildlinks .st-kurs__bild {
    margin: 0; height: 100%; min-height: 260px;
}

/* Im Ablauf sind die Eckdaten keine Tabelle, sondern Schritte: Ueberschrift
   oben, Text darunter, beides linksbuendig (Mechthild, 27.09.2026). */

.st-kurs--bildlinks .st-kurs__eck {
    margin: 0;
}

.st-kurs--bildlinks .st-kurs__eck > div {
    display: block; padding: 0 0 22px; border: 0;
}

.st-kurs--bildlinks .st-kurs__eck > div:last-child {
    padding-bottom: 0;
}

.st-kurs--bildlinks .st-kurs__eck dt {
    font-size: 17px; font-weight: 700; color: #1D2A35;
    margin: 0 0 6px; font-family: 'Roboto Slab', Georgia, serif;
}

.st-kurs--bildlinks .st-kurs__eck dd {
    text-align: left; font-weight: 400; font-size: 15px;
    line-height: 1.65; color: #41525F;
}

@media (max-width: 900px) {
    .st-kurs--bildlinks .st-kurs__links {
        order: 1; border-left: 0;
    }

    .st-kurs--bildlinks .st-kurs__rechts {
        order: 2;
    }
}

.st-kurs__name {
    margin: 0 0 18px; font-size: 25px; line-height: 130%;
}

.st-kurs__eck {
    margin: 0 0 24px;
}

.st-kurs__eck > div {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 9px 0; border-bottom: 1px solid #E4E9EE;
}

.st-kurs__eck dt {
    margin: 0; font-size: 15px; color: #666666;
}

.st-kurs__eck dd {
    margin: 0; font-size: 15px; font-weight: 700; text-align: right;
}

.st-kurs__knopf {
    display: inline-block;
}

.st-kurs__knopf-klein {
    margin: 10px 0 0; font-size: 14px; color: #666666;
}

@media (max-width: 900px) {
    .st-kurs--zweispaltig .st-kurs__karte {
        grid-template-columns: 1fr;
    }

    .st-kurs--zweispaltig .st-kurs__links {
        border-right: 0; border-bottom: 1px solid #E4E9EE;
    }
}

/* Kurskarte zweispaltig: Bild als Quadrat statt 190 px hoch (1.0.24). Hausregel "Kacheln sind Quadrate";
 * Mechthild, 24.09.2026: "bitte beachte die kachelform". */

/* bleibt hier: height, margin steht fuer .st-kurs--zweispaltig .st-kurs__bild auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__bild {
    height: auto;
    margin: 0 auto;
}

/* Text bekommt den Platz, das Foto wird kleiner (Mechthild, 24.09.2026): Textspalte flexibel, Bildspalte
 * 388 px (320 px Quadrat plus Polster). Vorher 380 px Text und das Foto fuellte den Rest. */

/* Foto links, Text rechts (Mechthild, 24.09.2026). Die Reihenfolge dreht das Raster, das Markup bleibt. */

/* Textspalte so breit wie der Knopf, Karte mittig (Mechthild, 25.09.2026: "die textspalte ist zu breit ...
 * bitte so breit, wie der cta-button"). 388 px Foto + 420 px Text (34 px Polster je Seite, ~350 px Inhalt). */

/* bleibt hier: grid-template-columns steht fuer .st-kurs--zweispaltig .st-kurs__karte auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__karte {
    grid-template-columns: 388px 420px;
}

/* bleibt hier: order steht fuer .st-kurs--zweispaltig .st-kurs__rechts auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__rechts {
    order: 1;
}

/* bleibt hier: order, border-right, border-left steht fuer .st-kurs--zweispaltig .st-kurs__links auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__links {
    order: 2;
    border-right: 0;
    border-left: 1px solid #E4E9EE;
}

@media (max-width: 900px) {
    .st-kurs--zweispaltig .st-kurs__karte {
        grid-template-columns: 1fr;
    }

    .st-kurs--zweispaltig .st-kurs__links {
        border-left: 0;
    }
}

/* Kurskarte (1.0.27, Mechthild 24.09.2026): Satz unter dem Kursnamen, davor die Tabelle; Foto mittig in
 * seiner Spalte; Zwischenzeile schwarz wie in den anderen Bloecken (war #666). */

.st-kurs__text {
    margin: 6px 0 18px; font-size: 16px; line-height: 1.6; color: #1D2A35;
}

/* Foto so hoch wie der Text rechts, gleichmaessiger weisser Rand (1.0.29, Mechthild 25.09.2026):
 * das Bild fuellt seine Spalte in voller Hoehe, gleiches Polster wie die Textspalte. Das Quadrat
 * weicht hier der sauberen Kante. */

/* bleibt hier: padding steht fuer .st-kurs--zweispaltig .st-kurs__rechts auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__rechts {
    padding: 34px;
}

/* Kachel, unbeschnitten, so hoch wie der Text (Mechthild, 25.09.2026): die Bildspalte richtet ihre
 * Breite nach dem Bild (auto), das Bild ist so hoch wie die Textspalte und quadratisch; object-fit:
 * contain schneidet nichts ab. */

/* Zwei gleich grosse Kacheln (1.0.32, Mechthild 25.09.2026): links das Foto, rechts der Textblock, beide
 * 460 x 460 px. Das Foto fuellt seine Kachel bis auf das Polster, unbeschnitten (Original ist quadratisch).
 * Die Knopfzeile: Frage links, Knopf rechts, einzeilig. (Die Fassung 1.0.31 hatte doppelte Klammern und
 * war damit ungueltig - deshalb sah die Karte kurz falsch aus.) */

/* bleibt hier: grid-template-columns steht fuer .st-kurs--zweispaltig .st-kurs__karte auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__karte {
    grid-template-columns: 1fr 1fr;
}

/* volle Breite, zwei gleiche Haelften (Mechthild, 25.09.2026) */

.st-kurs--zweispaltig .st-kurs__rechts, .st-kurs--zweispaltig .st-kurs__links {
    aspect-ratio: 1 / 1; min-width: 0;
}

/* bleibt hier: padding steht fuer .st-kurs--zweispaltig .st-kurs__rechts auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__rechts {
    padding: 34px;
}

/* bleibt hier: padding steht fuer .st-kurs--zweispaltig .st-kurs__links auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__links {
    padding: 34px;
}

.st-kurs--zweispaltig .st-kurs__knopfzeile {
    margin-top: auto;
}

/* Knopfzeile buendig mit der Fotounterkante */

.st-kurs--zweispaltig .st-kurs__eck {
    margin-bottom: 24px;
}

/* bleibt hier: height, margin steht fuer .st-kurs--zweispaltig .st-kurs__bild auch in einer @media-Stufe dazwischen (css-aufteilen.py, 08.11.2026) */

.st-kurs--zweispaltig .st-kurs__bild {
    height: auto;
    margin: 0;
}

.st-kurs__knopfzeile {
    display: flex; align-items: center; gap: 16px; flex-wrap: nowrap;
}

.st-kurs__knopf-vor {
    font-family: 'Roboto Slab', Georgia, serif; font-size: 18px; font-weight: 600; color: #101314; white-space: nowrap;
}

.st-kurs__knopfzeile .st-kurs__knopf {
    white-space: nowrap; padding-left: 18px; padding-right: 18px;
}

@media (max-width: 960px) {
    .st-kurs--zweispaltig .st-kurs__karte {
        grid-template-columns: 1fr; max-width: 560px; margin: 0 auto;
    }

    .st-kurs--zweispaltig .st-kurs__links {
        aspect-ratio: auto;
    }

    .st-kurs__knopfzeile {
        flex-wrap: wrap;
    }
}

/* Kurskarte MIT Inhaltsliste (Auswertung, Seite 619: „Besonders passend für Sie" bei Modul 3; 27.09.2026).
 * Seit 1.0.32 sind beide Haelften Quadrate und die rechte zentriert ihren Inhalt - gebaut fuer Foto + Eckdaten.
 * Steckt rechts zusaetzlich die Inhaltsliste, lagen Foto, Liste und Kursname uebereinander (Pruefstand-Vorschau
 * /ki-check/vorschau/3, 27.09.2026). Nur fuer diesen Fall: Hoehe nach Inhalt, Foto oben, Liste darunter.
 * Karten ohne Liste (Inhouse, Startseite) bleiben quadratisch. */

.st-kurs--zweispaltig .st-kurs__karte:has(.st-aufklapper) > .st-kurs__rechts,
.st-kurs--zweispaltig .st-kurs__karte:has(.st-aufklapper) > .st-kurs__links {
    aspect-ratio: auto;
}

.st-kurs--zweispaltig .st-kurs__karte:has(.st-aufklapper) > .st-kurs__rechts {
    display: block;
}

.st-kurs--zweispaltig .st-kurs__karte:has(.st-aufklapper) .st-kurs__rechts .st-kurs__bild {
    margin: 0 0 24px; aspect-ratio: auto;
}

.st-kurs--zweispaltig .st-kurs__karte:has(.st-aufklapper) .st-aufklapper {
    width: 100%;
}
