/* Lot Physiotherapie – Konzeptarbeit von Northline Studios */

@font-face {
  font-family: "Atkinson Next";
  src: url("fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Kalk: Altbauwand, Tinte: Petrol wie das Lot aus Messing und Faden, Akzent: Aprikose für Gelenkpunkte */
  --kalk: #F0ECE4;
  --kalk-tief: #E3DDD1;
  --papier: #F8F6F1;
  --weiss: #FFFFFF;
  --tinte: #12383C;
  --tinte-hover: #1D4B50;
  --tinte-2: #3D5557;
  --tinte-3: #586C6E;
  --linie: #D2CBBD;
  --linie-stark: #8C8474;
  --himmel: #D5E6E1;
  --mitte: #5F8E89;
  --sand: #D8C29D;
  --akzent: #E4895C;
  --akzent-text: #9A4321;
  --band: #2F7A4C;
  --band-text: #24633D;
  --band-hell: #A6D7B5;
  --fehler: #A3261B;

  --nacht-text: #EAF1EF;
  --nacht-text-2: #AFC6C3;
  --nacht-linie: #2F5A5E;

  --serif: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --text-gross: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --text-klein: 1.0625rem;
  --h1: clamp(2rem, 0.85rem + 5.1vw, 5.25rem);
  --h2: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --h3: clamp(1.4rem, 1.28rem + 0.5vw, 1.75rem);

  --rand: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --breite: 78rem;
  --abstand: clamp(4.5rem, 3rem + 7vw, 9.5rem);

  --radius: 6px;
  --radius-klein: 4px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: var(--text);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.028em; }
h1 { font-weight: 800; }
h3 { font-family: var(--serif); font-weight: 700; font-size: var(--h3); line-height: 1.2; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
::selection { background: var(--tinte); color: var(--kalk); }
html { accent-color: var(--tinte); caret-color: var(--tinte); scrollbar-color: var(--linie-stark) var(--kalk); }
.schritt-panel { scrollbar-color: var(--linie-stark) transparent; scrollbar-width: thin; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.sr-nur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--tinte); color: var(--kalk); padding: 0.75rem 1.1rem; border-radius: var(--radius-klein);
  text-decoration: none; font-weight: 700;
}
.sprung:focus { top: 1rem; }

/* ---------- Konzept-Hinweis ---------- */
.konzept-hinweis {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem 0.9rem;
  padding: 0.55rem var(--rand);
  background: var(--tinte); color: var(--nacht-text-2);
  font-size: 0.9375rem; line-height: 1.45; text-align: center;
}
.konzept-hinweis a { color: var(--nacht-text); font-weight: 700; margin-left: 0.4rem; text-decoration-color: var(--akzent); }
.hinweis-kurz { display: none; }
.hinweis-kurz a { margin-left: 0; }
@media (max-width: 640px) {
  .konzept-hinweis { font-size: 0.875rem; padding-block: 0.45rem; white-space: nowrap; }
  .hinweis-lang { display: none; }
  .hinweis-kurz { display: inline; }
}
@media (max-width: 350px) { .konzept-hinweis { font-size: 0.8125rem; padding-inline: 0.5rem; } }
.konzept-hinweis a:focus-visible { outline-color: var(--nacht-text); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 30;
  background: var(--kalk);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.kopf.ist-gescrollt { border-bottom-color: var(--linie); box-shadow: 0 6px 18px -14px rgb(18 56 60 / 0.35); }
.kopf-innen {
  max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto;
  padding: 0.85rem var(--rand);
  display: flex; align-items: center; gap: 1.25rem;
}
.marke { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.marke-lot { width: 14px; height: 30px; flex: none; }
.marke-lot path:first-child { stroke: currentColor; stroke-width: 1.6; fill: none; }
.marke-lot path:last-child { fill: currentColor; }
.marke-text { display: flex; flex-direction: column; line-height: 1; }
.marke-text b { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.04em; }
.marke-text span { font-size: 0.875rem; color: var(--tinte-2); letter-spacing: 0.02em; margin-top: 0.2rem; }

.navigation { display: flex; gap: 0.25rem; }
.navigation a {
  text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 4px; font-size: 1.0625rem;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color 160ms ease;
}
.navigation a.ist-aktiv { background: var(--kalk-tief); }
@media (hover: hover) and (pointer: fine) {
  .navigation a:hover { background: var(--kalk-tief); }
}
.menue-knopf { display: none; }

/* ---------- Knöpfe ---------- */
.knopf {
  --knopf-bg: var(--tinte); --knopf-text: var(--kalk);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 2px solid var(--knopf-bg); border-radius: 4px;
  background: var(--knopf-bg); color: var(--knopf-text);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.knopf:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { --knopf-bg: var(--tinte-hover); }
  .knopf:hover .knopf-pfeil { transform: translateX(3px); }
}
.knopf-klein { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 1rem; }
.knopf-gross { min-height: 58px; padding: 0.9rem 1.6rem; font-size: 1.1875rem; }
.knopf-pfeil { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.knopf-rahmen { --knopf-bg: transparent; --knopf-text: var(--tinte); border-color: var(--tinte); }
@media (hover: hover) and (pointer: fine) {
  .knopf-rahmen:hover { --knopf-bg: var(--kalk-tief); }
}
.knopf-hell { --knopf-bg: var(--kalk); --knopf-text: var(--tinte); }
@media (hover: hover) and (pointer: fine) {
  .knopf-hell:hover { --knopf-bg: var(--weiss); }
}
.knopf-hell:focus-visible { outline-color: var(--kalk); }
.knopf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }

.textlink {
  font-weight: 700; color: var(--tinte); text-decoration: underline; text-decoration-color: var(--linie-stark);
  min-height: 44px; display: inline-flex; align-items: center;
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-color: var(--tinte); } }
.textlink-knopf { background: none; border: 0; padding: 0; font-size: 1.0625rem; }

.demo-marke {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 2px;
  background: var(--himmel); color: var(--tinte);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.5;
}

/* ---------- Held: Text links, das Lot rechts ---------- */
.held {
  max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto;
  padding: clamp(2.25rem, 1rem + 4vw, 4.5rem) var(--rand) 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
}
.held h1 { font-size: var(--h1); line-height: 0.98; max-width: 13.5ch; }
.held-lead { margin-top: 1.5rem; font-size: var(--text-gross); line-height: 1.5; color: var(--tinte-2); max-width: 33rem; }
.held .knopf-reihe { margin-top: 2.1rem; }

/* Die Figur aus Grundformen (Leitstil 16 Bauhaus, angepasst) */
.haltung { margin: 0; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1.25rem; align-items: end; }
.haltung-bild { width: 100%; height: auto; overflow: visible; }
.haltung figcaption { color: var(--tinte-2); font-size: var(--text-klein); line-height: 1.55; padding-bottom: 0.5rem; }
.haltung figcaption p { max-width: 30rem; }
.haltung-nochmal { margin-top: 0.4rem; gap: 0.5rem; font-size: 1rem; }
.haltung-nochmal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .haltung-nochmal:hover svg { transform: rotate(-140deg); } }
.haltung-nochmal:active svg { transform: rotate(-200deg); }
.f-tinte { fill: var(--tinte); }
.f-mitte { fill: var(--mitte); }
.f-sand { fill: var(--sand); }
.f-akzent { fill: var(--akzent); }
.haltung-bild rect, .haltung-bild circle:not(.h-gelenk) { stroke: var(--kalk); stroke-width: 4; }
.h-boden path { stroke: var(--linie-stark); stroke-width: 1.5; fill: none; }
.h-gelenk { fill: var(--kalk); stroke: var(--tinte); stroke-width: 2.25; }
.h-lot-halo { stroke: var(--kalk); stroke-width: 5; fill: none; }
.h-lot-faden { stroke: var(--akzent-text); stroke-width: 1.75; fill: none; }
.h-lot-gewicht { fill: var(--akzent-text); stroke: var(--kalk); stroke-width: 2.5; stroke-linejoin: round; }
.h-schilder path { stroke: var(--linie-stark); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.h-schilder text { fill: var(--tinte-2); font-family: var(--sans); font-size: 21px; font-weight: 700; text-anchor: end; letter-spacing: 0.01em; }
.h-schilder { display: none; }

/* Termine direkt unter dem Held: eine ruhige Leiste, keine Karte */
.held-termine {
  border-top: 1.5px solid var(--tinte); padding: 1.1rem 0 0; margin-bottom: var(--abstand);
}
.held-termine-kopf { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.held-termine h2 { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.slot-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.slot-liste:empty { min-height: 7.5rem; }
.slot {
  width: 100%; min-height: 68px; padding: 0.65rem 0.9rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.1rem;
  border: 1.5px solid var(--linie); border-radius: var(--radius-klein);
  background: var(--papier); text-align: left; line-height: 1.25;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.slot:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .slot:hover { border-color: var(--tinte); background: var(--weiss); } }
.slot-tag { font-size: 0.9375rem; color: var(--tinte-2); }
.slot-zeit { white-space: nowrap; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.45rem; }
.held-termine .textlink-knopf { margin-top: 0.4rem; }

@media (min-width: 600px) {
  .haltung { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 2rem; }
}
@media (min-width: 900px) {
  .held { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 5rem); row-gap: clamp(2rem, 4vh, 3rem); align-items: center; padding-top: clamp(1.5rem, 4vh, 3.5rem); }
  .haltung { grid-template-columns: auto minmax(0, 13rem); gap: 1.75rem; align-items: end; justify-content: end; }
  .haltung-bild { height: clamp(22rem, 60vh, 36rem); width: auto; }
  .h-schilder { display: inline; }
  .haltung figcaption { padding-bottom: 0.25rem; font-size: 1rem; }
  .held-termine {
    grid-column: 1 / -1; display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
    padding-top: 1.4rem;
  }
  .held-termine-kopf { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin: 0; }
  .slot-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .held-termine .textlink-knopf { margin: 0; font-size: 1rem; }
}
@media (max-width: 360px) {
  .slot { padding: 0.55rem 0.6rem; }
  .slot-zeit { font-size: 1.05rem; gap: 0.35rem; }
  .haltung { grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; }
}

/* ---------- Abschnitte allgemein ---------- */
.abschnitt { padding: var(--abstand) 0; }
.raster {
  max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
}
.abschnitt-kopf h2 { font-size: var(--h2); line-height: 1.06; }
.abschnitt-kopf p { margin-top: 1.1rem; color: var(--tinte-2); max-width: 36rem; font-size: var(--text-gross); line-height: 1.5; }
@media (min-width: 900px) {
  .raster { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 3.5rem; }
  .erster-termin .raster, .kosten .raster { grid-template-rows: min-content 1fr; }
}

/* ---------- Leistungen: ein Register über die ganze Breite ---------- */
.leistungs-liste { border-top: 1.5px solid var(--tinte); counter-reset: leistung; }
.leistung { padding: 1.6rem 0 1.75rem; border-bottom: 1px solid var(--linie); display: grid; gap: 0.7rem; }
.leistung h3 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem); letter-spacing: -0.02em; }
.leistung p { max-width: 40rem; }
.leistung-daten { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 0.2rem; font-size: var(--text-klein); }
.leistung-daten div { display: flex; gap: 0.4rem; }
.leistung-daten dt { color: var(--tinte-2); }
.leistung-daten dd { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .leistungen .abschnitt-kopf { grid-column: 1 / span 7; }
  .leistungs-liste { grid-column: 1 / -1; }
  .leistung {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); align-items: baseline;
    padding: 2.1rem 0 2.2rem; position: relative;
    transition: background-color 240ms ease;
  }
  .leistung h3 { grid-column: 1 / span 4; }
  .leistung p { grid-column: 5 / span 5; }
  .leistung-daten { grid-column: 10 / span 3; flex-direction: column; gap: 0.3rem; margin: 0; }
  .leistung-daten div { justify-content: space-between; border-bottom: 1px dotted var(--linie); padding-bottom: 0.3rem; }
  .leistung::before {
    content: ""; position: absolute; left: -1.6rem; top: 2.65rem; width: 9px; height: 9px; border-radius: 50%;
    background: var(--akzent); opacity: 0; transform: scale(0.4); transition: transform 200ms var(--ease-out), opacity 160ms ease;
  }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .leistung:hover::before { transform: scale(1); opacity: 1; }
}

