/* ==========================================================================
   Andreas Penzel – Psychotherapie
   Theme: quiet, cool paper tones, one ochre line that leaves its loops
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted, SIL Open Font License – see assets/fonts/OFL-*.txt)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #f1f3f0;
  --paper-raised: #f8f9f7;
  --mist: #dfe6e3;
  --mist-line: #c4d0cc;
  --slate: #24393d;
  --slate-deep: #1b2c2f;
  --ink: #1c2629;
  --ink-soft: #4a585b;
  --ochre: #a87a2c;
  --ochre-light: #d9b36a;
  --on-slate: #e8eeec;
  --on-slate-soft: #b5c4c1;
  --mark: #fde68a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;   /* 14 – UI small */
  --step-0: 1.1875rem;   /* 19 – body serif */
  --step-1: 1.4375rem;   /* 23 */
  --step-2: clamp(1.625rem, 1.3rem + 1.1vw, 2rem);      /* 26 → 32 */
  --step-3: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);       /* 32 → 44 */
  --step-4: clamp(2.375rem, 1.6rem + 3vw, 3.75rem);     /* 38 → 60 */
  --step-hero: clamp(2.75rem, 1.4rem + 5.4vw, 5.75rem); /* 44 → 92 */

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --measure: 36em;
  --band-pad: clamp(3.5rem, 7vw, 7rem);
  --header-h: 4.75rem;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.62;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  hyphens: manual;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
h4 { font-size: var(--step-0); font-weight: 600; }

p, ul, ol, dl, blockquote, figure { margin: 0 0 1em; }
p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s, text-decoration-thickness 0.2s;
}
a:hover { text-decoration-thickness: 2px; }

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

strong, b { font-weight: 600; }

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--slate);
  color: var(--on-slate);
  font-family: var(--sans);
  font-size: var(--step--1);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* placeholders for facts that are still missing ([Platzhalter: …]) */
mark.ph {
  background: var(--mark);
  color: #3b2f06;
  padding: 0 0.2em;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.82em;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  background: var(--slate);
  color: var(--on-slate);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--slate-deep); border-color: var(--slate-deep); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.9375rem; }

