/* ============================================================
   Immobilienberatung Bremen GmbH – zentrales Stylesheet
   Farben, Typografie & Komponenten für alle Seiten
   ============================================================ */

:root {
  --navy: #0e2a3c;
  --navy-dark: #0a1f2d;
  --petrol: #14506e;
  --gold: #c29a5c;
  --gold-dark: #a8814a;
  --sand: #f6f3ee;
  --white: #ffffff;
  --text: #22313d;
  --text-light: #5b6b77;
  --line: #e3ddd3;
  --green: #2e7d5b;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(14, 42, 60, 0.10);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd8e0;
  font-size: 14px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--gold); text-decoration: none; }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo { text-decoration: none; color: var(--navy); line-height: 1.2; }
.logo strong { font-size: 20px; letter-spacing: 0.2px; display: block; }
.logo span { font-size: 12.5px; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 1.4px; }

nav.main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.main a {
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a.active { color: var(--petrol); border-bottom-color: var(--gold); }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); }
.btn.small { padding: 9px 18px; font-size: 14.5px; }
.btn.ghost {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--navy);
}
.btn.ghost:hover { background: var(--gold); color: var(--navy-dark); }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--petrol) 100%);
  color: var(--white);
  padding: 72px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.18; margin-bottom: 18px; font-weight: 800; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { font-size: 19px; color: #d9e3ea; margin-bottom: 26px; }
.hero .trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 14.5px; color: #c3d2dc; }
.hero .trust-row span::before { content: "✓ "; color: var(--gold); font-weight: 700; }

.hero-sub {
  background: var(--navy);
  color: var(--white);
  padding: 54px 0 46px;
}
.hero-sub h1 { font-size: 36px; line-height: 1.2; margin-bottom: 14px; }
.hero-sub p { font-size: 18px; color: #d9e3ea; max-width: 760px; }
.breadcrumb { font-size: 13.5px; color: #9fb4c2; margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- Formular-Karte ---------- */
.form-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 30px 28px;
  color: var(--text);
}
.form-card h2, .form-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 22px; }
.form-card .form-note { font-size: 14px; color: var(--text-light); margin-bottom: 18px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15.5px;
  font-family: var(--font);
  background: #fdfcfa;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-light); margin: 14px 0; }
.consent input { margin-top: 4px; }
.privacy-hint { font-size: 12.5px; color: var(--text-light); margin-top: 10px; text-align: center; }
.privacy-hint a { color: var(--petrol); }

/* Mehrstufiges Formular */
.steps-indicator { display: flex; gap: 8px; margin-bottom: 20px; }
.steps-indicator .step-dot {
  flex: 1; height: 6px; border-radius: 3px; background: var(--line);
}
.steps-indicator .step-dot.active { background: var(--gold); }
.form-step { display: none; }
.form-step.current { display: block; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.option-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.option-btn {
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--line);
  background: #fdfcfa;
  border-radius: 8px;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: center;
  font-family: var(--font);
  transition: all 0.15s ease;
}
.option-btn:hover { border-color: var(--gold); }
.option-btn.selected { border-color: var(--gold); background: #faf3e6; }
.option-btn .opt-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.btn-back {
  background: transparent; border: none; color: var(--text-light);
  font-size: 14.5px; cursor: pointer; padding: 10px 6px; font-family: var(--font);
}
.btn-back:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Sektionen ---------- */
section.block { padding: 70px 0; }
section.block.tinted { background: var(--sand); }
section.block.dark { background: var(--navy); color: var(--white); }
section.block.dark h2 { color: var(--white); }
section.block.dark p { color: #d9e3ea; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 8px;
  display: block;
}
section.block h2 { font-size: 32px; color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.section-intro { max-width: 720px; color: var(--text-light); font-size: 17.5px; margin-bottom: 38px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.cols-2 { grid-template-columns: 1fr 1fr; }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(14,42,60,0.05);
  display: flex;
  flex-direction: column;
}
.card .icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { color: var(--navy); font-size: 19.5px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--text-light); flex: 1; }
.card .card-link { margin-top: 16px; color: var(--petrol); font-weight: 700; text-decoration: none; font-size: 15px; }
.card .card-link:hover { color: var(--gold-dark); }
.card.highlight { border: 2px solid var(--gold); position: relative; }
.badge {
  position: absolute; top: -13px; left: 22px;
  background: var(--gold); color: var(--navy-dark);
  font-size: 12px; font-weight: 800; letter-spacing: 0.8px;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
}

/* Ablauf / Schritte */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: proc; }
.process .p-step { position: relative; padding-top: 14px; }
.process .p-step::before {
  counter-increment: proc;
  content: counter(proc);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  font-weight: 800; font-size: 19px; margin-bottom: 12px;
}
.process h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 6px; }
.process p { font-size: 14.5px; color: var(--text-light); }
section.block.dark .process h3 { color: var(--white); }
section.block.dark .process p { color: #c3d2dc; }

/* USP-Liste */
.usp-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.usp-list li { padding-left: 30px; position: relative; font-size: 16px; }
.usp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 800; font-size: 18px; }

/* Stimmen / Referenz-Platzhalter */
.quote-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(14,42,60,0.06);
}
.quote-card p { font-style: italic; font-size: 15.5px; color: var(--text); margin-bottom: 12px; }
.quote-card cite { font-style: normal; font-size: 13.5px; color: var(--text-light); font-weight: 600; }

