/* ==========================================================================
   MOVING BALANCE – Pferdeosteopathie
   Design-System / Stylesheet
   Farbwelt: Erde & Oliv
   Dunkelbraun (Anker) · Altgold (Akzent) · Sand · Creme
   ========================================================================== */

:root {
  /* Marke – Farbwelt "Erde & Oliv" (Stand 09.08.2026) */
  --accent:      #8B6520;  /* Altgold – Buttons, Eyebrows, Icons */
  --accent-dark: #6F5017;  /* Hover */
  --dark:        #402511;  /* Dunkelbraun – dunkle Sektionen, Footer, Ueberschriften-Akzent */
  --dark-soft:   #5E3A22;
  --rose:        #DCC08F;  /* Sand – Schrittnummern, warme Details */
  --moss:        #A88C63;  /* helles Braun – Deko */
  --moss-light:  #DCC08F;
  --accent-2:    #5E3A22;

  --surface-deep: #EBD5B4;
  --surface:      #F7E7CD; /* Sektions-Hintergrund */
  --muted:        #8A7154;

  /* Neutral */
  --ink:         #33210F;
  --ink-soft:    #6E5943;
  --cream:       #FCF7EE;
  --white:       #FFFFFF;
  --line:        rgba(64, 37, 17, 0.16);

  --shadow: 0 18px 50px -24px rgba(64, 37, 17, 0.30);

  /* Typografie – Schriften liegen lokal in assets/fonts/ (siehe @font-face oben) */
  --font-display: 'Marcellus', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Maße */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 2px;
}


/* --- Schriften (lokal eingebunden, kein Nachladen von Google) --------------
   Marcellus (Ueberschriften) und Lato (Fliesstext), beide SIL Open Font License.
   Dateien liegen in assets/fonts/ – beim Upload unbedingt mit hochladen.
   Marcellus hat NUR einen Schnitt (400, kein Fett, kein Kursiv). Deshalb steht
   unten .steps__num auf font-weight 400 und Kursives in Ueberschriften wird in
   Lato gesetzt (siehe h1 em / h2 em).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Marcellus';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/marcellus-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/lato-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic; font-weight: 700; font-display: swap;
  src: url('assets/fonts/lato-700-italic.woff2') format('woff2');
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
/* Marcellus hat keinen Kursivschnitt – kursive Woerter in Ueberschriften
   werden deshalb in Lato gesetzt. Faellt kaum auf, weil sie farbig abgesetzt sind. */
h1 em, h2 em, h3 em, .quote__text em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.86em;
}
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
section {
  padding: clamp(64px, 9vw, 118px) 0;
  scroll-margin-top: 80px; /* damit der Sticky-Header die Überschrift nicht verdeckt */
}
.section--tint  { background: var(--surface); }
.section--ink   { background: var(--dark); color: var(--surface); }
.section--ink h2 { color: var(--surface-deep); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 600;
}
.section--ink .eyebrow { color: var(--rose); }

.lead { font-size: 1.09rem; color: var(--ink-soft); max-width: 62ch; }
.section--ink .lead { color: var(--surface); opacity: 0.85; }

.section-head { max-width: 62ch; margin-bottom: 56px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--cream);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--cream); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 247, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 24px;
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav .btn { color: var(--cream); }
/* Der Knopf im Kopf ist zwar ein Link, darf aber die Hover-Farbe der
   Menüpunkte NICHT erben: Altgold auf dunklem Altgold ist unlesbar.
   Diese Regel ist spezifischer und gewinnt deshalb. */
.nav a.btn:hover { color: var(--cream); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
/* Beim geöffneten Menü zeigt der Knopf ein X statt der drei Striche.
   Gesteuert über aria-expanded, das die Navigation ohnehin schon setzt. */
.nav-toggle .nav-toggle__x { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__x { display: block; }

/* --- Hero: helle Variante (anamnese.html) --------------------------------- */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(160deg, var(--surface) 0%, var(--cream) 62%);
}

/* --- Hero (dunkel, angeschnittenes Bild) ---------------------------------- */
.hero--dark {
  position: relative;
  background: var(--dark);
  color: var(--surface);
  overflow: hidden;
  padding: 0;
}
.hero-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--accent);
  opacity: .30;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: 0;
  min-height: min(84vh, 780px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(64px, 8vw, 110px) clamp(32px, 5vw, 80px) clamp(64px, 8vw, 110px)
           max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
}
.hero--dark .eyebrow { color: var(--rose); }
.hero--dark h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  margin-bottom: 26px;
}
.hero--dark h1 em { font-style: italic; color: var(--rose); }
.hero--dark .lead {
  color: var(--surface);
  opacity: .84;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid rgba(220, 192, 143, .28);
  font-size: 0.82rem; color: var(--surface); opacity: .8;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 9px; }
