/* ============================================================
   FS – Funktionelle Sportphysiotherapie
   Dark & athletic design system
   ============================================================ */

/* ---------- Font (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #101013;
  --panel: #151518;
  --panel-2: #1b1b1f;
  --line: rgba(242, 239, 233, 0.1);
  --line-strong: rgba(242, 239, 233, 0.22);
  --text: #f2efe9;
  --muted: #a6a199;
  --accent: #e3c797;
  --accent-2: #cfae76;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1160px, 92%); margin-inline: auto; }

section { padding-block: clamp(4.5rem, 9vw, 8rem); }
section.tint { background: var(--bg-2); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.12; font-weight: 800; }

.display {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 800;
}

h1.display { font-size: clamp(2.5rem, 7vw, 4.8rem); }
h2.display { font-size: clamp(1.9rem, 4vw, 3rem); }

p { margin: 0 0 1.2rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.quote {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.centered { margin-inline: auto; text-align: center; }

/* Platzhalter-Markierung: vor Livegang ersetzen, Klasse entfernen */
.ph {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  cursor: help;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.85);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1240px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand img.mark { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text .top {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}
.brand-text .bottom {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.main-nav a.nav-link:hover { color: var(--text); }
.main-nav a.nav-link.active { color: var(--accent); }
.main-nav .btn { padding: 0.7rem 1.4rem; font-size: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 11, 0.96) 30%, rgba(10, 10, 11, 0.55) 70%, rgba(10, 10, 11, 0.35)),
    url("../images/behandlung-knie.jpg") right center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 46ch; color: #cfcac1; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stats .stat b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.hero-stats .stat span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Page-Hero (Unterseiten) ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(227, 199, 151, 0.07), transparent 60%),
    var(--bg);
}
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero .lead { max-width: 56ch; margin-bottom: 0; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.marquee-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Split-Layouts ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split.reverse .media { order: 2; }

.media { position: relative; }
.media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 1px solid rgba(227, 199, 151, 0.35);
  border-radius: var(--radius);
  z-index: -1;
}
.media .tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.45rem 0.95rem;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(227, 199, 151, 0.4); }
.card .num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---------- Checkliste ---------- */
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2rem;
  color: var(--muted);
}
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(227, 199, 151, 0.14)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e3c797" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>')
    center / 62% no-repeat;
}

.checklist a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(227, 199, 151, 0.45);
  text-underline-offset: 3px;
}
.checklist a:hover { text-decoration-color: var(--accent); }

/* ---------- Preis ---------- */
.price-card {
  background:
    radial-gradient(90% 140% at 10% 0%, rgba(227, 199, 151, 0.1), transparent 55%),
    var(--panel);
  border: 1px solid rgba(227, 199, 151, 0.45);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
}
.price-card .service {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-line { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin: 0.6rem 0 0.4rem; }
.price-line .amount { font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 800; color: var(--accent); line-height: 1; }
.price-line .per { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.price-note { font-size: 0.9rem; color: var(--muted); }

.price-mini {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid rgba(227, 199, 151, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(227, 199, 151, 0.06);
  margin-bottom: 1.6rem;
}
.price-mini b { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.price-mini span { font-size: 0.85rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}
.gallery a:hover img, .gallery img:hover { transform: scale(1.02); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 780px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.25rem; margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA-Banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background:
    linear-gradient(rgba(10, 10, 11, 0.82), rgba(10, 10, 11, 0.9)),
    url("../images/praxis-raum.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
}
.cta-banner h2 { max-width: 20ch; margin-inline: auto; }
.cta-banner p { max-width: 52ch; margin: 0 auto 2rem; color: var(--muted); }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Kontakt ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.contact-card:hover { transform: translateY(-5px); border-color: rgba(227, 199, 151, 0.4); }
.contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(227, 199, 151, 0.12);
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card b { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-card span { font-weight: 600; font-size: 1.02rem; }

/* ---------- Formular ---------- */
form.contact-form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227, 199, 151, 0.14);
}
.form-hint { font-size: 0.82rem; color: var(--muted); margin: 0; }
.form-hint a { color: var(--accent); }
.form-status { font-size: 0.95rem; font-weight: 600; margin: 0; }
.form-status.ok { color: #9fd6a2; }
.form-status.err { color: #e0a1a1; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.info-block { border-left: 2px solid var(--accent); padding-left: 1.3rem; margin-bottom: 2rem; }
.info-block h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.info-block p { margin: 0; color: var(--muted); }
.info-block p strong { color: var(--text); }
.info-block a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(227, 199, 151, 0.45);
  text-underline-offset: 3px;
}
.info-block a:hover { text-decoration-color: var(--accent); }

.map-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 300px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--muted);
  padding: 2rem;
}
.map-placeholder .btn { margin-top: 1rem; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.25rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.02rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; }
.legal strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img.mark { width: 54px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; color: var(--muted); max-width: 34ch; }
.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer ul li { color: var(--muted); font-size: 0.92rem; }
.site-footer ul a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #0a0a0b;
    border-bottom: 1px solid var(--line);
    padding: 1rem 4% 1.6rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 0.9rem 0; font-size: 1rem; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 1.2rem; }
  .nav-toggle { display: block; }

  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .media img { aspect-ratio: 4 / 3; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
}

.nowrap { white-space: nowrap; }

@media (max-width: 640px) {
  .hero { background-position: 70% center; }
  h1.display { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .hero-stats { grid-template-columns: 1fr; gap: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img:last-child { display: block; }
}
