/* ===================================================================
   Schriften – vom eigenen Server, nicht von Google
   ===================================================================
   Ein <link> auf fonts.googleapis.com schickt bei JEDEM Seitenaufruf die
   IP des Besuchers an Google in die USA. Diese Seite verbietet sich das
   selbst: Sie verspricht "DSGVO-konform, keine Weitergabe an Dritte".

   Variable Fonts, nur die Subsets latin und latin-ext. Alle drei stehen
   unter der SIL Open Font License, die das eigene Ausliefern erlaubt.

   Die Regeln unten sind erzeugt – nicht von Hand ändern, sondern
   scripts/schriften-holen.sh laufen lassen.

   Bewusst hier und nicht per <link> in den Seitenköpfen: Diese Datei
   laden alle acht Seiten. Ein Verweis in index.html galt nur dort, und
   die vier SEO-Seiten, auf denen Besucher aus der Suche zuerst landen,
   blieben bei Systemschriften.
   =================================================================== */

/* == SCHRIFTEN ANFANG (erzeugt von scripts/schriften-holen.sh) == */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-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: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-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;
}
/* == SCHRIFTEN ENDE == */

/* ===================================================================
   PaceFuel – Landing Page
   Dunkel, mit Markengrün — plus zwei Zusatzakzente, die die zwei
   Produkthälften sichtbar machen: Pace (Training, Grün) und
   Fuel (Ernährung, Amber). Coach (Blau) markiert Betreuung/Kommunikation.
   =================================================================== */

:root {
  --bg:        #0a0e18;
  --surface:   #121a2c;
  --surface-2: #1a2438;
  --surface-3: #253154;
  --surface-900: #0d1322;

  --brand:     #10b981;
  --brand-light:#34d399;
  --brand-dark:#059669;
  --brand-500: #10b981;

  --fuel:       #f5a524;
  --fuel-light: #ffc561;
  --fuel-dark:  #c17c0f;

  --coach:       #5b8def;
  --coach-light: #8fb4ff;
  --coach-dark:  #3f6bcf;

  --text:      #f4f6fa;
  --text-muted:#93a1b8;
  --text-dim:  #5f6d85;
  --border:    rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .26);

  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1140px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.text-brand { color: var(--brand-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #04150e;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, .6);
}
.btn--primary:hover { background: var(--brand-light); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-light); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 14, 24, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 24, .92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.nav__logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #04150e;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.logo-text { color: var(--text); }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { color: var(--text-muted); font-size: .93rem; font-weight: 500; transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__login { color: var(--text) !important; }
.nav__cta {
  color: #04150e !important; background: var(--brand);
  padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600 !important;
  transition: background .2s ease, transform .15s ease;
}
.nav__cta:hover { background: var(--brand-light); transform: translateY(-1px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------- Megamenü ----------
   Zwei Klapptafeln in der Kopfzeile: Produkt und Rechner. Sie tragen die
   Seiten, die sonst nur über den Fuß erreichbar wären – und die laut
   Silo-Logik höchstens drei Klicks von der Startseite entfernt sein dürfen.

   Ein Knopf, kein Link: Die Tafel öffnet auf Klick, nicht beim Überfahren.
   Hover-Menüs sind auf Touchgeräten nicht bedienbar und lassen sich mit der
   Tastatur schlecht schließen. Ein Klick funktioniert überall gleich.

   Am Telefon liegt die Tafel im aufgeklappten Burger-Menü und fließt dort
   normal mit (position: static weiter unten). */
.nav__hat { position: static; }
.nav__hat-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; padding: 0;
  color: var(--text-muted); font-family: inherit; font-size: .93rem; font-weight: 500;
  cursor: pointer; transition: color .2s ease;
}
.nav__hat-btn:hover, .nav__hat-btn[aria-expanded="true"] { color: var(--text); }
.nav__hat-btn::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease;
}
.nav__hat-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 2px; }

.nav__mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(10, 14, 24, .98);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  animation: megaAuf .18s ease;
}
@keyframes megaAuf { from { opacity: 0; transform: translateY(-6px); } }

