/* ============================================================
   Brionis Casino — Crimson Gold (Geo DE)
   ============================================================ */

:root {
  --bg-deep: #04050E;
  --bg-mid: #0A0B16;
  --bg-light: #14162E;
  --cta-start: #E51E38;
  --cta-end: #B00E1C;
  --red: #D7152E;
  --red-deep: #8E1220;
  --gold: #E0A94E;
  --gold-light: #F3C969;
  --white: #FFFFFF;
  --cream: #F5EFE6;
  --text-secondary: #B9BCCB;
  --text-muted: #7E8296;
  --card-bg: #0F111F;
  --card-bg-alt: #161A2E;
  --card-hover: #1E2340;
  --blue-glow: #1E2A6B;
  --border: rgba(255, 255, 255, 0.07);
  --header-h: 64px;
  --radius: 18px;
  --radius-sm: 14px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background:
    linear-gradient(180deg, var(--bg-light) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 12%, rgba(213, 21, 46, 0.12), transparent 60%),
    radial-gradient(560px circle at 85% 8%, rgba(224, 169, 78, 0.10), transparent 60%),
    radial-gradient(700px circle at 60% 90%, rgba(30, 42, 107, 0.12), transparent 65%);
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

h1, h2, h3 {
  font-family: "Poppins", sans-serif;
  color: var(--cream);
  line-height: 1.25;
}

.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;
}
.skip-link:focus {
  position: fixed;
  top: 8px; left: 8px;
  width: auto; height: auto;
  clip: auto;
  padding: 0.6rem 1rem;
  background: var(--cta-start);
  color: #fff;
  border-radius: 8px;
  z-index: 2000;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 5, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-pinned {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img { display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--cream), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  margin-top: 2px;
}
.header-buttons { display: flex; gap: 0.6rem; }

.btn-register,
.btn-login,
.btn-cta {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-register,
.btn-cta {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  box-shadow: 0 6px 18px rgba(178, 14, 28, 0.4);
}
.btn-register:hover,
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(178, 14, 28, 0.55);
  color: #fff;
  text-decoration: none;
}
.btn-login {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-login:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  text-decoration: none;
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs {
  border-bottom: 1px solid var(--border);
}
.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); text-decoration: none; }
.breadcrumbs .current { color: var(--red); font-weight: 600; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem 3rem;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(213, 21, 46, 0.28), rgba(30, 42, 107, 0.18) 45%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.8rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--white);
}
.hero-highlight {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 1.6rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================== CONTAINER ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.content-card {
  position: relative;
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.content-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.prose p { margin: 0 0 1rem; }
.prose ul,
.prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose b, .prose strong { color: var(--gold-light); font-weight: 600; }

.prose h2 {
  position: relative;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 2.2rem 0 1rem;
  padding-left: 0.9rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 4px; height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}
.prose h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 1.5rem 0 0.6rem;
}

/* ===================== TOC ===================== */
.toc {
  background: rgba(4, 5, 14, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}
.toc-title {
  font-size: 1.1rem !important;
  margin: 0 0 0.6rem !important;
  padding-left: 0 !important;
  color: var(--gold-light);
}
.toc-title::before { display: none !important; }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--gold); }

/* ===================== BONUS BANNER ===================== */
.app-bonus {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: linear-gradient(120deg, rgba(224, 169, 78, 0.12), rgba(213, 21, 46, 0.12));
  color: var(--cream);
}
.app-bonus strong { color: var(--gold-light); }

/* ===================== FEATURE GRID ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: start;
  grid-auto-rows: min-content;
  margin: 1.5rem 0;
}
.feature-card {
  align-self: start;
  height: auto;
  min-height: 0;
  background: linear-gradient(160deg, var(--card-bg-alt), var(--card-bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: scale(1.02);
  border-color: rgba(224, 169, 78, 0.5);
  box-shadow: 0 8px 24px rgba(224, 169, 78, 0.15);
}
.feature-card .feature-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: var(--gold);
}
.feature-card p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

/* ===================== CALLOUT ===================== */
.callout {
  border-left: 4px solid var(--red);
  background: rgba(213, 21, 46, 0.08);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0 1.4rem;
  font-size: 0.92rem;
}
.callout strong { color: var(--gold-light); }