/* Raute statt Punkt – einheitlich mit Anlässen, Ablauf und dem Faden am Rand */
.hero-badges span::before {
  content: ''; width: 7px; height: 7px; flex: none;
  border: 1.5px solid var(--rose); transform: rotate(45deg);
}
.hero-media { position: relative; }
.hero-media img, .hero-media .ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0; border-radius: 0;
}
/* Ausschnitt nach rechts verschieben: Ellies Zopf ganz zeigen,
   die leere Fläche links im Foto darf verschwinden (Wunsch Ellie, 14.08.) */
.hero-media img { object-position: 78% 50%; }

/* Helle Buttons auf dunklem Grund */
.btn--light {
  background: var(--cream); border-color: var(--cream); color: var(--dark);
}
.btn--light:hover { background: var(--rose); border-color: var(--rose); color: var(--dark); }
.btn--outline {
  background: transparent; color: var(--cream);
  border-color: rgba(252, 247, 238, .45);
}
.btn--outline:hover { background: rgba(252, 247, 238, .1); border-color: var(--cream); color: var(--cream); }

/* --- Reveal-Animation ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Aktiver Menüpunkt: kleine Gold-Raute unter dem Link (statt Unterstrich) */
.nav a { position: relative; }
.nav a.is-active { color: var(--accent); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: -8px;
  width: 5px; height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--accent);
}
.nav .btn.is-active::after { display: none; }
/* Und seine helle Schrift behält er auch dann, wenn der Kontakt-Abschnitt
   der aktive ist: Altgold auf Altgold wäre unlesbar (Wunsch Ellie, 17.08.). */
.nav a.btn.is-active { color: var(--cream); }
.nav.open a.is-active::after { display: none; }

/* --- Der Faden am linken Rand (Scroll-Fortschritt, nur breite Bildschirme) - */
.thread {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  height: min(52vh, 480px); width: 20px; z-index: 40;
}
.thread__track {
  position: absolute; left: 9px; top: 0; bottom: 0; width: 1px;
  background: var(--line);
}
.thread__fill {
  position: absolute; left: 9px; top: 0; width: 1px; height: 0;
  background: var(--accent);
}
.thread a {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px;
}
.thread a::before {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid var(--accent); background: var(--cream);
  transform: rotate(45deg);
  transition: background .2s ease, transform .2s ease;
}
.thread a:hover::before { transform: rotate(45deg) scale(1.3); }
/* Beim Erreichen einer Station blitzt die Raute kurz auf */
.thread a.is-active::before {
  background: var(--accent);
  animation: fadenPuls .55s ease-out;
}
@keyframes fadenPuls {
  0%   { box-shadow: 0 0 0 0 rgba(139, 101, 32, .40); }
  100% { box-shadow: 0 0 0 9px rgba(139, 101, 32, 0); }
}
/* Abschnittsname als kleines Schild beim Darüberfahren */
.thread a::after {
  content: attr(data-label);
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  background: var(--dark); color: var(--cream);
  font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 2px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.thread a:hover::after { opacity: 1; }
@media (max-width: 1240px) { .thread { display: none; } }

/* --- „Leichtigkeit" zeichnet sich: Schwung unter dem Wort ------------------ */
.swash-wort { position: relative; display: inline-block; }
.swash {
  position: absolute; left: -2%; bottom: -0.16em;
  width: 104%; height: .24em; overflow: visible;
}
.swash path {
  fill: none; stroke: var(--rose); stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: swashDraw .9s cubic-bezier(.4, 0, .2, 1) .8s forwards;
}
@keyframes swashDraw { to { stroke-dashoffset: 0; } }

/* (Signatur-Abschluss am 10.08. abends wieder entfernt, Lukas' Wunsch) */

/* --- Bild-Platzhalter ----------------------------------------------------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(64,37,17,.10) 0 12px, transparent 12px 24px),
    var(--surface-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.06em;
}
.ph::after {
  content: attr(data-label);
  max-width: 26ch; line-height: 1.5; opacity: .75;
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide     { aspect-ratio: 3 / 2; }

/* --- Echte Fotos (ersetzen nach und nach die Platzhalter) ------------------ */
.foto {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
}
.foto--portrait { aspect-ratio: 4 / 5; }
.ph--hero {
  background:
    repeating-linear-gradient(45deg, rgba(252,247,238,.05) 0 14px, transparent 14px 28px),
    var(--dark-soft);
  color: var(--surface);
  border: 0;
  border-left: 1px solid rgba(220,192,143,.22);
}
.ph--hero::after { opacity: .55; max-width: 24ch; }

/* --- Karten-Grids --------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  /* Diese Dauer gilt für den Rückweg – also wenn die Maus die Karte verlässt.
     Bewusst kürzer als der Hinweg, damit beim schnellen Wechseln nichts nachhängt. */
  transition: transform .14s ease-out,
              box-shadow .14s ease-out,
              border-color .14s ease-out;
}
.card h3 { margin-bottom: 10px; }
.card p  { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.card__icon {
  color: var(--accent); margin-bottom: 16px;
  transform-origin: left center;
  transition: transform .14s ease-out;
}
.card__icon svg { width: 26px; height: 26px; }

/* Karten treten beim Darüberfahren hervor.
   (hover: hover) = nur bei echter Maus, damit sie auf dem Handy
   nach einer Berührung nicht „hängen bleiben". */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -26px rgba(64, 37, 17, .42);
    border-color: rgba(139, 101, 32, .40);
    /* Hinweg: etwas ruhiger als der Rückweg, aber deutlich schneller als vorher */
    transition-duration: .2s;
  }
  .card:hover .card__icon { transform: scale(1.1); transition-duration: .2s; }
}

