/* ==========================================================================
   Joanna Lizardo · Trageberatung & Physiotherapie, Stuttgart-Sillenbuch
   Design-System: Canva-Tokens (Purple / Weiß / Schwarz, flach, 8px-Raster)
   Selbst gehostete Schrift, keine externen Requests.
   1 Font · 2 Tokens · 3 Reset · 4 Basis · 5 Layout · 6 Komponenten
   7 Sektionen · 8 Utilities · 9 Diagramme · 10 Motion · 11 Print
   ========================================================================== */

/* 1 · Schrift — eine Familie, Hierarchie allein über das Schriftgewicht ---- */
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 · Tokens -------------------------------------------------------------- */
:root {
  /* Farben – exakt nach Design-System */
  --primary:      #a370fc;
  --on-primary:   #ffffff;
  --background:   #ffffff;
  --text:         #000000;
  --text-muted:   #1a1a1a;

  /* abgeleitete Neutralwerte (im System ausdrücklich vorgesehen) */
  --surface:      #f5f2fb;
  --surface-2:    #faf8ff;
  --line:         rgba(0, 0, 0, .14);
  --line-strong:  rgba(0, 0, 0, .34);
  --primary-soft: #ede2ff;
  --primary-deep: #7b45e0;

  /* Rückwärtskompatible Aliase, damit Diagramme und Inline-SVG mitziehen */
  --paper: var(--background);
  --paper-2: var(--surface);
  --paper-3: var(--primary-soft);
  --white: var(--background);
  --ink: var(--text);
  --ink-2: var(--text-muted);
  --ink-3: var(--text-muted);
  --clay: var(--primary);
  --clay-2: var(--primary);
  --clay-3: var(--on-primary);
  --clay-pale: var(--primary-soft);
  --moss: var(--primary);
  --moss-2: var(--primary);
  --moss-pale: var(--primary-soft);
  --forest: var(--primary);
  --forest-2: var(--primary-deep);
  --line-2: var(--line-strong);
  --line-dark: rgba(255, 255, 255, .38);

  /* Typografie – eine Familie, ein Grad, zwei Gewichte */
  --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          Roboto, Helvetica, Arial, sans-serif;
  --fs: 28px;      /* display, heading und body identisch */
  --lh: 1.3;
  --fw-regular: 400;
  --fw-bold: 600;
  --fs-ui: 16px;   /* abgeleitet: Navigation, Marken, Bildunterschriften */
  --fs-micro: 14px;

  /* Abstände – Basis 8, Skala 16 / 24 / 40 */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  --gutter: var(--s2);
  --wrap: 1240px;
  --wrap-narrow: 800px;

  --ease: ease;
  --dur: 180ms;
  --dur-l: 320ms;
}

@media (min-width: 640px) {
  :root { --gutter: var(--s4); }
}

/* 3 · Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Eigene display-Regeln dürfen das hidden-Attribut nicht aushebeln */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, li, h1, h2, h3, h4, td, th { overflow-wrap: break-word; }

/* 4 · Basis --------------------------------------------------------------- */
body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  /* Das System nennt 28px als Grundgrad und verlangt zugleich, dass Komponenten
     unterhalb von 640px kleiner werden. Deutsche Komposita brauchen diesen
     Übergang fließend: 18px auf dem Telefon, die vollen 28px ab 1200px. */
  font-size: clamp(18px, calc(18px + (100vw - 640px) * 0.01786), var(--fs));
  font-weight: var(--fw-regular);
  line-height: var(--lh);
  hyphens: auto;
  -webkit-hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-size: 1em;               /* flache Skala: Hierarchie über das Gewicht */
  font-weight: var(--fw-bold);
  line-height: var(--lh);
  color: var(--text);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { letter-spacing: -0.02em; }
h1, h2, h3, h4, .btn, .nav__link, .label, th { hyphens: manual; -webkit-hyphens: manual; }

