/*
 * Stylesheet der öffentlichen Website
 * Praxis für Psychotherapie Mara Linden
 *
 * Gestaltung: weißer Grund, helles freundliches Blau als Akzent, ruhige
 * Bänder statt Kacheln, viel Weißraum, sanfte Animationen.
 *
 * Aufbau:
 *   1. Schrift (lokal, keine externen Server)
 *   2. Farben und Grundwerte
 *   3. Grundlagen und Typografie
 *   4. Barrierefreiheit
 *   5. Knöpfe, Links, Hilfsklassen
 *   6. Kopf und Navigation
 *   7. Startseite
 *   8. Unterseiten
 *   9. Fußzeile
 *  10. Animationen (nur wenn "Bewegung reduzieren" nicht eingestellt ist)
 *  11. Druckansicht
 *
 * Mobile first. Alle Text-Farbkombinationen erfüllen WCAG AA (mind. 4,5:1).
 */

/* 1. Schrift -------------------------------------------------------- */

@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree-latin-var.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

/* Ersatzschrift mit den Maßen von Figtree (angepasste Arial bzw. Roboto).
   Bis Figtree geladen ist, wird diese gezeigt. Weil Breite und Zeilenhöhe
   passen, springt beim Wechsel nichts (kein Layout-Verschieben). */
@font-face {
    font-family: "Figtree Ersatz";
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto"), local("Helvetica");
    size-adjust: 98%;
    ascent-override: 97%;
    descent-override: 25.5%;
    line-gap-override: 0%;
}

/* 2. Farben und Grundwerte ----------------------------------------- */

:root {
    --weiss: #ffffff;
    --hell: #f2f8ff;            /* helles Himmelblau für Bänder */
    --hell-2: #e3f0fe;
    --linie: #e3e9f1;

    --text: #172233;            /* Fließtext (ca. 15:1 auf Weiß) */
    --text-2: #556173;          /* Nebentext (ca. 6:1 auf Weiß) */

    --blau: #1a6fd1;            /* Links und Knöpfe (ca. 5:1 auf Weiß) */
    --blau-dunkel: #1257a8;
    --himmel: #5fb0ff;          /* nur für Flächen und Verzierungen */
    --sonne: #ffd36b;           /* kleiner, freundlicher Akzent */

    --notfall: #c8372d;         /* ca. 5:1 mit weißer Schrift */
    --notfall-dunkel: #a42a21;
    --notfall-hell: #fff3f1;

    --fuss: #0f2846;

    --fokus: #0b3d7a;

    --schrift: "Figtree", "Figtree Ersatz", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 16px;
    --radius-gross: 28px;
    --kopf-hoehe: 4.5rem;
    --weich: cubic-bezier(.22, .8, .24, 1);
}

/* 3. Grundlagen und Typografie ------------------------------------- */

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

[hidden] {
    display: none !important;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--weiss);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 1.125rem;        /* 18 px Fließtext */
    line-height: 1.7;
    overflow-wrap: break-word;
}

@media (min-width: 64em) {
    body {
        font-size: 1.1875rem;   /* 19 px auf großen Bildschirmen */
    }
}

img,
svg {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 .6em;
    text-wrap: balance;
}

/* Keine automatische Silbentrennung in Überschriften (trennte auch Wörter, die
   gepasst hätten, z. B. "wäh-rend"). Die Hauptüberschrift wird auf schmalen
   Handys etwas kleiner, damit auch "Datenschutzerklärung" in eine Zeile passt.
   Nur ein extrem langes, im Admin eingegebenes Wort wird notfalls umbrochen. */
h1,
h2,
h3 {
    overflow-wrap: break-word;
}

h1 {
    font-size: min(clamp(2.3rem, 1.6rem + 3vw, 3.75rem), 9vw);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--blau);
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    transition: color .2s ease;
}

a:hover {
    color: var(--blau-dunkel);
}

address {
    font-style: normal;
}

