/* dB Ride – gemeinsames Stylesheet. Keine externen Ressourcen.
   Schriften wie auf der bisherigen Seite (Outfit, JetBrains Mono, beide SIL OFL),
   lokal eingebunden statt über Google Fonts. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #080c10;
  --bg-2: #0d1318;
  --card: #121a21;
  --card-2: #172029;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f5;
  --muted: #a3afba;
  --faint: #7d8a96;
  --lime: #c8f200;
  --lime-soft: rgba(200, 242, 0, 0.12);
  --lime-glow: rgba(200, 242, 0, 0.28);
  --on-lime: #0b1000;
  --warn: #ffb547;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 6.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
strong { color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 12, 16, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 74px; height: 36px; object-fit: contain; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav .lang a { border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; padding: 6px 10px; }
.site-nav .nav-cta a { background: var(--lime); color: var(--on-lime); padding: 8px 16px; }
.site-nav .nav-cta a:hover { background: #d6ff1f; color: var(--on-lime); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #080c10; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-wrap: wrap; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .js .site-nav .lang a, .js .site-nav .nav-cta a { text-align: center; margin-top: 8px; }
  .header-inner { position: relative; }
}

/* ---------- Buttons / Store ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 20px 11px 16px;
  border-radius: 12px; text-decoration: none;
  background: #fff; color: #05080a;
  border: 1px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); text-decoration: none; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.75; }
.store-btn b { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
@media (max-width: 520px) {
  .store-btn { flex: 1 1 140px; min-width: 0; padding: 10px 12px; gap: 10px; }
  .store-btn svg { width: 22px; height: 22px; }
  .store-btn b { font-size: 1rem; }
  .aside-card .store-btn { flex: none; }
}
.store-btn.alt { background: transparent; color: var(--text); border-color: var(--line-strong); }
.store-btn.alt:hover { border-color: var(--lime); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; background: var(--lime); color: var(--on-lime); }
.btn:hover { background: #d6ff1f; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--lime); }

/* ---------- Generic sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin: 0 0 12px; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46em; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 44px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -20%; top: -30%; width: 900px; height: 900px; max-width: 160vw;
  background: radial-gradient(closest-side, var(--lime-glow), transparent 70%);
  opacity: 0.55; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .hl { color: var(--lime); }
.hero h1 .sub { display: block; font-size: 0.5em; font-weight: 700; letter-spacing: -0.015em; color: var(--muted); margin-top: 0.45em; }
.hero .lead { margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 0.95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); }
.hero-visual { position: relative; justify-self: center; width: min(360px, 82vw); }
.hero-visual img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 86%, transparent);
  mask-composite: intersect;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero-visual { width: 400px; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: rgba(200, 242, 0, 0.45); transform: translateY(-2px); }
a.card .more { display: inline-block; margin-top: 12px; color: var(--lime); font-weight: 700; font-size: 0.95rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(200, 242, 0, 0.35); border-radius: 6px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Screens strip ---------- */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; scroll-snap-align: start; }
.screens img { border-radius: 18px; border: 1px solid var(--line); background: #000; }
.screens figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.screens figcaption b { display: block; color: var(--text); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps.cols { grid-template-columns: repeat(3, 1fr); } }
.steps > li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 74px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); font-weight: 800; font-family: var(--mono);
}
.steps h3, .prose .steps h3 { margin: 0 0 0.3em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Premium ---------- */
.premium { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 24px; border: 1px solid rgba(200, 242, 0, 0.35); background: radial-gradient(120% 140% at 100% 0%, rgba(200, 242, 0, 0.16), transparent 55%), var(--card); }
.premium ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.premium li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.premium li svg { flex: none; width: 22px; height: 22px; color: var(--lime); margin-top: 2px; }
@media (min-width: 860px) { .premium { padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; } .premium ul { margin: 0; } }

/* ---------- Note / info boxes ---------- */
.note { border-left: 3px solid var(--lime); background: var(--lime-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 18px; margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--warn); background: rgba(255, 181, 71, 0.1); }
.note strong:first-child { display: block; margin-bottom: 4px; }
.privacy-strip { display: flex; gap: 16px; align-items: flex-start; }
.privacy-strip svg { flex: none; width: 34px; height: 34px; color: var(--lime); }

/* ---------- Facts / tables ---------- */
.facts { display: grid; gap: 12px; margin: 26px 0; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.fact b { display: block; font-family: var(--mono); font-size: 1.35rem; color: var(--lime); letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 0.92rem; }
.table-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.97rem; }
caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 0.9rem; caption-side: bottom; border-top: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--card-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.db, th.db { font-family: var(--mono); white-space: nowrap; color: var(--lime); font-weight: 700; }
.lvl { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }

/* ---------- Article ---------- */
.article-hero { padding-top: 36px; padding-bottom: 12px; }
.breadcrumb { font-size: 0.88rem; color: var(--faint); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 24px; }
.prose, .article-layout aside { min-width: 0; }
@media (min-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #d5dce2; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 18px; border: 1px solid var(--line); max-width: 300px; }
.prose figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.prose ol.steps > li p, .prose ol.steps > li { color: var(--muted); }
.aside-sticky { position: sticky; top: 88px; display: grid; gap: 16px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.aside-card h2 { font-size: 1.05rem; margin-bottom: 10px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { margin: 0; border-top: 1px solid var(--line); }
.aside-card li:first-child { border-top: 0; }
.aside-card li a { display: block; padding: 9px 0; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.aside-card li a:hover, .aside-card li a[aria-current="page"] { color: var(--lime); }
.aside-card .store-buttons { flex-direction: column; }
.aside-card .store-btn { min-width: 0; }
.sources { font-size: 0.92rem; color: var(--muted); }
.sources li { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-box { margin: 40px 0; border-radius: 22px; padding: 28px 24px; background: radial-gradient(100% 160% at 0% 0%, rgba(200, 242, 0, 0.18), transparent 60%), var(--card); border: 1px solid rgba(200, 242, 0, 0.3); }
.cta-box h2 { margin-top: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.cta-box p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--lime); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; padding: 36px 20px 64px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: #d5dce2; }
.legal .meta { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #06090c; padding: 48px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand-col p { color: var(--muted); max-width: 30em; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
