/*
 * Klarraum Kälin – Entwurf 1 «Ruhe»
 * ─────────────────────────────────────────────────────────────────────
 * Stimmung: ein heller, ruhiger Raum – Papier, Tageslicht, ein Buch.
 * Creme als Grund, dezentes Salbeigrün, dunkle Schrift. Eine Buchserife in
 * ihren optischen Grössen für Überschriften und eine humanistische Sans für Text.
 *
 * Signatur: «Raum-Flächen». Eine helle Salbei-Fläche läuft im Einstieg rechts
 * an den Bildschirmrand, im Abschluss (Termin) gespiegelt links. Diese Klammer
 * ist das einzige Motiv – keine Kreise, keine Lichter, keine Karten, keine
 * dunkle Inversion. Dazu buchhafte Details: Impressum-Signet «Klarraum | KÄLIN»,
 * kurze Absatzlinien im Angebot, Mediävalziffern im Ablauf.
 *
 * Aufbau (mobile-first):
 *   1  Design-Tokens (Farben, Schrift, Abstände, Raster)
 *   2  Grundlagen (Typografie, Container, Buttons, Eyebrow)
 *   3  Kopfzeile und Signet
 *   4  Einstieg mit Video
 *   5  Abschnitte: Angebot · Über mich · Ablauf · Termin
 *   6  Fusszeile
 *   7  Komponenten aus base.css (Video, Porträt, Platzhalter, Dialog)
 *   8  Rechtstext-Seiten
 *
 * Raster ab 62rem: zwei Spalten – links Text (--col-a), rechts Inhalt/Video
 * (--col-b), dazwischen die Achse. Geprüfte Kontraste stehen neben den Farben.
 */

/* ── 1  Design-Tokens ────────────────────────────────────────────── */
:root {
  /* Palette */
  --creme: #f5efe4;          /* Grund */
  --hell: #fbf8f2;           /* Papierband «Über mich», Video-Platzhalter, Dialog */
  --salbei-hell: #dde4d5;    /* Raum-Flächen (Einstieg, Termin), Porträt-Platzhalter */
  --salbei: #8fa08a;         /* nur Dekor und Linien (2.4:1 – nie für Text) */
  --salbei-dunkel: #4a5d4e;  /* Buttons, Akzenttext, Fokus: 6.2:1 auf Creme, 5.4:1 auf Salbei hell */
  --salbei-tief: #3c4c3f;    /* Hover der Buttons: Creme darauf 8.0:1 */
  --tinte: #2a2824;          /* Schrift: 12.9:1 auf Creme, 11.3:1 auf Salbei hell */
  --grau: #5c584f;           /* Sekundärtext: 6.2:1 auf Creme, 5.4:1 auf Salbei hell */
  --linie: #e0d6c4;          /* Haarlinien auf Creme/Hell (dekorativ) */
  --linie-salbei: #a9b6a2;   /* gestrichelte Innenlinien der Platzhalter (dekorativ) */

  /* Tokens für base.css und die Rechtstext-Seiten */
  --c-bg: var(--creme);
  --c-surface: var(--hell);
  --c-text: var(--tinte);
  --c-muted: var(--grau);
  --c-line: var(--linie);
  --c-accent: var(--salbei-dunkel);
  --c-on-accent: var(--creme);
  --c-link: var(--salbei-dunkel);
  --c-focus: var(--salbei-dunkel);
  --c-ph-bg: rgba(212, 166, 60, 0.22);   /* Platzhalter: Honigton, Tinte darauf ≥ 10:1 */
  --c-ph-line: #9a7420;

  /* Schrift – nur Systemschriften. Unter Windows die passende optische Grösse
     von Sitka (Banner ≥ 48 px, Display ≈ 32–48 px, Heading ≈ 22–30 px, Text ≤ 20 px),
     auf Apple-Geräten Iowan Old Style. */
  --serif-fallback: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-banner: "Iowan Old Style", "Sitka Banner", var(--serif-fallback);
  --font-display-l: "Iowan Old Style", "Sitka Display", var(--serif-fallback);
  --font-display: "Iowan Old Style", "Sitka Heading", var(--serif-fallback);
  --font-serif-text: "Iowan Old Style", "Sitka Text", var(--serif-fallback);
  --font-body: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Typo-Skala (fliessend). h1 : h2 ≈ 1.6 auf dem Desktop. */
  --fs-micro: 0.8125rem;                                   /* 13 px */
  --fs-small: 0.9375rem;                                   /* 15 px */
  --fs-body: 1.0625rem;                                    /* 17 px, ab Desktop 18 px */
  --fs-lead: clamp(1.125rem, 1.03rem + 0.45vw, 1.3125rem); /* 18–21 px */
  --fs-h3: clamp(1.375rem, 1.22rem + 0.6vw, 1.625rem);     /* 22–26 px */
  --fs-h2: clamp(2rem, 1.55rem + 1.6vw, 2.75rem);          /* 32–44 px */
  --fs-h1: clamp(2.25rem, 0.2rem + 10.7vw, 3.75rem);       /* 36–60 px, ab 62rem eigene Kurve bis 72 px */

  /* Abstände (Basis 0.25rem) */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-section: clamp(4.5rem, 10vw, 8rem);

  /* Formen – zurückhaltend */
  --radius-s: 8px;    /* Buttons */
  --radius-m: 12px;   /* Video */
  --radius-l: 18px;   /* Raum-Flächen, Porträt */

  /* Raster */
  --gutter: clamp(1.125rem, 5vw, 3rem);
  --measure: 36rem;
  --col-a: 32rem;     /* linke Spalte (Text) */
  --col-gap: 5.5rem;  /* Achse zwischen den Spalten */
  --col-b: 40rem;     /* rechte Spalte (Video, Inhalt) */
  --container: 77.5rem;
}

