@import url('fonts.css');

/* ==========================================================================
   PZH — Psychotherapeutisches Zentrum Hamburg
   --------------------------------------------------------------------------
   Farblogik (kodiert die Struktur, dekoriert nicht):
     Blau   = Psychotherapie — das Dach, der Normalfall
     Eiche  = Diagnostik-Schwerpunkt ADHS/Autismus — der Fokus
     Navy   = Weiterbildungsstaette — B2B, bewusst ruhig (ausdruecklich NICHT gruen)

   Alle Farben stammen aus den Fotos der echten Praxis. Das Sechseck ist kein
   Dekor, sondern die Form der Akustikpaneele an ihrer Wand.

   Bedienhilfen (siehe js/main.js):
     html.calm       — Reizarmer Modus: keine Verlaeufe, keine Schatten, keine Bewegung
     html.essentials — Nur das Wichtigste: blendet .optional aus
     html[data-size] — Groessere Schrift: skaliert --base, alles rechnet in rem
   ========================================================================== */

:root {
  /* --------------------------------------------------------------------
     Die Palette stammt aus den echten Praxisfotos, nicht vom Reissbrett:
     Sessel #38373F, Sechseck-Akustikpaneele #9FC8DF, Eichenboden #A2856E.
     Der Raum ist hell, neutral und ruhig — die Seite auch.
     -------------------------------------------------------------------- */

  /* Hoehe der klebrigen Kopfleiste (bar 4.5rem + Rand) plus ein kleiner
     Sicherheitsaufschlag, damit die naechste Sektion sicher UNTER der Falz
     bleibt und kein Streifen durchblitzt. In rem → skaliert mit „Groessere
     Schrift" mit. */
  --header-h: 4.4rem;

  /* Tiefe / Struktur — aus den Sesseln */
  --ink:        #1B2A38;
  --ink-2:      #33506B;

  /* Handlung */
  --blue:       #0E5A94;
  --blue-deep:  #0A3F69;
  --sky:        #1B9DEF;   /* exakt das Logo-Blau */
  --sky-pale:   #E8F3FC;

  /* Sechseck-Blau der Akustikwand — Flaechen und Tints */
  --hex:        #9FC8DF;
  --hex-pale:   #EAF3F8;

  /* Flaeche — der helle, neutrale Raum */
  --paper:      #FFFFFF;
  --mist:       #F7F8F9;
  --line:       #E2E5E9;
  --line-soft:  #EDEFF2;

  /* Schrift */
  --text:       #1F3448;
  --muted:      #5A7086;

  /* Warmer Akzent = der Eichenboden. Traegt den Diagnostik-Schwerpunkt.
     Auf WCAG AA gerechnet: weisser Text darauf 5.16:1, als Text auf
     --oak-pale 4.52:1. Nicht aufhellen. */
  --oak:        #8A6647;
  --oak-dark:   #6E4D33;
  --oak-pale:   #F5EFE8;
  --oak-line:   #E4D5C4;
  /* Auf dunklem Grund muss die Eiche heller werden, sonst wird sie schlammig.
     Dunkler Text darauf: 5.85:1. */
  --oak-light:  #C89B72;
  --oak-light-2:#DCB68D;

  /* Zustaende */
  --focus:      #FFC72C;
  --warn-bg:    #FFF8E8;
  --warn-line:  #EDCF93;
  --warn-text:  #6B4708;

  /* Typo */
  --base: 17px;
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Form */
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow: 0 14px 34px rgba(10, 36, 64, .08);
  --shadow-lg: 0 26px 60px rgba(10, 36, 64, .13);

  /* Raster */
  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --section-y: clamp(3.25rem, 7vw, 6rem);
}

/* Groessere Schrift — greift auf :root, damit ALLE rem-Werte mitskalieren. */
html[data-size="l"]  { --base: 19.5px; }
html[data-size="xl"] { --base: 22px; }

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

html {
  font-size: var(--base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.5rem + 2.4vw, 3.3rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.2rem, 1.08rem + .5vw, 1.45rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.1rem, 1.02rem + .38vw, 1.28rem);
  line-height: 1.6;
  color: #33495F;
}

