/* Bogenmass Physiotherapie (Konzept-Demo). Branchen-DNA: Goniometer-Bogen, Linie, Bewegung.
   Schriften: Instrument Serif (Display, kursiv fuer Bewegungswoerter) + Figtree (Text, ab 14 px gut lesbar) */
/* Fallback mit angepasster Groesse: Georgia laeuft 33 % breiter als Instrument Serif (gemessen 14.10.), ohne Anpassung
   springt die H1 beim Schriftwechsel um eine Zeile (CLS 0.17) */
@font-face { font-family: 'Serif Ersatz'; src: local('Georgia'); size-adjust: 75%; }
@font-face { font-family: 'Serif Ersatz'; font-style: italic; src: local('Georgia Italic'), local('Georgia'); size-adjust: 77%; }
:root {
  --papier: #fffbf7;
  --weiss: #ffffff;
  --tinte: #22163a;
  --tinte-2: #5a4f6c;
  --koralle: #ff5b3a;
  --koralle-tief: #b83516;
  --apricot: #ffe6d5;
  --apricot-hell: #fff2e9;
  --lavendel: #eeebff;
  --gruen: #1f8a4c;
  --rand: rgba(34, 22, 58, .12);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --serif: 'Instrument Serif', 'Serif Ersatz', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --breite: 1120px;
  --rand-x: max(40px, calc((100% - var(--breite)) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 em, h2 em { color: var(--koralle-tief); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--koralle-tief); outline-offset: 3px; border-radius: 6px; }

/* Knoepfe */
.knopf, .zweit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 14px; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.knopf { background: var(--koralle); color: var(--tinte); border: 0; }
.knopf:hover { background: #ff7559; }
.zweit { background: transparent; color: var(--tinte); border: 1.5px solid currentColor; }
.zweit:hover { background: rgba(34, 22, 58, .06); }
.knopf:active, .zweit:active { transform: scale(.97); }

/* Kopfleiste: bewusst NICHT sticky, damit sie in keinem Ausschnitt einer Aufnahme klebt */
.leiste { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--rand-x); }
.marke { display: inline-flex; align-items: baseline; gap: 8px; font: 400 28px/1 var(--serif); text-decoration: none; white-space: nowrap;
  padding: 10px 0; margin: -10px 0; } /* 44 px Trefferflaeche ohne Layoutverschiebung */
.marke svg { width: 30px; height: 19px; align-self: center; fill: none; stroke: var(--tinte); stroke-width: 2.4; stroke-linecap: round; }
.marke .marke-zeiger { stroke: var(--koralle); }
.marke span { font: 500 14px/1 var(--sans); color: var(--tinte-2); }
.links { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.links a:not(.knopf) { font-size: 15px; font-weight: 500; text-decoration: none; flex-shrink: 0; }
.links a:not(.knopf):hover { color: var(--koralle-tief); }
.links .knopf { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* Hero: Text links, Foto rechts mit grossem Bogen oben links, Goniometer ragt ueber die Bildkante */
.held { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; padding: 32px var(--rand-x) 48px; }
.kicker { font: 600 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--koralle-tief); margin-bottom: 16px; }
.held h1 { font-size: clamp(48px, 6.4vw, 84px); line-height: .98; letter-spacing: -.01em; }
.held h1 em { white-space: nowrap; }
.held .unter { margin-top: 24px; font-size: 19px; color: var(--tinte-2); max-width: 30em; }
.aktion { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fakten { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fakten li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--rand); border-radius: 10px; background: var(--weiss); font-size: 14px; font-weight: 500; }
.schild-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--tinte-2); flex: none; }
.schild[data-offen="true"] .schild-punkt { background: var(--gruen); box-shadow: 0 0 0 4px rgba(31, 138, 76, .16); }
.held-bild { position: relative; margin: 0; }
.held-bild img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 55% 40%; border-radius: 240px 28px 28px 28px; }
.gonio { position: absolute; left: -40px; bottom: -36px; width: 240px; padding: 16px 16px 12px; background: var(--weiss); border-radius: 20px; box-shadow: 0 12px 32px rgba(34, 22, 58, .12); }
.gonio svg { width: 100%; display: block; overflow: visible; }
.gonio-bahn { fill: none; stroke: var(--apricot); stroke-width: 16; }
.gonio-skala { fill: none; stroke: var(--tinte); stroke-width: 2; stroke-linecap: round; }
.gonio-zeiger { stroke: var(--koralle); stroke-width: 5; stroke-linecap: round; transform-origin: 150px 150px; transform: rotate(calc(var(--grad, 0) * 1deg)); transition: transform 1600ms cubic-bezier(.65, 0, .35, 1) 200ms; }
.gonio circle { fill: var(--tinte); }
.gonio p { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.gonio-zahl { font: 400 36px/1 var(--serif); font-variant-numeric: tabular-nums; }
.gonio small { font-size: 14px; color: var(--tinte-2); }

/* Abschnitte: Intro + Baustein (Kern max. 380 breit, damit er als 9:16-Ausschnitt funktioniert) */
.abschnitt { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: center; padding: 72px var(--rand-x); }
.abschnitt--gespiegelt { grid-template-columns: 380px minmax(0, 1fr); }
.abschnitt--gespiegelt .karte { order: -1; }
.abschnitt--lavendel { background: var(--lavendel); }
.abschnitt--apricot { background: var(--apricot); }
/* Intro fuellt die Spalte bis an die Karte (vorher 520 px Deckel: 220 px leerer Gang je Abschnitt), Fliesstext bleibt lesbar schmal */
.intro { position: relative; }
/* Skala eines Winkelmessers hinter der Ueberschrift: Striche per stroke-dasharray auf einem breiten Bogen */
.intro::before {
  content: ''; position: absolute; z-index: -1; left: -56px; top: -72px; width: 380px; height: 200px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 200'%3E%3Cpath d='M10 190a180 180 0 0 1 360 0' fill='none' stroke='%2322163a' stroke-opacity='.12' stroke-width='14' stroke-dasharray='1.5 7.9'/%3E%3Cpath d='M40 190a150 150 0 0 1 300 0' fill='none' stroke='%2322163a' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.abschnitt { isolation: isolate; }
.intro h2 { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.01em; }
.intro > p:not(.kicker) { margin-top: 20px; font-size: 18px; color: var(--tinte-2); max-width: 34em; }
.intro .randnotiz { font-size: 15px; padding-left: 16px; border-left: 3px solid var(--koralle); }
.intro-bild { margin-top: 32px; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 28px 28px 28px 160px; }
.abschnitt--gespiegelt .intro-bild { border-radius: 28px 160px 28px 28px; }
#rezept .intro-bild { object-position: 60% 55%; }
#ablauf .intro-bild { object-position: 55% 45%; }
#preise .intro-bild { object-position: 45% 50%; }

/* Behandlungs-Uebersicht neben der Koerperkarte: Kuerzel wie auf dem Rezept, Dauer rechts */
.uebersicht { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rand); }
.uebersicht li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rand); }
.uebersicht b { font: 700 14px/1 var(--sans); letter-spacing: .04em; color: var(--koralle-tief); }
.uebersicht span { font: 400 24px/1.15 var(--serif); }
.uebersicht i { font-style: normal; font-size: 15px; color: var(--tinte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Weg nach der Terminanfrage: drei Stationen an einer Linie */
.weg { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; counter-reset: weg; }
.weg li { position: relative; display: grid; gap: 2px; padding-left: 56px; counter-increment: weg; }
.weg li::before {
  content: counter(weg); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-content: center; background: var(--apricot); color: var(--tinte); font: 400 22px/1 var(--serif);
}
.weg li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 36px; bottom: -24px; width: 2px; background: var(--apricot); }
.weg b { font: 400 26px/1.15 var(--serif); }
.weg small { font-size: 16px; color: var(--tinte-2); }
.intro .weg-telefon { margin-top: 32px; font-size: 16px; }
.weg-telefon span { color: var(--tinte); font-weight: 600; white-space: nowrap; }

/* Dunkle Buehne (Uebung): weisse Karte auf Tinte, Akzent in heller Koralle */
.abschnitt--dunkel { background: var(--tinte); color: var(--papier); }
.abschnitt--dunkel .kicker { color: #ffb4a3; }
.abschnitt--dunkel h2 em { color: var(--koralle); }
.abschnitt--dunkel .intro > p:not(.kicker) { color: rgba(255, 251, 247, .78); }
.abschnitt--dunkel .intro::before { filter: invert(1); }
.regeln { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.regeln li { display: grid; gap: 2px; padding-left: 32px; position: relative; }
.regeln li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--koralle); }
.regeln b { font: 400 24px/1.15 var(--serif); }
.regeln small { font-size: 16px; color: rgba(255, 251, 247, .72); }
.abschnitt--dunkel .randnotiz { margin-top: 32px; color: rgba(255, 251, 247, .72); }

/* Team: Portraet im Bogen (Markenname), Winkelmesser-Skala um die Rundung, Fotos einheitlich getoent */
.team { padding: 72px var(--rand-x); }
.team-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.team-kopf h2 { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.01em; }
.team-kopf > p { font-size: 18px; color: var(--tinte-2); max-width: 30em; }
.team-liste { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.person-bild { position: relative; margin: 0 16px 24px; }
.person-foto { aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--apricot); }
.person-foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.06); mix-blend-mode: multiply; transition: filter 300ms ease; }
.person:hover .person-foto img { filter: grayscale(.2) contrast(1.02); }
.person-skala { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.person-skala path { fill: none; stroke: var(--tinte); stroke-opacity: .3; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.person { display: flex; flex-direction: column; }
/* Ohne Foto: weisse Karte, Monogramm im kleinen Bogen statt leerer Bildflaeche */
.person:has(.person-bild--zeichen) { padding: 28px 24px 24px; border-radius: 28px; background: var(--weiss); box-shadow: 0 1px 0 var(--rand), 0 20px 48px -24px rgba(34, 22, 58, .28); }
.person-bild--zeichen { width: 128px; margin: 8px 0 24px 8px; }
.person-bild--zeichen .person-foto { aspect-ratio: 1; display: grid; place-content: center; }
.person:nth-child(2) .person-bild--zeichen .person-foto { background: var(--lavendel); }
.person-initialen { padding-top: 16px; font: italic 400 52px/1 var(--serif); letter-spacing: .02em; }
.person h3 { font-size: 32px; line-height: 1.1; }
.person-seit { font-size: 14px; color: var(--tinte-2); }
.person-rolle { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--koralle-tief); }
.person-satz { margin-top: 12px; font: italic 400 21px/1.3 var(--serif); }
.person-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.person-tags li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--weiss); border: 1px solid var(--rand); font-size: 14px; }
.person-tags b { color: var(--koralle-tief); font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
/* Unten buendig, auch wenn Zitate verschieden lang sind */
.person-zonen { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--tinte-2); }

