/* style.css – ExpatScore.de Premium Dark/Gold Theme (Production Ready) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Primary Fintech Palette */
  --bg-dark: #0a0a0a;
  --card-bg: #141414;
  --gold: #D4AF37;
  --gold-light: #f1e0b0;
  --gold-soft: #2a2410;          /* for special background accents */
  --text-primary: #f0f0f0;
  --text-muted: #a0a0a0;
  --border-dark: #2a2a2a;
  --red: #C0392B;
  --green: #1A6B3C;
  --ft-radius: 14px;              /* kept for card rounding */
  /* Added variables for banking.html & index.html */
  --blue: #007bff;
  --blue-soft: rgba(0, 123, 255, 0.1);
  --green-soft: rgba(26, 107, 60, 0.1);
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  /* PERFORMANCE: enable smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch; /* non‑standard but safe */
}

/* Noise effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.45;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

/* Buttons */
.cta-btn, .btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.cta-btn:hover, .btn-gold:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
  background: var(--gold-light);
  color: #000;
}

/* Cards */
.card, .aff-card, .trap-card, .reddit-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--ft-radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.card:hover, .aff-card:hover, .trap-card:hover {
  border-color: var(--gold);
}

/* Feature list with gold checkmarks */
.feature-list, .card-features {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li, .card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li::before, .card-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Section containers */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Global Header */
.global-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 1rem 1.5rem;
}

.global-header.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--border-dark);
  /* PERFORMANCE: promote to its own layer */
  will-change: transform;
}

.global-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Global Footer */
.global-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 2.5rem 1.5rem;
}

.global-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal-links a:hover {
  color: var(--gold);
}

.footer-disclaimer {
  background: #1a1a1a;
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-disclaimer strong {
  color: #fff;
  font-weight: 600;
}

.footer-disclosure {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  background: #1a1a1a;
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 1rem;
}

.footer-disclosure strong {
  color: var(--gold);
}

.footer-copy {
  text-align: center;
  color: #5a5a5a;
  font-size: 0.8rem;
}

/* Card grid for comparisons */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Comparison grid for banking.html */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

/* Utility classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--text-primary);
  padding: 80px 24px 64px; /* increased top padding to avoid sticky header overlap */
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: 'SCHUFA';
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(80px, 22vw, 200px);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  aria-hidden: true;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.4);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 7vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 22px;
  color: #fff;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* Traps section */
.traps-section {
  background: var(--bg-dark);
  padding: 56px 24px;
}

.traps-inner {
  max-width: 640px;
  margin: 0 auto;
}

.traps-inner h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.trap-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.trap-card::before {
  content: '✕';
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 72px;
  color: rgba(192,57,43,0.1);
  font-weight: 900;
  line-height: 1;
}

.trap-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.trap-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
}

.trap-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.trap-soften {
  font-size: 12px;
  color: rgba(212,175,55,0.8);
  margin-top: 8px;
  font-style: italic;
}

/* Info box (green accent) */
.info-box {
  background: rgba(26,107,60,0.1);
  border: 1px solid rgba(26,107,60,0.3);
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
  padding: 20px 22px;
  margin-top: 20px;
}

.info-box-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,107,60,0.9);
  margin-bottom: 14px;
}

.info-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .info-box-grid {
    grid-template-columns: 1fr;
  }
}

.info-box-col {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 12px 14px;
}

.info-box-col.safe {
  background: rgba(26,107,60,0.18);
}

.info-box-col.risky {
  background: rgba(192,57,43,0.18);
}

.info-box-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.info-box-col.safe .info-box-col-label {
  color: rgba(100,220,140,0.9);
}

.info-box-col.risky .info-box-col-label {
  color: rgba(240,100,80,0.9);
}

.info-box-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin: 0;
}

.info-box-tip {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  font-style: italic;
}

/* Reddit card */
.reddit-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 20px 22px;
  position: relative;
  margin-top: 8px;
}

.reddit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #FF4500;
  border-radius: 4px 0 0 4px;
}

.reddit-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reddit-meta .subreddit {
  font-weight: 500;
  color: #FF4500;
}

.reddit-card blockquote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0;
}

.reddit-card blockquote strong {
  font-style: normal;
  color: var(--red);
  font-weight: 500;
}

/* Lead magnet */
.lead-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 52px 24px;
}

.lead-inner {
  max-width: 580px;
  margin: 0 auto;
}

.lead-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.lead-inner h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.lead-inner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.email-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: #1a1a1a;
  color: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.email-form input[type="email"]:focus {
  border-color: var(--gold);
}

.email-form input[type="email"]::placeholder {
  color: #555;
}