.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #D7E3EF; }
.section--ink h2, .section--ink h3 { color: #FFF; }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head .lead { margin-top: -.2em; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Buttons — gross, klar, fingerfreundlich (min. 48px Touch-Target)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }

.btn--oak { background: var(--oak); color: #fff; }
.btn--oak:hover { background: var(--oak-dark); color: #fff; }
/* Auf dunklem Grund kehrt sich die Eiche um: heller Ton, dunkler Text. */
.band .btn--oak,
.section--ink .btn--oak { background: var(--oak-light); color: var(--ink); }
.band .btn--oak:hover,
.section--ink .btn--oak:hover { background: var(--oak-light-2); color: var(--ink); }

.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--paper); }

.btn--quiet { background: var(--sky-pale); color: var(--blue-deep); }
.btn--quiet:hover { background: #D9EBFA; color: var(--blue-deep); }

.btn--onink { background: #fff; color: var(--ink); }
.btn--onink:hover { background: var(--sky-pale); color: var(--ink); }

.btn--block { width: 100%; }
.btn--lg { min-height: 3.4rem; padding: .95rem 1.9rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Fokus — durchgehend sichtbar, hoher Kontrast */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; margin-right: auto;
  min-width: 0;   /* sonst sprengt der Text im Flex-Kontext den Header */
}
.brand img { height: 2.3rem; width: auto; flex: none; }
@media (min-width: 48em) { .brand img { height: 2.7rem; } }

/* Der Zusatz steht NEBEN dem Logo, nicht darunter — und nur da, wo nach der
   Navigation wirklich Platz bleibt. Darunter kollidierte er mit dem Menue. */
.brand__txt { display: none; }  /* Element entfernt — siehe header.html.twig */
@media (min-width: 90em) {
  .brand__txt {
    display: block;
    padding-left: .85rem;
    border-left: 1px solid var(--line);
    font-size: .76rem;
    line-height: 1.35;
    color: var(--muted);
    white-space: nowrap;
  }
}

.nav { display: none; }
@media (min-width: 62em) {
  .nav { display: flex; align-items: center; gap: .1rem; }
  .nav a {
    padding: .55rem .72rem;
    border-radius: var(--radius-pill);
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
  }
  .nav a:hover { background: var(--sky-pale); color: var(--blue-deep); }
  .nav a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; background: var(--sky-pale); }
  .nav__cta { background: var(--blue) !important; color: #fff !important; padding-inline: 1.1rem !important; }
  .nav__cta:hover { background: var(--blue-deep) !important; color: #fff !important; }
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  background: var(--sky-pale);
  color: var(--blue-deep);
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}
@media (min-width: 62em) { .burger { display: none; } }

/* Mobile-Menue — Geschwister des Headers, nie darin verschachtelt
   (position:fixed wird sonst vom backdrop-filter-Stacking-Context gefangen). */
.mobilenav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  padding: 1.15rem;
  overflow-y: auto;
  display: none;
}
.mobilenav[data-open="true"] { display: block; }
@media (min-width: 62em) { .mobilenav { display: none !important; } }

.mobilenav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.mobilenav__close {
  min-height: 2.75rem; padding: .5rem 1rem;
  background: var(--mist); border: 0; border-radius: var(--radius-pill);
  font-weight: 600; cursor: pointer; color: var(--ink);
}
.mobilenav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }

/* Bewusst auf `nav a` beschraenkt: Ein blosses `.mobilenav a` haette hoehere
   Spezifitaet als `.btn--primary` und wuerde die CTA-Buttons darunter
   uebersteuern — dunkler Text auf blauem Grund, Kontrast 2.17. */
.mobilenav nav a {
  display: block;
  padding: .95rem 1rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-soft);
}
.mobilenav nav a[aria-current="page"] { background: var(--sky-pale); border-color: var(--sky-pale); color: var(--blue-deep); font-weight: 600; }
.mobilenav__cta { margin-top: 1rem; display: grid; gap: .6rem; }

/* --------------------------------------------------------------------------
   Bedienhilfen — schwebender Button + Panel.
   Die Signature des Projekts: funktional, nicht dekorativ.
   -------------------------------------------------------------------------- */
.a11y { position: fixed; z-index: 300; right: 1rem; bottom: 1rem; }
@media (min-width: 48em) { .a11y { right: 1.5rem; bottom: 1.5rem; } }

.a11y__btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3.25rem; padding: .6rem 1.15rem .6rem .85rem;
  background: var(--ink); color: #fff;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  box-shadow: 0 8px 26px rgba(10, 36, 64, .28);
  transition: background-color .18s ease;
}
.a11y__btn:hover { background: var(--blue-deep); }
.a11y__btn svg { width: 1.5rem; height: 1.5rem; flex: none; }
/* Zeigt an, dass eine Einstellung vom Standard abweicht. */
.a11y__btn.is-active { background: var(--blue); border-color: var(--sky); }
@media (max-width: 30em) {
  .a11y__btn-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .a11y__btn { padding: .6rem; }
}

.a11y__panel {
  position: absolute; right: 0; bottom: calc(100% + .75rem);
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 6rem));
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(10, 36, 64, .22);
  padding: 1.25rem;
}
.a11y__panel[hidden] { display: none; }

.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.a11y__head h2 { font-size: 1.15rem; margin: 0; }
.a11y__close {
  min-width: 2.25rem; min-height: 2.25rem;
  background: var(--mist); border: 0; border-radius: 50%;
  color: var(--ink); cursor: pointer; font-size: .9rem;
}
.a11y__close:hover { background: var(--sky-pale); }
.a11y__hint { font-size: .82rem; color: var(--muted); margin: .35rem 0 1.15rem; }

