:root {
  --primary: #111827;
  --primary-mid: #1f2937;
  --accent: #ef4444;
  --accent-dark: #dc2626;
  --gold: #fbbf24;
  --gold-pale: #fef3c7;
  --bg: #f3f4f6;
  --bg-card: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: rgba(17, 24, 39, 0.1);
  --border-strong: rgba(239, 68, 68, 0.35);
  --shadow: 0 8px 32px rgba(17, 24, 39, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

body.has-mobile-cta {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Update bar */
.update-bar {
  background: var(--primary);
  color: #e5e7eb;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
}

.update-bar strong {
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  background: var(--primary) url("images/hero.webp") center / cover no-repeat;
  color: #fff;
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.72) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.625rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  color: #d1d5db;
  line-height: 1.65;
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}

.logo em {
  font-style: normal;
  color: var(--accent);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
}

.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-toggle:checked ~ .nav {
  display: block;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.nav__list a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--accent);
  background: rgba(239, 68, 68, 0.05);
  border-left-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn--header {
  display: none;
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.btn--gold {
  background: var(--gold);
  color: var(--primary);
}

.btn--gold:hover {
  background: #f59e0b;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--primary-mid);
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-weight: 600;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-bar__item:last-child {
  border-bottom: none;
}

.trust-bar__icon {
  font-size: 1rem;
}

/* Showcase / Ranking table */
.casinos {
  padding: 2rem 0 2.5rem;
}

.casinos__heading {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  font-weight: 800;
  color: var(--primary);
}

.casinos__sub {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.rank-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.rank-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rank-table thead {
  background: var(--primary);
  color: #fff;
}

.rank-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rank-table th:last-child {
  text-align: center;
}

.rank-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.rank-table tbody tr:last-child {
  border-bottom: none;
}

.rank-table tbody tr.rank-row--top {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
}

.rank-table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
}

.rank-table td:last-child {
  text-align: center;
}

.rank-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.8125rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-row--top .rank-badge {
  background: var(--accent);
}

.testsieger-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
}

.brand-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-cell__logo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
}

.brand-cell__logo img {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.brand-cell__name {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}

.bonus-cell__value {
  display: block;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.9375rem;
}

.bonus-cell__label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rating-cell__stars {
  color: var(--gold);
  letter-spacing: -1px;
}

.rating-cell__score {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.perks-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-top: 0.25rem;
}

.perks-row td {
  padding: 0 1rem 0.875rem;
  background: var(--bg);
}

.perks-row ul {
  margin: 0;
  padding: 0.5rem 0 0 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  columns: 1;
}

.perks-row li {
  margin-bottom: 0.2rem;
}

.perks-row.is-collapsed td {
  display: none;
}

/* SEO */
.seo {
  padding: 2rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.seo h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  font-weight: 800;
  color: var(--primary);
}

.seo__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.seo__text p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  padding: 2rem 0;
}

.faq h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  font-weight: 800;
}

.faq__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__item h3 {
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.faq__item h3::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq__item.is-open h3::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: none;
  line-height: 1.65;
}

.faq__item.is-open p {
  display: block;
}

.faq__more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9375rem;
}

.faq__more:hover {
  text-decoration: underline;
}

/* Responsible */
.responsible {
  padding: 2rem 0;
  background: var(--primary);
  color: #e5e7eb;
  text-align: center;
}

.responsible__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.responsible h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.responsible p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  max-width: 560px;
  margin-inline: auto;
}

.responsible__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.responsible__links a {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.875rem;
}

.responsible__links a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--primary-mid);
  color: #9ca3af;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8125rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer__nav a {
  color: #e5e7eb;
  font-weight: 600;
}

.footer__nav a:hover {
  color: var(--gold);
}

.footer__domain {
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
}

.footer__copy {
  margin: 0 0 0.75rem;
}

.footer__disclaimer {
  margin: 0 0 0.75rem;
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.55;
}

.footer__age {
  margin: 0;
}

.footer__age a {
  color: var(--gold);
}

/* Mobile CTA */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(17, 24, 39, 0.96);
  border-top: 2px solid var(--accent);
  backdrop-filter: blur(8px);
}

.mobile-cta-bar .btn {
  width: 100%;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
}

/* Page subpages */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 2rem 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.page-content {
  padding: 2rem 0 2.5rem;
}

.page-content h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-content ul {
  padding-left: 1.25rem;
}

.page-content a {
  color: var(--accent);
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--bg-card);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Tablet+ */
@media (min-width: 640px) {
  .trust-bar {
    flex-direction: row;
  }

  .trust-bar__item {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .trust-bar__item:last-child {
    border-right: none;
  }

  .perks-toggle {
    display: none !important;
  }

  .perks-row.is-collapsed td {
    display: table-cell;
  }

  .perks-row ul {
    columns: 2;
  }
}

@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .nav {
    display: block !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    margin-left: auto;
  }

  .nav__list {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }

  .nav__list a {
    padding: 0.4rem 0.75rem;
    border-left: none;
    border-radius: var(--radius-sm);
  }

  .btn--header {
    display: inline-flex;
  }

  .header__inner {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .perks-row ul {
    columns: 4;
  }
}

@media (max-width: 639px) {
  .perks-row.is-collapsed td {
    display: none;
  }

  .perks-toggle {
    display: inline-block;
  }
}

@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none;
  }

  body.has-mobile-cta {
    padding-bottom: 0;
  }
}