/* --- Symptom-Liste -------------------------------------------------------- */
.symptoms {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
}
.symptoms li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 18px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--line);
  font-size: 0.97rem;
  position: relative;
  /* Rückweg – gleiche Zeiten wie bei den Leistungs-Karten */
  transition: background .14s ease-out, border-color .14s ease-out,
              transform .14s ease-out, box-shadow .14s ease-out;
}
.symptoms li::before {
  content: ''; flex: none;
  width: 9px; height: 9px; margin-top: 9px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .14s ease-out, background-color .14s ease-out;
}

/* Anlässe treten beim Darüberfahren hervor – dezenter als die Karten,
   weil die Kacheln dicht nebeneinander liegen. */
@media (hover: hover) {
  .symptoms li:hover {
    background: var(--white);
    border-color: rgba(139, 101, 32, .40);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -18px rgba(64, 37, 17, .38);
    z-index: 1;
    transition-duration: .2s;
  }
  .symptoms li:hover::before {
    transform: rotate(45deg) scale(1.18);
    background-color: var(--accent);
    transition-duration: .2s;
  }
}

/* --- Ablauf (Steps) --------------------------------------------------------
   Seit 10.08.2026 im Stil von Entwurf C: sechs Schritte in drei Spalten an
   horizontalen Linien, jeweils mit einer Sand-Raute als Station. Die Nummern
   stehen als kleine Lato-Ziffern im <span> vor der Überschrift. */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 34px;
}
.steps li { position: relative; padding-top: 26px; }
.steps li::before {
  content: ''; position: absolute; top: 0; left: 0; right: -34px; height: 1px;
  background: rgba(220, 192, 143, .35);
}
.steps li:nth-child(3n)::before { right: 0; }
.steps li::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 9px; height: 9px; transform: translateY(-50%) rotate(45deg);
  background: var(--rose);
}
.steps h3 { color: var(--surface-deep); margin-bottom: 8px; font-size: 1.12rem; }
.steps h3 span {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; color: var(--rose); margin-right: 10px;
}
.steps p  { color: var(--surface); opacity: .82; font-size: 0.95rem; margin: 0; }