strong {
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 74rem;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Schmale Textspalte (ca. 65 Zeichen pro Zeile) */
.schmal {
    max-width: 48rem;
    margin-inline: auto;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: none;
    vertical-align: -0.2em;
}

/* Markierung [PRÜFEN]: muss von der Praxis bestätigt werden (vor dem Livegang entfernen) */
mark.pruefen {
    background: #ffcf9e;
    color: #4a2400;
    font-size: .75em;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .05em .35em;
    border-radius: 4px;
    white-space: nowrap;
    vertical-align: .1em;
}

/* 4. Barrierefreiheit ---------------------------------------------- */

:focus-visible {
    outline: 3px solid var(--fokus);
    outline-offset: 3px;
    border-radius: 4px;
}

main:focus {
    outline: none;
}

.sprunglink {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--blau);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
}

.sprunglink:focus {
    top: 1rem;
    color: #fff;
}

/* 5. Knöpfe, Links, Hilfsklassen ----------------------------------- */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 3.1rem;
    padding: .75rem 1.6rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--schrift);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--weich), box-shadow .25s ease;
}

.knopf:hover {
    transform: translateY(-1px);
}

.knopf--haupt {
    background: var(--blau);
    color: #fff;
    box-shadow: 0 6px 18px rgba(26, 111, 209, .22);
}

.knopf--haupt:hover {
    background: var(--blau-dunkel);
    color: #fff;
    box-shadow: 0 8px 22px rgba(26, 111, 209, .28);
}

.knopf--rand {
    background: var(--weiss);
    border-color: var(--blau);
    color: var(--blau);
}

.knopf--rand:hover {
    background: var(--hell);
    color: var(--blau-dunkel);
}

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

.knopf--notfall {
    background: var(--notfall);
    color: #fff;
}

.knopf--notfall:hover {
    background: var(--notfall-dunkel);
    color: #fff;
}

.knopfreihe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
    margin: 2rem 0 0;
}

/* Textlink mit Pfeil, der sich beim Darüberfahren leicht bewegt */
.textlink {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 650;
    text-decoration: none;
}

.textlink .icon {
    transition: transform .3s var(--weich);
}

.textlink:hover {
    text-decoration: underline;
}

.textlink:hover .icon {
    transform: translateX(4px);
}

.textlink--notfall {
    color: var(--notfall);
}

.textlink--notfall:hover {
    color: var(--notfall-dunkel);
}

.tel-link,
.mail-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 650;
    text-decoration: none;
}

.tel-link {
    white-space: nowrap;
}

.mail-link {
    overflow-wrap: anywhere;
}

.tel-link:hover,
.mail-link:hover {
    text-decoration: underline;
}

.tel-link--gross {
    font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mail-link--gross {
    font-size: 1.1rem;
}

.dezent {
    color: var(--text-2);
}

.klein {
    font-size: 1rem;
    line-height: 1.6;
}

.dachzeile {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    color: var(--blau);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: .04em;
}

.abschnitt-titel {
    text-align: center;
    margin-bottom: 2rem;
}

.band {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.band--hell {
    background: var(--hell);
}

/* Bilder und Platzhalter */
.bild {
    margin: 0;
}

.bild img {
    width: 100%;
    border-radius: var(--radius-gross);
    background: var(--hell);
}

/* Foto des Praxisraums nicht größer als nötig */
.bild--quer {
    max-width: 52rem;
    margin-inline: auto;
}

.portrait {
    width: 9.5rem;
    flex: none;
}

.portrait .bild img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--weiss), 0 0 0 7px var(--hell-2);
}

/* 6. Kopf und Navigation ------------------------------------------- */

.kopf {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Bewusst ohne backdrop-filter: der Weichzeichner wird bei jedem
       Scroll-Bild neu berechnet und lässt die Seite auf Handys ruckeln. */
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
}

/* Kleine Bildschirme: Raster, damit Name, Notfall und Menü immer in einer Zeile bleiben */
.kopf__innen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .5rem .6rem;
    min-height: var(--kopf-hoehe);
    padding-block: .5rem;
}

.wortmarke {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    line-height: 1.2;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.wortmarke:hover {
    color: var(--text);
}

.wortmarke__text {
    display: flex;
    flex-direction: column;
}

.wortmarke__name {
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 550;
    letter-spacing: 0;
}

/* Sehr schmale Handys (bis 360 Pixel): Name und Notfall-Knopf etwas kompakter,
   damit "Psychotherapie" nicht unter den Knopf läuft */
@media (max-width: 22.5em) {
    .kopf__innen {
        column-gap: .45rem;
    }

    .wortmarke {
        font-size: .95rem;
    }

    .notfall-link {
        gap: .3rem;
        padding-inline: .6rem;
        font-size: .95rem;
    }
}

.notfall-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.6rem;
    padding: .4rem .95rem;
    border: 1.5px solid var(--notfall);
    border-radius: 999px;
    color: var(--notfall);
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease;
}

