/* ==========================================================================
   Dörre & Dörre – Site Stylesheet
   Design-Richtung „Bauplan trifft Manufaktur“: Maßlinien statt Icon-Karten,
   scharfe Kanten statt Schatten. Farben aus dem Logo (Navy/Steel) + Messing.
   Alle Farben nur über die Tokens in :root ändern.
   ========================================================================== */

/* Schriften lokal gehostet (keine Verbindung zu Google Fonts). Variable Fonts, SIL Open Font License. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root,
[data-theme="light"] {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --text: #1B2733;
  --text-muted: #4B5A68;
  --navy: #164883;
  --navy-dark: #102F57;
  --steel: #7F93BB;
  --brass: #B8863F;
  --brass-text: #8C6329;
  --line: #B7BECB;
  --on-navy: #F4F2EC;
  --shadow-raised: 0 2px 8px rgba(27, 39, 51, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10202F;
    --surface: #16283A;
    --text: #E9E7DF;
    --text-muted: #A9B6C4;
    --navy: #7F93BB;
    --navy-dark: #A9BBDD;
    --steel: #8FA3C6;
    --brass: #D3A25C;
    --brass-text: #E6BC7E;
    --line: #2C4055;
    --on-navy: #10202F;
    --shadow-raised: 0 2px 10px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg: #10202F;
  --surface: #16283A;
  --text: #E9E7DF;
  --text-muted: #A9B6C4;
  --navy: #7F93BB;
  --navy-dark: #A9BBDD;
  --steel: #8FA3C6;
  --brass: #D3A25C;
  --brass-text: #E6BC7E;
  --line: #2C4055;
  --on-navy: #10202F;
  --shadow-raised: 0 2px 10px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-text {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
}
.brand-text span {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--navy);
}
nav.links { display: none; gap: 32px; align-items: center; }
nav.links a { font-size: 14px; font-weight: 500; text-decoration: none; }
nav.links a:hover { color: var(--navy); }
@media (min-width: 860px) { nav.links { display: flex; } }

.btn {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brass);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: 6px;
}
.btn-primary:hover { background: var(--brass-text); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 13px 23px;
  border: 1px solid var(--navy);
  border-radius: 6px;
}
.btn-secondary:hover { background: var(--navy); color: var(--on-navy); }
.btn-link { color: var(--brass-text); padding: 0; font-weight: 500; }

.menu-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}
@media (min-width: 860px) { .menu-toggle { display: none; } }
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
#mobile-menu.open { display: flex; }
#mobile-menu a { text-decoration: none; font-size: 15px; font-weight: 500; }
#mobile-menu { gap: 12px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-menu-label { font-size: 12px; font-weight: 600; color: var(--brass-text); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }

.mobile-menu-cta { display: none; }
@media (max-width: 559px) {
  .nav-row { padding: 12px 16px; }
  .nav-row .btn-primary { display: none; }            /* passt auf schmalen Handys nicht neben Logo + Menü */
  .mobile-menu-cta { display: inline-flex; justify-content: center; margin-top: 8px; }
  #mobile-menu { padding: 0 16px 20px; }
}