/* ── 2  Grundlagen ───────────────────────────────────────────────── */
body {
  font-size: var(--fs-body);
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
}
@media (min-width: 64rem) {
  body { --fs-body: 1.125rem; }
}

::selection { background: #cdd8c3; color: var(--tinte); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--tinte);
  text-wrap: balance;
}
p, li, dd { text-wrap: pretty; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Kleines, gesperrtes Label in Salbei dunkel */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--salbei-dunkel);
}
@media (max-width: 23.99rem) {
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.07em; }
}

/* Buttons – dezent gerundet, ruhig. Gefüllt nur für die eigentliche Handlung. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--salbei-dunkel); color: var(--creme); }
.btn--primary:hover { background: var(--salbei-tief); }
/* Outline: Salbei dunkel auf Creme 6.2:1, Rahmen 6.2:1 */
.btn--outline {
  background: transparent;
  border-color: var(--salbei-dunkel);
  color: var(--salbei-dunkel);
}
.btn--outline:hover { background: var(--salbei-dunkel); color: var(--creme); }
.btn--compact {
  min-height: 2.75rem;
  padding: 0.55rem 0.875rem;
  font-size: 0.875rem;
}
.btn--large {
  min-height: 3.5rem;
  padding: 0.95rem 2rem;
  font-size: 1.0625rem;
}
.btn--xl {
  min-height: 3.75rem;
  padding: 1rem 2.75rem;
  font-size: 1.125rem;
}
@media (max-width: 23.99rem) {
  .btn--xl { padding-inline: 2rem; }
}

/* Abschnitte: gleichmässiger vertikaler Rhythmus */
.section { padding-top: var(--space-section); }
.section--band {
  margin-top: var(--space-section);
  padding-block: var(--space-section);
  background: var(--hell);
}

.section-title {
  font-family: var(--font-display-l);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
/* Abschnittskopf gestapelt in der Textspalte (keine Nebenachse) */
.section-head {
  max-width: 32rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-intro {
  margin-top: var(--space-s);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--grau);
  text-wrap: pretty;
}
@media (min-width: 40rem) {
  .section-intro { text-wrap: balance; }
}

/* ── 3  Kopfzeile und Signet ─────────────────────────────────────── */
.site-header { padding-block: 1rem 0.9rem; }
.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand   cta"
    "tagline tagline";
  align-items: center;
  column-gap: var(--space-s);
  row-gap: 0.15rem;
}
@media (max-width: 47.99rem) {
  .site-header { border-bottom: 1px solid var(--linie); }
}

