/* Inter is served from this site (no Google Fonts request). Variable font, latin subset, SIL OFL (fonts/OFL.txt). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
/* Light mode only (Yvo 2026-10-27). Layout: one phone-width column on the app's ambient aura. Tokens are copied 1:1 from the
   Complete Fighter Network app (fighter-system/app/globals.css) so the page looks like the app. */
:root {
  --bg: 250 250 250; --surface: 255 255 255; --surface-muted: 245 245 247; --surface-hover: 244 244 245;
  --fg-primary: 10 10 10; --fg-secondary: 31 31 35; --fg-muted: 82 82 91; --fg-subtle: 107 107 115; --fg-on-accent: 255 255 255;
  --border: 228 228 231; --border-strong: 212 212 216; --ring: 220 38 38;
  --accent: 220 38 38; --accent-hover: 185 28 28; --accent-soft: 254 226 226;
  --amber: 180 83 9; --blue: 29 78 216;
  --hero-1: 153 27 27; --hero-2: 159 18 57; --hero-3: 109 40 217;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 14px; --radius-2xl: 18px;
  --elev-1: 0 1px 2px rgb(0 0 0 / 0.04);
  --elev-2: 0 1px 3px rgb(0 0 0 / 0.06), 0 0 0 1px rgb(0 0 0 / 0.02);
  --elev-3: 0 4px 16px rgb(0 0 0 / 0.08);
  --aura: linear-gradient(45deg, #ffe2ee 0%, #ffedf1 20%, #fff9fb 40%, #eff7ff 60%, #e1efff 80%, #dbf1f6 100%);
  --aura-filter: none;
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  color-scheme: only light;
}
:root {
  --gradient-accent: linear-gradient(180deg, rgb(var(--accent)) 0%, rgb(var(--accent-hover)) 100%);
  --gradient-surface-card: linear-gradient(180deg, rgb(var(--surface)) 0%, rgb(var(--surface-muted)) 100%);
  --gradient-hero:
    radial-gradient(120% 150% at 0% 0%, rgb(var(--accent) / 0.45) 0%, transparent 50%),
    radial-gradient(100% 150% at 100% 100%, rgb(var(--hero-3) / 0.35) 0%, transparent 55%),
    linear-gradient(135deg, rgb(var(--hero-1)) 0%, rgb(var(--hero-2)) 50%, rgb(var(--hero-3)) 100%);
  --glow-accent: 0 0 0 1px rgb(var(--accent) / 0.4), 0 4px 12px rgb(var(--accent) / 0.25);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: rgb(var(--bg)); color: rgb(var(--fg-primary));
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 48px;
  position: relative; isolation: isolate; min-height: 100%;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--aura); filter: var(--aura-filter); }
.wrap { max-width: 520px; margin: 0 auto; display: grid; gap: 16px; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: rgb(var(--fg-primary)); }
p { margin: 0; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--fg-muted)); }
.muted { color: rgb(var(--fg-muted)); }
.small { font-size: 13px; }

.card {
  background: var(--gradient-surface-card); border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--elev-2);
}
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: rgb(var(--surface-muted)); color: rgb(var(--fg-secondary)); border: 1px solid rgb(var(--border));
}
.badge-accent { background: rgb(var(--accent) / 0.08); color: rgb(var(--accent)); border-color: rgb(var(--accent) / 0.45); }

.btn-primary {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px 16px; min-height: 48px; border-radius: var(--radius-md);
  background: var(--gradient-accent); color: rgb(var(--fg-on-accent));
  box-shadow: var(--glow-accent), inset 0 1px 0 rgb(255 255 255 / 0.15);
  transition: filter .12s ease, transform .04s ease;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 500; font-size: 14px;
  color: rgb(var(--fg-muted)); padding: 6px 12px; border-radius: var(--radius-md);
}
.btn-ghost:hover { background: rgb(var(--surface-hover)); color: rgb(var(--fg-primary)); }
.btn-secondary {
  appearance: none; cursor: pointer; font: inherit; font-weight: 500; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 34px; border-radius: var(--radius-md);
  background: rgb(var(--surface)); color: rgb(var(--fg-primary)); border: 1px solid rgb(var(--border)); box-shadow: var(--elev-1);
}
.btn-secondary:hover { background: rgb(var(--surface-hover)); }
:is(.btn-primary, .btn-ghost, .btn-secondary, .opt, .seg button, .alt):focus-visible { outline: 2px solid rgb(var(--ring)); outline-offset: 2px; }
.btn-primary svg, .btn-secondary svg { width: 16px; height: 16px; flex: none; }