p { text-wrap: pretty; }
strong, b { font-weight: var(--fw-bold); }

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
::selection { background: var(--primary-soft); color: var(--text); }

/* 5 · Layout -------------------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, var(--wrap-narrow)); }

.section { padding-block: var(--s5); }
@media (min-width: 640px) { .section { padding-block: var(--s6); } }
.section--tight { padding-block: var(--s4); }
.section--sand { background: var(--surface); }
.section--dark { background: var(--primary); color: var(--on-primary); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-primary); }
.section--dark a:not(.btn) { color: var(--on-primary); text-decoration-thickness: 2px; }
.section--dark a:not(.btn):hover { color: var(--text); }

.grid { display: grid; gap: var(--s3); }
.grid--2, .grid--3, .grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.grid > *, .split > *, .hero__grid > *, .booking > *, .steps > *, .facts > * { min-width: 0; }

.stack > * + * { margin-top: var(--s3); }

.split { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
  .split--wide-first { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .split--wide-last  { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .split--center { align-items: center; }
}

/* 6 · Komponenten --------------------------------------------------------- */

/* 6.1 Skip-Link */
.skip-link {
  position: absolute; left: var(--s2); top: 0;
  transform: translateY(-120%);
  z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: var(--s2) var(--s3);
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; color: var(--on-primary); }

/* 6.2 Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  text-decoration: none; color: var(--text);
  min-height: 44px;
}
.brand__mark { flex: none; width: 32px; height: 32px; color: var(--primary); }
.brand__name {
  font-size: var(--fs-ui); font-weight: var(--fw-bold); line-height: 1.2;
}
.brand__role {
  display: block; margin-top: 2px;
  font-size: var(--fs-micro); font-weight: var(--fw-regular);
  letter-spacing: .04em; color: var(--text-muted);
}

/* 6.3 Navigation */
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav__list { display: flex; align-items: center; gap: var(--s1); list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: var(--s1) var(--s2);
  font-size: var(--fs-ui); font-weight: var(--fw-regular);
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.nav__link[aria-current="page"] { font-weight: var(--fw-bold); border-bottom-color: var(--primary); }

.nav-toggle {
  display: none; align-items: center; gap: var(--s1);
  min-height: 44px; padding: var(--s1) var(--s2);
  background: var(--background); border: 2px solid var(--text);
  color: var(--text); font-size: var(--fs-ui); font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.nav-toggle__bars { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--background);
    border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--gutter) var(--s4);
    max-height: calc(100dvh - 72px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: var(--s2) 0; font-size: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link[aria-current="page"] { color: var(--primary); }
  .nav .btn { margin-top: var(--s3); justify-content: center; }
}

/* 6.4 Buttons — flach, kein Radius, 44px Mindesthöhe */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s1);
  min-height: 44px;
  padding: var(--s2) var(--s3);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--primary-deep); --btn-bd: var(--primary-deep); color: var(--btn-fg); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--text); }