.link-quiet {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--mist-line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  line-height: 1.15;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wordmark__title {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.main-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__link {
  display: block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.main-nav__link[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}
.main-nav__link:hover { text-decoration-line: underline; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.2rem 0.4rem 0.8rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 550;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 1.25rem; height: 0.75rem; }
.menu-toggle__icon span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: calc(100% - 1.5px); }
.nav-open .menu-toggle__icon span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.nav-open .menu-toggle__icon span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }

@media (min-width: 68em) {
  .main-nav { display: flex; align-items: center; gap: 1.75rem; }
  .main-nav__list { gap: 1.5rem; }
}

@media (max-width: 67.99em) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 2rem;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--mist-line), 0 24px 40px -24px rgb(28 38 41 / 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .main-nav__list { flex-direction: column; }
  .main-nav__list li + li { border-top: 1px solid var(--mist-line); }
  .main-nav__link {
    padding: 0.85rem 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 420;
  }
  .main-nav__cta { margin-top: 1.25rem; width: 100%; min-height: 3rem; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Ornament – the line
   -------------------------------------------------------------------------- */
.ornament { overflow: visible; }
.ornament__line {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ornament__end { fill: var(--ochre); }

/* --------------------------------------------------------------------------
   Hero (start page)
   -------------------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 var(--band-pad); overflow-x: clip; }
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__title {
  font-size: var(--step-hero);
  font-weight: 360;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: initial;
  hyphens: none;
}
.hero__line { display: block; }
.hero__line--2 {
  padding-left: clamp(1.5rem, 22vw, 22rem);
  font-style: italic;
  font-weight: 330;
}
.hero__ornament {
  width: 100%;
  margin: clamp(-0.5rem, -1vw, 0rem) 0 clamp(0.5rem, 2vw, 1.5rem);
}
.hero__body {
  max-width: 34rem;
  margin-left: auto;
  margin-right: clamp(0rem, 6vw, 6rem);
}
.hero__lead {
  font-size: var(--step-1);
  line-height: 1.4;
  margin-bottom: 0.9em;
}
.hero__text { color: var(--ink-soft); }

/* one orchestrated moment: the line draws itself once */
@media (prefers-reduced-motion: no-preference) {
  .hero__ornament .ornament__line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 3.2s var(--ease) 0.25s forwards;
  }
  .hero__ornament .ornament__end {
    opacity: 0;
    animation: appear 0.6s ease 3.1s forwards;
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (max-width: 40em) {
  .hero__line--2 { padding-left: 1.25rem; }
  .hero__ornament { width: 118%; max-width: none; margin-left: -18%; }
  .hero__body { margin: 0; }
}

/* --------------------------------------------------------------------------
   Page head (content pages)
   -------------------------------------------------------------------------- */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.page-head__inner {
  display: grid;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-head__kicker {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--ochre);
  margin-bottom: 1rem;
}
.page-head__title {
  font-size: var(--step-4);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18em;
  margin: 0;
}
.page-head__intro {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
}
.page-head__ornament { width: min(100%, 26rem); align-self: end; }
.page-head--plain .page-head__title { font-size: var(--step-3); }

@media (min-width: 60em) {
  .page-head__inner { grid-template-columns: minmax(0, 1fr) 22rem; align-items: end; }
  .page-head--plain .page-head__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Bands (layout rows)
   -------------------------------------------------------------------------- */
.band { padding: var(--band-pad) 0; }
.band--paper + .band--paper { padding-top: 0; }
.band--mist { background: var(--mist); }
.band--slate {
  background: var(--slate);
  color: var(--on-slate);
  --ornament: var(--ochre-light);
}
.band--slate a { text-decoration-color: var(--ochre-light); }
.band--slate .btn { background: var(--on-slate); border-color: var(--on-slate); color: var(--slate); }
.band--slate .btn:hover { background: #fff; border-color: #fff; }

.band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}
.band__col { grid-column: span 12; min-width: 0; }
.band__col > :last-child { margin-bottom: 0; }
.band__col--empty { display: none; }

@media (min-width: 52em) {
  .band__col { grid-column: span var(--span); }
  .band__col--empty { display: block; }
}

.band--narrow .band__grid { max-width: 46rem; }

/* reading text inside bands */
.band__col > p,
.band__col > ul:not([class]),
.band__col > ol:not([class]) { max-width: var(--measure); }
.band__col > h2 + p,
.band__col > h2 + ul { margin-top: 0; }

.band__col ul:not([class]),
.band__col ol:not([class]) { padding-left: 1.2em; }
.band__col ul:not([class]) li,
.band__col ol:not([class]) li { margin-bottom: 0.35em; padding-left: 0.2em; }
.band__col ul:not([class]) li::marker { color: var(--ochre); }
.band--slate ul:not([class]) li::marker { color: var(--ochre-light); }

/* headings that open a 1/3 column sit on the first text line */
@media (min-width: 52em) {
  .band__col[style*="--span: 4"] > h2:first-child { font-size: var(--step-2); position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.band__col > h3 { margin-top: 1.6em; }
.band__col > h3:first-child { margin-top: 0; }

/* Leitgedanke: the first paragraph after a heading, set as a lead (writer italic) */
.band__col em { font-style: italic; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--ochre);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.45;
  max-width: 34em;
}
blockquote footer { margin-top: 0.75rem; font-family: var(--sans); font-size: var(--step--1); font-style: normal; color: var(--ink-soft); }
.band--slate blockquote { border-color: var(--ochre-light); }

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--mist-line);
}

/* --------------------------------------------------------------------------
   Block: topics (start page – the five areas)
   -------------------------------------------------------------------------- */
.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist-line); }
.topics__item { border-bottom: 1px solid var(--mist-line); }
.topics__row {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding: 1.6rem 0;
  text-decoration: none;
  color: inherit;
}
.topics__title { margin: 0; font-size: var(--step-2); font-weight: 420; }
.topics__text { margin: 0; color: var(--ink-soft); max-width: 34em; }
.topics__more {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-underline-offset: 0.22em;
}
a.topics__row:hover .topics__title { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

@media (min-width: 52em) {
  .topics__row { grid-template-columns: minmax(14rem, 5fr) 7fr auto; align-items: baseline; }
}

/* --------------------------------------------------------------------------
   Block: questions (dark band – "Warum …?")
   -------------------------------------------------------------------------- */
.questions__list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 340;
  line-height: 1.3;
}
.questions__list li { padding: 0.5rem 0; max-width: 26em; }
.questions__list li:nth-child(even) { padding-left: clamp(0rem, 6vw, 5rem); }
.questions__statement {
  max-width: 30em;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, var(--on-slate) 30%, transparent);
  font-size: var(--step-1);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Block: steps (real sequences only)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 2rem 2.5rem;
}
.steps__item {
  counter-increment: step;
  position: relative;
  padding-top: 3.75rem;
}
.steps__item::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--ochre);
}
.steps__item::after {
  content: "";
  position: absolute;
  top: 1.35rem; left: 2.5rem; right: 0;
  height: 1px;
  background: var(--mist-line);
}
.steps__item:last-child::after { display: none; }
.steps__title { margin-bottom: 0.4em; }
.steps__text { margin: 0; color: var(--ink-soft); }
.band--slate .steps__item::before { color: var(--ochre-light); }
.band--slate .steps__item::after { background: color-mix(in srgb, var(--on-slate) 25%, transparent); }
.band--slate .steps__text { color: var(--on-slate-soft); }

