/* ============================================================
   Beste Online Casino Deutschland 2026 — Editorial Article
   Midnight-lounge theme: deep indigo + casino gold
   ============================================================ */

:root {
  --bg: #0e1322;
  --bg-soft: #141a2c;
  --bg-deep: #0a0e19;
  --ink: #ece7da;
  --ink-strong: #f7f3e9;
  --muted: #98a0b3;
  --muted-strong: #b7bdcc;
  --gold: #c9a44c;
  --gold-soft: #e0c98a;
  --gold-deep: #8f7430;
  --line: rgba(236, 231, 218, 0.14);
  --line-strong: rgba(201, 164, 76, 0.45);
  --measure: 66ch;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg-deep); }

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

a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* ---------- top hairline with diamond ---------- */
.topline {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
}
.topline::after {
  content: "\25C6";
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 15px;
  background: var(--bg);
  padding: 0 14px;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(64px, 9vw, 120px) 24px 48px;
  text-align: center;
  position: relative;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  font-weight: 600;
}

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.08;
  max-width: 22em;
  margin: 0 auto 22px;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
}

h1 .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-deck {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-meta {
  margin-top: 30px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { color: var(--gold); }

.hero-photo {
  margin: 46px auto 0;
  max-width: 1100px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- layout spine ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 7vw, 92px) 0 12px;
  border-top: 1px solid var(--line);
}

/* chapter header: number left, title right on desktop */
.chapter {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 30px;
}
.chapter-num {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.chapter h2 {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}
.chapter-rule {
  display: block;
  height: 1px;
  background: var(--line-strong);
  margin-bottom: 0px;
}

.prose {
  max-width: var(--measure);
}
.prose p {
  margin-bottom: 1.4em;
  color: var(--ink);
}
.prose p.lead {
  font-size: 1.12em;
  color: var(--ink-strong);
}
.prose strong { color: var(--ink-strong); font-weight: 650; }
.prose em { color: var(--gold-soft); }

/* gold-bullet lists — casino chips */
.prose ul, .chapter-list {
  list-style: none;
  margin: 6px 0 1.6em;
}
.prose li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.7em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.78em;
  width: 10px; height: 10px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* numbered steps */
.prose ol {
  list-style: none;
  counter-reset: step;
  margin: 6px 0 1.6em;
}
.prose ol li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 0.8em;
}
.prose ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 470;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 2.1em 0 0.7em;
  color: var(--ink-strong);
}

/* full-bleed images inside article */
.figure {
  margin: 44px 0 10px;
}
.figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- tables (comparison, bonuses, payments) ---------- */
.table-wrap {
  margin: 34px 0 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-soft);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 760px;
}
thead th {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 650;
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted-strong);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(201, 164, 76, 0.05); }
td.casino {
  color: var(--ink-strong);
  font-weight: 650;
  font-family: var(--font-display);
  font-size: 1.02em;
}
td.rating { color: var(--gold); white-space: nowrap; letter-spacing: 0.06em; }
td.num { white-space: nowrap; }
.t-note {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 2em;
  max-width: var(--measure);
}

/* ---------- pull-out fact strips (fact lists from the article) ---------- */
.facts {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 30px 0 34px;
  max-width: var(--measure);
}
.facts dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 650;
}
.facts dd {
  margin-bottom: 10px;
  color: var(--muted-strong);
}
.facts dd::first-letter { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-item {
  max-width: var(--measure);
  margin-bottom: 30px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}
.faq-item h3::before {
  content: "\2610";
  color: var(--gold);
  margin-right: 12px;
}

/* ---------- verdict/boxed note (single, restrained) ---------- */
.note {
  border: 1px solid var(--line-strong);
  border-left-width: 5px;
  padding: 20px 24px;
  margin: 40px 0;
  max-width: var(--measure);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(201,164,76,0.08), transparent);
}
.note strong { color: var(--gold); }

/* ---------- footer ---------- */
footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 56px 24px 44px;
  text-align: center;
}
footer .f-mark {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
}
footer p {
  max-width: 44rem;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
footer .age {
  display: inline-block;
  margin-top: 18px;
  border: 1px solid var(--line);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .chapter { flex-direction: column; gap: 6px; }
  .hero { padding-top: 52px; }
  .section { padding-top: 46px; }
}

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

/* ---------- focus visibility ---------- */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- article-flow overrides (bare tags inside main) ---------- */
h2.chapter {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 72px);
  margin-top: clamp(52px, 7vw, 88px);
}
h4 {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 2em 0 0.6em;
}
main p {
  max-width: var(--measure);
  margin-bottom: 1.4em;
}
main ul {
  list-style: none;
  margin: 6px 0 1.6em;
  max-width: var(--measure);
}
main li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.7em;
}
main li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.78em;
  width: 10px; height: 10px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}
h1.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
}

/* ============ Rating page (plates/cards) ============ */
.rating-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 20px 56px;
}
.rating-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.rating-head h1 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--ink-strong);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.rating-head p { color: var(--muted-strong); max-width: 46rem; margin: 0 auto; }

.plates-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plate {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.plate:hover { border-color: var(--line-strong); background: rgba(201, 164, 76, 0.05); }
.plate-rank {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  background: var(--bg-deep);
}
.plate-body { min-width: 0; }
.plate-logo {
  width: 74px; height: 46px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg-deep);
}
.plate-title {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: 1.22rem;
  color: var(--ink-strong);
  margin-bottom: 2px;
}
.plate-sub {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.plate-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 14px; color: var(--muted-strong);
  margin-top: 6px;
}
.plate-meta b { color: var(--ink-strong); font-weight: 650; }
.plate-score {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-weight: 650;
}
.stars { color: var(--gold); letter-spacing: 1px; }

@media (max-width: 560px) {
  .plate { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .plate-rank { width: 40px; height: 40px; font-size: 1rem; }
}


/* ---------- plate CTA button ---------- */
.plate-btn {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 18px rgba(201, 164, 76, 0.25);
}
.plate-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(201, 164, 76, 0.35);
}
.plate-btn:active { transform: translateY(0); }
.plate-btn::after { content: "\2192"; font-size: 15px; }

@media (max-width: 560px) {
  .plate-btn { justify-self: start; width: 100%; justify-content: center; }
}
