/* =========================================
   BOOMGAARDEN FINANZDIENSTLEISTUNGEN
   Premium Wealth Management CSS — v2.1
   Responsive Fix + Simulator Layout Fix
   ========================================= */

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

:root {
  --primary: #1A3A5C;
  --primary-dark: #0F2540;
  --primary-light: #2A5080;
  --gold: #C9A84C;
  --gold-light: #E8C96E;
  --gold-dark: #A8862A;
  --white: #FFFFFF;
  --off-white: #F8F6F0;
  --light-gray: #F2F0EA;
  --gray: #8A8A8A;
  --dark: #1A1A1A;
  --text: #2C2C2C;
  --text-light: #666666;
  --border: #E0DDD5;
  --success: #2E7D32;
  --danger: #C62828;
  --shadow: 0 4px 24px rgba(26, 58, 92, 0.10);
  --shadow-lg: 0 12px 48px rgba(26, 58, 92, 0.16);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.25);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --container: 1200px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(1.75rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 1.5vw, 1.1rem); font-weight: 600; }
p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}
.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-gold { background: var(--gold); color: var(--primary); }
.section-light { background: var(--off-white); }

/* Responsive Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px;
  transition: var(--transition); text-decoration: none;
  cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--primary); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }
.btn-dark { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* === HEADER === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26, 58, 92, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 var(--space-md);
  max-width: var(--container); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-serif); color: var(--white); }
.logo-text strong { display: block; font-size: 1rem; line-height: 1.1; }
.logo-text span { font-size: 0.7rem; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: var(--space-md); }
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: var(--transition); padding: 4px 0;
  position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--space-xs); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--primary); padding: var(--space-md);
  border-top: 1px solid rgba(201,168,76,0.2); z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: var(--white); padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem; font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }

/* Page top padding */
.page-content { padding-top: 72px; }

/* === HERO === */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/19336072/pexels-photo-19336072.jpeg?auto=compress&cs=tinysrgb&h=900');
  background-size: cover; background-position: center;
  opacity: 0.15;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.95) 0%, rgba(26,58,92,0.80) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: var(--space-2xl) var(--space-md);
  width: 100%; max-width: var(--container); margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold); padding: 8px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: var(--space-md);
}
.hero h1 { color: var(--white); margin-bottom: var(--space-md); max-width: 700px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,0.80); font-size: 1.1rem;
  max-width: 580px; margin-bottom: var(--space-lg); line-height: 1.7;
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: var(--space-md); }
.hero-stat { color: var(--white); }
.hero-stat .stat-num {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  color: var(--gold); display: block;
}
.hero-stat .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }

/* === CARDS === */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: var(--space-lg);
  transition: var(--transition); border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px; background: var(--off-white);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; margin-bottom: var(--space-md);
  color: var(--gold);
}
.card-title { margin-bottom: var(--space-xs); }
.card-text { color: var(--text-light); font-size: 0.95rem; }

/* === SECTION HEADERS === */
.section-header { max-width: 680px; margin-bottom: var(--space-xl); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--space-xs);
}
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; }

/* ============================================
   SIMULATOR LAYOUT — RESPONSIVE FIRST
   ============================================ */

/* Layout principal du simulator : 2 colonnes sur desktop */
.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Colonne intro (texte gauche) */
.simulator-intro {
  /* reste naturel */
}

/* Steps numerotes */
.sim-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: var(--space-md);
}
.sim-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text);
}
.sim-step-num {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1rem;
  flex-shrink: 0;
}

