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

:root {
  --grund: #EEF2EC; --flaeche: #FFFFFF; --text: #1F2A24; --leise: #4B574F;
  --salbei: #8FAE98; --salbei-hell: #DCE6DE; --tief: #3F6150; --hinweis: #E7D9A8;
  --akzent: var(--tief); --akzent-text: #FFFFFF; --linie: #C3D0C5; --fehler: #9B2C1F; --fokus: var(--tief);
  --feld: #FFFFFF;
  --schrift-titel: "Atkinson Hyperlegible Next", Verdana, Arial, sans-serif; --schrift-text: var(--schrift-titel);
  --titel-gewicht: 700; --rundung: 12px; --rundung-fenster: 12px; --groesse: 20px; --breite: 1120px;
}
body { line-height: 1.6; }

.logo-glied { fill: var(--salbei); }
.logo-linie { fill: none; stroke: var(--tief); stroke-width: 3; stroke-linecap: round; }
.logo-wort { fill: var(--text); font: 700 34px var(--schrift-titel); }
.knopf { min-height: 56px; padding: 14px 26px; font-weight: 700; font-size: 20px; }
.knopf.zweit { background: var(--flaeche); border: 2px solid var(--tief); color: var(--tief); }

/* Große Knopfleiste */
.ph-leiste { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.ph-logo { display: block; line-height: 0; }
.ph-logo svg { height: 64px; width: auto; overflow: visible; }
.ph-leiste-knoepfe { display: flex; gap: 14px; }

/* Schrittanzeige */
.ph-schritte { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 16px; padding-block: 8px 28px; }
.ph-schritte a { display: flex; align-items: center; gap: 14px; min-height: 56px; font-weight: 700; text-decoration: none; }
.ph-schritte a:hover span:last-child { text-decoration: underline; text-underline-offset: 6px; }
.ph-station { display: grid; place-items: center; width: 48px; height: 48px; border: 4px solid var(--salbei); border-radius: 50%; background: var(--flaeche); color: var(--tief); line-height: 1; }
.ph-schritte a[aria-current] .ph-station { border-color: var(--tief); background: var(--tief); color: #fff; }
.ph-verbindung { height: 8px; border-radius: 4px; background: var(--salbei); }

/* Kopf, geteilt und randabfallend */
.ph-kopf { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.ph-kopf-text {
  position: relative; display: grid; align-content: center; justify-items: start; gap: 28px;
  padding: 64px 56px 64px max(var(--rand), calc(100% - 560px)); background: var(--salbei-hell);
}
.ph-kopf h1 { font-size: clamp(48px, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.01em; }
.ph-satz { max-width: 24ch; font-size: 24px; }
.ph-kopf-bild { min-height: 100%; background: var(--salbei-hell); }
.ph-kopf-bild img { object-position: 38% 55%; }

/* Wirbelsäule von der Seite */
.ph-wirbel { overflow: visible; }
.ph-koerper, .ph-dorn { fill: #fff; stroke: var(--tief); stroke-width: 2.5; stroke-linejoin: round; }
.ph-scheibe { fill: var(--salbei); transition: fill .4s; }
.ph-kopfpunkt { fill: var(--tief); }
.ph-wirbel.aufrecht .ph-scheibe { fill: var(--tief); }
.ph-wirbel-kopf { position: absolute; z-index: 2; left: calc(50% + 24px); bottom: 32px; width: 168px; height: 360px; filter: drop-shadow(0 4px 10px #1F2A2440); }
.ph-wirbel-rand { display: none; }
@media (min-width: 1420px) {
  .ph-wirbel-rand {
    display: block; position: fixed; z-index: 5; top: calc(50% - 110px); left: calc((100% - 1120px) / 2 - 140px);
    width: 112px; height: 240px; transition: opacity .3s;
  }
  .ph-wirbel-rand.weg { opacity: 0; }
}

/* In drei Schritten */
.ph-weg { padding-block: 104px 88px; }
.ph-weg h2, .ph-termin h2, .ph-behandlungen h2, .ph-anfahrt h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.15; }
.ph-weg ol { list-style: none; margin: 40px 0 0; padding: 0; }
.ph-weg li { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 32px; padding-block: 28px; border-top: 3px solid var(--salbei-hell); }
.ph-ziffer { font-size: 104px; font-weight: 700; line-height: 1; color: #668A73; }
.ph-weg p { font-size: 26px; line-height: 1.45; max-width: 36ch; }
.ph-weg strong { display: block; color: var(--tief); }

/* Termin mit Rezept */
.ph-termin { padding-block: 88px; background: var(--flaeche); }
.ph-kennzeichnung { max-width: 780px; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--hinweis); font-size: 17px; line-height: 1.5; }
.ph-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 64px; margin-top: 40px; align-items: start; }
.ph-spalte { display: grid; gap: 40px; }
.ph-termin legend { font-size: 24px; }
.ph-wahl { display: grid; gap: 10px; }
.ph-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-wahl label { position: relative; display: block; cursor: pointer; }
.ph-wahl input { position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; margin: -13px 0 0; accent-color: var(--tief); }
.ph-wahl span { display: block; min-height: 60px; padding: 14px 18px 14px 60px; border: 2px solid var(--linie); border-radius: 12px; background: var(--grund); }
.ph-wahl input:checked + span { border-color: var(--tief); background: #E1EBE3; font-weight: 700; }
.ph-wahl input:focus-visible + span { outline: 3px solid var(--tief); outline-offset: 2px; }
.ph-wahl input[aria-invalid] + span { border-color: var(--fehler); }
.ph-frist { margin-top: 14px; padding: 16px 18px; border-left: 6px solid #B89B3E; border-radius: 8px; background: var(--hinweis); font-size: 19px; }

.ph-raster { display: grid; grid-template-rows: repeat(5, auto); grid-template-columns: auto repeat(5, minmax(48px, 1fr)); grid-auto-flow: column; gap: 8px; }
.ph-raster .spalte { text-align: center; font-weight: 700; }
.ph-raster .zeile { display: flex; align-items: center; padding-right: 8px; }
.kasten { position: relative; display: block; cursor: pointer; }
.kasten input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kasten > span { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px solid var(--linie); border-radius: 10px; background: var(--grund); }
.kasten > span::before { content: ""; width: 14px; height: 24px; border: solid transparent; border-width: 0 4px 4px 0; transform: rotate(45deg) translate(-2px, -3px); }
.kasten input:checked + span { border-color: var(--tief); background: var(--tief); color: #fff; }
.kasten input:checked + span::before { border-color: #fff; }
.kasten input:focus-visible + span { outline: 3px solid var(--tief); outline-offset: 2px; }
.kasten input[aria-invalid] + span { border-color: var(--fehler); }
.ph-spalte .knopf { justify-self: start; }
.ph-termin .eingabe { max-width: 100%; min-height: 60px; padding: 12px 18px; border: 2px solid var(--linie); border-radius: 12px; background: var(--grund); font-size: 22px; }
.ph-termin .eingabe:focus-visible { outline: 3px solid var(--tief); outline-offset: 2px; }

/* Behandlungen mit Passepartout */
.ph-behandlungen { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-block: 104px 88px; }
.ph-liste { list-style: none; margin: 32px 0 0; padding: 0; }
.ph-liste li { padding-block: 20px; border-top: 2px solid var(--salbei-hell); }
.ph-liste h3 { font-size: 24px; }
.ph-liste p { color: var(--leise); }
.ph-passepartout { aspect-ratio: 3 / 4; padding: 24px; background: var(--flaeche); outline: 1px solid var(--salbei); outline-offset: -1px; box-shadow: 0 18px 40px #3F615018; }
.ph-passepartout img { outline: 1px solid var(--salbei); }

/* Abschluss: Wo Sie uns finden, auf Salbei wie der Kopf, daneben die aufrechte Wirbelsäule */
.ph-anfahrt { margin-top: 24px; padding-block: 88px; background: var(--salbei-hell); }
.ph-anfahrt-innen { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: center; }
.ph-wirbel-ende { width: 200px; height: 428px; justify-self: center; }
.beispielangaben { margin-top: 12px; font-size: 16px; line-height: 1.5; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--leise); }
.ph-angaben { margin: 28px 0 36px; max-width: 760px; }
.ph-angaben div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px; padding-block: 20px; border-top: 3px solid #fff; }
.ph-angaben dt { font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--tief); }
.ph-angaben dd { margin: 0; font-size: 22px; }
.ph-ende { padding-block: 8px 0; color: var(--leise); }

.ph-knopfleiste { display: none; }
.fuss-zeile { font-size: 18px; }
.anfrage-text { font-size: 19px; }
.formhinweis, .feld-fehler { font-size: 1em; }

@media (max-width: 1099px) {
  .ph-leiste-knoepfe .knopf { min-height: 56px; padding: 12px 18px; font-size: 18px; }
  .ph-form { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .ph-kopf { grid-template-columns: 1.1fr .9fr; }
  .ph-anfahrt-innen { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; }
  .ph-wirbel-ende { width: 140px; height: 300px; }
  .ph-angaben div { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
  :root { --groesse: 19px; }
  .ph-leiste { padding-block: 14px 6px; }
  .ph-logo svg { height: 48px; }
  .ph-leiste-knoepfe, .ph-wirbel-rand { display: none; }
  .ph-schritte { grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto; gap: 6px; padding-block: 6px 18px; }
  .ph-schritte a { flex-direction: column; gap: 4px; min-height: 0; font-size: 16px; line-height: 1.5; }
  .ph-station { width: 40px; height: 40px; border-width: 3px; }
  .ph-verbindung { height: 6px; margin-bottom: 26px; }

  .ph-kopf { grid-template-columns: 1fr; min-height: 0; }
  .ph-kopf-text { padding: 32px 84px 36px var(--rand); gap: 22px; }
  .ph-kopf h1 { font-size: clamp(38px, 11vw, 48px); }
  .ph-satz { font-size: 21px; }
  .ph-kopf-text { padding-right: var(--rand); }
  .ph-wirbel-kopf { left: auto; right: 12px; bottom: 16px; width: 112px; height: 240px; }
  .ph-kopf-bild { aspect-ratio: 3 / 4; }

  .ph-weg { padding-block: 56px 40px; }
  .ph-weg li { grid-template-columns: 56px 1fr; gap: 16px; padding-block: 22px; }
  .ph-ziffer { font-size: 60px; }
  .ph-weg p { font-size: 21px; }
  .ph-termin { padding-block: 56px; }
  .ph-raster { grid-template-rows: none; grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .ph-raster .ecke, .ph-raster .zeile { display: none; }
  .ph-raster .spalte { grid-column: 1 / -1; margin-top: 10px; text-align: left; }
  .kasten > span { justify-content: flex-start; gap: 10px; padding: 8px 12px; }
  .kasten > span::before { flex: none; width: 10px; height: 18px; border-width: 0 3px 3px 0; border-color: #C3D0C5; margin: 0 4px 4px 4px; }
  .ph-behandlungen { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 40px; }
  .ph-liste h3 { font-size: 22px; }
  .ph-passepartout { aspect-ratio: 16 / 9; padding: 14px; }
  .ph-anfahrt { padding-block: 48px 40px; }
  .ph-anfahrt-innen { grid-template-columns: 1fr; gap: 8px; }
  .ph-wirbel-ende { grid-row: 2; justify-self: end; width: 84px; height: 180px; margin-top: -24px; }
  .ph-angaben { margin-bottom: 12px; }
  .ph-angaben dt { font-size: 22px; }
  .ph-angaben dd { font-size: 20px; }

  .ph-knopfleiste {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fffffff2; box-shadow: 0 -6px 20px #1F2A2418; transition: transform .25s, visibility .25s;
  }
  .ph-knopfleiste .knopf { min-height: 56px; padding: 8px; }
  .ph-knopfleiste.weg { transform: translateY(110%); visibility: hidden; }
}
