/* trainbest.app. Farben aus native/src/theme/tokens.ts: dunkel wie die App, hell folgt dem Gerät
   (dort die abgedunkelten Akzente der App, damit Text auf heller Fläche über 4,5:1 bleibt).
   Schrift selbst ausgeliefert, keine Anfrage an fremde Server (deshalb kein Cookie-Banner). */
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("/fonts/SpaceGrotesk_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/SpaceGrotesk_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/SpaceGrotesk_700Bold.woff2") format("woff2"); }

:root {
  --bg: #0B0E12; --card: #11161C; --soft: #171E26; --line: #222B35; --key: #2A3441;
  --text: #E8EDF2; --dim: #AEB9C4; --faint: #8D99A6;
  --body: #62A8FF; --eat: #22C55E; --sleep: #9D8CFF; --train: #FFA94D; --gut: #96D63A; --warn: #E8A13C;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 18px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F6F8; --card: #FFFFFF; --soft: #EBEEF2; --line: #DFE4EA; --key: #D6DDE6;
    --text: #151B22; --dim: #5E6A76; --faint: #6B7885;
    --body: #2563EB; --eat: #166534; --sleep: #6D28D9; --train: #C2410C; --gut: #456F0D; --warn: #9A3412;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--body); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
.lead { color: var(--dim); font-size: 19px; max-width: 60ch; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
section { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.kopf-sec { display: grid; gap: 14px; margin-bottom: 40px; }
.kopf-sec.ohne { margin-bottom: 0; }
.sprunglink { position: absolute; left: -9999px; }
.sprunglink:focus { left: 16px; top: 16px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Kopfzeile */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: 0.04em; }
.marke img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--dim); }
nav a { text-decoration: none; } nav a:hover { color: var(--text); }
.sprache { display: flex; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; overflow: hidden; }
.sprache a { padding: 5px 11px; text-decoration: none; color: var(--faint); }
.sprache a[aria-current] { background: var(--key); color: var(--text); }
@media (max-width: 860px) { nav { display: none; } .sprache { margin-left: auto; } }

/* Start */
.held { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); border-top: 0; }
.held .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.raster { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(14px, 2vw, 24px); row-gap: 2px; align-items: baseline; margin-bottom: 32px; }
.raster b { font-size: clamp(64px, 11vw, 132px); font-weight: 700; line-height: 0.92; letter-spacing: -0.04em; }
.raster i { font-style: normal; font-size: clamp(18px, 2.4vw, 26px); font-weight: 500; color: var(--dim); }
.raster i em { font-style: normal; color: var(--faint); font-weight: 400; }
.c-body { color: var(--body); } .c-eat { color: var(--eat); } .c-sleep { color: var(--sleep); } .c-train { color: var(--train); }
.held h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; max-width: 26ch; margin-bottom: 16px; letter-spacing: -0.01em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; line-height: 1.15; }
.store.bald { background: var(--key); color: var(--dim); }
.store small { display: block; font-size: 11px; opacity: 0.8; }
.store strong { font-size: 17px; font-weight: 700; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.hinweis { margin-top: 14px; font-size: 14px; color: var(--faint); }
.telefon { justify-self: center; width: min(330px, 100%); aspect-ratio: 600 / 1200; border-radius: 40px; border: 8px solid var(--key); overflow: hidden; background: var(--card); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.telefon img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .held .wrap { grid-template-columns: 1fr; } .telefon { width: min(260px, 80%); } }

.rabatt { background: color-mix(in srgb, var(--sleep) 14%, transparent); border-bottom: 1px solid var(--line); font-size: 15px; }
.rabatt .wrap { padding-block: 10px; }

/* Säulen */
.saeulen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.saeule { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.saeule .bst { font-size: 44px; font-weight: 700; line-height: 1; }
.saeule h3 { color: var(--text); }
.punktliste { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--dim); font-size: 15px; }
.punktliste li { padding-left: 16px; position: relative; }
.punktliste li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: 0.5; }
.saeule figure { margin: auto 0 0; padding-top: 6px; background-clip: content-box; border-radius: 12px; overflow: hidden; aspect-ratio: 600 / 660; background: var(--soft); }
.saeule figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 980px) { .saeulen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .saeulen { grid-template-columns: 1fr; } }