.btn--ghost:hover { --btn-bg: var(--text); --btn-fg: var(--background); --btn-bd: var(--text); }
.btn--light { --btn-bg: var(--background); --btn-fg: var(--primary); --btn-bd: var(--background); }
.btn--light:hover { --btn-bg: var(--text); --btn-fg: var(--background); --btn-bd: var(--text); }
.btn--clay { --btn-bg: var(--primary); --btn-bd: var(--primary); }
.btn--sm { padding: var(--s1) var(--s2); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.btn-row--center { justify-content: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: var(--s1);
  min-height: 44px;
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  color: var(--primary); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.arrow-link:hover { color: var(--text); border-bottom-color: var(--text); }
.arrow-link svg { transition: transform var(--dur) var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.section--dark .arrow-link { color: var(--on-primary); }
.section--dark .arrow-link:hover { color: var(--text); border-bottom-color: var(--text); }

/* 6.5 Abschnittsmarken */
.label {
  display: flex; align-items: baseline; gap: var(--s2);
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: var(--s2); margin-bottom: var(--s3);
  border-bottom: 2px solid var(--primary);
}
.label__num { color: var(--primary); }
.section--dark .label { color: var(--on-primary); border-bottom-color: var(--on-primary); }
.section--dark .label__num { color: var(--on-primary); }

.section-head { max-width: 24ch; margin-bottom: var(--s4); }
.section-head p { max-width: 40ch; color: var(--text-muted); margin-top: var(--s3); }
.section--dark .section-head p { color: var(--on-primary); }

/* 6.6 Karten — flach, nur Kontur */
.card {
  background: var(--background);
  border: 2px solid var(--text);
  padding: var(--s3);
  height: 100%;
  display: flex; flex-direction: column;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
@media (min-width: 640px) { .card { padding: var(--s4); } }
.card:hover { border-color: var(--primary); }
.card__num {
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  color: var(--primary);
  padding-bottom: var(--s2); margin-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--text-muted); }
.card > .arrow-link { margin-top: auto; padding-top: var(--s3); }
.section--dark .card {
  background: var(--background); border-color: var(--background);
}
.section--dark .card:hover { border-color: var(--text); }
.section--dark .card h3, .section--dark .card p { color: var(--text); }

/* 6.7 Datenlisten */
.data { display: grid; border-top: 2px solid var(--text); }
.data > div {
  display: grid; gap: var(--s1);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .data > div { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: var(--s3); align-items: baseline; }
}
.data dt {
  /* Beschriftung im UI-Grad: bei 28px passen Wörter wie „Schwerpunkt“
     nicht in die schmale Spalte und würden hart umbrechen. */
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .04em; color: var(--primary);
  hyphens: auto; -webkit-hyphens: auto;
}
.data dd { margin: 0; color: var(--text); }
.data dd small { display: block; margin-top: var(--s1); font-size: var(--fs-ui); color: var(--text-muted); }
.section--dark .data { border-top-color: var(--on-primary); }
.section--dark .data > div { border-bottom-color: var(--line-dark); }
.section--dark .data dt, .section--dark .data dd,
.section--dark .data dd small { color: var(--on-primary); }

/* 6.8 Kennzahlen */
.facts { list-style: none; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); } }
.facts > li {
  padding: var(--s3);
  border-top: 2px solid var(--on-primary);
}
@media (min-width: 640px) {
  .facts > li { border-top: 2px solid var(--on-primary); border-right: 1px solid var(--line-dark); }
  .facts > li:last-child { border-right: 0; }
}
.facts__value { display: block; font-weight: var(--fw-bold); color: var(--on-primary); }
.facts__label { display: block; margin-top: var(--s2); font-size: var(--fs-ui); color: var(--on-primary); }

/* 6.9 Tabellen */
.table-scroll { overflow-x: auto; border: 2px solid var(--text); max-width: 100%; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 900px; }
table.matrix caption {
  text-align: left; padding: var(--s3);
  font-size: var(--fs-ui); color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
table.matrix th, table.matrix td {
  padding: var(--s3); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-ui);
}
table.matrix thead th {
  font-weight: var(--fw-bold); color: var(--on-primary);
  background: var(--primary); white-space: nowrap;
}
table.matrix tbody th { font-weight: var(--fw-bold); color: var(--text); }
table.matrix tbody td { color: var(--text-muted); }
table.matrix tbody tr:last-child th, table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix tbody tr:hover { background: var(--surface-2); }

/* 6.10 Angebote */
.offer {
  display: grid; gap: var(--s3);
  padding-block: var(--s4);
  border-top: 2px solid var(--text);
}
@media (min-width: 900px) {
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: var(--s4); align-items: start; }
}
.offer:last-of-type { border-bottom: 2px solid var(--text); }
.offer__tag {
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
  margin-bottom: var(--s1);
}
.offer__body p { color: var(--text-muted); }
.offer__list { list-style: none; padding: 0; margin-top: var(--s3); display: grid; gap: var(--s2); }
.offer__list li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2);
  align-items: baseline; font-size: var(--fs-ui); color: var(--text-muted);
}
.offer__list li::before { content: ""; width: 16px; height: 4px; background: var(--primary); }
.offer__price { min-width: 0; }
@media (min-width: 900px) { .offer__price { text-align: right; min-width: 16ch; } }
.offer__amount { display: block; font-weight: var(--fw-bold); color: var(--text); }
.offer__unit { display: block; margin-top: var(--s1); font-size: var(--fs-ui); color: var(--text-muted); }
.offer__note { display: block; margin-top: var(--s1); font-size: var(--fs-ui); color: var(--text-muted); }
.offer__price .btn { margin-top: var(--s3); }

