/* ==========================================================================
   Spinbetter DE — Haupt-Stylesheet
   Kein JavaScript. Mobile-First. Alle Styles in dieser Datei.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Dunkelgrünes Farbschema */
  --bg:            #0a140f;
  --bg-alt:        #0f1d16;
  --surface:       #13261c;
  --surface-2:     #1a3325;
  --border:        #234634;

  --accent:        #2fd07a;
  --accent-hover:  #5fe4a0;
  --accent-dark:   #1fa860;
  --accent-2:      #12a05c;

  --text:          #e6f0e9;
  --text-muted:    #9bb3a5;
  --text-dim:      #6d8a7b;

  --success:       #4ade80;
  --danger:        #ef5350;

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;

  --shadow:        0 4px 24px rgba(0, 0, 0, .5);
  --shadow-accent: 0 6px 20px rgba(47, 208, 122, .28);

  /* Transparente Akzentflächen */
  --accent-a08:    rgba(47, 208, 122, .08);
  --accent-a12:    rgba(47, 208, 122, .12);
  --accent-a18:    rgba(47, 208, 122, .18);

  /* Kontrastfarbe für Buttons (Call-to-Action) */
  --cta:           #c8f52d;
  --cta-2:         #a8e000;
  --cta-text:      #10200f;
  --shadow-cta:    0 6px 22px rgba(200, 245, 45, .38);

  --wrap:          1180px;
  --header-h:      64px;

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset / Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}
h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   3. Layout-Helfer
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 36px 0; }
.section--alt { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   3b. Seitennavigation (Inhaltsverzeichnis) — reines CSS
   -------------------------------------------------------------------------- */

/* Abstand für den sticky Header, damit Ankerziele nicht darunter liegen. */
.section[id],
h2[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* --------------------------------------------------------------------------
   3a. Intro-Block: Bild links, Text + Button rechts
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   3c. Call-to-Action-Elemente im Fliesstext
   -------------------------------------------------------------------------- */

/* Button-Reihe */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}
.cta-row .btn { flex: 1 1 220px; }
.cta-row--center { justify-content: center; }

@media (min-width: 700px) {
  .cta-row .btn { flex: 0 0 auto; min-width: 230px; }
}

/* Hinweiskasten mit Button */
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 28px 0 0;
  padding: 20px 18px;
  background: linear-gradient(150deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-box p { margin: 0; color: var(--text-muted); }
.cta-box strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.08rem; }

@media (min-width: 700px) {
  .cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 26px;
  }
  .cta-box .btn { flex: 0 0 auto; min-width: 250px; }
}

/* Breiter Aktionsbanner (Text links, Bild als Hintergrund rechts) */
.promo-hero { padding: 26px 0 0; }

.promo-hero__inner {
  position: relative;
  padding: 26px 20px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--surface);
  background-image:
    linear-gradient(180deg, rgba(10, 20, 15, .92) 0%, rgba(10, 20, 15, .75) 100%),
    url("imgs/spinbetter.webp");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center right;
  background-size: cover, cover;
}

.promo-hero__title {
  margin: 0 0 .35em;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.promo-hero__sub {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: .98rem;
}

.promo-hero .btn { display: block; width: 100%; }

@media (min-width: 700px) {
  .promo-hero__inner {
    padding: 34px 34px 36px;
    background-image:
      linear-gradient(90deg, rgba(10, 20, 15, .96) 0%, rgba(10, 20, 15, .88) 42%, rgba(10, 20, 15, .15) 100%),
      url("imgs/spinbetter.webp");
  }
  .promo-hero__title { font-size: 2rem; }
  .promo-hero__sub { font-size: 1.02rem; }
  .promo-hero .btn { display: inline-block; width: auto; min-width: 300px; }
}

/* Bild + Text + Button im Fliesstext */
.media-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin: 26px 0 30px;
}

.media-cta__img {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.media-cta__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-cta__img:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.media-cta__body h1,
.media-cta__body h2 { margin-bottom: .5em; }

.media-cta__body p {
  color: var(--text-muted);
  font-size: 1.01rem;
}

.media-cta__body .btn { margin-top: 6px; }

@media (min-width: 900px) {
  .media-cta { grid-template-columns: 1.1fr 1fr; gap: 44px; margin: 30px 0 34px; }
}

/* Aufklappbares Inhaltsverzeichnis — natives <details>, kein JavaScript. */
.toc {
  margin: 26px 0 0;
  padding: 0;
  background: linear-gradient(150deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Kopfzeile des Blocks (klickbar) */
.toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .2s ease;
}

/* Standard-Dreieck der Browser entfernen */
.toc__title::-webkit-details-marker { display: none; }
.toc__title::marker { content: ""; }

.toc__title:hover { background: var(--accent-a08); }

/* Eigener Pfeil rechts */
.toc__title::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
  transition: transform .25s ease;
}
.toc[open] .toc__title::after { transform: rotate(180deg); }

.toc ol {
  list-style: none;
  margin: 0;
  padding: 10px 14px 16px;
  border-top: 1px solid var(--border);
  counter-reset: toc;
}

.toc li { margin: 0; counter-increment: toc; }

.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease;
}

