/*
 * Muster: Physiotherapie-Praxis.
 *
 * Eigenes Stylesheet, bewusst ohne jede Verbindung zu assets/style.css.
 * Das Muster soll wie die Seite einer Praxis wirken, nicht wie die
 * Agenturseite: andere Schriften, andere Farben, anderes Raster.
 *
 * Farben: Moos als ruhiger dunkler Grund, Sand als Papier, Salbei als
 * Zwischenton, Bernstein als einziger Akzent. Kontraste geprueft:
 * Moos auf Sand 11,9 : 1, Mittelgruen auf Sand 6,5 : 1, Bernstein-dunkel
 * auf Sand 5,4 : 1, Weiss auf Bernstein-dunkel 6,1 : 1.
 */

@font-face { font-family: 'Outfit'; src: url('fonts/outfit.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --moos:      #14342c;
  --moos-hell: #1d493d;
  --sand:      #f4f0e7;
  --sand-hell: #fbf8f2;
  --salbei:    #cfd9cd;
  --text:      #16241f;
  --text-mit:  #3d5c4f;
  --bernstein: #c8802c;
  --bernstein-dk: #8f5410;
  --linie:     #ddd8ca;
  --serif:     'Newsreader', Georgia, serif;
  --sans:      'Outfit', system-ui, sans-serif;
  --ruhig:     cubic-bezier(.2, .8, .2, 1);
  --r:         14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand); color: var(--text);
  font-family: var(--sans); font-size: 17.5px; line-height: 1.62; font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--bernstein-dk); outline-offset: 3px; border-radius: 4px; }

.bahn { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.eng { max-width: 760px; }

/* Band, das den Entwurf kennzeichnet */
.entwurf {
  background: var(--moos); color: var(--sand); font-size: 14.5px;
  padding: 10px 0; position: relative; z-index: 20;
}
.entwurf .bahn { display: flex; gap: 8px 20px; align-items: baseline; flex-wrap: wrap; }
.entwurf b { font-family: var(--sans); font-weight: 600; }
.entwurf a { color: #f0c78a; text-underline-offset: 3px; }

/* Kopf der Praxisseite */
.kopf { background: var(--sand-hell); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 15; }
.kopf .bahn { display: flex; align-items: center; gap: 18px; min-height: 74px; flex-wrap: wrap; }
.marke { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-right: auto; display: flex; align-items: center; gap: 11px; }
.marke svg { width: 30px; height: 30px; flex: none; color: var(--moos); }
.kopf nav { display: flex; gap: 22px; font-size: 16px; }
.kopf nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.kopf nav a:hover { border-bottom-color: var(--bernstein); }
.knopf {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--bernstein-dk); color: #fff; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .3s var(--ruhig), background-color .3s var(--ruhig);
}
.knopf:hover { background: var(--moos); transform: translateY(-2px); }
.knopf-ruhig { background: transparent; color: var(--moos); border: 1.5px solid var(--moos); }
.knopf-ruhig:hover { background: var(--moos); color: var(--sand); }

/* Aufmacher */
.auf { padding: clamp(40px, 6vw, 82px) 0 clamp(30px, 4vw, 54px); }
.auf-raster { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.auf h1 { font-size: clamp(40px, 6.4vw, 74px); line-height: 1.02; }
.auf h1 em { font-style: italic; color: var(--bernstein-dk); }
.auf .fuehrung { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-mit); max-width: 46ch; margin-top: 22px; }
.auf-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Bogen als Bildersatz: Bewegung, gezeichnet statt fotografiert */
.bogen { grid-column: 1 / -1; margin-top: clamp(26px, 3.4vw, 44px); }
.bogen svg { width: 100%; height: auto; display: block; }
.bogen path { fill: none; stroke-linecap: round; }
.bogen .b1 { stroke: var(--moos); stroke-width: 2; }
.bogen .b2 { stroke: var(--bernstein); stroke-width: 6; }
.bogen .b3 { stroke: var(--salbei); stroke-width: 14; }
.bogen figcaption { font-size: 14.5px; color: var(--text-mit); margin-top: 10px; }

/* Terminkarte */
.termin {
  background: var(--moos); color: var(--sand); border-radius: var(--r);
  padding: clamp(22px, 2.4vw, 30px);
}
.termin h2 { font-size: 25px; color: var(--sand); }
.termin p { color: rgba(244, 240, 231, .82); font-size: 16px; }
.termin .zeiten { list-style: none; margin: 18px 0; padding: 0; font-size: 16px; }
.termin .zeiten li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(244, 240, 231, .16); }
.termin .zeiten li:last-child { border-bottom: 0; }
.termin .zeiten b { font-weight: 600; }
.termin .knopf { width: 100%; justify-content: center; background: var(--bernstein); color: #12261f; }
.termin .knopf:hover { background: var(--sand); color: var(--moos); }
.termin .ruf { display: block; margin-top: 14px; text-align: center; font-size: 20px; font-family: var(--serif); color: var(--sand); text-decoration: none; }
.termin .ruf:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Abschnitte */
section { padding: clamp(44px, 6vw, 88px) 0; }
section.hell { background: var(--sand-hell); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
section.dunkel { background: var(--moos); color: var(--sand); }
section.dunkel h2, section.dunkel h3 { color: var(--sand); }
section.dunkel p { color: rgba(244, 240, 231, .84); }
.kopfzeile { max-width: 62ch; margin-bottom: clamp(26px, 3vw, 44px); }
.kopfzeile h2 { font-size: clamp(30px, 3.6vw, 44px); }
.kopfzeile p { color: var(--text-mit); font-size: 18px; margin-top: 14px; }
section.dunkel .kopfzeile p { color: rgba(244, 240, 231, .8); }
.merker { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bernstein-dk); margin: 0 0 12px; }
section.dunkel .merker { color: var(--bernstein); }

/* Beschwerden: was der Patient eingibt, nicht wie es im Lehrbuch heisst */
.beschwerden { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 2px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.beschwerde { background: var(--sand-hell); padding: 22px 22px 26px; text-decoration: none; display: block; transition: background-color .3s var(--ruhig); }
.beschwerde:hover { background: var(--salbei); }
.beschwerde b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.beschwerde span { font-size: 15.5px; color: var(--text-mit); }

/* Behandlungen */
.behandlungen { display: grid; gap: 0; }
.behandlung { display: grid; grid-template-columns: minmax(0, 16em) minmax(0, 1fr) auto; gap: 6px 30px; padding: 22px 0; border-top: 1px solid var(--linie); align-items: baseline; }
.behandlung:last-child { border-bottom: 1px solid var(--linie); }
.behandlung h3 { font-size: 21px; }
.behandlung p { margin: 0; color: var(--text-mit); font-size: 16.5px; }
.behandlung .dauer { font-size: 14.5px; color: var(--bernstein-dk); font-weight: 600; white-space: nowrap; }

/* Zwei Spalten fuer Fragen und Wege */
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(24px, 3vw, 46px); }
.karte { background: var(--sand-hell); border: 1px solid var(--linie); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); }
section.dunkel .karte { background: var(--moos-hell); border-color: rgba(244, 240, 231, .14); }
.karte h3 { font-size: 21px; margin-bottom: 10px; }
.karte ul { margin: 0; padding-left: 1.1em; color: var(--text-mit); font-size: 16.5px; }
section.dunkel .karte ul { color: rgba(244, 240, 231, .84); }
.karte li { margin-bottom: 7px; }
.karte li::marker { color: var(--bernstein); }

