/* ==========================================================================
   Schriften - lokal eingebunden, keine Verbindung zu Google.
   Heruntergeladen von Google Fonts (SIL Open Font License), Poppins v24 und
   Space Grotesk v22, Stand 10.09.2026. Nur die Zeichensaetze latin und
   latin-ext; die uebrigen (kyrillisch, Devanagari, vietnamesisch) braucht
   eine deutsche Seite nicht.
   Space Grotesk ist eine variable Schrift - eine Datei deckt 300 bis 700 ab.
   Beim Erneuern: Dateien nach assets/fonts/, Namen hier gleich lassen.
   ========================================================================== */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Viola Baier - Bewegung bewegt
   Farben und Schriften uebernommen aus der urspruenglichen Wix-Seite.
   ========================================================================== */

:root {
    --blau:        #324158;
    --blau-hell:   #4a5b76;
    /* Wix-Pink war #ed1566; minimal abgedunkelt, damit weisse Schrift auf
       Pink die 4,5:1-Kontrastgrenze erreicht. Optisch identisch. */
    --pink:        #e6105f;
    --pink-dunkel: #c8104f;
    --grau-hell:   #e2e2e2;
    --creme:       #fef6ed;
    --weiss:       #ffffff;
    --text:        #2b3244;

    --serif:  'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --sans:   'Poppins', 'Helvetica Neue', Arial, sans-serif;

    --breite:  1180px;
    --zeile:   68ch;
    --radius:  4px;
    --schatten: 0 6px 20px rgba(50, 65, 88, .14);
    --kopf-hoehe: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--kopf-hoehe) + 20px);
}

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--weiss);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: var(--weiss); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--blau);
    line-height: 1.2;
    margin: 0 0 .6em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 500; }

/* Mehr Luft ueber einer Zwischenueberschrift als darunter. */
.inhalt :is(h2, h3):not(:first-child) { margin-top: 1.4em; }

p, ul, ol { margin: 0 0 1.1em; max-width: var(--zeile); }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: .3em; }

a {
    color: var(--pink-dunkel);
    text-decoration: none;
    text-underline-offset: .18em;
    text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
    border-radius: 2px;
}
.abschnitt--blau :focus-visible,
.buehne :focus-visible,
.hinweis :focus-visible,
.fuss :focus-visible { outline-color: var(--weiss); }

img { max-width: 100%; height: auto; display: block; }

/* --- Layout ------------------------------------------------------------- */

.inhalt {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 24px;
}
.inhalt--schmal { max-width: 760px; }

.abschnitt      { padding: 72px 0; }
.abschnitt--eng { padding: 48px 0; }
.abschnitt--creme { background: var(--creme); }
.abschnitt--blau  { background: var(--blau); color: var(--weiss); }
.abschnitt--blau h1,
.abschnitt--blau h2,
.abschnitt--blau h3 { color: var(--weiss); }
.abschnitt--blau a:not(.knopf) { color: var(--weiss); text-decoration: underline; }

.raster {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
/* Vier gleichrangige Karten nebeneinander statt drei plus Waise. */
.raster--vier { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.abstand-oben { margin-top: 32px; }

.bild { border-radius: var(--radius); }

/* --- Kopfbereich -------------------------------------------------------- */

.kopf {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--grau-hell);
}

.kopf__zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--kopf-hoehe);
}

.kopf__marke {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blau);
    letter-spacing: .02em;
}
.kopf__marke:hover { text-decoration: none; }

.navigation ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
}
.navigation li + li { margin-top: 0; }

.navigation a {
    color: var(--blau);
    font-size: .95rem;
    letter-spacing: .04em;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .18s;
}
.navigation a:hover { text-decoration: none; border-bottom-color: var(--pink); }
.navigation a.aktiv { border-bottom-color: var(--pink); font-weight: 500; }

/* Kontakt-Knopf im Menue: eigene Regel, damit ihn die Menue-Links nicht
   ueberschreiben. */
.navigation a.knopf {
    color: var(--weiss);
    padding: 9px 18px;
    border-bottom: 2px solid var(--pink);
    margin-left: 6px;
}
.navigation a.knopf:hover { border-color: var(--pink-dunkel); }

