/* ==========================================================================
   HEINAND Immobilien — Frontend-Nachbau
   Design tokens aus heinand.de übernommen (Farben, Fonts, Abstände)
   ========================================================================== */

:root {
  --navy: #0f3063;
  --navy-deep: #0a2148;
  --navy-soft: #1b3f7a;
  --ink: #172136;
  --mist: #eef1f6;
  --white: #ffffff;
  --black: #000000;
  --gold: #9f7e3e;
  --gold-light: #c4a468;
  --gold-pale: #f0e8d8;
  --cream: #f7f5f0;

  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-heading: "Manrope", "Manrope Fallback", "Inter", system-ui, sans-serif;

  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-card: 0 2px 8px rgba(15, 48, 99, 0.06), 0 1px 2px rgba(15, 48, 99, 0.04);
  --shadow-card-hover: 0 12px 28px rgba(15, 48, 99, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.serif { font-family: var(--font-heading); font-weight: 700; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 21px; font-weight: 700; }

p { margin: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%), var(--gold);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 18px rgba(159,126,62,0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 55%), var(--gold-light); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 24px rgba(159,126,62,0.45); }

.btn-navy {
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 55%), var(--navy);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 6px 18px rgba(15,48,99,0.3);
}
.btn-navy:hover { background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0) 55%), var(--navy-soft); }

.btn-outline {
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.04) 60%), rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(220%);
  -webkit-backdrop-filter: blur(18px) saturate(220%);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 20px rgba(0,0,0,0.12);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.85);
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.06) 60%), rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 6px 26px rgba(0,0,0,0.16);
}

.btn-outline-navy {
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.08) 60%), rgba(255,255,255,0.35);
  backdrop-filter: blur(14px) saturate(200%);
  -webkit-backdrop-filter: blur(14px) saturate(200%);
  border-color: rgba(15, 48, 99, 0.22);
  color: var(--navy-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-outline-navy:hover { border-color: var(--navy); background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.1) 60%), rgba(255,255,255,0.5); }

.btn-tel {
  color: var(--white);
  font-weight: 600;
}

.header-actions .btn-outline-navy {
  padding: 10px 18px;
  font-size: 14px;
}
.btn-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}
.badge-soon {
  display: inline-block;
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}
.mobile-nav-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 18px;
  border-bottom: 1px solid rgba(15,48,99,0.08);
  color: rgba(10,33,72,0.5);
}

/* ==========================================================================
   Topbar + Header
   ========================================================================== */

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 101;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar a { color: var(--white); display: inline-flex; align-items: center; gap: 7px; }
.topbar-icon { flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-region { display: none; }

/* Schwebende Glas-Kapsel: der äußere Wrapper bleibt unsichtbar und dient
   nur der Positionierung (sticky + Abstand), damit ringsum die Seite
   durchscheint; die eigentliche "Blase" ist .site-header .container. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 16px 0;
  margin-bottom: -92px; /* zieht den Hero direkt hinter die Kapsel, kein Beige-Streifen */
  pointer-events: none;
}
.site-header .container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
  max-width: 1320px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.28) 60%), rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 40px rgba(15, 48, 99, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; display: block; }
.footer-logo .logo-img { height: 36px; }
.mark-img { width: 64px; height: auto; display: block; margin: 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .l1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
}
.logo-text .l2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a, .nav-dropdown-trigger {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.main-nav a:hover, .nav-dropdown-trigger:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn-navy { padding: 12px 20px; font-size: 14px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-deep);
  margin: 4px 0;
  transition: all 0.2s ease;
}

