/* ============================================================
   Physiotopia Zürich Affoltern — Design-System
   Palette: Logo-Petrol #3e7f9b · Tinte #0f333e · Warmweiss #faf8f3
            Sand #efe7da · Terracotta-Akzent #c9704b
   Typo: Fraunces (Display-Serif) + Figtree (Grotesk)
   ============================================================ */

:root {
  --ink: #0f333e;
  --ink-soft: #33535e;
  --brand: #3e7f9b;
  --brand-deep: #14424f;
  --brand-soft: #ddeaf0;
  --paper: #faf8f3;
  --sand: #efe7da;
  --sand-deep: #e3d6c2;
  --terra: #c9704b;
  --terra-deep: #b05c39;
  --white: #ffffff;
  --line: rgba(15, 51, 62, 0.14);
  --radius: 18px;
  --shadow: 0 18px 48px -22px rgba(15, 51, 62, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-deep); }

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

.wrap {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--brand-deep);
  color: #eaf3f6;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .dot { opacity: 0.55; margin-inline: 0.35rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(15, 51, 62, 0.5);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-ring {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 2.5px solid var(--brand);
  border-left-color: transparent;
  transform: rotate(-32deg);
}
.brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.98rem;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 500;
}
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--brand-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(201, 112, 75, 0.65);
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--brand-deep);
  color: var(--brand-deep);
  background: transparent;
}
.btn-ghost:hover { background: var(--brand-soft); transform: translateY(-2px); }
.btn-light {
  background: #fff;
  color: var(--brand-deep);
}
.btn-light:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(10, 38, 47, 0.93) 0%, rgba(15, 51, 62, 0.78) 46%, rgba(20, 66, 79, 0.42) 100%);
  z-index: -1;
}
.hero .wrap {
  padding-block: clamp(5rem, 11vw, 9.5rem);
  max-width: 1140px;
}
.hero-inner { max-width: 640px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a8d3e2;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #a8d3e2;
  border-left-color: transparent;
  transform: rotate(-32deg);
  flex: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.35rem, 5.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.3rem;
}
.hero h1 em {
  font-style: italic;
  color: #ffd9c4;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-chips { display: flex; gap: 0.6rem 1.6rem; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.hero-chips li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.hero-chips li::before {
  content: "✓";
  color: #ffd9c4;
  font-weight: 800;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.4rem, 7vw, 5.6rem); }