.email-form button {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.email-form button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.form-legal {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-legal a {
  color: var(--text-muted);
  text-decoration: underline;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
  width: 100%;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--gold);
}

.consent-row label {
  font-size: 12px;
  color: #aaa;
  line-height: 1.55;
  cursor: pointer;
}

.consent-row label a {
  color: var(--gold);
  text-decoration: underline;
}

.consent-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 500;
  width: 100%;
}

.form-success {
  display: none;
  background: rgba(26,107,60,0.2);
  border: 1px solid #1a6b3c;
  border-radius: 6px;
  padding: 16px 20px;
  color: #4caf7a;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

/* Tool intro */
.tool-section {
  padding: 52px 24px;
}

.tool-inner {
  max-width: 640px;
  margin: 0 auto;
}

.tool-inner h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.tool-inner p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #ddd;
  line-height: 1.5;
}

.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* Final CTA */
.cta-section {
  text-align: center;
  padding: 52px 24px 64px;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 5vw, 33px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.cta-btn .werbung-label {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.cta-micro {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-micro span::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 600;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border-dark);
  max-width: 1200px;
  margin: 0 auto;
}

/* About section */
.about-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border-dark);
  padding: 40px 24px;
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
}

.about-content {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.about-content strong {
  color: #fff;
  font-weight: 600;
}

/* Fintech section */
.ft-section {
  background: var(--bg-dark);
  padding: 72px 24px 80px;
}

.ft-bridge {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 40px;
}

.ft-bridge-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.ft-bridge-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}

.ft-bridge-title span {
  color: var(--gold);
}

.ft-bridge-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Anzeige label (updated to red badge) */
.anzeige-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--red);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
  border: none;
}

/* Cards grid for tools */
.ft-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto 64px;
}

/* Original card classes */
.aff-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--ft-radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.aff-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.aff-card.featured {
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.15), inset 0 0 60px rgba(212,175,55,0.04);
}

.aff-card.featured:hover {
  border-color: rgba(212,175,55,0.7);
  box-shadow: 0 16px 48px rgba(212,175,55,0.12);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gold);
  color: #000;
}

.card-badge.green {
  background: var(--gold);
  color: #000;
}

.card-badge.gold {
  background: var(--gold);
  color: #000;
}

.card-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-green, .icon-blue, .icon-gold {
  background: rgba(212,175,55,0.15);
}

.card-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.card-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.65;
}

.card-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border-dark);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.card-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 20px;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  position: relative;
}

.cta-blue, .cta-green, .cta-gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

.cta-blue:hover, .cta-green:hover, .cta-gold:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.4);
}

.card-cta .anzeige-label {
  position: absolute;
  top: -10px;
  right: 10px;
  margin-left: 0;
}

.card-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #5a5a5a;
  margin-top: 10px;
}

/* Comparison table */
.ft-compare-wrap {
  max-width: 1000px;
  margin: 0 auto 48px;
  overflow-x: auto;
}

.ft-compare-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ft-compare-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}

table.ft-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card-bg);
  border-radius: var(--ft-radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

table.ft-compare thead th {
  background: #1e1e1e;
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dark);
}

table.ft-compare tbody tr {
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.15s;
}

table.ft-compare tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

table.ft-compare tbody td {
  padding: 13px 18px;
  color: var(--text-muted);
  vertical-align: middle;
}

table.ft-compare tbody td:first-child {
  font-weight: 500;
  color: #fff;
}

.ft-check {
  color: var(--gold);
  font-size: 16px;
}

.ft-cross {
  color: #444;
  font-size: 16px;
}

.tag-free {
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-paid {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-loan {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.table-cta-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(212,175,55,0.3);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(212,175,55,0.08);
  transition: background 0.2s;
  white-space: nowrap;
}

.table-cta-link:hover {
  background: rgba(212,175,55,0.16);
}

.table-cta-link.blue, .table-cta-link.gold {
  color: var(--gold);
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.08);
}

/* Dark-to-light transition */
.ft-section-bottom-fade {
  height: 60px;
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-dark));
  margin-top: -2px;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #ccc;
  padding: 16px 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  border-top: 1px solid var(--border-dark);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

#cookie-banner.hidden {
  transform: translateY(110%);
}

