/* MHR Design Tokens und Basiskomponenten. Quelle: Startseite v3. Siehe docs/design-system.md */

:root {
  --canvas: #ECEDEA;
  --frame: #FFFFFF;
  --card: #FFFFFF;
  --ink: #14201A;
  --muted: #71796F;
  --green: #1F4A3A;
  --green-deep: #143528;
  --green-tint: #EAEFE8;
  --amber: #D99936;
  --line: rgba(20, 32, 26, .10);
  --line-2: rgba(20, 32, 26, .16);
  --sans: "General Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  /* v3-Benchmark: weiche, tiefe Schatten plus Hairline. Quelle: startseite-v3/styles.css */
  --sh-card: 0 24px 60px -30px rgba(20, 32, 26, .18);
  --sh-soft: 0 10px 30px -18px rgba(20, 32, 26, .16);
  --sh-chip: 0 6px 24px -10px rgba(20, 32, 26, .25);
  --sh-bar: 0 16px 50px -16px rgba(20, 32, 26, .22);
  /* v3-Benchmark: Radien. Rahmen 28, Foto 22, Karte 20, Thumb 14, Knoepfe und Chips rund */
  --r-frame: 28px;
  --r-photo: 22px;
  --r-card: 20px;
  --r-thumb: 14px;
  --r-btn: 999px;
  --r-chip: 999px;
  --pad: clamp(20px, 3.4vw, 56px);

  /* v2: Typografie-Token. Variante A aktiv (General Sans fuer alles, Zitate Serif kursiv).
     B und C schalten ueber <html data-typo="b|c"> um, siehe qa/typo/README.md */
  --font-head: var(--sans);
  --font-body: var(--sans);
  --font-quote: var(--serif);
  --head-weight: 500;
  --head-track: -0.025em;
}

