/* ==========================================================================
   SpinBetter DE – Review Site
   Ein einziges Stylesheet, kein JavaScript.
     01 Variablen
     02 Reset & Basis
     03 Header + Subnav
     04 Buttons
     05 Hero-Banner / Seitenkopf
     06 Sections & Split-Block
     07 Cards
     08 Bonus-Boxen
     09 Tabellen
     10 Pro & Contra
     11 FAQ
     12 Rating & Hinweise
     13 Footer
     14 Nach-oben-Button
     15 Responsive
   ========================================================================== */

/* ---------- 01 Variablen ---------- */
:root {
  color-scheme: dark;
  --bg: #06231c;
  --bg-alt: #08291f;
  --header: #0a2b22;
  --card: #0d3327;
  --card-2: #114031;
  --line: #1a5442;
  --text: #ffffff;
  --muted: #a9cbbb;
  --lime: #c9e400;
  --lime-2: #b0c800;
  --lime-ink: #10230a;
  --magenta: #d715d7;
  --magenta-2: #b60fb6;
  --gold: #ffc44d;
  --danger: #ff6b6b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --wrap: 1280px;
}

/* ---------- 02 Reset & Basis ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: #fff; }
h1 { font-size: 2.3rem; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin: 0 0 18px; }
h3 { font-size: 1.15rem; margin: 22px 0 10px; }
p { margin-bottom: 16px; color: #dceee5; }
ul, ol { margin: 0 0 18px 22px; color: #dceee5; }
li { margin-bottom: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Skip-Link: nur bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

main { display: block; }

/* ---------- 03 Header + Subnav ---------- */
.header {
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 60;
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; margin-right: auto; }
.logo:hover { text-decoration: none; }
.logo img { height: 26px; width: auto; }

.header-cta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Zweite Leiste mit Navigation */
.subnav {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.subnav .wrap { display: flex; align-items: center; gap: 6px; min-height: 46px; }
.subnav a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: #eaf6ee;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.subnav a:hover { background: var(--card-2); text-decoration: none; }
.subnav a.active { background: var(--card-2); color: var(--lime); }

/* ---------- 04 Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--magenta), var(--magenta-2));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lime { background: var(--lime); color: var(--lime-ink); font-weight: 800; }
.btn-lime:hover { background: #d8f21a; }

.btn-dark {
  background: var(--card-2);
  color: #fff;
  border: 1px solid var(--line);
}
.btn-dark:hover { background: var(--line); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--lime);
  color: var(--lime);
}
.btn-outline:hover { background: rgba(201, 228, 0, .12); }

.btn-sm { padding: 9px 16px; font-size: .8rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn-wide { min-width: 380px; }

/* ---------- 05 Hero-Banner / Seitenkopf ---------- */
.hero-banner {
  margin: 22px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background-color: #0a1f19;
  background-image: url("imgs/spinbetter.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  /* Original-Banner: 1380 × 248 px */
  aspect-ratio: 1380 / 248;
  min-height: 248px;
  display: flex;
  align-items: center;
}
/* Banner der Bonus-Seite */
.hero-banner--bonus {
  background-image: url("imgs/spinbetter-bonus.webp");
  /* Oberkante fixieren, damit die Figuren nicht angeschnitten werden */
  background-position: right top;
}
/* Banner der Casino-Seite */
.hero-banner--casino {
  background-image: url("imgs/spinbetter-casino.webp");
  background-position: right top;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 22, 17, .88) 0%, rgba(4, 22, 17, .55) 45%, rgba(4, 22, 17, 0) 80%);
}
.hero-banner-inner {
  position: relative;
  z-index: 2;
  padding: 42px 40px;
  max-width: 720px;
  width: 100%;
}
.hero-banner h2 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hero-banner p {
  color: #eaf6ee;
  font-size: 1.02rem;
  margin-bottom: 26px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* Innenseiten: kein Banner */
.page-head { padding: 34px 0 6px; }
.page-head h1 { margin-bottom: 12px; }
.page-head p.lead { color: var(--muted); max-width: 820px; margin-bottom: 0; }

/* ---------- 06 Sections & Split ---------- */
.section { padding: 46px 0; }
.section-alt { background: var(--bg-alt); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.split h1, .split h2 { font-size: 2rem; line-height: 1.25; margin: 0 0 18px; }
.split .btn { margin-top: 6px; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- 07 Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--lime); transform: translateY(-3px); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon { font-size: 1.7rem; margin-bottom: 8px; }

/* ---------- 08 Bonus-Boxen ---------- */
.bonus-box {
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}
.bonus-box h3 { margin: 0 0 6px; font-size: 1.25rem; }
.bonus-box .amount {
  color: var(--lime);
  font-size: 1.85rem;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
  line-height: 1.2;
}
.bonus-box .terms { font-size: .85rem; color: var(--muted); margin-bottom: 0; }

/* ---------- 09 Tabellen ---------- */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; background: transparent; }
thead th, tr:first-child th {
  background: linear-gradient(180deg, var(--card-2), #0c3427);
  color: var(--lime);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
  border-bottom: 2px solid var(--lime);
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  vertical-align: top;
  color: #dceee5;
}
tbody th, tr > th:first-child:not(:only-child) {
  color: #fff;
  font-weight: 700;
  background: rgba(17, 64, 49, .55);
  width: 34%;
}
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
tr:hover td { background: rgba(201, 228, 0, .07); }
tr:last-child td, tr:last-child th { border-bottom: none; }
td strong { color: var(--lime); }

table caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--text);
}