#cookie-banner a {
  color: var(--gold);
}

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-accept {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.cookie-accept:hover {
  background: var(--gold-light);
}

.cookie-decline {
  background: transparent;
  color: #ccc;
  border: 1px solid var(--border-dark);
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}

.cookie-decline:hover {
  border-color: var(--gold);
}

.cookie-settings-btn {
  background: transparent;
  color: #aaa;
  border: none;
  padding: 9px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-settings-btn:hover {
  color: #fff;
}

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10001; /* Above cookie banner (10000) */
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--card-bg);
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  padding: 32px 28px 40px;
  position: relative;
  animation: slideUp 0.35s ease;
  border: 1px solid var(--border-dark);
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.modal p, .modal ul {
  font-size: 14px;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 12px;
}

.modal a {
  color: var(--gold);
}

/* Toggle switches */
.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-save-btn {
  width: 100%;
  margin-top: 20px;
  background: var(--gold);
  color: #000;
  border: none;
  padding: 13px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.cookie-save-btn:hover {
  background: var(--gold-light);
}

/* Werbung bar */
.werbung-bar {
  background: #1a1a1a;
  border-bottom: 1px solid var(--gold);
  text-align: center;
  padding: 10px 24px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.werbung-bar strong {
  font-weight: 700;
}

/* Urgency strip */
.urgency-strip {
  background: var(--bg-dark);
  color: #ccc;
  text-align: center;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-dark);
}

.urgency-strip strong {
  font-weight: 600;
  color: var(--gold);
}

/* Content depth bar */
.content-depth-bar {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
  padding: 9px 24px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.content-depth-bar strong {
  color: #fff;
  font-weight: 600;
}

/* ===== NEW STYLES FOR SCHUFA GUIDE STEPS ===== */
.step-card {
  position: relative;
  padding-left: 60px;
  margin-bottom: 32px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(212,175,55,0.2));
}

/* Pull quote (used in guide) */
.pull-quote {
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
}

/* ===== LEGAL PAGES CONTENT STYLING ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--ft-radius);
  color: var(--text-primary);
}

.legal-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--gold-light);
}

.legal-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.legal-back-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.legal-address {
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.highlight-box {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-primary);
}

.version-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2rem;
  border-top: 1px solid var(--border-dark);
  padding-top: 1rem;
}

/* ===== PERFORMANCE & SCROLLING OPTIMIZATIONS ===== */

/* Scrollable table container – ensures horizontal scroll is smooth */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  /* optional: subtle indication that more content is available */
  background: linear-gradient(to right, var(--card-bg) 90%, transparent);
}

/* "Nuclear" fix for stubborn table */
.force-scroll-fix {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.force-scroll-fix table {
  min-width: 650px !important;
}

/* Keep table columns from squashing on narrow viewports */
table.ft-compare {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
}

/* On mobile, reduce heavy box‑shadows and transitions for smoother scrolling */
@media (max-width: 768px) {
  .aff-card, .card, .trap-card {
    transition: none;           /* disable hover transitions */
    box-shadow: none;           /* remove deep shadows – keep only border */
    border: 1px solid var(--border-dark);
  }
  .aff-card:hover, .card:hover, .trap-card:hover {
    transform: none;            /* prevent hover movement on touch devices */
  }
}

/* ===== TABLET MEDIA QUERY ===== */
@media (max-width: 768px) {
  .global-header .inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-links {
    justify-content: center;
    gap: 1rem;
  }
  .hero {
    padding: 48px 20px;
  }
  .hero h1 {
    font-size: clamp(28px, 6vw, 42px);
  }
  .section {
    padding: 3rem 1rem;
  }
  .ft-cards-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .ft-compare-wrap {
    margin-bottom: 30px;
  }
  .info-box-grid {
    grid-template-columns: 1fr;
  }
  /* Timeline adjustments */
  .timeline-line {
    left: 19px !important;
  }
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .step-card {
    padding-left: 50px;
  }
}

/* ===== SMALL PHONE MEDIA QUERY ===== */
@media (max-width: 480px) {
  .hero, .section, .traps-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cta-btn {
    font-size: 16px;
    padding: 16px 20px;
  }
  .email-form {
    flex-direction: column;
  }
  .email-form input, .email-form button {
    width: 100%;
  }
  .ft-cards-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    padding-left: 45px;
  }
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .timeline-line {
    left: 17px;
  }
}

/* --- Final UI Fix: Cookie Toggles --- */
.toggle-switch .toggle-slider {
  transition: .4s;
  background-color: #ccc;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #28a745 !important;
}
.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
}

/* ===== ADDED STYLES PER AUDIT REQUEST ===== */
/* Step Cards (ensuring gold circles and proper spacing) */
.step-card {
  position: relative;
  padding-left: 60px;
  margin-bottom: 32px;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

/* Responsive Tables: horizontal scroll and small screen adjustments */
.ft-compare-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}
table.ft-compare {
  min-width: 600px; /* ensures table doesn't shrink too much; adjust as needed */
}
@media (max-width: 640px) {
  table.ft-compare {
    min-width: 500px;
  }
}

/* Article Disclosure Box (subtle gold border-left) */
.article-disclosure {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.article-disclosure strong {
  color: var(--gold);
  font-weight: 700;
}
.article-disclosure a {
  color: var(--gold);
  text-decoration: underline;
}