/* ===================== TABLES ===================== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  margin: 1.2rem 0 1.6rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--card-bg);
}
.data-table thead {
  background: linear-gradient(90deg, var(--red-deep), var(--red));
}
.data-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--cream);
  padding: 0.75rem 0.9rem;
}
.data-table td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table td b { color: var(--gold-light); }
.data-table tbody tr:hover { background: var(--card-hover); }

/* ===================== WIDGET PANELS ===================== */
.widget-panel {
  background: linear-gradient(160deg, var(--card-bg-alt), var(--card-bg));
  border: 1px solid rgba(224, 169, 78, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.widget-panel h2 {
  padding-left: 0;
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: var(--gold-light);
}
.widget-panel h2::before { display: none; }
.demo-tag { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }
.widget-hint { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; }

.calc-row { margin-bottom: 1rem; }
.calc-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.calc-row output { color: var(--gold-light); font-weight: 600; }
input[type="range"] {
  width: 100%;
  accent-color: var(--red);
  cursor: pointer;
}
.calc-result {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.calc-result p { margin: 0.2rem 0; }
.calc-result strong { color: var(--gold-light); font-size: 1.1rem; }

.btn-secondary {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-secondary:hover { background: var(--gold); color: var(--bg-deep); }

/* Slot lobby */
.slot-lobby {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.slot-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  text-align: center;
}
.slot-name { font-size: 0.85rem; color: var(--cream); font-weight: 600; }
.slot-card button {
  width: 100%;
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.slot-card button:hover { background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: #fff; border-color: transparent; }
.slot-output { margin-top: 1rem; color: var(--gold-light); font-size: 0.9rem; }

/* Quiz */
#qf3 fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 0 0 1rem;
}
#qf3 legend { padding: 0 0.4rem; color: var(--cream); font-weight: 600; font-size: 0.92rem; }
#qf3 label { display: block; margin: 0.4rem 0; cursor: pointer; font-size: 0.9rem; }
.quiz-output { margin-top: 0.8rem; font-weight: 600; }
.quiz-output.correct { color: #4ade80; }
.quiz-output.wrong { color: var(--red); }

.roulette-output { margin-top: 1rem; font-size: 1.05rem; color: var(--gold-light); font-weight: 600; }
.roulette-output.spinning { color: var(--text-muted); }

/* ===================== FAQ ===================== */
.faq-list { margin: 1rem 0 1.4rem; }
.faq-list dt {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  margin: 1.2rem 0 0.4rem;
}
.faq-list dd { margin: 0 0 0.4rem; color: var(--text-secondary); }

/* ===================== RESPONSIBLE BLOCK ===================== */
.responsible-block {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--red-deep);
  border-radius: var(--radius-sm);
  background: rgba(142, 18, 32, 0.12);
}
.responsible-block h2 { padding-left: 0; margin-top: 0; }
.responsible-block h2::before { display: none; }

/* ===================== CTA BLOCK ===================== */
.cta-block {
  text-align: center;
  margin-top: 2rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(213, 21, 46, 0.15), rgba(30, 42, 107, 0.15));
}
.cta-block h2 { color: var(--white); margin: 0 0 0.6rem; }
.cta-block p { color: var(--text-secondary); margin: 0 0 1.3rem; }
.cta-block .btn-cta { display: inline-block; font-size: 1.05rem; padding: 0.8rem 2rem; }
.cta-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 1.2rem !important; }

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 5, 14, 0.6);
  padding: 2rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.pay-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.pay-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
}
.footer-legal { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-copy a { color: var(--gold); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  body { font-size: 0.875rem; line-height: 1.55; }

  .header-inner {
    flex-direction: column;
    padding: 0.6rem 1rem;
    gap: 0.6rem;
  }
  .header-buttons { width: 100%; }
  .header-buttons a {
    flex: 1;
    text-align: center;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content-card { padding: 1.4rem 1.1rem; border-radius: var(--radius-sm); }
  .container { padding: 0 1rem 2.5rem; }

  .prose h2 { font-size: clamp(1.05rem, 4vw, 1.35rem); }
  .prose h3 { font-size: 0.95rem; }
  .prose p, .prose li { font-size: 0.875rem; }

  .toc ol { columns: 1; }

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

  /* Tabellen -> Karten */
  .table-wrapper { border: none; box-shadow: none; overflow: visible; }
  .data-table { background: transparent; }
  .data-table thead { display: none; }
  .data-table tbody { display: block; }
  .data-table tr {
    display: block;
    background: linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.9rem;
    padding: 0.6rem 0.9rem;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    text-align: right;
  }
  .data-table tr td:last-child { border-bottom: none; }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
  }
  .data-table tbody tr:hover { background: linear-gradient(160deg, var(--card-bg), var(--card-bg-alt)); }
}

@media (max-width: 380px) {
  body { font-size: 0.8125rem; }
  .prose h2 { font-size: 1.05rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .slot-lobby { grid-template-columns: 1fr; }
}

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