/* ==========================================================================
   ATEFIA CASINO OFFICIAL DESIGN SYSTEM (Bespoke Cascade Architecture)
   Brand: Atefia | GEO: Germany | Domain: i-trulli.de
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --atf-bg: #07090e;
  --atf-surface: #0e121b;
  --atf-surface-raised: #151b27;
  --atf-surface-border: #1e2638;
  --atf-primary: #00f2fe;
  --atf-primary-glow: rgba(0, 242, 254, 0.25);
  --atf-accent: #10b981;
  --atf-accent-glow: rgba(16, 185, 129, 0.2);
  --atf-text: #f1f5f9;
  --atf-text-muted: #94a3b8;
  --atf-text-dim: #64748b;
  --atf-radius-sm: 8px;
  --atf-radius-md: 14px;
  --atf-radius-lg: 20px;
  --atf-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --atf-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --atf-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --atf-shadow-glow: 0 0 25px var(--atf-primary-glow);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--atf-bg);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 242, 254, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(14, 21, 37, 0.8) 0%, transparent 60%);
  color: var(--atf-text);
  font-family: var(--atf-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.atf-shell {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP STATUS BAR
   ========================================================================== */
.atf-topbar {
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--atf-surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.atf-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.atf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--atf-font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.atf-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--atf-primary), #0284c7);
  color: #000000;
  border-radius: var(--atf-radius-sm);
  font-size: 18px;
  box-shadow: 0 0 15px var(--atf-primary-glow);
}

.atf-topbar-kpis {
  display: flex;
  align-items: center;
  gap: 24px;
}

.atf-kpi-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--atf-text-muted);
}

.atf-kpi-dot {
  width: 8px;
  height: 8px;
  background-color: var(--atf-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--atf-accent);
}

.atf-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--atf-primary), #0ea5e9);
  color: #050b14;
  font-family: var(--atf-font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: var(--atf-radius-sm);
  box-shadow: 0 4px 20px var(--atf-primary-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.atf-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   MODULAR HUB NAVIGATION (Zero Pill-ribbon footprint)
   ========================================================================== */
.atf-hub-nav {
  padding: 16px 0;
  background: rgba(7, 9, 14, 0.95);
  border-bottom: 1px solid rgba(30, 38, 56, 0.6);
}

.atf-hub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atf-hub-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--atf-surface);
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-sm);
  color: var(--atf-text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.atf-hub-node:hover {
  color: #ffffff;
  border-color: var(--atf-primary);
  background: var(--atf-surface-raised);
}

.atf-hub-node.atf-current {
  color: var(--atf-primary);
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--atf-primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.atf-breadcrumbs {
  padding: 14px 0 6px;
  font-size: 13px;
  color: var(--atf-text-dim);
}

.atf-breadcrumbs ol {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.atf-breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--atf-text-dim);
}

.atf-breadcrumbs a:hover {
  color: var(--atf-primary);
}

/* ==========================================================================
   BENTO HERO GRID (Bespoke Cascade Step 1)
   ========================================================================== */
.atf-bento-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin: 24px 0 40px;
}

.atf-bento-cell {
  background: var(--atf-surface);
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--atf-shadow-card);
}