.schalter {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--blau);
}

/* --- Schaltflaechen ----------------------------------------------------- */

.knopf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: var(--pink);
    color: var(--weiss);
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 2px solid var(--pink);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.knopf:hover { background: var(--pink-dunkel); border-color: var(--pink-dunkel); text-decoration: none; }
.knopf:active { transform: translateY(1px); }

.knopf--offen { background: transparent; color: var(--pink-dunkel); }
.knopf--offen:hover { background: var(--pink); border-color: var(--pink); color: var(--weiss); }

.knopf--hell { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.knopf--hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--blau); }

/* Mehrere Knoepfe nebeneinander, mit sauberem Umbruch auf kleinen Schirmen. */
.knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin: 0 0 1.1em;
    padding: 0;
    max-width: none;
}

/* --- Buehne ------------------------------------------------------------- */

/* Text steht auf ruhiger Farbflaeche, das Bild folgt als eigenes Element
   darunter - so liegt keine Schrift ueber Violas Gesicht. */
.buehne {
    background: var(--blau);
    color: var(--weiss);
    padding: clamp(72px, 12vh, 132px) 0 clamp(96px, 14vh, 156px);
    text-align: center;
}
.buehne h1 { color: var(--weiss); max-width: 18ch; margin-inline: auto; }
.buehne__unterzeile {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    max-width: 44ch;
    margin: 0 auto 1.8em;
}
.buehne .knoepfe { justify-content: center; margin-bottom: 0; }

/* Die Bildbahn ragt in den Blauabschnitt hinein und bindet beides zusammen. */
.buehne__bahn {
    max-width: var(--breite);
    margin: clamp(-108px, -11vh, -64px) auto 0;
    padding: 0 24px;
    position: relative;
}
.buehne__bild {
    width: 100%;
    height: clamp(260px, 42vh, 420px);
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
}

/* --- Hinweisbanner ------------------------------------------------------ */

.hinweis {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 2px 14px;
    background: var(--pink);
    color: var(--weiss);
    text-align: center;
    padding: 14px 24px;
    line-height: 1.5;
}
.hinweis a { color: var(--weiss); text-decoration: underline; font-weight: 500; }
.hinweis strong { font-family: var(--serif); letter-spacing: .03em; }

/* --- Live-Box auf der Startseite ---------------------------------------
   Erscheint nur, wenn gerade ein Hybridkurs laeuft oder gleich beginnt
   (kurs_live() in der config.php) - grosser Zoom-Knopf fuer Teilnehmer. */

.live {
    /* Dunkleres Pink, damit sich die Box vom Hinweisbanner (--pink) abhebt,
       wenn beide gleichzeitig zu sehen sind. */
    background: var(--pink-dunkel);
    color: var(--weiss);
    text-align: center;
    padding: 34px 24px 38px;
}
.live__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.live__punkt {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--weiss);
    animation: live-pulsieren 1.6s ease-in-out infinite;
}
@keyframes live-pulsieren {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.75); }
}
.live__kurs {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    max-width: none;
}
.live__zeit { font-weight: 400; white-space: nowrap; }
.live__knopf {
    background: var(--weiss);
    border-color: var(--weiss);
    color: var(--pink-dunkel);
    font-size: 1.05rem;
    padding: 16px 38px;
}
.live__knopf:hover {
    background: var(--creme);
    border-color: var(--creme);
    color: var(--pink-dunkel);
}
@media (prefers-reduced-motion: reduce) {
    .live__punkt { animation: none; }
}

/* Statusmeldung im Inhalt (Mediathek laedt, kein JavaScript) - nicht zu
   verwechseln mit dem Banner .hinweis ganz oben. */
.meldung {
    background: var(--creme);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 24px;
    color: var(--text);
}
.meldung a { color: var(--pink-dunkel); }

/* --- Karten ------------------------------------------------------------- */