/* Mega menu */
.nav-item-dropdown { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.25) 60%), rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 20px 48px rgba(15, 48, 99, 0.18);
  padding: 28px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  z-index: 200;
}
.mega-menu.open { display: grid; }
.mega-menu h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.mega-menu .sub { font-size: 13px; color: #6b7280; margin-bottom: 14px; }
.mega-menu ul { display: flex; flex-direction: column; gap: 14px; }
.mega-menu li a { display: block; }
.mega-menu li a strong {
  display: block;
  font-size: 15px;
  color: var(--navy-deep);
  font-weight: 600;
  margin-bottom: 2px;
}
.mega-menu li a span { font-size: 13px; color: #6b7280; }
.mega-menu li a:hover strong { color: var(--navy); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 50%), rgba(247, 245, 240, 0.45);
  backdrop-filter: blur(34px) saturate(220%);
  -webkit-backdrop-filter: blur(34px) saturate(220%);
  z-index: 300;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  border-bottom: 1px solid rgba(15,48,99,0.08);
  color: var(--navy-deep);
}
.mobile-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  padding: 188px 0 110px;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); margin: 14px 0 20px; }
.hero-lead { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-tel { display: inline-flex; align-items: center; gap: 8px; }

/* Logo-Wasserzeichen auf blauen Textboxen (Hero-Seiten & CTA-Band) */
.hero-page::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -40px;
  width: 380px;
  height: 380px;
  background-image: url("../assets/mark-gold.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.13;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Hero mit Hintergrund-Video (Startseite) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(15,48,99,0.80) 0%, rgba(10,33,72,0.90) 70%);
  z-index: 1;
}
.hero--video {
  background-image: url("../assets/video/mainzer-dom-poster.jpg");
  background-size: cover;
  background-position: center 40%;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-sub .container { padding-top: 40px; }
.hero-page { padding: 156px 0 80px; }

@media (max-width: 1320px) {
  .header-actions .btn-outline-navy, .header-actions .btn-soon { display: none; }
}
.hero-page .eyebrow { color: var(--gold-light); }
.hero-page h1 { font-size: 44px; color: var(--white); margin: 12px 0 16px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-stats span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-mist { background: var(--mist); }
.section-white { background: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin-top: 10px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Services grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 55%), rgba(255,255,255,0.4);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--shadow-card-hover); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: #5b6472; font-size: 15px; margin-bottom: 18px; }
.card .card-link { color: var(--gold); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Painpoint-Sektion ("Kennen Sie das?") */
.painpoints-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.painpoint-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 55%), rgba(255,255,255,0.4);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-card);
}
.painpoint-card .card-icon { background: var(--mist); color: var(--gold); }
.painpoint-card h3 { font-size: 16px; margin: 16px 0 8px; color: var(--navy-deep); }
.painpoint-card p { font-size: 13px; line-height: 1.6; color: #5b6472; }
.painpoints-closing {
  text-align: center;
  margin-top: 36px;
  font-size: 18px;
  color: var(--navy-deep);
  font-weight: 500;
}
.painpoints-closing .highlight { color: var(--gold); font-weight: 700; }

/* Two-col promo (Verkauf & Bewertung style) */
.promo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.promo-card {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
}
.promo-card h3 { color: var(--white); margin-bottom: 8px; }
.promo-card p { color: rgba(255,255,255,0.75); font-size: 14px; }

/* Fließtext-Block (Über-uns Philosophie) */
.prose-block { max-width: 720px; margin: 36px auto 0; }
.prose-block p { color: #5b6472; font-size: 16px; line-height: 1.75; margin-bottom: 20px; }
.prose-block h3 {
  font-size: 24px;
  color: var(--navy-deep);
  margin: 44px 0 16px;
}
.prose-block p.prose-lead-out {
  color: var(--navy-deep);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 48, 99, 0.12);
}

/* Why cards (4-col feature list) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.feature-item h4 { font-size: 17px; color: var(--navy-deep); margin-bottom: 8px; font-family: var(--font-heading); font-weight: 600;}
.feature-item p { font-size: 14px; color: #5b6472; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-pale); color: var(--navy);
  display:flex; align-items:center; justify-content:center; margin-bottom: 16px;
}

/* Stats row (Über uns) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0 60px;
}
.stat { text-align: left; border-left: 2px solid var(--gold); padding-left: 18px; }
.stat .num { font-family: var(--font-heading); font-weight: 800; font-size: 40px; color: var(--navy-deep); }
.stat .label { font-size: 14px; color: #5b6472; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 1180px) {
  .steps-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 42px;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: #5b6472; font-size: 15px; }

/* Standorte / Radius-Karte */
.locations-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.map-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 55%), rgba(255,255,255,0.4);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-card);
}
.leaflet-map {
  height: 420px;
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--mist);
  z-index: 1;
}
.leaflet-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.75);
}
.hn-map-tooltip {
  background: var(--navy-deep) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px !important;
  box-shadow: none !important;
}
.hn-map-tooltip::before { border-top-color: var(--navy-deep) !important; }
.hn-map-tooltip span { display: block; font-weight: 400; font-size: 11px; color: var(--gold-light); margin-top: 1px; }
.locations-tier1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 28px;
}
.locations-tier1 a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(15,48,99,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
}
.locations-tier1 a:hover { border-color: var(--gold); color: var(--gold); }
.locations-tier1 a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.locations-tier2-list {
  font-size: 14px;
  color: #5b6472;
  line-height: 2;
}
.locations-tier2-list strong { color: var(--navy-deep); }