/* === SIMULATOR WIDGET === */
.simulator {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.simulator-header {
  background: var(--primary); padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; gap: var(--space-sm);
}
.simulator-header h3 { color: var(--white); font-size: 1.05rem; }
.simulator-header .sim-icon { color: var(--gold); flex-shrink: 0; }
.simulator-body { padding: var(--space-md) var(--space-lg); }
.sim-group { margin-bottom: var(--space-md); }
.sim-label {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; color: var(--primary);
  flex-wrap: wrap; gap: 4px;
}
.sim-label span:last-child { color: var(--gold); font-size: 0.95rem; }
.sim-range {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; background: var(--light-gray); border-radius: 100px; outline: none;
}
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; background: var(--gold);
  border-radius: 50%; cursor: pointer; border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sim-select {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem; color: var(--text);
  background: var(--white); outline: none;
}
.sim-select:focus { border-color: var(--gold); }
.sim-results {
  background: var(--off-white); border-radius: var(--radius);
  padding: var(--space-md); margin-top: var(--space-md);
  border: 1px solid var(--border);
}
/* 3 colonnes par defaut, 1 colonne sur mobile — voir media queries */
.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.sim-result-item { text-align: center; }
.sim-result-value {
  font-family: var(--font-serif); font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 700;
  color: var(--primary); display: block; word-break: break-word;
}
.sim-result-label { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.sim-cta { margin-top: var(--space-md); }
.sim-cta .btn { width: 100%; justify-content: center; }

/* === VILLE LAYOUT (2-col with sticky sidebar) === */
.ville-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
}
.ville-main { min-width: 0; }
.ville-sidebar { min-width: 0; }
.sidebar-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--space-md); }

/* Sidebar data list */
.sidebar-data-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-sm); }
.sdata-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sdata-row:last-child { border-bottom: none; padding-bottom: 0; }
.sdata-label { color: var(--text-light); }
.sdata-val { font-weight: 600; color: var(--text); }
.sdata-val.gold { color: var(--gold); }

/* === STAT MINI CARDS (4-grid city stats) === */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.stat-mini-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-md);
  text-align: center; transition: var(--transition);
}
.stat-mini-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.stat-mini-card.highlight { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.stat-mini-val { font-family: var(--font-serif); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; color: var(--primary); display: block; }
.stat-mini-card.highlight .stat-mini-val { color: var(--gold); }
.stat-mini-label { font-size: 0.75rem; font-weight: 600; color: var(--text); margin-top: 4px; }
.stat-mini-src { font-size: 0.65rem; color: var(--text-light); margin-top: 2px; }

/* === DESTATIS BADGE === */
.destatis-badge {
  background: linear-gradient(135deg, rgba(26,58,92,0.05), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.destatis-badge-inner { display: flex; gap: var(--space-md); align-items: flex-start; }
.destatis-icon {
  width: 48px; height: 48px; background: var(--gold);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: var(--primary); flex-shrink: 0;
}
.destatis-badge strong { color: var(--primary); font-size: 0.95rem; display: block; margin-bottom: 6px; }
.destatis-badge p { color: var(--text-light); font-size: 0.875rem; line-height: 1.5; }

/* === DATA TABLE (Immobilienpreise) === */
.table-scroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table thead tr { background: var(--primary); }
.data-table thead th {
  padding: var(--space-md) var(--space-sm); color: var(--white);
  font-family: var(--font-serif); text-align: left; font-size: 0.875rem;
  white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--off-white); }
.data-table td { padding: 14px var(--space-sm); font-size: 0.875rem; }
.data-source { font-size: 0.75rem; color: var(--text-light); margin-top: var(--space-md); font-style: italic; }
.bundesland-link { color: var(--primary); font-weight: 600; }
.bundesland-link:hover { color: var(--gold); }
.price-val { font-weight: 600; color: var(--primary); }
.price-val.secondary { color: var(--text-light); font-weight: 500; }

/* Rendite badges */
.rendite-badge {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  font-weight: 700; font-size: 0.85rem;
}
.rendite-badge.high { background: rgba(46,125,50,0.12); color: #2E7D32; }
.rendite-badge.mid { background: rgba(201,168,76,0.15); color: var(--gold-dark); }
.rendite-badge.low { background: rgba(198,40,40,0.08); color: #C62828; }

/* === BAR CHART === */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: var(--space-sm); }
.bar-label { width: 180px; flex-shrink: 0; font-size: 0.85rem; font-weight: 500; text-align: right; }
.bar-label a { color: var(--primary); }
.bar-label a:hover { color: var(--gold); }
.bar-track { flex: 1; height: 32px; background: var(--light-gray); border-radius: 100px; overflow: hidden; }
.bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 100px; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px; transition: width 1s ease; min-width: 60px;
}
.bar-val { font-size: 0.75rem; color: var(--white); font-weight: 600; white-space: nowrap; }
.bar-rendite { width: 56px; flex-shrink: 0; text-align: center; }

/* === SUMMARY STAT CARDS === */
.summary-stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: var(--space-md);
  text-align: center; box-shadow: var(--shadow);
}
.summary-stat-card.highlight { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.summary-stat-val { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--primary); }
.summary-stat-card.highlight .summary-stat-val { color: var(--gold); }
.summary-stat-label { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-top: 4px; }
.summary-stat-sub { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }

/* === BUNDESLAND CARDS (immobilienpreise) === */
.bl-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow); transition: var(--transition);
}
.bl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bl-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-sm); gap: var(--space-sm); }
.bl-card-header h3 { margin-bottom: 0; font-size: 1.2rem; }
.bl-card-header h3 a { color: var(--primary); }
.bl-card-header h3 a:hover { color: var(--gold); }
.bl-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }
.bl-desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; margin-bottom: var(--space-md); }
.bl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
.bl-stat { text-align: center; padding: 10px 8px; background: var(--off-white); border-radius: var(--radius); }
.bl-stat.highlight { background: rgba(201,168,76,0.1); }
.bl-stat-val { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--primary); display: block; }
.bl-stat.highlight .bl-stat-val { color: var(--gold); }
.bl-stat-label { font-size: 0.65rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; display: block; }