/* ---------- Erster Termin ---------- */
.erster-termin { background: var(--papier); }
.schritte { position: relative; display: grid; gap: 0; padding-bottom: 1.5rem; }
.schritte::before { content: ""; position: absolute; left: 2.5rem; top: 0; bottom: 14px; width: 1.5px; background: var(--tinte); }
.schritte::after {
  content: ""; position: absolute; left: calc(2.5rem - 6.25px); bottom: 0; width: 14px; height: 14px;
  background: var(--tinte); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.schritt { position: relative; padding: 0 0 2.6rem 4.25rem; }
.schritt h3 { position: relative; margin-bottom: 0.7rem; }
.schritt-nr {
  position: absolute; left: -4.25rem; top: 0.05em; width: 1.75rem; text-align: right;
  font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums;
}
.schritt-nr::after {
  content: ""; position: absolute; left: calc(100% + 0.45rem); top: 0.6em; width: 1.1rem; height: 2px; background: var(--tinte);
}
.schritt p + p { margin-top: 0.75rem; }
.schritt-notiz { color: var(--tinte-2); }
.mitbringen { border: 0; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.mitbringen legend { color: var(--tinte-2); margin-bottom: 0.5rem; padding: 0; }
.mitbringen label, .haken {
  display: flex; align-items: flex-start; gap: 0.85rem; min-height: 44px; padding: 0.45rem 0; cursor: pointer;
}
.mitbringen input, .haken input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0.1rem 0 0;
  width: 26px; height: 26px; border: 2px solid var(--tinte); border-radius: 7px; background: var(--weiss);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.mitbringen input::after, .haken input::after {
  content: ""; width: 12px; height: 7px; border: solid var(--kalk); border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg) scale(0.4); opacity: 0;
  transition: transform 200ms var(--ease-out), opacity 120ms ease;
}
.mitbringen input:checked, .haken input:checked { background: var(--tinte); }
.mitbringen input:checked::after, .haken input:checked::after { opacity: 1; transform: translateY(-2px) rotate(-45deg) scale(1); }
.mitbringen input:active, .haken input:active { transform: scale(0.92); }
.mitbringen input:checked + span { color: var(--tinte-2); text-decoration: line-through; text-decoration-color: var(--linie-stark); }
.erster-bild { margin: 0; }
.erster-bild img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) {
  .erster-termin .abschnitt-kopf { grid-column: 1 / span 5; }
  .schritte { grid-column: 6 / span 7; grid-row: 1 / span 2; }
  .erster-bild { grid-column: 1 / span 4; grid-row: 2; align-self: start; position: sticky; top: 7rem; }
  .erster-bild img { aspect-ratio: 4 / 5; object-position: 45% 50%; }
}