/* Folgebehandlung: aufklappbares Band über die volle Breite des Abschnitts */
.followup {
  margin-top: clamp(44px, 6vw, 64px);
  border-top: 1px solid rgba(220, 192, 143, .25);
  border-bottom: 1px solid rgba(220, 192, 143, .25);
  background: rgba(247, 231, 205, .05);
  transition: background .2s ease;
}
.followup[open], .followup:hover { background: rgba(247, 231, 205, .09); }
.followup summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 20px 24px;
}
.followup summary::-webkit-details-marker { display: none; }
.followup summary:focus-visible {
  outline: 2px solid var(--rose); outline-offset: -2px;
}
.followup__raute {
  width: 9px; height: 9px; flex: none;
  border: 1.5px solid var(--rose); transform: rotate(45deg);
  transition: background .2s ease;
}
.followup[open] .followup__raute { background: var(--rose); }
.followup__frage {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--surface-deep);
  letter-spacing: .01em;
}
.followup__zeichen { position: relative; width: 14px; height: 14px; margin-left: auto; flex: none; }
.followup__zeichen::before, .followup__zeichen::after {
  content: ''; position: absolute; background: var(--rose);
  transition: transform .25s ease;
}
.followup__zeichen::before { left: 0; right: 0; top: 6px; height: 1.5px; }
.followup__zeichen::after  { top: 0; bottom: 0; left: 6px; width: 1.5px; }
.followup[open] .followup__zeichen::before { transform: rotate(45deg); }
.followup[open] .followup__zeichen::after  { transform: rotate(45deg); }
.followup__text {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 24px 24px 73px;
  color: var(--surface); opacity: .85;
  font-size: .98rem; max-width: min(var(--wrap), 100%);
}
.followup[open] .followup__text { animation: followupAuf .3s ease; }
@keyframes followupAuf {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .followup summary { padding: 16px 18px; }
  .followup__text { padding: 0 18px 20px 43px; }
}
/* Auf breiten Bildschirmen läuft links der Faden – dort rückt das Band
   beidseitig ein, damit sich Linie und Rauten nicht überschneiden. */
@media (min-width: 1241px) {
  .followup { margin-left: 72px; margin-right: 72px; }
}

/* --- Preise --------------------------------------------------------------- */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.price {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 36px 32px;
}
.price__amount {
  font-family: var(--font-display);
  font-size: 3rem; line-height: 1; color: var(--accent);
  margin: 6px 0 10px;
}
.price__meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.price__name { font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }

.travel {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 32px;
}
.travel table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.travel th, .travel td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); }
.travel tr:last-child th, .travel tr:last-child td { border-bottom: 0; }
.travel td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.travel th { font-weight: 400; color: var(--ink-soft); }
.note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; }

/* --- Einzugsgebiet / Karte ------------------------------------------------ */
.area-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.map-frame {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}
.map-svg { width: 100%; height: auto; }
.map-legend { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* Auf dem Handy wird die Karte ausgeblendet.
   Sie schrumpft dort auf gut 330 px, die Ortsnamen landen bei rund 7 px
   und überlappen sich. Der Text daneben sagt dasselbe und ist lesbar.
   Ab 561 px liegt die Beschriftung wieder über 10 px, dort bleibt sie sichtbar. */
@media (max-width: 560px) {
  .map-frame { display: none; }
}

/* --- Formular ------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
label { font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
label .opt { font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; font-size: 0.97rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 101, 32, .16);
}
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; background: var(--white); }
legend { font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; padding: 0 8px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.radio-row label { font-weight: 400; font-size: 0.95rem; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); font-weight: 400; letter-spacing: 0; }
.consent input { margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 5vw, 64px); }
.contact-facts { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-facts li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.contact-facts strong { display: block; font-size: 0.72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--dark); color: var(--surface);
  padding: 60px 0 40px; font-size: 0.9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: var(--surface-deep); }
.site-footer img { height: 44px; width: auto; filter: invert(1) brightness(1.6); opacity: .9; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal { width: 100%; padding-top: 28px; margin-top: 12px; border-top: 1px solid rgba(247,231,205,.16); opacity: .6; font-size: 0.8rem; }

/* --- WhatsApp-Link im Kontaktbereich -------------------------------------- */
.contact-facts li > a { display: block; }
.contact-facts .wa-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 7px; font-size: 0.88rem; color: var(--accent);
}
.contact-facts .wa-link svg { width: 16px; height: 16px; flex: none; }