/* Impressum-Signet «Klarraum | KÄLIN»: aufrechte Serife, dann eine feine
   Salbei-Linie und «KÄLIN» in gesperrten Versalien – wie in einem Verlagsimpressum. */
.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  padding-block: 0.65rem;          /* Tippziel ≥ 44 px … */
  margin-block: -0.3rem;           /* … ohne das Layout zu verschieben */
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--tinte);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
}
.brand__word--second,
.legal-header__word-2 {
  font-family: var(--font-serif-text);
  font-style: normal;
  font-size: 0.56em;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--salbei-dunkel);
}
/* Die feine Salbei-Linie steht auf der Grundlinie und reicht bis zur
   Versalhöhe von «Klarraum» – wie ein Trennstrich im Impressum. */
.brand__word--second::before,
.legal-header__word-2::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.3em;
  margin-right: 0.95em;
  vertical-align: -0.1em;
  background: var(--salbei);
}
.brand:hover .brand__word--first {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--salbei);
  text-underline-offset: 0.18em;
}

.site-header__tagline {
  grid-area: tagline;
  font-size: var(--fs-micro);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--grau);
}
.site-header__cta { grid-area: cta; }
.site-nav { display: none; }

@media (max-width: 23.99rem) {
  .brand { font-size: 1.25rem; }
  .site-header__cta { padding-inline: 0.75rem; }
}

@media (min-width: 48rem) {
  .site-header { padding-block: 1.5rem 0.75rem; }
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand   nav cta"
      "tagline nav cta";
    column-gap: var(--space-m);
  }
  /* Auf dem Tablet darf die Unterzeile umbrechen, die Menüpunkte nicht */
  .site-header__tagline { max-width: 14rem; }
  .site-nav { display: block; grid-area: nav; justify-self: end; }
  .site-nav__list { display: flex; gap: 0.1rem; }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--tinte);
    text-decoration: none;
    white-space: nowrap;
  }
  .site-nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--salbei);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.45em;
  }
}
@media (min-width: 64rem) {
  .site-header__tagline { max-width: none; }
  .site-header__inner { column-gap: var(--space-l); }
  .site-nav__list { gap: 0.75rem; }
  .site-nav a { font-size: 0.9375rem; }
  .site-header__cta { font-size: 0.9375rem; padding-inline: 1.1rem; }
}

/* ── 4  Einstieg ─────────────────────────────────────────────────── */
/* Mobil: Text, darunter das Video in einem Salbei-Band über die ganze Breite.
   Tablet: die Fläche beginnt an der Textkante und läuft rechts an den Rand.
   Ab 62rem: geteilter Einstieg – Text auf Creme | Video auf der Fläche. */
.hero {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, var(--container)) [content-end]
    minmax(var(--gutter), 1fr) [full-end];
  padding-top: clamp(2.5rem, 10vw, 3.5rem);
}
.hero__text { grid-column: content; }

.hero__title {
  margin-top: var(--space-s);
  font-family: var(--font-display-l);
  font-size: var(--fs-h1);
  line-height: 1.06;
  letter-spacing: -0.018em;
}
.hero__line { display: block; }
.hero__lead {
  max-width: 28rem;
  margin-top: var(--space-m);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--tinte);
}
.hero__actions { margin-top: var(--space-l); }

.hero__media {
  grid-column: content;
  position: relative;
  isolation: isolate;
  margin-top: var(--space-xl);
  padding-block: var(--gutter) calc(var(--gutter) * 0.5);
}
.hero__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * var(--gutter));
  background: var(--salbei-hell);
}