/* FAQ */
details.faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 17px 20px;
  font-weight: 700; color: var(--navy); font-size: 16.5px;
  list-style: none; position: relative; padding-right: 46px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--gold-dark); font-weight: 400;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 20px 18px; color: var(--text-light); font-size: 15.5px; }

/* Regionen */
.region-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.region-tags span {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 30px; padding: 8px 18px; font-size: 14.5px; color: var(--navy); font-weight: 600;
}

/* CTA-Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--petrol) 100%);
  border-radius: 18px;
  color: var(--white);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}
.cta-banner h2 { color: var(--white); font-size: 28px; margin-bottom: 10px; }
.cta-banner p { color: #d9e3ea; font-size: 16.5px; }
.cta-banner .cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Artikel / Ratgeber ---------- */
article.prose h2 { font-size: 26px; margin: 38px 0 12px; color: var(--navy); }
article.prose h3 { font-size: 20px; margin: 28px 0 10px; color: var(--navy); }
article.prose p { margin-bottom: 16px; }
article.prose ul, article.prose ol { margin: 0 0 16px 24px; }
article.prose li { margin-bottom: 6px; }
article.prose .info-box {
  background: var(--sand); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 18px 20px; margin: 22px 0; font-size: 15.5px;
}
article.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
article.prose th, article.prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
article.prose th { background: var(--sand); color: var(--navy); }
.article-meta { font-size: 13.5px; color: var(--text-light); margin-bottom: 24px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-dark);
  color: #b9c7d1;
  padding: 56px 0 26px;
  font-size: 14.5px;
}
footer.site .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
footer.site h4 { color: var(--white); font-size: 15.5px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
footer.site a { color: #b9c7d1; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--gold); }
footer.site .legal-row {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #8fa2af;
}
footer.site .legal-row a { display: inline; margin: 0 12px 0 0; color: #8fa2af; }

/* ---------- Hinweis-/Erfolgs-Boxen ---------- */
.notice {
  background: #fff8ec; border: 1px solid #ecd9b4; border-radius: 10px;
  padding: 16px 18px; font-size: 14.5px; color: #7a5c22; margin: 18px 0;
}
.success-box {
  background: #eef7f1; border: 1px solid #bfe0cd; border-radius: 12px;
  padding: 40px 30px; text-align: center;
}
.success-box h2 { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .cards, .cards.cols-4 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  footer.site .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 36px 26px; }
  .hero h1 { font-size: 33px; }
}
@media (max-width: 620px) {
  .cards, .cards.cols-2, .cards.cols-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .usp-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .option-grid, .option-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  footer.site .footer-grid { grid-template-columns: 1fr; }
  nav.main { gap: 14px; font-size: 14px; }
  .hero h1 { font-size: 28px; }
  section.block { padding: 50px 0; }
  section.block h2 { font-size: 26px; }
}

/* ============================================================
   Conversion-Optimierungen (Vorbilder: führende Bewertungs-
   Leadpages – erste Frage im Hero, Trust am Formular,
   Sticky-CTA mobil, Fortschritt mit Schritt-Label)
   ============================================================ */

/* Schritt-Animation & Fortschritt */
.form-step.current { animation: hwdFade 0.25s ease; }
@keyframes hwdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.progress-label { font-size: 13px; color: var(--text-light); font-weight: 600; }
.progress-time { font-size: 13px; color: var(--gold-dark); font-weight: 700; }

/* Trust-Chips am Formular */
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.trust-chips span {
  font-size: 12.5px; background: var(--sand); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 13px; color: var(--navy); font-weight: 600;
}
.trust-chips span::before { content: "✓ "; color: var(--gold-dark); font-weight: 800; }

/* Fakten-Band (nur echte Zahlen) */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stats-band .stat strong { display: block; font-size: 34px; color: var(--gold); font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.stats-band .stat span { font-size: 14.5px; color: #c3d2dc; }

/* Option-Kacheln: stärkeres Hover-Feedback */
.option-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(14,42,60,0.10); }
.option-btn.selected { box-shadow: inset 0 0 0 1px var(--gold); }

/* Ablenkungsfreier Funnel-Header (Leadpage-Standard) */
header.site.slim .container { justify-content: space-between; }
header.site.slim .phone-cta { text-align: right; font-size: 14px; color: var(--text-light); line-height: 1.4; }
header.site.slim .phone-cta a { color: var(--navy); font-weight: 800; font-size: 17px; text-decoration: none; }
header.site.slim .phone-cta a:hover { color: var(--gold-dark); }

/* Sticky-CTA (mobil) */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 14px; gap: 10px;
  box-shadow: 0 -4px 18px rgba(14,42,60,0.12);
}
.sticky-cta .btn { flex: 1; text-align: center; padding: 12px 10px; font-size: 15px; }
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 68px; }
  #hwd-cookie-banner { bottom: 62px !important; }
}

