/* Gemeinsames Stylesheet der Doku-Seiten (onepager, anleitung, entwickler).
   Design nach dem Muster von SchadenManagement 2.0: dunkler Navy-Header/Hero
   mit Eyebrow-Text und farbigem Headline-Highlight, Chips, Kennzahlen-Band,
   Karten mit Farb-Akzent links, Kapitel-Pills. Akzentfarbe = BOB.bike-Rot. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D2654;
  --navy-dark: #091a3d;
  --navy-light: #16305f;
  --accent: #E8302A;
  --accent-dark: #c4271f;
  --accent-soft: #fdeceb;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e3e8f0;
  --text: #1a2233;
  --text2: #5a6578;
  --green: #1e7e45;
  --green-bg: #e9f7ef;
  --amber-bg: #fef7e8;
  --amber-text: #8a5a00;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; }

/* ── TOP-BAR (dunkel, Logo links, Pill-Links rechts) ──────────────────────── */
.topbar {
  background: var(--navy);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1.1;
  text-align: center;
}
.brand-logo small { display: block; font-size: 0.5rem; font-weight: 600; color: var(--accent); letter-spacing: 0.18em; }
.brand-name { color: #fff; font-weight: 700; font-size: 1rem; }
.topbar nav { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill-link {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  white-space: nowrap;
}
.pill-link:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.pill-link.cta { background: var(--accent); border-color: var(--accent); }
.pill-link.cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ── HERO (Onepager) ──────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 36px 28px 44px;
}
.hero-inner, .band-inner, main, .doc-header-inner { max-width: 1020px; margin: 0 auto; }
.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 640px;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.chip.version { border-color: var(--accent); color: #fff; background: rgba(232,48,42,0.18); }

/* ── KENNZAHLEN-BAND ──────────────────────────────────────────────────────── */
.band { background: var(--accent); color: #fff; padding: 22px 28px; }
.band-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat .lbl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; margin-top: 2px; }

/* ── SEITEN-HEADER (Anleitung / Entwicklerhandbuch) ───────────────────────── */
.doc-header { background: var(--navy); color: #fff; padding: 18px 28px; }
.doc-header-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.doc-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.doc-header h1 { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.doc-header .doc-sub { font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.doc-header nav { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.doc-header nav a { color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 600; }
.doc-header nav a:hover { color: #fff; text-decoration: underline; }
.ver-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── KAPITEL-PILLS (horizontale Navigation der Anleitung) ─────────────────── */
.chapter-nav {
  background: var(--navy);
  padding: 0 28px 16px;
}
.chapter-nav-inner {
  max-width: 1020px; margin: 0 auto;
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.chapter-nav a {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.chapter-nav a:hover { border-color: rgba(255,255,255,0.5); }
.chapter-nav a.active { background: var(--accent); border-color: var(--accent); }

/* ── INHALT ───────────────────────────────────────────────────────────────── */
main { padding: 28px 20px 60px; }

.section-head { margin: 34px 0 16px; }
.section-head:first-child { margin-top: 4px; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; }

section.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(13,38,84,0.06);
  scroll-margin-top: 16px;
}
/* Karten-Kopf mit rundem Emoji-Icon (Anleitung) */
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.card-head h2 { font-size: 1.05rem; font-weight: 800; }
.card-head .card-sub { font-size: 0.78rem; color: var(--text2); }

section.card > h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
section.card h3 { font-size: 0.92rem; font-weight: 700; margin: 16px 0 6px; }
section.card p, section.card li { font-size: 0.88rem; color: var(--text2); }
section.card ul, section.card ol { padding-left: 22px; margin: 6px 0; }
section.card li { margin-bottom: 6px; }
section.card strong { color: var(--text); font-weight: 700; }
section.card a { color: var(--accent); font-weight: 600; }
section.card a:hover { text-decoration: underline; }

/* Karten-Grid (Kernfähigkeiten, Mini-Karten in der Anleitung) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 10px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(13,38,84,0.06);
}
.feature .f-icon { font-size: 1.2rem; margin-bottom: 8px; }
.feature h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 0.8rem; color: var(--text2); }

/* Prozess-Schritte */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(13,38,84,0.06);
}
.step .n {
  width: 26px; height: 26px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { font-size: 0.88rem; font-weight: 800; margin-bottom: 4px; }
.step p { font-size: 0.76rem; color: var(--text2); }

/* Hinweis-Boxen: grün = Tipp/Info, gelb = Warnung */
.note {
  background: var(--green-bg);
  border-left: 4px solid var(--green);
  color: var(--text2);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 12px 0;
  font-size: 0.85rem;
}
.hinweis {
  background: var(--amber-bg);
  border-left: 4px solid #f0a500;
  color: var(--amber-text);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 12px 0;
  font-size: 0.85rem;
}

code, pre {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.85em;
  background: #eef1f6;
  border-radius: 5px;
  color: var(--text);
}
code { padding: 1px 6px; }
pre { padding: 12px 16px; overflow-x: auto; margin: 10px 0; line-height: 1.5; }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.85rem; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: #f0f3f8; color: var(--navy); font-weight: 700; font-size: 0.78rem; }
td { color: var(--text2); }

.badge {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700;
  background: var(--navy); color: #fff;
}
.badge.red { background: var(--accent); }
.badge.green { background: var(--green); }

footer.doc-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text2);
  padding: 10px 10px 44px;
}
footer.doc-footer a { color: var(--accent); font-weight: 600; }
footer.doc-footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .band-inner { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .topbar, .hero, .doc-header, .chapter-nav { padding-left: 16px; padding-right: 16px; }
  section.card { padding: 18px; }
}
