/* ═══════════════════════════════════════════════════════════
   Steffen Physiotherapie — Redesign Variante 4
   Ruhig, klar, schweizerisch: eine Schrift, eine Farbe, Raster.
   Markenfarben aus dem Logo: Dunkelgrün #075C21 · Beige #DACCB2
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #FBFAF7;
  --surface: #F2EFE6;
  --white: #FFFFFF;
  --ink: #1A1F1B;
  --muted: #5A615B;
  --green: #0A5224;
  --green-dark: #073D1B;
  --line: rgba(26, 31, 27, 0.14);
  --line-soft: rgba(26, 31, 27, 0.08);
  --font: "Archivo", "Avenir Next", "Segoe UI", sans-serif;
  --shell: 72rem;
  --ease: cubic-bezier(0.25, 0.6, 0.2, 1);
}

/* Preview only: blue variant (logo blue #003BCF), toggled via js/theme-switch.js */
:root[data-theme="blue"] {
  --green: #003BCF;
  --green-dark: #002B96;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
table { border-collapse: collapse; }

::selection { background: var(--green); color: var(--white); }

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

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.label--light { color: rgba(255, 255, 255, 0.66); }

/* ───────── Buttons ───────── */

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 0.625rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.button--primary { background: var(--green); color: var(--white); }
.button--primary:hover { background: var(--green-dark); }

.button--quiet { border: 1px solid var(--line); background: var(--white); }
.button--quiet:hover { border-color: var(--ink); }

/* ───────── Header ───────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line-soft);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 4.75rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.header__brand img { width: 2.5rem; height: 2.5rem; }

.header__brand span {
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.header__brand small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.header__nav { display: flex; gap: 1.9rem; }

.header__nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--green);
}

.header__nav a:hover { text-decoration-line: underline; }

.header__actions { display: flex; align-items: center; gap: 1.4rem; }

.header__tel { font-size: 0.95rem; font-weight: 650; color: var(--green); font-variant-numeric: tabular-nums; }
.header__tel:hover { color: var(--green-dark); }

.header__menu {
  display: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  background: var(--white);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}

.mobile-nav a {
  padding: 0.8rem 0;
  font-size: 1.05rem;
  font-weight: 550;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a:last-child { border-bottom: 0; }

.mobile-nav__tel { color: var(--green); font-weight: 700; }

.mobile-nav.is-open { display: flex; }

/* ───────── Hero ───────── */

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  padding-top: clamp(8rem, 6rem + 5vw, 10.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.hero__main .label { display: block; margin-bottom: 1.25rem; }

.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem);
  margin-bottom: 1.5rem;
}

.hero__text {
  max-width: 34rem;
  font-size: 1.13rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2.25rem;
}

.hero__buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__info {
  margin-top: 3.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  padding: 1.75rem;
  display: grid;
  gap: 1.6rem;
}

.hero__info-block .label { display: block; margin-bottom: 0.65rem; }

.hero__info-block table { width: 100%; font-size: 0.98rem; }

.hero__info-block td { padding: 0.12rem 0; vertical-align: top; }

.hero__info-block td:first-child { color: var(--muted); }

.hero__info-block td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.hero__info-block p { font-size: 0.98rem; }

.hero__info-tel {
  display: block;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.hero__info-tel:hover { color: var(--green-dark); }

/* ───────── Photo ───────── */

.photo { padding-bottom: clamp(3rem, 6vw, 5rem); }

.photo img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: 1.25rem;
}

.photo figcaption {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.photo figcaption a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.photo figcaption a:hover { color: var(--green-dark); }

/* ───────── Sections ───────── */

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }

.section__head {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section__head .label { display: block; margin-bottom: 0.9rem; }

.section__head h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }

/* ───────── Therapien ───────── */

.therapy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
}

.therapy-list li {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.therapy-list img {
  flex: 0 0 5.25rem;
  width: 5.25rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.6rem;
}

.therapy-list__tile {
  flex: 0 0 5.25rem;
  width: 5.25rem;
  height: 4rem;
  border-radius: 0.6rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.32rem;
}

.therapy-list__tile i {
  height: 0.28rem;
  border-radius: 999px;
  background: var(--green);
}

.therapy-list__tile i:nth-child(1) { width: 1.1rem; opacity: 0.45; }
.therapy-list__tile i:nth-child(2) { width: 1.7rem; opacity: 0.7; }
.therapy-list__tile i:nth-child(3) { width: 2.3rem; }

.therapy-list h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }

.therapy-list h3 a:hover { color: var(--green); }

.therapy-list p { font-size: 0.93rem; line-height: 1.55; color: var(--muted); }

/* ───────── Werte ───────── */

.values {
  background: var(--surface);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.values .section__head { border-top-color: rgba(26, 31, 27, 0.18); }

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.values__grid h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.values__grid p { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

.values__link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 650;
  color: var(--green);
}

.values__link:hover { color: var(--green-dark); }

/* ───────── Praxis ───────── */

.praxis__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.praxis__text p { max-width: 30rem; color: var(--muted); margin-bottom: 1.25rem; }

.praxis__text .button { margin-top: 0.75rem; }

.praxis__member { margin-top: 2.75rem; }

.praxis__member .label { display: block; margin-bottom: 0.9rem; }

.praxis__member div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.praxis__member img {
  height: 4rem;
  width: auto;
  padding: 0.45rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 0.5rem;
}

.praxis__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

/* ───────── Shop ───────── */

.shop__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.shop__grid h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.shop__grid p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }

.shop__grid a { font-weight: 650; font-size: 0.95rem; color: var(--green); }

.shop__grid a:hover { color: var(--green-dark); }

/* ───────── Kontakt ───────── */

.contact {
  background: var(--green-dark);
  color: var(--white);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__main .label { display: block; margin-bottom: 1.1rem; }

.contact h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); margin-bottom: 1rem; }

.contact__text {
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2rem;
}

.contact__tel {
  display: inline-block;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.3rem;
  transition: border-color 0.25s var(--ease);
}

.contact__tel:hover { border-bottom-color: var(--white); }

.contact__aside {
  display: grid;
  gap: 1.75rem;
  padding-top: 0.4rem;
}

.contact__aside .label { display: block; margin-bottom: 0.6rem; }

.contact__aside p { font-size: 0.98rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }

/* ───────── Footer ───────── */

.footer { background: var(--bg); }

.footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 2rem;
}

.footer__brand { display: flex; align-items: center; gap: 0.7rem; }

.footer__brand img { width: 1.9rem; height: 1.9rem; }

.footer__brand span, .footer nav a { font-size: 0.88rem; color: var(--muted); }

.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.footer nav a:hover { color: var(--green); }

/* ───────── Sanfte Einblendung ───────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready :where(.section__head, .therapy-list li, .values__grid > div, .shop__grid > div) {
    opacity: 0;
    transform: translateY(0.7rem);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }

  .reveal-ready .is-visible { opacity: 1; transform: none; }
}

/* ───────── Responsive ───────── */

@media (max-width: 980px) {
  .header__nav, .header__tel { display: none; }
  .header__menu { display: block; }

  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero__info { margin-top: 0; max-width: 30rem; }

  .therapy-list { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .praxis__grid { grid-template-columns: 1fr; }
  .praxis__photo { order: -1; }
  .shop__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .shop__grid > div { border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header__actions .button { display: none; }
  .values__grid { grid-template-columns: 1fr; }
  .photo img { aspect-ratio: 4 / 3; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
}
