/* ═══════════════════════════════════════════════════════════
   Steffen Physiotherapie — Redesign Variante 5
   Editorial & ruhig: Instrument Sans,
   Label-Spalte, Bogenbild, Fächer-Motiv aus dem Logo.
   Markenfarben: Dunkelgrün #075C21 · Beige #DACCB2
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #FBFAF6;
  --surface: #F1EDE1;
  --white: #FFFFFF;
  --ink: #191E1A;
  --muted: #59605A;
  --green: #0A5224;
  --green-dark: #073D1B;
  --line: rgba(25, 30, 26, 0.16);
  --line-soft: rgba(25, 30, 26, 0.09);
  --sans: "Instrument Sans", "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: 8rem; }

body {
  font-family: var(--sans);
  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, ol { list-style: none; }

::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 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 em, h2 em { font-style: italic; color: var(--green); }

h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.fan { width: 1rem; height: 0.9rem; flex: none; }

.arrowlink { font-weight: 600; font-size: 0.98rem; color: var(--green); }
.arrowlink:hover { color: var(--green-dark); }

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

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

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

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

.button--quiet:hover { background: transparent; border-color: var(--ink); }

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

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

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

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

.header__brand span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header__brand em { color: var(--muted); }

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

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

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  background: var(--bg);
}

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

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

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

/* Info strip */
.infobar {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.92);
}

.infobar__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  padding-block: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.infobar a { font-weight: 700; }
.infobar a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

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

.hero { padding-block: clamp(1rem, 0.5rem + 1.5vw, 2rem) clamp(3.5rem, 6vw, 6rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4rem);
  margin-bottom: 1.6rem;
}

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

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

.hero__values {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 3.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero__figure { position: relative; }

.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% center;
  border-radius: 1rem;
}

.hero__figure figcaption {
  margin-top: 0.85rem;
  text-align: right;
  font-size: 0.88rem;
}

.hero__figure figcaption a { color: var(--green); font-weight: 600; }
.hero__figure figcaption a:hover { color: var(--green-dark); }

/* ───────── Label-rail sections ───────── */

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

.rail {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.rail__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────── 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,
.therapy-list__tile {
  flex: 0 0 5.25rem;
  width: 5.25rem;
  height: 4rem;
  border-radius: 0.6rem;
}

.therapy-list img { object-fit: cover; }

.therapy-list__tile {
  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; font-weight: 600; margin-bottom: 0.35rem; }

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

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

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

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

.team .rail { border-top-color: rgba(25, 30, 26, 0.2); }

.team__intro {
  max-width: 36rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.team__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.9rem clamp(2rem, 5vw, 4rem);
}

.team__values dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.team__values dd { font-size: 0.95rem; line-height: 1.6; color: var(--muted); }

.team .arrowlink { display: inline-block; margin-top: 2.75rem; }

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

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

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

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

.praxis__member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.praxis__member span {
  width: 100%;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.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;
}

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

.section--shop { padding-top: 0; }

.shop { display: grid; }

.shop a {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.6rem;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line-soft);
}

.shop a:first-child { border-top: 1px solid var(--line-soft); }

.shop strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease);
}

.shop span { font-size: 0.92rem; color: var(--muted); }

.shop i {
  font-style: normal;
  justify-self: end;
  color: var(--line);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.shop a:hover strong { color: var(--green); }
.shop a:hover i { color: var(--green); transform: translateX(3px); }

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

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

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

.contact h2 { margin-bottom: 1rem; }

.contact h2 em { color: #DACCB2; }

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

.contact__tel {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.25rem;
  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.5rem; }

.contact__aside h3 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #DACCB2;
  margin-bottom: 0.6rem;
}

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

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

.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(.therapy-list li, .team__values > div, .shop a, .rail__body h2) {
    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__in > .button { display: none; }
  .header__menu { display: block; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 26rem; }
  .hero__figure img { aspect-ratio: 5 / 4; border-radius: 1rem; }

  .therapy-list { grid-template-columns: 1fr; }

  .team__values { grid-template-columns: 1fr; }
  .praxis { grid-template-columns: 1fr; }
  .shop a { grid-template-columns: 1fr 1.4rem; }
  .shop span { grid-column: 1 / -1; grid-row: 2; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .infobar__mid { display: none; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
}