.notfall-link:hover,
.notfall-link[aria-current="page"] {
    background: var(--notfall);
    color: #fff;
}

.menueknopf {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1.5px solid var(--linie);
    border-radius: 12px;
    background: var(--weiss);
    color: var(--text);
    cursor: pointer;
}

.menueknopf .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.menueknopf__auf {
    display: inline-flex;
}

.menueknopf__zu,
.menueknopf[aria-expanded="true"] .menueknopf__auf {
    display: none;
}

.menueknopf[aria-expanded="true"] .menueknopf__zu {
    display: inline-flex;
}

/* Text nur für Screenreader */
.menueknopf__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Navigation: kleine Bildschirme (aufklappbar, volle Breite unter der Kopfzeile) */
.hauptnavigation {
    grid-column: 1 / -1;
    grid-row: 2;
}

.hauptnavigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hauptnavigation__liste {
    display: grid;
    gap: .1rem;
    padding: .5rem 0 1rem;
}

.hauptnavigation a {
    display: block;
    padding: .7rem .25rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--linie);
}

.hauptnavigation a:hover,
.hauptnavigation a[aria-current="page"],
.hauptnavigation a.ist-aktiv {
    color: var(--blau);
}

.untermenue a {
    padding-left: 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Ohne JavaScript ist das Menü immer offen, der Knopf wird nicht gebraucht.
   Mit JavaScript ist der Knopf sofort da (die Klasse "js" setzt seite.js im
   <head>), so springt der Kopf beim Laden nicht. */
html:not(.js) .menueknopf {
    display: none;
}

@media (max-width: 77.99em) {
    .js .hauptnavigation:not(.ist-offen) {
        display: none;
    }

    /* Offenes Menü nie höher als der Bildschirm (z. B. Handy quer), sonst
       wären die unteren Punkte im fest stehenden Kopf nicht erreichbar */
    .hauptnavigation.ist-offen {
        max-height: calc(100vh - var(--kopf-hoehe) - 1rem);
        max-height: calc(100dvh - var(--kopf-hoehe) - 1rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Navigation: große Bildschirme */
@media (min-width: 78em) {
    .kopf__innen {
        display: flex;
        gap: 1.25rem;
    }

    .menueknopf {
        display: none;
    }

    .wortmarke {
        flex: none;
    }

    .hauptnavigation {
        margin-left: auto;
    }

    .hauptnavigation__liste {
        display: flex;
        align-items: center;
        gap: .25rem;
        padding: 0;
    }

    .hauptnavigation a {
        position: relative;
        padding: .5rem .55rem;
        border: 0;
        color: var(--text-2);
        font-size: 1rem;
        font-weight: 550;
        white-space: nowrap;
    }

    /* Unterstrich, der weich aufgezogen wird */
    .hauptnavigation__liste > li > a::after {
        content: "";
        position: absolute;
        left: .55rem;
        right: .55rem;
        bottom: .2rem;
        height: 2px;
        border-radius: 2px;
        background: var(--blau);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s var(--weich);
    }

    .hauptnavigation__liste > li > a:hover::after,
    .hauptnavigation__liste > li > a[aria-current="page"]::after,
    .hauptnavigation__liste > li > a.ist-aktiv::after {
        transform: scaleX(1);
    }

    .hauptnavigation a[aria-current="page"],
    .hauptnavigation a.ist-aktiv {
        color: var(--text);
    }

    .hat-untermenue {
        position: relative;
    }

    .untermenue {
        position: absolute;
        top: calc(100% + .5rem);
        left: 0;
        z-index: 60;
        min-width: 21rem;
        padding: .5rem !important;
        background: var(--weiss);
        border: 1px solid var(--linie);
        border-radius: var(--radius);
        box-shadow: 0 18px 40px rgba(15, 40, 70, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .25s ease, transform .3s var(--weich), visibility 0s linear .3s;
    }

    /* Unsichtbare Brücke, damit das Menü beim Hinüberfahren offen bleibt */
    .untermenue::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -.75rem;
        height: .75rem;
    }

    .hat-untermenue:hover .untermenue,
    .hat-untermenue:focus-within .untermenue {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .25s ease, transform .3s var(--weich), visibility 0s;
    }

    .untermenue a {
        padding: .6rem .8rem;
        border-radius: 10px;
        color: var(--text);
        font-weight: 500;
    }

    .untermenue a:hover,
    .untermenue a[aria-current="page"] {
        background: var(--hell);
        color: var(--blau);
    }
}

/* 7. Startseite ----------------------------------------------------- */

.held {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4.5rem, 12vw, 9rem) clamp(3rem, 7vw, 5rem);
    text-align: center;
    background: linear-gradient(180deg, var(--hell) 0%, var(--weiss) 100%);
}

/* Freundliche, weiche Farbflächen im Hintergrund (rein dekorativ) */
.held::before,
.held::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.held::before {
    width: 34rem;
    height: 34rem;
    top: -16rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(95, 176, 255, .35), rgba(95, 176, 255, 0) 70%);
}

.held::after {
    width: 26rem;
    height: 26rem;
    top: -6rem;
    right: -8rem;
    background: radial-gradient(circle, rgba(255, 211, 107, .42), rgba(255, 211, 107, 0) 70%);
}

.held__innen {
    position: relative;
    z-index: 2;
    max-width: 52rem;
}

.held h1 {
    margin-bottom: .45em;
}

/* Einstieg mit Titelbild: Foto füllt die Fläche, ein blauer Schleier hält die
   weiße Schrift auf jedem Bildbereich gut lesbar (Kontrast mind. 4,5:1). */
.held--bild {
    display: grid;
    align-items: center;
    min-height: clamp(26rem, 72vh, 44rem);
    background: #2a6db8;
}

.held__hintergrund img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    z-index: 0;
}

.held--bild::before {
    inset: 0;
    width: auto;
    height: auto;
    z-index: 1;
    border-radius: 0;
    background:
        radial-gradient(ellipse 65% 55% at 50% 50%, rgba(9, 38, 82, .42), rgba(9, 38, 82, 0) 80%),
        linear-gradient(180deg, rgba(12, 50, 105, .55) 0%, rgba(12, 50, 105, .42) 50%, rgba(9, 38, 82, .58) 100%);
}

.held--bild::after {
    display: none;
}

/* Handy: Text liegt über den hellsten Wolken, Schleier etwas dichter */
@media (max-width: 47.99em) {
    .held--bild::before {
        background: linear-gradient(180deg, rgba(12, 50, 105, .64) 0%, rgba(12, 50, 105, .57) 50%, rgba(9, 38, 82, .62) 100%);
    }
}

/* Titelbild ohne Blau (im Admin abwählbar): neutraler dunkler Schleier,
   damit die weiße Schrift auch auf hellen Fotos lesbar bleibt */
.held--neutral {
    background: #3a3a3a;
}

.held--neutral::before,
.held--neutral.held--bild::before {
    background:
        radial-gradient(ellipse 65% 55% at 50% 50%, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 80%),
        linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .45) 100%);
}