.a11y__group { border: 0; margin: 0 0 1.15rem; padding: 0; }
.a11y__group legend {
  padding: 0; margin-bottom: .5rem;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.a11y__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.a11y__seg button {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  min-height: 3.25rem; padding: .5rem .3rem;
  background: var(--mist); border: 1.5px solid transparent;
  border-radius: 12px; cursor: pointer;
  font-size: .74rem; font-weight: 500; color: var(--ink);
  line-height: 1.2;
}
.a11y__seg button:hover { border-color: var(--sky); }
.a11y__seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.a11y__row {
  display: flex; align-items: flex-start; gap: .7rem;
  width: 100%; text-align: left;
  padding: .7rem; margin-bottom: .35rem;
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.a11y__row:hover { border-color: var(--sky); background: var(--hex-pale); }
.a11y__row strong { display: block; font-size: .92rem; color: var(--ink); }
.a11y__row small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* Schalter */
.a11y__sw {
  flex: none; position: relative;
  width: 2.35rem; height: 1.35rem; margin-top: .15rem;
  background: var(--line); border-radius: 999px;
  transition: background-color .18s ease;
}
.a11y__sw::after {
  content: ''; position: absolute; top: .2rem; left: .2rem;
  width: .95rem; height: .95rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .18s ease;
}
.a11y__row[aria-pressed="true"] .a11y__sw { background: var(--blue); }
.a11y__row[aria-pressed="true"] .a11y__sw::after { transform: translateX(1rem); }
.a11y__row[aria-pressed="true"] { border-color: var(--blue); }

.a11y__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.a11y__foot .btn { min-height: 2.5rem; padding: .45rem 1rem; font-size: .88rem; }
.a11y__link { font-size: .82rem; }

/* --------------------------------------------------------------------------
   Zwei echte Lesehilfen aus dem Panel
   -------------------------------------------------------------------------- */
/* Links auch ohne Farbe erkennbar (WCAG 1.4.1 Use of Color). */
html.links :where(.prose, .index, .faq__body, .card, .band, main p, main li) a { text-decoration: underline; text-underline-offset: .18em; }

/* Mehr Luft zwischen Zeilen, kuerzere Zeilen. */
html.spacing body { line-height: 1.85; letter-spacing: .01em; }
html.spacing p { margin-bottom: 1.4em; }
html.spacing .prose { max-width: 34rem; }
html.spacing li { margin-bottom: .7em; }

/* --------------------------------------------------------------------------
   Hero — die Praxis zeigen, nicht behaupten.
   Links der Text, rechts ein echtes Foto der Raeume, das bis an den
   Bildschirmrand laeuft. Kein Verlauf, keine schwebende Karte.
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }

/* Der Hero muss auf 1366x768 KOMPLETT ueber die Falz passen — das ist die
   haeufigste Notebook-Aufloesung. Budget: 768 minus Header = ~690px.
   Deshalb: knappe Innenabstaende, H1 auf drei Zeilen begrenzt, Lead kurz. */
.hero__inner {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vh, 3rem);
}
@media (min-width: 62em) {
  /* Der Hero fuellt genau den ersten Bildschirm (Viewport minus Kopfleiste),
     damit beim Ankommen NUR der Hero sichtbar ist und die naechste Sektion
     nicht durchblitzt. Inhalt vertikal zentriert; waechst der Inhalt einmal
     ueber die Falz, greift min-height nicht — kein Abschneiden. */
  .hero {
    display: grid;
    align-content: center;
    min-height: calc(100svh - var(--header-h));
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    /* Das Bild bricht rechts aus dem Raster in den Anschnitt. */
    padding-right: 0;
    gap: clamp(2rem, 3.5vw, 3.25rem);
  }
}

.hero h1 {
  margin-bottom: .35em;
  /* Bremst die Zeilenzahl: sonst laeuft die H1 auf fuenf Zeilen und
     schiebt die Buttons unter die Falz. */
  font-size: clamp(1.95rem, 1.35rem + 1.9vw, 2.8rem);
  max-width: 15ch;
}
@media (min-width: 62em) { .hero h1 { max-width: 17ch; } }

.hero .lead { margin-bottom: 1.5rem; max-width: 30rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); }
.hero .btn-row { margin-bottom: 1.5rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.35rem;
  font-size: .86rem; color: var(--muted);
  padding-top: 1.1rem; border-top: 1px solid var(--line);
  max-width: 34rem;
}
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust span::before {
  content: ''; flex: none;
  width: .5rem; height: .5rem;
  background: var(--hex);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
@media (min-width: 62em) {
  .hero__figure img {
    aspect-ratio: 4 / 5;
    /* Deckelt die Hoehe, damit der Hero auf niedrigen Schirmen nicht
       durch das Bild ueber die Falz waechst. */
    height: min(30rem, 62vh);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    /* bis in den rechten Anschnitt ziehen */
    width: calc(100% + 50vw - 50%);
    max-width: none;
  }
}

/* Bildnachweis, dezent */
.hero__credit {
  position: absolute; right: 1rem; bottom: .75rem;
  font-size: .7rem; letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* --------------------------------------------------------------------------
   Sechseck — die Form von der Akustikwand der Praxis. Unser Marker.
   -------------------------------------------------------------------------- */
.hexmark {
  display: grid; place-items: center;
  flex: none;
  background: var(--hex-pale);
  color: var(--blue);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

/* --------------------------------------------------------------------------
   Schnellwahl — der zentrale Einstieg
   -------------------------------------------------------------------------- */
.picker { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 34em) { .picker { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .picker { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.3rem, 2.5vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tile:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: var(--text);
}
.tile h3 { margin: 0; font-size: 1.22rem; }
.tile p { font-size: .93rem; color: var(--muted); margin: 0; }
.tile__more {
  margin-top: auto; padding-top: .85rem;
  font-size: .9rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: .35rem;
}
.tile:hover .tile__more { gap: .6rem; }
.tile__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 14px;
  background: var(--sky-pale);
  color: var(--blue);
  display: grid; place-items: center;
  margin-bottom: .35rem;
}
.tile__icon svg { width: 1.4rem; height: 1.4rem; }

/* Diagnostik-Kachel traegt den Fokus-Akzent */
.tile--focus { border-color: var(--oak-line); background: linear-gradient(180deg, var(--oak-pale) 0%, #fff 42%); }
.tile--focus:hover { border-color: var(--oak); }
.tile--focus .tile__icon { background: var(--oak-pale); color: var(--oak); }
.tile--focus .tile__more { color: var(--oak); }

/* Weiterbildung: bewusst ruhig, im Navy-Feld — nicht gruen, nicht dominant */
.tile--quiet { background: var(--mist); border-color: var(--line); }
.tile--quiet .tile__icon { background: #E3E9EF; color: var(--ink-2); }
.tile--quiet .tile__more { color: var(--ink-2); }
.tile--quiet:hover { border-color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Karten / Prosa
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.card--pale { background: var(--sky-pale); border-color: transparent; }
.card--oak { background: var(--oak-pale); border-color: var(--oak-line); }

.grid-2 { display: grid; gap: var(--gap); }
@media (min-width: 55em) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
/* Rasterkinder duerfen unter ihre Inhaltsbreite schrumpfen — sonst sprengt
   breiter Inhalt (Formularfelder, Copybox) das Layout auf schmalen Schirmen. */
.grid-2 > *, .split > *, .grid-3 > * { min-width: 0; }
.grid-3 { display: grid; gap: var(--gap); }
@media (min-width: 44em) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68em) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 58em) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 58em) { .split--reverse > *:first-child { order: 2; } }

/* Textmass: ~72 Zeichen. Laengere Zeilen kosten beim Zurückspringen an den
   Zeilenanfang Aufmerksamkeit — bei ADHS/Autismus als Zielgruppe umso mehr.
   Raster, Schritte und Kaesten duerfen breiter ausbrechen als der Fliesstext. */
.prose { max-width: 40rem; }
.prose > .grid-2,
.prose > .grid-3,
.prose > .steps,
.prose > .card,
.prose > .notice { max-width: min(var(--wrap), 58rem); }
@media (min-width: 62em) {
  .prose > .grid-2,
  .prose > .grid-3,
  .prose > .steps { width: calc(100% + 12rem); max-width: min(58rem, calc(100vw - 5rem)); }
}
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--sky); }

/* Check-Liste */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; }
.checks li::before {
  content: '';
  flex: none;
  width: 1.3rem; height: 1.3rem;
  margin-top: .12rem;
  border-radius: 50%;
  background: var(--sky-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230E5A94' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/.85rem no-repeat;
}

/* --------------------------------------------------------------------------
   Ablauf-Schritte — Nummern tragen hier echte Information (Reihenfolge).
   Kein Kasten drumherum: eine durchlaufende Linie, an der die Schritte haengen.
   -------------------------------------------------------------------------- */
.steps {
  display: grid; gap: 1.75rem 1.25rem;
  counter-reset: step; list-style: none; margin: 0; padding: 0;
}
@media (min-width: 52em) { .steps { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; } }

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.1rem;
}
/* Die Linie zwischen den Schritten — nur auf breiten Schirmen */
@media (min-width: 52em) {
  .steps li::after {
    content: '';
    position: absolute; top: 1.1rem; left: 2.9rem; right: -1.5rem;
    height: 1px; background: var(--line);
  }
  .steps li:last-child::after { display: none; }
}
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 2.25rem; height: 2.5rem;
  background: var(--ink);
  color: #fff;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Themen-Register — die Behandlungsbereiche.
   Bewusst KEINE Kachelwand: eine dichte, ruhige Liste. Sie ist zum Finden da,
   nicht zum Bestaunen — und jede Zeile ist eine eigene Seite fuer Google/KI.
   -------------------------------------------------------------------------- */
.index { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 46em) { .index { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); } }

.index a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem .25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .18s ease, color .18s ease;
}
.index a:hover { padding-left: .75rem; color: var(--blue); background: linear-gradient(90deg, var(--hex-pale), transparent 70%); }
.index__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.index__hint { font-size: .88rem; color: var(--muted); grid-column: 1 / -1; margin-top: .15rem; }
.index__arrow { color: var(--hex); font-weight: 600; }
.index a:hover .index__arrow { color: var(--blue); }

