/* =========================================================================
   SlotMagie Check – unabhängiges Testportal
   Stylesheet, Stand Oktober 2026
   ========================================================================= */

:root {
  --c-text: #14203a;
  --c-text-soft: #4a5670;
  --c-line: #dde3ee;
  --c-line-soft: #eef1f7;
  --c-bg: #f5f7fb;
  --c-surface: #ffffff;
  --c-brand: #1f5fa9;
  --c-brand-dark: #16457a;
  --c-brand-soft: #eaf1fa;
  --c-accent: #c8102e;
  --c-good: #1b7f4d;
  --c-warn-bg: #fff8e6;
  --c-warn-line: #e6c86a;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(20, 32, 58, .06), 0 8px 24px rgba(20, 32, 58, .06);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; margin: 0 0 .6em; color: var(--c-text); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-top: 0; }
h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.3rem); }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-brand-dark); }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-brand); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Titel von Service-Bausteinen (Sidebar, Footer, Cookie, Inhaltsverzeichnis).
   Bewusst KEINE Überschriften-Elemente: Sie sollen in der Gliederung der Seite
   nicht neben den inhaltlichen H2 stehen. */
.card-title, .footer-title, .toc__title, .cookie__title {
  font-weight: 700; line-height: 1.3; margin: 0 0 .6em;
}
.card-title { font-size: 17px; color: var(--c-text); }