/* Rückruf-Hinweis unter dem Absenden-Button */
.callback-hint { text-align: center; font-size: 14px; color: var(--text-light); margin-top: 14px; }
.callback-hint a { color: var(--navy); font-weight: 700; text-decoration: none; }

/* Mobil: kompakter Header – nur Logo + CTA (alle Links bleiben im Footer erreichbar) */
@media (max-width: 680px) {
  nav.main a:not(.btn) { display: none; }
  header.site .container { padding-top: 10px; padding-bottom: 10px; }
  .topbar .container span:first-child { display: none; }
}

/* ============================================================
   Bilder & KI-Kennzeichnung (Art. 50 KI-VO: sichtbarer Hinweis)
   ============================================================ */
figure.ki-bild {
  margin: 0; position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); line-height: 0;
}
figure.ki-bild img { width: 100%; height: auto; display: block; }
figure.ki-bild figcaption {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(10, 31, 45, 0.72); color: #dfe8ee;
  font-size: 11px; line-height: 1.4; letter-spacing: 0.3px;
  padding: 3px 10px; border-radius: 12px;
}
figure.ki-bild.stack { margin-top: 26px; }

/* Hero mit Bild: Foto + Farbverlauf, Text bleibt kontraststark lesbar */
.hero.with-image {
  background:
    linear-gradient(115deg, rgba(10,31,45,0.93) 0%, rgba(14,42,60,0.85) 45%, rgba(20,80,110,0.72) 100%),
    url("images/haus.webp") center 65% / cover no-repeat;
  position: relative;
}
.hero .ki-hinweis {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 10.5px; color: rgba(223,232,238,0.65);
}