/* Variante B: Ueberschriften aufrechte Textserife mit optischen Groessen, Lauftext Grotesk (Zeitung) */
html[data-typo="b"] {
  --font-head: "Newsreader", "Source Serif 4", Georgia, serif;
  --head-weight: 500;
  --head-track: -0.015em;
}
/* Variante C: Ueberschriften Grotesk, Lauftext Serife (Brief, Notar) */
html[data-typo="c"] {
  --font-body: "Source Serif 4", "Newsreader", Georgia, serif;
  --head-weight: 500;
}
html[data-typo="c"] body { font-size: 18px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 10px; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; hyphens: auto; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
h1, h2, h3, .h1, .h2 { font-family: var(--font-head); }
/* Silbentrennung nach Textart. Fließtext trennt nur lange Wörter, Überschriften nur sehr lange.
   Bedienelemente trennen nie: „Zu-rück“ in einem Button liest sich wie ein Fehler. */
body { hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
:is(h1, h2, h3, h4, .h1, .h2) { hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; overflow-wrap: break-word; }
:is(button, .pill, .btn, .back, .chip, .label, .explore, summary, label, legend, th, dt, select, .kpi__l, .nav, .sheet, .crumbs, .flow__time, .lvl) { hyphens: manual; overflow-wrap: normal; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

.page { background: var(--frame); border-radius: var(--r-frame); overflow: clip; }

/* Typo */
.h1 { font-size: clamp(38px, 4.5vw, 68px); line-height: 1.04; letter-spacing: var(--head-track); font-weight: var(--head-weight); }
.h2 { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.1; letter-spacing: var(--head-track); font-weight: var(--head-weight); }
/* v3-Benchmark: .acc ist das Akzentwort je Ueberschrift (Wording-Guide Abschnitt 7),
   Serifen-Kursiv in Gruen, auf dunklem Grund Gold. Genau ein Wort pro Ueberschrift.
   .em bleibt fuer Ortsnamen im Fliesstext und in Kachellabels (Gruen, gleiche Schrift). */
.acc { font-family: var(--font-quote); font-style: italic; font-weight: 400; color: var(--green); letter-spacing: 0; }
.em { color: var(--green); }
.sec--dark .em, .foot .em { color: #9DBCA8; }
.label { font-size: 12px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.label em { font-style: normal; color: var(--muted); font-weight: 500; margin-right: 10px; }
.sub { font-size: 17.5px; color: var(--muted); line-height: 1.6; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* Icons */
.ic { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; }

/* Buttons & Chips (v3-Benchmark: runde Pille mit Ring-Icon) */
.pill { display: inline-flex; align-items: center; gap: 12px; border-radius: var(--r-btn); padding: 10px 22px 10px 10px; background: var(--green); color: #fff; font-weight: 500; font-size: 16px; transition: background .2s, transform .2s; }
.pill:hover { background: var(--green-deep); transform: translateY(-1px); }
.pill .ring { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; flex: none; }
.pill--line { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); padding: 12px 24px; }
.pill--line:hover { background: var(--card); border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 9px; background: var(--card); color: var(--ink); border-radius: var(--r-chip); padding: 9px 16px; font-size: 14px; font-weight: 500; box-shadow: var(--sh-chip); }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: transparent; transition: background .2s, border-color .2s; }
.iconbtn:hover { background: var(--card); border-color: var(--ink); }
.star { width: 15px; height: 15px; fill: var(--amber); stroke: none; }

/* Avatar-Chip (Kinetic "Talk to an Agent") */
.agent { display: inline-flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px 7px 8px; font-size: 15px; font-weight: 500; transition: box-shadow .2s, transform .2s; }
.agent:hover { box-shadow: var(--sh-bar); transform: translateY(-1px); }
.agent__pic { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--green-tint); flex: none; }
.agent__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.agent small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; line-height: 1.2; }

/* ---------- Topbar + Header ---------- */
.topbar { display: flex; justify-content: space-between; gap: 24px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar a { color: var(--ink); font-weight: 500; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand div { font-size: 13px; line-height: 1.25; font-weight: 500; }
.brand div small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 9px 15px; border-radius: var(--r-btn); font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background .2s; }
.nav__links a:hover { background: var(--green-tint); }
.nav__right { display: flex; align-items: center; gap: 22px; }
/* v2: Telefonnummer als Textlink mit Zeiten darunter, einziger Knopf ist "Immobilie bewerten" */
.nav__phone { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-weight: 500; font-size: 16px; color: var(--ink); white-space: nowrap; }
.nav__phone small { font-weight: 400; font-size: 12px; color: var(--muted); }
.nav__phone:hover span:first-child { color: var(--green); }
.nav__phone .nav__tel-ic { display: none; }
/* Zweiter Weg neben dem Telefon: direkt ins Kontaktformular, fuer alle, die nicht anrufen. */
.nav__write { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border: 1.5px solid var(--line-2); border-radius: var(--r-btn); color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.nav__write svg { width: 19px; height: 19px; }
.nav__write:hover { background: var(--green-tint); border-color: var(--green); color: var(--green); }
.nav__cta { display: inline-flex; align-items: center; background: var(--green); color: #fff; border-radius: var(--r-btn); padding: 11px 18px; font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .2s; }
.nav__cta:hover { background: var(--green-deep); }
.menubtn { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-btn); font-weight: 500; font-size: 15px; transition: background .2s, border-color .2s; }
.menubtn:hover { background: var(--card); border-color: var(--ink); }
.nav__tel { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; border-radius: var(--r-btn); padding: 11px 20px; font-weight: 500; font-size: 15px; transition: background .2s; }
.nav__tel:hover { background: var(--green-deep); }
.nav__tel-ic { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6FD598; }

/* ---------- Hero (Monte) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 0; min-height: min(86svh, 860px); }
.hero__copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 64px) var(--pad) clamp(20px, 2.6vw, 40px); }
.hero__mid { text-align: center; margin: auto 0; padding: 40px 0; }
.hero__mid .label { display: block; margin-bottom: 22px; }
.hero__mid .h1 { max-width: 15ch; margin: 0 auto; }
.hero__mid .sub { max-width: 42ch; margin: 24px auto 0; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.explore { display: inline-flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.explore span small { display: block; color: var(--muted); font-weight: 400; }
.explore__thumb { position: relative; width: 52px; height: 52px; flex: none; }
.explore__thumb img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.explore__thumb i { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.explore__thumb i svg { width: 11px; height: 11px; }

/* Die Overlays im Bild teilen sich ein Raster, statt einzeln absolut zu stehen: oben Chips links und
   Google-Pille rechts, unten Ortsmarke links und Quelle oder Marktbericht rechts. So macht jedes
   Element dem anderen Platz, Texte brechen um statt sich zu überdecken. */
.hero__photo { position: relative; margin: 14px 14px 14px 0; border-radius: var(--r-photo); overflow: hidden; min-height: 520px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  grid-template-areas: "chips rating" ". ." "loc ende"; gap: 12px 16px; padding: 22px 22px 22px 26px; }
.hero__photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
/* Nur unten abdunkeln: dort steht die Ortsmarke. Das Motiv bleibt oben frei. */
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,15,0) 62%, rgba(10,20,15,.42) 86%, rgba(10,20,15,.66) 100%); }
.hero__chips, .hero__rating, .hero__loc, .hero__dl, .hero__quelle { position: relative; z-index: 2; min-width: 0; }
.hero__photo .chip svg, .hero__loc svg { flex: none; }
.hero__rating { grid-area: rating; align-self: start; }
.hero__dl { grid-area: ende; align-self: end; justify-self: end; }
.hero__loc { grid-area: loc; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* ---------- Statistikzeile + Credentials ---------- */
.statsband { border-bottom: 1px solid var(--line); padding: clamp(44px, 5.5vw, 76px) var(--pad); }
.stats { display: flex; justify-content: center; gap: clamp(28px, 5vw, 84px); flex-wrap: wrap; }
.stat { text-align: center; position: relative; padding: 0 clamp(14px, 2.5vw, 42px); }
.stat + .stat::before { content: ""; position: absolute; left: calc(clamp(14px, 2.5vw, 42px) * -1 - clamp(14px, 2.5vw, 42px)); top: 50%; transform: translateY(-50%); height: 52px; width: 1px; background: var(--line-2); left: calc(-1 * clamp(28px, 5vw, 84px) / 2); }
.stat b { display: block; font-size: clamp(34px, 3.4vw, 52px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 20ch; }
.creds { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 4.5vw, 56px); flex-wrap: wrap; }
.creds span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.creds img { height: 54px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.creds img:hover { filter: none; opacity: 1; }
.creds .cred-txt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- Sektionen ---------- */
.sec { padding: clamp(72px, 9vw, 120px) var(--pad); }
.sec__head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 4.5vw, 60px); }
.sec__head .label { display: block; margin-bottom: 16px; }
.sec__head .sub { max-width: 52ch; margin: 18px auto 0; }

/* Kopf-Variante: links Titel, rechts Text oder Button */
.sec__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: 1240px; margin: 0 auto clamp(32px, 4vw, 52px); }
.sec__row .label { display: block; margin-bottom: 16px; }
.sec__row .h2 { max-width: 17ch; }
.sec__row .sub { max-width: 38ch; padding-bottom: 6px; }
.sec__row > a { flex: none; margin-bottom: 6px; }
/* Traegt die rechte Spalte mehr als ein paar Zeilen, sinkt die Ueberschrift bei
   flex-end nach unten und ueber ihr steht eine leere Flaeche. Dann oben ausrichten. */
.sec__row--top { align-items: flex-start; }
.sec__row--top .sub { max-width: 54ch; padding-bottom: 0; }
.sec__row--top .sub + .sub { margin-top: 14px; }
.sec__row--top .h2 { max-width: 20ch; }

/* Dunkles Kapitel */
.sec--dark { background: var(--green-deep); color: #fff; }
.sec--dark .h2 { color: #fff; }
/* Meisterpass 05.10.2026: weiße Karten in dunklen Sektionen erben sonst color:#fff, Titel werden unsichtbar (Fund auf /immobilien/ #berlin) */
.sec--dark .term { color: var(--ink); }
.sec--dark .props__note { color: rgba(255,255,255,.45); }
.sec--dark .prop { border: 0; }
/* Schlussnote und ihre Links standen auf dunklem Grund in --muted und --green,
   also dunkel auf dunkel (Fund auf /immobilien/ #berlin). */
.sec--dark .sec__note { color: rgba(255,255,255,.68); }
:is(.sec--dark, .foot, .report, .tosell, .way--main) .tlink { color: #E0C486; text-decoration-color: rgba(224,196,134,.55); }

/* Dunkle Flaechen: Akzente, Labels, Subzeilen und Kontur-Pills hell abbilden.
   Gilt fuer dunkle Sektionen UND dunkle Karten-Panels gleichermassen. */
:is(.sec--dark, .foot, .report, .tosell, .pullq, .way--main, .result, .tcalc__out, .calcmini__res, .lpcalc__res, .flip__z, .stickybar) .acc { color: #E0C486; }
:is(.sec--dark, .foot, .report, .tosell, .pullq, .way--main, .result, .tcalc__out, .calcmini__res, .lpcalc__res, .flip__z, .stickybar) .label { color: #9DBCA8; }
:is(.sec--dark, .foot, .report, .tosell, .pullq, .way--main, .result, .tcalc__out, .calcmini__res, .lpcalc__res, .flip__z, .stickybar) .label em { color: rgba(255,255,255,.45); }
:is(.sec--dark, .foot, .report, .tosell, .pullq, .way--main, .result, .tcalc__out, .calcmini__res, .lpcalc__res, .flip__z, .stickybar) .sub { color: rgba(255,255,255,.65); }
:is(.sec--dark, .foot, .report, .tosell, .pullq, .way--main, .result, .tcalc__out, .calcmini__res, .lpcalc__res, .flip__z, .stickybar) .pill--line { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
:is(.sec--dark, .foot, .report, .tosell, .pullq, .way--main, .result, .tcalc__out, .calcmini__res, .lpcalc__res, .flip__z, .stickybar) .pill--line:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Bewertung (Formular-Bar) ---------- */
.calcbar { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; align-items: stretch; background: var(--card); border-radius: var(--r-btn); box-shadow: var(--sh-bar); padding: 8px; max-width: 980px; margin: 0 auto; }
.cell { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 22px; }
.cell + .cell::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.cell label { font-size: 12px; color: var(--muted); font-weight: 500; }
.cell select, .cell input { border: 0; background: none; font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); padding: 0; outline: none; appearance: none; -webkit-appearance: none; width: 100%; cursor: pointer; }
.cell input { cursor: text; }
.cell--sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.calcbar .pill { align-self: center; margin-left: 6px; }

.calcnote { text-align: center; margin: 18px auto 0; font-size: 13.5px; color: var(--muted); }

/* Ergebniskarte */
.result { max-width: 980px; margin: 26px auto 0; background: var(--green); color: #fff; border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; box-shadow: var(--sh-card); }
.result__left .label { color: rgba(255,255,255,.65); display: block; margin-bottom: 14px; }
.result__range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .22em; font-size: clamp(34px, 3.6vw, 54px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.result__range span { white-space: nowrap; }
.result__range small { font-size: .42em; font-weight: 400; color: rgba(255,255,255,.65); }
.result__bar { height: 8px; background: rgba(255,255,255,.16); border-radius: 999px; margin-top: 26px; position: relative; overflow: hidden; }
.result__bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--amber); transition: left .5s ease, width .5s ease; }
.result__src { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; max-width: 52ch; }
.result__facts { display: grid; gap: 0; }
.result__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 15px; color: rgba(255,255,255,.75); }
.result__facts div:first-child { padding-top: 0; }
.result__facts b { font-size: 20px; font-weight: 500; color: #fff; letter-spacing: -0.01em; white-space: nowrap; }
.result__cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.result__cta .pill { background: #fff; color: var(--green); }
.result__cta .pill .ring { background: var(--green); color: #fff; }
.result__cta .pill:hover { background: var(--green-tint); }
.result__cta .pill--line { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.result__cta .pill--line:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Objektkarten ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1240px; margin: 0 auto; }
.prop { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-soft); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.prop:hover { box-shadow: var(--sh-card); }
.prop:hover { transform: translateY(-2px); }
.prop__photo { position: relative; aspect-ratio: 4 / 2.9; overflow: hidden; }
.prop__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.prop:hover .prop__photo img { transform: scale(1.04); }
.prop__status { position: absolute; top: 14px; left: 14px; }
.prop__status .chip { font-size: 13px; padding: 7px 14px; }
.prop__status .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.prop__status--free .chip i { background: var(--amber); }
.prop__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prop__body h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.prop__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.prop__meta span { font-size: 13px; color: var(--muted); background: var(--green-tint); border-radius: var(--r-chip); padding: 5px 12px; font-weight: 500; }
.prop__price { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.prop__price small { font-size: 13px; color: var(--muted); display: block; }
.prop__price b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.prop__price .was { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 15px; margin-right: 8px; }
.props__note { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- Harald (Monte-Split) ---------- */
.harald { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1240px; margin: 0 auto; }
/* Originalfoto vor dem Büro: füllt den Rahmen, kein Freisteller. Verhältnis nah am Motiv (ca. 3:5), damit die Sektion nicht höher wird als der Text. */
.harald__photo { position: relative; border-radius: var(--r-photo); overflow: hidden; background: var(--green-tint); aspect-ratio: 3 / 4.2; max-height: min(640px, 78vh); box-shadow: var(--sh-card); }
.harald__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
/* Leichter Verlauf unten, damit die hellen Pillen auf dem Steinboden lesbar bleiben */
.harald__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(18, 28, 22, .42)); pointer-events: none; z-index: 1; }
/* Beide Pillen unten links: über dem Saum, nie über Stirn oder Augen */
.harald__badge { position: absolute; z-index: 2; left: 16px; bottom: 62px; max-width: calc(100% - 32px); }
.harald__since { position: absolute; z-index: 2; left: 16px; bottom: 16px; }
.harald__copy .label { display: block; margin-bottom: 18px; }
.harald__copy .h2 { max-width: 17ch; }
.harald__copy p.txt { margin-top: 24px; color: var(--muted); max-width: 54ch; font-weight: 400; line-height: 1.65; }
.harald__sig { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--green); }
.harald__row { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Konditionen ---------- */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 26px; box-shadow: var(--sh-soft); display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease; }
.term:hover { transform: translateY(-4px); }
.term .iconbtn { pointer-events: none; background: var(--green-tint); border: 0; color: var(--green); }
.term b { font-size: clamp(26px, 2.2vw, 34px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.term span { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Orte ---------- */
.orte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
.ort { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--sh-card); display: block; }
.ort img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ort:hover img { transform: scale(1.05); }
/* Der Verlauf traegt den Ortsnamen auch auf hellen Motiven (Himmel, Sandstein). */
.ort::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,15,0) 30%, rgba(10,20,15,.3) 56%, rgba(10,20,15,.74) 84%, rgba(10,20,15,.84) 100%); }
.ort__name { position: absolute; z-index: 2; left: 20px; bottom: 18px; color: #fff; }
.ort__name b { display: block; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.ort__name span { font-size: 13.5px; color: rgba(255,255,255,.8); }
.ort__chip { position: absolute; z-index: 2; top: 14px; right: 14px; }
.ort__chip .chip { font-size: 13px; padding: 7px 13px; }
.ort__go { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.ort:hover .ort__go { opacity: 1; transform: none; }

/* ---------- Stimmen ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 26px; box-shadow: var(--sh-soft); display: flex; flex-direction: column; gap: 16px; }
.quote__stars { display: flex; gap: 3px; }
.quote p { font-size: 16px; color: var(--ink); font-weight: 400; line-height: 1.6; flex: 1; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__who i { width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-style: normal; font-weight: 500; font-size: 14px; flex: none; }
.quote__who span { font-size: 14px; font-weight: 500; }
.quote__who span small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.quotes__src { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.sec__note { text-align: center; margin: 26px auto 0; max-width: 680px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
/* Zentriert liest sich nur eine kurze Nachbemerkung. Laengere Absaetze (ab etwa
   vier Zeilen) bekommen flatternde Raender und wirken wie ein Fremdkoerper. */
.sec__note--block { text-align: left; max-width: 78ch; margin-left: max(0px, calc((100% - 1240px) / 2)); margin-right: 0; }
.tlink { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.tlink:hover { text-decoration-color: currentColor; }

/* ---------- Ratgeber ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; box-shadow: var(--sh-soft); display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease; }
.post:hover { transform: translateY(-4px); }
.post__tag { align-self: flex-start; font-size: 12.5px; font-weight: 500; color: var(--green); background: var(--green-tint); border-radius: var(--r-chip); padding: 5px 13px; }
.post h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.post p { font-size: 15px; color: var(--muted); font-weight: 400; flex: 1; }
.post__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.post__meta svg { width: 16px; height: 16px; }
.sec__more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-soft); margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-weight: 500; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-tint); position: relative; transition: transform .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; background: var(--green); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 26px 24px; color: var(--muted); font-weight: 400; max-width: 62ch; }

/* ---------- Abschluss-CTA ---------- */
/* Schlussabschnitt im Rhythmus der uebrigen Abschnitte: das Label stand vorher
   7 px unter der Farbkante des vorigen Abschnitts. */
.cta { text-align: center; padding: clamp(72px, 9vw, 120px) var(--pad) clamp(72px, 9vw, 130px); }
/* Steht die Abschluss-Einladung direkt hinter einer Sektion, addieren sich zwei
   volle Innenabstaende zu einem auffaelligen Loch. Einmal reicht. */
.sec:has(+ .cta) { padding-bottom: clamp(28px, 3.5vw, 48px); }
.cta .h2 { max-width: 18ch; margin: 0 auto; }
.cta .sub { max-width: 44ch; margin: 18px auto 0; }
.cta__agent { display: flex; justify-content: center; margin: 30px 0 22px; }
.cta__tel { display: inline-flex; align-items: center; gap: 14px; background: var(--green); color: #fff; border-radius: 999px; padding: 14px 34px 14px 14px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.01em; transition: background .2s, transform .2s; }
.cta__tel:hover { background: var(--green-deep); transform: translateY(-1px); }
.cta__tel .ring { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; }
.cta__tel .ring svg { width: 22px; height: 22px; }
.cta__alt { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { background: var(--green-deep); color: #fff; border-radius: var(--r-frame); margin: 10px 0 0; padding: clamp(48px, 6vw, 80px) var(--pad) 28px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; max-width: 1240px; margin: 0 auto; }
.foot__brand img { height: 44px; filter: brightness(0) invert(1); opacity: .95; }
.foot__brand p { margin-top: 16px; font-size: 15px; color: rgba(255,255,255,.65); font-weight: 400; max-width: 26ch; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.5); }
.foot a { display: block; padding: 5px 0; font-size: 15px; color: rgba(255,255,255,.82); font-weight: 400; }
.foot a:hover { color: #fff; }
.foot__contact { margin-top: 20px; font-size: 14.5px; color: rgba(255,255,255,.82); font-style: normal; line-height: 1.7; font-weight: 400; }
.foot__contact a { display: inline; padding: 0; color: #fff; font-weight: 500; }
.foot__base { max-width: 1240px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; }

/* ---------- Responsive ---------- */
/* Die Kopfzeile braucht mehr Platz als das Raster: fuenf Menuepunkte, Telefon und
   CTA passen erst ab 1240 px nebeneinander, darunter uebernimmt das Menue. */
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .menubtn { display: inline-flex; }
}
@media (max-width: 1140px) {
  .sec__row { flex-direction: column; align-items: flex-start; }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .props, .orte, .quotes, .posts { grid-template-columns: repeat(2, 1fr); }
  .calcbar { grid-template-columns: 1fr 1fr; border-radius: var(--r-card); gap: 2px; }
  .cell + .cell::before { display: none; }
  .cell { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .calcbar .pill { grid-column: 1 / -1; justify-content: center; margin: 8px 4px 2px; }
  .result { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { padding: 6px; }
  .topbar { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { margin: 0 14px 14px; min-height: 420px; order: 2; padding: 16px 16px 18px; }
  .hero__copy { padding-top: 16px; }
  .hero__mid { padding: 24px 0 32px; }
  .hero__foot { justify-content: center; margin-bottom: 20px; }
  .harald { grid-template-columns: 1fr; max-width: 520px; }
  .harald__photo { max-height: min(520px, 70vh); aspect-ratio: 3 / 3.8; }
  .harald__badge { left: 14px; bottom: 58px; }
  .harald__since { left: 14px; bottom: 14px; }
  .nav__right { gap: 10px; }
  .nav__cta { display: none; }
  .nav__phone { width: 42px; height: 42px; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); border-radius: var(--r-btn); }
  .nav__phone span, .nav__phone small { display: none; }
  .nav__phone .nav__tel-ic { display: block; }
}
@media (max-width: 620px) {
  /* Für zwei Spalten ist das Bild zu schmal: alles links untereinander, die Google-Pille über den
     Chips, der Marktbericht über der Ortsmarke. Die Ortsmarke bleibt unten, wo der Verlauf sie
     trägt (C11). Abstände als Margin, damit ausgeblendete Elemente keine Lücke lassen. */
  .hero__photo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto auto;
    grid-template-areas: "rating" "chips" "." "dl" "loc" "quelle"; row-gap: 0; }
  .hero__rating { justify-self: start; margin-bottom: 8px; }
  .hero__photo .chip { font-size: 13px; padding: 7px 13px; gap: 8px; }
  .hero__dl { grid-area: dl; justify-self: start; margin: 12px 0 10px; }
  .props, .orte, .quotes, .posts, .terms { grid-template-columns: 1fr; }
  .stats { gap: 28px 36px; }
  .stat + .stat::before { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .js .rv, .js .rv.in { opacity: 1; transform: none; transition: none; } }
