/* CFN Mini-Kurs. Design tokens and components taken from kraftplan.completefighter.de:
   Oxblood #81151B, Teal #065166, Schwarz #0B0A09, Weiss #F7F6F3. Light mode only, no gradients on colour. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
:root {
  --bg: 247 246 243; --surface: 255 255 255; --surface-muted: 245 245 247;
  --fg-primary: 11 10 9; --fg-secondary: 31 31 35; --fg-muted: 82 82 91; --fg-subtle: 107 107 115;
  --border: 228 228 231; --border-strong: 212 212 216;
  --accent: 129 21 27; --blue: 6 81 102;
  --radius-md: 8px; --radius-lg: 12px; --radius-2xl: 18px;
  --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);
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  color-scheme: only light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; 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;
}
/* One column. Wider than the Kraftplan (520px) so the videos get room on a laptop. */
.wrap { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: rgb(var(--fg-primary)); }
p { margin: 0; }
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--fg-muted)); }

.card {
  background: linear-gradient(180deg, rgb(var(--surface)) 0%, rgb(var(--surface-muted)) 100%);
  border: 1px solid rgb(var(--border)); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--elev-2);
}

/* Hero: Oxblood card with the white CFN logo above the text */
.hero {
  border-radius: var(--radius-2xl); background: rgb(var(--accent)); color: #fff;
  padding: 22px 20px 24px; box-shadow: var(--elev-3); display: grid; gap: 14px;
}
.hero > div { 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, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero p { color: rgb(255 255 255 / 0.85); }
.hero img.hero-logo { width: 112px; height: auto; margin-bottom: 4px; }

/* Table of contents */
.toc { display: grid; gap: 14px; }
.steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.steps a {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-weight: 500;
  color: inherit; text-decoration: none; padding: 6px; margin: 0 -6px; border-radius: var(--radius-md);
}
.steps a:hover { background: rgb(var(--accent) / 0.05); }
.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);
}

/* Lessons */
.lessons { display: grid; gap: 16px; }
.lesson { display: grid; gap: 12px; scroll-margin-top: 16px; }
.lesson-head { display: grid; gap: 4px; }
.lesson-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.lesson-text { color: rgb(var(--fg-secondary)); }
.player iframe, .placeholder {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); background: #0b0a09;
}
.player { display: grid; gap: 8px; }
.placeholder {
  display: grid; place-items: center; color: rgb(255 255 255 / 0.6);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Closing call to action: Teal card with a white button */
.cta { border-radius: var(--radius-2xl); background: rgb(var(--blue)); 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); }
.btn-primary {
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 12px 16px; min-height: 48px; border-radius: var(--radius-md);
  background: rgb(var(--accent)); color: #fff;
  box-shadow: 0 1px 2px rgb(var(--accent) / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.15);
  transition: filter .12s ease, transform .04s ease;
}
.btn-primary:hover { filter: brightness(1.06); }
.cta .btn-primary { background: #fff; color: rgb(var(--accent)); box-shadow: 0 4px 12px rgb(0 0 0 / 0.2); }
.cta .btn-primary:hover { filter: brightness(0.97); }

/* Testimonials: one column on a phone so the chat text stays readable, two staggered columns from tablet width up. */
.proof { display: grid; gap: 16px; margin-top: 16px; }
.proof-head { display: grid; gap: 6px; }
.proof-head h2 { font-size: clamp(20px, 5.4vw, 24px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.proof-grid { columns: 1; column-gap: 12px; }
.proof-grid img {
  display: block; width: 100%; height: auto; margin: 0 0 12px; break-inside: avoid;
  border-radius: var(--radius-lg); border: 1px solid rgb(var(--border)); box-shadow: var(--elev-2); background: #0b0a09;
}
.proof-grid img:last-child { margin-bottom: 0; }
@media (min-width: 600px) { .proof-grid { columns: 2; } }
.btn-primary:active { transform: translateY(1px); }
:is(.btn-primary, .steps a, .site-foot a):focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.cta .btn-primary:focus-visible { outline-color: #fff; }

.site-foot { max-width: 720px; margin: 32px auto 0; display: grid; justify-items: center; font-size: 12px; }
.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; } html { scroll-behavior: auto; } }

/* Legal pages (Impressum, Datenschutz) */
.muted { color: rgb(var(--fg-muted)); }
.small { font-size: 13px; }
.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 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)); }
