/* ============================================================
   BitScore – Stylesheet (Dark-only, Mockup-Layout Runde 2)
   Navy/Fast-Schwarz + Gold, große Space-Grotesk-Headlines mit
   goldenen Eyebrow-Labels, Vollbreiten-Hero mit Kugel-Orbit,
   zentrierte Lotterie-Karten, Kennzahlen-Kacheln mit Icons,
   Score-Ring, mehrspaltiger Footer.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-500-latin.woff2") format("woff2");
}

:root {
  --bg: #070c16;
  --surface: #0e1728;
  --surface-2: #131e33;
  --border: rgba(158, 173, 200, 0.16);
  --border-strong: rgba(158, 173, 200, 0.3);
  --text: #eef2f9;
  --muted: #9aa6bc;

  --gold: #d9a441;
  --gold-bright: #e8bc5e;
  --gold-deep: #a87a24;
  --gold-pale: #f6d98d;

  --chart-blue: #5b86e8;

  --ball-sphere:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 36% 30%, #f7f9fc 0%, #d7dde7 52%, #96a1b6 100%);
  --ball-gold:
    radial-gradient(circle at 30% 24%, rgba(255, 246, 220, 0.95) 0%,
      rgba(255, 246, 220, 0) 24%),
    radial-gradient(circle at 36% 30%, #f6dd9c 0%, #e0b34f 52%, #9c7120 100%);
  --ball-text: #1a2233;
  --ball-gold-text: #2b2108;
  --shadow-ball: 0 4px 10px rgba(0, 0, 0, 0.5),
                 inset -3px -5px 8px rgba(8, 12, 24, 0.28);

  --la: var(--gold-bright);

  --radius-card: 14px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.45);
  --page-max-width: 74rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --transition-fast: 160ms ease;

  color-scheme: dark;
}

body[data-lottery="eurojackpot"]    { --la: #e5b45a; }
body[data-lottery="lotto6aus49"]    { --la: #ef8981; }
body[data-lottery="keno"]           { --la: #5fc2be; }
body[data-lottery="freiheitplus"]   { --la: #b39ae6; }
body[data-lottery="gluecksspirale"] { --la: #85c893; }

/* Karten-Akzente auf der Startseite (kein body-Attribut vorhanden) */
.home-card--eurojackpot    { --la: #e5b45a; }
.home-card--lotto6aus49    { --la: #ef8981; }
.home-card--keno           { --la: #5fc2be; }
.home-card--freiheitplus   { --la: #b39ae6; }
.home-card--gluecksspirale { --la: #85c893; }

/* ------------------------------------------------------------
   Basis + Typografie-Skala
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

main {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 var(--space-3);
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem); /* 32–36px im Zielbereich */
  line-height: 1.18;
  margin: 0 0 var(--space-3);
}

h3 {
  font-size: 1.15rem;
}

section + section,
main > * + * {
  margin-top: var(--space-4);
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--gold-bright);
}

/* Goldene Eyebrow-Labels über Sektionen (wie „STATISTIK" im Mockup) */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 var(--space-2);
}

/* ------------------------------------------------------------
   Header + Navigation (Space Grotesk auch in der Nav)
   ------------------------------------------------------------ */

.site-header {
  background: rgba(10, 16, 29, 0.92);
  border-bottom: 1px solid rgba(217, 164, 65, 0.3);
}

.site-header__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.site-logo span {
  color: var(--gold);
}

.logo-mark {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-inline-start: auto;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  color: #c3cbdd;
  padding: var(--space-1) var(--space-2);
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--gold);
  border-radius: 8px 8px 0 0;
}

/* ------------------------------------------------------------
   Hero (Startseite): volle Breite, min. 70vh, Navy-Verlauf mit
   Sternenstaub, links Text + Buttons, rechts Kugel-Orbit
   ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90rem 40rem at 75% -10%, rgba(38, 58, 96, 0.55), transparent 60%),
    linear-gradient(180deg, #0c1424 0%, #070c16 100%);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  /* Sternenstaub: zwei Punktraster in verschiedenen Dichten */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.4px),
    radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.6px);
  background-size: 210px 190px, 89px 97px;
  background-position: 17px 29px, 53px 61px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero-inner {
    min-height: max(70vh, 34rem);
  }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin: 0 0 var(--space-3);
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem); /* 44–72px */
  line-height: 1.04;
  margin: 0 0 var(--space-3);
  color: #ffffff;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  color: #c6cfe0;
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.hero-sub strong {
  color: var(--gold-pale);
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  display: inline-block;
}