/* 6.11 Panels */
.panel { background: var(--surface); padding: var(--s3); }
@media (min-width: 640px) { .panel { padding: var(--s4); } }
.panel--sand { background: var(--surface); }
.panel--clay { background: var(--primary-soft); }
.panel--moss { background: var(--surface-2); border-left: 8px solid var(--primary); }
.panel > h3 { margin-bottom: var(--s3); }
.section--dark .panel { background: var(--background); color: var(--text); }
.section--dark .panel h3 { color: var(--text); }

.check-list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.check-list li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s2);
  align-items: start; color: var(--text-muted); font-size: var(--fs-ui);
}
.check-list li svg { margin-top: 2px; color: var(--primary); flex: none; }
.section--dark .check-list li { color: var(--text); }

/* 6.12 Schritte */
.steps { list-style: none; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); } }
.steps > li { padding: var(--s3) 0; border-top: 2px solid var(--text); }
@media (min-width: 900px) {
  .steps > li { padding: var(--s3) var(--s3) var(--s4) 0; }
  .steps > li + li { padding-left: var(--s3); border-left: 1px solid var(--line); }
}
.step__num {
  display: block; margin-bottom: var(--s2);
  font-size: var(--fs-ui); font-weight: var(--fw-bold); color: var(--primary);
}
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--text-muted); font-size: var(--fs-ui); }
.section--dark .steps > li { border-top-color: var(--on-primary); border-left-color: var(--line-dark); }
.section--dark .step__num, .section--dark .step p { color: var(--on-primary); }

/* 6.13 Zeitstrahl */
.timeline { list-style: none; padding: 0; }
.timeline > li { padding-block: var(--s3); border-top: 1px solid var(--line); }
.timeline > li:first-child { border-top: 2px solid var(--text); }
.timeline__date {
  display: block; overflow-wrap: anywhere; margin-bottom: var(--s1);
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}
.timeline h3 { margin-bottom: var(--s1); }
.timeline__place { font-size: var(--fs-ui); color: var(--text-muted); margin-bottom: var(--s2); }
.timeline ul { padding-left: var(--s3); display: grid; gap: var(--s1); font-size: var(--fs-ui); color: var(--text-muted); }
.timeline ul li::marker { color: var(--primary); }
.section--dark .timeline > li { border-top-color: var(--line-dark); }
.section--dark .timeline > li:first-child { border-top-color: var(--on-primary); }
.section--dark .timeline__date, .section--dark .timeline__place,
.section--dark .timeline ul { color: var(--on-primary); }

/* 6.14 FAQ */
.faq { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3);
  min-height: 44px; padding-block: var(--s3);
  font-weight: var(--fw-bold); color: var(--text);
  cursor: pointer; list-style: none;
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a370fc' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-l) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary); }
.faq__body { padding-bottom: var(--s3); color: var(--text-muted); max-width: 60ch; }
.faq__body > * + * { margin-top: var(--s2); }

