/* Schriften lokal (kein Google-Abruf, DSGVO) */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Rajdhani; font-weight: 600; font-display: swap; src: url('assets/fonts/rajdhani-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Rajdhani; font-weight: 700; font-display: swap; src: url('assets/fonts/rajdhani-latin-700-normal.woff2') format('woff2'); }
:root {
  --bg: #06080d; --bg2: #0b0f17; --panel: rgba(20, 26, 38, .62); --line: rgba(255, 255, 255, .08);
  --fg: #eef2f8; --muted: #8e98aa; --accent: #12d8ec; --accent2: #6ff0ff; --warm: #fdf0dc;
  --ok: #34d399; --bad: #f87171; --info: #60a5fa; --violet: #b07be8; --amber: #f5b13b;
  --r: 16px; --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: Inter, 'Segoe UI', system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Rajdhani, Inter, sans-serif; letter-spacing: .01em; line-height: 1.1; }
code { background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--accent); color: #031317; box-shadow: 0 0 0 0 rgba(18,216,236,.4); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(18,216,236,.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.link { color: var(--accent); font-weight: 600; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(18,216,236,.14); color: var(--accent2); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px max(20px, calc((100% - var(--max)) / 2));
  background: rgba(6,8,13,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: Rajdhani; font-weight: 700; font-size: 24px; }
.nav-brand img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 130px max(20px, calc((100% - var(--max)) / 2)) 60px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(18,216,236,.22), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(22,56,255,.18), transparent 70%),
    linear-gradient(180deg, rgba(6,8,13,.25), var(--bg) 92%),
    url('assets/banner.webp') center 30% / cover no-repeat; filter: saturate(1.05); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(6,8,13,.55); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 64px); margin-bottom: 20px; }
.nw { white-space: nowrap; }
.hl { color: var(--accent); text-shadow: 0 0 30px rgba(18,216,236,.45); }
.lead { font-size: 18px; color: #c5ccd8; max-width: 600px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logo img { width: 100%; max-width: 470px; margin-left: auto; filter: drop-shadow(0 0 40px rgba(18,216,236,.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

.status { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.status-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.status-item b { display: block; font-size: 15px; }
.status-item small { color: var(--muted); font-size: 13px; }
.status-item .big { font-family: Rajdhani; font-size: 34px; font-weight: 700; color: var(--accent); min-width: 44px; }
.status-link { transition: border-color .15s, transform .15s; }
.status-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; margin: 0 6px; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 6px rgba(52,211,153,.18); animation: pulse 2s infinite; }
.status-dot.off { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(52,211,153,.05); } }

