/* =========================================================================
   juniorlomes.de — Stylesheet
   Design-Tokens + wiederverwendbare Komponenten aus der verbindlichen
   Design-Vorlage (referenz/design.html). Kein Redesign — 1:1-Überführung.
   ========================================================================= */

/* ---- Lokale Schriften (kein externer Request, kein preconnect) ---------- */
/* Nur latin + latin-ext. font-display:swap. Variable Fonts (Karla,
   Space Grotesk) teilen sich je Subset eine Datei über den Gewichtsbereich. */

/* Space Grotesk 700 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Karla 300 + 600 (Variable — eine Datei je Subset) */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/karla-300-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/karla-300-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design-Tokens ------------------------------------------------------ */
:root {
  --bg:          #1B1A18;
  --surface:     #26251F;
  --surface-2:   #2F2E27;
  --text:        #EDE9E1;
  --muted:       #B3ADA2;
  --dim:         #8E8A82;
  --accent:      #C9E265;
  --accent-hi:   #DCEE96;
  --line:        rgba(237,233,225,.14);
  --line-strong: rgba(237,233,225,.24);

  --maxw: 1180px;
  --pad: 22px;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --section-space: clamp(30px, 5vw, 60px);
}

/* ---- Reset / Basis ------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-hi); }

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

h1, h2, h3, p { margin: 0; }

/* Für Screenreader / Überschriften-Outline sichtbar, visuell entfernt */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---- Layout-Container --------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- Sektionen ---------------------------------------------------------- */
.section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
}
/* scroll-margin für Anker-Sprünge (feste Kopfhöhe unkritisch, aber sauber) */
.section[id] { scroll-margin-top: 20px; }