/* 6.15 Formulare */
.form { display: grid; gap: var(--s3); }
.form__row { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s1); }
.field > label { font-size: var(--fs-ui); font-weight: var(--fw-bold); color: var(--text); }
.field .hint { font-weight: var(--fw-regular); color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px;
  padding: var(--s2);
  font-size: var(--fs-ui);
  background: var(--background); color: var(--text);
  border: 2px solid var(--text);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .6; }
.checkbox {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s2);
  align-items: start; font-size: var(--fs-ui); color: var(--text-muted);
}
.checkbox input { width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }
.form__note { font-size: var(--fs-ui); color: var(--text-muted); }
.form__note[role="status"]:not([hidden]) {
  padding: var(--s2); border-left: 8px solid var(--primary);
  background: var(--primary-soft); color: var(--text);
}
.required { color: var(--primary); }

/* 6.16 Terminkalender */
.booking { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s5); align-items: start; } }

.cal { border: 2px solid var(--text); background: var(--background); }
.cal__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s2); border-bottom: 2px solid var(--text);
}
.cal__month { font-size: var(--fs-ui); font-weight: var(--fw-bold); }
.cal__nav {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--background); border: 2px solid var(--text); color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.cal__nav:hover:not([disabled]) { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cal__nav[disabled] { opacity: .3; cursor: not-allowed; }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__weekdays {
  padding: var(--s2) var(--s2) 0;
  font-size: var(--fs-micro); font-weight: var(--fw-bold);
  text-transform: uppercase; color: var(--text-muted); text-align: center;
}
.cal__grid { gap: 4px; padding: var(--s2); }
.cal__day {
  min-height: 44px; display: grid; place-items: center;
  background: var(--background); border: 2px solid transparent; color: var(--text);
  font-size: var(--fs-ui); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.cal__day:hover:not([disabled]) { background: var(--primary-soft); border-color: var(--primary); }
.cal__day[disabled] { color: var(--text-muted); opacity: .35; cursor: not-allowed; }
.cal__day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: var(--fw-bold); }
.cal__day--today { border-color: var(--text); font-weight: var(--fw-bold); }
.cal__legend { padding: 0 var(--s2) var(--s2); font-size: var(--fs-micro); color: var(--text-muted); }

.slots { list-style: none; padding: 0; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.slot {
  width: 100%; min-height: 44px; padding: var(--s1) var(--s2);
  background: var(--background); border: 2px solid var(--text); color: var(--text);
  font-size: var(--fs-ui); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.slot:hover { background: var(--primary-soft); border-color: var(--primary); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: var(--fw-bold); }
.booking__summary {
  padding: var(--s3); background: var(--surface);
  border-left: 8px solid var(--primary);
  font-size: var(--fs-ui);
}
.booking__step { margin-bottom: var(--s4); }
.booking__step > h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2);
  margin-bottom: var(--s3); padding-bottom: var(--s2);
  border-bottom: 2px solid var(--text);
}
.booking__step > h3 span {
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
}

/* 6.17 Kontaktliste */
.contact-list { list-style: none; padding: 0; display: grid; }
.contact-list li { padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 2px solid var(--text); }
.contact-list__label {
  display: block; overflow-wrap: anywhere; margin-bottom: var(--s1);
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}
.contact-list a { font-weight: var(--fw-bold); text-decoration: none; border-bottom: 2px solid var(--primary); }
.contact-list a:hover { border-bottom-color: var(--text); }
.contact-list__icon { display: none; }

/* 6.18 Zitat */
.quote {
  padding-left: var(--s3);
  border-left: 8px solid var(--primary);
  font-weight: var(--fw-bold); color: var(--text);
  text-wrap: balance;
}
.quote cite {
  display: block; margin-top: var(--s3);
  font-size: var(--fs-ui); font-style: normal; font-weight: var(--fw-regular);
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.section--dark .quote { border-left-color: var(--on-primary); color: var(--on-primary); }
.section--dark .quote cite { color: var(--on-primary); }

/* 6.19 Grafiken */
.figure { border: 2px solid var(--text); background: var(--background); max-width: 100%; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption {
  padding: var(--s3); border-top: 2px solid var(--text);
  font-size: var(--fs-ui); color: var(--text-muted);
}
.section--dark .figure { border-color: var(--on-primary); background: var(--background); }
.section--dark .figure figcaption { border-top-color: var(--text); color: var(--text-muted); }

/* 6.20 Marker für offene Angaben */
.todo {
  display: inline-block;
  padding: 0 var(--s1);
  background: #fff2a8; border: 2px dashed var(--text);
  font-size: .9em; color: var(--text);
}

/* 6.21 Brotkrumen */
.breadcrumb { margin-bottom: var(--s3); }
.breadcrumb ol {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1);
  font-size: var(--fs-ui); color: var(--text-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--s1); color: var(--primary); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { font-weight: var(--fw-bold); color: var(--text); }

/* 7 · Sektionen ----------------------------------------------------------- */

/* 7.1 Hero */
.hero { padding-block: var(--s5); border-bottom: 2px solid var(--text); }
@media (min-width: 640px) { .hero { padding-block: var(--s6); } }
.hero__grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s5); } }
.hero h1 { max-width: 18ch; }
.hero__lead { max-width: 42ch; color: var(--text-muted); margin-top: var(--s3); }
.hero .btn-row { margin-top: var(--s4); }
.hero__meta {
  list-style: none; padding: 0; margin-top: var(--s4);
  display: grid; gap: var(--s2);
  border-top: 2px solid var(--text);
}
@media (min-width: 900px) {
  .hero__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .hero__meta li:nth-child(n+2) { border-left: 1px solid var(--line); padding-left: var(--s3); }
}
.hero__meta li { padding-top: var(--s3); }
.hero__meta strong { display: block; font-weight: var(--fw-bold); }
.hero__meta span { display: block; margin-top: var(--s1); font-size: var(--fs-ui); color: var(--text-muted); }