/* Leistungen-Aufklappmenü (Desktop) */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-panel {
  display: none; position: absolute; top: 100%; left: -20px; padding-top: 18px; min-width: 300px; z-index: 30;
}
.nav-drop-panel::before { content: ""; position: absolute; inset: 18px 0 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised); z-index: -1; }
.nav-drop-panel a { display: block; padding: 10px 20px; }
.nav-drop-panel a:first-child { margin-top: 8px; }
.nav-drop-panel a:last-child { margin-bottom: 8px; }
.nav-drop-panel a:hover { background: var(--bg); }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { display: block; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; }
.hero-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.eyebrow-badge {
  display: inline-block;   /* kein Flex: sonst zerfällt der Text auf schmalen Bildschirmen in Spalten */
  line-height: 1.5;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  background: var(--surface);
}
.eyebrow-badge strong { color: var(--brass-text); }
@media (max-width: 559px) { .eyebrow-badge { border-radius: 14px; } }
h1.hero-h1 {
  font-size: 40px;
  line-height: 1.15;
}
@media (min-width: 640px) { h1.hero-h1 { font-size: 52px; } }
/* Sehr kleine Handys (z. B. iPhone SE 1. Gen.): Überschrift kleiner, lange Buttons dürfen umbrechen */
@media (max-width: 359px) { h1.hero-h1 { font-size: 34px; } .btn { white-space: normal; line-height: 1.3; text-align: center; } }
.hero-copy {
  max-width: 60ch;
  color: var(--text-muted);
  margin: 24px 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.stars { color: var(--brass-text); letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.hero-photo {
  position: relative;
  border: 1px solid var(--line);
  line-height: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero-rating-badge {
  position: absolute;
  left: 24px;
  bottom: -24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-raised);
  padding: 16px 20px;
  line-height: 1.3;
}
.hero-rating-badge .stars { color: var(--brass-text); font-size: 13px; letter-spacing: 1px; margin-bottom: 4px; }
.hero-rating-badge .rating-num { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 22px; color: var(--navy); }
.hero-rating-badge .rating-num span { font-family: "IBM Plex Sans", sans-serif; font-weight: 400; font-size: 13px; color: var(--text-muted); }
.hero-rating-badge .rating-fine { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 899px) { .hero-rating-badge { bottom: -20px; left: 16px; padding: 12px 16px; } }

/* ---------- Measurement stats ---------- */
.measurements {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .measurements { grid-template-columns: repeat(3, 1fr); } }
.measurement .dim { display: flex; align-items: center; height: 12px; margin-bottom: 10px; }
.measurement .dim .tick { width: 1px; height: 12px; background: var(--brass); }
.measurement .dim .line { flex: 1; height: 1px; background: var(--brass); }
.measurement .value { font-size: 36px; line-height: 1.1; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.measurement .value .unit { font-size: 20px; font-weight: 500; color: var(--text); }
.measurement .label { font-size: 15px; color: var(--text-muted); margin-top: 8px; max-width: 26ch; }
.measurement .dim .line { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.measurement.in-view .dim .line { transform: scaleX(1); }

/* ---------- Calculator ---------- */
.calc-box {
  display: grid;
  gap: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px;
  max-width: 720px;
}
@media (min-width: 700px) { .calc-box { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }
.calc-input label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.calc-input input[type="range"] {
  width: 100%;
  accent-color: var(--brass);
  margin-bottom: 12px;
}
.calc-loan-value { font-size: 22px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc-result .calc-result-value { font-size: 32px; font-weight: 600; color: var(--navy); margin-top: 10px; font-variant-numeric: tabular-nums; }
.calc-result .calc-result-label { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.calc-footnote { font-size: 13px; color: var(--text-muted); max-width: 640px; margin-top: 20px; }

/* ---------- Hero trust line ---------- */
.trust-line {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.trust-line li { display: flex; align-items: center; gap: 8px; }
.trust-line li::before { content: "✓"; color: var(--brass-text); font-weight: 600; }

/* ---------- Persona selector ---------- */
.persona-lead { font-size: 14px; font-weight: 500; color: var(--text-muted); margin: 0 0 16px; }
.persona-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .persona-grid { grid-template-columns: repeat(3, 1fr); } }
.persona-card {
  background: var(--surface);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.persona-card:hover { background: var(--bg); }
.persona-title { font-size: 15px; font-weight: 500; color: var(--text); }
.persona-card .go { font-size: 13px; color: var(--brass-text); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brass-text); font-size: 22px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-muted); margin: 16px 0 0; max-width: 62ch; }

/* ---------- Callback box ---------- */
.callback-box {
  background: rgba(184, 134, 63, 0.12);
  border: 1px solid rgba(244, 242, 236, 0.35);
  padding: 20px;
  margin-top: 8px;
}
.callback-title { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.callback-copy { font-size: 14px; color: rgba(244,242,236,0.78); margin: 0 0 14px; }
.callback-box .field input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(244,242,236,0.4);
  background: rgba(255,255,255,0.06);
  color: var(--on-navy);
  border-radius: 2px;
}
.callback-box .field input::placeholder { color: rgba(244,242,236,0.6); }
.callback-box .field input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.callback-box .field-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
.callback-box .field { margin-bottom: 0; }
@media (min-width: 420px) { .callback-box .field-row { grid-template-columns: 1fr 1fr; } }
.callback-box .btn-secondary:hover { background: var(--brass); color: #FFFFFF; border-color: var(--brass); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker, .section-head .kicker { color: var(--brass-text); font-weight: 500; font-size: 14px; margin-bottom: 8px; display: block; }
.section-head h2 { font-size: 30px; line-height: 1.25; }
@media (min-width: 640px) { .section-head h2 { font-size: 36px; } }
.section-head p { color: var(--text-muted); margin-top: 16px; }

/* ---------- Team ---------- */
.team-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-grid { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 900px) { .team-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.team-photo {
  margin: 0;
  border: 1px solid var(--line);
}
.team-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.team-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.team-caption strong { color: var(--text); font-weight: 500; }
.team-people { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { width: 44px; height: 44px; background: var(--navy); color: var(--on-navy); display: flex; align-items: center; justify-content: center; font-family: "Source Serif 4", serif; font-weight: 600; }
.person .name { font-size: 14px; font-weight: 500; }
.person .role { font-size: 13px; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testi-card .quote {
  font-family: "Source Serif 4", serif;
  font-size: 17px;
  line-height: 1.55;
  margin: 4px 0 20px;
  flex: 1;
}
.testi-card .meta { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar { width: 34px; height: 34px; background: var(--navy); color: var(--on-navy); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.testi-card .name { font-size: 14px; font-weight: 500; }
.testi-card .source { font-size: 13px; color: var(--text-muted); }

/* ---------- Comparison ---------- */
.compare {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 559px) { .compare-cell { padding: 14px 12px; font-size: 14px; gap: 8px; } .compare-cell.head { font-size: 15px; } }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-cell { padding: 18px 24px; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.compare-cell.head { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 17px; }
.compare-cell.bad { color: var(--text-muted); }
.compare-cell.bad::before { content: "×"; color: var(--text-muted); font-weight: 600; }
.compare-cell.good::before { content: "✓"; color: var(--brass-text); font-weight: 600; }
.compare-cell.left { border-right: 1px solid var(--line); }

/* ---------- Process ---------- */
.process-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step .num { font-family: "Source Serif 4", serif; font-size: 15px; color: var(--brass-text); margin-bottom: 12px; }
.process-step h3 { font-size: 19px; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- Services teaser ---------- */
/* Rahmen an den Kacheln statt Rasterhintergrund: leere Zellen (z. B. 2 oder 10 Kacheln im 3er-Raster) bleiben unsichtbar */
.services-grid { display: grid; gap: 0; padding: 1px 0 0 1px; }
.services-grid > .service-card { border: 1px solid var(--line); margin: -1px 0 0 -1px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--surface);
  padding: 28px;
  text-decoration: none;
  display: block;
}
.service-card:hover { background: var(--bg); }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; }
.service-card .go { font-size: 13px; color: var(--brass-text); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-section { background: var(--navy); color: var(--on-navy); }
.contact-section h2 { color: var(--on-navy); }
.contact-section .section-head p { color: rgba(244,242,236,0.78); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.contact-info a { text-decoration: none; }
.contact-form { background: var(--surface); color: var(--text); padding: 32px; border-radius: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
}
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 500px) { .field-row { grid-template-columns: 1fr 1fr; } }
.privacy-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr; } }
.footer-grid p { margin: 0 0 12px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--navy); }
.footer-title { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 13px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Lange deutsche Komposita („Anschlussfinanzierung“) dürfen auf dem Handy umbrechen */
/* Desktop: keine automatische Silbentrennung, gleichmäßige Zeilen. Handy: Trennung erlaubt (lange Komposita). */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
@media (max-width: 559px) { h1, h2, h3 { hyphens: auto; } }
.hero-grid > *, .service-hero-grid > *, .team-grid > *, .contact-grid > *, .footer-grid > * { min-width: 0; }

/* ---------- Leistungsseiten ---------- */
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.service-hero { padding: 48px 0 0; }
.service-hero-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .service-hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; } }
.service-hero h1 { font-size: 34px; line-height: 1.2; max-width: 28ch; }
@media (min-width: 640px) { .service-hero h1 { font-size: 40px; } }
.service-hero .lead { color: var(--text-muted); max-width: 62ch; margin-top: 20px; font-size: 18px; }

.mini-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-muted);
}
.mini-trust .stars { color: var(--brass-text); letter-spacing: 1px; font-size: 14px; margin: 0; }
.mini-trust .mt-rating { font-weight: 600; color: var(--navy); font-family: "Source Serif 4", serif; }
.mini-trust .mt-sep { width: 1px; height: 16px; background: var(--line); }
.mini-trust .mt-stat strong { color: var(--navy); font-variant-numeric: tabular-nums; }

.mini-testimonial {
  background: var(--bg); border: 1px solid var(--line); padding: 32px;
  max-width: 640px; margin-top: 40px;
}
.mini-testimonial .quote { font-family: "Source Serif 4", serif; font-size: 18px; line-height: 1.55; margin: 8px 0 20px; }
.mini-testimonial .meta { display: flex; align-items: center; gap: 12px; }
.mini-testimonial .avatar { width: 36px; height: 36px; background: var(--navy); color: var(--on-navy); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.mini-testimonial .name { font-size: 14px; font-weight: 500; }
.mini-testimonial .source { font-size: 13px; color: var(--text-muted); }

/* Bild-Platzhalter bis echte Motive geliefert werden (siehe README) */
.image-placeholder {
  border: 1px dashed var(--line);
  background: var(--surface);
  aspect-ratio: 4/3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center;
}
.image-placeholder .ph-icon { font-size: 40px; opacity: 0.6; }
.image-placeholder .ph-label { font-size: 13px; color: var(--text-muted); max-width: 26ch; }
.image-placeholder .ph-tag {
  font-size: 11px; font-weight: 500; color: var(--brass-text);
  border: 1px solid var(--line); background: var(--bg); padding: 3px 10px;
}
.service-image { margin: 0; border: 1px solid var(--line); line-height: 0; }
.service-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.service-image--portrait img { aspect-ratio: 4/5; object-position: 50% 30%; }
@media (max-width: 899px) { .service-image--portrait img { aspect-ratio: 4/3; object-position: 50% 25%; } }

.calc-embed { max-width: 900px; border: 1px solid var(--line); background: var(--surface); }
.calc-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.lead-embed { background: var(--surface); border-radius: 2px; overflow: hidden; }
.lead-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }

.placeholder-box {
  border: 1px dashed var(--line);
  background: var(--bg);
  padding: 40px 32px;
  text-align: center;
  max-width: 720px;
}
.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brass-text);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 4px 12px;
  margin-bottom: 20px;
}
.placeholder-box h3 { font-size: 22px; margin-bottom: 12px; }
.placeholder-box p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 20px; }
.placeholder-fields { display: grid; gap: 12px; max-width: 380px; margin: 0 auto 24px; opacity: 0.5; pointer-events: none; }
.placeholder-fields .fake-field { height: 42px; background: var(--surface); border: 1px solid var(--line); }

.service-list { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 760px; padding: 0; margin: 0; }
@media (min-width: 640px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-list li { list-style: none; padding-left: 28px; position: relative; color: var(--text-muted); }
.service-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brass-text); font-weight: 600; }

.docs-grid { display: grid; gap: 40px; grid-template-columns: 1fr; max-width: 900px; }
@media (min-width: 700px) { .docs-grid { grid-template-columns: 1fr 1fr; } }
.docs-col h3 { font-size: 19px; margin-bottom: 16px; }
.docs-col .service-list { grid-template-columns: 1fr; gap: 10px; }
.docs-col .service-list li { font-size: 15px; }
.docs-col .service-list li small { display: block; font-size: 13px; opacity: 0.85; margin-top: 2px; }

/* ---------- Formulare ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin: 4px 0 16px; }
.consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brass); }
.consent a { color: var(--navy); }
.callback-box .consent { color: rgba(244,242,236,0.78); }
.callback-box .consent a { color: var(--on-navy); }
.form-status { font-size: 14px; margin-top: 12px; min-height: 1em; }
.form-status[data-state="ok"] { color: var(--navy); font-weight: 500; }
.form-status[data-state="error"] { color: #A23B2A; font-weight: 500; }
.callback-box .form-status { color: var(--on-navy); }
button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Rechner Immobiliendarlehen ab 55 ---------- */
.ba-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 900px; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.ba-calc > * { min-width: 0; }
@media (min-width: 800px) { .ba-calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; padding: 36px; } }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--navy); margin: 0 0 24px; padding: 0; min-width: 0; }
.seg label { flex: 1 1 200px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 11px 14px; font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer; }
.seg label + label { border-left: 1px solid var(--navy); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--navy); color: var(--on-navy); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (max-width: 559px) { .seg label + label { border-left: none; border-top: 1px solid var(--navy); } }
.ba-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.ba-field { display: flex; align-items: center; border: 1px solid var(--line); background: var(--bg); }
.ba-field input { flex: 1; min-width: 0; border: none; background: transparent; font: 600 24px/1.2 "IBM Plex Sans", sans-serif; color: var(--navy); padding: 12px 14px; font-variant-numeric: tabular-nums; }
.ba-field input:focus { outline: none; }
.ba-field:focus-within { outline: 2px solid var(--brass); outline-offset: 2px; }
.ba-field span { padding: 0 14px; font-size: 20px; color: var(--text-muted); }
.ba-hint { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.ba-calc-result .dim { display: flex; align-items: center; height: 12px; margin-bottom: 12px; }
.ba-calc-result .dim .tick { width: 1px; height: 12px; background: var(--brass); }
.ba-calc-result .dim .line { flex: 1; height: 1px; background: var(--brass); }
.ba-result-label { font-size: 14px; color: var(--text-muted); }
.ba-result-value { font-family: "Source Serif 4", serif; font-size: 40px; font-weight: 600; line-height: 1.15; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ba-result-text { font-size: 14px; color: var(--text-muted); margin: 8px 0 0; }

/* ---------- Makler-Seite ---------- */
.advantage-figure { font-family: "Source Serif 4", serif; font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--brass-text); margin-bottom: 12px; }
@media (min-width: 1000px) { .measurements-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .measurements-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Handlungsaufforderungen (Startseite) ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.cta-text { color: var(--text-muted); font-size: 15px; }
.cta-band { padding: 56px 0; }
.cta-band-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { font-size: 28px; line-height: 1.25; }
@media (min-width: 640px) { .cta-band h2 { font-size: 32px; } }
.cta-band p { color: var(--on-navy); opacity: 0.85; margin: 12px 0 0; max-width: 56ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band-actions { justify-content: flex-end; } }
.btn-on-navy { border-color: var(--on-navy); color: var(--on-navy); }
.btn-on-navy:hover { background: var(--on-navy); color: var(--navy); }

/* ---------- Rechenbeispiele (PAngV: deutlich als Beispiel gekennzeichnet) ---------- */
.example { max-width: 820px; background: var(--surface); border: 1px solid var(--line); padding: 28px; position: relative; }
.example::before { content: ""; position: absolute; top: -1px; left: -1px; width: 72px; height: 2px; background: var(--brass); }
.example-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brass-text); border: 1px solid var(--brass); padding: 4px 10px; margin-bottom: 20px;
}
.example-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.example-table th, .example-table td { padding: 11px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.example-table thead th { border-top: none; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.example-table tbody th { font-weight: 400; color: var(--text-muted); }
.example-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.example-table thead th:not(:first-child) { text-align: right; }
.example-table tr.sum th, .example-table tr.sum td { font-weight: 600; color: var(--text); }
.example-table tr.total th, .example-table tr.total td { font-weight: 600; color: var(--navy); border-top: 2px solid var(--navy); }
.example-table tr.good td:last-child { color: var(--navy); font-weight: 600; }
.example-result { margin: 20px 0 0; font-family: "Source Serif 4", serif; font-size: 18px; line-height: 1.5; color: var(--text); }
.example-note { max-width: 820px; font-size: 13px; color: var(--text-muted); margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line); }
.example-note strong { color: var(--text); }
@media (max-width: 559px) {
  .example { padding: 20px 16px; }
  .example-table { font-size: 14px; }
  .example-table th, .example-table td { padding: 10px 6px; }
  .example-table { table-layout: fixed; }
  .example-table th, .example-table td { overflow-wrap: break-word; hyphens: auto; }
  .example-table td { white-space: normal; }
}

/* ---------- Kontakt-Leiste (nur Handy/Tablet) ---------- */
.mobile-cta { display: none; }
@media (max-width: 859px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(27, 39, 51, 0.12);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
    font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 6px;
  }
  .mobile-cta-call { background: var(--brass); color: #FFFFFF; }
  .mobile-cta-wa { border: 1px solid var(--navy); color: var(--navy); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }   /* Footer nicht verdecken */
}

/* ---------- Ablauf-Schritte ---------- */
.step-list { display: flex; flex-direction: column; max-width: 820px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: "Source Serif 4", serif; font-size: 32px; font-weight: 600; color: var(--brass-text); line-height: 1; }
.step h2, .step .step-title { font-size: 24px; margin-bottom: 12px; }
.step > div { min-width: 0; }
@media (max-width: 559px) { .step { grid-template-columns: 44px 1fr; gap: 16px; } .step-num { font-size: 26px; } .step h2, .step .step-title { font-size: 21px; } }
.step p { color: var(--text-muted); margin: 0 0 12px; max-width: 62ch; }
.step p strong { color: var(--text); }
.step a, .service-list a { color: var(--navy); }

/* ---------- 404 ---------- */
.notfound h1 { font-size: 36px; line-height: 1.2; max-width: 22ch; margin-top: 8px; }
@media (min-width: 640px) { .notfound h1 { font-size: 44px; } }
.notfound .lead { color: var(--text-muted); max-width: 60ch; margin-top: 20px; font-size: 18px; }
.notfound-code { max-width: 240px; margin-bottom: 24px; }
.notfound-code .dim .line { transform: scaleX(1); }
.notfound-code .value { font-family: "Source Serif 4", serif; font-size: 72px; }
.notfound .service-list a { color: var(--text); text-decoration: none; }
.notfound .service-list a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: 36px; line-height: 1.2; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text-muted); }
.legal p, .legal li, .legal a { overflow-wrap: anywhere; }          /* lange URLs brechen auf dem Handy um */
.legal-long h2 { position: relative; font-size: 26px; line-height: 1.25; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-long h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--brass); }  /* Maßlinien-Akzent */
.legal h3 { font-size: 20px; line-height: 1.3; margin: 36px 0 8px; }
.legal h4, .legal h5 { font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif; font-weight: 600; color: var(--text); margin: 24px 0 6px; }
.legal h4 { font-size: 17px; }
.legal h5 { font-size: 15px; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 0; margin: 0 0 14px; list-style: none; }
.legal ul li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.legal ul li::before { content: "–"; position: absolute; left: 0; color: var(--brass-text); }
.legal a { color: var(--navy); }
.legal strong { color: var(--text); }
@media (min-width: 700px) { .services-grid.services-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Mitlaufende Kontakt-Buttons (nur Computer) ---------- */
.float-contact { display: none; }
@media (min-width: 860px) {
  .float-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: fixed; right: 24px; bottom: 24px; z-index: 40; }
  .float-contact a {
    display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
    color: #FFFFFF; text-decoration: none; box-shadow: 0 4px 14px rgba(27, 39, 51, 0.22); position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .float-contact a:hover, .float-contact a:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(27, 39, 51, 0.3); }
  .float-contact a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
  .fc-call { background: var(--brass); }
  .fc-wa { background: var(--navy); }
  .fc-mail { background: var(--surface); color: var(--navy) !important; border: 1px solid var(--navy); }
  .fc-label {
    position: absolute; right: 64px; white-space: nowrap; background: var(--surface); color: var(--text);
    border: 1px solid var(--line); box-shadow: var(--shadow-raised); padding: 6px 12px; font-size: 14px; font-weight: 500;
    opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .float-contact a:hover .fc-label, .float-contact a:focus-visible .fc-label { opacity: 1; transform: none; }
}
@media print { .float-contact, .mobile-cta { display: none !important; } }

/* ---------- Website-Suche ---------- */
.search-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px;
  font: 500 14px/1 "IBM Plex Sans", sans-serif; color: var(--text);
}
.search-toggle:hover { border-color: var(--navy); color: var(--navy); }
.search-toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (max-width: 559px) { .search-toggle { padding: 8px 10px; } .search-toggle-text { display: none; } }

html.search-open { overflow: hidden; }
.search-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 32, 47, 0.55);
  display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%; max-width: 640px; max-height: 78vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(16, 32, 47, 0.35); overflow: hidden;
}
.search-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--navy); }
.search-bar svg { flex: 0 0 auto; }
.search-bar input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: 400 17px/1.3 "IBM Plex Sans", sans-serif; color: var(--text); padding: 4px 0;
}
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar input::placeholder { color: var(--text-muted); opacity: 0.8; }
.search-close {
  flex: 0 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  font: 500 12px/1 "IBM Plex Sans", sans-serif; color: var(--text-muted); padding: 6px 8px; cursor: pointer;
}
.search-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.search-result {
  display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--text);
  border-left: 3px solid transparent;
}
.search-result.is-active, .search-result:focus-visible { background: var(--bg); border-left-color: var(--brass); outline: none; }
.sr-meta { display: block; font-size: 12px; color: var(--brass-text); font-weight: 500; margin-bottom: 2px; }
.sr-title { display: block; font-family: "Source Serif 4", serif; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--navy); }
.sr-text { display: block; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); margin-top: 3px; }
.search-result mark { background: rgba(184, 134, 63, 0.22); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-label { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.search-hint, .search-help { padding: 12px; }
.search-help { border-top: 1px solid var(--line); margin-top: 6px; }
.search-chips, .search-help-links { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chip, .search-help-links a {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
  font: 500 13px/1 "IBM Plex Sans", sans-serif; color: var(--navy); cursor: pointer; text-decoration: none;
}
.search-chip:hover, .search-help-links a:hover { border-color: var(--navy); }
.search-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-muted); }
.search-foot kbd { font: 500 11px/1 "IBM Plex Sans", sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 2px 5px; margin-right: 3px; background: var(--bg); }
@media (max-width: 599px) {
  .search-overlay { padding: 0; align-items: stretch; }
  .search-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; border: none; }
  .search-foot { display: none; }
}
/* Ziel nach Klick auf ein Suchergebnis kurz hervorheben */
.search-flash { scroll-margin-top: 96px; animation: search-flash 2.2s ease-out; }
@keyframes search-flash { 0%, 35% { background: rgba(184, 134, 63, 0.22); box-shadow: 0 0 0 8px rgba(184, 134, 63, 0.22); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .search-flash { animation: none; } }
@media print { .search-toggle, .search-overlay { display: none !important; } }

/* ---------- Größere Tippflächen auf Touch-Geräten (Optik bleibt gleich) ---------- */
@media (max-width: 859px) {
  .footer-grid nav { gap: 0; }
  .footer-grid nav a { padding: 7px 0; }
  .breadcrumb a { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .btn-link { display: inline-block; padding: 8px 0; }
  .contact-info { gap: 8px; }
  .contact-info a { padding: 4px 0; }
}

/* Sehr kleine Handys: Kopfzeile kompakter, damit Logo, Name, Suche und Menü in eine Zeile passen */
@media (max-width: 359px) {
  .nav-row { padding: 12px 14px; }
  .nav-row > div { gap: 8px !important; }
  .brand { gap: 8px; }
  .brand img { height: 32px; }
  .brand-text { font-size: 14px; }
  .brand-text span { font-size: 10.5px; }
  .menu-toggle { padding: 8px; }
}

/* Hinweis zur Echtheit von Kundenbewertungen (§ 5b Abs. 3 UWG) */
.review-note { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin: 8px 0 0; max-width: 70ch; }
.review-note a { color: inherit; }
.mini-testimonial .review-note { margin-top: 14px; }

/* Vertrauenszeile: auf dem Handy steht die Kennzahl in eigener Zeile, ohne Trennstrich davor */
@media (max-width: 559px) {
  .mini-trust .mt-sep:has(+ .mt-stat) { display: none; }
  .mini-trust .mt-stat { flex-basis: 100%; }
}

/* ---------- Immobilienangebote (Exposés der Maklerpartner) ---------- */
.expose-disclaimer { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 14px 18px; font-size: 14px; line-height: 1.55; color: var(--text-muted); margin-bottom: 32px; max-width: 900px; }
.expose-disclaimer strong { color: var(--text); }
.expose-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .expose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .expose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.expose-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.expose-card img, .expose-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.expose-noimg { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-muted); font: 600 15px/1 "Source Serif 4", serif; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
.expose-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.expose-ort { font-size: 13px; color: var(--brass-text); font-weight: 500; margin-bottom: 4px; }
.expose-body h3 { font-size: 19px; margin: 0 0 14px; }
.expose-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 14px; }
.expose-facts dt { font-size: 12px; color: var(--text-muted); }
.expose-facts > div { min-width: 0; }
.expose-facts dd { overflow-wrap: anywhere; margin: 0; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.expose-energy, .expose-makler { font-size: 13px; color: var(--text-muted); margin: 0 0 6px; }
.expose-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }
.expose-actions .btn { flex: 1 1 auto; justify-content: center; }

/* Hinweis-Block "Immobilienangebote" auf Startseite und Kauf-Leistungsseiten */
.angebote-teaser { padding: 0 0 64px; }
.angebote-teaser-box { display: grid; gap: 20px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 28px; }
@media (min-width: 900px) { .angebote-teaser-box { grid-template-columns: 1.5fr 1fr; padding: 32px 36px; } }
.angebote-teaser-box h2 { font-size: 24px; margin: 4px 0 8px; }
.angebote-teaser-box p { color: var(--text-muted); margin: 0; max-width: 60ch; }
.angebote-teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
@media (min-width: 900px) { .angebote-teaser-actions { justify-content: flex-end; } }

/* Immobilienangebote: letzter Punkt der Leistungsliste, mit Trennlinie abgesetzt */
.nav-drop-panel .nav-angebote { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--brass-text); }
#mobile-menu .nav-angebote { font-weight: 600; color: var(--brass-text); }

