/* Kralbet — kralbet1.de — Übersicht + Sportwetten
   Hard-Anforderungen: kein Framework, kein Tracking, keine Angular-Reste.
   Palette: #030021 (Navy), #eaecf4 (Fog), #142e3f (Slate), #e6e8f0 (Fog-Alt), #002162 (Royal).
   Akzent-Gold #ffc618 stammt aus dem echten Kralbet-Wortmarken-Logo (Krone). */

:root{
  --navy: #030021;
  --slate: #142e3f;
  --royal: #002162;
  --fog: #eaecf4;
  --fog-alt: #e6e8f0;
  --gold: #e0a80c;
  --gold-bright: #ffc618;
  --ink: #0c1220;
  --ink-soft: #3c4657;
  --line: #d7dbe8;
  --white: #ffffff;
  --danger: #8a1f2b;
  --danger-bg: #fbeceb;
  --ok: #1f6b3d;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(3,0,33,.35);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ overflow-x:clip; }
body{
  margin:0; font-family:var(--font); color:var(--ink); background:var(--fog);
  -webkit-font-smoothing:antialiased; line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:var(--royal); text-decoration:underline; text-decoration-color:rgba(0,33,98,.35); text-underline-offset:2px; }
a:hover{ text-decoration-color:var(--royal); }
.kb-container{ width:100%; max-width:1120px; margin-inline:auto; padding-inline:20px; }
.kb-visually-hidden{ position:absolute; width:1px;height:1px; padding:0;margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- Header ---------- */
.kb-header{
  position:sticky; top:0; z-index:40; background:var(--navy); color:var(--fog);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.kb-header__bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:10px; }
.kb-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.kb-brand img{ height:30px; width:auto; }
.kb-brand__word{ font-weight:800; font-size:1.05rem; letter-spacing:.01em; color:var(--fog); }
.kb-nav-desktop{ display:flex; align-items:center; gap:22px; }
.kb-nav-desktop a{ color:var(--fog); text-decoration:none; font-size:.93rem; font-weight:600; opacity:.88; }
.kb-nav-desktop a:hover{ opacity:1; text-decoration:underline; text-decoration-color:var(--gold-bright); text-underline-offset:4px; }
.kb-header__actions{ display:flex; align-items:center; gap:12px; }
.kb-cta{
  display:inline-flex; align-items:center; gap:8px; background:transparent; color:var(--gold-bright);
  border:1.5px solid var(--gold-bright); padding:8px 16px; border-radius:999px; font-weight:700; font-size:.85rem;
  text-decoration:none; white-space:nowrap;
}
.kb-cta:hover{ background:var(--gold-bright); color:var(--navy); }
.kb-burger{
  display:none; width:40px; height:40px; border-radius:10px; border:1px solid rgba(255,255,255,.18);
  background:transparent; position:relative; cursor:pointer; flex:0 0 auto;
}
.kb-burger__bar, .kb-burger__bar::before, .kb-burger__bar::after{
  content:""; position:absolute; left:9px; right:9px; height:2px; background:var(--fog); transition:transform .2s ease, opacity .2s ease;
}
.kb-burger__bar{ top:50%; transform:translateY(-50%); }
.kb-burger__bar::before{ top:-8px; }
.kb-burger__bar::after{ top:8px; }
.kb-burger[aria-expanded="true"] .kb-burger__bar{ background:transparent; }
.kb-burger[aria-expanded="true"] .kb-burger__bar::before{ top:0; transform:rotate(45deg); }
.kb-burger[aria-expanded="true"] .kb-burger__bar::after{ top:0; transform:rotate(-45deg); }

.kb-mobile-nav{
  position:fixed; inset:0 0 0 auto; width:min(320px,86vw); height:100vh; background:var(--navy);
  color:var(--fog); transform:translateX(100%); transition:transform .25s ease; z-index:50;
  padding:20px; overflow-y:auto; border-left:1px solid rgba(255,255,255,.08);
}
.kb-mobile-nav[data-open="true"]{ transform:translateX(0); }
.kb-mobile-nav__top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.kb-mobile-nav__close{ background:none; border:1px solid rgba(255,255,255,.2); color:var(--fog); width:36px;height:36px; border-radius:9px; font-size:1.1rem; cursor:pointer; }
.kb-mobile-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.kb-mobile-nav a{ display:block; color:var(--fog); text-decoration:none; padding:13px 6px; border-bottom:1px solid rgba(255,255,255,.08); font-weight:600; }
.kb-mobile-nav .kb-cta{ margin-top:18px; width:100%; justify-content:center; }
.kb-scrim{ position:fixed; inset:0; background:rgba(3,0,33,.55); opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:45; }
.kb-scrim[data-open="true"]{ opacity:1; pointer-events:auto; }

@media (max-width:860px){
  .kb-nav-desktop{ display:none; }
  .kb-header__actions .kb-cta{ display:none; }
  .kb-burger{ display:block; }
}

/* ---------- Hero (CSS-only, kein Foto) ---------- */
.kb-hero{
  position:relative; background:radial-gradient(1200px 480px at 15% -10%, #0a0a55 0%, var(--navy) 55%), var(--navy);
  color:var(--fog); overflow:hidden; padding-block:52px 40px;
}
.kb-hero::before{
  content:""; position:absolute; right:-60px; top:-40px; width:420px; height:420px;
  background:
    linear-gradient(135deg, transparent 46%, var(--gold-bright) 46% 50%, transparent 50%),
    radial-gradient(circle at 50% 40%, rgba(255,198,24,.16), transparent 65%);
  clip-path:polygon(0 40%, 20% 0, 40% 40%, 50% 5%, 60% 40%, 80% 0, 100% 40%, 92% 100%, 8% 100%);
  opacity:.5; filter:blur(.3px);
}
.kb-hero__inner{ position:relative; z-index:1; max-width:760px; }
.kb-hero__eyebrow{
  display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16); color:var(--fog); font-size:.78rem; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; padding:6px 12px; border-radius:999px; margin-bottom:16px;
}
.kb-hero__eyebrow .kb-dot{ width:7px;height:7px;border-radius:50%; background:var(--gold-bright); }
.kb-hero h1{
  margin:0 0 14px; font-size:clamp(1.7rem, 4vw, 2.5rem); line-height:1.18; font-weight:800; color:var(--white);
}
.kb-hero__lead{ font-size:1.05rem; color:#d7dceb; margin:0 0 22px; max-width:62ch; }
.kb-hero__badges{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.kb-badge{
  display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:700; padding:6px 11px;
  border-radius:8px; background:rgba(138,31,43,.18); color:#ff9b9b; border:1px solid rgba(255,155,155,.3);
}
.kb-badge--neutral{ background:rgba(255,255,255,.08); color:var(--fog); border-color:rgba(255,255,255,.18); }
.kb-hero__ctarow{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.kb-btn-ghost{
  display:inline-flex; align-items:center; gap:8px; color:var(--fog); border:1px solid rgba(255,255,255,.25);
  padding:11px 18px; border-radius:10px; text-decoration:none; font-weight:600; font-size:.92rem;
}
.kb-btn-ghost:hover{ border-color:var(--gold-bright); color:var(--gold-bright); }

/* ---------- Quick facts ---------- */
.kb-facts{ padding-block:34px; }
.kb-facts__card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
  overflow:hidden;
}
.kb-facts__head{ padding:16px 20px 0; }
.kb-facts__head .kb-eyelabel{ font-size:.74rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--royal); }
.kb-facts table{ width:100%; border-collapse:collapse; table-layout:fixed; margin-top:12px; }
.kb-facts td{ padding:12px 20px; border-top:1px solid var(--line); overflow-wrap:anywhere; font-size:.94rem; vertical-align:top; }
.kb-facts tr td:first-child{ width:42%; font-weight:700; color:var(--ink-soft); }
.kb-facts tr:first-child td{ border-top:none; }

@media (max-width:560px){
  .kb-facts td{ display:block; width:100% !important; padding:8px 16px; font-size:.88rem; }
  .kb-facts tr td:first-child{ padding-bottom:0; font-weight:800; color:var(--royal); }
  .kb-facts tr{ display:block; padding-block:8px; }
  .kb-facts tr:not(:first-child){ border-top:1px solid var(--line); }
  .kb-facts tr:first-child td:first-child{ border-top:none; }
}

/* ---------- Themen-Karten (interne Navigation) ---------- */
.kb-topics{ padding-block:12px 36px; }
.kb-topics__title{ margin:0 0 16px; font-size:1.4rem; font-weight:800; color:var(--navy); }
.kb-topics__grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:14px; }
.kb-topic-card{
  display:block; text-decoration:none; background:var(--white); border:1px solid var(--line);
  border-radius:12px; padding:18px; color:var(--ink); transition:border-color .15s ease, transform .15s ease;
}
.kb-topic-card:hover{ border-color:var(--gold); transform:translateY(-2px); }
.kb-topic-card__label{ font-size:.72rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--royal); display:block; margin-bottom:8px; }
.kb-topic-card__title{ font-weight:700; font-size:1.02rem; margin:0 0 6px; color:var(--navy); }
.kb-topic-card__desc{ font-size:.86rem; color:var(--ink-soft); margin:0; }

/* ---------- Artikel ---------- */
.kb-article-wrap{ background:var(--white); }
.kb-article{ max-width:760px; margin-inline:auto; padding:8px 20px 48px; }
.kb-article h2{ font-size:1.35rem; font-weight:800; color:var(--navy); margin:34px 0 12px; scroll-margin-top:90px; }
.kb-article h3{ font-size:1.05rem; font-weight:750; color:var(--navy); margin:0 0 6px; }
.kb-article p{ margin:0 0 14px; color:var(--ink); font-size:1rem; }
.kb-article ul, .kb-article ol{ margin:0 0 16px; padding-left:22px; }
.kb-article li{ margin-bottom:8px; }
.kb-article a{ font-weight:600; }
.kb-article table{ width:100%; border-collapse:collapse; table-layout:fixed; margin:0 0 18px; font-size:.92rem; }
.kb-article table td, .kb-article table th{ border:1px solid var(--line); padding:10px 12px; overflow-wrap:anywhere; text-align:left; }
@media (max-width:560px){
  .kb-article table, .kb-article table tr, .kb-article table td{ display:block; width:100%; }
  .kb-article table td{ border:none; border-bottom:1px solid var(--line); padding:8px 4px; font-size:.86rem; }
}

.kb-inline-figure{
  display:flex; gap:14px; align-items:flex-start; background:var(--fog); border:1px solid var(--line);
  border-radius:12px; padding:14px; margin:18px 0 20px;
}
.kb-inline-figure img{ width:110px; height:80px; object-fit:cover; object-position:78% center; border-radius:8px; flex:0 0 auto; }
.kb-inline-figure figcaption{ font-size:.82rem; color:var(--ink-soft); }
.kb-inline-figure figcaption strong{ display:block; color:var(--navy); font-size:.86rem; margin-bottom:4px; }
@media (max-width:520px){
  .kb-inline-figure{ flex-direction:column; }
  .kb-inline-figure img{ width:100%; max-width:220px; height:90px; }
}

.kb-callout{
  border-left:4px solid var(--danger); background:var(--danger-bg); border-radius:0 10px 10px 0;
  padding:16px 18px; margin:20px 0;
}
.kb-callout__title{ font-weight:800; color:var(--danger); font-size:.86rem; text-transform:uppercase; letter-spacing:.03em; margin:0 0 8px; }
.kb-callout ul{ margin:0; padding-left:20px; }
.kb-callout li{ margin-bottom:6px; font-size:.94rem; }

.kb-article ul.kb-callout-list{
  border-left:4px solid var(--danger); background:var(--danger-bg); border-radius:0 10px 10px 0;
  padding:14px 18px 14px 32px; margin:18px 0 20px; list-style:disc;
}
.kb-article ul.kb-callout-list li{ margin-bottom:7px; font-size:.94rem; }
.kb-article ul.kb-callout-list li::marker{ color:var(--danger); }

/* ---------- FAQ Accordion ---------- */
.kb-faq{ margin-top:30px; border-top:1px solid var(--line); padding-top:22px; }
.kb-faq-item{ border-bottom:1px solid var(--line); }
.kb-faq-item__q{ margin:0; font-size:1rem; }
.kb-faq-item__btn{
  width:100%; text-align:left; background:none; border:none; padding:15px 4px; font:inherit; font-weight:700;
  color:var(--navy); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.kb-faq-item__icon{ flex:0 0 auto; width:20px; height:20px; position:relative; }
.kb-faq-item__icon::before, .kb-faq-item__icon::after{
  content:""; position:absolute; background:var(--royal); border-radius:2px; transition:transform .2s ease;
}
.kb-faq-item__icon::before{ left:2px; right:2px; top:9px; height:2px; }
.kb-faq-item__icon::after{ top:2px; bottom:2px; left:9px; width:2px; }
.kb-faq-item__btn[aria-expanded="true"] .kb-faq-item__icon::after{ transform:rotate(90deg); opacity:0; }
.kb-faq-item__a{ overflow:hidden; max-height:0; transition:max-height .22s ease; }
.kb-faq-item__a p{ margin:0 0 16px; color:var(--ink-soft); font-size:.94rem; padding-right:6px; }
/* max-height des geöffneten Zustands wird per JS inline gesetzt (scrollHeight) —
   .kb-faq-item__a ist kein Geschwister von __btn, sondern von __q (h3). */

/* ---------- Breadcrumbs ---------- */
.kb-breadcrumb{ background:var(--fog-alt); border-bottom:1px solid var(--line); }
.kb-breadcrumb ol{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:10px 20px; max-width:1120px; margin-inline:auto; font-size:.82rem; }
.kb-breadcrumb li{ display:flex; align-items:center; gap:6px; color:var(--ink-soft); }
.kb-breadcrumb li:not(:last-child)::after{ content:"/"; color:#aab0c3; margin-left:6px; }
.kb-breadcrumb a{ color:var(--ink-soft); text-decoration:none; }
.kb-breadcrumb a:hover{ text-decoration:underline; }
.kb-breadcrumb li:last-child{ color:var(--navy); font-weight:600; }

/* ---------- Footer ---------- */
.kb-footer{ background:var(--navy); color:#c7cbe0; padding-block:38px 24px; }
.kb-footer__grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:28px; margin-bottom:26px; }
.kb-footer__brand{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.kb-footer__brand img{ height:26px; }
.kb-footer__tagline{ font-size:.86rem; color:#a9aecb; max-width:38ch; margin:0; }
.kb-footer__heading{ font-size:.76rem; text-transform:uppercase; letter-spacing:.06em; color:#8b90ae; margin:0 0 12px; font-weight:800; }
.kb-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.kb-footer a{ color:#c7cbe0; text-decoration:none; font-size:.88rem; }
.kb-footer a:hover{ color:var(--gold-bright); }
.kb-footer__responsible{ border-top:1px solid rgba(255,255,255,.1); padding-top:18px; font-size:.8rem; color:#9aa0bd; line-height:1.6; }
.kb-footer__responsible strong{ color:#c7cbe0; }
.kb-footer__bottom{ margin-top:16px; font-size:.78rem; color:#7d82a0; }
@media (max-width:760px){
  .kb-footer__grid{ grid-template-columns:1fr 1fr; }
  .kb-footer__grid > :first-child{ grid-column:1 / -1; }
}

/* ---------- 404 ---------- */
.kb-404{ min-height:60vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:60px 20px; }
.kb-404 h1{ font-size:2.2rem; color:var(--navy); margin:0 0 10px; }
.kb-404 p{ color:var(--ink-soft); margin:0 0 20px; }