/* Ortssuche */
.location-search {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}
.location-search-box { position: relative; }
.location-search-input {
  width: 100%;
  border: 1px solid rgba(15,48,99,0.16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
}
.location-search-input:focus { outline: 2px solid var(--navy-soft); outline-offset: 1px; }
.location-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid rgba(15,48,99,0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(15,48,99,0.14);
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}
.location-search-suggestions.open { display: block; }
.location-search-suggestions button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(15,48,99,0.06);
  padding: 11px 16px;
  font-size: 14px;
  color: var(--navy-deep);
}
.location-search-suggestions button:last-child { border-bottom: none; }
.location-search-suggestions button:hover,
.location-search-suggestions button.active { background: var(--mist); }
.location-search-suggestions button .note { font-size: 12px; color: #9aa1ad; font-weight: 400; }
.location-search-result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: none;
}
.location-search-result.visible { display: block; }
.location-search-result.ok {
  background: #eaf6ee;
  border: 1px solid #bfe3cb;
  color: #1e5a34;
}
.location-search-result.no {
  background: #fbeae7;
  border: 1px solid #f0c2ba;
  color: #8a2f1f;
}
.location-search-result.unknown {
  background: var(--mist);
  border: 1px solid rgba(15,48,99,0.1);
  color: var(--navy-deep);
}
.location-search-result strong { display: block; margin-bottom: 3px; font-size: 15px; }
.location-search-result a { text-decoration: underline; font-weight: 600; }