/* Runde Nummer */
.toc a::before {
  content: counter(toc);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 50px;
  background: var(--accent-a18);
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease;
}

.toc a:hover,
.toc a:focus-visible {
  background: var(--accent-a08);
  color: var(--accent-hover);
  text-decoration: none;
}

.toc a:hover::before,
.toc a:focus-visible::before {
  background: var(--accent);
  color: #06120b;
}

@media (min-width: 700px) {
  .toc__title { padding: 18px 24px; font-size: 1.08rem; }
  .toc ol { padding: 12px 20px 20px; }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* --------------------------------------------------------------------------
   4. Kopfzeile + Navigation (CSS-only Burger)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 15, .97);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.logo:hover { text-decoration: none; opacity: .85; }
.logo img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
@media (min-width: 900px) {
  .logo img { height: 38px; max-width: 190px; }
}

/* Burger-Steuerung ohne JS */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  transition: max-height .3s ease;
}
.nav-toggle:checked ~ .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 14px;
}
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.nav a:hover,
.nav a.is-active {
  color: var(--accent);
  background: var(--surface);
  text-decoration: none;
}

/* Buttons in der Kopfzeile (ab 900px sichtbar) */
.header__actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Dieselben Buttons im aufgeklappten Mobilmenü */
.nav__cta {
  display: flex;
  gap: 10px;
  padding: 14px 20px 6px;
}
.nav__cta .btn { flex: 1 1 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cta), var(--cta-2));
  color: var(--cta-text);
  font-size: .98rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 245, 45, .22);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  color: var(--cta-text);
  text-decoration: none;
  filter: brightness(1.08);
  box-shadow: var(--shadow-cta);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--cta);
  color: var(--cta);
  padding: 11px 24px;
  box-shadow: none;
}
.btn--outline:hover { background: var(--cta); color: var(--cta-text); }

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--border); color: #fff; }

.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--block { display: block; width: 100%; }
.btn--lg {
  padding: 17px 30px;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   6. Hero / Banner
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #14291e 0%, #0a140f 72%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-a18), transparent 65%);
  pointer-events: none;
}

/* Einspaltig auf allen Breiten — der Banner sitzt als breites,
   flaches Band unter dem Text. */
.hero__inner {
  position: relative;
  display: block;
  padding: 30px 0 34px;
}

.hero h1 { margin-bottom: .4em; }
.hero__sub {
  color: var(--text-muted);
  font-size: 1.03rem;
  margin-bottom: 1.4em;
  max-width: 760px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Langer, schmaler Hero-Banner --- */
.hero__banner {
  display: block;
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.hero__banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Freistehender Werbebanner */
.banner {
  display: block;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner img { width: 100%; }

/* --------------------------------------------------------------------------
   7. Karten / Raster
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card--accent { border-color: var(--accent); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-a12);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
}

/* Bonus-Karte mit Hervorhebung */
.bonus-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.bonus-card__label {
  display: inline-block;
  padding: 4px 11px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--accent-a12);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.bonus-card__amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}
.bonus-card p { color: var(--text-muted); font-size: .94rem; }

/* Promo-Code-Box */
.promo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 18px;
  background: linear-gradient(135deg, var(--accent-a12), var(--accent-a08));
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.promo-box__code {
  display: inline-block;
  padding: 12px 28px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 3px;
  user-select: all;
}
.promo-box__hint { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* --------------------------------------------------------------------------
   8. Listen mit Haken / Kreuzen
   -------------------------------------------------------------------------- */
.list-check,
.list-cross {
  list-style: none;
  padding-left: 0;
}
.list-check li,
.list-cross li {
  position: relative;
  padding-left: 28px;
}
.list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}
.list-cross li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger);
  font-weight: 800;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.steps li {
  position: relative;
  padding: 0 0 4px 46px;
  margin-bottom: 16px;
  min-height: 34px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #06120b;
  font-weight: 800;
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   9. Tabellen (mobil scrollbar)
   -------------------------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .94rem;
}
thead th {
  background: var(--surface-2);
  color: var(--accent);
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }

/* ------------------------------------------------------------------------
   10. FAQ (natives <details>, kein JS)
   ------------------------------------------------------------------------ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  padding: 15px 44px 15px 16px;
  position: relative;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--accent); }
.faq .faq__body {
  padding: 0 16px 16px;
  color: var(--text-muted);
}
.faq .faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Formular (Login-Seite) — rein visuell, ohne JS
   -------------------------------------------------------------------------- */
.form {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.form__row { margin-bottom: 16px; }
.form label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-a18);
}
.form__note {
  margin: 14px 0 0;
  font-size: .85rem;
  color: var(--text-dim);
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. Hinweise / Warnungen
   -------------------------------------------------------------------------- */
.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .94rem;
  margin: 0 0 1.4em;
}
.notice strong { color: #fff; }
.notice--warn { border-left-color: var(--danger); }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--danger);
  border-radius: 50%;
  color: var(--danger);
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   13. Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs {
  padding: 12px 0 0;
  font-size: .85rem;
  color: var(--text-dim);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-dim); }