/* ---------- Kosten ---------- */
.kassen { display: grid; gap: 2rem; }
.kasse { border-top: 1.5px solid var(--tinte); padding-top: 1.4rem; }
.kasse p { margin-top: 0.7rem; }
.preise { background: var(--papier); border-radius: var(--radius); padding: 1.5rem 1.25rem 1.4rem; }
.preise table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.preise caption { text-align: left; font-family: var(--serif); font-weight: 600; font-size: var(--h3); padding-bottom: 0.9rem; }
.preise caption span { display: block; font-family: var(--sans); font-weight: 400; font-size: var(--text-klein); color: var(--tinte-2); margin-top: 0.2rem; }
.preise th, .preise td { padding: 0.8rem 0; border-top: 1px solid var(--linie); text-align: left; vertical-align: baseline; }
.preise thead th { font-size: 0.9375rem; color: var(--tinte-2); font-weight: 400; border-top: 0; padding-top: 0; }
.preise tbody th { font-weight: 400; padding-right: 0.75rem; }
.preise td { white-space: nowrap; color: var(--tinte-2); padding-right: 0.75rem; }
.preise td:last-child { text-align: right; color: var(--tinte); font-weight: 700; padding-right: 0; }
.preise thead th:last-child { text-align: right; }
.preise-notiz { margin-top: 1rem; font-size: var(--text-klein); color: var(--tinte-2); }
@media (min-width: 900px) {
  .kosten .abschnitt-kopf { grid-column: 1 / span 6; }
  .kassen { grid-column: 1 / span 6; grid-row: 2; align-content: start; gap: 2.5rem; }
  .preise { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; padding: 2rem 2rem 1.75rem; }
}

@media (max-width: 420px) {
  .preise { padding: 1.25rem 1rem; }
  .preise table { font-size: 1.0625rem; }
  .preise tbody th { hyphens: auto; -webkit-hyphens: auto; }
  .preise td { white-space: normal; }
  .preise td:last-child { white-space: nowrap; }
}