.btn-hero--primary {
  background: linear-gradient(135deg, #f0cd74 0%, #d9a441 55%, #bd8a2b 100%);
  color: #1b2233;
  box-shadow: 0 8px 26px rgba(217, 164, 65, 0.35);
}

.btn-hero--primary:hover {
  filter: brightness(1.07);
}

.btn-hero--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-hero--ghost:hover {
  border-color: var(--gold);
}

/* Kugel-Orbit rechts: große Kugeln (80–140px) mit Dekozahlen */

.hero-orbit {
  position: relative;
  min-height: 26rem;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  left: -6%;
  top: 22%;
  width: 112%;
  height: 58%;
  border: 2px solid rgba(217, 164, 65, 0.4);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.hero-orbit::after {
  /* zweite, dezentere Bahn */
  content: "";
  position: absolute;
  left: 4%;
  top: 12%;
  width: 96%;
  height: 74%;
  border: 1px solid rgba(158, 173, 200, 0.18);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.hero-ball {
  position: absolute;
  border-radius: 50%;
  background: var(--ball-sphere);
  box-shadow: var(--shadow-ball);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ball-text);
  z-index: 1;
}

.hero-ball--gold {
  background: var(--ball-gold);
  color: var(--ball-gold-text);
}

.hero-ball:nth-child(1) { width: 8.75rem; height: 8.75rem; font-size: 3rem;    left: 8%;  top: 2%; }
.hero-ball:nth-child(2) { width: 7.5rem;  height: 7.5rem;  font-size: 2.5rem;  right: 4%; top: 16%; }
.hero-ball:nth-child(3) { width: 6rem;    height: 6rem;    font-size: 2rem;    left: 34%; top: 34%; }
.hero-ball:nth-child(4) { width: 6.5rem;  height: 6.5rem;  font-size: 2.1rem;  right: 22%; bottom: 12%; }
.hero-ball:nth-child(5) { width: 5rem;    height: 5rem;    font-size: 1.6rem;  left: 6%;  bottom: 8%; }
.hero-ball:nth-child(6) { width: 4.4rem;  height: 4.4rem;  font-size: 1.4rem;  right: 2%; bottom: 38%; }

@media (max-width: 60rem) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    display: none;
  }
}

/* Flacher Seitenkopf der Detailseiten: volle Breite, Eyebrow + große H1 */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0c1424 0%, #081020 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1.4px);
  background-size: 170px 150px;
  background-position: 23px 31px;
  opacity: 0.3;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.page-hero p {
  color: #c6cfe0;
  max-width: 50rem;
  margin-bottom: 0;
}

.page-hero .eyebrow,
.hero .eyebrow {
  color: var(--gold-bright);
  margin-bottom: var(--space-2);
}

.page-hero strong,
.page-hero em {
  color: var(--gold-pale);
  font-style: normal;
}

.page-hero a {
  color: var(--gold-pale);
}

/* ------------------------------------------------------------
   Karten allgemein
   ------------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.placeholder-note {
  color: var(--muted);
  font-style: italic;
}

/* Lotterie-Karten (Startseite): zentrierte Anatomie wie im Mockup */

.home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  transition: transform var(--transition-fast),
    border-color var(--transition-fast);
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.home-card__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--la);
  margin: 0;
}

.home-card [data-home-card] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-height: 9.5rem;
}

.home-card .balls {
  justify-content: center;
}

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-date svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold-bright);
}

.card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-bright);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Platz für Jackpot-Zeile (Daten kommen mit M7) */
.card__jackpot {
  display: none;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  width: 100%;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-4);
}