/* --------------------------------------------------------------------------
   Bildband — ein Foto ueber die volle Breite, Inhalt daneben.
   -------------------------------------------------------------------------- */
.band { background: var(--ink); color: #D7E3EF; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band__inner { display: grid; gap: 0; }
@media (min-width: 62em) { .band__inner { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.band__figure { position: relative; min-height: 16rem; }
.band__figure img { width: 100%; height: 100%; object-fit: cover; }

.band__body { padding: clamp(2.25rem, 5vw, 4rem) clamp(1.15rem, 4vw, 3rem); }
@media (min-width: 62em) {
  .band__body { padding-block: clamp(3rem, 5vw, 4.5rem); }
  /* Inhalt an das Seitenraster binden, Bild laeuft in den Anschnitt */
  .band__inner > .band__body { padding-left: max(1.15rem, calc((100vw - var(--wrap)) / 2 + 2.5rem)); padding-right: clamp(2rem, 4vw, 3.5rem); }
}
.band__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #E7D9C7;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.band__tag::before {
  content: ''; width: .7rem; height: .8rem; background: var(--oak-pale);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.band .checks li::before {
  background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23E7D9C7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/.85rem no-repeat;
}

/* --------------------------------------------------------------------------
   Team-Teaser auf der Startseite: Empfangsfoto + Vorschau der Wand.
   -------------------------------------------------------------------------- */
.teamsplit { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 60em) { .teamsplit { grid-template-columns: 1.1fr .9fr; } }

.teamsplit__photo { margin: 0; }
.teamsplit__photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-lg);
}

.teampreview { display: flex; align-items: center; margin-bottom: 1.5rem; }
.teampreview img,
.teampreview__more {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 3px solid var(--paper);
  object-fit: cover;
  margin-left: -.85rem;
}
.teampreview img:first-child { margin-left: 0; }
.teampreview__more {
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 0 0 3px var(--paper);
}
.teampreview__more:hover { background: var(--blue); color: #fff; }
.teamsplit__body p { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Team-Wand (auf /ueber-uns)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Team-Wand — die Gesichter.
   Die Kacheln sind versetzt gesetzt: Das greift die Anordnung der
   Sechseck-Akustikpaneele an der echten Praxiswand auf und faengt zugleich
   auf, dass die Portraets aus verschiedenen Shootings mit verschiedenen
   Hintergruenden stammen — der Versatz liest sich als Rhythmus statt als
   Stilbruch.
   -------------------------------------------------------------------------- */
.wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.6rem, 2vw, 1rem);
  align-items: start;
}
@media (min-width: 34em) { .wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 52em) { .wall { grid-template-columns: repeat(4, 1fr); } }

.wall figure { margin: 0; }
/* Versetzte Spalten wie bei den Sechseck-Paneelen an der Praxiswand. */
@media (min-width: 52em) {
  .wall figure:nth-child(even) { margin-top: 2.75rem; }
}

.wall img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mist);
  transition: filter .25s ease;
}
.wall figcaption {
  margin-top: .65rem;
  font-size: .85rem;
  line-height: 1.35;
}
.wall .name { display: block; font-weight: 600; color: var(--ink); }
.wall .role { color: var(--muted); font-size: .8rem; }

