/* Startseite als Lernplattform: dunkler Kopf mit Drahtgitter-Welle, helle Abschnitte darunter,
   ein dunkles Band für den Blick in den Kurs. Farbschema „Hell + Royalblau“.
   Eigenes Stylesheet nur für die Startseite (body.plat), unabhängig von Tailwind. */
@font-face { font-family: "Ubuntu Sans"; src: url("/static/fonts/ubuntu-sans.woff2") format("woff2");
  font-weight: 100 800; font-display: swap; }
:root {
  --navy: #121a2b;       /* Kopf, dunkle Bänder */
  --navy-2: #1b2540;     /* Flächen im Dunkeln */
  --navy-line: #2b3858;
  --paper: #f5f7fb;      /* helle Abschnitte */
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #4b5674;
  --ink-3: #7480a0;
  --line: #e3e8f2;
  --go: #8be04e;         /* Handlung: Starten */
  --go-ink: #0d2a05;
  --pick: #2563eb;       /* Auswahl, Links */
  --coral: #ff7c5a;      /* Marke */
  --sans: "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
a { color: var(--pick); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Kopf und Navigation */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.top .wrap { display: flex; align-items: center; gap: 12px 26px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand b { display: block; font: 800 17px/1 var(--sans); letter-spacing: -.01em; }
.brand small { display: block; font: 500 10px/1.4 var(--mono); color: #8fa0c8; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.menu { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.menu a { display: grid; justify-items: center; gap: 3px; color: #aab6d3; text-decoration: none; font: 500 14px var(--sans); padding: 2px 4px; border-radius: 8px; }
.menu a:hover { color: #fff; }
.menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.top .act { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; padding: 10px 18px; font: 600 15px var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-go { background: var(--go); color: var(--go-ink); }
.btn-go:hover { background: #a2ee6c; }
.btn-line { color: #fff; border-color: var(--go); }
.btn-line:hover { background: rgb(139 224 78 / .12); }
.btn-white { background: #fff; color: var(--ink); }
.lang { color: #8fa0c8; font: 500 12px var(--mono); text-decoration: none; }
@media (max-width: 760px) { .top { position: static; } .menu a { grid-auto-flow: column; gap: 6px; } .top .act { margin-left: 0; } }

/* Held mit Drahtgitter */
.hero { position: relative; background: radial-gradient(1200px 500px at 70% 110%, #23408a 0%, transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.hero canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; display: block; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; padding-block: 56px 96px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); padding-block: 80px 120px; } }
.hero h1 { font: 700 clamp(36px, 5.2vw, 60px)/1.08 var(--sans); letter-spacing: -.025em; }
.hero h1 span { color: var(--go); }
.hero .sub { margin-top: 18px; font-size: 21px; color: #d3dbef; max-width: 620px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .checks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; color: #c1cbe4; font-size: 15px; }
.hero .checks span::before { content: "✓"; color: var(--go); font-weight: 700; margin-right: 7px; }

/* Rechts: echtes Kursfenster */
.stage { position: relative; min-width: 0; }
.win { background: #0b1120; border: 1px solid #33426a; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: #1a2338; border-bottom: 1px solid #33426a; font: 500 12px var(--mono); color: #8fa0c8; }
.win-bar i { width: 10px; height: 10px; border-radius: 99px; background: #3a4767; }
.win-bar i:nth-child(1) { background: #ff6b5e; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; }
.win img, .win video { display: block; width: 100%; height: auto; }
.float { position: absolute; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .6); }
.float-badge { left: -5%; bottom: 14%; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.float-badge b { display: block; font-size: 15px; }
.float-badge span { color: var(--ink-3); font-size: 13px; }
.float-badge .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--go); color: var(--go-ink); font-weight: 800; }

/* Kennzahlen */
.stats { background: #e8eef9; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-block: 26px; text-align: center; }
@media (min-width: 860px) { .stats .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats b { display: block; font: 700 28px/1.2 var(--sans); letter-spacing: -.02em; }
.stats span { color: var(--ink-2); font-size: 15px; }

/* Abschnitte */
.sec { padding-block: 80px; }
.head { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 780px; margin: 0 auto; }
.head h1, .head h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.15 var(--sans); letter-spacing: -.02em; }
.head p { color: var(--ink-2); font-size: 18px; }
.rule { width: 120px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--go), transparent); }

/* Lernpfade */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.tabs button { font: 500 15px var(--sans); border: 0; background: #e9edf5; color: var(--ink); border-radius: 99px; padding: 9px 18px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--pick); color: #fff; }
.cards { background: #fff; border-radius: 14px; padding: 16px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.course { display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.course:hover { box-shadow: 0 14px 30px -18px rgb(15 23 42 / .45); transform: translateY(-2px); }
.course img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 500 12px var(--mono); color: var(--ink-3); }
.meta .lv { color: #16a34a; } .meta .cert { color: #c2410c; }
.course h3 { font: 700 17px/1.3 var(--sans); }
.course .go { justify-self: start; background: var(--go); color: var(--go-ink); font: 600 13px var(--sans); border-radius: 5px; padding: 5px 11px; }
.more { text-align: center; margin-top: 22px; font-size: 16px; color: var(--ink-2); }

/* Dunkles Band: Blick in den Kurs */

/* Mission */
.mission { display: grid; gap: 28px; margin-top: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .mission { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.m-info { display: grid; gap: 14px; }
.m-info .tag { justify-self: start; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #16a34a; background: #e6f8dc; border-radius: 99px; padding: 5px 12px; }
.m-info h3 { font: 700 30px/1.15 var(--sans); letter-spacing: -.02em; }
.m-info p { color: var(--ink-2); font-size: 17px; }
.m-info .timer { font: 600 14px var(--mono); color: var(--ink-3); }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 20px 40px -28px rgb(15 23 42 / .5); min-width: 0; }
.ticket { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ticket small { font: 600 12px var(--mono); color: var(--ink-3); }
.ticket p { font-size: 16px; }
.state { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font: 500 14px var(--mono); background: #0b1120; color: #d9e1f4; border-radius: 10px; padding: 12px 14px; }
.state em { font-style: normal; color: #ff8a73; font-weight: 700; }
.opts { display: grid; gap: 10px; margin-top: 16px; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; font: 500 15px var(--sans); color: var(--ink); background: #f5f7fb; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.opt:hover { border-color: var(--pick); }
.opt kbd { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid var(--line); font: 700 12px var(--mono); }
.opt.right { border-color: #16a34a; background: #e6f8dc; } .opt.wrong { border-color: #dc2626; background: #fde8e8; }
.answer { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: 15px; background: #e6f8dc; color: #14381b; }
.answer.bad { background: #fde8e8; color: #5b1414; }
.answer a { font-weight: 700; }

/* Stimmen, Trainer, Teams */

/* Abschluss */
.final { background: var(--navy); color: #fff; text-align: center; }
.final .wrap { padding-block: 64px; display: grid; gap: 18px; justify-items: center; }
.final h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.15 var(--sans); }
.final p { color: #c1cbe4; font-size: 18px; }
footer { background: #0c1322; color: #8fa0c8; }
footer .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
footer a { color: #aab6d3; text-decoration: none; }
/* ergänzt */

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Farbschema 2: Hell + Royalblau */
:root { --navy: #111827; --navy-2: #1f2937; --navy-line: #374151; --go: #2952e3; --go-ink: #ffffff; --pick: #2952e3;
  --hl: #8fb0ff; --soft: #eaf0ff; --soft-ink: #2240b8; --mesh: 120,140,190; --glow: #26324d; --paper: #ffffff; }
.btn-go:hover { background: #2244c4; }
.stats { background: #f3f5fa; }
.hero { background: radial-gradient(1200px 500px at 70% 110%, var(--glow) 0%, transparent 60%), var(--navy); }
.hero h1 span { color: var(--hl); }
.hero .checks span::before { color: var(--hl); }
.btn-line { border-color: var(--hl); }
.btn-line:hover { background: rgb(255 255 255 / .08); }
.meta .lv { color: var(--soft-ink); }
.m-info .tag { color: var(--soft-ink); background: var(--soft); }
.course .go { background: var(--go); color: var(--go-ink); }
.rule { background: linear-gradient(90deg, var(--go), transparent); }

/* Ergänzungen für die echte Seite */
.top form { display: contents; }
.top .menu button { display: grid; justify-items: center; gap: 3px; color: #aab6d3; background: none; border: 0; cursor: pointer; font: 500 14px var(--sans); }
.soon-chip { justify-self: start; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--soft-ink); background: var(--soft); border-radius: 99px; padding: 4px 10px; }
.course .out { color: var(--ink-2); font-size: 14px; }
.course[hidden] { display: none; }
.btn-line { background: transparent; }  /* .btn aus app.css bringt sonst Koralle mit */
.brand-logo { display: block; height: 46px; width: auto; }
.brand-mark { display: block; height: 38px; width: auto; flex: none; }
/* Gürtel als gezeichnete Judo-Gürtel (partials/belt.html) */
/* Neuigkeiten-Band über dem Menü (nur Startseite, dunkel) */
.tick { position: relative; overflow: hidden; background: #0b1220; color: #c7d1ea; border-bottom: 1px solid #1f2937;
  font-family: "Ubuntu Sans", system-ui, sans-serif; }
.tick.gone { display: none; }
.tick-track { display: flex; width: max-content; animation: tick 90s linear infinite; }
.tick:hover .tick-track, .tick:focus-within .tick-track { animation-play-state: paused; }
.tick-dup { display: contents; }
.tick-item { display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px; white-space: nowrap; font-size: 14px;
  color: inherit; text-decoration: none; }
.tick-item:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tick-item em { font-style: normal; font: 700 11px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em;
  text-transform: uppercase; background: #8fb0ff; color: #0b1220; border-radius: 4px; padding: 2px 7px; }
.tick-item b { font-weight: 600; color: #fff; }
.tick-item::after { content: "·"; margin-left: 22px; color: #374151; font-weight: 700; }
.tick::before, .tick::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none; }
.tick::before { left: 0; background: linear-gradient(90deg, #0b1220, transparent); }
.tick::after { right: 0; background: linear-gradient(270deg, #0b1220, transparent); }
.tick-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px;
  border-radius: 99px; border: 0; background: #0b1220; color: #c7d1ea; font: 600 18px/1 "Ubuntu Sans", system-ui; cursor: pointer; }
.tick-close:hover { background: #1f2937; color: #fff; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tick-track { animation: none; } .tick { overflow-x: auto; } }
/* Kategorie AI Infrastructure & Operations: drei Lernpfade */
.ai-eyebrow { font: 600 12px var(--mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .08em; color: #7c3aed; background: #f3ecff; border-radius: 99px; padding: 4px 12px; }
.ai-paths { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ai-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ai-path { display: grid; gap: 10px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ai-path h3 { font: 700 19px/1.25 var(--sans); }
.ai-path > p { color: var(--ink-2); font-size: 15px; }
.ai-path ol { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 0; counter-reset: ai; }
.ai-path li { counter-increment: ai; position: relative; padding-left: 38px; padding-bottom: 12px; }
.ai-path li::before { content: counter(ai); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--sans); background: #2563eb; color: #fff; }
.ai-path li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.ai-path li:has(.ai-soon)::before { background: #e5e7eb; color: #4b5563; }
.ai-path a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.ai-path a b { font-size: 15px; font-weight: 600; }
.ai-path a span { font-size: 13px; color: var(--ink-2); }
.ai-path a:hover b { color: #2563eb; }
.ai-path a.ai-soon span { color: #6b7280; }
/* Teaser Lernpfad Cybersecurity Engineer */
.trk-teaser { display: grid; gap: 6px; margin-top: 28px; padding: 22px 24px; border-radius: 16px; text-decoration: none; color: #e6ebf5; background: #0b1020; background-image: linear-gradient(rgb(45 212 191 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(45 212 191 / .06) 1px, transparent 1px), radial-gradient(60% 90% at 100% 0%, rgb(45 212 191 / .2), transparent 60%); background-size: 28px 28px, 28px 28px, auto; transition: transform .15s, box-shadow .15s; }
.trk-teaser:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgb(11 16 32 / .8); color: #fff; }
.trk-teaser-k { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #2dd4bf; }
.trk-teaser b { font: 700 24px var(--sans); color: #fff; }
.trk-teaser span:not(.trk-teaser-k) { color: #9aa6c4; font-size: 15.5px; max-width: 760px; }
.trk-teaser em { font-style: normal; font-weight: 600; color: #2dd4bf; }
@media (prefers-reduced-motion: reduce) { .trk-teaser { transition: none; } }
/* Letzte Kachel in der Kursauswahl: „+N weitere Kurse“ */
.course-more { justify-content: center; align-content: center; text-align: left; background: #0b1020; border-color: #0b1020; color: #e6ebf5; min-height: 260px;
  background-image: radial-gradient(80% 80% at 100% 0%, rgb(41 82 227 / .35), transparent 60%); }
.course-more:hover { color: #fff; }
.course-more-n { font: 700 54px/1 var(--sans); letter-spacing: -.03em; color: #fff; }
.course-more h3 { color: #fff; }
.course-more .out { color: #9aa6c4; }

/* Hero: echte Übung im Terminal */
.term pre { margin: 0; padding: 18px 20px 0; font: 500 14px/1.7 var(--mono); color: #d9e1f4; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .c { color: #7480a0; }
.term .p { color: var(--go); }
.term .exp { padding: 16px 20px 0; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8fa0c8; }
.term pre.out { margin: 6px 20px 20px; padding: 10px 14px; background: var(--navy); border: 1px solid var(--navy-line); border-radius: 8px; }

/* Abzeichen unter dem Terminal statt über der Ausgabe */
.stage .float-badge { left: -4%; bottom: -64px; }
@media (max-width: 999px) { .stage .float-badge { position: relative; left: auto; bottom: auto; top: auto; margin: -18px 0 0 12px; display: inline-flex; } }

/* So läuft ein Kurs: ein Trainingstag von innen */
.day { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
@media (min-width: 700px) { .day { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .day { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.day li { padding: 24px 22px; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .day li { border-bottom: 0; border-right: 1px solid var(--line); } .day li:last-child { border-right: 0; } }
.day li.core { background: var(--soft, #eaf0ff); }
.day .k { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.day li.core .k { color: var(--soft-ink, #2240b8); }
.day h3 { font: 700 19px var(--sans); }
.day p { color: var(--ink-2); font-size: 15px; }
.day-foot { margin-top: 24px; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .day-foot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.day-foot .lbl { display: block; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.day-foot .drill { background: var(--navy); border-radius: 14px; padding: 18px 22px; }
.day-foot .drill .lbl { color: var(--hl, #8fb0ff); }
.day-foot .drill .snip { margin: 8px 0 0; padding: 0; background: none; font-size: 13px; }
.day-foot .finale { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: grid; gap: 8px; align-content: center; background: #fff; }
.day-foot .finale .lbl { color: var(--pick); }
.day-foot .finale .big { font-size: 17px; font-weight: 700; color: var(--ink); }
.day-foot .finale p { color: var(--ink-2); font-size: 15px; }
.snip { margin: 6px 0 0; background: #0b1120; color: #d9e1f4; border-radius: 10px; padding: 12px 14px; font: 500 12px/1.6 var(--mono); white-space: pre; overflow-x: auto; }

/* Kurse nach Ziel */
.goals { background: #fff; border-block: 1px solid var(--line); }
.goals .cards { margin-top: 28px; padding: 0; }
.goals-foot { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: var(--ink-2); }
.goals-foot > a { font-weight: 700; }

/* Incident und Trainer */
.m-info h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.15 var(--sans); letter-spacing: -.02em; }
#incident .mission { margin-top: 0; }
.trainer-sec { padding-top: 0; }
.trainer { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.trainer > div { display: grid; gap: 6px; flex: 1 1 420px; min-width: 0; }
.trainer .k { font: 600 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.trainer h3 { font: 700 22px var(--sans); }
.trainer p { color: var(--ink-2); }
.trainer > a { font-weight: 700; }

/* Kursseite (book.html) */
.cp-hero .wrap { padding-block: 40px 84px; align-items: start; }
.cp-intro { display: grid; justify-items: start; gap: 0; }
.cp-hero .crumbs { color: #8fa0c8; font-size: 14px; margin-bottom: 18px; }
.cp-hero .crumbs a { color: #aab6d3; }
.cp-kicker { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hl, var(--go)); background: rgb(255 255 255 / .06); border: 1px solid var(--navy-line); border-radius: 99px; padding: 5px 12px; margin-bottom: 16px; }
.cp-hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.cp-note { margin-top: 12px; font: 500 13px var(--mono); color: #aab6d3; }
.cp-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cp-facts li { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 10px; padding: 9px 13px; font-size: 15px; }
.cp-facts span { color: #aab6d3; }
.cp-progress { margin-top: 26px; width: min(560px, 100%); display: grid; gap: 8px; color: #d3dbef; font-size: 15px; }
.cp-bar { height: 10px; border-radius: 99px; background: var(--navy-line); overflow: hidden; }
.cp-bar b { display: block; height: 100%; background: #8be04e; }
.cp-hero .cta { align-items: center; gap: 14px 20px; }
.cp-hero .cta .btn { font-size: 17px; padding: 14px 22px; border-radius: 10px; }
.cp-files { color: #aab6d3; font-size: 15px; }
.cp-hero .cta a.cp-files, .cp-files a { color: #aab6d3; }
.cp-repo { margin-top: 18px; font-size: 14px; color: #8fa0c8; }
.cp-repo a { color: #aab6d3; }
.cp-cover { width: 100%; max-width: 520px; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.cp-hero .term pre.out { white-space: pre; overflow-x: auto; }

.cp-about .wrap { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cp-about .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.cp-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.cp-box h2 { font: 700 24px var(--sans); }
.cp-skills ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.cp-skills li { display: flex; gap: 12px; }
.cp-skills li::before { content: "✓"; color: #16a34a; font-weight: 800; }
.cp-skills p, .cp-needs span { color: var(--ink-2); }
.cp-needs p { display: grid; gap: 2px; }

.cp-plan { background: #fff; border-block: 1px solid var(--line); }
.cp-plan .wrap { max-width: 980px; display: grid; gap: 30px; }
.cp-plan-head { display: grid; gap: 6px; }
.cp-plan-head h2 { font: 700 clamp(26px, 3vw, 34px) var(--sans); }
.cp-plan-head p { color: var(--ink-2); font-size: 17px; }
.cp-phase { display: grid; gap: 10px; }
.cp-phase-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.cp-phase-head h3 { font: 700 19px var(--sans); }
.cp-phase-head span { color: var(--ink-3); font-size: 14px; }
.cp-phase ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cp-phase li + li { border-top: 1px solid #eef1f7; }
.cp-phase li a, .cp-plain { display: flex; align-items: flex-start; gap: 16px; padding: 13px 18px; color: var(--ink); text-decoration: none; }
.cp-phase li a:hover { background: #f5f7fb; }
.cp-badge { flex: none; min-width: 72px; text-align: center; font: 600 13px var(--mono); color: var(--pick); background: #eaf1ff; border-radius: 6px; padding: 3px 8px; }
.cp-phase li.done .cp-badge { color: #15803d; background: #e6f8dc; }
.cp-title { flex: 1 1 auto; min-width: 0; font-weight: 600; display: grid; gap: 2px; }
.cp-title small { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.cp-min { flex: none; font-size: 14px; color: var(--ink-2); padding-top: 2px; }
@media (max-width: 560px) { .cp-badge { min-width: 56px; } .cp-title small { display: none; } }

.cp-end .wrap { max-width: 980px; display: grid; gap: 22px; }
.cp-again { background: var(--navy); color: #fff; border-radius: 16px; padding: 30px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cp-again h2 { font: 700 24px var(--sans); }
.cp-again p { color: #c1cbe4; }
.cp-again .btn { font-size: 16px; padding: 13px 22px; border-radius: 10px; }
.cp-rel-h { font: 700 21px var(--sans); margin-top: 18px; }
.cp-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cp-related a { display: grid; gap: 4px; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--ink); text-decoration: none; }
.cp-related a:hover { border-color: var(--pick); }
.cp-related span { color: var(--ink-2); font-size: 14px; }
.cp-topics { color: var(--ink-2); font-size: 15px; }
.cp-intro-link { font-size: 15px; color: var(--ink-2); }