/* Kicker (Sektions-Label) */
.kicker {
  font: 400 10.5px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.kicker--accent { color: var(--accent); }

/* Kleiner Balken neben Headlines ("bahn") — Scroll-Reveal (siehe unten) */
.rule {
  flex: 0 0 auto;
  width: 26px;
  height: 3px;
  background: var(--text);
}
.rule--accent { background: var(--accent); }

/* Headline-Zeile: Balken + Überschrift nebeneinander */
.head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.head--tight { margin-bottom: 10px; }

/* Abstands-Utilities (ersetzen die Inline-Styles der Vorlage) */
.mb-10 { margin-bottom: 10px; }
.mb-14 { margin-bottom: 14px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mb-26 { margin-bottom: 26px; }
.mt-12 { margin-top: 12px; }
.mt-22 { margin-top: 22px; }
.text-dim { color: var(--dim); }

/* ---- Typografie-Klassen ------------------------------------------------- */
.h1 {
  font: 700 clamp(34px, 5.6vw, 62px)/1.05 var(--font-head);
  letter-spacing: -.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.h2 {
  font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--font-head);
  margin: 0;
}
.h2--lg {
  font: 700 clamp(24px, 3.2vw, 38px)/1.1 var(--font-head);
  letter-spacing: -.02em;
}
.h2--md {
  font: 700 clamp(22px, 2.8vw, 32px)/1.1 var(--font-head);
  letter-spacing: -.02em;
}
.h2--sm {
  font: 700 clamp(20px, 2.4vw, 26px)/1.15 var(--font-head);
}
.accent { color: var(--accent); }

.lead {
  font: 300 clamp(15px, 1.6vw, 18px)/1.6 var(--font-body);
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.body {
  font: 300 15px/1.6 var(--font-body);
  color: var(--muted);
  text-wrap: pretty;
}
.body--lg { font-size: 15.5px; line-height: 1.65; }
.mono-note {
  font: 400 12.5px/1.6 var(--font-mono);
  color: var(--dim);
}
.max-40 { max-width: 40ch; }
.max-44 { max-width: 44ch; }
.max-46 { max-width: 46ch; }
.max-50 { max-width: 50ch; }
.max-56 { max-width: 56ch; }
.max-58 { max-width: 58ch; }

/* TODO-Hinweise / Fußzeilen-Text: Kontrast-Fix #6F6B64 -> --dim (#8E8A82) */
.todo {
  font: 400 12px/1.6 var(--font-mono);
  color: var(--dim);
  margin: 14px 0 0;
}

/* ---- Kopfzeile / Navigation --------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
}
.brand__name {
  font: 700 15px/1 var(--font-head);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand__sub {
  font: 400 8.5px/1 var(--font-mono);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand:hover { color: var(--text); }
.brand:hover .brand__name { color: var(--accent-hi); }
.nav {
  display: flex;
  gap: 18px;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: .06em;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--accent-hi); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 15px/1 var(--font-body);
  padding: 16px 22px;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hi); color: var(--bg); }
.btn--ghost {
  border: 1px solid rgba(237,233,225,.3);
  color: var(--text);
  font: 400 13px/1 var(--font-mono);
  padding: 16px 20px;
}
.btn--ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn--between { justify-content: space-between; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn__label { display: inline-flex; align-items: center; gap: 10px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px) 0;
}
.hero .kicker { margin-bottom: 18px; }
.hero .lead { margin: 0 0 12px; }
.hero .mono-note { margin: 0 0 26px; max-width: 44ch; }

/* Hero: Schwerpunkt + Abgrenzung */
.focus { margin: 0 0 30px; max-width: 46ch; }
.focus__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 10.5px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}
.focus__mark { width: 16px; height: 3px; background: var(--accent); flex: 0 0 auto; }
.focus__val { font: 500 15px/1.3 var(--font-mono); color: var(--text); margin: 0 0 6px; }
.focus__sub { font: 300 12.5px/1.5 var(--font-body); color: var(--dim); margin: 0; }

/* ---- Karten-Raster ------------------------------------------------------ */
.grid { display: grid; gap: 10px; }
.grid--2  { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4  { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid--price { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--quotes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--faq {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 30px) clamp(28px, 5vw, 56px);
}

/* FAQ (schlicht, ohne Kästen – gehört dazu, stört nicht) */
.faq-q { font: 700 16px/1.3 var(--font-head); margin: 0 0 7px; }
.faq-a { font: 300 14px/1.6 var(--font-body); color: var(--muted); margin: 0; max-width: 46ch; }

/* Reassurance-Zeile unter den Hero-CTAs */
.cta-note {
  font: 400 11.5px/1.4 var(--font-mono);
  color: var(--dim);
  margin: 14px 0 0;
}

/* Karte (Grundform) */
.card {
  border: 1px solid var(--line-strong);
  padding: 26px;
}
.card--thin { border-color: rgba(237,233,225,.2); }
.card--pad20 { padding: 20px; }
.card--pad22 { padding: 22px; }

/* "Zwei Wege"-Karten */
.card .body { margin: 0 0 16px; }
.card-link {
  font: 400 12.5px/1 var(--font-mono);
  color: var(--text);
  border-bottom: 1px solid rgba(237,233,225,.5);
  padding-bottom: 3px;
  text-decoration: none;
}
.card-link--accent {
  color: var(--accent);
  border-bottom-color: rgba(201,226,101,.5);
}

/* Nummerierte Prozess-/Schritt-Karten */
.step-num {
  font: 500 12px/1 var(--font-mono);
  color: var(--accent);
  margin-bottom: 8px;
}
.step-num--lg { font-size: 26px; margin-bottom: 12px; }
.step-title {
  font: 600 15px/1.3 var(--font-body);
  margin-bottom: 5px;
}
.step-title--head {
  font: 700 16px/1.2 var(--font-head);
  margin-bottom: 6px;
}
.step-text {
  font: 300 13.5px/1.55 var(--font-body);
  color: var(--dim);
  margin: 0;
}

/* ---- Über-mich: Stat-Kacheln -------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.stat {
  border: 1px solid var(--line-strong);
  padding: 14px;
}
.stat-value { font: 500 15px/1 var(--font-mono); margin-bottom: 5px; }
.stat-label { font: 300 12.5px/1.4 var(--font-body); color: var(--dim); }

/* ---- Preis-Karten ------------------------------------------------------- */
.price-card {
  border: 1px solid var(--line-strong);
  padding: 20px;
}
.price-card__title { font: 700 17px/1.2 var(--font-head); margin-bottom: 10px; }
.price-card__value { font: 500 22px/1 var(--font-mono); margin-bottom: 8px; }
.price-card__note { font: 300 13px/1.5 var(--font-body); color: var(--dim); margin: 0; }

/* Empfohlen-Karte auf --surface: dim-Text auf Fläche -> --muted (Kontrast) */
.price-card--featured {
  border: 1px solid var(--text);
  background: var(--surface);
}
.price-card--featured .price-card__note { color: var(--muted); }
.badge {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.price-split {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 400 13px/1.3 var(--font-mono);
  color: var(--muted);
}
.price-split__row { display: flex; justify-content: space-between; }
.price-split__row > span:last-child { color: var(--text); }

/* §19-UStG-Hinweis unter Preisblöcken */
.ust-note {
  font: 400 12px/1.5 var(--font-mono);
  color: var(--dim);
  margin: 16px 0 0;
}

/* ---- Strength & Conditioning: Testtabelle & Chips ----------------------- */
.testtable { border: 1px solid rgba(201,226,101,.5); }
.testtable__head,
.testtable__row {
  display: flex;
  align-items: center;
}
.testtable__head {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 16px;
  border-bottom: 1px solid rgba(237,233,225,.16);
}
.testtable__row {
  font: 400 13px/1 var(--font-mono);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(237,233,225,.09);
}
.testtable__row:last-child { border-bottom: 0; }
.testtable__name { flex: 1; }
.testtable__col { text-align: right; }
.testtable__col--w0  { width: 44px; }
.testtable__col--w6  { width: 38px; }
.testtable__col--w12 { width: 40px; }
.dot { color: var(--accent); }

/* Athleten-/Gruppenbild im S&C-Abschnitt (volle Breite) */
.sc-media { margin: 0 0 clamp(24px, 4vw, 40px); }
.sc-media img { width: 100%; height: auto; display: block; }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font: 400 12.5px/1 var(--font-mono);
  color: var(--text);
}
.chip { border: 1px solid rgba(237,233,225,.26); padding: 9px 11px; }

.sc-price {
  border: 1px solid var(--accent);
  padding: 22px;
  margin-bottom: 16px;
}
.sc-price__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.sc-price__label { font: 700 20px/1 var(--font-head); }
.sc-price__value { font: 500 20px/1 var(--font-mono); color: var(--accent); }

/* ---- Einstieg-Block (auf --surface) ------------------------------------- */
.einstieg {
  background: var(--surface);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.einstieg .kicker { margin-bottom: 14px; }
.einstieg .h2--md { margin-bottom: 12px; }
.pricelist { display: flex; flex-direction: column; gap: 12px; }
.pricelist__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(237,233,225,.18);
  padding-bottom: 10px;
}
.pricelist__row > span:first-child { font: 400 13px/1 var(--font-mono); color: var(--muted); }
.pricelist__row > span:last-child  { font: 500 20px/1 var(--font-mono); }
/* Hinweis auf --surface: --dim wäre zu schwach -> --muted */
.einstieg .ust-note { color: var(--muted); }

/* ---- Kontakt ------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 3.5vw, 44px);
  align-items: start;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font: 400 13.5px/1.5 var(--font-mono);
}
.contact-lines a { text-decoration: none; }

/* Zeile mit vorangestelltem Icon */
.cline { display: flex; align-items: flex-start; gap: 11px; }
/* etwas mehr Luft nach dem Adressblock (unter „Route planen") */
.contact-lines .cline:first-child { margin-bottom: 8px; }
.cline > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--dim);          /* dezent, Text bleibt Akzent/hell */
}
.cline a:hover { color: var(--accent-hi); }

/* Adressblock (Name + Straße + PLZ, je eigene Zeile) */
.addr-block { display: flex; flex-direction: column; gap: 3px; }
.addr-name { color: var(--text); letter-spacing: .02em; }
.addr-block .sub { color: var(--muted); }
.addr-route {
  align-self: flex-start;
  margin-top: 8px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}
.addr-route:hover { color: var(--accent-hi); border-bottom-color: var(--accent); }
.contact-media { display: grid; gap: 10px; }

/* ---- Bild-Platzhalter / Medien ------------------------------------------ */
/* Streifenmuster bleibt wie in der Vorlage; <img>-Struktur ist vorbereitet
   und ersetzt den Platzhalter automatisch, sobald eine Datei vorliegt. */
.media {
  position: relative;
  margin: 0;
  background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media figcaption,
.media__label {
  font: 400 11px/1.4 var(--font-mono);
  color: var(--muted);
  background: var(--bg);
  padding: 6px 8px;
  position: relative;
  z-index: 1;
}
/* Sobald ein echtes Bild geladen ist, Label ausblenden (per .has-img am figure) */
.media.has-img .media__label { display: none; }

/* ---- Kundenstimmen ------------------------------------------------------ */
.quote {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  padding: 26px 24px 22px;
  overflow: hidden;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 18px;
  font: 700 46px/1 var(--font-head);
  color: var(--accent);
  opacity: .22;
  pointer-events: none;
}
.quote p {
  font: 300 15px/1.65 var(--font-body);
  color: var(--text);
  margin: 0 0 16px;
  position: relative;
}
.quote footer {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .02em;
  color: var(--accent);
}

/* ---- Fußzeile ----------------------------------------------------------- */
.site-footer {
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer .colophon {
  font: 400 12px/1.6 var(--font-mono);
  color: var(--dim); /* Kontrast-Fix: war #6F6B64 */
}
.footer-links {
  display: flex;
  gap: 18px;
  font: 400 12px/1 var(--font-mono);
}
.footer-links a { text-decoration: none; }
.footer-note {
  width: 100%;
  margin: 14px 0 0;
  font: 400 11.5px/1.5 var(--font-mono);
  color: var(--dim);
}

/* ---- Sticky-Leiste: NUR Mobile (< 768px), erst nach dem Hero ------------ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  display: none;                 /* Desktop: komplett aus */
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 50;
  transform: translateY(110%);   /* eingeklappt, bis Hero durchlaufen ist */
  transition: transform .28s ease;
}
.sticky-cta__note { font: 400 11.5px/1.3 var(--font-mono); color: var(--bg); }
.sticky-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 13px/1 var(--font-body);
  color: var(--bg);
  text-decoration: none;
  white-space: nowrap;
}
.sticky-cta__link svg { width: 15px; height: 15px; flex: 0 0 auto; }
.sticky-cta__link:hover { color: var(--bg); }

@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  .sticky-cta.is-visible { transform: translateY(0); }
  /* Platz für die eingeblendete Leiste, damit sie den Footer nicht überdeckt */
  body.has-sticky { padding-bottom: 64px; }

  /* Kopf-Navigation auf Mobile ausblenden: Sticky-CTA + Scrollen genügen,
     und es verhindert die mehrfache Wiederholung von „Personal Training"
     (Marke + Nav + Hero-Kicker) ganz oben. */
  .nav { display: none; }

  /* Kontakt: Bilder mobil an den Anfang des Abschnitts ziehen,
     damit der Abschnitt auf dem CTA-Button endet statt auf den Bildern. */
  .contact-media { order: -1; }
}

/* ---- Verfeinerung ab 360px ---------------------------------------------- */
@media (max-width: 380px) {
  :root { --pad: 18px; }
  .card { padding: 20px; }
}

/* ---- Scroll-Reveal für die "bahn"-Balken -------------------------------- */
/* Ohne JS / vor Reveal: Balken sind sichtbar (keine leeren Lücken).
   Mit JS (html.js) starten sie bei 0 und wachsen beim ersten Sichtbarwerden. */
@keyframes bahn { from { width: 0; } to { width: 26px; } }

html.js .rule { width: 0; }
html.js .rule.is-visible { animation: bahn .6s ease-out forwards; }

/* ---- Rechtsseiten (Impressum / Datenschutz) ----------------------------- */
.legal {
  padding: clamp(34px, 6vw, 64px) 0 clamp(40px, 6vw, 80px);
  max-width: 70ch;
}
.legal .back {
  display: inline-block;
  font: 400 12.5px/1 var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
}
.legal .back:hover { color: var(--accent-hi); }
.legal h1 {
  font: 700 clamp(28px, 4vw, 44px)/1.1 var(--font-head);
  letter-spacing: -.02em;
  margin: 0 0 28px;
}
.legal h2 {
  font: 700 clamp(17px, 2vw, 21px)/1.2 var(--font-head);
  margin: 34px 0 10px;
}
.legal p,
.legal li {
  font: 300 15px/1.7 var(--font-body);
  color: var(--muted);
  margin: 0 0 12px;
}
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal .meta { font: 400 12.5px/1.6 var(--font-mono); color: var(--dim); }

/* ---- Reduced Motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .rule,
  html.js .rule { width: 26px !important; }
  .sticky-cta { transition: none !important; }
}