@media (min-width: 40rem) and (max-width: 61.99rem) {
  /* Fläche an die Textkante gebunden, Video eingerückt – dieselbe Geste wie auf dem Desktop */
  .hero__media { padding: var(--space-l) 0 var(--space-s) var(--space-l); }
  .hero__media::before {
    left: 0;
    right: calc(-1 * var(--gutter));
    border-radius: var(--radius-l) 0 0 var(--radius-l);
  }
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [text-start] minmax(0, var(--col-a)) [text-end]
      2.5rem [panel-start] 3rem
      [media-start] minmax(0, var(--col-b)) [media-end]
      minmax(var(--gutter), 1fr) [full-end];
    align-items: start;          /* Transkript öffnen: die Textspalte bleibt stehen */
    padding-top: clamp(1.5rem, 3vw, 3rem);
  }
  /* Die Raum-Fläche als eigenes Rasterelement: von der Achse bis an den rechten Rand */
  .hero::before {
    content: "";
    grid-column: panel-start / full-end;
    grid-row: 1;
    align-self: stretch;
    background: var(--salbei-hell);
    border-radius: var(--radius-l) 0 0 var(--radius-l);
  }
  .hero__text { grid-column: text; grid-row: 1; padding-top: clamp(4rem, 6vw, 5.5rem); }
  .hero__media {
    grid-column: media;
    grid-row: 1;
    margin-top: 0;
    /* gleicher Abstand wie die Textspalte: Video-Oberkante = Eyebrow */
    padding-block: clamp(4rem, 6vw, 5.5rem) clamp(2rem, 3.5vw, 3rem);
  }
  .hero__media::before { content: none; }
  .hero__title {
    font-family: var(--font-banner);
    /* max. 66 px: bleibt auch mit breiteren Serifen (Iowan auf dem Mac, Noto Serif) zweizeilig */
    font-size: clamp(3.25rem, 0.5rem + 4.4vw, 4.125rem);
    letter-spacing: -0.006em;
    margin-top: var(--space-m);
  }
  .hero__lead { margin-top: var(--space-l); }
  .hero__actions { margin-top: 2.5rem; }
}

/* ── 5a  Angebot ─────────────────────────────────────────────────── */
/* Keine Karten: zwei gleichwertige Spalten, je mit einer kurzen Absatzlinie
   wie in einem Buch. Titel und Texte stehen per subgrid auf gleicher Höhe. */
.offer__list {
  display: grid;
  row-gap: var(--space-xl);
}
.offer-card { display: grid; align-content: start; }
.offer-card::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--salbei-dunkel);
  margin-bottom: var(--space-m);
}
.offer-card__title {
  display: block;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.offer-card__title .reg {
  font-size: 0.5em;
  vertical-align: 0.95em;
  margin-left: 0.04em;
}
.offer-card__text {
  max-width: 34rem;
  margin-top: var(--space-s);
  color: var(--grau);
}

@media (min-width: 48rem) {
  .offer__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    column-gap: var(--space-l);
    row-gap: 0;
  }
  .offer-card { grid-row: span 3; grid-template-rows: subgrid; }
}
@media (min-width: 62rem) {
  /* zweite Spalte beginnt genau auf der Achse (wie Video, «Über mich», Kontakt) */
  .offer__list { grid-template-columns: repeat(2, minmax(0, var(--col-a))); column-gap: var(--col-gap); }
}

/* ── 5b  Über mich ───────────────────────────────────────────────── */
/* Mobil: Überschrift → Porträt → Text. Ab Tablet: Porträt links,
   Überschrift und Text rechts, vertikal zur Bildmitte ausgerichtet. */
.about__grid {
  display: grid;
  grid-template-areas: "title" "portrait" "body";
  row-gap: var(--space-l);
}
.about__title { grid-area: title; }
.about__portrait { grid-area: portrait; width: min(82%, 21rem); }
.about__body { grid-area: body; }
.about__text { max-width: var(--measure); }
.about__text + .about__text { margin-top: var(--space-s); }
/* Erster Satz als persönlicher Auftakt in der Serife (aufrecht) */
.about__text--lead {
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 1.15rem + 0.7vw, 1.625rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--tinte);
}
/* Leitsatz: dieselbe kurze Absatzlinie wie im Angebot, darunter in der Buchserife */
.about__quote {
  max-width: var(--measure);
  margin-top: var(--space-l);
}
.about__quote::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--salbei-dunkel);
  margin-bottom: var(--space-s);
}
.about__quote p {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--salbei-dunkel);
  text-wrap: balance;
}
.about__subtitle { margin-top: var(--space-xl); margin-bottom: var(--space-xs); }