/* --- Fester Handy-Balken -------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  gap: 10px; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 231, 205, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(115%);
  transition: transform .25s ease-out;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta__main {
  flex: 1 1 auto; text-align: center;
  padding: 14px 18px;
  font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  background: var(--accent); color: var(--cream);
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.mobile-cta__main:hover { text-decoration: none; }
.mobile-cta__tel {
  flex: 0 0 auto; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--accent);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.mobile-cta__tel svg { width: 21px; height: 21px; }

/* --- Rechtstexte ---------------------------------------------------------- */
.legal { padding: 60px 0 90px; }
.legal h2 { margin-top: 48px; font-size: 1.6rem; }
.legal h1 { margin-bottom: 30px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.98rem; }
.legal .back { display: inline-block; margin-bottom: 40px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.callout {
  background: var(--surface);
  border-left: 3px solid var(--rose);
  padding: 20px 24px; margin: 30px 0;
  font-size: 0.92rem;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--2, .prices, .symptoms, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps li::before { right: 0; }

  /* Fester Balken nur auf dem Handy; der Footer bekommt Platz darunter */
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 104px; }

  /* Auf dem Handy zuerst die Aussage, dann das Bild.
     width:100% ist Pflicht: durch "margin: 0 auto" verliert das Element
     im Raster das automatische Dehnen und schrumpft sonst auf Inhaltsbreite.
     Da das Bild absolut positioniert ist, wäre das fast null. */
  .hero-media { order: 2; width: 100%; max-width: 460px; margin: 0 auto; }
  .hero { padding-top: 48px; }

  /* Bild-Reihenfolge in "Über mich": Text zuerst */
  #ueber-mich .area-grid > div:first-child { order: 2; max-width: 460px; margin: 0 auto; width: 100%; }

  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav.open .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }

  /* Rechtsseiten haben kein Burger-Menü -> Navigation dort sichtbar lassen */
  .nav--static { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .nav--static a { font-size: 0.7rem; }

  /* Kartenbeschriftung: sonst auf kleinen Displays unlesbar */
  .map-svg text { font-size: 4.6px; }
  .map-svg .map-city { font-size: 4.6px; }
  .map-svg .map-center { font-size: 6px; }
  .map-frame { padding: 10px; }

  .btn { display: block; text-align: center; }
  .hero-cta .btn { width: 100%; }

  /* Tippflächen: mit dem Daumen sicher zu treffen (Empfehlung 44 px).
     Die Schrift bleibt gleich groß, nur der antippbare Bereich wächst. */
  .nav-toggle { padding: 12px; margin-right: -12px; }
  .contact-facts li > a { min-height: 44px; display: flex; align-items: center; }
  .contact-facts .wa-link { min-height: 44px; }
  .site-footer a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .price { padding: 28px 22px; }
  .price__amount { font-size: 2.5rem; }
  .card { padding: 24px 22px; }
  .travel { padding: 24px 22px; }
  .travel table, .travel th, .travel td, .travel tbody, .travel tr { display: block; width: 100%; }
  .travel th { padding-bottom: 2px; border-bottom: 0; }
  .travel td { text-align: left; font-weight: 700; padding-top: 0; padding-bottom: 14px; }
  .steps { gap: 30px; }
  .steps li { padding-top: 22px; }
  .site-footer .wrap { flex-direction: column; gap: 26px; }
  .contact-facts li { padding: 12px 0; }
  /* iOS zoomt bei Eingabefeldern unter 16px automatisch hinein */
  input[type=text], input[type=email], input[type=tel], select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
  .card:hover .card__icon { transform: none; }
  .symptoms li:hover { transform: none; }
  .symptoms li:hover::before { transform: rotate(45deg); }
  .swash path { stroke-dashoffset: 0; }
}


/* --- Zitat / Statement ---------------------------------------------------- */
.quote {
  display: flex; align-items: center; gap: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 38px 44px;
  margin: 0;
}
.quote__avatar {
  flex: none;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(64,37,17,.08) 0 10px, transparent 10px 20px),
    var(--surface-deep);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: .62rem; line-height: 1.4; letter-spacing: .04em;
  color: var(--ink-soft);
  padding: 10px;
  overflow: hidden;
}
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--dark);
  margin: 0 0 22px;
}
.quote__cite {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-style: normal;
}
.quote__name { font-weight: 700; color: var(--accent); font-size: .98rem; }
.quote__role { display: block; color: var(--ink-soft); font-size: .88rem; }

@media (max-width: 700px) {
  .quote { flex-direction: column; text-align: center; gap: 22px; padding: 32px 24px; }
  .quote__cite { border-top: 1px solid var(--line); }
  .quote__avatar { width: 100px; height: 100px; }
}

/* ==========================================================================
   SELBSTAUSKUNFT & BEHANDLUNGSVEREINBARUNG (anamnese.html)
   ========================================================================== */