/* ---------- Abschnitte ---------- */
.section { padding: 100px max(20px, calc((100% - var(--max)) / 2)); }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2, .split h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; position: relative; }
.feature:hover { border-color: rgba(18,216,236,.4); transform: translateY(-3px); }
.feature h3 { font-size: 24px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature-wide { grid-column: span 2; background: linear-gradient(135deg, rgba(18,216,236,.12), rgba(20,26,38,.6) 60%); }
.feature-wide p { max-width: 560px; margin-bottom: 14px; }
.feature-tag { display: inline-block; margin-bottom: 10px; font-size: 11.5px; font-weight: 700; color: var(--accent2); background: rgba(18,216,236,.12); padding: 3px 9px; border-radius: 999px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split p { margin-bottom: 24px; }
.cook-preview { display: grid; place-items: center; }
.cook-card { width: 100%; max-width: 420px; padding: 22px; border-radius: 20px; background: #10151f; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(18,216,236,.1); transform: rotate(-2deg); }
.cook-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cook-slot { position: relative; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); margin-bottom: 10px; overflow: hidden; display: flex; justify-content: space-between; }
.cook-slot i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.cook-slot.done { border: 1px solid rgba(52,211,153,.4); }
.cook-slot em { color: var(--ok); font-style: normal; font-weight: 700; }

/* ---------- Updates ---------- */
.updates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.update { padding: 22px 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.update-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.update-head h3 { font-size: 22px; }
.update-head span { color: var(--muted); font-size: 13px; }
.update ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.update li { display: flex; gap: 10px; font-size: 14.5px; }
.cat { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; height: fit-content; margin-top: 2px; }
.cat-neu { background: rgba(52,211,153,.15); color: var(--ok); }
.cat-verb { background: rgba(96,165,250,.15); color: var(--info); }
.cat-fix { background: rgba(245,177,59,.15); color: var(--amber); }
.cat-weg { background: rgba(248,113,113,.15); color: var(--bad); }
.cat-event { background: rgba(176,123,232,.15); color: var(--violet); }
.update li b { display: block; font-weight: 600; }
.update li small { color: var(--muted); }

/* ---------- Regeln ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rule-card { padding: 28px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.rule-card:hover { border-color: rgba(18,216,236,.4); transform: translateY(-3px); }
.rule-card h3 { font-size: 26px; margin: 14px 0 6px; }
.rule-card p { color: var(--muted); }
.rule-wide { grid-column: span 2; }
.rule-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(18,216,236,.12); color: var(--accent); font-family: Rajdhani; font-weight: 700; font-size: 22px; }
.books { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.books span { font-size: 13px; padding: 6px 11px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.books span b { color: var(--accent2); margin-right: 6px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.member { padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: Rajdhani; font-weight: 700; font-size: 20px; background: linear-gradient(135deg, var(--accent), #1638ff); color: #031317; flex: none; }
.member b { display: block; }
.member small { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 50px max(20px, calc((100% - var(--max)) / 2)) 40px; border-top: 1px solid var(--line); }
.footer-banner { border-radius: 14px; margin-bottom: 24px; opacity: .9; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-row a:hover { color: var(--fg); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-logo { order: -1; } .hero-logo img { max-width: 240px; margin: 0 auto; }
  .status { grid-template-columns: 1fr 1fr; }
  .features, .updates, .rules { grid-template-columns: 1fr; }
  .feature-wide, .rule-wide { grid-column: auto; }
  .section { padding: 70px 16px; }
}

/* ---------- Unterseiten (Regeln, Datenschutz, Impressum) ---------- */
.page { padding: 120px max(20px, calc((100% - var(--max)) / 2)) 80px; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-weight: 700; cursor: pointer; color: var(--muted); font: inherit; font-weight: 700; }
.tab.on { background: var(--accent); color: #031317; border-color: var(--accent); }
.rules-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.toc a { padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.toc a b { color: var(--accent); margin-right: 6px; }
.search { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--fg); font: inherit; margin-bottom: 18px; }
.search:focus { outline: none; border-color: var(--accent); }
.chapter { margin-bottom: 26px; padding: 24px 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 90px; }
.chapter h2 { font-size: 28px; margin-bottom: 14px; }
.chapter h2 span { color: var(--accent); margin-right: 10px; }
.rule { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.rule:first-of-type { border-top: 0; }
.rule:target { background: rgba(18,216,236,.08); border-radius: 8px; }
.rule a.nr { color: var(--accent2); font-weight: 700; font-size: 14px; }
.rule p { font-size: 15px; color: #d3d9e3; }
.rule p b { color: var(--fg); }
.flag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; height: fit-content; white-space: nowrap; }
.flag-verboten { background: rgba(248,113,113,.15); color: var(--bad); }
.flag-erlaubt { background: rgba(52,211,153,.15); color: var(--ok); }
.flag-wichtig { background: rgba(245,177,59,.15); color: var(--amber); }
.todo { color: var(--amber); font-style: italic; }
mark { background: rgba(18,216,236,.3); color: var(--fg); border-radius: 3px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal h3 { font-size: 20px; margin: 20px 0 6px; }
.legal p, .legal li { color: #d3d9e3; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .ph { color: var(--amber); font-weight: 600; }
.note { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(245,177,59,.35); background: rgba(245,177,59,.08); color: #f3dfb8; margin-bottom: 20px; font-size: 14px; }
@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .rule { grid-template-columns: 48px 1fr; }
  .rule .flag { grid-column: 2; justify-self: start; }
  .page { padding: 100px 16px 60px; }
}

/* ---------- Gesetzbuch ---------- */
.books-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.bookbtn { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--fg); cursor: pointer; font: inherit; }
.bookbtn b { display: block; color: var(--accent2); font-size: 15px; }
.bookbtn span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookbtn:hover { border-color: rgba(18,216,236,.5); }
.bookbtn.on { background: rgba(18,216,236,.14); border-color: var(--accent); }
.law-title { font-size: 30px; margin: 8px 0 18px; }
.law-title span { color: var(--accent); margin-right: 12px; }
.law-title small { font-family: Inter, sans-serif; font-size: 14px; font-weight: 500; }
.chapter.law h2 { font-size: 24px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chapter.law h2 .nrlink { color: var(--accent); }
.chapter.law .lawbook { margin-left: auto; font-family: Inter, sans-serif; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(18,216,236,.14); color: var(--accent2); }
.chapter.law p { color: #d3d9e3; font-size: 15px; margin: 4px 0 8px; white-space: pre-line; }
.chapter.law .abs { font-weight: 700; color: var(--accent2); font-size: 13.5px; margin-top: 12px; }
.tbl-wrap { overflow-x: auto; margin: 10px 0; }
.chapter.law table { border-collapse: collapse; width: 100%; font-size: 14px; }
.chapter.law th, .chapter.law td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.chapter.law th { color: var(--accent2); }
.hidden { display: none !important; }