@media (max-width: 47.99em) {
    .held--neutral.held--bild::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .42) 50%, rgba(0, 0, 0, .5) 100%);
    }
}

.held--neutral.held--bild .held__person {
    color: #f2f2f2;
}

.held--bild h1,
.held--bild .held__person,
.held--bild .dachzeile {
    color: #fff;
    text-shadow: 0 1px 18px rgba(5, 20, 45, .35);
}

.held--bild .held__person {
    color: #eaf3ff;
}

.held--bild .knopf--hell {
    box-shadow: 0 10px 28px rgba(5, 20, 45, .25);
}

.held--bild .knopf--hell:hover {
    background: var(--hell);
    color: var(--blau-dunkel);
}

.held--bild :focus-visible {
    outline-color: #fff;
}

.held__person {
    margin: 0 auto 2.25rem;
    color: var(--text-2);
    font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
}

.willkommen {
    padding-block: clamp(1rem, 3vw, 2rem) clamp(3.5rem, 8vw, 5.5rem);
    text-align: center;
}

.willkommen__text {
    font-size: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
    line-height: 1.65;
}

/* Hinweis "nur gesetzlich Versicherte": leicht hervorgehoben */
.willkommen__kasse {
    max-width: 38rem;
    margin: 1.75rem auto 0;
    padding: .85rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--hell-2);
    background: var(--hell);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