/* Team: Platzhalter statt Stockfotos */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.person { text-align: left; }
.platz {
  aspect-ratio: 3 / 4; border-radius: var(--r); border: 1px dashed var(--linie);
  background:
    repeating-linear-gradient(135deg, rgba(207, 217, 205, .5) 0 12px, transparent 12px 24px),
    var(--sand-hell);
  display: flex; align-items: flex-end; padding: 14px; font-size: 13.5px; color: var(--text-mit);
}
.person b { display: block; font-family: var(--serif); font-size: 19px; margin-top: 12px; }
.person span { font-size: 15px; color: var(--text-mit); }

/* Formular */
.formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 22px; }
.feld { display: flex; flex-direction: column; gap: 7px; }
.feld.weit { grid-column: 1 / -1; }
.feld label { font-size: 15.5px; font-weight: 600; }
.feld .pflicht { color: var(--bernstein-dk); }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 16.5px; padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid var(--linie); background: var(--sand-hell); color: var(--text);
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--bernstein-dk); box-shadow: 0 0 0 3px rgba(200, 128, 44, .22); }
.feld textarea { min-height: 130px; resize: vertical; }
.hinweis { font-size: 14.5px; color: var(--text-mit); }
.wahlreihe { display: flex; gap: 10px; flex-wrap: wrap; }
.wahl { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wahl span {
  display: block; padding: 11px 18px; border: 1.5px solid var(--linie); border-radius: 999px;
  background: var(--sand-hell); font-size: 16px; cursor: pointer; transition: all .25s var(--ruhig);
}
.wahl input:checked + span { background: var(--moos); color: var(--sand); border-color: var(--moos); }
.wahl input:focus-visible + span { outline: 3px solid var(--bernstein-dk); outline-offset: 2px; }
.zustimmung { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; grid-column: 1 / -1; }
.zustimmung input { width: 24px; height: 24px; accent-color: var(--bernstein-dk); }
.zustimmung label { font-weight: 400; font-size: 15.5px; color: var(--text-mit); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fuss { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.meldung { grid-column: 1 / -1; background: var(--salbei); border-radius: 10px; padding: 16px 18px; font-size: 16px; }

/* Erklärkasten am Ende */
.warum { background: var(--moos); color: var(--sand); border-radius: var(--r); padding: clamp(26px, 3.4vw, 46px); }
.warum h2 { color: var(--sand); font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.warum > p { color: rgba(244, 240, 231, .82); max-width: 68ch; }
.warum-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 34px; margin-top: 28px; }
.warum-liste div { border-top: 2px solid var(--bernstein); padding-top: 12px; }
.warum-liste b { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 5px; }
.warum-liste p { font-size: 16px; color: rgba(244, 240, 231, .8); margin: 0; }

/* Fuß der Musterseite */
.fuss { background: var(--sand-hell); border-top: 1px solid var(--linie); padding: 40px 0 56px; font-size: 16px; color: var(--text-mit); }
.fuss .bahn { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.fuss b { color: var(--text); font-family: var(--serif); font-size: 18px; }
.fuss a { color: var(--bernstein-dk); }

@media (max-width: 900px) {
  .auf-raster { grid-template-columns: 1fr; }
  .behandlung { grid-template-columns: 1fr; }
  .behandlung .dauer { order: -1; }
  .kopf nav { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .bogen .zeichnen { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 2.6s var(--ruhig) .2s forwards; }
  @keyframes zeichnen { to { stroke-dashoffset: 0; } }
  .auf h1, .auf .fuehrung, .auf-knoepfe, .termin { animation: auf .8s var(--ruhig) both; }
  .auf .fuehrung { animation-delay: .1s; }
  .auf-knoepfe { animation-delay: .18s; }
  .termin { animation-delay: .26s; }
  @keyframes auf { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .beschwerde b { transition: transform .3s var(--ruhig); }
  .beschwerde:hover b { transform: translateX(5px); }
}