.section-sand { background: var(--sand); }
.section-deep { background: var(--brand-deep); color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .eyebrow { color: var(--brand); }
.section-head .eyebrow::before { border-color: var(--brand); border-left-color: transparent; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.section-head p { color: var(--ink-soft); }

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
  .service-card:hover { transform: none; }
}
.service-card figure { aspect-ratio: 4 / 2.7; overflow: hidden; margin: 0; }
.service-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover figure img { transform: scale(1.05); }
.service-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.service-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.25; }
.service-body p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.service-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.method-chips { margin-top: 2.2rem; }
.method-chips h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; color: var(--ink); }
.method-chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; }
.method-chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Ablauf / Timeline (Signatur) ---------- */
.steps { position: relative; display: grid; gap: 2.2rem; max-width: 760px; }
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--sand-deep);
  border-radius: 3px;
}
.steps .steps-progress {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  width: 3px;
  height: 0%;
  background: linear-gradient(var(--brand), var(--terra));
  border-radius: 3px;
  transition: height 0.2s linear;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.3rem;
  align-items: start;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--sand-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-deep);
  z-index: 1;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.step.is-active .step-num {
  border-color: var(--brand);
  background: var(--brand-deep);
  color: #fff;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-soft); max-width: 56ch; }
.step .step-hint {
  display: inline-block;
  margin-top: 0.55rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 8px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Praxis / Warum ---------- */
.praxis-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.praxis-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.praxis-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}
.praxis-gallery figure:nth-child(2) { transform: translateY(1.6rem); }
.praxis-gallery img { width: 100%; height: 100%; object-fit: cover; }
.usp-list { list-style: none; padding: 0; display: grid; gap: 1.05rem; margin-top: 1.4rem; }
.usp-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; }
.usp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.usp-list strong { display: block; font-size: 1.02rem; }
.usp-list span { color: var(--ink-soft); font-size: 0.95rem; }
.praxis-quote {
  margin-top: 1.8rem;
  border-left: 4px solid var(--terra);
  padding-left: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

/* ---------- Stats ---------- */
.stats-band { background: var(--brand-deep); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #ffd9c4;
  line-height: 1.1;
}
.stat span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: 940px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
  .team-card:hover { transform: none; }
}
.team-card figure { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; }
.team-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-body { padding: 1.15rem 1.25rem 1.35rem; }
.team-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; }
.team-role { color: var(--brand); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.team-langs { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Hausbesuche ---------- */
.home-visit { background: var(--sand); }
.home-visit-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
}
.home-visit-card figure { margin: 0; min-height: 300px; }
.home-visit-card img { width: 100%; height: 100%; object-fit: cover; }
.home-visit-body { padding: clamp(1.6rem, 3.5vw, 2.8rem); align-self: center; }
.home-visit-body h2 { font-family: var(--font-display); font-weight: 560; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.8rem; }
.home-visit-body p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: grid; gap: 0.85rem; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.3rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand);
  flex: none;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); padding-top: 0.7rem; font-size: 0.98rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-deep) 0%, #1d5c6d 55%, var(--brand) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-left-color: transparent;
  transform: rotate(-32deg);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 560; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 0.5rem; max-width: 46ch; }
.cta-band .btn-primary { box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.45); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 1.15rem;
}
.contact-row { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; }
.contact-row strong { display: block; }
.contact-row a { font-weight: 700; text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.contact-row span { color: var(--ink-soft); font-size: 0.95rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.other-locations { margin-top: 1.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.other-locations strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #0b2831; color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; }
.site-footer .wrap {
  padding-block: 2.6rem 1.6rem;
  display: grid;
  gap: 1.8rem;
}
.footer-top { display: flex; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.site-footer img.footer-logo { width: 190px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 0.8rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* ---------- Unterseiten (page-hero) ---------- */
.page-hero {
  background: linear-gradient(130deg, #0b2831 0%, var(--brand-deep) 60%, #1d5c6d 100%);
  color: #fff;
  padding-block: clamp(3.4rem, 7vw, 5.2rem);
}
.page-hero .eyebrow { color: #a8d3e2; }
.page-hero .eyebrow::before { border-color: #a8d3e2; border-left-color: transparent; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 0.9rem;
}
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 58ch; }

/* Booking-Seite */
.booking-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.booking-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: 0.7rem; }
.booking-card p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.booking-alt { margin-top: 1.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.booking-alt a { font-weight: 700; }
.booking-steps {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
}
.booking-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.booking-step b { display: block; color: var(--ink); margin-bottom: 0.3rem; font-size: 1rem; }

/* Rechtsseiten */
.legal-content { max-width: 760px; padding-block: clamp(2.6rem, 5vw, 4rem); }
.legal-content h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); margin-bottom: 0.7rem; }
.legal-content ul { padding-left: 1.2rem; }

/* ---------- Reveal-Animationen (nur via JS aktiviert) ---------- */
.mask-line { display: inline-block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; vertical-align: bottom; }
.mask-line > span { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .praxis-grid, .contact-grid { grid-template-columns: 1fr; }
  .home-visit-card { grid-template-columns: 1fr; }
  .home-visit-card figure { min-height: 220px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .praxis-gallery figure:nth-child(2) { transform: translateY(0.9rem); }
  .step { grid-template-columns: 44px 1fr; gap: 0.9rem; }
  .step-num { width: 44px; height: 44px; font-size: 1rem; }
  .steps::before, .steps .steps-progress { left: 21px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