.willkommen__kasse p {
    margin: 0;
}

.sprechzeiten {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    max-width: 60rem;
}

.sprechzeiten__titel {
    margin-bottom: .35rem;
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sprechzeiten__zeit {
    margin-bottom: .35rem;
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.sprechzeiten .dezent {
    margin: 0;
}

/* Handy: Sprechzeiten wie die übrigen Abschnitte zentriert */
@media (max-width: 47.99em) {
    .sprechzeiten {
        justify-content: center;
        text-align: center;
    }
}

.person-kurz {
    padding-block: clamp(4rem, 9vw, 6.5rem);
    text-align: center;
}

.person-kurz .portrait {
    margin: 0 auto 1.5rem;
}

.person-kurz__name {
    font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem);
    margin-bottom: .25rem;
}

.person-kurz__beruf {
    line-height: 1.6;
}

/* Übersicht: nummerierte, klar abgesetzte Einträge */
.themenliste {
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: thema;
}

.themenliste li {
    counter-increment: thema;
}

.themenliste__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .2rem 1.25rem;
    align-items: center;
    padding: 1.25rem 1.4rem;
    background: var(--weiss);
    border: 1px solid #d5e5f7;
    border-radius: 18px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--weich);
}

/* Laufende Nummer 01, 02, ... */
.themenliste__link::before {
    content: counter(thema, decimal-leading-zero);
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: var(--hell-2);
    color: var(--blau);
    font-size: 1rem;
    font-weight: 700;
    transition: background-color .3s ease, color .3s ease;
}

.themenliste__titel {
    grid-column: 2;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color .25s ease;
}

.themenliste__text {
    grid-column: 2;
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.5;
}

.themenliste__pfeil {
    grid-row: 1 / span 2;
    grid-column: 3;
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: var(--blau);
    transition: background-color .3s ease, color .3s ease, transform .35s var(--weich);
}

.themenliste__link:hover {
    color: var(--text);
    border-color: var(--blau);
    box-shadow: 0 12px 30px rgba(26, 111, 209, .12);
    transform: translateY(-2px);
}

.themenliste__link:hover::before {
    background: var(--blau);
    color: #fff;
}

.themenliste__link:hover .themenliste__titel {
    color: var(--blau);
}

.themenliste__link:hover .themenliste__pfeil {
    background: var(--hell-2);
    transform: translateX(4px);
}

/* Auf weißem Grund (z. B. unter Textseiten) leicht getönt */
.bereich .themenliste__link {
    background: var(--hell);
    border-color: transparent;
}

.bereich .themenliste__link:hover {
    background: var(--weiss);
    border-color: var(--blau);
}

@media (max-width: 29.99em) {
    .themenliste__link {
        grid-template-columns: auto 1fr;
        padding: 1.1rem 1.1rem;
        gap: .15rem 1rem;
    }

    .themenliste__pfeil {
        display: none;
    }
}

.hilfeband {
    padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.hilfeband__innen {
    padding: clamp(1.75rem, 5vw, 2.75rem);
    text-align: center;
    background: var(--notfall-hell);
    border-radius: var(--radius-gross);
}

.hilfeband__titel {
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem);
    margin-bottom: .5rem;
}

.hilfeband p:last-child {
    margin: 1.5rem 0 0;
}

/* 8. Unterseiten ---------------------------------------------------- */

.seitenkopf {
    padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem);
    text-align: center;
    background: linear-gradient(180deg, var(--hell) 0%, var(--weiss) 100%);
}

.seitenkopf h1 {
    max-width: 50rem;
    margin-inline: auto;
    margin-bottom: .45em;
}

.seitenkopf__einleitung {
    max-width: 40rem;
    margin-inline: auto;
    color: var(--text-2);
    font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);
}

.seitenkopf__einleitung p:last-child {
    margin-bottom: 0;
}

