/* ===== 365BET.DE — Global Stylesheet ===== */
:root {
  --brand: #1B5E20;
  --brand-dark: #0D3B13;
  --brand-light: #2E7D32;
  --accent: #FFDF1B;
  --accent-hover: #ffe94d;
  --bg: #0a1a0a;
  --bg-card: #122012;
  --bg-card-alt: #162d16;
  --bg-surface: #1a2a1a;
  --text: #e0e0e0;
  --text-muted: #9e9e9e;
  --text-heading: #ffffff;
  --border: #2E7D32;
  --border-subtle: rgba(46, 125, 50, .25);
  --danger: #e74c3c;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --max-w: 1180px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--brand-dark);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: .8rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: .6rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section:nth-child(even) {
  background: var(--bg-card);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== HEADER ===== */
.header {
  background: var(--brand-dark);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
}

.nav-logo svg {
  flex-shrink: 0;
}

.nav-logo span {
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(255, 223, 27, .08);
}

.nav-cta {
  background: var(--accent);
  color: var(--brand-dark) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-lg) !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 6px;
  transition: all var(--transition);
}

.hamburger span:nth-child(1) {
  top: 10px;
}

.hamburger span:nth-child(2) {
  top: 17px;
}

.hamburger span:nth-child(3) {
  top: 24px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 17px;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 17px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-dark);
  z-index: 999;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu .nav-cta-mobile {
  background: var(--accent);
  color: var(--brand-dark) !important;
  text-align: center;
  border-radius: var(--radius-lg);
  font-weight: 700;
  margin-top: 16px;
  border: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(27, 94, 32, .3) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--brand-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 223, 27, .25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--brand-dark);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: .5rem;
}

.card p {
  color: var(--text-muted);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 223, 27, .1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: var(--brand);
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

tbody tr:hover {
  background: rgba(46, 125, 50, .08);
}

tbody tr:nth-child(even) {
  background: rgba(27, 94, 32, .04);
}

/* ===== CHARTS ===== */
/* Vertical Bar Chart */
.chart-v {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 220px;
  padding: 20px 0;
}

.chart-v-bar {
  flex: 1;
  min-width: 40px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: height .8s var(--transition);
}

.chart-v-bar .bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 1s cubic-bezier(.4, 0, .2, 1);
  height: 0;
}

.chart-v-bar .bar-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-v-bar .bar-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* Horizontal Bar Chart */
.chart-h {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chart-h-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-h-label {
  width: 120px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.chart-h-track {
  flex: 1;
  height: 28px;
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
}

.chart-h-fill {
  height: 100%;
  border-radius: 14px;
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
  width: 0;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Donut Chart */
.chart-donut {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.chart-donut svg {
  transform: rotate(-90deg);
}

.chart-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chart-donut-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
}

.chart-donut-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Stat boxes */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== ACCORDION / FAQ ===== */
.accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading);
  background: var(--bg-surface);
  border: none;
  font-family: inherit;
  transition: background var(--transition);
  text-align: left;
}

.accordion-header:hover {
  background: rgba(46, 125, 50, .1);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  padding: 0 20px;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  padding: 0 20px 16px;
}

.accordion-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2rem 0;
}

.author-box img,
.author-box svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
}

.author-bio {
  font-size: 14px;
  color: var(--text);
  margin-top: 6px;
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 223, 27, .1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  border: 2px solid var(--accent);
}

.cta-section h2 {
  color: var(--accent);
}

.cta-section p {
  max-width: 550px;
  margin: 0 auto 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brand-dark);
  border-top: 3px solid var(--accent);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.badge-18 {
  background: var(--danger);
  color: #fff;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
}

/* ===== PROGRESS BAR ===== */
.progress-wrap {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.progress-track {
  height: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
  background: var(--accent);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== COMPARISON TABLE ===== */
.compare-highlight {
  background: rgba(255, 223, 27, .08) !important;
}

.check {
  color: #4CAF50;
  font-weight: 700;
}

.cross {
  color: var(--danger);
}

/* ===== NOSCRIPT ===== */
.noscript-warn {
  background: var(--accent);
  color: var(--brand-dark);
  text-align: center;
  padding: 12px;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .section {
    padding: 40px 0;
  }

  .cta-section {
    padding: 32px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .chart-h-label {
    width: 80px;
    font-size: 11px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    width: 100%;
  }
}

/* ===== ACCESSIBILITY ===== */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: high) {
  :root {
    --bg: #000;
    --bg-card: #111;
    --text: #fff;
    --border-subtle: #555;
  }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-dark);
  border-top: 2px solid var(--accent);
  padding: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions button {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.cookie-accept {
  background: var(--accent);
  color: var(--brand-dark);
}

.cookie-decline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border) !important;
}

/* ===== AGE GATE ===== */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-box {
  background: var(--brand-dark);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 420px;
}

.age-gate-box h2 {
  color: var(--accent);
  margin-bottom: 12px;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ===== SCREEN READER ONLY ===== */
.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;
}

/* ===== PRINT ===== */
@media print {

  .header,
  .footer,
  .cookie-banner,
  .age-gate,
  .cta-section {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 11px;
  }
}