.karte {
    background: var(--weiss);
    border: 1px solid var(--grau-hell);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.karte:hover { box-shadow: var(--schatten); transform: translateY(-3px); }
.karte--schmal { max-width: 640px; margin-block: 32px; }

.karte__bild { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Instagram-Beitraege: Ausschnitt richtet sich nach dem Bild.
   Violas Posts sind ueberwiegend 9:16 (Reels) mit eingebranntem Text, einige
   aber quadratisch. Ein festes Format fuer alle beschneidet zwangslaeufig die
   eine oder andere Sorte: 4:3 nahm den Reels die Haelfte der Hoehe, 4:5
   schnitt den quadratischen Posts die Raender ab. Deshalb bekommt jedes Bild
   das Format, das zu ihm passt - der Abholer merkt sich dafuer die Maße. */
.karte__bild--hoch    { aspect-ratio: 4 / 5; }
.karte__bild--quadrat { aspect-ratio: 1 / 1; }

/* Ganze Karte ist der Link zum Beitrag - ein Knopf darunter waere doppelt.
   Der Link erbt die Textfarbe, damit die Karte nicht blau unterstrichen
   wird; die Unterstreichung holt sich der Text beim Ueberfahren zurueck,
   damit erkennbar bleibt, dass hier etwas anklickbar ist. */
.karte__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.karte__link:hover .karte__text p:not(.karte__meta) { text-decoration: underline; }

/* Instagram-Karten enden dort, wo ihr Inhalt endet. Sonst zieht das Raster
   die niedrigere Karte (quadratisches Bild) auf die Hoehe der hochkanten
   und laesst unter ihrem Text eine Luecke stehen - ohne Knopf faellt die auf. */
.raster:has(.karte__link) { align-items: start; }
.karte__text { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.karte__text h3 { margin-bottom: .25em; hyphens: auto; overflow-wrap: break-word; }
.karte__text p  { font-size: .95rem; }
.karte__text .knopf { margin-top: auto; align-self: flex-start; }

/* Nebenzeile unter der Ueberschrift: Uhrzeit, Ort, Kursform. */
.karte__meta {
    font-family: var(--serif);
    font-size: .85rem;
    color: var(--pink-dunkel);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .9em;
}
.karte__text .karte__meta { font-size: .8rem; }
/* Meta-Zeile als Vorzeile ueber der Ueberschrift (News): kein Abstand dazwischen. */
.karte__text .karte__meta + h3 { margin-top: 0; }

.preis {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blau);
    line-height: 1.2;
    margin-bottom: .4em;
}
.karte__text .preis { font-size: 1.5rem; }

/* Nummerierter Schritt in der Ueberschrift. */
.schritt {
    display: inline-grid;
    place-items: center;
    width: 1.7em;
    height: 1.7em;
    margin-right: .35em;
    border-radius: 50%;
    background: var(--pink);
    color: var(--weiss);
    font-size: .8em;
    font-weight: 700;
    vertical-align: .05em;
}

/* --- Sprungleiste und Abschnitte (Meine Kurse) --------------------------- */

/* Sprungknoepfe unter der Einleitung; die Abschnitte halten Abstand zum
   festen Kopf, damit das Ziel nicht darunter verschwindet. */
.sprungleiste { margin-top: 1.4em; }
.sprungleiste .knopf { padding: 10px 20px; font-size: .85rem; }
.abschnitt[id] { scroll-margin-top: var(--kopf-hoehe); }

/* --- Wochenplan (Meine Kurse) -------------------------------------------- */

.kursblock {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    margin-top: 20px;
    padding: 16px 24px;
    background: var(--blau);
    color: var(--weiss);
    border-radius: var(--radius);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}
.kursblock strong { color: #ffb3cc; font-weight: 700; }
.kursblock__knopf { margin-left: auto; padding: 8px 18px; font-size: .8rem; }
.kursblock__zusatz {
    flex-basis: 100%;
    font-family: var(--sans);
    font-size: .9rem;
    opacity: .9;
}

.wochenplan {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 28px;
}
.wochenplan__tag {
    background: var(--weiss);
    border: 1px solid var(--grau-hell);
    border-left: 4px solid var(--pink);
    border-radius: var(--radius);
    padding: 24px 28px;
}
.inhalt .wochenplan__tag h3 { margin: 0 0 .15em; font-weight: 700; }
.wochenplan__ort {
    font-size: .9rem;
    color: var(--blau-hell);
    margin-bottom: 1em;
}
.wochenplan__liste { list-style: none; padding: 0; margin: 0 0 1em; }
.wochenplan__liste li {
    margin: 0;
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--grau-hell);
    font-size: 1.1rem;
}
.wochenplan__liste a { color: var(--blau); font-weight: 500; }
.wochenplan__zeit {
    flex: 0 0 5.5em;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--pink-dunkel);
    font-variant-numeric: tabular-nums;
}
.wochenplan__hinweis { font-size: .9rem; margin: 0; }

/* --- Kursbeschreibungen (Meine Kurse) ------------------------------------ */

.kurs + .kurs { margin-top: 56px; }
.kurs[id] { scroll-margin-top: calc(var(--kopf-hoehe) + 24px); }
.kurs__bild {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius);
}