/* ---------- Lexikon ---------- */
.lex-az { position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; margin-bottom: 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.lex-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font-weight: 600; text-decoration: none; }
.lex-az a:hover { border-color: var(--navy); }
.lex-letter { scroll-margin-top: 150px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; padding: 24px 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .lex-letter { grid-template-columns: 80px minmax(0, 1fr); } }
.lex-letter > .lex-term { min-width: 0; }
.lex-letter > h2 { font-size: 40px; line-height: 1; color: var(--brass-text); margin: 0 0 12px; }
.lex-letter > .lex-term { grid-column: -2; }
.lex-term { scroll-margin-top: 150px; padding: 12px 0; max-width: 760px; }
.lex-term h3 { font-size: 19px; margin: 0 0 6px; }
.lex-term p { margin: 0; color: var(--text-muted); }
.lex-term p a { color: var(--navy); }
.lex-term:target { background: rgba(184, 134, 63, 0.12); box-shadow: 0 0 0 10px rgba(184, 134, 63, 0.12); }
@media (max-width: 859px) { .lex-az { position: static; gap: 4px; } .lex-az a { min-width: 34px; height: 34px; } .lex-letter, .lex-term { scroll-margin-top: 80px; } .lex-letter > h2 { font-size: 32px; } }
.lex-filter { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); margin-bottom: 8px; }
.lex-filter:focus-within { border-color: var(--brass); outline: 2px solid var(--brass); outline-offset: 1px; }
.lex-filter input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: 400 16px/1.3 "IBM Plex Sans", sans-serif; color: var(--text); }
.lex-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.lex-empty { color: var(--text-muted); margin: 16px 0; }
.lex-letter[hidden], .lex-term[hidden], .lex-az[hidden] { display: none; }