/* ---------- Disclaimer-Leiste ---------- */
.topbar {
  background: #14203a;
  color: #d6dced;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 8px 0;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; text-align: center; }
.topbar strong { color: #fff; }
.topbar a { color: #cfe0f7; }
.topbar .age { background: var(--c-accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; }

/* ---------- Header ---------- */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.wordmark { display: inline-flex; align-items: baseline; gap: 2px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--c-text); }
.wordmark span { color: var(--c-brand); }
.wordmark small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-soft); }
.wordmark__box { display: flex; flex-direction: column; line-height: 1.15; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--c-brand-soft); color: var(--c-brand-dark);
  border: 1px solid #cfe0f2; border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; font-weight: 600; padding: 8px 12px; cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: 15.5px; font-weight: 600; color: var(--c-text); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--c-brand-soft); color: var(--c-brand-dark); }

/* ---------- Brotkrumen ---------- */
.breadcrumb { font-size: 14px; color: var(--c-text-soft); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 6px; color: #8a95ad; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #14203a 0%, #1f5fa9 100%); color: #fff; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,35,.72) 0%, rgba(10,18,35,.88) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding: 56px 20px 48px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #dfe6f4; max-width: 62ch; }
.hero__meta { font-size: 14px; color: #b9c5dd; margin-top: 18px; }
.hero__meta a { color: #cfe0f7; }

.score-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(3px); }
.score-card__value { font-size: 44px; font-weight: 800; line-height: 1; }
.score-card__value sub { font-size: 17px; font-weight: 600; color: #b9c5dd; vertical-align: baseline; }
.score-card__label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #b9c5dd; margin-bottom: 8px; }
.score-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.score-card li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.2); padding-bottom: 6px; }
.score-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.score-card b { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: #fff; color: #14203a; }
.btn--primary:hover { background: #e6ecf7; color: #14203a; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--solid { background: var(--c-brand); color: #fff; }
.btn--solid:hover { background: var(--c-brand-dark); color: #fff; }
.btn--quiet { background: var(--c-line-soft); color: var(--c-text); }
.btn--quiet:hover { background: #e3e8f2; color: var(--c-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Werbezeitfenster: Hinweis statt Promo-CTA */
.ad-window-note {
  margin-top: 22px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.25);
  font-size: 14.5px; color: #e2e9f6;
}
.ad-window-note a { color: #fff; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
main { padding: 40px 0 60px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }

.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.section { scroll-margin-top: 90px; margin-bottom: 26px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.figure { margin: 0; }
.figure img { border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-line-soft); }
.figure figcaption { font-size: 13.5px; color: var(--c-text-soft); margin-top: 8px; }

/* ---------- Inhaltsverzeichnis ---------- */
.toc { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; box-shadow: var(--shadow); }
.toc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toc__title { font-size: 17px; margin: 0; }
.toc__btn { background: var(--c-brand-soft); border: 1px solid #cfe0f2; color: var(--c-brand-dark); border-radius: var(--radius-sm); font: inherit; font-size: 14px; font-weight: 600; padding: 5px 11px; cursor: pointer; }
.toc ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 5px; font-size: 15.5px; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 20px; position: sticky; top: 84px; }
.sidebar .card { padding: 20px; }
.sidebar p, .sidebar li { font-size: 14.5px; }
.sidebar ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- Tabellen ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; }
/* Zweispaltige Steckbrief-Tabellen dürfen in schmalen Spalten umbrechen
   statt horizontal zu scrollen. */
.table--compact { min-width: 0; }
/* Nur Datenzellen dürfen notfalls mitten im Wort brechen (E-Mail, Aktenzeichen).
   Die Kopfspalte behält normalen Wortumbruch, sonst zerlegt der
   Tabellenalgorithmus lange deutsche Komposita buchstabenweise. */
.table--compact td { overflow-wrap: anywhere; }
.table--compact tbody th { width: auto; white-space: nowrap; }
@media (max-width: 420px) {
  .table--compact tbody th { white-space: normal; overflow-wrap: break-word; }
}
caption { text-align: left; font-size: 14px; color: var(--c-text-soft); padding-bottom: 8px; }
th, td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--c-brand-soft); color: var(--c-brand-dark); font-size: 14.5px; }
tbody th { background: var(--c-line-soft); font-weight: 600; width: 38%; }

/* ---------- Bewertungsbalken ---------- */
.ratings { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ratings li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.ratings b { font-variant-numeric: tabular-nums; font-size: 15px; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--c-line-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--c-brand); }

/* ---------- Pro / Contra ---------- */
.proscons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.proscons > div { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 16px 18px; }
.proscons h4 { margin-bottom: .5em; }
.proscons ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.pros { background: #f2faf5; border-color: #c6e6d4; }
.pros h4 { color: var(--c-good); }
.cons { background: #fdf4f5; border-color: #efc9cf; }
.cons h4 { color: var(--c-accent); }

/* ---------- Hinweisboxen ---------- */
.note { border: 1px solid var(--c-warn-line); background: var(--c-warn-bg); border-radius: var(--radius-sm); padding: 15px 18px; font-size: 15.5px; margin: 0 0 1em; }
.note--info { border-color: #bcd7f0; background: var(--c-brand-soft); }
.note p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 700; color: var(--c-brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 16px 15px; font-size: 15.5px; }

/* ---------- Redaktion ---------- */
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--c-text-soft); border-top: 1px solid var(--c-line); padding-top: 14px; margin-top: 18px; }
.byline--plain { border-top: 0; padding-top: 0; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #14203a; color: #c3cde2; font-size: 15px; padding: 40px 0 28px; }
.footer-title { color: #fff; font-size: 16px; }
.site-footer a { color: #d9e3f5; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: 13.5px; color: #97a5c2; }
.help-line { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 14px 16px; }
.help-line strong { color: #fff; font-size: 17px; }

/* ---------- Cookie-Banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin-inline: auto;
  background: #fff; color: var(--c-text); border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(20,32,58,.22);
  padding: 20px; font-size: 15px;
}
.cookie__title { font-size: 17px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie .btn { font-size: 15px; padding: 10px 18px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; order: 3; padding-bottom: 12px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 11px 13px; border-radius: var(--radius-sm); }
  .site-header__inner { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .two-col, .proscons, .sidebar { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__inner { padding: 40px 20px 36px; }
  .card { padding: 20px; }
  .btn-row .btn { width: 100%; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .card { padding: 17px; }
}

@media print {
  .topbar, .site-header, .cookie, .btn-row, .sidebar { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
