/* ============================================================
   P-DTR Physiotherapie — Design System
   Konzept: klinisch-warm, ruhig, präzise. Kein Wellness-Eso,
   kein Hotelseminar. Filter: "Würde eine seriöse Uniklinik
   das so einsetzen?"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* --- Farbwelt --- */
  --ink:        #15302b;   /* tiefes Tannengrün — Basis, Text, Vertrauen */
  --ink-soft:   #2c4842;   /* abgesetzt */
  --pine:       #1d4d42;   /* mittleres Petrol */
  --sand:       #f4ede2;   /* warmes Sandbeige — Atmosphäre */
  --sand-deep:  #e8ddca;   /* abgesetztes Sand */
  --paper:      #fbf8f2;   /* heller Grund */
  --paper-pure: #ffffff;
  --signal:     #d8593f;   /* Korallrot — Nervensignal, sehr sparsam */
  --signal-dim: #c9806b;
  --mist:       #8a9d96;   /* gedämpftes Graugrün — Hilfslinien, Sekundärtext */
  --line:       #d8cdb9;   /* feine Trennlinien */

  /* --- Typografie --- */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Outfit', system-ui, sans-serif;

  /* --- Maße --- */
  --wrap: 1180px;
  --gut: clamp(1.2rem, 4vw, 4rem);
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Layout-Helfer ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gut); }

section { padding: clamp(4rem, 9vw, 8rem) 0; }

/* ---------- Typografie-Skala ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--signal-dim); }
.eyebrow.on-dark::before { background: var(--signal-dim); }

h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
}

p + p { margin-top: 1.1rem; }

em { font-style: italic; color: var(--pine); }
strong { font-weight: 500; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 1.05rem var(--gut);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.brand .brand-mark {
  width: 26px; height: 26px;
  display: block;
  flex: none;
}
.brand small {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--signal); }
.nav-links a.active { color: var(--ink); border-color: var(--ink); }
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.72rem 1.35rem;
  border: none;
  background: var(--signal);
  color: var(--paper);
  border-radius: var(--radius);
  transition: background .2s;
}
.nav-links a.nav-cta:hover { background: #bf4631; color: var(--paper); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.92rem; font-weight: 500;
  padding: 0.95rem 1.7rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform .15s, background .2s, color .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #c44a31; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(244,237,226,0.4); }
.btn-ghost.on-dark:hover { background: var(--paper); color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Foto-Platzhalter ----------
   Jeder Platzhalter trägt ein Briefing — was fotografiert
   werden muss, damit das Bild die Aussage TRÄGT statt schmückt. */
.photo {
  position: relative;
  background: var(--sand-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
}
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent, transparent 22px, rgba(21,48,43,0.04) 22px, rgba(21,48,43,0.04) 23px);
}
.photo-brief {
  position: relative;
  padding: 1.5rem;
  max-width: 80%;
  text-align: center;
}
.photo-brief .tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 0.6rem;
}
.photo-brief .desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.photo-brief .icon {
  width: 34px; height: 34px;
  margin: 0 auto 0.8rem;
  opacity: 0.45;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,237,226,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,237,226,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gut);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
}
.hero h1 { color: var(--paper); }
.hero h1 .accent { color: var(--signal-dim); font-style: italic; }
.hero .lead { color: #c9d4cf; margin-top: 1.6rem; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo { min-height: 460px; background: var(--pine); border-color: rgba(244,237,226,0.15); }
.hero-photo .photo-brief .desc { color: #c9d4cf; }
.hero-photo::before {
  background-image:
    repeating-linear-gradient(135deg, transparent, transparent 22px, rgba(244,237,226,0.05) 22px, rgba(244,237,226,0.05) 23px);
}
.hero-meta {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(244,237,226,0.13);
  display: flex; gap: 2.4rem; flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--mist);
}
.hero-meta b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--paper); font-weight: 500; }

/* ---------- "Kennen Sie das" — Szenen ---------- */
.scenes { background: var(--sand); }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.scene {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.scene .num {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--signal);
  border: 1px solid var(--signal);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}
.scene h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.scene p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Mechanismus / Fehlalarm ---------- */
.mechanism { background: var(--ink); color: var(--paper); }
.mechanism .eyebrow { color: var(--signal-dim); }
.mechanism .eyebrow::before { background: var(--signal-dim); }
.mech-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; margin-top: 2.5rem;
}
.mechanism h2 { color: var(--paper); }
.mechanism p { color: #c9d4cf; }
.mech-steps { margin-top: 2rem; }
.mech-step {
  display: flex; gap: 1.2rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(244,237,226,0.13);
}
.mech-step:last-child { border-bottom: 1px solid rgba(244,237,226,0.13); }
.mech-step .dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal); margin-top: 0.5rem;
}
.mech-step .dot.dim { background: var(--mist); }
.mech-step h4 { font-family: var(--display); font-weight: 500; font-size: 1.08rem; color: var(--paper); margin-bottom: 0.2rem; }
.mech-step p { font-size: 0.9rem; }

/* ---------- Ablauf-Schritte ---------- */
.steps { background: var(--paper); }
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-row .step-num {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--line);
  line-height: 1;
}
.step-row.active .step-num { color: var(--signal); }
.step-text h3 { margin-bottom: 0.5rem; }
.step-text p { font-size: 0.95rem; color: var(--ink-soft); }
.step-photo { min-height: 220px; }