.atf-bento-lead {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.atf-official-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--atf-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

h1 {
  font-family: var(--atf-font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.atf-direct-answer {
  color: var(--atf-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.atf-lead-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.atf-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--atf-radius-sm);
  background: transparent;
  border: 1px solid var(--atf-surface-border);
  color: var(--atf-text);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.atf-btn-outline:hover {
  background: var(--atf-surface-raised);
  border-color: var(--atf-text-muted);
}

.atf-bento-promo {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, rgba(14, 18, 27, 0.9), rgba(21, 27, 39, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.atf-promo-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--atf-accent);
  color: var(--atf-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.atf-promo-amount {
  font-family: var(--atf-font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.atf-promo-amount span {
  color: var(--atf-primary);
}

.atf-promo-sub {
  color: var(--atf-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.atf-promo-code-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--atf-primary);
  border-radius: var(--atf-radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.atf-code-title {
  font-size: 12px;
  color: var(--atf-text-dim);
  text-transform: uppercase;
}

.atf-code-val {
  font-family: var(--atf-font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--atf-primary);
  letter-spacing: 1px;
}

.atf-bento-media {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  padding: 0;
  border: 1px solid var(--atf-surface-border);
}

.atf-bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--atf-radius-lg);
}

.atf-bento-facts {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.atf-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--atf-surface-raised);
  border-radius: var(--atf-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.atf-fact-icon {
  font-size: 22px;
  color: var(--atf-primary);
  line-height: 1;
}

.atf-fact-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.atf-fact-content p {
  font-size: 13px;
  color: var(--atf-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   GAME SHOWCASE LOBBY
   ========================================================================== */
.atf-lobby-section {
  margin: 50px 0;
}

.atf-section-head {
  margin-bottom: 24px;
}

h2 {
  font-family: var(--atf-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

h3 {
  font-family: var(--atf-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 28px 0 12px;
}

.atf-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.atf-game-card {
  background: var(--atf-surface);
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.atf-game-card:hover {
  transform: translateY(-5px);
  border-color: var(--atf-primary);
  box-shadow: 0 12px 28px rgba(0, 242, 254, 0.15);
}

.atf-game-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.atf-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.atf-game-card:hover .atf-game-media img {
  transform: scale(1.06);
}

.atf-game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--atf-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.atf-game-info {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atf-game-title {
  font-family: var(--atf-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.atf-game-prov {
  font-size: 12px;
  color: var(--atf-text-dim);
}

.atf-play-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--atf-surface-raised);
  border: 1px solid var(--atf-surface-border);
  color: #ffffff;
  font-size: 12px;
  transition: all 0.2s ease;
}

.atf-game-card:hover .atf-play-trigger {
  background: var(--atf-primary);
  color: #000000;
  box-shadow: 0 0 10px var(--atf-primary-glow);
}

/* ==========================================================================
   DATA TABLES (Scroll Container)
   ========================================================================== */
.atf-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-md);
  background: var(--atf-surface);
}

.atf-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 600px;
}

.atf-data-table th,
.atf-data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--atf-surface-border);
}

.atf-data-table th {
  background: var(--atf-surface-raised);
  color: var(--atf-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.atf-data-table tr:last-child td {
  border-bottom: none;
}

.atf-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   INTERACTIVE WAGERING CALCULATOR
   ========================================================================== */
.atf-calc-card {
  background: var(--atf-surface);
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-lg);
  padding: 32px;
  margin: 30px 0;
  box-shadow: var(--atf-shadow-card);
}

.atf-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.atf-calc-field label {
  display: block;
  font-size: 14px;
  color: var(--atf-text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.atf-calc-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--atf-surface-raised);
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-sm);
  color: #ffffff;
  font-family: var(--atf-font-heading);
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.atf-calc-input:focus {
  border-color: var(--atf-primary);
  box-shadow: 0 0 10px var(--atf-primary-glow);
}

.atf-calc-output {
  grid-column: 1 / -1;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--atf-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atf-output-val {
  font-family: var(--atf-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--atf-primary);
}

/* ==========================================================================
   ALWAYS-OPEN FAQ (2-Column Grid Format)
   ========================================================================== */
.atf-faq-section {
  margin: 50px 0;
}

.atf-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.atf-faq-card {
  background: var(--atf-surface);
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-md);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.atf-faq-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
}

.atf-faq-card summary {
  list-style: none;
  cursor: default;
  font-family: var(--atf-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.atf-faq-card summary::-webkit-details-marker {
  display: none;
}

.atf-faq-card summary::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--atf-primary);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.atf-faq-card p {
  color: var(--atf-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   OFFICIAL FOOTER & E-E-A-T
   ========================================================================== */
.atf-footer {
  margin-top: 80px;
  background: #05070a;
  border-top: 1px solid var(--atf-surface-border);
  padding: 60px 0 40px;
}

.atf-footer-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.atf-footer-col h4 {
  font-family: var(--atf-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.atf-footer-col p {
  color: var(--atf-text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.atf-footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.atf-footer-links a {
  font-size: 14px;
  color: var(--atf-text-muted);
}

.atf-footer-links a:hover {
  color: var(--atf-primary);
}

.atf-eeat-box {
  background: var(--atf-surface);
  border: 1px solid var(--atf-surface-border);
  border-radius: var(--atf-radius-sm);
  padding: 14px;
  font-size: 13px;
  color: var(--atf-text-dim);
}

.atf-eeat-box strong {
  color: var(--atf-text-muted);
}

.atf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--atf-text-dim);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Zero CLS & Mobile Ready)
   ========================================================================== */
@media (max-width: 992px) {
  .atf-bento-hero {
    grid-template-columns: 1fr;
  }
  .atf-bento-lead, .atf-bento-promo, .atf-bento-media, .atf-bento-facts {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .atf-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .atf-faq-grid {
    grid-template-columns: 1fr;
  }
  .atf-footer-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 32px;
  }
  .atf-topbar-kpis {
    display: none;
  }
  .atf-bento-cell {
    padding: 22px;
  }
  .atf-calc-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Single Page Navigation & Smooth Scroll (Universal Fix)
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

section[id], .single-page-section, #bonus, #auszahlung, #live-casino, #turniere, #vip, #app, #anmeldung, #sicherheit, #faq {
  scroll-margin-top: 85px;
}

.atf-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.atf-nav-menu::-webkit-scrollbar {
  display: none;
}

.atf-nav-link {
  font-size: 0.90rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-block;
}

.atf-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.atf-nav-link.active {
  color: #ffffff;
  background: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

@media (max-width: 991px) {
  .atf-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .atf-topbar-inner {
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  .atf-nav-menu {
    order: 3;
    width: 100%;
    margin-top: 4px;
    padding: 6px 0 2px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}