/* === STICKY FOOTER === */
.sticky-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 990;
  background: var(--primary); border-top: 3px solid var(--gold);
  padding: 12px var(--space-md);
  transform: translateY(100%); transition: transform 0.4s ease;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
}
.sticky-footer.visible { transform: translateY(0); }
.sticky-footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  flex-wrap: wrap;
}
.sticky-footer-text { color: var(--white); }
.sticky-footer-text strong { display: block; font-size: 0.9rem; font-family: var(--font-serif); }
.sticky-footer-text span { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.sticky-footer-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.sticky-close {
  color: rgba(255,255,255,0.5); background: none; border: none;
  cursor: pointer; font-size: 1.2rem; padding: 4px 8px;
  transition: var(--transition);
}
.sticky-close:hover { color: var(--white); }

/* === EXIT POPUP === */
.exit-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  padding: var(--space-md);
}
.exit-popup-overlay.active { opacity: 1; pointer-events: all; }
.exit-popup {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 520px; width: 100%; position: relative;
  overflow: hidden; transform: scale(0.92);
  transition: transform 0.3s ease; box-shadow: var(--shadow-lg);
}
.exit-popup-overlay.active .exit-popup { transform: scale(1); }
.exit-popup-header {
  background: var(--primary); padding: var(--space-lg);
  text-align: center; position: relative;
}
.exit-popup-header h3 { color: var(--white); font-size: 1.4rem; }
.exit-popup-header p { color: rgba(255,255,255,0.75); margin-top: 8px; font-size: 0.9rem; }
.exit-popup-body { padding: var(--space-lg); }
.exit-popup-body p { color: var(--text-light); margin-bottom: var(--space-md); text-align: center; }
.exit-popup-actions { display: flex; flex-direction: column; gap: 12px; }
.exit-popup-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.15); border: none; color: var(--white);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: var(--transition);
}
.exit-popup-close:hover { background: rgba(255,255,255,0.3); }
.exit-dismiss {
  text-align: center; font-size: 0.8rem; color: var(--text-light);
  cursor: pointer; padding: 8px;
}
.exit-dismiss:hover { color: var(--primary); }

/* === BREADCRUMB === */
.breadcrumb {
  padding: var(--space-sm) 0; font-size: 0.82rem; color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: var(--space-xl) 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(201,168,76,0.07); pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--space-sm); }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 620px; line-height: 1.7; }
.page-hero .hero-meta { display: flex; gap: var(--space-md); margin-top: var(--space-md); flex-wrap: wrap; }
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.82rem; font-weight: 600;
}

/* === INVESTMENT TYPES === */
.invest-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-sm); }
.invest-type-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-md);
  text-align: center; transition: var(--transition); text-decoration: none;
  color: var(--text);
}
.invest-type-card:hover { border-color: var(--gold); background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow); }
.invest-type-card .type-icon { font-size: 2rem; margin-bottom: var(--space-xs); }
.invest-type-card h4 { font-size: 0.875rem; color: var(--primary); }

