/* ============================================
   MMB BauFinanz - Styles CSS
   Vermögensverwaltung Deutschland
   ============================================ */

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

/* ---- Variables ---- */
:root {
  --primary: #0D3B6E;
  --primary-dark: #081f3d;
  --primary-light: #1a5fa8;
  --gold: #C9A84C;
  --gold-light: #e8c96a;
  --gold-dark: #a07d2a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #f0eff0;
  --gray: #8a8a8a;
  --dark: #1a1a2e;
  --text: #2c2c3e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(13,59,110,0.12);
  --shadow-lg: 0 12px 40px rgba(13,59,110,0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--text); line-height: 1.75; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-navy {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-navy:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13,59,110,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(8,31,61,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.navbar-brand .logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.navbar-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--light-gray);
  color: var(--primary);
}

.nav-cta {
  background: var(--gold);
  color: var(--primary-dark) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--primary-dark) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/19336072/pexels-photo-19336072.jpeg?auto=compress&cs=tinysrgb&h=650&w=940');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,31,61,0.85) 0%, rgba(13,59,110,0.6) 50%, rgba(8,31,61,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.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: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--gold);
  display: block;
}

.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
}

.hero-stat .value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Mini Simulator */
.hero-simulator {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(201,168,76,0.3);
}

.hero-simulator h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.sim-field {
  margin-bottom: 16px;
}

.sim-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-field input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}

.sim-field .range-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.sim-field .range-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.sim-result {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.sim-result .result-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.sim-result .result-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.sim-result .result-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.sim-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding: 14px;
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
  font-size: 0.95rem;
}

.sim-cta:hover {
  background: var(--gold-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---- Sections ---- */
section { padding: 80px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ---- Services Grid ---- */
.services-section {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 10px;
  color: var(--gold-dark);
}

/* ---- Why Us ---- */
.why-section {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-image {
  position: relative;
}

.why-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.why-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--primary);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold);
}

.why-badge .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.why-badge .txt {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-item-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.why-item h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Stadtübersicht ---- */
.cities-hub-section {
  background: var(--off-white);
}

.bundeslaender-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.bundesland-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}

.bundesland-card:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateX(4px);
}

.bundesland-card span {
  font-size: 0.88rem;
  font-weight: 500;
}

.bundesland-card .arrow {
  color: var(--gold);
  font-size: 0.8rem;
  transition: transform var(--transition);
}

.bundesland-card:hover .arrow {
  transform: translateX(4px);
}

/* ---- Tally Form ---- */
.tally-section {
  background: var(--white);
}

.tally-wrapper {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

/* ---- FAQ ---- */
.faq-section { background: var(--off-white); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--off-white); }

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  transition: all var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--gold);
  color: var(--primary-dark);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  padding: 0 24px;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ---- Renditerechner (Simulator) ---- */
.simulator-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.simulator-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.simulator-card h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}

.simulator-sub {
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  font-size: 1rem;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.sim-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-input-group label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-input-group input[type="number"],
.sim-input-group select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
  transition: border-color var(--transition);
}

.sim-input-group input:focus,
.sim-input-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.sim-input-group select option {
  background: var(--primary);
}

.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.sim-result-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.sim-result-box .r-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.sim-result-box .r-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.sim-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}

.sim-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

/* ---- Page Inner Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb { margin-bottom: 16px; }
.page-hero .breadcrumb a, .page-hero .breadcrumb span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.3); }
.page-hero .breadcrumb .current { color: var(--gold); }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-top: 12px; max-width: 600px; }

/* ---- Content Sections ---- */
.content-section { padding: 80px 0; }
.content-section.bg-light { background: var(--off-white); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-img:hover img { transform: scale(1.04); }

.content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.content-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text);
}

.content-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(201,168,76,0.15);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---- Sticky Footer ---- */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-top: 2px solid var(--gold);
  padding: 14px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sticky-footer.visible {
  transform: translateY(0);
}

.sticky-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-footer-text {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.sticky-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sticky-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: color var(--transition);
}

.sticky-close:hover { color: var(--white); }

/* ---- Exit Popup ---- */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.exit-overlay.active {
  opacity: 1;
  visibility: visible;
}

.exit-popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.exit-overlay.active .exit-popup {
  transform: scale(1) translateY(0);
}

.exit-popup-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 32px;
  text-align: center;
  position: relative;
}

.exit-popup-header h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.exit-popup-header p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.exit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.exit-close:hover { background: rgba(255,255,255,0.3); }

.exit-popup-body {
  padding: 32px;
  text-align: center;
}

.exit-offer {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.exit-offer .offer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.exit-offer p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.exit-popup-body .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.exit-decline {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
}

.exit-decline:hover { color: var(--text); }

/* ---- Stadt Page ---- */
.stadt-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stadt-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stadt-stat .stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stadt-stat .stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.related-city-link {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 500;
  transition: all var(--transition);
  display: block;
  text-align: center;
}

.related-city-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-col h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

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

/* ---- Reveal on Scroll ---- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- City Listing ---- */
.city-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.city-card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.city-card-link:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  transform: translateX(3px);
}

.city-card-link .city-zip {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

.city-card-link:hover .city-zip {
  color: rgba(255,255,255,0.7);
}

/* ---- Search Box ---- */
.search-box {
  position: relative;
  max-width: 520px;
  margin-bottom: 32px;
}

.search-box input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
  color: var(--text);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-box .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: rgba(13,59,110,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 20px;
  padding-top: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-light);
}

.stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-simulator {
    max-width: 500px;
  }
  .why-grid { gap: 48px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 16px;
    border-bottom: 2px solid var(--gold);
    gap: 4px;
  }
  .hamburger { display: flex; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border: none;
  }
  .nav-dropdown-menu a { color: rgba(255,255,255,0.75) !important; }

  .hero-content { padding: 48px 24px 80px; }
  .hero-simulator { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-image { display: none; }

  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-grid.reverse { direction: ltr; }

  .sim-grid { grid-template-columns: 1fr; }
  .sim-results-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .sticky-footer-inner { flex-direction: column; text-align: center; gap: 10px; }

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

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .simulator-card { padding: 28px 20px; }
  .tally-wrapper { padding: 28px 20px; }
}