/* ---------- Marktupdate ---------- */
.mu-entry { padding: 40px 0; border-top: 1px solid var(--line); }
.mu-entry.mu-latest { border-top: none; padding-top: 0; }
.mu-article { max-width: 760px; }
.mu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.mu-meta .kicker { margin: 0; }
.mu-trend { font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: var(--bg); border: 1px solid var(--line); color: var(--navy); }
.mu-article h2 { font-size: 26px; margin: 0 0 14px; }
.mu-latest .mu-article h2 { font-size: 32px; }
.mu-article > p { color: var(--text-muted); margin: 0 0 12px; }
.mu-rates { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; max-width: 520px; }
.mu-rates-head { font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.mu-rates table { width: 100%; border-collapse: collapse; }
.mu-rates th, .mu-rates td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mu-rates thead th { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.mu-rates td { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.mu-rates-note { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 0; }
.mu-chart { margin: 24px 0 0; background: var(--surface); border: 1px solid var(--line); padding: 18px 16px 12px; }
.mu-chart-title { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.mu-chart svg { width: 100%; height: auto; display: block; font-family: "IBM Plex Sans", sans-serif; }
.mu-chart .g { stroke: var(--line); stroke-width: 1; }
.mu-chart .t { stroke: var(--text-muted); stroke-width: 1; }
.mu-chart .ya { fill: var(--text-muted); font-size: 12px; text-anchor: end; }
.mu-chart .xa { fill: var(--text-muted); font-size: 12px; text-anchor: middle; }
.mu-chart .ln { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mu-chart .pt { fill: var(--brass); stroke: var(--surface); stroke-width: 2; }
.mu-chart .lv { fill: var(--brass-text); font-size: 14px; font-weight: 700; }
.mu-chart-src { font-size: 12.5px; color: var(--text-muted); margin: 8px 0 0; }
.mu-chart-src a, .mu-sources a { color: inherit; }
.mu-sources { font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }
.mu-sources ul { margin: 4px 0 0; padding-left: 18px; }
.mu-sources li { margin: 2px 0; }
@media (max-width: 599px) {
  .mu-chart { padding: 14px 10px 10px; }
  .mu-chart .ya, .mu-chart .xa { font-size: 21px; }
  .mu-chart .lv { font-size: 23px; }
  .mu-chart .ln { stroke-width: 5; }
  .mu-chart .pt { r: 8; }
}
.mu-disclaimer-wrap { padding: 8px 0 56px; }
.mu-disclaimer { margin-bottom: 0; max-width: 760px; }
/* Makler-Kachel: volle Breite unter den Kunden-Kacheln */
.persona-card.persona-wide { grid-column: 1 / -1; background: var(--bg); }
@media (min-width: 700px) { .persona-card.persona-wide { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; } }

/* ---------- Ratgeber ---------- */
.answer-box { margin-top: 20px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 18px 20px; font-size: 17px; line-height: 1.6; color: var(--text); }
.answer-box strong { color: var(--navy); }
.article-meta { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }
.article-body { max-width: 760px; }
.article-body p { color: var(--text-muted); margin: 0 0 14px; }
.article-body h3 { font-size: 20px; margin: 24px 0 8px; }
.article-body h3:first-child { margin-top: 0; }
.article-body a, .answer-box a { color: var(--navy); }
.article-body .service-list { margin: 8px 0 18px; }
.mu-author { font-size: 14px; color: var(--text-muted); margin: -6px 0 14px; }

/* ---------- Team ---------- */
.team-profiles { display: grid; gap: 32px; }
.team-profile { display: grid; gap: 24px; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
@media (min-width: 800px) { .team-profile { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; padding: 32px; } }
.team-profile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.team-profile h3 { font-size: 26px; margin: 0; }
.team-role { color: var(--brass-text); font-weight: 600; margin: 4px 0 16px; }
.team-facts { display: grid; gap: 10px 24px; margin: 0 0 16px; }
@media (min-width: 600px) { .team-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-facts dt { font-size: 12px; color: var(--text-muted); }
.team-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.team-profile p { color: var(--text-muted); }
.team-quote { font-family: "Source Serif 4", serif; font-size: 18px; color: var(--text) !important; border-left: 3px solid var(--brass); padding-left: 14px; }
.team-facts > div, .team-profile > div { min-width: 0; } .team-facts dd { overflow-wrap: anywhere; }
.team-profile { scroll-margin-top: 90px; }
.team-profile img { object-position: center 20%; }
.angebote-teaser-box > * { min-width: 0; } .angebote-teaser-box h2 { overflow-wrap: break-word; hyphens: auto; }