/* ---------- Buchen (Tinte) ---------- */
.buchen { background: var(--tinte); color: var(--nacht-text); }
.buchen :focus-visible { outline-color: var(--nacht-text); }
.buchen h2 { font-size: var(--h2); line-height: 1.06; }
.buchen-text p { margin-top: 1.1rem; color: var(--nacht-text-2); max-width: 34rem; font-size: var(--text-gross); line-height: 1.5; }
.buchen-ablauf { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 2rem; counter-reset: ablauf; }
.buchen-ablauf li {
  counter-increment: ablauf; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem; border: 1px solid var(--nacht-linie); border-radius: 4px; font-size: 1rem;
}
.buchen-ablauf li::before {
  content: counter(ablauf); width: 26px; height: 26px; border-radius: 2px; display: grid; place-items: center;
  background: var(--nacht-linie); font-weight: 700; font-size: 0.875rem;
}
.buchen .demo-satz { font-size: var(--text-klein); margin-top: 1.25rem; }
.woche-vorschau { background: rgb(255 255 255 / 0.05); border: 1px solid var(--nacht-linie); border-radius: var(--radius); padding: 1.25rem; }
.woche-vorschau h3 { font-size: 1.375rem; }
.woche-vorschau h3 span { display: block; font-family: var(--sans); font-weight: 400; font-size: var(--text-klein); color: var(--nacht-text-2); margin-top: 0.2rem; }
.vorschau-raster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; margin-top: 1.1rem; }
.vorschau-tag { display: grid; gap: 0.4rem; align-content: start; }
.vorschau-tag-kopf { text-align: center; font-size: 0.9375rem; color: var(--nacht-text-2); line-height: 1.25; padding-bottom: 0.25rem; }
.vorschau-tag-kopf b { display: block; color: var(--nacht-text); font-size: 1rem; }
.vorschau-slot {
  min-height: 44px; border-radius: 4px; border: 1px solid var(--nacht-linie); background: rgb(255 255 255 / 0.06);
  font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--nacht-text); padding: 0.4rem 0.15rem;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.vorschau-slot:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .vorschau-slot:hover { background: var(--kalk); color: var(--tinte); border-color: var(--kalk); }
}
.vorschau-leer { font-size: 0.875rem; color: var(--nacht-text-2); text-align: center; padding-top: 0.5rem; }
.vorschau-notiz { margin-top: 1rem; font-size: var(--text-klein); color: var(--nacht-text-2); }
@media (min-width: 900px) {
  .buchen-text { grid-column: 1 / span 5; align-self: center; }
  .woche-vorschau { grid-column: 7 / span 6; padding: 1.75rem; align-self: center; }
}
@media (max-width: 400px) {
  .vorschau-raster { gap: 0.25rem; }
  .vorschau-slot { font-size: 0.875rem; padding-inline: 0; }
  .vorschau-tag-kopf { font-size: 0.8125rem; }
}

/* ---------- Team ---------- */
.rollen { display: grid; gap: 0; border-top: 1.5px solid var(--tinte); }
.rolle { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--linie); display: grid; gap: 0.3rem; }
.rolle-beruf { color: var(--tinte-2); font-weight: 700; font-size: var(--text-klein); }
.rolle-sprachen { color: var(--tinte-2); font-size: var(--text-klein); }
@media (min-width: 700px) {
  .rollen { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
}
@media (min-width: 900px) {
  .team .abschnitt-kopf { grid-column: 1 / span 4; }
  .rollen { grid-column: 6 / span 7; }
}

/* ---------- Praxis / Grundriss ---------- */
.praxis { background: var(--papier); }
.grundriss { margin: 0; background: var(--weiss); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); }
.grundriss svg { width: 100%; height: auto; }
.gr-boden rect { fill: var(--weiss); }
.gr-flur rect { fill: var(--kalk); }
.gr-wand-innen path { stroke: var(--tinte); stroke-width: 3; fill: none; }
.gr-tuer-luecke path { stroke: var(--weiss); stroke-width: 6; fill: none; }
.gr-tuer-luecke path:nth-child(2) { stroke: var(--kalk); }
.gr-tuer path { stroke: var(--tinte-3); stroke-width: 1.25; fill: none; stroke-dasharray: 3 3; }
.gr-wand-aussen path { fill: none; stroke: var(--tinte); stroke-width: 7; stroke-linejoin: miter; }
.gr-fenster path { stroke: var(--himmel); stroke-width: 7; fill: none; }
.gr-moebel rect, .gr-moebel circle { fill: var(--kalk-tief); stroke: none; }
.gr-moebel path { stroke: var(--linie-stark); stroke-width: 10; stroke-linecap: round; fill: none; }
.gr-rampe path { stroke: var(--band); stroke-width: 3; stroke-linecap: round; }
.gr-nummern circle { fill: var(--tinte); }
.gr-nummern text { fill: var(--kalk); font-family: var(--sans); font-weight: 700; font-size: 18px; text-anchor: middle; }
.grundriss-legende { margin-top: 1.25rem; display: grid; gap: 0.35rem 1.5rem; counter-reset: legende; font-size: var(--text-klein); }
.grundriss-legende li { counter-increment: legende; display: flex; gap: 0.7rem; align-items: baseline; }
.grundriss-legende li::before {
  content: counter(legende); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--tinte); color: var(--kalk); font-weight: 700; font-size: 0.875rem;
  display: inline-grid; place-items: center; transform: translateY(0.3rem);
}
@media (min-width: 560px) { .grundriss-legende { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.raum-bild { margin: 0; }
.raum-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--kalk-tief); }
.raum-training img { aspect-ratio: 4 / 5; }
.raum-bild figcaption { margin-top: 0.6rem; font-size: var(--text-klein); color: var(--tinte-2); font-weight: 700; }
.barriere-liste { display: grid; gap: 0; border-top: 1.5px solid var(--tinte); }
.barriere-liste li { padding: 1.25rem 0 1.35rem; border-bottom: 1px solid var(--linie); }
.barriere-liste h3 { font-size: 1.375rem; margin-bottom: 0.35rem; }
@media (min-width: 900px) {
  .praxis .abschnitt-kopf { grid-column: 1 / span 7; }
  .grundriss { grid-column: 1 / span 7; grid-row: 2; align-self: start; }
  .barriere-liste { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: start; }
  .raum-behandlung { grid-column: 1 / span 7; grid-row: 3; align-self: end; }
  .raum-behandlung img { aspect-ratio: 16 / 10; }
  .raum-training { grid-column: 9 / span 4; grid-row: 3; align-self: end; }
}