.block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px 34px;
  margin: 0 0 22px;
}
.block__legend {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 400; letter-spacing: .01em;
  color: var(--dark);
  padding: 0 10px 0 0;
  margin-left: -2px;
}
.block__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  background: var(--accent); color: var(--cream);
  border-radius: 50%;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
}
.block--contract { border-left: 4px solid var(--accent); }

/* Freiwilliges Zwischenspeichern im Browser (§ 25 TDDDG).
   Steht bewusst VOR dem ersten Block, damit die Entscheidung
   vor dem Ausfüllen fällt. */
.consent--save {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 22px;
  font-size: .88rem;
  cursor: pointer;
}
.consent--save input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.consent--save strong { color: var(--ink); }

.callout--contract {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  font-size: .95rem;
  margin-top: 34px;
}

/* Vertragsbedingungen */
.terms { list-style: none; padding: 0; margin: 0 0 30px; }
.terms li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.terms li:last-child { border-bottom: 0; }
.terms .consent { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); }
.terms .consent strong { color: var(--ink); }
.terms .consent input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Auswahl statt Häkchen (z. B. Versicherungsschutz) */
.consent--block { display: block; padding-left: 30px; }

/* Reiner Informationstext in der Klauselliste, ohne Ankreuzfeld.
   Sichtbar abgesetzt, damit niemand ein übersehenes Häkchen sucht. */
.consent--info {
  display: block; padding: 16px 20px;
  font-size: .92rem; line-height: 1.6; color: var(--ink-soft);
  margin-bottom: 22px;
  background: rgba(139, 101, 32, .05);
  border-left: 2px solid rgba(139, 101, 32, .35);
  border-radius: var(--radius);
}
.consent__label {
  display: block;
  margin: 0 0 6px; font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.radio-row--stacked { flex-direction: column; gap: 12px; }
.radio-row--stacked label { align-items: flex-start; line-height: 1.6; }
.radio-row--stacked input { margin-top: 3px; }

/* Textform-Bestätigung */
.signature {
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.signature__hint { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.signature input[readonly] { background: var(--surface-deep); color: var(--ink-soft); }

/* Datenschutz-Box */
.privacy-box {
  background: var(--dark);
  color: var(--surface);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin: 26px 0;
}
.privacy-box h3 { color: var(--rose); margin-bottom: 14px; }
.privacy-box p { font-size: .88rem; line-height: 1.8; opacity: .92; }
.privacy-box strong { color: var(--rose); font-weight: 700; }
.privacy-box a { color: var(--rose); text-decoration: underline; }

.form-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center;
  margin-top: 30px;
}
.form-actions .form-note { width: 100%; }

@media (max-width: 560px) {
  .block { padding: 24px 20px 26px; }
  .block__legend { font-size: 1.25rem; }
  .privacy-box { padding: 24px 22px; }
  .form-actions .btn { width: 100%; }
}

/* --- Druckansicht (Kunde druckt seine Vertragskopie) ---------------------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .site-header, .site-footer, .form-actions, .nav, .callout--contract { display: none !important; }
  .hero { background: #fff; padding: 0 0 12mm; }
  section { padding: 0 !important; }
  .wrap { max-width: 100%; padding: 0; }
  h1 { font-size: 20pt; }
  .lead { font-size: 10.5pt; }

  .block {
    border: 1px solid #999; box-shadow: none;
    padding: 6mm 7mm; margin-bottom: 5mm;
    break-inside: avoid; page-break-inside: avoid;
  }
  .block__legend { font-size: 13pt; }
  .block__num { background: #000; color: #fff; width: 22px; height: 22px; font-size: 8pt; }

  input, select, textarea {
    border: 0 !important; border-bottom: 1px solid #999 !important;
    background: transparent !important; padding: 2px 0 !important;
    font-size: 10.5pt !important; color: #000 !important;
  }
  textarea { min-height: auto !important; height: auto; border: 1px solid #ccc !important; padding: 3px !important; }
  input[type=checkbox], input[type=radio] { border: 1px solid #000 !important; }

  .terms li { padding: 5px 0; break-inside: avoid; }
  .terms .consent { color: #000; font-size: 9pt; }
  .signature { background: transparent; border: 1px solid #000; }
  .privacy-box { background: #fff; color: #000; border: 1px solid #999; break-inside: avoid; }
  .privacy-box h3, .privacy-box strong, .privacy-box a { color: #000; }
  .form-note, .opt { color: #444; }

  /* Fußzeile auf jeder Druckseite */
  .print-footer { display: block !important; }
}
.print-footer { display: none; }


/* --- Asymmetrie: Bild versetzt und überlappend ---------------------------- */
.area-grid--offset { align-items: center; }
@media (min-width: 901px) {
  .area-grid--offset > div:first-child { transform: translateY(-40px); }
  .area-grid--offset > div:first-child .ph,
  .area-grid--offset > div:first-child .foto {
    box-shadow: var(--shadow);
    outline: 1px solid var(--line);
    outline-offset: 14px;
  }
  /* Sektionsköpfe bekommen mehr Luft */
  .section-head { margin-bottom: 64px; }
  .section-head h2 { max-width: 18ch; }
}

/* --- Responsive Ergänzungen für den neuen Hero ---------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy {
    padding: 56px 24px 48px;
    order: 1;
  }
  /* Höherer Bildstreifen (Wunsch Ellie, 17.08.): 80vw statt 62vw.
     max-height 368px = 460px Kastenbreite / 1,25 – so behält der Kasten
     auf allen Handys und Tablets dasselbe Seitenverhältnis wie die
     eigens zugeschnittene Handy-Datei assets/hero-handy.jpg. */
  .hero-media { order: 2; height: 80vw; max-height: 368px; }
  /* Beim breiten Zuschnitt auf dem Handy die Gesichter zeigen, nicht die Mitte */
  .hero-media img { object-position: 50% 30%; }
  .hero-lines { opacity: .22; }
  .area-grid--offset > div:first-child { transform: none; }
}
@media (max-width: 560px) {
  .hero--dark h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hero-cta .btn { width: 100%; }
}
@media print {
  .hero-lines, .reveal { display: revert; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* --- Anamnese: Fortschritt, Bildband, kompakter Hero ---------------------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 100;
  background: rgba(64, 37, 17, .10);
}
.progress span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width .35s cubic-bezier(.22,.61,.36,1);
}