/* ---------- Beweis-Sektion ---------- */
.proof { background: var(--sand); }
.proof-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.proof-photo { min-height: 420px; }
.proof-points { margin-top: 1.8rem; }
.proof-point {
  display: flex; gap: 0.9rem; padding: 0.85rem 0;
  font-size: 0.96rem; color: var(--ink-soft);
}
.proof-point .check {
  flex: none; color: var(--signal); font-weight: 600;
}

/* ---------- Karten / Behandlungen ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.card {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(21,48,43,0.35); }
.card .photo { min-height: 190px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.card-body { padding: 1.7rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-body .kicker {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mist); margin-bottom: 0.7rem;
}
.card-body p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.card-body .more {
  margin-top: 1.2rem; font-size: 0.85rem; font-weight: 500;
  color: var(--signal); text-decoration: none;
  display: inline-flex; gap: 0.4rem;
}
.card-body .more:hover { gap: 0.7rem; }

/* ---------- "Für wen" ---------- */
.audience { background: var(--ink); color: var(--paper); }
.audience h2 { color: var(--paper); }
.aud-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem; margin-top: 2.6rem;
}
.aud-item {
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(244,237,226,0.16);
  border-radius: var(--radius);
}
.aud-item h4 { font-family: var(--display); font-weight: 500; font-size: 1.12rem; color: var(--paper); margin-bottom: 0.35rem; }
.aud-item p { font-size: 0.88rem; color: #b3c2bc; }

/* ---------- Therapeut / Bio ---------- */
.bio-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.bio-photo { min-height: 480px; }
.bio-quote {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--pine);
  margin: 1.5rem 0;
}
.cred-list { margin-top: 1.8rem; }
.cred {
  display: flex; gap: 1rem; padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}
.cred:last-child { border-bottom: 1px solid var(--line); }
.cred .yr { font-family: var(--display); color: var(--mist); flex: none; width: 100px; }
.cred .what { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.5rem 0; cursor: pointer;
  font-family: var(--display); font-size: 1.15rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq-q .sign { color: var(--signal); font-family: var(--body); font-size: 1.5rem; font-weight: 300; flex: none; transition: transform .2s; }
.faq-q[aria-expanded="true"] .sign { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a p { padding-bottom: 1.5rem; font-size: 0.96rem; color: var(--ink-soft); }
.faq-q[aria-expanded="true"] + .faq-a { max-height: 320px; }

/* ---------- Praktisches / Info-Boxen ---------- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem; margin-top: 2.6rem;
}
.info-box {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.info-box.signal-top { border-top-color: var(--signal); }
.info-box h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.info-box ul { list-style: none; }
.info-box li {
  font-size: 0.91rem; color: var(--ink-soft);
  padding: 0.45rem 0 0.45rem 1.3rem; position: relative;
}
.info-box li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 6px; height: 6px; background: var(--signal); border-radius: 50%;
}

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--signal);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 1rem auto 2rem; max-width: 540px; }
.cta-band .btn-ghost {
  color: #fff; border-color: rgba(255,255,255,0.6);
}
.cta-band .btn-ghost:hover { background: #fff; color: var(--signal); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #9fb1ab;
  padding: clamp(3rem,6vw,5rem) 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244,237,226,0.12);
}
.footer .brand { color: var(--paper); margin-bottom: 0.8rem; }
.footer h5 {
  font-family: var(--body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 1rem;
}
.footer a { color: #9fb1ab; text-decoration: none; display: block; padding: 0.25rem 0; }
.footer a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 1.8rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--mist);
}

/* ---------- Page-Header (Unterseiten) ---------- */
.page-head {
  background: var(--ink); color: var(--paper);
  padding: clamp(3.5rem,7vw,6rem) 0 clamp(3rem,6vw,5rem);
  position: relative; overflow: hidden;
}
.page-head .hero-grid { position: absolute; inset: 0; }
.page-head h1 { color: var(--paper); position: relative; max-width: 16ch; }
.page-head .lead { color: #c9d4cf; margin-top: 1.2rem; max-width: 52ch; position: relative; }
.crumb {
  position: relative;
  font-size: 0.78rem; color: var(--mist);
  margin-bottom: 1.4rem; letter-spacing: 0.04em;
}
.crumb a { color: var(--mist); text-decoration: none; }
.crumb a:hover { color: var(--paper); }

/* ---------- Prose (Textseiten) ---------- */
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.7rem; }
.prose p { color: var(--ink-soft); }
.prose .lead { margin-bottom: 1.5rem; }
.pull {
  border-left: 3px solid var(--signal);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 2rem 0;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--pine);
}

/* ---------- Reveal-Animation ----------
   Progressive Enhancement: Inhalt ist ohne JS sichtbar.
   .js-reveal wird per Script gesetzt, erst dann wird versteckt. */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner, .mech-grid, .proof-grid, .bio-grid { grid-template-columns: 1fr; }
  .hero-photo, .bio-photo, .proof-photo { min-height: 320px; order: -1; }
  .scene-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr; gap: 1rem; }
  .step-row .step-num { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem var(--gut); gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ---------- Mockup v4: zugeordnete Fotos ----------
   Gefüllte Platzhalter zeigen das echte Foto; das Briefing
   bleibt im HTML erhalten, wird aber ausgeblendet. */
.photo.filled { background-size: cover; background-position: center; }
.photo.filled::before { display: none; }
.photo.filled .photo-brief { display: none; }

/* Hero-Foto als <img> statt CSS-Background — vermeidet den 1px-Cover-Seam
   am abgerundeten unteren Rand. */
.photo > .photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; z-index: 0;
}
