/* Block „abschluss“: 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 „Abschlussband“ (Entwurf 54, letzter Abschnitt) ─────────────────────
   Bild, heller Schleier, Karte. Auf schmalen Schirmen wird aus dem Verlauf von
   links ein gleichmäßiger Schleier — „links hell, rechts frei“ ist bei 360px
   keine Bildwirkung mehr, sondern eine halb verdeckte Karte. */

.st-schluss {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(68px, 7vw, 108px) 0;
}

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

.st-schluss__bild {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: right center;
}

.st-schluss__schleier {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(97deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.42) 44%,
    rgba(255,255,255,.14) 74%, rgba(255,255,255,0) 100%);
}

/* Auch die einzelne Karte ist quadratisch (Mechthild, 20.09.2026). Passt der
   Inhalt nicht hinein, waechst sie - abgeschnittener Text waere schlimmer. */

.st-schluss__karte {
    background: rgba(255, 255, 255, .94); border: 1px solid rgba(255,255,255,.8);
    border-radius: 0; padding: clamp(28px, 3vw, 40px); width: 100%; max-width: 460px;
    aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 18px 44px rgba(9, 40, 54, .14);
}

@media (max-width: 560px) {
    .st-schluss__karte {
        aspect-ratio: auto;
    }
}

.st-schluss__formel {
    margin: 0 0 15px; color: #37C0AA; font-size: clamp(12px, 1.15vw, 14px);
    letter-spacing: .02em; font-weight: 700; padding-bottom: 13px;
    border-bottom: 1px solid #E4E9EE; display: inline-block;
}

.st-schluss__titel {
    margin: 0; color: #1D2A35; font-size: clamp(1.6rem, 2.7vw, 2.2rem);
    line-height: 1.16; max-width: 19ch;
}

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

/* Abschlussband: beide Knoepfe gleich gross (1.0.40, Mechthild 25.09.2026). Sie stehen untereinander und
 * fuellen dieselbe Breite, die der breitere von beiden braucht. */

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

.st-schluss__knoepfe {
    flex-wrap: wrap;
    gap: 13px;
    align-items: stretch;
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, max-content);
    justify-content: start;
}

.st-schluss__knoepfe .st-knopf, .st-zweitknopf {
    display: inline-flex; align-items: center;
    justify-content: center; gap: 10px; min-width: 212px; padding: 14px 22px; border-radius: 0;
    font-weight: 700; font-size: 16px; text-decoration: none;
}

@media (max-width: 700px) {
    .st-schluss {
        padding: 54px 0;
    }

    .st-schluss .container {
        padding: 0 20px;
    }

    .st-schluss__bild {
        background-position: center;
    }

    .st-schluss__schleier {
        background: linear-gradient(180deg, rgba(255,255,255,.58) 0%,
        rgba(255,255,255,.40) 100%);
    }

    .st-schluss__karte {
        max-width: none;
    }

    .st-schluss__titel {
        max-width: none;
    }

    .st-schluss__knoepfe {
        flex-direction: column;
    }

    .st-schluss__knoepfe .st-knopf, .st-zweitknopf {
        min-width: 0; width: 100%;
    }
}

.st-schluss__karte--breit {
    max-width: 860px;
}

.st-schluss__text {
    margin-top: 16px; font-size: 15.5px; line-height: 1.55;
}

.st-schluss__text ul {
    margin: 8px 0 0; padding-left: 20px;
}

.st-schluss__text li {
    margin: 5px 0;
}

.st-schluss__text h3 {
    margin: 16px 0 6px; font-size: 18px;
}

/* Abschlussband mit zwei Karten nebeneinander */

/* Nur so gross wie noetig: zwei Quadrate nebeneinander, nicht die ganze Spur
   (Mechthild, 20.09.2026). */

/* So klein, wie es geht, ohne dass das Quadrat bricht: 320px tragen drei Zeilen
   Ueberschrift, drei Zeilen Text und zwei Knoepfe nebeneinander (20.09.2026). */

.st-schluss__karten {
    display: grid; grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 20px;
}