.brotkrumen {
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.brotkrumen ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brotkrumen li {
    display: flex;
    align-items: center;
}

/* Handy: Bei drei Ebenen die aktuelle Seite weglassen (steht ohnehin groß als
   Überschrift darunter), sonst bricht die Zeile mit einem "/" am Anfang um. */
@media (max-width: 39.99em) {
    .brotkrumen li:nth-child(3):last-child {
        display: none;
    }
}

.brotkrumen li + li::before {
    content: "/";
    margin-right: .35rem;
    color: #a4afbf;
}

.brotkrumen a {
    color: var(--text-2);
    text-decoration: none;
}

.brotkrumen a:hover {
    color: var(--blau);
    text-decoration: underline;
}

.brotkrumen [aria-current="page"] {
    color: var(--text);
}

.inhalt {
    padding-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem);
}

/* Fließtext */
.prosa h2 {
    margin-top: 2.2em;
    font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem);
}

.prosa > h2:first-child {
    margin-top: 0;
}

.prosa h3 {
    margin-top: 1.75em;
    margin-bottom: .4em;
}

.prosa ul {
    margin: 0 0 1.2em;
    padding-left: 1.3rem;
}

.prosa li {
    margin-bottom: .4em;
    padding-left: .25rem;
}

.prosa li::marker {
    color: var(--blau);
}

.prosa a {
    overflow-wrap: anywhere;
}

.prosa--recht h2 {
    font-size: 1.35rem;
    margin-top: 2em;
}

.abschnitt + .abschnitt {
    margin-top: clamp(3rem, 7vw, 4.5rem);
}

.abschnitt > .bild {
    margin-bottom: 2rem;
}

/* Bereich "Mehr zur Verhaltenstherapie" unter dem Text */
.bereich {
    margin-top: clamp(3rem, 7vw, 4.5rem);
}