/* ---------- 10 Pro & Contra ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pros, .cons {
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--card);
}
.pros { border-left: 4px solid var(--lime); }
.cons { border-left: 4px solid var(--danger); }
.pros h3 { color: var(--lime); margin-top: 0; }
.cons h3 { color: var(--danger); margin-top: 0; }
.pros ul, .cons ul { margin-bottom: 0; }

/* ---------- 11 FAQ (ohne JavaScript) ---------- */
.faq { max-width: 960px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.faq details:hover { border-color: var(--lime-2); }
.faq details[open] { background: linear-gradient(180deg, var(--card-2), var(--card)); border-color: var(--lime); }

.faq summary {
  cursor: pointer;
  display: block;
  position: relative;
  padding: 16px 60px 16px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  list-style: none;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover { color: var(--lime); }
.faq summary:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--lime), var(--lime)) center/11px 2px no-repeat,
    linear-gradient(var(--lime), var(--lime)) center/2px 11px no-repeat,
    var(--card-2);
  transition: transform .25s ease, background-color .2s ease, border-color .2s ease;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--lime-ink), var(--lime-ink)) center/11px 2px no-repeat,
    var(--lime);
  border-color: var(--lime);
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: .97rem;
  animation: faqFade .25s ease;
}
.faq-answer ul, .faq-answer ol { margin: 10px 0 0 20px; color: var(--muted); }

@keyframes faqFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer { animation: none; }
  .faq details[open] summary::after { transition: none; }
}

/* ---------- 11b Inhaltsverzeichnis, Schritte, Listen ---------- */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 760px;
}
.toc h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lime);
  margin-bottom: 14px;
}
.toc ol { counter-reset: toc; list-style: none; margin: 0; }
.toc li { counter-increment: toc; margin-bottom: 10px; padding-left: 34px; position: relative; }
.toc li:last-child { margin-bottom: 0; }
.toc li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--lime);
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  line-height: 22px;
}
.toc a { color: #eaf6ee; font-weight: 600; }
.toc a:hover { color: var(--lime); }

/* Nummerierte Schritte */
ol.steps { counter-reset: step; list-style: none; margin: 0 0 20px; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 58px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  font-size: .9rem;
  text-align: center;
  line-height: 28px;
}

/* Liste mit Gedankenstrich */
ul.dash-list { list-style: none; margin: 0 0 18px; }
ul.dash-list li { position: relative; padding-left: 24px; }
ul.dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}

/* Anker unter dem Sticky-Header korrekt anspringen */
section[id], h2[id] { scroll-margin-top: 110px; }

/* ---------- 12 Rating & Hinweise ---------- */
.rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.rating .score {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}
.stars { color: var(--gold); letter-spacing: 2px; }