/* Region chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  background: var(--white);
  border: 1px solid rgba(15,48,99,0.1);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--navy-deep);
}

.region-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.region-grid .card h3 { color: var(--navy-deep); }

/* CTA banner (mark-gold background) */
.cta-banner {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  background-image: url("../assets/mark-gold.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner .mark {
  width: 90px; height: 90px; margin: 0 auto 22px;
  opacity: 0.9;
}
.cta-banner h2 { color: var(--white); max-width: 620px; margin: 0 auto 28px; }
.cta-banner .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(15,48,99,0.1);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--navy-deep);
}
.faq-q .icon { font-size: 20px; color: var(--gold); transition: transform 0.2s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 15px;
  color: #5b6472;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 22px; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 55%), rgba(255,255,255,0.4);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--navy-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid rgba(15,48,99,0.16);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--navy-soft);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-step-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin: 22px 0 14px; }
.form-note { font-size: 12px; color: #6b7280; margin-top: 14px; }
.form-hint { font-size: 12px; color: #8a92a3; }
.form-field input[type="file"] {
  border: 1px dashed rgba(15,48,99,0.24);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  background: var(--mist);
  cursor: pointer;
}
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-mock-note { margin-top: 14px; font-size: 13px; padding: 12px 14px; border-radius: 10px; }
.form-note a { color: var(--navy); text-decoration: underline; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }

.radio-card {
  display: flex;
  gap: 14px;
  border: 1px solid rgba(15,48,99,0.14);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.radio-card:hover { border-color: var(--navy-soft); }
.radio-card input { margin-top: 4px; accent-color: var(--navy); }
.radio-card strong { display: block; color: var(--navy-deep); font-size: 15px; margin-bottom: 3px; }
.radio-card .desc { font-size: 13px; color: #5b6472; display: block; }
.radio-card .impact { font-size: 12px; color: var(--gold); display: block; margin-top: 4px; font-weight: 600; }
.radio-card.urgent { }
.radio-card.critical strong { color: #b3441f; }

.priority-indicator {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1.5px solid rgba(15,48,99,0.14);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: -6px 0 18px;
  background: var(--mist);
  transition: border-color .2s ease, background .2s ease;
}
.priority-indicator strong { font-size: 15px; color: var(--navy-deep); }
.priority-indicator .desc { font-size: 13px; color: #5b6472; }
.priority-indicator .impact { font-size: 12px; font-weight: 600; margin-top: 2px; }
.priority-indicator.regulaer { border-color: rgba(15,48,99,0.2); background: var(--mist); }
.priority-indicator.regulaer .impact { color: var(--gold); }
.priority-indicator.dringend { border-color: rgba(197,138,26,0.45); background: #fdf4e3; }
.priority-indicator.dringend strong { color: #9a6a10; }
.priority-indicator.dringend .impact { color: #9a6a10; }
.priority-indicator.akut { border-color: rgba(179,68,31,0.5); background: #fbeae4; }
.priority-indicator.akut strong { color: #b3441f; }
.priority-indicator.akut .impact { color: #b3441f; }
.priority-indicator.unbekannt { border-color: rgba(15,48,99,0.2); background: var(--mist); }
.priority-indicator.unbekannt .impact { color: var(--navy-soft); }

/* Kontakt-Tabs (Nachricht / Termin buchen) */
.contact-tabs { padding-bottom: 24px; }
.tab-switch {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(15,48,99,0.1);
}
.tab-btn {
  background: none;
  border: none;
  padding-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #9aa1ad;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab-btn.active { color: var(--navy-deep); border-bottom-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.cal-embed { width: 100%; min-height: 640px; overflow: hidden; border-radius: var(--radius-md); }

.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-pale); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item strong { display: block; color: var(--navy-deep); font-size: 15px; }
.contact-info-item span { font-size: 13px; color: #6b7280; }

.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }

.process-list { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.process-list li { display: flex; gap: 14px; font-size: 15px; color: #40485a; }
.process-list b { color: var(--navy-deep); }

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-grid { display: flex; flex-direction: column; gap: 20px; }
.blog-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 55%), rgba(255,255,255,0.4);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-card);
  align-items: start;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--shadow-card-hover); transform: translateY(-2px); }
.blog-card .meta { font-size: 13px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card .meta span { color: #9aa1ad; text-transform: none; font-weight: 400; letter-spacing: 0; margin-left: 6px;}
.blog-card h3 { margin: 10px 0 8px; font-size: 20px; }
.blog-card p { color: #5b6472; font-size: 14px; margin-bottom: 14px; }
.blog-card .tag {
  display: flex; align-items: center; justify-content: center;
  width: 160px; height: 160px;
  background: var(--gold-pale);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card .tag img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-header { max-width: 760px; margin: 0 auto; text-align: left; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 26px; margin: 40px 0 16px; }
.article-body p { color: #333c4d; font-size: 16px; margin-bottom: 16px; }
.article-body ul { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { padding-left: 24px; position: relative; color: #333c4d; font-size: 15px; }
.article-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.article-related-service {
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.08) 55%), rgba(238,241,246,0.55);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  padding: 28px;
  margin: 40px 0;
}
.article-related-service .eyebrow { display:block; margin-bottom: 8px; }
.article-related-service h3 { margin-bottom: 6px; }
.article-related-service p { color: #5b6472; margin-bottom: 14px; font-size: 15px; }
.related-articles { max-width: 760px; margin: 20px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-articles a {
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 55%), rgba(255,255,255,0.4);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-card);
  display: block;
}
.related-articles .meta { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.related-articles strong { display: block; color: var(--navy-deep); font-size: 15px; margin-bottom: 8px; }
.related-articles .rd { font-size: 13px; color: var(--gold); font-weight: 600; }

/* ==========================================================================
   Verwalterwechsel — Aufgabenteilung, Ablaufschritte, Musterdokumente
   ========================================================================== */

.task-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.task-split .col {
  background: var(--white);
  border: 1px solid rgba(15,48,99,0.1);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(15,48,99,0.05);
}
.task-split .col h3 { font-size: 17px; color: var(--navy-deep); margin-bottom: 14px; }
.task-split .col ul { padding-left: 18px; color: #5b6472; font-size: 14px; line-height: 1.7; }
.task-split .col li { margin-bottom: 6px; }
.task-split .col.heinand { border-top: 3px solid var(--navy); }
.task-split .col.vorverwaltung { border-top: 3px solid var(--gold); }
.task-split .col.eigentuemer { background: var(--gold-pale); border-top: 3px solid var(--gold-light); }

.wechsel-steps { display: flex; flex-direction: column; }
.wechsel-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(15,48,99,0.1);
}
.wechsel-step:last-child { border-bottom: none; }
.wechsel-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wechsel-step h3 { font-size: 17px; margin-bottom: 6px; }
.wechsel-step p { color: #5b6472; font-size: 14px; line-height: 1.65; }
.wechsel-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; }
.badge-heinand { background: var(--navy); color: #fff; }
.badge-vorverwaltung { background: var(--gold-pale); color: #6a5326; }
.badge-eigentuemer { background: var(--mist); color: var(--navy-deep); border: 1px solid rgba(15,48,99,0.15); }
.wechsel-dauer { font-size: 11px; color: #8a92a3; font-weight: 600; }

.sample-doc {
  background: var(--white);
  border: 1px solid rgba(15,48,99,0.14);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(15,48,99,0.06);
}
.sample-doc p { margin-bottom: 12px; }
.sample-doc .doc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.disclaimer-box {
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #6a5326;
  margin-top: 28px;
}

@media (max-width: 960px) {
  .task-split { grid-template-columns: 1fr; }
  .wechsel-step { grid-template-columns: 44px 1fr; }
}

/* ==========================================================================
   Impressum / Datenschutz
   ========================================================================== */

.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal p { color: #333c4d; margin-bottom: 10px; font-size: 15px; }
.legal .placeholder { color: #b3441f; font-style: italic; }
.legal h3 { font-size: 17px; color: var(--navy-deep); margin: 22px 0 8px; }
.legal ul, .legal ol { margin: 0 0 14px 20px; color: #333c4d; font-size: 15px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--navy); text-decoration: underline; }
.legal .index { columns: 2; column-gap: 24px; list-style: none; margin: 0 0 28px; padding: 0; }
.legal .index li { margin-bottom: 4px; font-size: 14px; }
.legal .m-elements { background: var(--mist); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; list-style: none; margin-left: 0; }
.legal .glossary li { margin-bottom: 14px; }
.legal .seal { font-size: 12px; color: #8a92a3; margin-top: 40px; }
@media (max-width: 640px) {
  .legal .index { columns: 1; }
}
.legal .notice-box {
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 32px;
  font-size: 14px;
  color: #6a5326;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo svg { width: 34px; height: 34px; }
.footer-logo .l1 { font-family: var(--font-heading); font-size: 17px; color: var(--white); font-weight: 600; }
.footer-logo .l2 { font-size: 10px; letter-spacing: 0.14em; color: var(--gold-light); font-weight: 600; }
.footer-about p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-col h5 { color: var(--white); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700;}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { font-size: 14px; margin-bottom: 14px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; align-items:center; }
.footer-bottom-links button { background:none;border:none;color:inherit;font-size:13px; }
.footer-bottom-links a:hover, .footer-bottom-links button:hover { color: var(--white); }

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.45), rgba(255,255,255,0.06) 55%), rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(34px) saturate(220%);
  -webkit-backdrop-filter: blur(34px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 20px 48px rgba(15,48,99,0.25);
  padding: 26px;
  z-index: 500;
  display: none;
}
.cookie-banner.open { display: block; }
.cookie-banner h4 { font-size: 16px; margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; color: #5b6472; margin-bottom: 18px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 13px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .promo-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .related-articles { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .painpoints-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-navy, .header-actions .btn-tel, .header-actions .btn-outline-navy, .header-actions .btn-soon { display: none; }
  .menu-toggle { display: block; }
  .site-header { padding: 10px 12px 0; margin-bottom: -78px; }
  .site-header .container { height: 68px; }
  .topbar-phone-label { display: none; }
  .topbar .container span:first-child { display: none; }
  .topbar-right a:first-child { display: none; }
  h1 { font-size: 34px; }
  .hero { padding: 134px 0 70px; }
  .hero-page { padding: 142px 0 60px; }
  section { padding: 60px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-card { grid-template-columns: 1fr; }
  .painpoints-grid { grid-template-columns: 1fr; }
  .blog-card .tag { width: 96px; height: 96px; margin: 0 auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .locations-tier1 { grid-template-columns: 1fr; }
}