/* Reizarm: kein Versatz, ruhiges Raster. */
html.calm .wall figure:nth-child(even) { margin-top: 0; }

/* --------------------------------------------------------------------------
   Zitat — eine Stimme, gross, statt drei blasser Kaesten.
   -------------------------------------------------------------------------- */
.quote { max-width: 44rem; margin: 0; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  line-height: 1.42;
  color: var(--ink);
  text-wrap: pretty;
}
.quote figcaption { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
.quote__mark {
  width: 1.6rem; height: 1.8rem; margin-bottom: 1.25rem;
  background: var(--hex);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.quotes-more { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 50em) { .quotes-more { grid-template-columns: 1fr 1fr; } }
.quotes-more figure { margin: 0; padding-left: 1.15rem; border-left: 2px solid var(--line); }
.quotes-more blockquote { margin: 0; font-size: .95rem; color: var(--text); }
.quotes-more figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .7rem; max-width: 48rem; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--sky-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230E5A94' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E") center/.9rem no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--blue); }
.faq__body { padding: 0 1.3rem 1.3rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Hinweis-/Warnboxen
   -------------------------------------------------------------------------- */
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  color: var(--warn-text);
}
.notice strong { color: var(--warn-text); }
.notice p:last-child { margin-bottom: 0; }
.notice--info { background: var(--sky-pale); border-color: #C4E0F7; color: var(--ink-2); }
.notice--info strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Kontakt / Anfrage-Vorlage
   -------------------------------------------------------------------------- */
.copybox {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: .88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--ink-2);
  max-height: 22rem;
  overflow-y: auto;
}
.copy-status { font-size: .9rem; font-weight: 600; color: var(--blue-deep); min-height: 1.4rem; }

/* --------------------------------------------------------------------------
   Formulare (Grav Form-Plugin)
   -------------------------------------------------------------------------- */
.formcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.formcard h2 { font-size: 1.35rem; margin-bottom: .4rem; }

.form-field { margin-bottom: 1.15rem; }
.form-label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.form-label .required,
.required > .form-label::after { color: var(--oak); }
.form-field.required .form-label::after { content: ' *'; color: var(--oak); }

.form-input-wrapper input,
.form-select-wrapper select,
.form-textarea-wrapper textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .9rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-textarea-wrapper textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.form-input-wrapper input:hover,
.form-select-wrapper select:hover,
.form-textarea-wrapper textarea:hover { border-color: var(--muted); }
.form-input-wrapper input:focus,
.form-select-wrapper select:focus,
.form-textarea-wrapper textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--blue);
}