/* Zwei Spalten, Coach-Brief */
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .zwei { grid-template-columns: 1fr; } }
.brief { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.brief-kopf { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }
.brief p { color: var(--dim); font-size: 16px; }
.brief p strong { color: var(--text); font-weight: 500; }
.ziele { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ziel { background: var(--soft); border-radius: 12px; padding: 12px; min-width: 0; }
.ziel span { display: block; font-size: 12px; color: var(--faint); }
.ziel b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ziel small { display: block; font-size: 12px; color: var(--gut); font-weight: 500; }
.punkte { display: grid; gap: 18px; margin-top: 28px; }
.punkt { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.punkt p { color: var(--dim); } .punkt strong { color: var(--text); font-weight: 500; display: block; }
.haken { width: 22px; height: 22px; stroke: var(--gut); fill: none; stroke-width: 2; margin-top: 3px; }

/* Uhr, Widgets, Freunde */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .kacheln { grid-template-columns: 1fr; } }
.kachel { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; }
.kachel p { color: var(--dim); font-size: 16px; }
.mini { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.w { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; width: 108px; aspect-ratio: 1; display: grid; align-content: space-between; font-size: 12px; color: var(--faint); }
.w b { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.ring { width: 46px; height: 46px; }

/* Preise */
.umschalter { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.umschalter button { font: inherit; font-size: 15px; font-weight: 500; border: 0; border-radius: 999px; padding: 8px 18px; background: transparent; color: var(--dim); cursor: pointer; }
.umschalter button[aria-pressed="true"] { background: var(--key); color: var(--text); }
.tarife { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tarife { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tarife { grid-template-columns: 1fr; } }
.tarif { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; align-content: start; }
.tarif.hervor { border-color: var(--sleep); }
.tarif-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.marker { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sleep) 18%, transparent); color: var(--sleep); white-space: nowrap; }
.marker.gratis { background: color-mix(in srgb, var(--gut) 18%, transparent); color: var(--gut); }
.preis { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.preis small { font-size: 15px; font-weight: 400; color: var(--faint); letter-spacing: 0; }
.zusatz { font-size: 13px; color: var(--faint); min-height: 1.4em; }
.tarif ul { margin: 0; padding: 14px 0 0; list-style: none; display: grid; gap: 9px; font-size: 15px; color: var(--dim); border-top: 1px solid var(--line); }
.tarif li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.tarif li .haken { width: 16px; height: 16px; stroke-width: 2.4; margin-top: 4px; }
.fuss-preis { margin-top: 20px; font-size: 14px; color: var(--faint); max-width: 75ch; }

/* Tabelle */
.tabelle { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.z { text-align: right; }
tr:last-child td { border-bottom: 0; }

/* Daten-Band */
.band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .band { grid-template-columns: 1fr; } }
.band div { display: grid; gap: 6px; align-content: start; }
.band p { color: var(--dim); font-size: 15px; }

/* Fragen */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--dim); padding-bottom: 20px; max-width: 65ch; }
details p + p { margin-top: -8px; }

/* Textseiten (Support, 404) */
.text { padding-block: clamp(40px, 6vw, 72px); border-top: 0; }
.text .lead { margin-top: 14px; }
.text h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
.karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 720px) { .karten { grid-template-columns: 1fr; } }
.karte { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.karte p, .karte li { color: var(--dim); font-size: 16px; }
.karte ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.mail { font-size: 20px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.knopf { display: inline-block; justify-self: start; padding: 10px 18px; border-radius: 12px; background: var(--key); color: var(--text); text-decoration: none; font-weight: 500; }

/* Fuß */
footer { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--faint); }
footer .wrap { display: grid; gap: 20px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.fuss-links a { text-decoration: none; color: var(--dim); }
.fuss-links a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .raster b { animation: rein 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .raster b:nth-of-type(2) { animation-delay: 0.06s; }
  .raster b:nth-of-type(3) { animation-delay: 0.12s; }
  .raster b:nth-of-type(4) { animation-delay: 0.18s; }
  @keyframes rein { from { transform: translateY(14px); } to { transform: none; } }
}