/* Quadratisch wie die Hero-Kachel des Themes (Mechthild, 20.09.2026). Unter
   700px darf die Kachel wieder wachsen, sonst passt der Text nicht hinein. */

.st-schluss__karten .st-schluss__karte {
    max-width: none;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .96);
    border: 0;
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(9, 40, 54, .18);
    aspect-ratio: 1 / 1;
    justify-content: center;
    padding: 22px;
}

@media (max-width: 700px) {
    .st-schluss__karten .st-schluss__karte {
        aspect-ratio: auto;
    }
}

.st-schluss__karten .st-schluss__titel {
    font-size: 1.1rem; line-height: 1.25; max-width: none;
}

.st-schluss__karten .st-schluss__zeile {
    font-size: 14.5px; margin-top: 8px; line-height: 1.45;
}

.st-schluss__karten .st-knopf, .st-schluss__karten .st-zweitknopf {
    font-size: 14px;
    padding: 10px 14px;
}

/* Die beiden Knoepfe einer Abschlusskarte stehen nebeneinander, solange Platz
   ist (Mechthild, 20.09.2026). */

.st-schluss__karten .st-schluss__knoepfe {
    margin-top: auto;
    padding-top: 18px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, max-content);
}

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

.st-schluss:has(.st-schluss__karten) .st-schluss__schleier {
    background: linear-gradient(180deg, rgba(14, 40, 54, .55), rgba(14, 40, 54, .35));
}

.st-schluss:has(.st-schluss__karten) .st-schluss__formel {
    color: #fff; border-bottom-color:
    rgba(255, 255, 255, .4);
}

.st-schluss__karten .st-schluss__knoepfe .st-knopf,
.st-schluss__karten .st-schluss__knoepfe .st-zweitknopf {
    min-width: 0; flex: 1 1 auto;
    padding: 12px 16px; font-size: 15px;
}

@media (max-width: 900px) {
    .st-schluss__karten .st-schluss__knoepfe {
        flex-direction: column;
    }
}

.st-schluss__knoepfe .st-knopf, .st-schluss__knoepfe .st-zweitknopf {
    width: 100%; min-width: 0; justify-content: center;
}

/* 1.0.58 (27.09.2026) - Abschluss mit zwei Karten: kleine Zeile ueber der Ueberschrift je Karte */

.st-schluss__karten .st-schluss__formel {
    margin-bottom: 10px;
}

/* 1.0.59 (27.09.2026) - Zwei Karten "gross": Aufbau und Schrift wie die einzelne Karte
   (Eyebrow mit Linie, grosse Ueberschrift, Zeile 16px, Knoepfe 16px), nur zwei nebeneinander. */

.st-schluss__karten--gross {
    grid-template-columns: repeat(2, minmax(0, 460px)); gap: 24px;
}

.st-schluss__karten--gross .st-schluss__karte {
    padding: clamp(28px, 3vw, 40px);
    background: rgba(255, 255, 255, .94); border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 18px 44px rgba(9, 40, 54, .14);
}

.st-schluss__karten--gross .st-schluss__formel {
    margin-bottom: 15px;
}

.st-schluss__karten--gross .st-schluss__titel {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.16;
}

.st-schluss__karten--gross .st-schluss__zeile {
    font-size: 16px; margin-top: 12px; line-height: 1.5;
}

.st-schluss__karten--gross .st-knopf, .st-schluss__karten--gross .st-zweitknopf {
    font-size: 16px;
    padding: 14px 22px; min-width: 212px;
}

.st-schluss__karten--gross .st-schluss__knoepfe {
    gap: 13px; padding-top: 0; margin-top: 24px;
}

/* Eyebrow in den grossen Karten tuerkis wie in der einzelnen Karte (die Zwei-Karten-Regel oben faerbt ihn weiss) */

.st-schluss:has(.st-schluss__karten--gross) .st-schluss__formel {
    color: #37C0AA; border-bottom-color: #E4E9EE;
}

@media (max-width: 1000px) {
    .st-schluss__karten--gross {
        grid-template-columns: 1fr;
    }
}