@media (min-width: 52em) {
  .steps--2 { grid-template-columns: repeat(2, 1fr); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 51.99em) {
  .steps__item { padding-top: 0; padding-left: 3.5rem; }
  .steps__item::after { display: none; }
}

/* --------------------------------------------------------------------------
   Block: facts (costs etc.)
   -------------------------------------------------------------------------- */
.facts { margin: 0 0 1.5rem; border-top: 1px solid var(--mist-line); }
.facts__row {
  display: grid;
  gap: 0.2rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--mist-line);
}
.facts dt { font-family: var(--sans); font-size: 1rem; font-weight: 550; padding-top: 0.15rem; }
.facts dd { margin: 0; }
.facts__value { display: block; font-size: var(--step-1); line-height: 1.3; }
.facts__note { display: block; margin-top: 0.2rem; font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 40em) {
  .facts__row { grid-template-columns: 13rem 1fr; }
}

/* --------------------------------------------------------------------------
   Block: faq
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--mist-line); }
.faq__item { border-bottom: 1px solid var(--mist-line); }
.faq__question {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--step-1);
  line-height: 1.3;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover span:first-child { text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 0.9rem; height: 0.9rem;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  background: var(--ochre);
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 0 1.5rem; max-width: var(--measure); color: var(--ink); }
.faq__answer > :last-child { margin-bottom: 0; }
.faq__answer ul { padding-left: 1.2em; }

/* --------------------------------------------------------------------------
   Block: note
   -------------------------------------------------------------------------- */