/* Ausbildungen: leise Liste mit Haarlinien */
.credentials {
  max-width: var(--measure);
  border-top: 1px solid var(--linie);
}
.credentials li {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--linie);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--grau);
}

@media (min-width: 48rem) {
  .about__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      "portrait ."
      "portrait title"
      "portrait body"
      "portrait .";
    column-gap: var(--space-2xl);
    row-gap: 0;
  }
  .about__portrait { width: 100%; align-self: center; }
  .about__title { margin-bottom: var(--space-m); }
}
@media (min-width: 62rem) {
  .about__grid {
    grid-template-columns: minmax(0, var(--col-a)) minmax(0, var(--col-b));
    column-gap: var(--col-gap);
  }
  .about__portrait { width: 100%; }
}

/* ── 5c  So läuft es ab ──────────────────────────────────────────── */
/* Buchhaft: grosse Mediävalziffern in Salbei dunkel, keine Kreise, keine Linien.
   Mobil hängt die Ziffer links neben dem Titel (gemeinsame Grundlinie),
   ab 48rem drei Spalten, per subgrid auf gleiche Höhe gebracht. */
.steps { display: grid; row-gap: var(--space-l); }
.step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-s);
}
.step__nr {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display-l);
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
  line-height: 1;
  color: var(--salbei-dunkel);
  font-variant-numeric: oldstyle-nums;
}
.step__title {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.step__text {
  grid-column: 2;
  grid-row: 2;
  max-width: 24rem;
  margin-top: var(--space-2xs);
  color: var(--grau);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    column-gap: var(--space-l);
    row-gap: 0;
  }
  .step {
    grid-row: span 3;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .step__nr { grid-row: 1; margin-bottom: var(--space-s); }
  .step__title { grid-column: 1; grid-row: 2; }
  .step__text { grid-column: 1; grid-row: 3; margin-top: var(--space-xs); }
}
@media (min-width: 62rem) {
  .steps { column-gap: var(--space-2xl); }
}

/* Preisliste wie eine Tabelle im Buch: Haarlinien zwischen den Zeilen, keine Box.
   Beträge in der Buchschrift mit Tabellenziffern, damit sie sauber untereinander stehen. */
.prices {
  max-width: 40rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}
.prices__title {
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin-bottom: var(--space-s);
}
.prices__table {
  width: 100%;
  border-collapse: collapse;
}
.prices__table th,
.prices__table td {
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: baseline;
}
.prices__table th + th,
.prices__table td { padding-left: var(--space-xs); }
.prices__table thead th {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  color: var(--tinte);
  vertical-align: bottom;
}
.prices__table tbody th {
  font-weight: 400;
  line-height: 1.35;
}
.prices__table td {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  color: var(--tinte);
}
@media (min-width: 30rem) {
  .prices__table th + th,
  .prices__table td { padding-left: var(--space-s); }
  .prices__table td { font-size: var(--fs-lead); }
}
.prices__dauer,
.prices__hint {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 400;
  line-height: 1.4;
  color: var(--grau);
}
.prices__notes {
  display: grid;
  row-gap: var(--space-3xs);
  margin-top: var(--space-m);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--grau);
}
.process__tech {
  max-width: 32rem;
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--grau);
}

/* ── 5d  Termin buchen ───────────────────────────────────────────── */
/* Spiegelung des Einstiegs: die helle Salbei-Fläche läuft links an den Rand.
   Mobil ein Band über die ganze Breite (wie das Video-Band), darunter auf
   Creme die Kontaktalternative. Ab 62rem steht sie rechts auf Creme. */