/* === COMPARISON TABLE === */
.comparison-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.comparison-table thead tr { background: var(--primary); }
.comparison-table thead th { padding: var(--space-md); color: var(--white); font-family: var(--font-serif); text-align: center; font-size: 0.9rem; }
.comparison-table thead th:first-child { text-align: left; }
.comparison-table thead th.highlight { background: var(--gold); color: var(--primary); }
.comparison-table tbody tr { border-bottom: 1px solid var(--border); }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--off-white); }
.comparison-table td { padding: 14px var(--space-md); text-align: center; font-size: 0.875rem; }
.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--primary); }
.comparison-table td.highlight { background: rgba(201,168,76,0.05); }
.check { color: var(--success); font-size: 1.1rem; }
.cross { color: #C62828; }
.partial { color: var(--gold); }

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: var(--space-lg); box-shadow: var(--shadow);
  border-left: 4px solid var(--gold); position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; right: var(--space-md);
  font-size: 4rem; font-family: var(--font-serif);
  color: rgba(201,168,76,0.12); line-height: 1;
}
.testimonial-text { color: var(--text-light); font-style: italic; margin-bottom: var(--space-md); line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; color: var(--gold); font-weight: 700;
  font-size: 0.9rem; font-family: var(--font-serif); flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.875rem; color: var(--primary); }
.author-city { font-size: 0.75rem; color: var(--text-light); }

/* === FAQ === */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.faq-question {
  width: 100%; background: none; border: none; padding: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
  text-align: left; cursor: pointer; font-weight: 600;
  color: var(--primary); font-size: 0.9rem; transition: var(--transition);
  gap: var(--space-sm);
}
.faq-question:hover { background: var(--off-white); }
.faq-icon { font-size: 1.2rem; transition: var(--transition); color: var(--gold); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 var(--space-md) var(--space-md); color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* === CITY LISTING === */
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.city-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text);
  font-size: 0.85rem; transition: var(--transition); text-decoration: none;
}
.city-link:hover { border-color: var(--gold); color: var(--primary); background: var(--off-white); transform: translateX(2px); }
.city-link svg { color: var(--gold); flex-shrink: 0; }

/* === TALLY FORM === */
.tally-container { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.tally-header { background: var(--primary); padding: var(--space-md) var(--space-lg); text-align: center; }
.tally-header h3 { color: var(--white); font-size: 1.1rem; }
.tally-header p { color: rgba(255,255,255,0.75); font-size: 0.875rem; margin-top: 6px; }
.tally-body { padding: var(--space-md); min-height: 300px; }

/* === TRUST BADGES === */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-xl); flex-wrap: wrap; padding: var(--space-lg) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-badge { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.85rem; }
.trust-badge svg { color: var(--gold); flex-shrink: 0; }

/* === FOOTER === */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.75);
  padding: var(--space-2xl) 0 var(--space-lg); margin-bottom: 70px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 0.875rem; font-family: var(--font-serif); margin-bottom: var(--space-md); letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-sm); font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }
.gold-divider { width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin: var(--space-sm) 0 var(--space-md); }

/* === SCROLL REVEAL === */
.reveal-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* === PAGINATION === */
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 0.875rem; font-weight: 500;
  transition: var(--transition); text-decoration: none; color: var(--text);
}
.pagination a:hover { border-color: var(--gold); color: var(--primary); }
.pagination span.active { background: var(--gold); color: var(--primary); border-color: var(--gold); font-weight: 700; }

/* === INVEST BOXES === */
.invest-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: var(--space-xl); text-align: center;
  box-shadow: var(--shadow); border: 2px solid transparent;
  transition: var(--transition); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.invest-box.featured { border-color: var(--gold); }