/* --- Videothek ---------------------------------------------------------- */

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--blau);
    border-radius: var(--radius);
    overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Vorschaubild statt sofortigem YouTube-Einbau: schont Ladezeit und
   laedt erst nach Klick Daten von YouTube (Datenschutz). */
.video__start {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: center/cover no-repeat var(--blau);
}
.video__start::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(50, 65, 88, .3);
    transition: background .2s;
}
.video__start:hover::after { background: rgba(50, 65, 88, .1); }
.video__start:focus-visible { outline-offset: -4px; }
.video__start span {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 68px; height: 48px;
    background: var(--pink);
    border-radius: 12px;
    display: grid;
    place-items: center;
    transition: transform .18s;
}
.video__start:hover span { transform: translate(-50%, -50%) scale(1.08); }
.video__start span::before {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent var(--weiss);
    margin-left: 3px;
}

.video-titel {
    font-family: var(--serif);
    font-size: .95rem;
    color: var(--blau);
    margin: 12px 0 0;
    line-height: 1.35;
}

.kategorie + .kategorie { margin-top: 64px; }

.kategorie-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}
.kategorie-nav a {
    padding: 8px 18px;
    border: 1px solid var(--grau-hell);
    border-radius: 999px;
    color: var(--blau);
    font-size: .9rem;
    transition: background .15s, color .15s, border-color .15s;
}
.kategorie-nav a:hover { background: var(--blau); border-color: var(--blau); color: var(--weiss); text-decoration: none; }

/* --- Formular ----------------------------------------------------------- */

.formular { max-width: 620px; }
.feld { margin-bottom: 20px; }
.feld label {
    display: block;
    font-family: var(--serif);
    font-size: .9rem;
    color: var(--blau);
    margin-bottom: 6px;
}
.feld input, .feld textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--text);
    caret-color: var(--pink);
    border: 1px solid var(--grau-hell);
    border-radius: var(--radius);
    background: var(--weiss);
    transition: border-color .15s;
}
.feld input:hover, .feld textarea:hover { border-color: var(--blau-hell); }
.feld input:focus, .feld textarea:focus {
    outline: 2px solid var(--pink);
    outline-offset: 1px;
    border-color: transparent;
}
.feld textarea { min-height: 150px; resize: vertical; }

/* Radio- und Checkbox-Gruppen ("Worum geht es?", Kurswahl, Kartenwahl).
   Als fieldset ausgezeichnet, damit Screenreader die Frage zur Gruppe vorlesen. */
.feld--auswahl {
    border: 1px solid var(--grau-hell);
    border-radius: var(--radius);
    padding: 16px 18px 6px;
}
.feld--auswahl legend {
    font-family: var(--serif);
    font-size: .9rem;
    color: var(--blau);
    padding: 0 6px;
}
.feld--auswahl .wahl {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    line-height: 1.45;
}
/* Ohne min-width bricht der Text auf schmalen Schirmen in eine neue Flexzeile
   unter den Knopf, statt innerhalb seiner Spalte umzubrechen. */