/* 7.2 Seitenkopf */
.page-head {
  padding-block: var(--s4) var(--s4);
  background: var(--surface);
  border-bottom: 2px solid var(--text);
}
@media (min-width: 640px) { .page-head { padding-block: var(--s5); } }
.page-head__inner { max-width: 34ch; }
.page-head p { margin-top: var(--s3); max-width: 42ch; color: var(--text-muted); }

/* 7.3 CTA-Band */
.cta { background: var(--primary); color: var(--on-primary); }
.cta__inner { display: grid; gap: var(--s4); align-items: center; padding-block: var(--s5); }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
  .cta .btn-row { justify-content: flex-end; }
}
.cta h2 { color: var(--on-primary); max-width: 20ch; }
.cta p { margin-top: var(--s3); color: var(--on-primary); max-width: 40ch; }

/* 7.4 Fußzeile */
.site-footer {
  background: var(--background);
  border-top: 2px solid var(--text);
  padding-block: var(--s5) var(--s3);
  font-size: var(--fs-ui);
  color: var(--text-muted);
}
.site-footer__grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); } }
.site-footer .brand { color: var(--text); margin-bottom: var(--s2); }
.site-footer .brand__mark { color: var(--primary); }
.site-footer h2, .site-footer h3 {
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--s2);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer__bottom {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  justify-content: space-between;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); list-style: none; padding: 0; }

/* 7.5 Fehlerseite */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--s6); }
.error-page__code { font-weight: var(--fw-bold); color: var(--primary); }

/* 7.6 Rechtstexte */
.legal { max-width: 60ch; }
.legal h2 { margin-top: var(--s5); }
.legal h3 { margin-top: var(--s4); }
.legal p, .legal ul, .legal ol { margin-top: var(--s3); color: var(--text-muted); }
.legal ul, .legal ol { padding-left: var(--s3); display: grid; gap: var(--s1); }
.legal address { font-style: normal; margin-top: var(--s3); color: var(--text-muted); }