/* ============================================================
   Design-Upgrade: Logo, edlere Typografie, Kontrast-Fixes
   ============================================================ */

/* Logo mit Bildmarke */
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 46px; height: 46px; display: block; }
.logo .logo-text strong { font-size: 21px; letter-spacing: 0.2px; display: block; font-family: Georgia, "Times New Roman", serif; }
.logo .logo-text strong em { font-style: normal; color: var(--gold-dark); }

/* Editoriale, seriöse Headlines (Serifenschrift, systemseitig vorhanden) */
h1, h2, .hero h1, .hero-sub h1, section.block h2, .cta-banner h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.hero h1 { font-weight: 700; }

/* Goldene Akzentlinie unter zentralen Headlines */
.hero h1::after, .hero-sub h1::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 16px;
}
.hero-sub .container.center h1::after { margin-left: auto; margin-right: auto; }

/* Kicker mit Linie – wirkt gesetzter */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: #96733a; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 1px; }
.center .kicker { justify-content: center; }

/* Karten: feinere Tiefe, ruhiges Hover */
.card { transition: box-shadow 0.2s ease, transform 0.2s ease; border-top: 3px solid transparent; }
.card:hover { box-shadow: 0 10px 28px rgba(14,42,60,0.12); transform: translateY(-3px); border-top-color: var(--gold); }

/* Buttons: konsistente, kontrastsichere Zustände */
.btn:hover { background: #b58a47; color: var(--navy-dark); }

/* KONTRAST-FIX: Ghost-Buttons auf dunklem Grund waren dunkel auf dunkel (unlesbar) */
.cta-banner .btn.ghost,
section.block.dark .btn.ghost,
.hero .btn.ghost {
  color: var(--white);
  border-color: var(--gold);
}
.cta-banner .btn.ghost:hover,
section.block.dark .btn.ghost:hover,
.hero .btn.ghost:hover { background: var(--gold); color: var(--navy-dark); }

/* KONTRAST-FIX: helle Nebentexte auf dunklen Flächen aufgehellt */
.hero p.lead { color: #e4ecf1; }
.hero .trust-row { color: #dfe8ee; }
.hero-sub p { color: #e4ecf1; }
.breadcrumb { color: #b6c8d4; }
section.block.dark p, .stats-band .stat span { color: #d3dfe7; }
.cta-banner p { color: #e4ecf1; }
footer.site { color: #c3d0da; }
footer.site a { color: #c3d0da; }
footer.site .legal-row, footer.site .legal-row a { color: #9fb2bf; }

/* KONTRAST-FIX: kleine Hinweise auf hellem Grund dunkler */
.privacy-hint, .callback-hint { color: #4d5e6b; }
.form-card .form-note { color: #4d5e6b; }
.article-meta { color: #4d5e6b; }

/* Footer: goldene Trennkante für mehr Wertigkeit */
footer.site { border-top: 3px solid var(--gold); }

/* Tabellen in Karten ruhiger */
.form-card table td { vertical-align: top; }

/* Hero-Formkarte: feine Goldkante oben */
.hero .form-card { border-top: 4px solid var(--gold); }
.logo .logo-text { text-transform: none; letter-spacing: normal; font-size: initial; }
.logo .logo-sub { font-size: 12px; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 1.6px; display: block; }

/* KONTRAST-FIX: Überschriften & Text in dunklen CTA-Bannern immer hell (höhere Spezifität schlägt section.block h2) */
section.block .cta-banner h2, .cta-banner h2 { color: var(--white); }
section.block .cta-banner p, .cta-banner p { color: #e4ecf1; }