/* ---------- Anfahrt ---------- */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.status-punkt { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--tinte); }
.status-punkt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tinte-3); }
.status-punkt.offen { color: var(--band-text); }
.status-punkt.offen::before { background: var(--band); }
.zeiten h3, .wege h3 { margin-bottom: 1rem; }
.zeiten-tabelle { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--tinte); font-variant-numeric: tabular-nums; }
.zeiten-tabelle th, .zeiten-tabelle td { padding: 0.75rem 0; border-bottom: 1px solid var(--linie); text-align: left; font-weight: 400; }
.zeiten-tabelle td { text-align: right; }
.zeiten-tabelle tr.ist-heute th, .zeiten-tabelle tr.ist-heute td { font-weight: 700; }
.zeiten-tabelle tr.ist-heute th::after {
  content: "heute"; margin-left: 0.6rem; padding: 0.05rem 0.5rem; border-radius: 2px;
  background: var(--himmel); font-size: 0.875rem; font-weight: 700; vertical-align: 0.1em;
}
.zeiten-notiz { margin-top: 1rem; color: var(--tinte-2); font-size: var(--text-klein); }
.wege-liste { border-top: 1.5px solid var(--tinte); }
.wege-liste li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--linie); }
.wege-liste p { margin-left: 0.35rem; min-width: 0; overflow-wrap: break-word; }
.linie {
  flex: none; min-width: 2.6rem; height: 1.8rem; padding: 0 0.45rem; border-radius: 6px;
  display: inline-grid; place-items: center; font-weight: 800; font-size: 0.9375rem; color: #fff; margin-top: 0.1rem;
}
.linie-tram { background: #B51F1F; }
.linie-s { background: #00753F; border-radius: 50%; min-width: 1.8rem; padding: 0; }
.linie-u { background: #7A5232; }
.linie-rad, .linie-auto { background: var(--tinte); }
.linie-rad svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kontakt-daten { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.kontakt-daten div { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.kontakt-daten dt { color: var(--tinte-2); min-width: 5rem; }
.kontakt-daten dd { font-weight: 700; overflow-wrap: anywhere; }
.kontakt-daten dd a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) {
  .anfahrt .abschnitt-kopf { grid-column: 1 / span 12; }
  .zeiten { grid-column: 1 / span 5; }
  .wege { grid-column: 7 / span 6; }
}

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: var(--nacht-text-2); padding: 4rem 0 3rem; font-size: var(--text-klein); }
.fuss :focus-visible { outline-color: var(--nacht-text); }
.fuss-innen {
  max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand);
  display: grid; gap: 1.75rem;
}
.fuss-marke { display: flex; gap: 1rem; align-items: flex-start; color: var(--nacht-text); }
.fuss-marke .marke-lot { margin-top: 0.3rem; }
.fuss-marke b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.fuss a { color: var(--nacht-text); }
.fuss-konzept, .fuss-credits { max-width: 46rem; }
.fuss-konzept { color: var(--nacht-text); border-top: 1px solid var(--nacht-linie); padding-top: 1.5rem; }
@media (min-width: 900px) {
  .fuss-innen { grid-template-columns: 1fr auto; align-items: start; }
  .fuss-cta { justify-self: end; }
  .fuss-konzept, .fuss-credits { grid-column: 1 / -1; }
}

/* ---------- Dialog: Buchung ---------- */
.buchung {
  width: min(100% - 2rem, 46rem); max-height: min(100% - 2rem, 54rem);
  margin: auto; padding: 0; border: 0; border-radius: 8px;
  background: var(--kalk); color: var(--tinte);
  box-shadow: 0 30px 80px -30px rgb(8 28 30 / 0.6);
  overflow: hidden;
}
.buchung::backdrop { background: rgb(10 32 35 / 0.55); }
.buchung[open] { display: flex; }
.buchung-rahmen { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.buchung-kopf {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem 0.75rem;
}
.buchung-kopf h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; }
.buchung-kopf h2:focus { outline: none; }
.buchung-demo { margin-top: 0.35rem; font-size: 1rem; color: var(--tinte-2); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.schliessen {
  flex: none; width: 48px; height: 48px; border-radius: 4px; border: 1.5px solid var(--linie); background: var(--papier);
  display: grid; place-items: center; transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.schliessen svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.schliessen:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .schliessen:hover { border-color: var(--tinte); } }

.fortschritt { padding: 0 1.5rem 1rem; }
.fortschritt-text { font-size: 1rem; color: var(--tinte-2); font-weight: 700; }
.fortschritt-band { margin-top: 0.5rem; height: 4px; border-radius: 0; background: var(--kalk-tief); overflow: hidden; }
.fortschritt-band span {
  display: block; height: 100%; width: 100%; background: var(--tinte); border-radius: 0;
  transform-origin: left; transform: scaleX(0.25);
  transition: transform 360ms var(--ease-in-out);
}

.buchung-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.schritt-panel {
  border: 0; margin: 0; padding: 0.5rem 1.5rem 1.5rem; min-width: 0;
  overflow-y: auto; overscroll-behavior: contain; flex: 1;
}
.schritt-panel[hidden] { display: none; }
.panel-titel { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; padding: 0; margin-bottom: 1rem; float: left; width: 100%; }
.panel-titel + * { clear: both; }

.wahl-liste { display: grid; gap: 0.6rem; }
.wahl { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.wahl-inhalt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; align-items: baseline;
  padding: 0.9rem 1.1rem 0.9rem 3.2rem; min-height: 64px;
  border: 1.5px solid var(--linie); border-radius: var(--radius-klein); background: var(--weiss);
  position: relative;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.wahl-inhalt::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.05rem; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--tinte-3); background: var(--weiss);
  transition: border-width 160ms var(--ease-out), border-color 160ms ease;
}
.wahl-inhalt b { font-weight: 700; }
.wahl-inhalt > span { grid-column: 1; color: var(--tinte-2); font-size: var(--text-klein); }
.wahl-inhalt .wahl-meta { grid-column: 2; grid-row: 1; font-size: var(--text-klein); color: var(--tinte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wahl:active .wahl-inhalt { transform: scale(0.99); }
.wahl input:checked + .wahl-inhalt { border-color: var(--tinte); background: var(--himmel); }
.wahl input:checked + .wahl-inhalt::before { border-width: 7px; border-color: var(--tinte); }
.wahl input:focus-visible + .wahl-inhalt { outline: 3px solid var(--tinte); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .wahl:hover .wahl-inhalt { border-color: var(--tinte-3); } }
@media (min-width: 560px) { .wahl-zwei { grid-template-columns: 1fr 1fr; } }

.rezept-ja { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.unterfrage { border: 0; margin: 0; padding: 0; }
.unterfrage legend { font-weight: 700; padding: 0; margin-bottom: 0.5rem; }
.segment { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.3rem; border-radius: 6px; background: var(--kalk-tief); }
.segment label { position: relative; cursor: pointer; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1.1rem; border-radius: 4px;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.segment input:checked + span { background: var(--weiss); font-weight: 700; box-shadow: 0 2px 6px -2px rgb(18 56 60 / 0.25); }
.segment input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; }

.feld { display: grid; gap: 0.35rem; }
.feld-label { font-weight: 700; }
.optional { font-weight: 400; color: var(--tinte-2); }
.feld input, .feld textarea {
  width: 100%; min-height: 52px; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--linie-stark); border-radius: var(--radius-klein); background: var(--weiss);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.feld textarea { resize: vertical; min-height: 6rem; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px var(--himmel); }
.feld input[aria-invalid="true"] { border-color: var(--fehler); }
.feld-hilfe { font-size: var(--text-klein); color: var(--tinte-2); }
.feld-hilfe.ist-warnung { color: var(--fehler); font-weight: 700; }
.feld-fehler { color: var(--fehler); font-size: var(--text-klein); font-weight: 700; }
.felder { display: grid; gap: 1.1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .felder { grid-template-columns: 1fr 1fr; } .feld-breit { grid-column: 1 / -1; } }
.haken { font-size: var(--text-klein); }
.hinweis-box { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius-klein); background: var(--papier); border: 1px solid var(--linie); }
.auswahl-zusammenfassung { margin-bottom: 1.25rem; padding: 0.8rem 1rem; border-radius: var(--radius-klein); background: var(--himmel); font-size: var(--text-klein); }

/* Woche */
.woche-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.woche-titel { font-weight: 700; text-align: center; }
.runder-knopf {
  flex: none; width: 48px; height: 48px; border-radius: 4px; border: 1.5px solid var(--tinte); background: var(--weiss);
  display: grid; place-items: center; transition: transform 160ms var(--ease-out), opacity 160ms ease;
}
.runder-knopf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.runder-knopf:active { transform: scale(0.94); }
.runder-knopf:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.woche-tage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
.tag-knopf {
  min-height: 60px; padding: 0.4rem 0.2rem; border-radius: var(--radius-klein);
  border: 1.5px solid var(--linie); background: var(--weiss); line-height: 1.2;
  display: grid; place-items: center; align-content: center; gap: 0.1rem;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.tag-knopf b { font-size: 1.0625rem; }
.tag-knopf span { font-size: 0.875rem; color: var(--tinte-2); }
.tag-knopf .tag-frei { font-size: 0.8125rem; color: var(--tinte-2); font-weight: 700; }
.tag-knopf[aria-pressed="true"] { border-color: var(--tinte); background: var(--himmel); }
.tag-knopf:disabled { opacity: 0.55; cursor: default; }
.tag-knopf:disabled .tag-frei { color: var(--tinte-2); }
.tag-knopf:active:not(:disabled) { transform: scale(0.97); }
.woche-spalten { margin-top: 0.75rem; }
.tag-spalte { display: none; }
.tag-spalte.ist-aktiv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.zeit-knopf {
  min-height: 52px; border-radius: var(--radius-klein); border: 1.5px solid var(--linie); background: var(--weiss);
  font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.0625rem;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.zeit-knopf:active { transform: scale(0.96); }
.zeit-knopf[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--kalk); }
@media (hover: hover) and (pointer: fine) {
  .zeit-knopf:hover:not([aria-pressed="true"]), .tag-knopf:hover:not(:disabled) { border-color: var(--tinte); }
}
.spalte-leer { grid-column: 1 / -1; color: var(--tinte-2); padding: 0.75rem 0; }
@media (min-width: 640px) {
  .woche-spalten { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
  .tag-spalte, .tag-spalte.ist-aktiv { display: grid; grid-template-columns: 1fr; gap: 0.4rem; align-content: start; }
  .woche-tage .tag-knopf { pointer-events: none; }
  .woche-tage .tag-knopf[aria-pressed="true"] { border-color: var(--linie); background: var(--weiss); }
  .zeit-knopf { min-height: 46px; font-size: 1rem; }
  .spalte-leer { font-size: 0.875rem; text-align: center; }
}

/* Fuß des Dialogs */
.buchung-fuss {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--linie); background: var(--kalk);
}
.buchung-fuss [data-weiter] { margin-left: auto; min-width: 9rem; }
.buchung-fuss [hidden] { display: none; }

/* Ergebnis */
.ergebnis-kopf { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.ergebnis-haken { width: 48px; height: 48px; flex: none; }
.ergebnis-haken circle { fill: var(--band); }
.ergebnis-haken path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ergebnis.ist-abgesagt .ergebnis-haken circle { fill: var(--tinte-3); }
.ergebnis-kopf h3 { font-size: 1.6rem; }
.ergebnis-kopf h3:focus { outline: none; }
.ergebnis-kopf p { color: var(--tinte-2); margin-top: 0.25rem; }
.termin-karte {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 1.25rem;
  padding: 1.1rem 1.2rem; border-radius: var(--radius-klein); background: var(--weiss); border: 1px solid var(--linie);
  font-size: var(--text-klein);
}
.termin-karte dt { color: var(--tinte-2); }
.termin-karte dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.ergebnis.ist-abgesagt .termin-karte dd { text-decoration: line-through; text-decoration-color: var(--tinte-3); color: var(--tinte-2); }
.mail-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin: 1.5rem 0 0.75rem; padding: 0.3rem; background: var(--kalk-tief); border-radius: 6px; }
.mail-wahl button {
  min-height: 52px; border: 0; border-radius: 4px; background: transparent; font-weight: 700; line-height: 1.2; padding: 0.4rem 0.5rem;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.mail-wahl button span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--tinte-2); }
.mail-wahl button[aria-pressed="true"] { background: var(--weiss); box-shadow: 0 2px 6px -2px rgb(18 56 60 / 0.25); }
.mail-wahl[hidden] { display: none; }
.mail { border-radius: var(--radius-klein); background: var(--weiss); border: 1px solid var(--linie); overflow: hidden; }
.mail-kopf { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--linie); font-size: 0.9375rem; display: grid; gap: 0.15rem; background: var(--papier); }
.mail-kopf div { display: flex; gap: 0.5rem; min-width: 0; }
.mail-kopf dt { color: var(--tinte-2); min-width: 4.2rem; flex: none; }
.mail-kopf dd { overflow-wrap: anywhere; min-width: 0; }
.mail-betreff { font-weight: 700; }
.mail-text { padding: 1.1rem 1.1rem 1.25rem; font-size: var(--text-klein); display: grid; gap: 0.8rem; }
.mail-termin { padding: 0.8rem 0.95rem; border-left: 0; background: var(--himmel); border-radius: 8px; font-weight: 700; }
.mail-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mail-knoepfe .knopf { min-height: 44px; padding: 0.45rem 1rem; font-size: 1rem; }
.ergebnis-aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.ergebnis-aktionen[hidden], .absage-frage[hidden] { display: none; }
.absage-frage p { font-weight: 700; margin-bottom: 0.9rem; }

@media (max-width: 640px) {
  .buchung { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .buchung-kopf { padding: 1rem 1rem 0.5rem; }
  .fortschritt { padding: 0 1rem 0.75rem; }
  .schritt-panel { padding: 0.25rem 1rem 1.25rem; }
  .buchung-fuss { padding: 0.75rem 1rem calc(0.9rem + env(safe-area-inset-bottom)); }
  .wahl-inhalt { grid-template-columns: minmax(0, 1fr); }
  .wahl-inhalt .wahl-meta { grid-column: 1; grid-row: auto; }
}

/* ---------- Mobil: Kopf ---------- */
@media (max-width: 1080px) {
  .kopf-innen { flex-wrap: wrap; gap: 0.75rem; }
  .menue-knopf {
    display: inline-flex; align-items: center; gap: 0.55rem; order: 2;
    min-height: 44px; padding: 0.45rem 0.9rem; border-radius: 4px; border: 1.5px solid var(--linie-stark); background: transparent;
    font-weight: 700; font-size: 1rem;
  }
  .menue-striche { position: relative; width: 18px; height: 12px; }
  .menue-striche::before, .menue-striche::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform 200ms var(--ease-out);
  }
  .menue-striche::before { top: 1px; }
  .menue-striche::after { bottom: 1px; }
  .menue-knopf[aria-expanded="true"] .menue-striche::before { transform: translateY(4px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] .menue-striche::after { transform: translateY(-4px) rotate(-45deg); }
  .kopf .knopf-klein { order: 3; }
  .navigation {
    order: 4; flex-basis: 100%; display: none; flex-direction: column; gap: 0;
    padding: 0.25rem 0 0.5rem; border-top: 1px solid var(--linie);
  }
  .navigation.ist-offen { display: flex; }
  .navigation a { border-radius: 0; padding: 0.8rem 0.25rem; font-size: 1.1875rem; border-bottom: 1px solid var(--linie); min-height: 52px; }
}
@media (max-width: 420px) {
  .kopf-innen { gap: 0.5rem; }
  .marke-text span { display: none; }
  .menue-knopf { padding: 0.45rem 0.75rem; }
  .kopf .knopf-klein { padding: 0.5rem 0.85rem; }
}
@media (max-width: 350px) {
  .menue-knopf { font-size: 0; gap: 0; width: 44px; justify-content: center; padding: 0; }
}

/* ---------- Das Lot: Überschriften hängen an einer Linie ---------- */
.abschnitt-kopf, .buchen-text { position: relative; }
.lot {
  position: absolute; left: 0; top: calc(-1 * var(--abstand)); height: calc(var(--abstand) - 0.7rem); width: 14px;
  pointer-events: none; transform-origin: 7px 0;
}
.lot::before { content: ""; position: absolute; left: 6.25px; top: 0; bottom: 13px; width: 1.5px; background: var(--tinte); }
.lot::after { content: ""; position: absolute; left: 0; bottom: 0; width: 14px; height: 14px; background: var(--akzent-text); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.buchen .lot::before, .buchen .lot::after { background: var(--nacht-text); }
@keyframes pendeln {
  0% { transform: rotate(4deg); }
  30% { transform: rotate(-2.4deg); }
  55% { transform: rotate(1.2deg); }
  78% { transform: rotate(-0.45deg); }
  100% { transform: rotate(0deg); }
}
.js .lot.ist-sichtbar { animation: pendeln 1800ms ease-in-out both; }

/* ---------- Leitstil 16 Bauhaus (angepasst): Die Figur richtet sich einmal am Lot aus ---------- */
/* Ruhezustand = ausgerichtet. Nur der Startzustand liegt hinter .js und :not(.ist-ausgerichtet). */
.h-teil, .h-huefte { transform-box: view-box; transition: transform 1250ms cubic-bezier(0.3, 1.18, 0.4, 1); }
.h-rumpf { transform-origin: 200px 346px; transition-delay: 120ms; }
.h-kopf { transition-delay: 220ms; }
.h-bein { transform-origin: 200px 360px; }
.h-unterbein { transform-origin: 204px 474px; }
.h-lot { transform-box: view-box; transform-origin: 200px 0; }
.h-schilder { transition: opacity 500ms ease 900ms; }
.js .haltung:not(.ist-ausgerichtet) .h-kopf { transform: translate(28px, 14px); }
.js .haltung:not(.ist-ausgerichtet) .h-rumpf { transform: rotate(9deg); }
.js .haltung:not(.ist-ausgerichtet) .h-becken,
.js .haltung:not(.ist-ausgerichtet) .h-huefte { transform: translate(-9px, 7px); }
.js .haltung:not(.ist-ausgerichtet) .h-bein { transform: rotate(-8deg); }
.js .haltung:not(.ist-ausgerichtet) .h-unterbein { transform: rotate(9deg); }
.js .haltung:not(.ist-ausgerichtet) .h-schilder { opacity: 0; transition-delay: 0ms; transition-duration: 200ms; }
/* Zurück in die schiefe Haltung geht es schnell, das Ausrichten bekommt Zeit */
.js .haltung:not(.ist-ausgerichtet) .h-teil, .js .haltung:not(.ist-ausgerichtet) .h-huefte { transition-duration: 420ms; transition-timing-function: var(--ease-in-out); transition-delay: 0ms; }
.js .haltung.ist-ausgerichtet .h-lot { animation: pendeln 1800ms ease-in-out both; }
.kopf.ist-gescrollt { background: var(--kalk); }

/* ---------- Einmal beim Erscheinen (Endzustand im Grundstil) ---------- */
@keyframes zeigen-hoch { from { transform: translateY(14px); opacity: 0; } }
.js [data-zeigen] { opacity: 0; }
.js [data-zeigen].ist-sichtbar { opacity: 1; animation: zeigen-hoch 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Akzent 18 Blueprint: Grundriss zeichnet sich einmal ---------- */
@keyframes gr-zeichnen { from { stroke-dashoffset: 1; } }
@keyframes gr-einblenden { from { opacity: 0; } }
.grundriss .zeichnen path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .grundriss:not(.ist-sichtbar) .zeichnen path { stroke-dashoffset: 1; }
.js .grundriss:not(.ist-sichtbar) .gr-spaet, .js .grundriss:not(.ist-sichtbar) .gr-flur { opacity: 0; }
.js .grundriss.ist-sichtbar .zeichnen path { animation: gr-zeichnen 1100ms var(--ease-in-out) both; animation-delay: calc(var(--d, 0) * 140ms); }
.js .grundriss.ist-sichtbar .gr-spaet, .js .grundriss.ist-sichtbar .gr-flur { animation: gr-einblenden 500ms var(--ease-out) both; animation-delay: 900ms; }
.js .grundriss.ist-sichtbar .gr-nummern { animation-delay: 1150ms; }

/* ---------- Feinschliff (emil-design-eng) ---------- */
/* Dialog: ein schnell, aus schneller */
.buchung {
  opacity: 1; transform: none;
  transition: opacity 160ms ease, transform 160ms var(--ease-out), overlay 160ms allow-discrete, display 160ms allow-discrete;
}
.buchung[open] { transition-duration: 240ms; }
@starting-style { .buchung[open] { opacity: 0; transform: translateY(10px) scale(0.97); } }
.buchung:not([open]) { opacity: 0; transform: translateY(6px) scale(0.98); }
.buchung::backdrop { transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; opacity: 1; }
@starting-style { .buchung[open]::backdrop { opacity: 0; } }
@media (max-width: 640px) {
  @starting-style { .buchung[open] { opacity: 0; transform: translateY(24px); } }
  .buchung:not([open]) { transform: translateY(16px); }
  .buchung[open] { transition-timing-function: ease, var(--ease-drawer); transition-duration: 320ms; }
}

/* Schrittwechsel: Richtung zeigt vor oder zurück */
@keyframes schritt-vor { from { opacity: 0; transform: translateX(12px); } }
@keyframes schritt-zurueck { from { opacity: 0; transform: translateX(-12px); } }
.buchung-form[data-richtung="vor"] .schritt-panel:not([hidden]) { animation: schritt-vor 220ms var(--ease-out); }
.buchung-form[data-richtung="zurueck"] .schritt-panel:not([hidden]) { animation: schritt-zurueck 220ms var(--ease-out); }

/* Haken in der Bestätigung zeichnet sich einmal */
@keyframes haken-zeichnen { from { stroke-dashoffset: 1; } }
@keyframes kreis-ein { from { transform: scale(0.85); opacity: 0; } }
.ergebnis-haken path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ergebnis:not([hidden]) .ergebnis-haken circle { transform-origin: center; transform-box: fill-box; animation: kreis-ein 260ms var(--ease-out) both; }
.ergebnis:not([hidden]) .ergebnis-haken path { animation: haken-zeichnen 420ms var(--ease-out) 140ms both; }

/* Ladezustand beim Buchen */
@keyframes drehen { to { transform: rotate(360deg); } }
.knopf.ist-laedt { cursor: progress; }
.knopf.ist-laedt::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: drehen 700ms linear infinite;
}

/* Mobiles Menü */
@media (max-width: 1080px) {
  .navigation.ist-offen { transition: opacity 180ms ease, transform 180ms var(--ease-out); }
  @starting-style { .navigation.ist-offen { opacity: 0; transform: translateY(-6px); } }
}

/* ---------- Bewegung: zurückhaltend ---------- */
@media (prefers-reduced-motion: reduce) {
  .buchung-form[data-richtung] .schritt-panel:not([hidden]) { animation: none; }
  .buchung, .buchung:not([open]) { transform: none !important; }
  .js [data-zeigen] { opacity: 1; animation: none !important; }
  .js .lot.ist-sichtbar { animation: none; }
  .js .haltung .h-teil, .js .haltung .h-huefte { transform: none !important; }
  .js .haltung .h-schilder { opacity: 1 !important; }
  .js .haltung .h-lot { animation: none !important; }
  .js .grundriss:not(.ist-sichtbar) .zeichnen path { stroke-dashoffset: 0; }
  .js .grundriss:not(.ist-sichtbar) .gr-spaet, .js .grundriss:not(.ist-sichtbar) .gr-flur { opacity: 1; }
  .js .grundriss .zeichnen path, .js .grundriss .gr-spaet, .js .grundriss .gr-flur { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