/* 8 · Utilities ----------------------------------------------------------- */
.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;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: var(--s2); }
.mt-l { margin-top: var(--s4); }
.mb-l { margin-bottom: var(--s4); }
.lead { color: var(--text-muted); }
.muted { color: var(--text-muted); }
.text-sm { font-size: var(--fs-ui); }
.rule { border: 0; border-top: 2px solid var(--text); margin-block: var(--s4); }

/* 9 · Diagramme ----------------------------------------------------------- */
.dia { font-family: var(--font); width: 100%; height: auto; }
.dia-grid line { stroke: var(--line); stroke-width: 1; }
.dia-grid .dia-grid-soft { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.dia-body { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; }
.dia-body--child { stroke-width: 2.5; stroke: var(--primary); }
.dia-fabric { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 2; }
.dia-fabric-soft { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.dia-dash { stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 6 4; fill: none; }
.dia-dash-soft { stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 6 4; }
.dia-mark { stroke: var(--text); stroke-width: 1.5; fill: none; }
.dia-mark .dia-tick { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.dia-mark rect { fill: none; }
.dia-callout line { stroke: var(--line-strong); stroke-width: 1; }
.dia-joint circle { fill: var(--primary); }
.dia-spine { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: square; }
.dia-strap { fill: none; stroke: var(--primary-soft); stroke-width: 17; stroke-linecap: butt; }
.dia-strap-line { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: butt; stroke-dasharray: 6 5; }
.dia-key { font-size: 15px; font-weight: 600; fill: var(--primary); }
.dia-txt { font-size: 16px; fill: var(--text); }
.section--dark .dia-body { stroke: var(--text); }
.section--dark .dia-txt { fill: var(--text); }

.sys-icon { width: 32px; height: 32px; color: var(--primary); margin-bottom: var(--s2); }
.sys-icon svg { width: 100%; height: 100%; }

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

/* 11 · Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .btn, .booking { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 12px; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* 12 · Foto ---------------------------------------------------------------- */
/* Das Bild wird geladen, sobald assets/img/joanna.jpg im Repository liegt.
   Bis dahin bleibt der Platzhalter sichtbar – siehe README, Abschnitt 5.3. */
.photo { position: relative; aspect-ratio: 4 / 5; }
.photo__img {
  display: none;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.photo.is-loaded .photo__img { display: block; }
.photo.is-loaded .photo-slot { display: none; }

.photo-slot {
  height: 100%;
  aspect-ratio: 4 / 5;
  display: grid; place-content: center; justify-items: center; gap: var(--s2);
  padding: var(--s4); text-align: center;
  background: var(--surface);
  border: 2px dashed var(--primary);
  color: var(--text-muted);
}
.photo .photo-slot { aspect-ratio: auto; }
.photo-slot svg { width: 56px; height: 56px; color: var(--primary); }
.photo-slot strong { display: block; font-size: var(--fs-ui); font-weight: var(--fw-bold); color: var(--text); }
.photo-slot span { display: block; font-size: var(--fs-micro); color: var(--text-muted); max-width: 30ch; }
.photo-slot code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; }

/* 13 · Preistafeln --------------------------------------------------------- */
.plans { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.plan {
  display: flex; flex-direction: column;
  padding: var(--s3);
  border: 2px solid var(--text);
  background: var(--background);
}
@media (min-width: 900px) {
  .plan { padding: var(--s4); border-right-width: 0; }
  .plan:last-child { border-right-width: 2px; }
}
.plan--featured { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.plan--featured h3, .plan--featured .plan__price { color: var(--on-primary); }
.plan--featured .plan__meta, .plan--featured .plan__list li { color: var(--on-primary); }
.plan--featured .plan__list li::before { background: var(--on-primary); }
@media (min-width: 900px) { .plan--featured { border-right-width: 2px; } }

.plan__flag {
  font-size: var(--fs-micro); font-weight: var(--fw-bold);
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  margin-bottom: var(--s2); min-height: 1.2em;
}
.plan h3 { margin-bottom: var(--s2); }
.plan__price {
  display: block; font-weight: var(--fw-bold); line-height: 1;
  margin-bottom: var(--s1);
}
.plan--featured .plan__flag { color: var(--on-primary); }
.plan__meta { font-size: var(--fs-ui); color: var(--text-muted); margin-bottom: var(--s3); }
.plan__list {
  list-style: none; padding: 0; margin: 0 0 var(--s3);
  display: grid; gap: var(--s2); font-size: var(--fs-ui); color: var(--text-muted);
}
.plan__list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2); align-items: baseline; }
.plan__list li::before { content: ""; width: 16px; height: 4px; background: var(--primary); }
.plan .btn { margin-top: auto; }
.plan--featured .btn { --btn-bg: var(--background); --btn-fg: var(--primary); --btn-bd: var(--background); }
.plan--featured .btn:hover { --btn-bg: var(--text); --btn-fg: var(--background); --btn-bd: var(--text); }

/* Anfahrt-Hinweis */
.travel {
  display: grid; gap: var(--s2); align-items: center;
  padding: var(--s3); margin-top: var(--s3);
  background: var(--primary-soft);
  border-left: 8px solid var(--primary);
}
@media (min-width: 900px) { .travel { grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); } }
.travel strong { font-weight: var(--fw-bold); white-space: nowrap; }
.travel span { font-size: var(--fs-ui); color: var(--text-muted); }

/* 14 · Schrittformular ----------------------------------------------------- */
.wizard { max-width: 46rem; }
.wizard__bar {
  display: flex; gap: 4px; margin-bottom: var(--s3);
  list-style: none; padding: 0;
}
.wizard__bar li { flex: 1; height: 6px; background: var(--line); }
.wizard__bar li[data-done="true"] { background: var(--primary); }
.wizard__count {
  font-size: var(--fs-ui); font-weight: var(--fw-bold);
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
  margin-bottom: var(--s2);
}
.wizard__step { display: none; }
.wizard__step[data-active="true"] { display: block; }
.wizard__step h2 { margin-bottom: var(--s2); }
.wizard__hint { color: var(--text-muted); font-size: var(--fs-ui); margin-bottom: var(--s3); }
.wizard__nav {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 2px solid var(--text);
}
.wizard__nav .btn--ghost { margin-right: auto; }

.choices { display: grid; gap: var(--s2); margin-bottom: var(--s2); }
.choice {
  display: grid; gap: var(--s1); width: 100%;
  padding: var(--s3); text-align: left;
  background: var(--background); border: 2px solid var(--text); color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.choice:hover { border-color: var(--primary); background: var(--primary-soft); }
.choice[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.choice strong { font-weight: var(--fw-bold); }
.choice span { font-size: var(--fs-ui); color: var(--text-muted); }
.choice[aria-pressed="true"] span { color: var(--on-primary); }
.choice__key {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border: 2px solid currentColor;
  font-size: var(--fs-micro); font-weight: var(--fw-bold);
}
.choice__head { display: flex; align-items: center; gap: var(--s2); }

.summary { border-top: 2px solid var(--text); }
.summary > div {
  display: grid; gap: var(--s1); padding-block: var(--s2);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .summary > div { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: var(--s3); } }
.summary dt { font-size: var(--fs-ui); font-weight: var(--fw-bold); color: var(--primary); }
.summary dd { margin: 0; font-size: var(--fs-ui); }

/* 15 · Einwilligung vor externen Inhalten ---------------------------------- */
.consent {
  border: 2px solid var(--text);
  background: var(--surface);
  padding: var(--s4);
  display: grid; gap: var(--s3); justify-items: start;
}
.consent h2 { margin: 0; }
.consent p { color: var(--text-muted); max-width: 60ch; }
.consent__meta { font-size: var(--fs-ui); }
.cal-frame { min-height: 640px; }
.cal-frame:empty { display: none; }
