/* Block „kopfkarte“: 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. */

/* ── Kopf mit Karte ───────────────────────────────────────────────────────
   Bildband ganz oben, darauf eine weisse Karte, die auch ein Formular traegt.
   Der Hero des Eltern-Themes kann das nicht: seine Kachel ist ein festes
   Quadrat von 370px und er selbst 738px hoch, alles darunter liegt unter der
   Falz (Mechthild, 21.09.2026: nicht scrollen muessen, um zu fragen). */

.st-kopf {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(28px, 3.2vw, 54px) 0;
}

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

.st-kopf--rechts .container {
    justify-content: flex-end;
}

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

.st-kopf__schleier {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(97deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.46) 46%,
    rgba(255,255,255,.16) 76%, rgba(255,255,255,0) 100%);
}

.st-kopf--rechts .st-kopf__bild {
    background-position: left center;
}

.st-kopf--rechts .st-kopf__schleier {
    background: linear-gradient(263deg,
    rgba(255,255,255,.66) 0%, rgba(255,255,255,.46) 46%, rgba(255,255,255,.16) 76%,
    rgba(255,255,255,0) 100%);
}

/* Kein Quadrat: die Karte traegt ein Formular, da waere abgeschnittener Text
   schlimmer als die Abweichung von der Form (Regel 5). */

/* Leicht durchsichtig, damit das Foto dahinter erkennbar bleibt; der
   Weichzeichner haelt den Text trotzdem lesbar (Mechthild, 27.09.2026).
   Browser ohne backdrop-filter bekommen die dichtere Flaeche. */

.st-kopf__karte {
    background: rgba(255, 255, 255, .94); border: 1px solid rgba(255,255,255,.8);
    border-radius: 0; padding: clamp(24px, 2.6vw, 34px); width: 100%; max-width: 620px;
    box-shadow: 0 18px 44px rgba(9, 40, 54, .14);
}

.st-kopf__vor {
    margin: 0 0 12px; color: #37C0AA; font-size: 13px; font-weight: 700;   /* Haus-Tuerkis wie .st-kacheln__vor (Mechthild, 24.09.2026) */
    letter-spacing: .09em; text-transform: uppercase;
}

.st-kopf__titel {
    margin: 0; color: #1D2A35; font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.14;
}

.st-kopf__satz {
    margin: 10px 0 0; font-size: 16px; color: #41525F; max-width: 52ch;
}

.st-kopf__inhalt {
    margin-top: 20px;
}

.st-kopf__inhalt > *:first-child {
    margin-top: 0;
}

.st-kopf__inhalt > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .st-kopf {
        padding: 26px 0 30px;
    }

    .st-kopf .container {
        padding: 0 16px;
    }

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

    .st-kopf__schleier, .st-kopf--rechts .st-kopf__schleier {
        background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.46) 100%);
    }

    .st-kopf__karte {
        max-width: none; padding: 20px 18px 24px;
    }
}

/* Die Frage im Formular ist die Zwischenueberschrift der Karte (Mechthild,
   22.09.2026). Nur die Beschriftung des grossen Feldes - Name und E-Mail
   bleiben normale Beschriftungen. h3 des Eltern-Themes: Roboto Slab, 20px. */

.st-kopf__inhalt .ff-el-group:has(textarea) .ff-el-input--label label {
    font-family: 'Roboto Slab', Georgia, serif; font-size: 20px; font-weight: 600;
    line-height: 140%; color: #1D2A35;
}

@media (max-width: 700px) {
    .st-kopf__inhalt .ff-el-group:has(textarea) .ff-el-input--label label {
        font-size: 18px;
    }
}

/* 1.0.62 (27.09.2026) - Kopfkarte mit Kachel daneben (Whitepaper: links das Titelblatt, rechts die Karte) */

.st-kopf:has(.st-kopf__kachel) .container {
    gap: 28px; align-items: stretch; justify-content: center;
}

.st-kopf__kachel {
    background: rgba(255, 255, 255, .96); border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 18px 44px rgba(9, 40, 54, .14); padding: 18px; flex: 0 1 380px;
    display: flex; align-items: center; justify-content: center;
}

.st-kopf__kachel img {
    width: 100%; height: auto; display: block; box-shadow: 0 6px 18px rgba(9, 40, 54, .18);
}

@media (max-width: 900px) {
    .st-kopf:has(.st-kopf__kachel) .container {
        flex-direction: column; align-items: center;
    }

    .st-kopf__kachel {
        flex: 0 0 auto; width: 100%; max-width: 300px;
    }
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .st-kopf__karte, .st-kopf__kachel {
        background: rgba(255, 255, 255, .82);
        -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
    }
}