.booking {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, var(--container)) [content-end]
    minmax(var(--gutter), 1fr) [full-end];
}
.booking::before {
  content: "";
  grid-column: full;
  grid-row: 1;
  background: var(--salbei-hell);
}
.booking__main {
  grid-column: content;
  grid-row: 1;
  padding-block: clamp(3rem, 9vw, 5rem);
}
.booking__title {
  font-family: var(--font-display-l);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.booking__text {
  max-width: 26rem;
  margin-top: var(--space-s);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--tinte);
}
.booking__action { margin-top: var(--space-l); }
.booking__aside {
  grid-column: content;
  grid-row: 2;
  max-width: 30rem;
  padding-top: var(--space-l);
}
.booking__contact { font-size: var(--fs-body); line-height: 1.6; color: var(--tinte); }
.booking__note {
  margin-top: var(--space-2xs);
  text-wrap: balance;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--grau);
}
.booking .ph { white-space: nowrap; }

@media (min-width: 40rem) {
  .booking::before {
    grid-column: full-start / content-end;
    border-radius: 0 var(--radius-l) var(--radius-l) 0;
  }
  .booking__main { padding-inline-end: var(--space-l); }
}
@media (min-width: 62rem) {
  .booking {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [text-start] minmax(0, var(--col-a)) [text-end]
      3rem [panel-end] 2.5rem
      [media-start] minmax(0, var(--col-b)) [media-end]
      minmax(var(--gutter), 1fr) [full-end];
  }
  .booking::before { grid-column: full-start / panel-end; }
  .booking__main {
    grid-column: text;
    padding-block: clamp(4rem, 6vw, 5.5rem);
    padding-inline-end: 0;
  }
  .booking__aside {
    grid-column: media;
    grid-row: 1;
    align-self: end;
    padding-top: 0;
    padding-bottom: clamp(4rem, 6vw, 5.5rem);
  }
}

/* ── 6  Fusszeile ────────────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: var(--space-2xl);
  font-size: var(--fs-small);
  color: var(--grau);
}
.site-footer__top {
  display: grid;
  gap: var(--space-l);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--linie);
}
.brand--footer { font-size: 1.375rem; padding-block: 0.65rem; margin-block: -0.65rem; }
.site-footer__tagline { margin-top: 0.5rem; font-size: var(--fs-micro); }
.site-footer__label { font-size: 0.75rem; }
.site-footer__contact p { margin-top: -0.35rem; }
.site-footer__contact a,
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 4px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: -0.6rem; }
.site-footer__links a {
  color: var(--tinte);
  text-decoration-color: var(--salbei);
}
.site-footer__bottom {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--linie);
  font-size: var(--fs-micro);
  line-height: 1.6;
}
.site-footer__note { max-width: 44rem; }

@media (min-width: 48rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: start;
    column-gap: var(--space-xl);
  }
  .site-footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: var(--space-xl);
  }
}
@media (min-width: 62rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, var(--col-a)) minmax(0, 1fr) auto;
    column-gap: var(--col-gap);
  }
}

/* ── 7  Komponenten aus base.css ─────────────────────────────────── */

/* Platzhalter-Markierung im Text */
.ph { border-radius: 3px; }
/* kurze Platzhalter wie [E-Mail] nicht trennen */
.booking-demo__alt .ph,
.site-footer .ph { white-space: nowrap; }