.bereich__titel {
    font-size: 1rem;
    color: var(--text-2);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Kontakt-Band am Ende der Unterseiten */
.kontaktband {
    padding-block: clamp(3rem, 7vw, 4.5rem);
    background: var(--hell);
    text-align: center;
}

.kontaktband__titel {
    margin-bottom: .35rem;
    color: var(--text-2);
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kontaktband__zeit {
    font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

.kontaktband__wege {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .75rem 2.5rem;
}

/* Zu meiner Person */
.person-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2rem;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.person-kopf p {
    margin-bottom: .25rem;
}

.person-kopf__name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.zeitleiste {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--linie);
}

.zeitleiste li {
    display: grid;
    gap: .1rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--linie);
}

@media (min-width: 40em) {
    .zeitleiste li {
        grid-template-columns: 9.5rem 1fr;
        gap: 1.5rem;
    }
}

.zeitleiste__zeit {
    color: var(--blau);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Kontakt */
.kontaktwege {
    display: grid;
    gap: 2rem;
}

@media (min-width: 56em) {
    .kontaktwege {
        grid-template-columns: 1.1fr 1.2fr .9fr;
        gap: 0;
    }

    .kontaktweg {
        padding-inline: 2rem;
    }

    .kontaktweg:first-child {
        padding-left: 0;
    }

    .kontaktweg + .kontaktweg {
        border-left: 1px solid #d5e5f7;
    }
}

.kontaktweg__titel {
    margin-bottom: .75rem;
    color: var(--text-2);
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kontaktweg p:last-child {
    margin-bottom: 0;
}

.hinweiszeile {
    padding-left: 1rem;
    border-left: 3px solid var(--himmel);
    color: var(--text-2);
}

.notfallhinweis {
    margin-top: clamp(3rem, 7vw, 4rem);
    padding: 1.5rem 1.75rem;
    background: var(--notfall-hell);
    border-radius: var(--radius);
}

.notfallhinweis__titel {
    font-size: 1.25rem;
    margin-bottom: .4rem;
}

.notfallhinweis p:last-child {
    margin-bottom: 0;
}

/* Praxis & Anfahrt */
.adresse {
    margin-bottom: 2rem;
}

.adresse address {
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
}

/* Karte (OpenStreetMap, lädt erst nach Klick) */
.karte {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    height: clamp(20rem, 55vw, 28rem);
    border-radius: var(--radius-gross);
    background:
        linear-gradient(135deg, rgba(242, 248, 255, .92), rgba(227, 240, 254, .92)),
        repeating-linear-gradient(0deg, transparent 0 38px, #d5e5f7 38px 40px),
        repeating-linear-gradient(90deg, transparent 0 38px, #d5e5f7 38px 40px);
}

.karte__platzhalter {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1rem;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
}

.karte__freigabe {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.karte__freigabe[hidden],
.karte__ohne-js[hidden] {
    display: none;
}

.karte__symbol {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--weiss);
    color: var(--blau);
    box-shadow: 0 6px 18px rgba(26, 111, 209, .15);
}

.karte__symbol .icon {
    width: 1.6rem;
    height: 1.6rem;
}

.karte__hinweis {
    max-width: 30rem;
}

.karte__hinweis p,
.karte__ohne-js {
    margin: 0;
}

.karte__immer {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    cursor: pointer;
}

.karte__immer input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--blau);
}

.karte__rahmen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.karte__unten {
    margin-bottom: 2rem;
}

.karte__unten p {
    margin: 0 0 .35rem;
}

.karte__textknopf {
    padding: .5rem 0;
    border: 0;
    background: none;
    color: var(--blau);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.kartenlink .textlink .icon:first-child {
    color: var(--blau);
}

/* Anlaufstellen & Notfall */
.akutbox {
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
    padding: clamp(1.5rem, 4vw, 2rem);
    background: var(--notfall);
    color: #fff;
    border-radius: var(--radius-gross);
}

.akutbox__titel {
    color: #fff;
    font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
    margin-bottom: .35rem;
}

.akutbox p {
    margin: 0;
    font-size: 1.15rem;
}

.akutbox a {
    color: #fff;
    font-weight: 800;
    font-size: 1.25em;
}

.akutbox :focus-visible {
    outline-color: #fff;
}

.zeilenliste {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--linie);
}

.zeilenliste > li {
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--linie);
}

.anlaufstelle {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem 2rem;
}

.anlaufstelle__info {
    flex: 1 1 18rem;
}

.anlaufstelle__info p,
.anlaufstelle__info div p {
    margin-bottom: .2rem;
}

.anlaufstelle__name {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: .3rem;
}

.anlaufstelle__tel {
    flex: none;
}

/* Links */
.linkeintrag__link {
    display: inline;
    font-size: 1.15rem;
    font-weight: 650;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.linkeintrag__link:hover {
    text-decoration: underline;
}

.linkeintrag__link .icon {
    margin-left: .2rem;
}

.linkeintrag__adresse {
    display: block;
    color: var(--text-2);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

/* 9. Fußzeile ------------------------------------------------------- */

.fuss {
    background: var(--fuss);
    color: #d9e5f3;
    font-size: 1.05rem;
}

.fuss a {
    color: #fff;
}

.fuss a:hover {
    color: #bfe0ff;
}

.fuss :focus-visible {
    outline-color: #fff;
}

.fuss .textlink--notfall {
    color: #ffc2bb;
}

.fuss__raster {
    display: grid;
    gap: 2.25rem;
    padding-block: clamp(3rem, 7vw, 4.5rem);
}

@media (min-width: 40em) {
    .fuss__raster {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 64em) {
    .fuss__raster {
        grid-template-columns: 1.1fr 1.1fr 1.1fr .7fr;
    }
}

.fuss__titel {
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0;
    margin-bottom: .75rem;
}

.fuss__klein {
    color: #b9c9dd;
    font-size: 1rem;
}

.fuss__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fuss__links li {
    margin-bottom: .4rem;
}

.fuss__unten {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-block: 1.25rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 1rem;
    color: #b9c9dd;
}

.fuss__unten p {
    margin: 0;
}

/* Touch-Geräte: Links groß genug zum Antippen (mindestens 44 Pixel) */
@media (pointer: coarse) {
    .brotkrumen a,
    .fuss__links a,
    .tel-link--gross {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .fuss__links li {
        margin-bottom: 0;
    }
}

/* 10. Animationen --------------------------------------------------- */
/*
 * Nur wenn im Betriebssystem "Bewegung reduzieren" NICHT eingestellt ist.
 * - Weicher Übergang beim Seitenwechsel (View Transitions, ohne JavaScript;
 *   Browser ohne Unterstützung wechseln einfach normal).
 * - Inhalte gleiten beim Scrollen sanft herein (seite.js setzt die Klassen).
 *   Ohne JavaScript ist alles sofort sichtbar.
 */

/* Seitenwechsel-Übergang nur am Computer (Maus). Auf dem Handy würde er sich
   mit dem Einblenden der Inhalte überlagern (alles bewegt sich doppelt) und mit
   der Wisch-Geste für "Zurück" kollidieren. Dort blenden nur die Inhalte ein. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root) {
        animation: seite-raus .2s ease both;
    }

    ::view-transition-new(root) {
        animation: seite-rein .5s var(--weich) both;
    }

    /* Der Kopf bleibt beim Seitenwechsel stehen */
    .kopf {
        view-transition-name: kopf;
    }
}

@media (prefers-reduced-motion: no-preference) {

    /* Weiches Scrollen nur bei Klick auf einen Sprunglink. Nicht global, sonst
       scrollt der Browser beim Neuladen sichtbar an die alte Stelle. */
    html:focus-within {
        scroll-behavior: smooth;
    }

    /* Bis seite.js die Elemente vorbereitet hat, ist der Inhalt kurz verborgen.
       Sicherheitsnetz: nach spätestens 1,5 Sekunden wird er auf jeden Fall gezeigt. */
    /* Das Titelbild selbst bleibt sichtbar, damit es sofort lädt und erscheint */
    .js-animation main > :not(.held),
    .js-animation .held__innen {
        opacity: 0;
        animation: sicherheitsnetz 0s 1.5s forwards;
    }

    .js-animation.animation-bereit main > :not(.held),
    .js-animation.animation-bereit .held__innen {
        opacity: 1;
        animation: none;
    }

    /* Nur opacity und transform: das rechnet die Grafikkarte, ohne die Seite neu
       aufzubauen. Dadurch bleibt es auch auf einfachen Handys flüssig. */
    .einblenden {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        transition: opacity .5s ease-out, transform .5s var(--weich);
    }

    .einblenden.ist-sichtbar {
        opacity: 1;
        transform: none;
    }

    /* Das Titelbild zoomt ganz langsam (kaum wahrnehmbar, wirkt lebendig).
       Läuft auf der Grafikkarte. Ist das Bild aus dem Blick gescrollt, hält
       seite.js die Animation an (spart Akku). */
    .held__hintergrund img {
        animation: langsamer-zoom 28s ease-in-out infinite alternate;
        will-change: transform;
    }

    .held.ist-ausser-sicht .held__hintergrund img {
        animation-play-state: paused;
    }

    /* Handy-Menü gleitet weich auf */
    .hauptnavigation.ist-offen {
        transition: opacity .3s ease, transform .35s var(--weich);
    }

    @starting-style {
        .hauptnavigation.ist-offen {
            opacity: 0;
            transform: translateY(-8px);
        }
    }
}

@keyframes seite-raus {
    to {
        opacity: 0;
    }
}

@keyframes seite-rein {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes sicherheitsnetz {
    to {
        opacity: 1;
    }
}

@keyframes langsamer-zoom {
    from {
        transform: scale3d(1, 1, 1);
    }

    to {
        transform: scale3d(1.07, 1.07, 1);
    }
}

/* 11. Druckansicht -------------------------------------------------- */

@media print {
    .hauptnavigation,
    .menueknopf,
    .notfall-link,
    .sprunglink,
    .kontaktband,
    .hilfeband,
    .bild,
    .portrait {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .kopf {
        position: static;
        border: 0;
    }

    .held,
    .seitenkopf {
        background: none;
    }

    .held::before,
    .held::after,
    .held__hintergrund {
        display: none;
    }

    .held--bild h1,
    .held--bild .held__person,
    .held--bild .dachzeile {
        color: #000;
        text-shadow: none;
    }

    main,
    main > *,
    .held__innen,
    .einblenden {
        opacity: 1 !important;
        transform: none !important;
    }

    mark {
        background: none;
        color: inherit;
    }

    .fuss {
        background: none;
        color: #000;
    }

    .fuss a,
    .fuss__titel,
    .fuss__unten,
    .fuss__klein {
        color: #000;
    }
}


.demo-hinweis{padding:.6rem 1rem;background:#183b5b;color:#fff;text-align:center;font-size:.8rem;line-height:1.5}.demo-hinweis a{color:inherit;text-decoration:underline}

.anlaufstelle__info{min-width:0;max-width:100%;overflow-wrap:anywhere}