/* Praxis-Infos */
.praxis { padding: 72px var(--rand-x); }
.praxis-bild { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 55%; border-radius: 28px; }
.praxis-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
.praxis h3 { font-size: 30px; margin-bottom: 12px; }
.praxis p { color: var(--tinte-2); font-size: 16px; }
.praxis p + p { margin-top: 12px; }
.praxis .schild { display: inline-flex; align-items: center; gap: 8px; color: var(--tinte); font-weight: 600; margin-bottom: 12px; }
.zeiten { margin: 0; display: grid; gap: 4px; font-size: 16px; }
.zeiten div { display: flex; justify-content: space-between; max-width: 260px; padding: 4px 8px; border-radius: 8px; }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.zeiten .heute { background: var(--apricot-hell); }

/* Fuss */
.fuss { padding: 40px var(--rand-x) 96px; border-top: 1px solid var(--rand); font-size: 14px; color: var(--tinte-2); display: grid; gap: 8px; }
.fuss a { color: var(--tinte); }
.fuss .lizenz { font-size: 14px; }

/* Demo-Hinweis zur Branchenuebersicht (Pflicht bei allen Konzept-Demos) */
.demo-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(34, 22, 58, .94); color: var(--papier);
  font: 600 12px/1.3 var(--sans); text-decoration: none; box-shadow: 0 4px 16px rgba(34, 22, 58, .18);
  transition: transform 200ms var(--ease-out), opacity 200ms ease, visibility 0s linear 0s;
}
.demo-pill:hover { transform: translateY(-2px); }
.demo-pill:active { transform: scale(.97); }
.demo-pill-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--koralle); flex: none; }
.demo-pill.weg { opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; transition: transform 200ms var(--ease-out), opacity 200ms ease, visibility 0s linear 200ms; }
.pill-kurz { display: none; }
[data-aufnahme="1"] .demo-pill { display: none; }