.footer-columns {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-bottom: var(--space-4);
}

.footer-columns h2 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 var(--space-2);
}

.footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-1);
}

.site-footer a {
  color: inherit;
}

.footer-warning {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: 0 0 var(--space-2);
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}

/* ------------------------------------------------------------
   Lottokugeln
   ------------------------------------------------------------ */

.balls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: var(--space-2) 0;
}

.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ball-sphere);
  border: none;
  color: var(--ball-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-ball);
}

.ball--extra {
  background: var(--ball-gold);
  color: var(--ball-gold-text);
}

.ball--digit {
  width: 2rem;
  height: 2.3rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #24334f 0%, #16223a 100%);
  color: #f3f5fa;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.ball--hit {
  background: var(--ball-gold);
  color: var(--ball-gold-text);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow-ball);
}

[data-block-latest] .ball {
  width: 3rem;
  height: 3rem;
  font-size: 1.15rem;
}

[data-archive-table] .ball {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.8rem;
}

[data-archive-table] .balls {
  gap: var(--space-1);
  margin: var(--space-1) 0;
}

[data-archive-table] .ball--digit {
  width: 1.6rem;
  height: 1.9rem;
  font-size: 0.8rem;
}

.balls--losnummer {
  gap: var(--space-1);
}

.latest-date,
.next-draw {
  color: var(--muted);
  margin: var(--space-1) 0;
}

[data-block-latest] {
  min-height: 10rem;
}

main[data-lottery="keno"] [data-block-latest] {
  min-height: 12rem;
}

.extra-hint,
.plus5-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin: var(--space-1) 0 0;
}

.small-note {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   Kennzahlen-Kacheln
   ------------------------------------------------------------ */

.kpi-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  min-height: 5.75rem;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-2);
  align-items: center;
}

.kpi__icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(217, 164, 65, 0.08);
  color: var(--la);
}

.kpi__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.kpi__value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--la);
  line-height: 1.2;
}

.kpi__label {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 47rem) {
  main[data-lottery="keno"] [data-block-latest] {
    min-height: 16rem;
  }

  .kpi-grid {
    min-height: 12rem;
  }
}

/* ------------------------------------------------------------
   Buttons + Formulare
   ------------------------------------------------------------ */

.btn {
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1b2233;
  border-radius: 10px;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: filter var(--transition-fast);
}

.btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--small {
  padding: var(--space-1) var(--space-2);
  font-size: 0.85rem;
}

.btn--ghost {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-deep);
}

.btn-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-3) 0;
  align-items: center;
}

input[type="text"],
select {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: var(--space-2) var(--space-3);
}

/* ------------------------------------------------------------
   Generator + Teilungsschutz-Ring
   ------------------------------------------------------------ */

.combo {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.combo .balls {
  flex: 1 1 16rem;
}

.combo__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.shield-ring {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.shield-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.shield-ring__track {
  fill: none;
  stroke: rgba(217, 164, 65, 0.18);
  stroke-width: 5;
}

.shield-ring__bar {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
}

.shield-ring__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-bright);
  line-height: 1;
  text-align: center;
}

.shield-ring__max {
  display: block;
  font-size: 0.6rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 400;
}

/* große Variante (Startseiten-Anriss, wie im Mockup rechts) */
.shield-ring--big {
  width: 170px;
  height: 170px;
}

.shield-ring--big .shield-ring__value {
  font-size: 2.6rem;
}

.shield-ring--big .shield-ring__max {
  font-size: 0.85rem;
}

/* Generator-Anriss auf der Startseite */
.gen-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
}