.feld--auswahl .wahl span { min-width: 0; }
.feld--auswahl .wahl input {
    /* Etwas nach unten, damit der Knopf auf der ersten Textzeile sitzt und
       nicht mittig zwischen zwei umgebrochenen Zeilen haengt. */
    margin-top: .25em;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--pink);
    cursor: pointer;
}
.feld--auswahl .wahl input:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.feld__hinweis {
    font-family: var(--sans);
    font-size: .85rem;
    color: var(--blau-hell);
    font-weight: 400;
}
p.feld__hinweis { margin: 10px 0 0; }

/* Bloecke, die erst zum passenden Anliegen gehoeren. Ohne JavaScript bleiben
   sie sichtbar - das Formular funktioniert dann vollstaendig, nur laenger. */
.formular [data-block][hidden] { display: none; }

/* Honigtopf gegen Spam - fuer Menschen unsichtbar, Robotern sichtbar. */
.honigtopf {
    position: absolute !important;
    left: -9999px !important;
}

.meldung {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.meldung--ok      { background: #e8f5ec; color: #1d6b38; border: 1px solid #b9e0c6; }
.meldung--fehler  { background: #fdecec; color: #a12020; border: 1px solid #f3c2c2; }

/* --- Newsletter-Anmeldung (includes/newsletter-feld.php) ----------------- */

.newsletter {
    background: var(--creme);
    border-left: 4px solid var(--pink);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px 40px;
    align-items: center;
}
.newsletter h2, .newsletter h3 { margin-top: 0; margin-bottom: .3em; }
.newsletter__text p { margin: 0; }
.newsletter__zeile { display: flex; gap: 10px; }
.newsletter__zeile input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--text);
    caret-color: var(--pink);
    border: 1px solid var(--grau-hell);
    border-radius: var(--radius);
    background: var(--weiss);
}
.newsletter__zeile input:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.newsletter__zeile .knopf { flex: 0 0 auto; }
.newsletter--kompakt { grid-template-columns: minmax(0, 1fr); padding: 22px 24px; margin-top: 32px; }

@media (max-width: 700px) {
    .newsletter { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
    .newsletter__zeile { flex-direction: column; }
}

/* --- Rechtstexte (Impressum, Datenschutz) -------------------------------- */

.rechtstext h2 { font-size: 1.35rem; margin-bottom: .4em; }

/* --- Social-Links ------------------------------------------------------- */
/* Icon und Text stehen im selben Link, damit die ganze Zeile klickbar ist.
   Das Icon erbt die Linkfarbe ueber currentColor: weiss in der Fusszeile,
   pink im Fliesstext. flex: none haelt es bei langen Texten in Groesse. */

.social {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.social .icon { flex: none; }

.social-liste {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}
.social-liste li { margin: 0 0 10px; }

.knopf .icon { flex: none; }

/* Icon in einer Ueberschrift (News: Instagram, Telegram). Das Icon skaliert
   mit der Schrift, damit es bei kleinerem h2 auf dem Handy nicht ueberragt. */
.titel-icon {
    display: flex;
    align-items: center;
    gap: .4em;
}
.titel-icon .icon { flex: none; width: 1em; height: 1em; color: var(--pink-dunkel); }

/* Kopfzeile eines Abschnitts: Ueberschrift links, Knopf rechts, auf dem
   Handy untereinander. Die Ueberschrift verliert ihren unteren Abstand,
   den uebernimmt die Zeile. */
.abschnitt__kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 32px;
}
.abschnitt__kopf h2 { margin: 0; }
.abschnitt__kopf .knopf { padding: 10px 20px; font-size: .85rem; }

/* --- Fusszeile ---------------------------------------------------------- */

.fuss {
    background: var(--blau);
    color: rgba(255, 255, 255, .85);
    padding: 56px 0 28px;
    font-size: .95rem;
}
.fuss a { color: var(--weiss); }
.fuss h3 { color: var(--weiss); font-size: 1.1rem; margin-bottom: .8em; }
.fuss__raster {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 40px;
}
.fuss__liste { list-style: none; margin: 0; padding: 0; }
.fuss__liste li { margin: 0 0 8px; }
.fuss__unten {
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    font-size: .85rem;
}
.fuss__rechtliches { display: flex; gap: 20px; }

/* --- Hilfsklassen ------------------------------------------------------- */

.mitte      { text-align: center; }
.mitte :is(p, ul, ol) { margin-left: auto; margin-right: auto; }
.mitte .knoepfe { justify-content: center; }
.vorspann   { font-size: 1.15rem; max-width: 62ch; }
.nur-fuer-screenreader:not(:focus) {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Sprunglink: nur sichtbar, wenn er per Tastatur angesprungen wird. */
.nur-fuer-screenreader:focus {
    position: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    width: auto; height: auto;
    padding: 12px 20px;
    background: var(--pink);
    color: var(--weiss);
    border-radius: var(--radius);
}

/* --- Mobil -------------------------------------------------------------- */

@media (max-width: 900px) {
    .schalter { display: block; }

    /* Aufklappen ueber grid-template-rows statt max-height: animiert
       ohne Layout-Neuberechnung pro Frame. */
    .navigation {
        position: fixed;
        inset: var(--kopf-hoehe) 0 auto;
        display: grid;
        grid-template-rows: 0fr;
        background: var(--weiss);
        transition: grid-template-rows .25s ease;
    }
    .navigation.offen { grid-template-rows: 1fr; }
    .navigation.offen ul { border-bottom: 1px solid var(--grau-hell); box-shadow: var(--schatten); }
    .navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: 0;
        max-height: calc(100vh - var(--kopf-hoehe));
        overflow: hidden auto;
        /* Kein vertikales Padding: das wuerde im zugeklappten Zustand als
           Streifen stehen bleiben. Luft kommt von den Listenpunkten. */
        padding: 0 24px;
    }
    .navigation li { border-bottom: 1px solid var(--grau-hell); }
    .navigation li:first-child { margin-top: 8px; }
    .navigation li:last-child { border-bottom: 0; }
    .navigation a  { display: block; padding: 14px 0; border-bottom: 0; }
    .navigation a.aktiv { color: var(--pink-dunkel); }
    .navigation a.knopf {
        display: inline-block;
        margin: 18px 0 24px;
        padding: 12px 26px;
        border-bottom: 2px solid var(--pink);
    }

    .abschnitt { padding: 52px 0; }
    .abschnitt--eng { padding: 40px 0; }
    .buehne       { padding-bottom: clamp(72px, 12vh, 110px); }
    .buehne__bahn { margin-top: -56px; }
    .buehne__bild { height: clamp(220px, 34vh, 300px); }
    .kurs + .kurs { margin-top: 44px; }
    .kategorie + .kategorie { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* --- Videomediathek: Platzhalter waehrend des Nachladens --- */

/* Die Videos kommen per JavaScript nach. Bis dahin stehen Platzhalter in
   der Seite, damit das Layout nicht springt, sobald die Kacheln eintreffen. */
.video--platzhalter,
.video-titel--platzhalter {
    background: var(--grau-hell);
    border-radius: var(--radius);
}

.video--platzhalter {
    position: relative;
    padding-top: 56.25%;
}

.video-titel--platzhalter {
    height: 1em;
    width: 80%;
    margin-top: 10px;
}

/* Ein heller Streifen wandert ueber die graue Flaeche - das uebliche
   Ladesignal. Umgesetzt als Verlauf, der doppelt so breit ist wie die
   Flaeche und verschoben wird: das laeuft auf der Grafikkarte und kostet
   nichts, anders als eine Animation von Groesse oder Position. */
.video--platzhalter,
.video-titel--platzhalter {
    background-image: linear-gradient(
        100deg,
        transparent 40%,
        rgba(255, 255, 255, .6) 50%,
        transparent 60%
    );
    background-repeat: no-repeat;
    background-size: 250% 100%;
    animation: platzhalter-schimmer 1.6s ease-in-out infinite;
}

@keyframes platzhalter-schimmer {
    from { background-position: 150% 0; }
    to   { background-position: -50% 0; }
}

/* Wer Animationen abgestellt hat, bekommt einen ruhigen Platzhalter. */
@media (prefers-reduced-motion: reduce) {
    .video--platzhalter,
    .video-titel--platzhalter {
        animation: none;
        background-image: none;
    }
}

.mehr-laden {
    display: block;
    margin: 28px auto 0;
}