.note {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--ochre);
  background: var(--paper-raised);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 40em;
}
.band--mist .note { background: var(--paper); }
.note__title { margin: 0 0 0.35rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.note__text > :last-child { margin-bottom: 0; }
.note--crisis { border-left-color: var(--slate); }
.band--slate .note { background: var(--slate-deep); border-color: var(--ochre-light); }

/* --------------------------------------------------------------------------
   Block: cta
   -------------------------------------------------------------------------- */
.cta { max-width: 40rem; }
.cta__title { font-size: var(--step-4); font-weight: 360; line-height: 1.08; letter-spacing: -0.015em; }
.cta__text { font-size: var(--step-1); line-height: 1.45; max-width: 30em; }
.band--slate .cta__text { color: var(--on-slate-soft); }

/* --------------------------------------------------------------------------
   Block: contact info
   -------------------------------------------------------------------------- */
.contactinfo { margin: 0 0 2rem; }
.contactinfo > div { padding: 0.9rem 0; border-bottom: 1px solid var(--mist-line); }
.contactinfo > div:first-child { border-top: 1px solid var(--mist-line); }
.contactinfo dt { font-family: var(--sans); font-size: var(--step--1); font-weight: 550; color: var(--ink-soft); margin-bottom: 0.15rem; }
.contactinfo dd { margin: 0; }
.contactinfo__hint { display: block; font-size: 1rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Block: figure (photo or the line as a stand-in)
   -------------------------------------------------------------------------- */
.figure { margin: 0 0 1.5rem; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure--ornament {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border-radius: var(--radius);
}
.band--paper .figure--ornament { background: var(--mist); }
.figure--landscape.figure--ornament { aspect-ratio: 3 / 2; }
.figure--ornament .ornament { width: 78%; }
.figure figcaption { margin-top: 0.6rem; font-family: var(--sans); font-size: var(--step--1); color: var(--ink-soft); }

/* Kirby image block */
.block-image { margin: 0 0 1.5rem; }
.block-image img { border-radius: var(--radius); }
.block-image figcaption { margin-top: 0.6rem; font-family: var(--sans); font-size: var(--step--1); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper-raised);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}
.band--paper .contact-form { background: var(--mist); }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__row { display: grid; gap: 0 1.25rem; }
@media (min-width: 36em) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__field { margin: 0 0 1.25rem; min-width: 0; }
.contact-form label,
.contact-form legend { display: block; margin-bottom: 0.35rem; font-weight: 550; }
.contact-form__req { color: var(--ochre); margin-left: 0.15em; }
.contact-form__opt { font-weight: 400; color: var(--ink-soft); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #9fb0ac;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.contact-form textarea { resize: vertical; min-height: 6rem; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; border-color: var(--ochre); }
.contact-form__hint { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.contact-form__choice { border: 0; padding: 0; }
.contact-form__choice label { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.25rem 1.5rem 0.25rem 0; font-weight: 400; cursor: pointer; }
.contact-form input[type="radio"],
.contact-form input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--slate); flex: 0 0 auto; }
.contact-form__consent label { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.contact-form__consent input { margin-top: 0.2rem !important; }
.has-error input,
.has-error textarea { border-color: #a3352b; }
.contact-form__error { margin: 0.35rem 0 0; color: #a3352b; font-size: 0.9375rem; font-weight: 500; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.contact-form__legend { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.contact-form__status { margin: 1.25rem 0 0; padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 500; }
.contact-form__status--success { background: #e3eee2; color: #23452a; }
.contact-form__status--error { background: #f6e3e0; color: #7d261e; }
.contact-form__status--info { background: var(--mist); }
.contact-form.is-sent > :not(.contact-form__status) { display: none; }
.contact-form.is-sent .contact-form__status { margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--slate-deep);
  color: var(--on-slate);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.site-footer a { color: inherit; text-decoration-color: var(--ochre-light); }
.site-footer__inner {
  display: grid;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
}
@media (min-width: 52em) {
  .site-footer__inner { grid-template-columns: 5fr 4fr 3fr; }
}
.site-footer p { margin: 0 0 0.75rem; }
.site-footer__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.2rem !important; }
.site-footer__title, .site-footer__text { color: var(--on-slate-soft); }
.site-footer__text { max-width: 26em; margin-top: 1rem !important; }
.site-footer__label { font-weight: 600; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin-bottom: 0.35rem; }
.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid color-mix(in srgb, var(--on-slate) 18%, transparent);
  color: var(--on-slate-soft);
  font-size: 0.875rem;
}
.site-footer__crisis { max-width: 46em; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer__legal nav { display: flex; gap: 1.5rem; }
.site-footer__legal p { margin: 0; }
.site-footer mark.ph { font-size: 0.9em; }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .ornament, .contact-form { display: none !important; }
  .band { padding: 1rem 0; background: none !important; color: #000 !important; }
}

.band--slate .ornament__line { stroke: var(--ochre-light); }
.band--slate .ornament__end { fill: var(--ochre-light); }
.band--slate .figure--ornament { background: var(--slate-deep); }
.band__col > h2:first-child + p > em:only-child { display: block; font-size: var(--step-1); line-height: 1.4; color: var(--ink-soft); }
.band--slate .band__col > h2:first-child + p > em:only-child { color: var(--on-slate-soft); }

/* association badge (VFP) */
.site-footer__badge {
  display: inline-block;
  margin-top: 1.25rem;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  line-height: 0;
  transition: transform 0.2s var(--ease);
}
.site-footer__badge img { width: 96px; height: 96px; border-radius: 50%; }
.site-footer__badge:hover { transform: scale(1.03); }
.site-footer__badge:focus-visible { outline-color: var(--ochre-light); outline-offset: 4px; }

/* logo (Website → Einstellungen → „Name im Kopf- und Fußbereich“) */
.wordmark__logo { display: block; height: 2.6rem; width: auto; margin-bottom: 0.15rem; }
.site-footer__logo { margin: 0 0 0.5rem !important; }
.site-footer__logo img { display: block; height: 3.25rem; width: auto; }
@media (max-width: 24em) { .wordmark__logo { height: 2.25rem; } }

.page-head--plain + .band { padding-top: 0.5rem; }

/* network (colleagues) – footer list and block */
.site-footer__network {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
  font-size: 0.875rem;
  color: var(--on-slate-soft);
}
.site-footer__network ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-footer__network a { color: var(--on-slate); }
.site-footer__network a span { color: var(--on-slate-soft); }
.colleagues { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist-line); }
.colleagues__item { padding: 1.25rem 0; border-bottom: 1px solid var(--mist-line); }
.colleagues__name { margin: 0 0 0.2rem; font-size: var(--step-1); }
.colleagues__meta { margin: 0; font-family: var(--sans); font-size: 0.9375rem; color: var(--ink-soft); }
.colleagues__focus { margin: 0.4rem 0 0; font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   Appointment page (/termin/…)
   -------------------------------------------------------------------------- */
.btn--quiet { background: transparent; color: var(--slate); }
.btn--quiet:hover { background: var(--mist); color: var(--ink); border-color: var(--slate); }
.appt { max-width: 40rem; }
.appt-greeting { font-size: var(--step-1); }
.appt-alert { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.appt-alert--success { background: #e3eee2; color: #23452a; }
.appt-alert--error { background: #f6e3e0; color: #7d261e; }
.appt-alert--warning { background: #f7edd9; color: #5e4210; font-weight: 400; }
.appt-message { margin: 1.5rem 0; font-size: var(--step-0); }
.appt-form { margin: 2rem 0; padding: clamp(1.25rem, 4vw, 2rem); background: var(--mist); border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; }
.appt-form--secondary { background: transparent; border: 1px solid var(--mist-line); }
.appt-form textarea { width: 100%; min-height: 5.5rem; padding: 0.7rem 0.85rem; border: 1px solid #9fb0ac; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem; resize: vertical; }
.appt-form textarea:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
.appt-slots { margin: 0 0 1.5rem; padding: 0; border: 0; }
.appt-slots legend { margin-bottom: 0.6rem; font-weight: 600; }
.appt-slot { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.5rem; padding: 0.85rem 1rem; background: #fff; border: 1px solid var(--mist-line); border-radius: var(--radius); cursor: pointer; font-family: var(--serif); font-size: var(--step-0); }
.appt-slot:has(input:checked) { border-color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); }
.appt-slot input, .appt-check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--slate); flex: 0 0 auto; }
.appt-label { display: block; margin: 0 0 0.35rem; font-weight: 550; }
.appt-opt { font-weight: 400; color: var(--ink-soft); }
.appt-check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1rem 0 0; line-height: 1.5; cursor: pointer; }
.appt-check input { margin-top: 0.2rem; }
.appt-actions { margin: 1.25rem 0 0; }
.appt-hint { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--ink-soft); }
.appt-subtitle { margin: 0 0 0.75rem; font-family: var(--serif); font-size: var(--step-1); font-weight: 500; }
.appt-card { margin: 1rem 0 1.5rem; padding: 1.4rem 1.5rem; border-left: 3px solid var(--ochre); background: var(--paper-raised); }
.appt-card p { margin: 0; }
.appt-card__type { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.appt-card__time { font-size: var(--step-2); line-height: 1.25; margin: 0.25rem 0 0.4rem !important; }
.appt-card__link, .appt-card__ics { margin-top: 0.6rem !important; font-family: var(--sans); font-size: 1rem; font-weight: 500; }
.appt-signoff { margin-top: 2.5rem; }