.nav__mega-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  padding: 1.8rem 24px 2rem;
}
.nav__mega--zwei .nav__mega-inner { grid-template-columns: repeat(2, 1fr); }

.nav__group-title {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: .9rem;
}
.nav__mega a {
  display: block; padding: .55rem .7rem; margin-left: -.7rem;
  border-radius: 10px; transition: background .15s ease;
}
.nav__mega a:hover { background: var(--surface-2); }
.nav__mega a b { display: block; color: var(--text); font-size: .93rem; font-weight: 600; }
.nav__mega a span { display: block; color: var(--text-dim); font-size: .8rem; line-height: 1.45; margin-top: .1rem; }
.nav__mega a:hover b { color: var(--brand-light); }

/* Abschluss-Zeile einer Spalte, z. B. "Alle Rechner ansehen" */
.nav__mega-alle {
  margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--border);
}
.nav__mega-alle a b { color: var(--brand-light); }
.nav__mega-alle a b::after { content: " →"; }

/* ---------- Eyebrow / Readout-Label ----------
   Kleiner Signal-Strich statt Pill-Badge — dasselbe Motiv wie die
   Pace-/Fuel-Linien im Hero, nur auf Textgröße heruntergebrochen. */
.eyebrow, .hero__kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.eyebrow::before, .hero__kicker::before {
  content: ""; display: inline-block; width: 18px; height: 2px;
  background: var(--brand); border-radius: 1px; flex-shrink: 0;
}
.eyebrow { margin-bottom: .7rem; }
.hero__kicker { margin-bottom: 1.3rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__glow {
  position: absolute; top: -26%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 140%;
  background: radial-gradient(closest-side, rgba(16,185,129,.14), rgba(16,185,129,.04) 55%, transparent 72%);
  pointer-events: none; z-index: 0;
}

/* Signatur-Element: zwei ineinander verwobene Linien — Pace (Grün) und
   Fuel (Amber) — als grafische Übersetzung des Produktnamens. Zeichnet
   sich beim Laden einmal nach, dann ruhig im Hintergrund. */
.pace-lines {
  position: absolute; top: clamp(-10px, 2vw, 20px); left: 0;
  width: 100%; height: clamp(120px, 20vw, 220px);
  z-index: 0; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.pace-lines__path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pace-lines__path--pace { stroke: var(--brand); opacity: .5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: paceDraw 2.2s .2s cubic-bezier(.4,0,.2,1) forwards; }
.pace-lines__path--fuel { stroke: var(--fuel); opacity: .38; stroke-dasharray: 1; stroke-dashoffset: 1; animation: paceDraw 2.2s .5s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes paceDraw { to { stroke-dashoffset: 0; } }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-muted); max-width: 34rem; }
.hero__actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__trust { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.hero__trust li { position: relative; color: var(--text-muted); font-size: .9rem; font-weight: 500; padding-left: 1.4rem; }
.hero__trust li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Hero App-Mockup ---------- */
.hero__mockup { perspective: 1600px; position: relative; z-index: 1; }
.mock {
  background: linear-gradient(160deg, var(--surface) 0%, #0b1220 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform .5s ease;
}
.hero__mockup:hover .mock { transform: rotateY(0) rotateX(0); }
.mock__topbar { display: flex; align-items: center; gap: .55rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.mock__logo { width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color:#04150e; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.mock__brand { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.mock__badge { margin-left: auto; font-family: var(--font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--coach-light); background: rgba(91,141,239,.14); padding: .25rem .5rem; border-radius: 6px; }
.mock__body { padding: 1.2rem; }
.mock__greeting { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.mock__greeting strong { font-size: 1.15rem; }
.mock__greeting span { color: var(--text-dim); font-size: .82rem; font-family: var(--font-mono); }
.mock__grid { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.mock__ring-card { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.ring__value {
  /* Umfang bei r=52 ≈ 327; dashoffset 62 => ~81 % gefüllt (passend zu "447 kcal übrig") */
  fill: none; stroke: var(--fuel); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 62;
}
.mock__ring-label { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.mock__ring-label b { font-family: var(--font-mono); font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.mock__ring-label span { font-size: .68rem; color: var(--text-dim); }
.mock__macros-title { font-size: .8rem; color: var(--text-muted); margin-bottom: .6rem; }
.macro { display: grid; grid-template-columns: 1fr; gap: .28rem; margin-bottom: .6rem; }
.macro span { font-size: .74rem; color: var(--text-dim); }
.macro i {
  display: block; height: 7px; border-radius: 999px;
  background: var(--surface-3); position: relative;
}
.macro i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--fuel-dark), var(--fuel-light)); border-radius: 999px; }
.mock__plan { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.mock__plan-title { font-size: .78rem; color: var(--text-muted); }
.mock__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.mock__chips span { font-size: .72rem; color: var(--brand-light); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.2); padding: .22rem .6rem; border-radius: 7px; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(18,26,44,.5) 12%, rgba(18,26,44,.5) 88%, transparent); }
.section__head { max-width: 42rem; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.section__lead { margin-top: 1rem; color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--brand-light); background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.2);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__icon--pace  { color: var(--brand-light); background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.22); }
.feature__icon--fuel  { color: var(--fuel-light); background: rgba(245,165,36,.14); border-color: rgba(245,165,36,.28); }
.feature__icon--coach { color: var(--coach-light); background: rgba(91,141,239,.14); border-color: rgba(91,141,239,.28); }
.feature__tag {
  display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem;
}
.feature__tag--pace  { color: var(--brand-light); }
.feature__tag--fuel  { color: var(--fuel-light); }
.feature__tag--coach { color: var(--coach-light); }
.feature h3 { font-size: 1.18rem; letter-spacing: -.01em; margin-bottom: .5rem; }
.feature p { color: var(--text-muted); font-size: .96rem; }
.feature strong { color: var(--text); font-weight: 600; }

.features__hint { text-align: center; color: var(--text-dim); font-size: .92rem; margin: -1.2rem 0 1.8rem; }
.feature { cursor: pointer; }
.feature:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.feature__more { display: inline-block; margin-top: 1rem; color: var(--brand-light); font-size: .9rem; font-weight: 600; }
.feature:hover .feature__more { text-decoration: underline; }

/* ---------- Feature-Detail-Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 8, 15, .74);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; animation: modalFade .2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 720px;
  max-height: 90vh; overflow-y: auto;
  background: linear-gradient(160deg, var(--surface), #0b1220);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.modal__close {
  position: absolute; top: .9rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.modal__close:hover { color: var(--text); border-color: var(--border-strong); }
.modal__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; padding-right: 2.5rem; }
.modal__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--brand-light); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.2); flex-shrink: 0; }
.modal__icon svg { width: 24px; height: 24px; }
.modal__head h3 { font-size: clamp(1.2rem, 3vw, 1.4rem); letter-spacing: -.01em; }

.fdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.fdetail__text p { color: var(--text-muted); margin-bottom: 1rem; }
.fdetail__list { list-style: none; display: grid; gap: .6rem; }
.fdetail__list li { position: relative; padding-left: 1.7rem; color: var(--text); font-size: .95rem; }
.fdetail__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Feature-Vorschau-Mockups */
.fmock { background: var(--surface-900); border: 1px solid var(--border-strong); border-radius: 14px; padding: .9rem; display: grid; gap: .5rem; }
.fmock__bar { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-muted); padding: .5rem .6rem; background: var(--surface-2); border-radius: 9px; }
.fmock__bar b { color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.fmock__row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-muted); padding: .1rem .6rem; }
.fmock__row b { color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.fmock__add { text-align: center; font-size: .8rem; color: var(--brand-light); border: 1px dashed rgba(16,185,129,.3); border-radius: 9px; padding: .5rem; }
.fmock__ex { display: flex; justify-content: space-between; font-size: .82rem; padding: .4rem .6rem; background: var(--surface-2); border-radius: 8px; }
.fmock__ex span { color: var(--text); }
.fmock__ex em { color: var(--text-muted); font-style: normal; font-family: var(--font-mono); }
.fmock__tabs { display: flex; gap: .3rem; }
.fmock__tabs span { font-size: .74rem; color: var(--text-dim); padding: .25rem .5rem; border-radius: 7px; background: var(--surface-2); font-family: var(--font-mono); }
.fmock__tabs span.on { background: var(--brand-500); color: #04150e; font-weight: 600; }
.fmock__goal { font-size: .74rem; color: var(--text-dim); text-align: center; padding-top: .4rem; margin-top: .2rem; border-top: 1px solid var(--border); font-family: var(--font-mono); }
.fmock__wo { display: flex; flex-direction: column; padding: .5rem .6rem; background: var(--surface-2); border-radius: 9px; }
.fmock__wo b { font-size: .85rem; }
.fmock__wo span { font-size: .75rem; color: var(--text-muted); font-family: var(--font-mono); }
.fmock__src { text-align: center; font-size: .72rem; color: var(--brand-light); }
.fmock__member { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; background: var(--surface-2); border-radius: 9px; }
.fmock__ava { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--text); display: grid; place-items: center; font-size: .8rem; font-weight: 600; flex-shrink: 0; }
.fmock__member b { font-size: .85rem; display: block; }
.fmock__member em { font-size: .72rem; color: var(--text-muted); font-style: normal; }
/* Chat-Blasen im Nachrichten-Mockup: eingehend links, eigene Antwort rechts */
.fmock__msg { max-width: 88%; padding: .5rem .65rem; border-radius: 12px; background: var(--surface-2); }
.fmock__msg b { display: block; font-size: .7rem; color: var(--coach-light); margin-bottom: .15rem; }
.fmock__msg span { font-size: .78rem; color: var(--text-muted); line-height: 1.45; }
.fmock__msg--out { margin-left: auto; background: rgba(91,141,239,.14); border: 1px solid rgba(91,141,239,.26); }
.fmock__msg--out span { color: var(--text); }

.fmock--center { place-items: center; text-align: center; gap: .8rem; padding: 1.6rem; }
.fmock__shield { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--brand-light); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.22); }
.fmock__shield svg { width: 30px; height: 30px; }
.fmock__tenants { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.fmock__tenants span { font-size: .75rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: .3rem .6rem; border-radius: 8px; }
.fmock__note { font-size: .72rem; color: var(--brand-light); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 560px) {
  .fdetail { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; list-style: none; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.step__num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: #04150e;
  background: var(--brand); margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.step p { color: var(--text-muted); font-size: .96rem; }

/* ---------- Cards (Für wen) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: linear-gradient(160deg, var(--surface), #0b1220);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.card h3::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--brand); margin-bottom: 1rem; }
.card p { color: var(--text-muted); font-size: .97rem; }

/* ---------- Preise ---------- */
/* Zwei Preisbausteine (Trainer- und Mitglieder-Lizenz) – mittig gesetzt, damit
   sie nicht links kleben, seit die Einrichtungsgebühr entfallen ist. */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 46rem; margin-inline: auto; }
.pcard {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pcard--accent {
  border-color: rgba(16,185,129,.4);
  background: linear-gradient(160deg, rgba(16,185,129,.10), var(--surface) 60%);
  box-shadow: 0 20px 50px -30px rgba(16,185,129,.5);
}
.pcard__label { font-size: .82rem; font-weight: 600; color: var(--text-muted); letter-spacing: .03em; text-transform: uppercase; }
.pcard__price { display: flex; align-items: baseline; gap: .2rem; margin-top: .7rem; }
.pcard__num { font-family: var(--font-mono); font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.pcard--accent .pcard__num { color: var(--brand-light); }
.pcard__cur { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; color: var(--text-muted); }
.pcard__unit { color: var(--text-dim); font-size: .88rem; margin-top: .35rem; }
.pcard__desc { color: var(--text-muted); font-size: .93rem; margin-top: 1rem; }
.pcard__desc strong { color: var(--text); font-weight: 600; }
.pcard__tag {
  align-self: flex-start; margin-top: 1rem; font-size: .74rem; font-weight: 600;
  color: var(--brand-light); background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25); border-radius: 999px; padding: .25rem .7rem;
}

/* Preisrechner */
.calc {
  margin-top: 1.6rem; border-radius: var(--radius-lg);
  border: 1px solid rgba(16,185,129,.28);
  background: linear-gradient(150deg, rgba(16,185,129,.10), rgba(16,185,129,.02));
  padding: clamp(1.4rem, 4vw, 2.2rem);
}
.calc__head { text-align: center; margin-bottom: 1.6rem; }
.calc__title { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
.calc__sub { color: var(--text-muted); font-size: .95rem; margin-top: .4rem; }
.calc__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.4rem; align-items: stretch; }
.calc__controls { display: flex; flex-direction: column; gap: .8rem; }

.stepper {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface-900); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: .9rem 1rem;
}
.stepper__info { display: flex; flex-direction: column; min-width: 0; }
.stepper__label { font-weight: 600; font-size: .95rem; }
.stepper__hint { font-size: .76rem; color: var(--text-dim); }
.stepper__ctrl { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.stepper__btn {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1.2rem; line-height: 1; font-weight: 600;
  display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.stepper__btn:hover:not(:disabled) { background: var(--brand-500); border-color: var(--brand-500); color: #04150e; }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper__value { min-width: 2.4rem; text-align: center; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.calc__lines { list-style: none; display: grid; gap: .45rem; margin-top: .4rem; padding: 0 .2rem; }
.calc__lines li { display: flex; justify-content: space-between; font-size: .88rem; color: var(--text-muted); }
.calc__lines b { color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.calc__result {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--surface-900); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 1.4rem;
}
.calc__resultLabel { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 600; }
.calc__total {
  font-family: var(--font-mono); font-size: clamp(2.4rem, 6vw, 3.1rem); font-weight: 600; letter-spacing: -.02em;
  color: var(--brand-light); line-height: 1.05; margin-top: .2rem; font-variant-numeric: tabular-nums;
}
.calc__once { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.calc__once b, .calc__year b { color: var(--text); font-family: var(--font-mono); }
.calc__year { font-size: .82rem; color: var(--text-dim); margin-top: .3rem; }
.calc__cta { margin-top: 1.2rem; width: 100%; }

.pricing__note { margin-top: 1.4rem; text-align: center; color: var(--text-dim); font-size: .85rem; max-width: 52rem; margin-left: auto; margin-right: auto; }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.privacy .section__title, .privacy .section__lead { text-align: left; }
.privacy .eyebrow { text-align: left; }
.checklist { list-style: none; margin-top: 1.6rem; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text); font-size: 1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(16,185,129,.14) no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  border: 1px solid rgba(16,185,129,.25);
}
.privacy__panel {
  background: linear-gradient(160deg, var(--surface), #0b1220);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 2.4rem; text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.shield { width: 80px; height: 80px; margin: 0 auto 1.4rem; border-radius: 22px; display: grid; place-items: center; color: var(--brand-light); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.22); }
.shield svg { width: 44px; height: 44px; }
.shield__tenants { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.shield__tenants span { font-size: .82rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: .4rem .8rem; border-radius: 9px; }
.shield__note { margin-top: 1rem; font-family: var(--font-mono); font-size: .8rem; color: var(--brand-light); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- CTA ---------- */
.cta { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.cta__inner {
  text-align: center;
  background: linear-gradient(150deg, rgba(16,185,129,.16), rgba(16,185,129,.03));
  border: 1px solid rgba(16,185,129,.28);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.5rem);
}
.cta__inner h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -.02em; font-weight: 700; }
.cta__inner p { margin: 1rem auto 0; color: var(--text-muted); max-width: 38rem; font-size: 1.05rem; }
.cta__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta__contact { margin-top: 1.1rem; color: var(--text-muted); font-size: .95rem; }
.cta__contact a { color: var(--brand-light); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.cta__contact a:hover { border-bottom-color: var(--brand-light); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 1rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; padding-bottom: 2rem; }
.footer__brand { max-width: 20rem; }
.footer__brand p { margin-top: .9rem; color: var(--text-muted); font-size: .92rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; align-content: flex-start; }
.footer__links a { color: var(--text-muted); font-size: .92rem; transition: color .2s ease; }
.footer__links a:hover { color: var(--brand-light); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; padding: 1.4rem 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .85rem; font-family: var(--font-mono); }

/* ---------- Unterseiten-Header (Impressum/Datenschutz) ---------- */
.subnav .nav__inner { justify-content: space-between; }
.subnav__back { color: var(--text-muted); font-size: .93rem; font-weight: 500; transition: color .2s ease; }
.subnav__back:hover { color: var(--brand-light); }

/* ---------- Rechtsseiten (Impressum/Datenschutz) ---------- */
.legal { max-width: 780px; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.legal__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.legal__updated { margin-top: .6rem; color: var(--text-dim); font-size: .9rem; }
.legal__note {
  margin: 1.8rem 0; padding: 1rem 1.2rem;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.22);
  border-radius: 14px; color: var(--text-muted); font-size: .92rem;
}
.legal h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; margin: 2.4rem 0 .8rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.legal p { color: var(--text-muted); margin-bottom: .9rem; }
.legal ul { color: var(--text-muted); margin: 0 0 .9rem 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--brand-light); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.legal a:hover { border-bottom-color: var(--brand-light); }
.legal address { font-style: normal; color: var(--text); line-height: 1.8; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .placeholder {
  color: var(--brand-light); background: rgba(16,185,129,.1);
  padding: 0 .35em; border-radius: 4px; font-style: normal; font-weight: 500;
  border: 1px dashed rgba(16,185,129,.4);
}

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mockup { max-width: 420px; margin: 2.6rem auto 0; }
  .mock { transform: none; }
  .privacy { grid-template-columns: 1fr; }
  .features, .steps, .cards, .pricing { grid-template-columns: repeat(2, 1fr); }
  .calc__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__burger { display: flex; }

  /* Megamenü am Telefon: keine schwebende Tafel, sondern ein Abschnitt im
     aufgeklappten Menü. Sonst läge sie außerhalb des Bildschirms. */
  .nav__hat-btn {
    width: 100%; justify-content: space-between;
    padding: .85rem .2rem; border-bottom: 1px solid var(--border); font-size: 1rem;
  }
  .nav__mega {
    position: static; background: none; box-shadow: none;
    border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    animation: none;
  }
  .nav__mega-inner, .nav__mega--zwei .nav__mega-inner {
    grid-template-columns: 1fr; gap: 1.2rem; padding: .8rem 0 1rem .7rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__mega a { padding: .5rem .5rem; margin-left: -.5rem; border-bottom: 0; }
  .nav__mega a span { display: none; }   /* Beschreibungen sind hier nur Ballast */

  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    /* Deckend, nicht durchscheinend. Bei sechs Menüzeilen war der Glaseffekt
       hübsch; seit das Megamenü den ganzen Bildschirm füllt, liest man den
       Seiteninhalt dahinter mit. */
    background: var(--bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: .6rem 24px 1.4rem;
    transform: translateY(-140%);
    transition: transform .35s ease;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .85rem .2rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__cta, .nav__login { text-align: center; }
  .nav__cta { margin-top: .8rem; padding: .8rem 1.05rem; }
  .nav__login { border-bottom: 1px solid var(--border) !important; }
  .pace-lines { display: none; }
}

@media (max-width: 620px) {
  .features, .steps, .cards, .pricing { grid-template-columns: 1fr; }
  .hero__trust { gap: .7rem 1.4rem; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock { transform: none; }
  .pace-lines__path--pace, .pace-lines__path--fuel { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Hinweis auf den Umfang der kostenlosen Testphase (über den Preisbausteinen) */
.trialbox { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1.4rem; padding: 1.3rem 1.5rem; background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.03)); border: 1px solid rgba(16,185,129,.28); border-radius: var(--radius); }
.trialbox__badge { flex-shrink: 0; font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #04150e; background: var(--brand); padding: .4rem .8rem; border-radius: 999px; }
.trialbox__text { flex: 1 1 22rem; margin: 0; font-size: .95rem; color: var(--text-muted); line-height: 1.6; }
.trialbox__text strong { color: var(--text); }
@media (max-width: 720px) { .trialbox { flex-direction: column; align-items: flex-start; } }

/* ===========================================================================
   Content-Seiten (Personal Trainer, Ernährungsberater, Trainingsplan,
   Ernährungsplan). Nutzen dieselben Bausteine wie die Startseite; hier stehen
   nur die Abweichungen für den einspaltigen Kopfbereich.
   =========================================================================== */
.hero--sub { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
/* Ohne z-index läge der Text hinter dem Farbschleier des Kopfbereichs */
.hero--sub .container { position: relative; z-index: 1; }
.hero--sub .hero__title { max-width: 22ch; }
.hero--sub .hero__sub { max-width: 46rem; }

/* Verweiskarten am Seitenende: die Überschrift ist der Link */
.card h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(52,211,153,.4); }
.card h3 a:hover { color: var(--brand-light); border-bottom-color: var(--brand-light); }

/* ===========================================================================
   Persönlicher Kontaktbereich (Gründer)
   =========================================================================== */
.founder { display: flex; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: flex-start; }
.founder__photo {
  flex: 0 0 auto; width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(16,185,129,.35);
  background: var(--surface-2);
}
.founder__text { min-width: 0; }
.founder__text p { color: var(--text-muted); max-width: 46rem; }
.founder__actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.founder__note { margin-top: 1.2rem; font-size: .9rem; }
.founder__note a { color: var(--brand-light); }

@media (max-width: 640px) {
  .founder { flex-direction: column; align-items: center; text-align: center; }
  .founder__actions { justify-content: center; }
}

/* ===================================================================
   Content-Bereiche: Ratgeber, Glossar, Rechner, Vergleiche
   ===================================================================
   Alles ab hier gehört zu den Seiten aus PACEFUEL-SEO-AUSBAU.md und
   wird von den Vorlagen in /templates/ benutzt. Bewusst in derselben
   Datei: Sie liegt ohnehin auf jeder Seite im Cache, eine zweite
   Stylesheet-Datei kostete eine weitere Anfrage.
   =================================================================== */

/* ---------- Brotkrumen ---------- */
/* Pflicht laut Anleitung: sichtbar im HTML UND als Schema. Die bestehenden
   Unterseiten hatten sie nur im Schema – für Google zählt beides. */
.breadcrumb { padding-top: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--text-dim); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-light); }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }

/* ---------- Artikelkopf ---------- */
.artikel { max-width: 760px; padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.artikel__title { font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin-top: .8rem; }
.artikel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1rem; font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim); }
.artikel__meta a { color: var(--brand-light); }
.artikel__meta span:not(:last-child)::after { content: "·"; margin-left: .9rem; color: var(--border-strong); }

/* ---------- Kurzantwort / Definition ----------
   Steht direkt unter der H1, vor allem anderen. Featured Snippets und
   KI-Antworten ziehen genau diesen Absatz – deshalb keine Einleitung
   davor, sondern sofort die Antwort. */
.kurzantwort {
  margin: 1.8rem 0; padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(16,185,129,.03));
  border: 1px solid rgba(16,185,129,.24); border-left-width: 3px;
  border-radius: var(--radius);
}
.kurzantwort p { font-size: 1.02rem; line-height: 1.65; color: var(--text); }
.kurzantwort p + p { margin-top: .7rem; }

/* ---------- Inhaltsverzeichnis ---------- */
.toc { margin: 2rem 0; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.toc__title { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .7rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: .45rem; }
.toc li { counter-increment: toc; font-size: .93rem; }
.toc li::before { content: counter(toc) "."; color: var(--text-dim); font-family: var(--font-mono); margin-right: .5rem; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--brand-light); }

/* ---------- Fließtext ---------- */
.prosa h2 { font-size: clamp(1.35rem, 2.8vw, 1.7rem); margin: 2.4rem 0 .8rem; }
.prosa h3 { font-size: 1.12rem; margin: 1.8rem 0 .6rem; }
.prosa p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.prosa strong { color: var(--text); font-weight: 600; }
.prosa a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 3px; }
.prosa ul, .prosa ol { color: var(--text-muted); margin: 0 0 1.2rem 1.2rem; display: grid; gap: .4rem; line-height: 1.7; }
.prosa li::marker { color: var(--brand); }
.prosa blockquote { margin: 1.4rem 0; padding-left: 1.1rem; border-left: 3px solid var(--brand-dark); color: var(--text-muted); font-style: italic; }

/* Quellenangaben – jede Zahl braucht eine, das ist Regel 2 der Anleitung */
.quelle { font-size: .82rem; color: var(--text-dim); margin-top: -.5rem; margin-bottom: 1.4rem; }
.quelle a { color: var(--text-muted); }

/* ---------- Tabellen ----------
   Waagerecht scrollbar statt gequetscht: Auf dem Telefon ist eine
   Vergleichstabelle sonst unlesbar, und die Seite selbst darf nie
   seitlich scrollen. */
.tabelle { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
.tabelle table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 34rem; }
.tabelle th, .tabelle td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
.tabelle th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .84rem; }
.tabelle td { color: var(--text-muted); }
.tabelle tr:last-child td { border-bottom: none; }
.tabelle td strong { color: var(--text); }
.tabelle .ja { color: var(--brand-light); }
.tabelle .nein { color: var(--text-dim); }

/* ---------- Produkt-Hinweis ----------
   Ein Absatz, kein Popup. Der Leser ist wegen seiner Frage hier. */
.produktbox {
  margin: 2.4rem 0; padding: 1.3rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand); border-radius: var(--radius);
}
.produktbox p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }
.produktbox a { color: var(--brand-light); font-weight: 600; }

/* ---------- Weiterlesen ---------- */
.weiterlesen { margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.weiterlesen h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.weiterlesen ul { list-style: none; display: grid; gap: .55rem; margin: 0; }
.weiterlesen a { color: var(--text-muted); font-size: .95rem; }
.weiterlesen a:hover { color: var(--brand-light); }
.weiterlesen a::before { content: "→"; color: var(--brand); margin-right: .5rem; }

/* ---------- FAQ ---------- */
.faq { margin: 2.6rem 0 0; }
.faq h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.faq__item { border-bottom: 1px solid var(--border); padding: .9rem 0; }
.faq__item h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--text); }
.faq__item p { color: var(--text-muted); font-size: .93rem; line-height: 1.7; }

/* ---------- Glossar ---------- */
.glossar__hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.glossar__eintrag { display: block; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.glossar__eintrag:hover { border-color: var(--brand-dark); }
.glossar__eintrag b { display: block; font-size: .95rem; color: var(--text); }
.glossar__eintrag span { font-size: .8rem; color: var(--text-dim); }
.glossar__verwandt { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.glossar__verwandt a { font-size: .82rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: .35rem .7rem; border-radius: 8px; }
.glossar__verwandt a:hover { color: var(--brand-light); border-color: var(--brand-dark); }

/* ---------- Rechner ---------- */
.rechner {
  background: linear-gradient(160deg, var(--surface), #0b1220);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 4vw, 2rem); margin: 1.8rem 0;
}
.rechner__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: start; }
.rechner__feld { margin-bottom: .9rem; }
.rechner__feld label { display: block; font-size: .84rem; color: var(--text-muted); margin-bottom: .35rem; }
.rechner__feld input, .rechner__feld select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: .6rem .75rem; color: var(--text);
  font-family: var(--font-mono); font-size: .95rem;
}
.rechner__feld input:focus, .rechner__feld select:focus { outline: none; border-color: var(--brand); }
.rechner__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.rechner__ausgabe {
  background: var(--surface-900); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 1.3rem; text-align: center;
}
.rechner__label { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.rechner__wert { font-family: var(--font-mono); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 600; color: var(--brand-light); line-height: 1.1; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.rechner__zeilen { list-style: none; display: grid; gap: .4rem; margin: 1.1rem 0 0; text-align: left; }
.rechner__zeilen li { display: flex; justify-content: space-between; font-size: .86rem; color: var(--text-muted); }
.rechner__zeilen b { color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rechner__hinweis { font-size: .8rem; color: var(--text-dim); margin-top: .9rem; }

@media (max-width: 820px) {
  .rechner__grid { grid-template-columns: 1fr; }
}
