:root {
  --primary: #0a1628;
  --primary-mid: #132842;
  --accent: #d4af37;
  --accent-dark: #b8922a;
  --accent-light: #fef9e7;
  --green: #10b981;
  --green-dark: #059669;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #0a1628;
  --text-muted: #4a5568;
  --border: rgba(10, 22, 40, 0.12);
  --border-accent: rgba(212, 175, 55, 0.45);
  --shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
  --radius: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", 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(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.update-bar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.update-bar strong {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.93) 0%, rgba(19, 40, 66, 0.82) 50%, rgba(16, 185, 129, 0.35) 100%),
    url("images/hero.webp") center / cover no-repeat;
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}

.logo em {
  font-style: normal;
  color: var(--accent-dark);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.nav-toggle-label span {
  display: block;
  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;
  color: var(--text-muted);
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--green-dark);
  background: rgba(16, 185, 129, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn--header {
  display: none;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-bar__icon {
  font-size: 1rem;
}

.casinos {
  padding: 2rem 0 2.5rem;
}

.casinos__heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  font-weight: 700;
  text-align: center;
}

.ranking-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);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.ranking-table thead {
  background: var(--primary);
  color: #fff;
}

.ranking-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.ranking-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.04);
}

.ranking-table tbody tr.row--top {
  background: var(--accent-light);
}

.ranking-table tbody tr.row--top:hover {
  background: #fdf3d0;
}

.ranking-table td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.875rem;
}

.rank-cell {
  width: 56px;
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-mid);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}

.row--top .rank-badge {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--primary);
}

.casino-cell {
  min-width: 200px;
}

.casino-cell__inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.casino-cell__logo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-accent);
}

.casino-cell__logo img {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.casino-cell__name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.casino-cell__rating {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.casino-cell__stars {
  color: var(--accent-dark);
}

.bonus-cell {
  font-weight: 700;
  color: var(--primary);
  min-width: 160px;
}

.bonus-cell__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin-bottom: 0.15rem;
}

.perks-cell ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.perks-cell li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.perks-cell li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.cta-cell {
  width: 140px;
  text-align: center;
}

.cta-cell .btn {
  width: 100%;
  font-size: 0.8125rem;
  padding: 0.625rem 0.875rem;
}

.testsieger-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.ranking-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.rank-card--top {
  border: 2px solid var(--accent);
  background: var(--accent-light);
}

.rank-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.rank-card__rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-mid);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.875rem;
}

.rank-card--top .rank-card__rank {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--primary);
}

.rank-card__logo {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-accent);
}

.rank-card__logo img {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.rank-card__info h2 {
  margin: 0 0 0.2rem;
  font-size: 1.0625rem;
}

.rank-card__bonus {
  background: rgba(16, 185, 129, 0.08);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
}

.rank-card__perks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.rank-card__perks li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.rank-card__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.rank-card .btn {
  width: 100%;
}

.seo {
  padding: 2rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.seo h2 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.seo__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.seo__text p:last-child {
  margin-bottom: 0;
}

.faq {
  padding: 2rem 0;
}

.faq h2 {
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.faq__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item h3 {
  margin: 0;
  padding: 1rem 2.5rem 1rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.faq__item h3::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--green-dark);
  transition: transform 0.2s;
}

.faq__item.is-open h3::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__item p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: none;
}

.faq__item.is-open p {
  display: block;
}

.faq__more {
  display: inline-flex;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
}

.faq__more:hover {
  text-decoration: underline;
}

.responsible {
  padding: 2rem 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.responsible__badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.responsible h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.responsible p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.responsible__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.responsible__links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.footer {
  padding: 2rem 0;
  background: #060e18;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 0.8125rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.footer__nav a {
  color: #fff;
  font-weight: 600;
}

.footer__nav a:hover {
  color: var(--accent);
}

.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: 40rem;
  margin-inline: auto;
  line-height: 1.5;
}

.footer__age {
  margin: 0;
}

.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--bg-card);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 24px rgba(10, 22, 40, 0.15);
}

.mobile-cta-bar .btn {
  width: 100%;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.375rem, 4vw, 1.875rem);
  font-weight: 700;
}

.page-content {
  padding: 2rem 0 2.5rem;
}

.page-content h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-content ul {
  padding-left: 1.25rem;
}

.page-content a {
  color: var(--green-dark);
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin-top: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-dark);
}

@media (max-width: 767px) {
  .ranking-table-wrap {
    display: none;
  }

  .ranking-mobile {
    display: flex;
  }

  .nav {
    order: 4;
    width: 100%;
  }
}

@media (max-width: 639px) {
  .nav__list a {
    padding: 0.75rem 0.5rem;
  }
}

@media (min-width: 640px) {
  .nav-toggle-label {
    display: none;
  }

  .nav {
    display: block;
    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.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
  }

  .btn--header {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 340px;
    padding: 4rem 0 3rem;
  }
}