.invest-box.featured::before {
  content: 'EMPFOHLEN'; position: absolute; top: 16px; right: -28px;
  background: var(--gold); color: var(--primary); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 1px; padding: 4px 40px;
  transform: rotate(45deg);
}
.invest-box-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.invest-box h3 { margin-bottom: 8px; }
.invest-box .rendement { font-size: 2rem; font-family: var(--font-serif); font-weight: 700; color: var(--gold); display: block; }
.invest-box .rendement-label { font-size: 0.78rem; color: var(--text-light); }
.invest-box ul { text-align: left; margin: var(--space-md) 0; flex: 1; }
.invest-box ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; color: var(--text-light); }
.invest-box ul li:last-child { border-bottom: none; }
.invest-box ul li::before { content: 'v'; font-family: var(--font-serif); color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* === STAT BOXES (dark bg) === */
.stat-box {
  text-align: center; padding: var(--space-lg);
  border-radius: var(--radius-lg); background: rgba(255,255,255,0.05);
}
.stat-box .num { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; color: var(--gold); display: block; line-height: 1; }
.stat-box .label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* TABLET — 1024px */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Simulator: passage en 1 colonne */
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .simulator-intro { order: 1; }
  .simulator { order: 2; }

  .ville-grid { grid-template-columns: 1fr; }
  .ville-sidebar { order: -1; }
  .sidebar-sticky { position: static; }

  .bar-label { width: 140px; font-size: 0.78rem; }

  .bl-stats { grid-template-columns: repeat(2, 1fr); }

  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* TABLET PORTRAIT — 768px */
@media (max-width: 768px) {
  :root { --space-xl: 48px; --space-2xl: 64px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 80vh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Simulator layout 1 col + results 1 col */
  .simulator-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .sim-results-grid { grid-template-columns: 1fr; gap: 8px; }

  .sticky-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .sticky-footer-actions { justify-content: center; width: 100%; }

  .comparison-table { font-size: 0.78rem; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }

  .trust-bar { gap: var(--space-md); }
  .trust-badge { font-size: 0.8rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .bar-chart { overflow-x: auto; }
  .bar-row { min-width: 400px; }

  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .bl-stats { grid-template-columns: repeat(2, 1fr); }
  .bl-card-header { flex-direction: column; }

  .destatis-badge-inner { flex-direction: column; gap: var(--space-sm); }
  .destatis-icon { width: 40px; height: 40px; }

  .page-hero .hero-meta { gap: var(--space-sm); }
  .hero-meta-item { font-size: 0.75rem; }

  .simulator-body { padding: var(--space-md); }
}

/* MOBILE — 480px */
@media (max-width: 480px) {
  :root { --space-lg: 28px; --space-xl: 40px; --space-2xl: 56px; --space-md: 20px; }

  .container { padding: 0 16px; }

  .hero { min-height: 100svh; }
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Simulator — full single column */
  .simulator-layout { grid-template-columns: 1fr; gap: var(--space-md); }
  .sim-results-grid { grid-template-columns: 1fr; }
  .sim-result-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .sim-result-item:last-child { border-bottom: none; }
  .sim-result-value { font-size: 1.2rem; }
  .simulator-body { padding: var(--space-sm) var(--space-md); }
  .simulator-header { padding: var(--space-sm) var(--space-md); }
  .simulator-header h3 { font-size: 0.95rem; }

  /* Sim steps horizontal sur mobile */
  .sim-steps { gap: 10px; }
  .sim-step { font-size: 0.875rem; }
  .sim-step-num { width: 34px; height: 34px; font-size: 0.875rem; }

  .logo-text strong { font-size: 0.85rem; }
  .logo-text span { display: none; }

  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .bl-stats { grid-template-columns: repeat(2, 1fr); }

  .btn-lg { padding: 15px 24px; font-size: 0.95rem; }

  .tally-body { padding: var(--space-sm); }

  .bar-label { width: 110px; font-size: 0.72rem; }
  .bar-fill { min-width: 40px; }
  .bar-val { font-size: 0.65rem; }

  .section-header p { font-size: 0.95rem; }

  .comparison-table { font-size: 0.72rem; }
  .comparison-table th, .comparison-table td { padding: 8px 6px; }

  .exit-popup-header h3 { font-size: 1.2rem; }
  .exit-popup-body { padding: var(--space-md); }

  .faq-question { font-size: 0.85rem; padding: 14px; }
}

/* Very small screens */
@media (max-width: 360px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .btn { padding: 12px 20px; font-size: 0.875rem; }
  .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .simulator-layout { grid-template-columns: 1fr; }
}