@media (max-width: 47rem) {
  .gen-teaser {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ------------------------------------------------------------
   Charts
   ------------------------------------------------------------ */

.chart-scroll {
  overflow-x: auto;
  position: relative;
  padding-bottom: var(--space-2);
  min-height: 240px;
}

.chart {
  display: block;
  min-width: 100%;
  height: 220px;
}

.chart__bar {
  fill: var(--chart-blue);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.chart__bar--top {
  fill: var(--gold);
}

.chart__bar:hover,
.chart__bar:focus {
  opacity: 1;
  outline: none;
}

.chart__toplabel {
  fill: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
}

.chart__grid {
  stroke: rgba(158, 173, 200, 0.15);
  stroke-width: 1;
}

.chart__axis {
  fill: var(--muted);
  font-size: 10px;
}

.chart__expected {
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.chart__expected-label {
  fill: var(--muted);
  font-size: 10px;
}

.chart-legend {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 var(--space-2);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chart-legend i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  display: inline-block;
}

.chart-legend .legend-blue {
  background: var(--chart-blue);
}

.chart-legend .legend-gold {
  background: var(--gold);
}

.chart-tooltip {
  position: absolute;
  background: #0a101d;
  border: 1px solid var(--border-strong);
  color: #f3f5fa;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.8rem;
  pointer-events: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Tabellen
   ------------------------------------------------------------ */

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

thead th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-scroll {
  overflow-x: auto;
}

.archive-controls {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.archive-jackpot {
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}

/* Aufgeklappte Quoten-Zeile im Archiv */
.quota-row > td {
  background: var(--surface-2);
  padding: var(--space-3);
}

.quota-table {
  max-width: 36rem;
  margin-bottom: var(--space-2);
}

.quota-table th,
.quota-table td {
  font-size: 0.9rem;
}

.quota-table td {
  font-variant-numeric: tabular-nums;
}

/* Übersichtstabelle Startseite: kompakte Kugeln */
[data-home-archive] .ball {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.8rem;
}

[data-home-archive] .balls {
  gap: var(--space-1);
  margin: 0;
}

/* ------------------------------------------------------------
   Zahlen-Picker
   ------------------------------------------------------------ */

.pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-2) 0;
}

.pick {
  font: inherit;
  font-variant-numeric: tabular-nums;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.pick:hover {
  border-color: var(--gold);
}

.pick--on {
  background: var(--ball-gold);
  border-color: var(--gold-deep);
  color: var(--ball-gold-text);
  font-weight: 700;
}

/* ------------------------------------------------------------
   Tipp-Check + gespeicherte Tipps
   ------------------------------------------------------------ */

.tipcheck {
  border: 1px solid var(--gold-deep);
  background: rgba(217, 164, 65, 0.07);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

.tipcheck h3 {
  margin: 0 0 var(--space-2);
}

.tipcheck__row {
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
}

.tipcheck__row:last-of-type {
  border-bottom: none;
}

.tipcheck__row p {
  margin: 0 0 var(--space-1);
}

.tipcheck .ball,
.mytip .ball {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
}

.mytip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.mytip__date {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 5.5rem;
}

/* ------------------------------------------------------------
   Details/FAQ + Ehrlichkeits-Block + Zusatzspiele
   ------------------------------------------------------------ */

details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  background: var(--surface);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: var(--space-2);
}

.honesty {
  border-inline-start: 4px solid var(--gold);
}

.side-games {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.side-games .card {
  background: var(--surface-2);
}

.check-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  margin: var(--space-2) 0;
}

.check-result {
  font-weight: 600;
  margin: var(--space-2) 0 0;
  min-height: 1.4em;
}

/* ------------------------------------------------------------
   Consent-Banner (Buttons identisch — kein Nudging)
   ------------------------------------------------------------ */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--surface-2);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
  padding: var(--space-3);
  outline: none;
}

.consent-banner__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.consent-banner p {
  margin: 0;
  flex: 1 1 20rem;
  font-size: 0.925rem;
}

.consent-banner__buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.consent-banner__btn {
  min-width: 9.5rem;
  text-align: center;
}

.linklike {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ------------------------------------------------------------
   Ad-Slots: unsichtbar bis data-ad-status="filled"
   ------------------------------------------------------------ */

.ad-slot {
  display: none;
}

.ads-enabled .ad-slot--filled {
  display: block;
  margin: var(--space-4) 0;
}

.ads-enabled .ad-slot--filled::before {
  content: "Anzeige";
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