.form-select-wrapper { position: relative; }
.form-select-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235A7086' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}

/* Einwilligungs-Checkbox: Kasten + umbrechender Text nebeneinander.
   Das Plugin setzt am Label ein inline `display:inline` — deshalb wird der
   WRAPPER zum Flex-Container: als Flex-Kind wird das Inline-Display des Labels
   neutralisiert, und der Text bricht innerhalb der Spaltenbreite um. */
[data-grav-field="checkbox"] .form-input-wrapper {
  display: flex; align-items: flex-start; gap: .6rem;
}
[data-grav-field="checkbox"] label {
  min-width: 0;
  font-size: .92rem; line-height: 1.5; color: var(--text); cursor: pointer;
  overflow-wrap: anywhere;
}
[data-grav-field="checkbox"] input[type="checkbox"] {
  flex: none; width: 1.35rem; height: 1.35rem; margin-top: .15rem;
  accent-color: var(--blue);
}

/* Honeypot bleibt unsichtbar */
.form-honeybear,
.form-field[data-grav-field="honeypot"] { position: absolute !important; left: -9999px !important; }

/* Statusmeldungen des Plugins (Klasse .notices .success|.error|.warning) */
.formcard .notices {
  padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.25rem; font-size: .96rem;
}
.formcard .notices p { margin: 0; }
.formcard .notices.green,  .formcard .notices.success { background: var(--hex-pale); color: var(--ink-2); border: 1px solid #C4E0F7; }
.formcard .notices.red,    .formcard .notices.error   { background: #FCEDEA; color: #8A2A12; border: 1px solid #F0C4B8; }
.formcard .notices.yellow, .formcard .notices.warning { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line); }
/* Inline-Feldfehler */
.form-field .form-input-error { color: #8A2A12; font-size: .85rem; margin-top: .35rem; }

.formcard .buttons { margin-top: 1.5rem; }
.formcard .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: .95rem 2rem;
  background: var(--blue); color: #fff;
  border: 0; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1.05rem; font-family: inherit;
  cursor: pointer; transition: background-color .18s ease;
}
.formcard .button:hover { background: var(--blue-deep); }

/* Alternative: Copy-Vorlage eingeklappt */
.copy-alt { margin-top: 1.5rem; }
.copy-alt summary {
  cursor: pointer; font-weight: 600; color: var(--blue);
  padding: .5rem 0;
}
.copy-alt summary:hover { color: var(--blue-deep); }
.copy-alt[open] summary { margin-bottom: .75rem; }

.contactcard dl { margin: 0; display: grid; gap: .85rem; }
.contactcard dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contactcard dd { margin: .15rem 0 0; font-size: 1.02rem; }
.contactcard a { font-weight: 500; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #C3D3E2; padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem; }
.footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem; }
.footer a { color: #C3D3E2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 44em) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 68em) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer__logo { height: 2.6rem; width: auto; margin-bottom: 1rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  font-size: .86rem; color: #91A8BF;
}
.footer__bottom a { color: #91A8BF; }

/* Verbandslogos */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.badges img {
  height: 2.2rem; width: auto;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.badges img:hover { opacity: 1; filter: grayscale(0); }

/* --------------------------------------------------------------------------
   Selbsteinschaetzung
   -------------------------------------------------------------------------- */
.quiz { display: grid; gap: 1rem; }
.quiz__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.quiz__q { font-weight: 600; color: var(--ink); margin-bottom: .9rem; display: flex; gap: .6rem; }
.quiz__n { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }

/* Antwortskala.
   Mobil bewusst gestapelt: volle Breite = grosse Tippflaeche und lesbare
   Beschriftung. Ab 40em nebeneinander.

   auto-fit statt `repeat(var(--cols), 1fr)`: var() ist als Zaehlwert in repeat()
   nicht zulaessig. auto-fit kommt ausserdem ohne die Angabe aus und passt sich
   an 4 (Autismus) wie 5 (ASRS) Optionen von selbst an. */
.scale { display: grid; gap: .45rem; }
@media (min-width: 40em) {
  .scale { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
}

.scale label {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.9rem;
  padding: .5rem .6rem;
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.scale label:hover { border-color: var(--sky); }
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale input:checked + span { color: #fff; }
.scale label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.scale label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.quiz__result {
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--mist);
}
.quiz__result[data-level="high"] { background: var(--oak-pale); border-color: var(--oak-line); }
.quiz__result[data-level="low"] { background: var(--sky-pale); border-color: #C4E0F7; }
.quiz__score {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .5rem;
}
.quiz__error { color: #8A2A12; font-weight: 600; }

.progress {
  position: sticky; bottom: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: .85rem 0;
  margin-top: 1.5rem;
}
.progress__bar { height: .4rem; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: .6rem; }
.progress__fill { height: 100%; background: var(--blue); width: 0%; transition: width .25s ease; }

.copyright-note {
  font-size: .82rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Anamnesebogen — ausfuellen und ausdrucken, kein Serverversand.
   -------------------------------------------------------------------------- */
.anamnese-hinweis { margin-bottom: 1.25rem; }
.print-only { display: none; }

.anamnese-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem clamp(1rem, 3vw, 1.6rem);
  margin: 0 0 1.25rem;
}
.anamnese-section legend {
  padding: 0 .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}
.anamnese-note {
  font-size: .88rem; color: var(--muted);
  background: var(--hex-pale); border-radius: 10px;
  padding: .7rem .9rem; margin: 0 0 1.1rem;
}

.anamnese-field { margin-bottom: 1rem; }
.anamnese-field label {
  display: block; margin-bottom: .35rem;
  font-size: .92rem; font-weight: 500; color: var(--ink);
}
.anamnese-field input,
.anamnese-field textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem; font-family: inherit; color: var(--text);
  background: var(--paper);
}
.anamnese-field textarea { resize: vertical; line-height: 1.5; min-height: 3rem; }
.anamnese-field input:focus,
.anamnese-field textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue);
}

.anamnese-actions {
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: var(--hex-pale);
  border-radius: var(--radius);
  text-align: center;
}

/* -------- Druck: sauberes Dokument -------- */
@media print {
  .anamnese-printhead.print-only {
    display: block;
    font-size: 1.1rem; margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: 2px solid #000;
  }
  .anamnese-hinweis, .anamnese-actions, .no-print,
  .pagetop .eyebrow, .pagetop .lead, .crumbs { display: none !important; }
  .prose { display: none; }              /* Erklaertext nicht mitdrucken */
  .anamnese-section {
    border: none; padding: 0; margin-bottom: 1rem;
    break-inside: avoid;
  }
  .anamnese-section legend { font-size: 1.05rem; border-bottom: 1px solid #999; width: 100%; padding: 0 0 .2rem; margin-bottom: .5rem; }
  .anamnese-field { margin-bottom: .5rem; break-inside: avoid; }
  .anamnese-field label { font-size: .8rem; color: #000; margin-bottom: .1rem; }
  .anamnese-field input,
  .anamnese-field textarea {
    border: none; border-bottom: 1px solid #999; border-radius: 0;
    padding: .1rem 0; font-size: .9rem; color: #000;
    overflow: visible;
  }
  .anamnese-field textarea { resize: none; }
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.postlist { display: grid; gap: 1rem; }
@media (min-width: 44em) { .postlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68em) { .postlist { grid-template-columns: repeat(3, 1fr); } }

.post {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.post h3 { font-size: 1.15rem; margin: 0; }
.post time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post p { font-size: .92rem; color: var(--muted); margin: 0; }

.pagetop { background: var(--mist); border-bottom: 1px solid var(--line-soft); padding-block: clamp(2rem, 4vw, 3.25rem); }
.pagetop .lead { max-width: 42rem; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.15rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: '›'; margin-left: .4rem; color: var(--line); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   Bedienhilfe: Nur das Wichtigste
   -------------------------------------------------------------------------- */
html.essentials .optional { display: none !important; }

/* --------------------------------------------------------------------------
   Bedienhilfe: Reizarmer Modus
   Nimmt Reize wirklich heraus — Verlaeufe, Schatten, Bewegung, Sattheit.
   -------------------------------------------------------------------------- */
html.calm {
  --shadow: none;
  --shadow-lg: none;
  --sky-pale: #EFF3F6;
  --oak-pale: #F4F2EF;
  --oak: #5F4A38;
  --oak-dark: #43331F;
  --oak-line: #DED6CC;
  --mist: #F5F6F7;
  --blue: #14476E;
  --blue-deep: #0E3552;
  --sky: #3D6E92;
  scroll-behavior: auto;
}
html.calm body { background: #FCFCFB; }
html.calm .hero { background: #FCFCFB; }
html.calm .tile--focus { background: var(--paper); }
html.calm .header { background: #FCFCFB; backdrop-filter: none; }
html.calm .mobilenav,
html.calm .progress { backdrop-filter: none; background: #FCFCFB; }
html.calm .badges img { filter: grayscale(1); opacity: .5; }
html.calm .badges img:hover { filter: grayscale(1); opacity: .5; }
html.calm *,
html.calm *::before,
html.calm *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  text-shadow: none !important;
}
html.calm .btn:hover,
html.calm .tile:hover,
html.calm .post:hover { transform: none; }

/* --------------------------------------------------------------------------
   Bewegung
   --------------------------------------------------------------------------
   BEWUSSTE ENTSCHEIDUNG: Es gibt hier KEINE Scroll-Einblendungen.
   Diese Seite richtet sich an Menschen mit ADHS und Autismus. Inhalte, die
   beim Scrollen aufpoppen, ziehen genau die Aufmerksamkeit ab, die sie zum
   Lesen brauchen — und sie bergen das Risiko, dass bei einem JS-Fehler halbe
   Seiten unsichtbar bleiben. Alles ist von Anfang an da.
   Bewegung findet nur dort statt, wo sie eine Handlung quittiert:
   Hover, Fokus, Auf-/Zuklappen.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Druck
   -------------------------------------------------------------------------- */
@media print {
  .header, .comfort, .mobilenav, .footer, .progress, .btn,
  .a11y, .mobilenav, #faq, .section--ink, .pagetop, .crumbs { display: none !important; }
  body { color: #000; }
  .section { padding-block: 0 !important; }
  .card, .quiz__item { border: 1px solid #999; break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   Anamnese-Wizard (11-Schritt-Fragebogen) — Prefix .anmnz-
   Ersetzt die alte Druck-Version des Anamnesebogens.
   -------------------------------------------------------------------------- */
.anmnz-intro { margin-bottom: 1.5rem; }
.anmnz-intro p:last-child { margin-bottom: 0; }

/* Fortschrittsbalken — oben klebend, immer sichtbar */
.anmnz-progress {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-bottom: 1.5rem;
}
.anmnz-progress__bar {
  height: .5rem; border-radius: 999px;
  background: var(--line); overflow: hidden; margin-bottom: .55rem;
}
.anmnz-progress__fill {
  height: 100%; width: 0%;
  background: var(--blue); border-radius: 999px;
  transition: width .3s ease;
}
.anmnz-progress__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; font-size: .9rem;
}
.anmnz-progress__step { font-weight: 600; color: var(--ink); }
.anmnz-progress__pct { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Honeypot — fuer Menschen unsichtbar, aber nicht display:none (Bots) */
.anmnz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Schritt-Fieldset */
.anmnz-form { margin: 0; }
.anmnz-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem);
  margin: 0;
}
.anmnz-step[hidden] { display: none; }
/* Die legend traegt die semantische Beschriftung, sichtbar ist die h2 */
.anmnz-step__legend {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.anmnz-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.anmnz-step__title:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px;
}

.anmnz-note {
  font-size: .9rem; color: var(--muted);
  background: var(--hex-pale); border-radius: 10px;
  padding: .8rem 1rem; margin: 0 0 1.35rem;
}

/* Felder */
.anmnz-field { margin-bottom: 1.25rem; }
.anmnz-field:last-child { margin-bottom: 0; }
.anmnz-field > label {
  display: block; margin-bottom: .35rem;
  font-size: .95rem; font-weight: 500; color: var(--ink);
}
.anmnz-hint {
  font-size: .82rem; color: var(--muted);
  margin: -.1rem 0 .45rem;
}
.anmnz-req { color: var(--oak-dark); font-weight: 600; }

.anmnz-field input[type="text"],
.anmnz-field input[type="date"],
.anmnz-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem; font-family: inherit; color: var(--text);
  background: var(--paper);
  -webkit-appearance: none; appearance: none;
}
.anmnz-field textarea {
  resize: vertical; line-height: 1.55; overflow: hidden;
}
.anmnz-field input:focus,
.anmnz-field textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue);
}
.anmnz-field input[aria-invalid="true"],
.anmnz-field textarea[aria-invalid="true"] {
  border-color: #B23A1B;
}

/* Einwilligungs-Checkbox */
.anmnz-check {
  display: flex; align-items: flex-start; gap: .7rem;
  cursor: pointer; font-weight: 400; color: var(--text);
  font-size: .98rem; line-height: 1.5;
}
.anmnz-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.4rem; height: 1.4rem; margin-top: .1rem;
  accent-color: var(--blue); cursor: pointer;
}
.anmnz-check__text { flex: 1; }
.anmnz-check input:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

/* Fehlermeldungen */
.anmnz-error {
  color: #8A2A12; font-weight: 600; font-size: .88rem;
  margin: .4rem 0 0;
}
.anmnz-formerror {
  color: #8A2A12; font-weight: 600;
  background: #FBEEE9; border: 1px solid #E6C4B7; border-radius: 12px;
  padding: .85rem 1rem; margin: 1.25rem 0 0;
}

/* Navigation */
.anmnz-nav {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.75rem;
}
.anmnz-nav .btn { min-height: 3rem; }
.anmnz-next, .anmnz-submit { margin-left: auto; }
.anmnz-nav .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.anmnz-done { margin-top: 1rem; }
.anmnz-done h2:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px;
}

/* Ruhe-Modus */
html.calm .anmnz-progress { backdrop-filter: none; background: #FCFCFB; }

@media (max-width: 30rem) {
  .anmnz-nav { flex-direction: column-reverse; }
  .anmnz-nav .btn { width: 100%; }
  .anmnz-next, .anmnz-submit { margin-left: 0; }
}

/* --- Online-Terminbuchung (appointmed, Klick-zum-Laden) -------------------- */
.booking { padding-top: 0; }
.booking .wrap > h2 { margin-bottom: 1rem; }
.booking-embed {
  max-width: min(var(--wrap), 62rem);
  margin-inline: auto;
}
.booking-consent {
  background: var(--sky-pale);
  border: 1px solid #C4E0F7;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
}
.booking-consent .booking-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .75rem;
}
.booking-consent .booking-note {
  color: var(--ink-2);
  max-width: 46rem;
  margin: 0 auto 1.5rem;
}
.booking-consent .btn { margin: 0 auto; }
.booking-consent .booking-alt {
  margin: 1.25rem auto 0;
  font-size: .95rem;
  color: var(--muted);
}
.booking-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