/* Hero: the app's brand gradient card with the CFN coach character */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-2xl); background: var(--gradient-hero);
  color: #fff; padding: 22px 20px; box-shadow: var(--elev-3);
}
/* Text runs full width; the coach stands in the bottom-right corner and only the intro line makes room for him. */
.hero > div { position: relative; z-index: 1; min-width: 0; display: grid; gap: 10px; }
.hero .section-title { color: rgb(255 255 255 / 0.75); }
.hero h1 { color: #fff; font-size: clamp(26px, 7.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero p { color: rgb(255 255 255 / 0.85); font-size: 15px; }
.hero .intro { padding-right: 92px; min-height: 84px; }
.hero img { position: absolute; right: 6px; bottom: 0; width: 104px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 16px rgb(0 0 0 / 0.35)); }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-weight: 500; }
.steps .n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: rgb(var(--accent) / 0.08); color: rgb(var(--accent)); border: 1px solid rgb(var(--accent) / 0.45);
}

/* Questions */
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: rgb(var(--border-strong)); }
.progress span.on { background: var(--gradient-accent); }
.opts { display: grid; gap: 10px; }
.opt {
  appearance: none; text-align: left; cursor: pointer; font: inherit; color: rgb(var(--fg-primary));
  background: var(--gradient-surface-card); border: 1px solid rgb(var(--border)); border-radius: var(--radius-lg);
  box-shadow: var(--elev-2); padding: 16px; display: grid; grid-template-columns: 1fr 20px; gap: 2px 12px; align-items: center;
  transition: background .12s ease, border-color .12s ease;
}
.opt:hover { border-color: rgb(var(--border-strong)); }
.opt.sel { border-color: rgb(var(--accent) / 0.6); background: rgb(var(--accent) / 0.06); }
.opt .t { font-weight: 600; font-size: 16px; }
.opt .s { grid-column: 1; color: rgb(var(--fg-muted)); font-size: 13px; }
.opt .dot { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgb(var(--border-strong)); }
.opt.sel .dot { border-color: rgb(var(--accent)); background: radial-gradient(circle, rgb(var(--accent)) 0 45%, transparent 50%); }

