/* FestgeldAtlas — style.css */
:root {
  --navy:    #0d1f35;
  --navy-lt: #132944;
  --gold:    #c9933a;
  --gold-lt: #e8b86d;
  --white:   #ffffff;
  --off:     #f4f6f9;
  --body:    #1a2535;
  --muted:   #6b7a8d;
  --border:  #d8dde6;
  --green:   #1a7a4a;
  --green-lt:#e6f5ed;
  --radius:  10px;
  --shadow:  0 2px 16px rgba(13,31,53,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* ── ADVERTORIAL BAR ── */
.adv-bar {
  background: #fffbf0;
  border-bottom: 1px solid #f0dfa0;
  text-align: center;
  font-size: 0.78rem;
  color: #7a6020;
  padding: 6px 16px;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.3px;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}
.logo span { color: var(--gold-lt); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-lt) !important; }
.burger { display: none; }

/* ── WRAP ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3557 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,147,58,.15);
  border: 1px solid rgba(201,147,58,.4);
  color: var(--gold-lt);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hero h1 strong { color: var(--gold-lt); }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 520px; }

/* ── CALC CARD ── */
.calc-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  color: var(--body);
}
.calc-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; color: var(--navy); }
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--body);
  background: var(--white);
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--gold); }
.calc-result {
  background: var(--green-lt);
  border: 1.5px solid #a8d5b8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
  text-align: center;
}
.calc-result-val { font-size: 1.6rem; font-weight: 800; color: var(--green); }
.calc-result-label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.calc-disclaimer { font-size: 0.72rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ── STATS ROW ── */
.stats-row {
  background: var(--navy-lt);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-grid { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 10px 32px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--gold-lt); }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── SECTION ── */
.section { padding: 60px 0; }
.section-alt { background: var(--off); }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: -.3px; }
.section-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 36px; }
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── BANK CARD ── */
.bank-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.bank-card:hover { box-shadow: var(--shadow); border-color: #b8c4d4; }
.bank-card.featured { border-color: var(--gold); box-shadow: 0 4px 24px rgba(201,147,58,.15); }
.bank-card-top { display: grid; grid-template-columns: 200px 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; }
.bank-badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .3px;
}
.badge-gold { background: #fff8e6; color: #8a5c0a; border: 1px solid #f0dfa0; }
.badge-green { background: var(--green-lt); color: var(--green); border: 1px solid #a8d5b8; }
.badge-blue { background: #e8f0fb; color: #1a4a8a; border: 1px solid #bad0f5; }
.badge-ad { background: #f0f0f0; color: #666; border: 1px solid #ddd; }
.bank-logo-box {
  width: 64px; height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--off);
  border: 1px solid var(--border);
}
.bank-logo-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.bank-name { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.bank-desc { font-size: 0.82rem; color: var(--muted); }
.bank-rate-box { text-align: right; }
.bank-rate { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; }
.bank-rate-label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.bank-rate-sub { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.bank-features { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 4px; }
.bank-feature { font-size: 0.8rem; color: var(--body); display: flex; align-items: center; gap: 4px; }
.bank-feature::before { content: '✓'; color: var(--green); font-weight: 700; }
.bank-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 16px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.bank-security { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.bank-security .flag { font-size: 1rem; }
.btn-offer {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.btn-offer:hover { background: #155c38; transform: translateY(-1px); }
.btn-offer-featured { background: var(--gold); color: var(--navy); }
.btn-offer-featured:hover { background: var(--gold-lt); }
.affiliate-note { font-size: 0.7rem; color: #999; }

/* ── DETAILS TOGGLE ── */
.details-toggle { width: 100%; background: none; border: none; border-top: 1px solid var(--border); padding: 10px 24px; font-size: 0.82rem; color: var(--muted); cursor: pointer; text-align: left; display: flex; align-items: center; gap: 6px; }
.details-toggle:hover { background: var(--off); }
.details-body { display: none; padding: 16px 24px 20px; background: var(--off); }
.details-body.open { display: block; }
.details-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.details-table td { padding: 7px 0; border-bottom: 1px solid #e5e9f0; vertical-align: top; }
.details-table td:first-child { width: 55%; color: var(--muted); }
.details-table td:last-child { font-weight: 600; }
.details-table tr:last-child td { border-bottom: none; }
.rating-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.rating-item { font-size: 0.8rem; }
.rating-item span { font-weight: 700; color: var(--navy); }
.rating-editorial { font-size: 0.75rem; color: var(--muted); margin-top: 8px; font-style: italic; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step-num { width: 44px; height: 44px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin: 0 auto 14px; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 18px 0; font-size: 0.97rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q:hover { color: var(--gold); }
.faq-icon { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; transition: transform .2s; }
.faq-icon.open { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 16px; font-size: 0.9rem; color: #3a4a5c; line-height: 1.7; }
.faq-a.open { display: block; }

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, var(--navy) 0%, #1a3557 100%); color: #fff; text-align: center; padding: 56px 0; }
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 1rem;
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none;
  transition: background .2s;
}
.btn-cta:hover { background: var(--gold-lt); }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 48px 0 24px; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand p { color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.6; font-size: 0.82rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-divider { border-color: rgba(255,255,255,.1); margin-bottom: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.footer-disclaimer { font-size: 0.72rem; color: rgba(255,255,255,.4); line-height: 1.6; max-width: 800px; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: rgba(255,255,255,.9);
  padding: 16px 24px;
  z-index: 9999;
  display: none;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
#cookie-banner.visible { display: block; }
.ck-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ck-text { font-size: 0.85rem; flex: 1; min-width: 240px; }
.ck-text a { color: var(--gold-lt); }
.ck-btns { display: flex; gap: 10px; flex-shrink: 0; }
.ck-accept {
  background: var(--gold); color: var(--navy);
  border: none; padding: 9px 20px; border-radius: 7px;
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.ck-reject {
  background: transparent; color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: 9px 20px; border-radius: 7px;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.ck-reject:hover { border-color: rgba(255,255,255,.6); }

/* ── LEGAL PAGES ── */
.legal-page { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.legal-page h1 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 28px 0 8px; }
.legal-page p, .legal-page li { font-size: 0.92rem; line-height: 1.75; color: #3a4a5c; }
.legal-page ul { margin: 8px 0 8px 20px; }
.legal-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .calc-card { max-width: 480px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bank-card-top { grid-template-columns: 140px 1fr auto; gap: 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 36px; }
  .hero-inner { gap: 28px; }
  .stats-grid { gap: 0; }
  .stat-item { padding: 10px 16px; }
  .bank-card-top { grid-template-columns: 1fr; }
  .bank-rate-box { text-align: left; }
  .nav-links { display: none; }
  .burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ─── Exit Modal ─────────────────────────────────────── */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-modal[hidden] { display: none; }

.exit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 35, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.exit-modal-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  text-align: center;
  color: #1a1a2e;
}

.exit-modal-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  line-height: 1;
}

.exit-modal-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 8px;
}

.exit-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a1128;
  margin-bottom: 12px;
  line-height: 1.3;
}

.exit-modal-desc {
  font-size: .92rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.exit-modal-disclaimer {
  background: #f5f7fa;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .78rem;
  color: #666;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 24px;
}

.exit-modal-disclaimer strong { color: #444; }

.exit-modal-actions {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.exit-modal-go {
  display: block;
  background: var(--gold);
  color: #0a1128;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .1s;
  order: -1;
}
.exit-modal-go:hover { background: #d4a017; transform: translateY(-1px); }

.exit-modal-cancel {
  background: none;
  border: 1.5px solid #ddd;
  color: #666;
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.exit-modal-cancel:hover { border-color: #aaa; color: #333; }

@media (max-width: 480px) {
  .exit-modal-box { padding: 32px 20px 24px; }
  .exit-modal-title { font-size: 1.25rem; }
}