.hero--compact .hero-grid { min-height: min(56vh, 480px); }
.hero--compact h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero--compact .hero-badges { margin-top: 34px; }

.band { margin: 0 0 22px; }
.band figcaption {
  font-size: .82rem; color: var(--ink-soft);
  padding-top: 12px; text-align: center;
}
.ph--band {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
}
.band img { width: 100%; border-radius: var(--radius); }

/* Blöcke reagieren beim Ausfüllen */
.block { transition: border-color .25s ease, box-shadow .25s ease; }
.block:focus-within {
  border-color: var(--accent);
  box-shadow: 0 10px 34px -20px rgba(64, 37, 17, .45);
}
.block__legend { margin-bottom: 8px; }

@media print {
  .progress, .band { display: none !important; }
  .hero--dark { background: #fff !important; color: #000 !important; }
  .hero--dark h1, .hero--dark .lead, .hero--dark .eyebrow { color: #000 !important; opacity: 1; }
  .hero-lines, .hero-media, .hero-badges { display: none !important; }
  .hero-copy { padding: 0 !important; }
  .hero-grid { display: block !important; min-height: 0 !important; }
}


/* --- Anamnese: Validierung & Hilfselemente -------------------------------- */
.req { color: var(--accent); font-weight: 700; }

.form-error {
  background: #FBEAE3;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  color: #7A3B0C;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 26px 0 0;
  font-size: .95rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--accent);
  background: #FDF3ED;
}
.field.has-error label { color: var(--accent); }
fieldset.has-error { border-color: var(--accent); background: #FDF3ED; }
.terms li.has-error,
.consent.has-error { background: #FDF3ED; }
.terms .has-error { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.linkbtn {
  background: none; border: 0; padding: 0;
  color: var(--accent); font: inherit; font-size: .85rem;
  text-decoration: underline; cursor: pointer;
}
.linkbtn:hover { color: var(--accent-dark); }

/* --- Danke-Seite ---------------------------------------------------------- */
.thanks { text-align: center; max-width: 60ch; margin: 0 auto; }
.thanks__icon {
  width: 78px; height: 78px; margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.thanks__icon svg { width: 36px; height: 36px; color: var(--cream); }
.thanks .btn { margin-top: 12px; }
.next-steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  text-align: left;
}
.next-steps li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-soft);
}
.next-steps li:last-child { border-bottom: 0; }
.next-steps b { color: var(--ink); display: block; }
.next-steps .n {
  flex: none; width: 26px; height: 26px; margin-top: 2px;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 50%; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