/* Result */
.summary { display: flex; flex-wrap: wrap; gap: 6px; }
/* Week bar and session switcher share one sticky block so they never overlap. */
.switch {
  display: grid; gap: 4px; padding: 4px; border-radius: var(--radius-lg);
  background: rgb(var(--surface-muted)); border: 1px solid rgb(var(--border));
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
}
/* 6-week trend: weight rises while volume falls; tapping a week selects it. */
/* Same side padding as .switch, so each week's point sits right above its W button (the bar is the x axis). */
.trend { display: grid; gap: 8px; padding: 14px 4px 4px; margin-bottom: -10px; }
.trend-head { padding: 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.legend { display: flex; gap: 12px; font-size: 12px; color: rgb(var(--fg-muted)); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 0; border-top: 2px solid rgb(var(--accent)); }
.legend i.vol { border-top: 2px dashed rgb(var(--fg-subtle)); }
.trend svg { display: block; width: 100%; height: auto; }
.trend [data-w] { cursor: pointer; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.seg.weeks { grid-template-columns: repeat(6, 1fr); padding-bottom: 4px; border-bottom: 1px solid rgb(var(--border)); }
.seg.weeks button { padding: 6px 0; min-height: 36px; font-size: 13px; }
.seg button {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: rgb(var(--fg-secondary));
  background: transparent; border-radius: var(--radius-md); padding: 8px 10px; min-height: 40px;
}
.seg button.on { background: rgb(var(--surface)); color: rgb(var(--fg-primary)); font-weight: 600; box-shadow: 0 0 0 1px rgb(var(--border)), var(--elev-1); }
.part { display: grid; gap: 10px; }
.part-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.part-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.part-head h3 .num {
  width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--gradient-accent); color: rgb(var(--fg-on-accent));
}
.ex { display: grid; gap: 10px; min-width: 0; }
.ex-top { min-width: 0; display: grid; gap: 2px; }
.ex-name { font-weight: 700; font-size: 17px; letter-spacing: -0.015em; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.ex-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid rgb(var(--border)); padding-top: 10px; }
.dose { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-feature-settings: "tnum"; }
.sets { font-weight: 700; font-size: 15px; }
.ramp { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.ramp i { width: 7px; border-radius: 2px 2px 0 0; background: rgb(var(--fg-subtle) / 0.35); }
.ramp i:last-child { background: var(--gradient-accent); }
.meta { font-size: 13px; color: rgb(var(--fg-muted)); display: flex; align-items: center; gap: 6px; }
.meta svg { width: 14px; height: 14px; flex: none; }
.cue { font-size: 13px; background: rgb(var(--surface-muted)); border: 1px solid rgb(var(--border)); border-radius: var(--radius-md); padding: 6px 10px; color: rgb(var(--fg-secondary)); }
.ss { border: 1px solid rgb(var(--accent) / 0.35); background: rgb(var(--accent) / 0.04); border-radius: var(--radius-xl); padding: 10px; display: grid; gap: 8px; }
.ss-pause { padding: 0 4px; font-weight: 500; color: rgb(var(--fg-secondary)); }
.ss-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgb(var(--fg-muted)); flex-wrap: wrap; }
.video-link { appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: rgb(var(--blue)); text-decoration: none; padding: 2px 0; }
@media (hover: hover) { .video-link:hover { text-decoration: underline; } }
.video-link:focus-visible { outline: 2px solid rgb(var(--ring)); outline-offset: 2px; border-radius: 4px; }
.video-link svg { width: 16px; height: 16px; flex: none; }
/* Exercise video player, opened inside the card. Shorts are portrait and capped so they fit on a phone screen. */
.player { display: grid; gap: 6px; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); background: #000; }
.player.short iframe { aspect-ratio: 9 / 16; width: min(100%, 300px, calc(70vh * 9 / 16)); justify-self: center; }
.yt-note { font-size: 11px; color: rgb(var(--fg-subtle)); margin-top: -4px; }
.yt-link { justify-self: end; font-size: 12px; color: rgb(var(--fg-muted)); }
.missing { border-style: dashed; background: transparent; box-shadow: none; }
.missing .ex-name { color: rgb(var(--fg-muted)); font-size: 15px; font-weight: 600; }
.rules ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.rules li::marker { color: rgb(var(--accent)); }
.safety { font-size: 13px; color: rgb(var(--amber)); font-weight: 500; }
.cta { border-radius: var(--radius-2xl); background: var(--gradient-hero); color: #fff; padding: 20px; display: grid; gap: 12px; box-shadow: var(--elev-3); }
.cta h3 { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.cta .section-title { color: rgb(255 255 255 / 0.75); }
a.btn-primary { text-decoration: none; }
.cta .btn-primary { background: #fff; color: rgb(153 27 27); box-shadow: 0 4px 12px rgb(0 0 0 / 0.2); }

/* Swap sheet: the app's modal look, docked to the bottom on phones */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; max-height: 82vh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: rgb(var(--surface)); color: rgb(var(--fg-primary)); border: 1px solid rgb(var(--border)); border-bottom: 0;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; box-shadow: var(--elev-3);
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.sheet-inner { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; }
.alt {
  appearance: none; text-align: left; cursor: pointer; font: inherit; color: rgb(var(--fg-primary));
  background: var(--gradient-surface-card); border: 1px solid rgb(var(--border)); border-radius: var(--radius-lg); box-shadow: var(--elev-1);
  padding: 12px 14px; display: grid; gap: 2px;
}
.alt:hover { border-color: rgb(var(--accent) / 0.5); }
.alt b { font-size: 15px; font-weight: 600; }
.alt small { color: rgb(var(--fg-muted)); font-size: 13px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  background: rgb(var(--fg-primary)); color: rgb(var(--bg)); padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 14px;
  box-shadow: var(--elev-3); max-width: calc(100% - 32px);
}
/* Footer with the legal links */
.site-foot { max-width: 520px; margin: 32px auto 0; display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 12px; color: rgb(var(--fg-subtle)); }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.site-foot a { color: rgb(var(--fg-muted)); text-decoration: none; padding: 4px 0; }
.site-foot a:hover { text-decoration: underline; color: rgb(var(--fg-primary)); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Legal pages (Impressum, Datenschutz, Gesundheitshinweis) */
.legal { display: grid; gap: 22px; font-size: 14px; color: rgb(var(--fg-secondary)); }
.legal h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }
.legal h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }
.legal h3 { font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 8px; }
.legal ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.legal address { font-style: normal; }
.legal a { color: rgb(var(--blue)); overflow-wrap: anywhere; }
.legal .back { justify-self: start; color: rgb(var(--fg-muted)); font-size: 14px; font-weight: 500; text-decoration: none; }
.legal .back:hover { color: rgb(var(--fg-primary)); }