.note {
  background: var(--card-2);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--muted);
  font-size: .92rem;
  margin: 22px 0;
}
/* ---------- Inhaltsverzeichnis (aufklappbar, ohne JavaScript) ---------- */
.toc {
  max-width: 950px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 26px 0;
  overflow: hidden;
}
.toc > summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 52px 15px 20px;
  position: relative;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  user-select: none;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: "▾";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lime);
  font-size: 1.1rem;
  transition: transform .2s ease;
}
.toc[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.toc > summary:hover { background: var(--card-2); }
.toc > summary:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.toc ol {
  margin: 0;
  padding: 18px 24px 20px 44px;
  border-top: 1px solid var(--line);
}
.toc li { margin-bottom: 10px; }
.toc li:last-child { margin-bottom: 0; }
.toc a { color: #eaf6ee; font-weight: 600; }
.toc a:hover { color: var(--lime); }

.page-content { max-width: 950px; }
.page-content h2 { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-top: 34px; }

/* ---------- 13 Footer ---------- */
.footer {
  background: var(--header);
  border-top: 1px solid var(--line);
  padding: 34px 0 24px;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 10px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.footer-logo img { height: 26px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { color: #eaf6ee; font-weight: 600; }
.footer-nav a:hover { color: var(--lime); }
.footer-note { padding-top: 20px; text-align: center; font-size: .84rem; line-height: 1.6; }
.footer-note strong { color: var(--lime); }

/* ---------- 14 Nach-oben-Button ---------- */
/* Reiner Anker-Link, kein JavaScript – springt zu <body id="top"> */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--lime), var(--lime-2));
  color: var(--lime-ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18) inset;
  opacity: .9;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .28) inset;
  text-decoration: none;
}
.to-top:hover svg { transform: translateY(-2px); }
.to-top:active { transform: translateY(0); }
.to-top:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- 15 Responsive ---------- */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 30px; }
  .btn-wide { min-width: 0; width: 100%; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .hero-banner h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .to-top svg { width: 19px; height: 19px; }
  h1 { font-size: 1.8rem; }
  h2, .split h2 { font-size: 1.45rem; }

  .header .wrap { min-height: 54px; gap: 10px; }
  .logo img { height: 22px; }
  .header-cta .btn { padding: 8px 12px; font-size: .74rem; letter-spacing: .3px; }

  .subnav .wrap { overflow-x: auto; white-space: nowrap; min-height: 44px; }
  .subnav a { padding: 8px 12px; font-size: .82rem; }

  /* Hero mobil: Motiv oben sichtbar lassen, Text unten auf dunklem Verlauf */
  .hero-banner {
    /* auf kleinen Screens kein 1380×248-Verhältnis – sonst wird der Text zu eng */
    aspect-ratio: auto;
    min-height: 340px;
    background-size: cover;
    align-items: flex-end;
    margin-top: 14px;
  }
  /* Bildausschnitt pro Banner: Figur steht jeweils weit rechts im Motiv */
  .hero-banner { background-position: 90% top; }
  .hero-banner--bonus { background-position: 96% top; }
  .hero-banner--casino { background-position: 76% top; }
  .hero-banner::before {
    background: linear-gradient(180deg,
      rgba(4, 22, 17, .10) 0%,
      rgba(4, 22, 17, .55) 42%,
      rgba(4, 22, 17, .90) 72%,
      rgba(4, 22, 17, .97) 100%);
  }
  .hero-banner-inner {
    padding: 20px 18px 24px;
    max-width: 100%;
    text-align: center;
  }
  .hero-banner h2 { font-size: 1.6rem; margin-bottom: 8px; }
  .hero-banner p { font-size: .92rem; line-height: 1.5; margin-bottom: 16px; }
  .hero-banner .btn { width: 100%; padding: 14px 20px; font-size: .95rem; }

  .section { padding: 32px 0; }
  .cards, .cards-2, .cards-4, .pros-cons { grid-template-columns: 1fr; }
  .bonus-box { grid-template-columns: 1fr; text-align: center; }
  .bonus-box .btn { width: 100%; }
  th, td { padding: 11px 13px; font-size: .9rem; }

  .faq summary { padding: 14px 52px 14px 16px; font-size: .97rem; }
  .faq-answer { padding: 0 16px 16px; }

  .toc > summary { padding: 13px 46px 13px 16px; font-size: .96rem; }
  .toc ol { padding: 16px 18px 18px 38px; }
  ol.steps li { padding: 12px 14px 12px 52px; }
  section[id], h2[id] { scroll-margin-top: 96px; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { gap: 16px; flex-direction: column; }
}

/* Sehr kleine Screens */
@media (max-width: 420px) {
  .hero-banner { min-height: 300px; background-position: 92% top; }
  .hero-banner--bonus { background-position: 97% top; }
  .hero-banner--casino { background-position: 78% top; }
  .hero-banner h2 { font-size: 1.42rem; }
}

@media (max-width: 420px) {
  .header-cta .btn-dark { display: none; } /* nur "Anmeldung" bleibt sichtbar */
  .btn { padding: 12px 18px; }
}