/* Vorstellungsvideo */
.video__frame {
  border-radius: var(--radius-m);
  background: var(--hell);
  box-shadow: 0 1px 2px rgba(42, 40, 36, 0.06), 0 12px 32px -12px rgba(42, 40, 36, 0.18);
}
.video__media { background: #2f302b; }

/* Zustand «Video vorhanden»: Play-Pille unten links – das Gesicht in der
   Bildmitte bleibt frei. Nie randbündig, damit der Fokusring ganz sichtbar ist.
   Fokus als Doppelring: heller Ring (Creme) + dunkler Saum (Tinte) – sichtbar
   auf hellen wie auf dunklen Vorschaubildern. */
.video__play {
  left: 0.75rem;
  top: auto;
  bottom: 0.75rem;
  transform: none;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.375rem 1.125rem 0.375rem 0.375rem;
  border-radius: 999px;
  background: var(--salbei-dunkel);
  color: var(--creme);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  box-shadow: 0 8px 24px rgba(20, 24, 20, 0.3);
  transition: background-color 0.2s ease;
}
.video__play:hover { background: var(--salbei-tief); filter: none; }
.video__play:focus-visible {
  outline: 3px solid var(--creme);
  outline-offset: 2px;
  box-shadow: 0 0 0 8px var(--tinte), 0 8px 24px rgba(20, 24, 20, 0.3);
}
.video__play-icon { width: 2.25rem; height: 2.25rem; background: var(--creme); }
.video__play-icon::after { width: 0.8rem; height: 0.92rem; background: var(--salbei-dunkel); }
.video__play-time { opacity: 0.9; }
@media (max-width: 23.99rem) {
  .video__play { left: 0.625rem; bottom: 0.625rem; min-height: 3rem; font-size: 0.875rem; }
  .video__play-icon { width: 2.125rem; height: 2.125rem; }
}
/* Grosse Pille nur, wo das Video breit genug ist (Tablet und ab 75rem);
   im geteilten Einstieg auf kleinen Laptops bleibt sie kompakt. */
@media (min-width: 48rem) and (max-width: 61.99rem), (min-width: 75rem) {
  .video__play {
    left: 1.25rem;
    bottom: 1.25rem;
    gap: 0.85rem;
    min-height: 3.75rem;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    font-size: 1rem;
  }
  .video__play-icon { width: 2.75rem; height: 2.75rem; }
  .video__play-icon::after { width: 0.95rem; height: 1.1rem; }
}

/* Platzhalter, solange die Videodatei fehlt: ruhige Papierfläche mit
   gestrichelter Innenlinie, Titel als Honig-Chip, Play-Symbol bewusst inaktiv. */
.video__frame--placeholder {
  padding: var(--space-l) var(--space-m);
  background: var(--hell);
  border: 0;
  box-shadow: 0 1px 2px rgba(42, 40, 36, 0.05);
}
.video__frame--placeholder::before {
  content: "";
  position: absolute;
  inset: 0.625rem;
  border: 1px dashed var(--linie-salbei);
  border-radius: calc(var(--radius-m) - 5px);
  pointer-events: none;
}
.video__placeholder { position: relative; gap: 0.6rem; max-width: 24rem; color: var(--salbei-dunkel); }
.video__placeholder .video__play-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.25rem;
  border: 1.5px dashed currentColor;
  opacity: 0.5;
}
.video__placeholder .video__play-icon::after { width: 0.75rem; height: 0.875rem; }
.video__placeholder-title {
  padding: 0.2rem 0.65rem;
  background: var(--c-ph-bg);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte);
}
.video__placeholder-text {
  font-family: var(--font-serif-text);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--grau);
}
@media (max-width: 26rem) {
  .video__frame--placeholder { padding: var(--space-m) var(--space-s); }
  .video__placeholder { gap: 0.35rem; }
  .video__placeholder .video__play-icon { width: 2.25rem; height: 2.25rem; margin-bottom: 0.1rem; }
  .video__placeholder-title { font-size: 0.6875rem; letter-spacing: 0.07em; }
  .video__placeholder-text { font-size: 0.9375rem; line-height: 1.4; }
}

/* Bildunterschrift und Transkript auf der Salbei-Fläche */
.video__caption {
  align-items: baseline;
  margin-top: var(--space-s);
  gap: 0.1rem 1rem;
}
.video__caption-title {
  font-family: var(--font-serif-text);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--tinte);
}
.video__caption-meta { font-size: var(--fs-micro); color: var(--grau); }
.transcript { margin-top: 0.15rem; font-size: var(--fs-small); }
.transcript > summary { color: var(--salbei-dunkel); text-decoration-thickness: 1px; border-radius: 4px; }
.transcript > summary:hover { text-decoration-thickness: 2px; }
.transcript__body { max-width: 34rem; color: var(--grau); }

