/* Physiotherapie Kamp — Grundlagen: Schrift, Typografie, Flächen, Bausteine */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

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

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

body {
  overflow-x: clip;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Typografie: Versalien in der geometrischen Grotesk ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: var(--t-display); line-height: var(--lh-display); font-weight: 600; }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); }
h3 {
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 600;
}

p { color: var(--c-muted); text-wrap: pretty; }
.lede { font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem); color: var(--c-muted); }
strong, b { font-weight: 600; color: inherit; }

@media (max-width: 30rem) {
  h1, h2 { hyphens: auto; overflow-wrap: anywhere; hyphenate-limit-chars: 10 6 6; }
}

/* ---------- Das Pillen-Etikett mit Anschlusslinie ---------- */
.tag {
  display: inline-block;
  padding: 0.4rem 1rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink);
}

/* Mittige Etiketten hängen an einem feinen Strich */
.tag--hangs { position: relative; margin-top: 3.2rem; }

.tag--hangs::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 2.6rem;
  background: var(--line-strong);
}

.stage .tag, .page-head .tag, .section--green .tag {
  border-color: var(--line-light);
  color: var(--c-paper);
}
.section--green .tag--hangs::before { background: var(--line-light); }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-x);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-paper-2); }
.section--white { background: var(--c-white); }

.section--green {
  position: relative;
  background: var(--c-green);
  color: var(--c-paper);
}

.section--green p { color: var(--on-green); }
.section--green h2, .section--green h3 { color: var(--c-paper); }

.section-head { margin-bottom: var(--head-gap); }
.section-head h2 { margin-top: var(--sp-3); }
.section-head > p { margin-top: var(--sp-3); max-width: 52ch; }

.section-head--center { text-align: center; }
.section-head--center h2 { margin-inline: auto; max-width: 20ch; }
.section-head--center > p { margin-inline: auto; }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast),
    border-color var(--duration-fast), translate var(--duration-fast);
}

.btn .arr { transition: translate var(--duration-fast) var(--ease-out); }
.btn:hover .arr { translate: 4px 0; }
.btn:active { translate: 0 1px; }

.btn--solid { background: var(--c-ink); color: var(--c-paper); }
.btn--solid:hover { background: var(--c-green); }

.btn--ghost { border-color: var(--line-strong); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-ink); background: rgba(22, 33, 29, 0.05); }

/* Auf allen grünen Flächen dreht sich das Verhältnis um */
.section--green .btn--solid, .stage .btn--solid, .page-head .btn--solid,
.site-header .btn--solid { background: var(--c-paper); color: var(--c-ink); }
.section--green .btn--solid:hover, .stage .btn--solid:hover, .page-head .btn--solid:hover,
.site-header .btn--solid:hover { background: var(--c-white); }

.section--green .btn--ghost, .stage .btn--ghost, .page-head .btn--ghost {
  border-color: var(--line-light);
  color: var(--c-paper);
}
.section--green .btn--ghost:hover, .stage .btn--ghost:hover, .page-head .btn--ghost:hover {
  border-color: var(--c-paper);
  background: rgba(250, 247, 242, 0.12);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: var(--sp-4); }

/* ---------- Flächen und Rahmen ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
}

.frame {
  display: block;
  border-radius: var(--radius-m);
  overflow: clip;
  background: var(--c-paper-2);
  min-width: 0;
}

.frame img { width: 100%; height: 100%; object-fit: cover; }
html.js .frame[data-reveal-img] img { transform: scale(1.05); }

/* ---------- Fokus, Skip, Reveal ---------- */
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-green); color: var(--c-paper);
  padding: 0.7rem 1.2rem; z-index: 300;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

html.js [data-reveal] { opacity: 0; transform: translateY(20px); }
html.js.reduced-motion [data-reveal] { opacity: 1; transform: none; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