.crumbs a { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Rechtstexte (Datenschutz / AGB-artige Seiten)
   -------------------------------------------------------------------------- */
.legal { max-width: 860px; }
.legal h2 { margin-top: 1.8em; font-size: 1.3rem; }
.legal h3 { margin-top: 1.4em; font-size: 1.08rem; color: var(--accent); }
.legal p, .legal li { color: var(--text-muted); }
.legal__updated {
  display: inline-block;
  padding: 6px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   15. Fußzeile
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  font-size: .92rem;
  color: var(--text-muted);
}
.footer__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}
.footer h4 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }

.footer__legal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.footer__copy {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   15b. "Nach oben"-Button (reiner Anker-Link, kein JavaScript)
   -------------------------------------------------------------------------- */
/* Sprungmarke ganz oben im Dokument. Darf NICHT am sticky <header> hängen —
   ein sticky Element gilt als "bereits sichtbar" und der Sprung passiert nicht. */
#top {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  text-decoration: none;
  opacity: .92;
  transition: background .25s ease, border-color .25s ease,
              box-shadow .25s ease, transform .25s ease, opacity .25s ease;
}

/* Pfeil komplett in CSS gezeichnet (zwei Rahmenkanten, 45° gedreht) */
.to-top::before {
  content: "";
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-top: 2.5px solid var(--accent);
  border-left: 2.5px solid var(--accent);
  border-radius: 2px 0 0 0;
  transform: rotate(45deg);
  transition: border-color .25s ease;
}

/* Dünner Stiel unter der Pfeilspitze */
.to-top::after {
  content: "";
  position: absolute;
  bottom: 13px;
  width: 2.5px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent);
  transition: background .25s ease;
}

.to-top:hover {
  opacity: 1;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
  text-decoration: none;
}
.to-top:hover::before { border-color: #06120b; }
.to-top:hover::after  { background: #06120b; }

@media (min-width: 900px) {
  .to-top { right: 24px; bottom: 24px; width: 54px; height: 54px; border-radius: 18px; }
  .to-top::before { width: 12px; height: 12px; }
  .to-top::after { bottom: 15px; height: 15px; }
}

/* --------------------------------------------------------------------------
   16. Breakpoints
   -------------------------------------------------------------------------- */

/* --- ab 600px: zwei Spalten --- */
@media (min-width: 600px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.7rem; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { padding: 44px 0 50px; }
}

/* --- ab 900px: Desktop-Navigation, keine Burger --- */
@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .section { padding: 52px 0; }

  h1 { font-size: 2.5rem; }

  .burger { display: none; }

  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    flex: 1 1 auto;
  }
  .nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    padding: 0;
  }
  .nav a {
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    white-space: nowrap;
  }
  .nav a.is-active { background: transparent; }
  .nav ul { gap: 0; }

  .header__actions { display: flex; }
  .nav__cta { display: none; }

  .hero__inner { padding: 52px 0 56px; }
  .hero__banner { margin-top: 34px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }

  .promo-box { flex-direction: row; justify-content: center; gap: 24px; }
  .promo-box__code { font-size: 1.6rem; }
}

/* --- ab 1200px --- */
@media (min-width: 1200px) {
  .hero__inner { padding: 70px 0 78px; }
}

/* --------------------------------------------------------------------------
   17. Druck & Zugänglichkeit
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .header, .footer, .banner, .hero__banner, .btn, .to-top { display: none !important; }
  body { background: #fff; color: #000; }
}