/* Einblenden: nur Intro-Texte, die Bausteine stehen immer (Aufnahmen springen per Query direkt hin) */
@media (prefers-reduced-motion: no-preference) {
  .bereit .zeige:not(.da) { opacity: 0; transform: translateY(16px); }
  .zeige.da { animation: hoch 600ms var(--ease-out) both; }
  @keyframes hoch { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
[data-aufnahme="1"] .zeige { opacity: 1 !important; transform: none !important; animation: none !important; }

@media (max-width: 1080px) {
  .links a:not(.knopf) { display: none; }
}
@media (max-width: 899px) {
  :root { --rand-x: 16px; }
  body { font-size: 16px; }
  .leiste { padding-block: 14px; }
  .marke { font-size: 24px; }
  .marke span { display: none; }
  .held { grid-template-columns: 1fr; gap: 40px; padding-bottom: 72px; }
  .held .unter { font-size: 17px; }
  .held-bild img { aspect-ratio: 4 / 3; border-radius: 160px 24px 24px 24px; }
  .gonio { left: 12px; bottom: -32px; width: 180px; padding: 12px 12px 8px; }
  .gonio-zahl { font-size: 28px; }
  .abschnitt, .abschnitt--gespiegelt { grid-template-columns: 1fr; gap: 32px; padding-block: 64px; }
  .abschnitt--gespiegelt .karte { order: 0; }
  /* Mobil zaehlt die Karte, Begleitbilder fallen weg. Die Uebungsregeln bleiben (Sicherheitshinweise) */
  .intro-bild, .uebersicht { display: none; }
  .weg b { font-size: 22px; }
  .praxis { padding-block: 64px; }
  .team { padding-block: 64px; }
  .team-kopf { grid-template-columns: 1fr; gap: 16px; }
  .team-kopf > p { font-size: 17px; }
  /* Mobil: Foto klein links, Text rechts, damit drei Personen nicht drei Bildschirme fuellen */
  .team-liste { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .person { display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .person-zonen { margin-top: 0; }
  /* Kleines Foto: naeher ans Gesicht, sonst ist es nur 25 px gross */
  .person-foto img { transform: scale(1.35); transform-origin: 50% 18%; }
  .person-skala { display: none; }
  .person:has(.person-bild--zeichen) { grid-template-columns: 72px minmax(0, 1fr); padding: 20px 16px; }
  .person-bild--zeichen { width: 72px; margin: 4px 0 0; }
  .person-initialen { padding-top: 8px; font-size: 30px; }
  .person-bild { grid-row: span 6; margin: 8px 0 0; }
  .person h3 { font-size: 26px; }
  .person-satz { font-size: 18px; }
  .praxis-bild { aspect-ratio: 16 / 9; }
  .praxis-spalten { grid-template-columns: 1fr; gap: 32px; }
  .demo-pill { left: 12px; bottom: 12px; font-size: 11px; padding: 8px 12px; }
  .pill-lang { display: none; } .pill-kurz { display: inline; }
  /* Rechts statt links: links unten sitzt mobil die Goniometer-Karte des Hero */
  .demo-pill { left: auto; right: 12px; }
  .intro::before { left: -24px; top: -56px; width: 280px; height: 148px; }
}
.nowrap { white-space: nowrap; }