/* Porträt und Platzhalter */
.portrait { border-radius: var(--radius-l); }
.portrait--placeholder {
  padding: var(--space-l);
  background: var(--salbei-hell);
  border: 0;
  color: var(--grau);
}
/* feine gestrichelte Innenlinie wie ein Passepartout */
.portrait--placeholder::before {
  content: "";
  position: absolute;
  inset: 0.875rem;
  border: 1px dashed #97a592;
  border-radius: calc(var(--radius-l) - 8px);
  pointer-events: none;
}
.portrait__label {
  position: relative;
  max-width: 14rem;
  padding: 0.6rem 0.9rem;
  background: var(--hell);
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--grau);
}

/* Demo-Dialog «Termin buchen» */
.booking-demo {
  border-radius: var(--radius-l);
  background: var(--hell);
  box-shadow: 0 30px 80px -20px rgba(42, 40, 36, 0.45);
}
.booking-demo::backdrop { background: rgba(42, 40, 36, 0.48); }
.booking-demo__inner { gap: var(--space-s); padding: clamp(1.5rem, 6vw, 2.5rem); }
.booking-demo__badge {
  padding: 0.2rem 0.65rem;
  border-color: var(--salbei-dunkel);
  color: var(--salbei-dunkel);
  letter-spacing: 0.12em;
}
.booking-demo__title {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.booking-demo__text { color: var(--tinte); }
.booking-demo__alt { font-size: var(--fs-small); color: var(--grau); }
.booking-demo form { margin-top: var(--space-2xs); }
.booking-demo__close {
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-s);
  background: var(--salbei-dunkel);
  color: var(--creme);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.booking-demo__close:hover { background: var(--salbei-tief); }

/* ── 8  Rechtstext-Seiten ────────────────────────────────────────── */
.legal-page { background: var(--creme); }
/* Kopf, Satzspalte und Fusslinie auf derselben schmalen Spalte (ca. 70 Zeichen) */
.legal-header,
.legal,
.legal-footer {
  width: min(100% - 2 * var(--gutter), 40rem);
  max-width: none;
  padding-inline: 0;
}
.legal-header { align-items: baseline; padding-block: 1.75rem 1rem; }
/* Signet wie auf der Startseite: «Klarraum | KÄLIN» */
.legal-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--tinte);
  white-space: nowrap;
}
.legal-header__back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 4px;
  color: var(--salbei-dunkel);
}
.legal { padding-bottom: var(--space-2xl); }
.legal h1 {
  margin: var(--space-l) 0 var(--space-l);
  font-family: var(--font-display-l);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.legal h2 { font-size: 1.375rem; line-height: 1.25; margin-bottom: var(--space-2xs); }
.legal__section { padding-block: var(--space-m); border-top-color: var(--linie); }
.legal__section p { color: var(--tinte); }
.legal__draft {
  border-radius: var(--radius-s);
  border-color: var(--c-ph-line);
  line-height: 1.55;
}
.legal-footer { border-top-color: var(--linie); }
.legal-footer a { color: var(--salbei-dunkel); }
.legal-footer a[aria-current="page"] { color: var(--tinte); text-decoration-thickness: 1px; }

/* ── Ausweichlayout Kopfzeile (mobil) ────────────────────────────────
   Reicht der Platz nicht (grössere Schrift, Zoom, längeres Button-Label),
   rutscht «Termin buchen» unter die Wortmarke, statt sie zu überdecken. */
@media (max-width: 47.99rem) {
  .site-header__inner { display: flex; flex-wrap: wrap; align-items: center; }
  .brand { margin-right: auto; }
  .site-header__cta { order: 1; }
  .site-header__tagline { order: 2; flex-basis: 100%; }
}
@media (max-width: 23.99rem) {
  .site-header__inner { column-gap: 0.5rem; }   /* 320 px: Marke und Button bleiben nebeneinander */
}
