/* NAVIMO — ein zentrales Stylesheet (Blueprint 17.3: eine Komponente, keine Kopien).
   Mobile First. CLS-sicher. Zugänglich. Bewusst zurückhaltend: Vertrauen vor Effekt. */

/* --- Systemschriftstack (kein externer Font-Roundtrip, keine 404) --- */

/* [hidden] mit !important, sonst gewinnen spezifischere .card/.lex-term/
   .lex-group-Regeln (display:flex/block) gegen die native Browser-Regel -
   Live-Suche/Filter-Pills auf /ratgeber, /praxisfaelle, /glossar, /regionen
   setzten das Attribut sichtbar korrekt, aber die Karte blieb trotzdem
   angezeigt (Bug gefunden Session 16.8.2026: Klick auf Filter-Pills schien
   wirkungslos).*/
[hidden] { display: none !important; }

/* --- Design-Tokens: ORIGINAL NAVIMO-CI (Emerald + Stone) --- */
:root {
  /* Original-NAVIMO-Variablen (1:1 aus der bestehenden Plattform) */
  --stone: #1C1917; --stone2: #26211D;
  --em: #059669; --em2: #047857; --em-light: #D1FAE5; --em-mid: #6EE7B7;
  --gold: #B45309;
  --border: #E7E4DF; --border2: #C9C4BC;
  --text: #1C1917; --light: #706A64; --tag: #F1F5F9;
  --card: #fff;

  /* Generator-Aliasse zeigen auf dieselben Werte -> eine Farbwelt, keine zweite */
  /* War #F9F7F4 (warmes Creme/"Eierweiss") - auf ausdrücklichen Wunsch auf
     reines Weiss umgestellt ("nirgendwo mehr das Gelbweiss, entweder ganz
     weiss oder grau"), Session 17.8.2026 - deckt sich jetzt exakt mit
     gebimos body-Hintergrund (verifiziert: rgb(255,255,255)). */
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #1C1917;
  --muted: #6B6560;
  --line: #E7E4DF;
  /* Premium-Oliv-Akzent (Session 6.8.2026, freigegebene Design-Review):
     ersetzt das helle Signalgrün als Content-Akzent (CTA-Bänder, KPI-Werte,
     Ampel, Links) - das Logo im Header bleibt bewusst separat in Neon-Grün
     (.logo-mark svg, hartcodiert #22C55E, hängt NICHT an --accent). */
  --accent: #3F5F4A;
  --accent-strong: #2F4A38;
  --accent-soft: #E7ECE5;
  --on-accent: #ffffff;
  --star: #B45309;
  --cta-blue: #3F5F4A;
  --cta-black: #000000;
  /* Container-Hintergrund für abwechselnde Weiss/Grau-Bänder (gebimo-Vorbild:
     bg-surface / bg-surface-muted) - Session 5.8.2026. */
  --surface-muted: #F1F1F1;

  --maxw: 68rem;
  --gap: clamp(1rem, 3vw, 1.75rem);
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Bis Session 17.8.2026 eine Serife (Playfair Display) - auf ausdrück-
     lichen Wunsch ("übernimm das Design von gebimo") auf eine fette
     Grotesk umgestellt, analog zu gebimos Poppins-Überschriften. Die
     Grün/Schwarz/Weiss-Farbwelt selbst bleibt unverändert (bewusste
     frühere Entscheidung gegen gebimos Blau, siehe CTA-Band-Kommentare),
     das hier betrifft nur die Typografie, nicht die Farbe. */
  --font-display: "Poppins", "Manrope", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

/* Alle rem-Grössen (Überschriften, Kacheln, Fliesstext) skalieren von hier
   aus - eine Stufe grösser site-weit (explizite Vorgabe Session 6.8.2026),
   ausser dem schwarzen Abschluss-CTA-Band (siehe .cta-band__headline,
   dort bewusst in px statt rem gegen diese Skalierung immunisiert). */
html { -webkit-text-size-adjust: 100%; font-size: 106.25%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* --- Accessibility: Skip-Link + sichtbarer Fokus --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Visuell versteckt, aber für Screenreader vorhanden - z. B. um die
   Überschriften-Hierarchie zu wahren, ohne eine sichtbare Zwischen-
   überschrift einzufügen, wo keine gebraucht wird. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a { color: var(--accent-strong); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Typo-Skala --- */
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.25; margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.lead, .hero__lead { font-size: 1.15rem; color: var(--muted); }

/* --- Header / Footer --- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: clamp(.75rem, 2.5vw, 1.5rem); margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.site-nav a:hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 2.5rem; background: var(--surface); }
.footer-kantone { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr; gap: .35rem; }
.footer-kantone a { text-decoration: none; }
.footer-legal { color: var(--muted); font-size: .95rem; }

/* --- Breadcrumb --- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1.25rem 0 0; margin: 0; font-size: .9rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--line); }
.breadcrumb a { text-decoration: none; }

/* --- Buttons --- */
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: .8rem 1.4rem; border-radius: var(--radius); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); }

/* --- Hero --- */
.hero { padding: 3rem 0 1rem; }

/* --- Makler-Karte (die EINE Kartenkomponente) ---
   Kanton-Seiten (/immobilienmakler/{kanton}) und die Startseite (/) teilen
   sich dieselbe Liste (.cards-list, siehe unten) statt zweier Grid-Klassen
   mit fast identischem, aber leicht abweichendem CSS. */

.makler-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.makler-card__link { display: flex; gap: 1rem; padding: 1.1rem; text-decoration: none; color: inherit; align-items: flex-start; }
.makler-card__logo { flex: 0 0 auto; width: 80px; height: 40px; object-fit: contain; }
.makler-card__name { margin: 0 0 .3rem; font-size: 1.1rem; }
.makler-card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 .35rem; font-size: .92rem; color: var(--muted); }
.makler-card__spez { margin: 0 0 .25rem; font-size: .92rem; }
.makler-card__prov { margin: 0; font-weight: 600; }
.makler-card:hover { border-color: var(--accent); }

/* --- Bewertung --- */
.rating { color: var(--star); font-weight: 700; white-space: nowrap; }
.rating__count { color: var(--muted); font-weight: 400; }
.rating--lg { font-size: 1.25rem; }

/* --- Listen (Hubs) --- */
.kanton-liste, .ratgeber-liste, .rechner-liste { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr; gap: .75rem; }
.ratgeber-liste a, .rechner-liste a { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--surface); }
.ratgeber-liste a:hover, .rechner-liste a:hover { border-color: var(--accent); }
.ratgeber-liste p, .rechner-liste p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }

/* --- Ratgeber / Artikel --- */
.ratgeber { max-width: 44rem; }
.ratgeber__byline { color: var(--muted); font-size: .9rem; }
.faq__item { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }

/* --- Maklerprofil --- */
.makler-profil__head {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  padding: 1.4rem; margin-top: var(--space-5);
  background: var(--card, #fff); border: 1px solid var(--border, var(--line));
  border-radius: var(--radius-lg, 14px); box-shadow: var(--shadow-sm);
}
.makler-profil__logo { width: 100px; height: 50px; object-fit: contain; }
/* Kennzahlen-Chips (seit/Provision) - dieselbe visuelle Sprache wie die
   Maklerkarten im Vergleich (makler_card.py), damit ein Profil sich nicht
   ärmer anfühlt als der eigene Eintrag im Vergleich. */
.makler-profil__stats { display: flex; gap: 1.5rem; margin-top: .5rem; }
.makler-profil__stat { display: flex; flex-direction: column-reverse; font-size: .8rem; color: var(--muted); }
.makler-profil__stat strong { font-size: 1.05rem; color: var(--text); font-weight: 700; }
.makler-profil__tag-label { font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .5rem; }
.makler-profil__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.makler-profil__tag { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.makler-profil__tag--spez { background: #F3E8FF; color: #6B21A8; border: 1px solid #DDD6FE; }
.makler-profil__tag--zusatz { background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; }
.standort-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.standort { display: flex; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
.standort__foto { width: 100%; max-width: 320px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }

/* --- Rechner --- */
.rechner__tool { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); margin: 1rem 0; }
.rechner__hinweis { color: var(--muted); margin: 0; }

/* --- Bilder generell: CLS-Schutz --- */
img { max-width: 100%; height: auto; }

/* --- Breakpoints (Mobile First -> aufwärts erweitern) --- */
@media (min-width: 40rem) {
  .footer-kantone { grid-template-columns: repeat(2, 1fr); }
  .kanton-liste { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 60rem) {
  .footer-kantone { grid-template-columns: repeat(4, 1fr); }
}

/* --- Reduced Motion respektieren --- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Masterplan-Komponenten (AI-Antwort, FAQ, Related, CTA, Workflow, Rechner,
   Partner-Hinweis, Formular). Zurückhaltend, tokenbasiert, mobile-first.
   ========================================================================= */

/* --- AI-Overview-Kurzantwort: zitierfähiger Direkteinstieg --- */
.ai-answer {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin: 1rem 0 1.4rem;
}
.ai-answer__label {
  margin: 0 0 .25rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-strong);
}
.ai-answer__text { margin: 0; }
/* Kanton-Marktbericht-Pillar: derselbe ai-answer-Text dient als ruhiger
   Lead-Satz statt als hervorgehobener Callout-Kasten - kein Label, kein
   Rahmen/Hintergrund, nur Fliesstext direkt unter dem H1. */
.ai-answer--lead {
  background: none; border-left: none; border-radius: 0;
  padding: 0; margin: .5rem 0 1.5rem; max-width: 42rem;
}
.ai-answer--lead .ai-answer__text { color: var(--muted); font-size: 1.05rem; }

/* Kleine, abgerundete Badges statt der Meta-Zeile mit Lesezeit - nur auf
   dem Kanton-Marktbericht-Pillar (KISS-Vorgabe, Session 10.8.2026). */
.markt-pillar__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .6rem; }
.pill {
  display: inline-block; padding: .28rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--surface-muted);
  color: var(--muted); border: 1px solid var(--line);
}
.pill--accent { background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent-strong); border-color: transparent; }
/* Grüner Punkt vor "Aktualisiert"-Pills (gebimo-Vorbild, Session 16.8.2026) -
   signalisiert auf einen Blick "aktuell gepflegt" statt neutralem Text. */
.pill--live { display: inline-flex; align-items: center; gap: .35rem; }
.pill--live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--em); flex: none;
}
.hub-card__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin: .1rem 0 .5rem; }

.kanton-region__gemeinden { font-size: .82rem; color: var(--muted);
  margin-top: .4rem; }

/* --- FAQ --- */
.faq { margin: 2rem 0; }
.faq__item { padding: .9rem 0; border-top: 1px solid var(--line); }
/* Aufklappbar per <details>/<summary> (gebimo-Vorbild) statt Immer-offen-
   Liste - eigenes +/--Symbol statt des Browser-Standarddreiecks, das je
   nach Browser uneinheitlich aussieht. */
.faq__q {
  margin: 0; font-size: 1.05rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex: none; font-size: 1.3rem; font-weight: 400;
  color: var(--muted); line-height: 1;
}
details[open] > .faq__q::after { content: "\2212"; }
.faq__a { margin: .6rem 0 0; color: var(--muted); }

/* --- Related-/Weiterführend-Block: automatische interne Verlinkung ---
   Grauer Vollbreite-Hintergrund (wie .related--compact/gebimo-Vorbild)
   statt direkt auf dem weissen Seitenhintergrund - die Karten "gingen
   sonst unter" (explizites Nutzer-Feedback, Session 17.8.2026: der dünne
   Kartenrahmen allein reicht nicht als Abgrenzung auf reinem Weiss).
   Bleed-Technik wie bei den alternierenden Artikel-Sektionen: volle
   Breite, Innenabstand hält den Inhalt auf der gewohnten Spaltenbreite. */
.related:not(.related--compact) {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  background: var(--surface-muted); margin-top: 0; margin-bottom: 0;
  padding: 2.5rem max(1.75rem, calc((100vw - var(--maxw)) / 2 + 1.75rem));
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .related:not(.related--compact) { grid-template-columns: repeat(2, 1fr); }
}
.related__group h2 { font-size: .95rem; margin: 0 0 .5rem; color: var(--muted); }
.related__group ul { list-style: none; margin: 0; padding: 0; }
.related__group li { margin: .3rem 0; }
.related__group a { text-decoration: none; }
.related__group a:hover { text-decoration: underline; }
/* "Das könnte Sie auch interessieren" (gebimo-Vorbild, live nachgemessen:
   weisse Karte, 1px Rahmen #CDCDD0, radius 16px, padding 24px, grauer
   Container-Hintergrund) statt der vorherigen grossen Mehrspalten-
   Kartenliste, die wie eine SEO-Linkwand wirkte (KISS-Feedback Session
   17.8.2026). Volle Breite/randlos wie die Inhaltsabschnitte darüber. */
.related--compact {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  background: var(--surface-muted); padding: 2.5rem 1.75rem;
}
.related--compact h2 {
  max-width: var(--maxw); margin: 0 auto 1.25rem; padding-inline: 0;
}
.related-cards {
  max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .related-cards { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: block; background: var(--surface); border: 1px solid var(--border2);
  border-radius: 16px; padding: 1.5rem; text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.related-card:hover { border-color: var(--accent); }
.related-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.related-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.related-card__cta { display: block; margin-top: .75rem; color: var(--accent-strong); font-weight: 600; font-size: .9rem; }
.related__list--more {
  list-style: none; margin: 1.5rem auto 0; padding: 1rem 0 0; max-width: var(--maxw);
  border-top: 1px solid var(--border2); display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
}
.related__list--more a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.related__list--more a:hover { text-decoration: underline; color: var(--accent-strong); }

/* --- CTA-Band: keine Seite ohne Conversion --- */
.cta-band {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  background: var(--cta-blue);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
}
/* Full-Bleed: Hintergrund reicht bis zum Viewport-Rand, der Inhalt bleibt
   an der Content-Spalte ausgerichtet (via --maxw/--gap berechnet) - auf
   ausdrücklichen Wunsch (Session 5.8.2026, gebimo-Vorbild "riesenbanner"). */
.cta-band--next {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  margin-top: 0; margin-bottom: 0;
  border-radius: 0;
  padding-top: 4rem; padding-bottom: 4rem;
  padding-left: max(1.25rem, calc((100vw - var(--maxw)) / 2 + var(--gap)));
  padding-right: max(1.25rem, calc((100vw - var(--maxw)) / 2 + var(--gap)));
  /* Text/Button mittig statt linksbündig (gebimo-Vorbild, explizite
     Vorgabe) - überschreibt die weiter unten stehende
     .cta-band--next{flex-direction:column;align-items:flex-start}-Regel
     per höherer Deklarationsreihenfolge weiter unten (siehe dortiger
     Kommentar zur Kaskade). */
  align-items: center; text-align: center;
}
.cta-band--black { background: var(--cta-black); }
.cta-band--black .cta-primary { color: var(--cta-black); }
/* Persönliche Anrede (z. B. "Was ist Ihre Immobilie in Rheintal wert?") auf
   Region-/Gemeinde-/Kanton-Markt-Seiten - macht das Band einladender, ohne
   Farbe oder Aufbau zu ändern. */
/* Grosse, sofort erkennbare Frage statt Fliesstext - angelehnt an das
   gebimo-Vorbild (grosse weisse Headline + Pill-Button auf Markenfarbe). */
.cta-band__headline {
  margin: 0 0 .75rem; color: var(--on-accent);
  /* px statt rem: bleibt von der site-weiten +1-Stufen-Schriftvergrösserung
     (html{font-size:106.25%}) unberührt, explizite Ausnahme. */
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; font-weight: 800;
  max-width: 18ch;
}
/* .topic h2 (Klasse+Element) ist spezifischer als .cta-band__headline
   (nur Klasse) und würde das grüne Band (das innerhalb <article
   class="topic"> sitzt, anders als das schwarze Abschluss-Band) sonst auf
   Fliesstext-Überschriftgrösse zurückstutzen - explizite Re-Assertion. */
.topic .cta-band__headline {
  font-size: clamp(38.4px, 5.5vw, 64px);
}
/* Zwei Klassen (.cta-band .cta-primary) statt nur .cta-primary: eine spätere,
   allgemeinere Button-Regel (ORIGINAL-NAVIMO-Sektion weiter unten) hat sonst
   dieselbe Spezifität und gewinnt per Quellreihenfolge - Ergebnis wäre ein
   dunkler Button auf dunklem Band (kaum erkennbar). Höhere Spezifität hier
   erzwingt zuverlässig den hellen Pill-Button, den das Band braucht. */
.cta-band .cta-primary {
  display: inline-block;
  background: var(--on-accent); color: var(--cta-blue);
  font-weight: 700; text-decoration: none;
  padding: .9rem 1.75rem; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1.02rem;
}
.cta-band .cta-primary:hover { background: #f2efe8; }
.cta-secondary {
  display: inline-block;
  color: var(--on-accent); text-decoration: underline;
  padding: .7rem .5rem; font-weight: 550;
}
/* Intelligente Folgeempfehlung (Eigentümerreise): Augenbraue + Begründung.
   Mittig statt linksbündig (gebimo-Vorbild, explizite Vorgabe Session
   6.8.2026) - align-items:center statt flex-start. */
.cta-band--next {
  flex-direction: column; align-items: center; gap: .6rem;
  justify-content: center;
}
.cta-band__eyebrow {
  margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--on-accent); opacity: .85;
}
.cta-band--next .cta-band__why {
  margin: 0 0 .75rem; color: var(--on-accent); opacity: .92;
  max-width: 42ch; font-size: 1.05rem; font-weight: 400;
}
.cta-band--next .cta-band__headline { max-width: 32ch; }
.cta-band--next .cta-primary {
  padding: 1.15rem 2.25rem; font-size: 1.12rem;
}
/* Ein späterer, allgemeinerer .cta-secondary-Stil (Original-Buttons weiter unten
   im Stylesheet) überschreibt sonst per Quellreihenfolge diese Farbe mit
   grünem Text auf grünem Band – praktisch unlesbar. Höhere Spezifität erzwingt
   hier zuverlässig den hellen, für das Band gedachten Stil. Als eigener
   Outline-Pill-Button (statt reiner Textlink) ist die kantonsspezifische
   Makler-Empfehlung genauso klar als zweite Handlung erkennbar wie die
   primäre - nicht nur ein Nebensatz.  */
.cta-band .cta-secondary {
  color: var(--on-accent); background: transparent;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px;
  padding: .8rem 1.5rem; font-weight: 650; text-decoration: none;
}
.cta-band .cta-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.85); }

/* --- Workflow-Kette: Bewertung -> Kosten -> Nettoerlös -> Makler -> Kontakt --- */
.workflow { margin: 1.25rem 0 1.75rem; overflow-x: auto; }
.workflow ol {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 0; padding: 0; counter-reset: wf;
}
.wf__step {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; color: var(--muted);
  padding: .35rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface);
}
.wf__step a { text-decoration: none; color: inherit; }
.wf__step--active {
  color: var(--on-accent); background: var(--accent-strong);
  border-color: var(--accent-strong); font-weight: 600;
}

/* --- Rechner-Widget --- */
/* Formular UND Ergebnis stehen untereinander, nicht nebeneinander -
   die Ergebnis-Box ist wie bei gebimo.ch/rechner/verkaufskosten eine
   volle Breite einnehmende, hellgraue Karte UNTER dem Eingabefeld-Grid
   (Session 12.8.2026, zweite Korrektur: erst probeweise auf eine schmale
   Einzelspalte reduziert, jetzt nach dem echten gebimo-Vorbild auf volle
   Breite + zweispaltiges Feld-Grid). */
.calc {
  display: flex; flex-direction: column; gap: 1.75rem; margin: 1.5rem 0;
}
.calc__form { display: grid; gap: 1.1rem 1.5rem; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 40rem) {
  /* Feste 2 Spalten liessen 3-Feld-Rechner (z.B. Hypothek: Kaufpreis,
     Eigenkapital, Zins) unschön als 2+1 umbrechen (Nutzer-Feedback Session
     24.8.2026: "alle 3 Spalten... in eine Zeile"). auto-fit statt fixer
     Spaltenzahl - passt sich der jeweiligen Feldanzahl an, ohne pro Rechner
     eine eigene Spaltenzahl zu pflegen. */
  .calc__form { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}
.calc__field { display: grid; gap: .3rem; }
.calc__field label { font-size: .9rem; color: var(--muted); }
.calc__field input, .calc__field select {
  /* font:inherit + explizite Ausnahme, siehe Kommentar bei .form__field
     weiter unten - sonst 15px vom body und iOS-Auto-Zoom beim Fokussieren. */
  font: inherit; font-size: 16px; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  min-height: 44px; width: 100%;
}
/* Farbe/Radius/Innenabstand: siehe die spätere, tatsächlich wirksame
   .calc__result-Regel weiter unten im Stylesheet (Kaskaden-Sieger). */
.calc__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .4rem 0; color: var(--muted); border-bottom: 1px dashed var(--line);
}
.calc__highlight {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .75rem; padding-top: .75rem; border-top: 2px solid var(--accent);
  font-size: 1.15rem; font-weight: 700;
}
.calc__highlight--ok { color: var(--accent-strong); }
.calc__highlight--warn { color: #a23b2d; }

/* Rechner-Illustration: Themen-Icon rechts neben dem Formular (Desktop),
   stapelt darunter sobald der Platz für 2 Spalten fehlt (Session
   18.8.2026, explizite Vorgabe: rechts, nicht darunter - ausser auf
   schmalem Viewport, wo 2 Spalten schlicht nicht reinpassen). */
/* min-width:0 auf den Grid-Kindern: Grid-Items sind sonst per Spec implizit
   min-width:auto und verweigern das Schrumpfen unter ihre intrinsische
   Inhaltsbreite - das .tool-Element blies die 1fr-Spalte dadurch auf 459px
   auf (statt der verfügbaren 349px) und erzeugte horizontales Overflow auf
   Mobile (Mobile-Audit-Folgefund, Session 18.8.2026, scrollWidth 472 vs.
   viewport 375 auf allen 16 Rechnerseiten). */
.calc-page-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.calc-page-grid > * { min-width: 0; }
/* Unter 56rem stand die Illustration bisher als eigenständiger, unumrahmter
   Block zwischen Rechner-Karte und CTA-Band - viel Leerraum ohne Kontext,
   ohne Kartenrahmen (Nutzer-Feedback Session 20.8.2026: "sieht beschissen
   aus als Handy-User"). Die Vorgabe war ohnehin "rechts, nicht darunter"
   (Session 18.8.2026) - das Stapeln war nur ein Verlegenheits-Fallback für
   fehlenden Platz, kein bewusstes Mobile-Design. Auf Mobile daher ganz
   ausgeblendet statt schlecht platziert. */
.calc-illustr-panel { display: none; }
@media (min-width: 56rem) {
  .calc-page-grid { grid-template-columns: 1fr 20rem; align-items: start; }
  .calc-illustr-panel {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1.5rem; position: sticky; top: 5rem;
    /* Bisher unumrahmt/unfarbig neben der weissen .toolx-Karte - auf
       identisch weissem Seitenhintergrund (--paper) praktisch kontrastlos
       ("ist ja alles weiss", Nutzer-Feedback Session 24.8.2026). Eigene
       Kartenoptik statt neuer Farbe: --surface-muted ist bereits ein
       etabliertes Token (Marktbericht-/Themenseiten nutzen es identisch). */
    background: var(--surface-muted); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
}
.calc-illustr { width: 100%; max-width: 13rem; color: var(--accent-strong); }
/* Tragbarkeitsrechner: zwei Prozent-Gauges statt Haus-Füllstand (Nutzer-
   Feedback Session 18.8.2026: "nicht wie andere mit 20% etc angezeigt";
   Session 20.8.2026: UBS/ZKB zeigen dafür zwei Ringe - Tragbarkeit +
   Belehnungsgrad - nebeneinander, kein Haus-Symbol) - Ring + grosse Zahl,
   dasselbe Anzeigemuster wie z.B. die Profil-Vollständigkeits-Balken im
   Admin. */
.calc-gauge-pair { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.calc-gauge-pair .calc-illustr { max-width: 7.5rem; }
.calc-gauge__bg { fill: none; stroke: var(--border2, var(--line)); stroke-width: 10; }
.calc-gauge__arc {
  fill: none; stroke-width: 10; stroke-linecap: round; stroke: var(--accent-strong);
  transition: stroke-dashoffset .3s ease, stroke .3s ease;
}
.calc-gauge__arc.warn { stroke: #a23b2d; }
.calc-gauge__value { font: 800 22px var(--font, sans-serif); fill: var(--ink); }
.calc-gauge__label {
  font: 700 9px var(--font, sans-serif); text-transform: uppercase;
  letter-spacing: .05em; fill: var(--muted);
}

/* Eigentümer-Cockpit: gruppierte Eingaben + verkettete Ergebnisdarstellung */
.ck__group {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem 1rem; margin: 0; display: grid; gap: .85rem;
}
.ck__group legend {
  font-weight: 700; font-size: .95rem; padding: 0 .4rem; color: var(--accent-strong);
}
.calc__result .cr-h {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 1rem 0 .3rem; font-weight: 700;
}
.calc__result .cr-h:first-child { margin-top: 0; }
.calc__note { margin: .75rem 0 0; font-size: .82rem; color: var(--muted); }
.cockpit__text { margin-top: 2rem; }
/* Geführte Assistenten: Verkaufsfahrplan + Dokumenten-Assistent */
.opt-grid {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; margin: 0 0 .85rem; display: grid; gap: .5rem;
  grid-template-columns: 1fr;
  /* .calc__form (der Elternrahmen) wird ab 40rem selbst zweispaltig (für
     Rechner mit mehreren Eingabefeldern nebeneinander) - Verkaufsfahrplan
     und Dokumenten-Assistent haben aber nur DIESES eine Fieldset, das
     dadurch nur eine der beiden Spalten füllte und die Karte auf breiten
     Bildschirmen auf halbe Breite quetschte (Nutzer-Feedback Session
     20.8.2026: "Formatierung auf die ganze Breite"). grid-column spannt
     das Fieldset über beide Elternspalten, die eigenen Options-Spalten
     bleiben unabhängig davon steuerbar. */
  grid-column: 1 / -1;
}
@media (min-width: 30rem) { .opt-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .opt-grid { grid-template-columns: 1fr 1fr 1fr; } }
.opt-grid legend { font-weight: 700; font-size: .95rem; padding: 0 .4rem; color: var(--accent-strong); grid-column: 1 / -1; }
.opt { display: flex; align-items: center; gap: .55rem; font-size: .93rem; cursor: pointer; }
.opt input { width: auto; min-height: auto; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.plan__step {
  display: flex; gap: .75rem; padding: .75rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.plan__num {
  flex: 0 0 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}
.plan__step p { margin: .2rem 0 0; color: var(--muted); font-size: .93rem; }
.plan__links { margin: .4rem 0 0 !important; font-size: .9rem; }
.doc-list { margin: .25rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.doc-note { color: var(--muted); font-size: .8rem; font-style: italic; }
.assistant__text { margin-top: 2rem; }

/* --- Partner-Hinweis (Steuerfuchs): fachlich, nicht werblich --- */
.partner-hint {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: .85rem 1.1rem; margin: 1.5rem 0;
  background: var(--surface); color: var(--muted); font-size: .95rem;
}
.partner-hint p { margin: 0; }

/* --- Hub-Themenliste --- */
.hub-themen { margin: 2rem 0; }
.link-liste { list-style: none; margin: 0; padding: 0;
  display: grid; gap: .4rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .link-liste { grid-template-columns: repeat(2, 1fr); } }

/* --- Anfrage-Formular --- */
.form { display: grid; gap: 1rem; max-width: 40rem; margin: 1rem 0; }
.form__field { display: grid; gap: .3rem; }
.form__field label { font-size: .9rem; color: var(--muted); }
.form__field input, .form__field select, .form__field textarea {
  /* font:inherit holt sonst wieder body{font-size:15px} zurück und
     überschreibt damit die spätere globale 16px-Regel (Spezifität) - gegen
     iOS-Auto-Zoom braucht es hier eine explizite Ausnahme. */
  font: inherit; font-size: 16px; padding: .6rem .7rem; width: 100%;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); min-height: 44px;
}
.form__check { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; }
.form__check input { margin-top: .25rem; }

/* --- Maklervergleich: Leistungsumfang-Matrix --- */
.lv__names { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; }
.lv__names label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; font-weight: 600; color: var(--muted); flex: 1 1 160px; }
.lv__names input { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.lv__scroll { overflow-x: auto; }
.lv__grid { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 460px; }
.lv__grid th[scope="row"] { text-align: left; font-weight: 500; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.lv__grid td { text-align: center; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.lv__grid thead th { font-size: .8rem; color: var(--muted); padding: .4rem .5rem; border-bottom: 2px solid var(--line); }
.lv__grouprow th { background: var(--surface); text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); padding: .5rem .6rem; }
.lv__grid select { padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; background: #fff; }
.lv__more { font-size: .78rem; margin-left: .4rem; white-space: nowrap; }
.lv__scores { width: 100%; border-collapse: collapse; margin: .5rem 0; }
.lv__scores th, .lv__scores td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.lv__scores .lv__win { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 650; }

/* --- Makler-Hub: Feature-Band Leistungsvergleich --- */
.hub-feature { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.5rem 0; }
.hub-feature h2 { margin: 0 0 .4rem; }
.hub-feature p { margin: 0 0 .9rem; color: var(--muted); max-width: 60ch; }

/* --- Kuratierte Wissens-Hubs (Ratgeber & Co.): Karten statt schlichter
   Linkliste, damit die Übersicht dieselbe Bildsprache wie der Rest der
   Plattform trägt statt wie eine reine Textliste zu wirken. --- */
/* /rechner-Übersicht war komplett weiss auf weiss (Nutzer-Feedback Session
   24.8.2026: "ist der nur alles weiss", "wie bei den Marktberichten") -
   dieselbe Full-Bleed-Grau/Weiss-Abwechslung wie .topic > section[id]
   oben, hier auf die Tool-Gruppen angewendet statt eine neue Farbe/Technik
   einzuführen. */
.hub-list {
  margin-top: 0;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding-top: 2.25rem; padding-bottom: 2.25rem;
  padding-left: max(1.75rem, calc((100vw - 68rem) / 2 + 1.75rem));
  padding-right: max(1.75rem, calc((100vw - 68rem) / 2 + 1.75rem));
}
.hub-list:nth-of-type(odd) { background: var(--surface-muted); }
.hub-list:nth-of-type(even) { background: var(--surface); }
.hub-list:first-of-type { margin-top: var(--space-4); }
.hub-list h2 { display: inline-block; padding-bottom: .3rem; margin-bottom: var(--space-3);
  border-bottom: 3px solid var(--accent); }

/* --- Lexikon (gebimo-Vorbild, Session 12.8.2026): Suche + Themen-Pills +
   A-Z-Sprungleiste + alphabetische Liste statt Kategorie-Kartenraster -
   bei 130+ Begriffen deutlich schneller erfassbar als eine lange Reihe
   grosser Karten. --- */
/* Voller, viewportbreiter neutralgrauer Block (gebimo-Vorbild) statt der
   warmen Creme-Seitenfarbe (--paper) - die frühere Version wirkte auf dem
   Screenshot "gelblich", weil nur die Toolbar-Box eingefärbt war und der
   Rest (Begriffsliste) auf der wärmeren Seitenfarbe weiterlief. */
.lex-shell { background: #EEEFF0; width: 100vw; margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); padding: var(--space-5) 0; }
.lex-shell__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.lex-toolbar { margin: 0 0 var(--space-4); }
.lex-search-row { display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap; margin-bottom: var(--space-3); }
.lex-search { flex: 1; min-width: 260px; padding: .75rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--border, var(--line)); font-size: 1rem;
  font-family: 'Inter', sans-serif; background: var(--surface); }
.lex-search:focus { outline: none; border-color: var(--accent); }
.lex-count { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.lex-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-3); }
.lex-pill { font-size: .85rem; font-weight: 650; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--border, var(--line)); background: var(--surface);
  color: var(--ink, var(--text)); cursor: pointer; font-family: 'Inter', sans-serif; }
.lex-pill--active { background: var(--accent-strong); border-color: transparent; color: #fff; }
.lex-az { display: flex; flex-wrap: wrap; gap: .35rem; font-weight: 700; font-size: .92rem; }
.lex-az a { color: var(--accent-strong); text-decoration: none; padding: .15rem .3rem; }
.lex-az a:hover { text-decoration: underline; }
.lex-az span { color: var(--border, var(--line)); padding: .15rem .3rem; }
.lex-group { margin-top: var(--space-5); scroll-margin-top: 5rem; }
.lex-group h2 { font-size: 1.3rem; padding-bottom: .3rem; margin-bottom: var(--space-3);
  border-bottom: 2.5px solid var(--accent-strong); }
.lex-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1.5rem; }
@media (max-width: 640px) { .lex-terms { grid-template-columns: repeat(2, 1fr); } }
.lex-term { padding: .4rem 0; color: var(--ink, var(--text)); text-decoration: none;
  border-bottom: 1px solid transparent; }
.lex-term:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }
.lex-empty { text-align: center; color: var(--muted); padding: var(--space-5) 0; }

/* ======================================================================
   DESIGN-SYSTEM — wiederverwendbare Komponenten (ui.py)
   ====================================================================== */
/* Tokens: zusätzliche Abstands-/Typo-Skala (Basis-Tokens siehe oben) */
:root {
  --space-1: .35rem; --space-2: .6rem; --space-3: 1rem;
  --space-4: 1.5rem; --space-5: 2.25rem;
  --fs-eyebrow: .78rem;
}

/* Atome */
.eyebrow { margin: 0 0 .4rem; font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--accent-strong); }
.badge { display: inline-block; font-size: .74rem; font-weight: 650; line-height: 1;
  padding: .28rem .5rem; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); }
.badge--accent { background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: transparent; color: var(--accent-strong); }
.badge--neu { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.chip { display: inline-block; font-size: .92rem; font-weight: 650; line-height: 1;
  padding: .55rem .9rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid transparent; color: var(--accent-strong); text-decoration: none; }
.chip:hover { background: var(--accent); color: var(--on-accent); }
.gemeinden-weitere { color: var(--muted); font-size: .95rem; }
.stat { display: inline-flex; flex-direction: column; gap: .2rem; }
/* Kennzahlen deutlich fetter/grösser (explizite Vorgabe, Session 6.8.2026) -
   wirkt wie eine Daten-Kennzahl statt wie Fliesstext. */
.stat__value {
  font-size: 1.65rem; font-weight: 800; color: var(--text, var(--ink));
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat__label { font-size: .82rem; color: var(--muted); }
.note { font-size: .88rem; color: var(--muted); }
.note--source { margin-top: var(--space-3); padding-top: .6rem;
  border-top: 1px solid var(--line); font-size: .8rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--line); }
.dot--ok { background: var(--accent); }

/* Karten & Raster */
.card-grid { display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: var(--space-3) 0; }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-3); }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card__image { margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; line-height: 0; }
.card__image img { width: 100%; height: 120px; object-fit: cover; display: block; }
.card__eyebrow { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-strong); }
.card__title { margin: .25rem 0 .35rem; font-size: 1.05rem; }
/* Ratgeber-/Praxisfälle-Kartentitel sind volle Topic-Labels (SEO-H1-Text,
   nicht separat gekürzt) - im Kartenraster auf 2 Zeilen begrenzt, sonst
   variieren die Karten stark in der Höhe (Vorgabe, Session 16.8.2026). */
.hub-card .card__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__body { font-size: .92rem; color: var(--muted); }
.card__cta { display: inline-block; margin-top: .6rem; font-weight: 650;
  color: var(--accent-strong); font-size: .9rem; }
.card__cta::after { content: " \2192"; }

/* Kanton-Übersicht (/kanton): Regionen-Gruppierung + Portal-Karten */
/* Interaktive Schweizer-Kantone-Karte: reines Inline-SVG (echte swisstopo-
   Grenzen, vereinfacht), kein Karten-Plugin. Farben bleiben Weiss/Schwarz/
   Grün - Kantone in einem ruhigen Grünton, Hover/Fokus in der Markenfarbe. */
.ch-map { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-4); margin: 0 0 var(--space-4);
  box-shadow: var(--shadow-md); }
.ch-map__svg { display: block; width: 100%; height: auto; max-height: 460px; margin: 0 auto; }
.ch-map__c { fill: color-mix(in srgb, var(--accent) 22%, var(--surface));
  stroke: var(--surface); stroke-width: 2.2; transition: fill .15s var(--ease), transform .15s var(--ease); }
.ch-map__link { cursor: pointer; }
.ch-map__link .ch-map__c:hover, .ch-map__link .ch-map__c.is-hover,
.ch-map__link:focus-visible .ch-map__c { fill: var(--accent-strong); }
.ch-map__link:focus-visible { outline: none; }
.ch-map__link:focus-visible .ch-map__c { stroke: var(--accent); stroke-width: 3; }
.ch-map__c--soon { fill: var(--tag); stroke: var(--surface); }
.ch-map__hint { text-align: center; color: var(--muted); font-size: .88rem;
  margin: .75rem 0 0; }
.ch-map__row { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.ch-map__svgwrap { flex: 1 1 320px; min-width: 260px; }
.ch-map__label { flex: 0 0 200px; font-size: 1.15rem; font-weight: 700;
  color: var(--ink); }
.ch-map__label-empty { color: var(--muted); font-weight: 500; font-size: .95rem; }
@media (max-width: 640px) { .ch-map { padding: var(--space-3); } .ch-map__svg { max-height: 300px; }
  .ch-map__row { gap: .75rem; } .ch-map__label { flex-basis: 100%; text-align: center; } }

.geo-search { position: relative; max-width: none; margin: 0 0 var(--space-5); }
.geo-search input { width: 100%; box-sizing: border-box; font-size: 1rem;
  padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); }
.geo-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.geo-search__results { position: absolute; z-index: 20; top: calc(100% + .4rem);
  left: 0; right: 0; margin: 0; padding: .4rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14); max-height: 360px; overflow-y: auto; }
.geo-search__results li { margin: 0; }
.geo-search__results a { display: flex; align-items: baseline; gap: .5rem;
  padding: .55rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.geo-search__results a:hover, .geo-search__results a:focus { background: var(--stone); }
.geo-search__level { font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--accent-strong); min-width: 4.5rem; }
.geo-search__name { font-weight: 600; }
.geo-search__kt { color: var(--muted); font-size: .85rem; }
.geo-search__hint { color: var(--muted); font-size: .78rem; font-style: italic; }
.geo-search__empty { padding: .6rem; color: var(--muted); }
/* Gemeinde ohne eigene Seite: Name selbst nicht klickbar, stattdessen zwei
   gleichrangige Ziel-Buttons (Region/Kanton) daneben - Nutzer wählt selbst. */
.geo-search__row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .5rem;
  padding: .55rem .6rem;
}
.geo-search__targets { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.geo-search__target {
  font-size: .82rem; font-weight: 650; text-decoration: none;
  color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: .3rem .65rem; border-radius: 999px;
}
.geo-search__target:hover { background: var(--accent); color: var(--on-accent); }

/* Kanton-Marktbericht-Pillar (KISS-Rollout, Session 12.8.2026, alle 26
   Kantone): KPI-Kacheln (erkennbar an .stat__value) höchstens 3 pro Reihe
   statt auto-fill 4+x - die Tile-Anzahl variiert pro Kanton (3-6), auto-fit
   mit grösserem Mindestmass verteilt die vorhandenen Kacheln je Reihe
   gleichmässig statt eine ungleiche letzte Zeile/leere Spalten zu erzeugen. */
.topic--preview .card-grid:has(.stat__value) {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media (max-width: 640px) {
  .topic--preview .card-grid:has(.stat__value) { grid-template-columns: 1fr 1fr; }
}

/* Hochwertige Marktbericht-Weiterführungsnavigation im gebimo-Kartenstil
   (Session 12.8.2026, KISS-Rollout auf alle 26 Kantone): wenige, klar
   getrennte Abschnitte mit echten Beschreibungskarten statt der alten
   "Wichtigste Gemeinden"/"Mehr zu..."-Kartenblöcke. */
.footer-nav { max-width: 60rem; margin: var(--space-6) auto; padding: 0 var(--space-4); }
.footer-nav__group { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.footer-nav__group:first-child { border-top: none; }
.footer-nav__group h2 { font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin: 0 0 .5rem; }
.footer-nav__row { margin: 0; font-size: .95rem; line-height: 1.9; }
.footer-nav__row a { color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; }
.footer-nav__row a:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

.kanton-jump { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: 0 0 var(--space-4); }
.kanton-jump a { font-size: .85rem; font-weight: 600; color: var(--accent-strong);
  text-decoration: none; padding: .3rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; }
.kanton-jump a:hover { border-color: var(--accent); }
.kanton-region { margin: var(--space-5) 0; scroll-margin-top: 5rem; }
/* Halbkanton-Paare (Basel-Stadt/-Landschaft, Appenzell AR/AI) nebeneinander
   statt als zwei volle Blöcke übereinander (explizite Vorgabe Session
   18.8.2026). */
.halbkanton-pair { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.halbkanton-pair .kanton-region { margin: 0; }
@media (min-width: 56rem) {
  .halbkanton-pair { grid-template-columns: 1fr 1fr; }
}
.kanton-region h2 { margin-bottom: var(--space-3); }
/* Hub-Variante: Gemeinden-Kartenraster direkt unter dem Hero einer Region-/
   Gemeindeseite (statt am Seitenende) - macht die Seite auf den ersten
   Blick als regionalen Hub statt als Fliesstext-Artikel erkennbar. */
.kanton-region--hub { margin: 1.5rem 0 2.25rem; }
.kanton-region--hub h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem); font-weight: 800;
}
/* Abwechselnde Container-Hintergründe für Kanton-Hub-Marktbericht-Abschnitte
   (gebimo-Vorbild) - siehe auch .topic > section[id] weiter unten für die
   normalen Themenseiten. */
.kanton-region--hub.kanton-region--muted {
  background: var(--surface-muted); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
/* Kantonskarte ist seit Session 10.8.2026 komplett klickbar (<a> statt
   <div> + Button) - nur Bild, Name und ein dezenter Pfeil als visueller
   Hinweis, keine Themenliste/kein grosser CTA-Button mehr. */
.kanton-card { display: block; text-decoration: none; color: inherit;
  transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.kanton-card:hover { box-shadow: var(--shadow-lg, 0 12px 28px rgba(0,0,0,.12));
  transform: translateY(-2px); }
.kanton-card__body { padding-top: .1rem; }
.kanton-card__label { margin: .2rem 0 0; font-size: .85rem; color: var(--muted);
  display: flex; align-items: center; gap: .35rem; }
.kanton-card__arrow { color: var(--accent-strong); transition: transform .15s var(--ease); }
.kanton-card:hover .kanton-card__arrow { transform: translateX(3px); }
.kanton-card .card__image img { height: 170px; }
.card--region .card__image img { height: 110px; }
.card--region .card__cta {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem;
  padding: .55rem 1rem; border-radius: 9px; background: var(--accent-strong);
  color: #fff; font-weight: 650; font-size: .88rem; }
.card--region .card__cta::after { content: "\2192"; }
.card--region:hover .card__cta { background: var(--accent); }

/* Marktbericht-Footer (KISS-Vorschau, Session 12.8.2026): wenige, klar
   getrennte Abschnitte mit viel Weissraum statt eines Kartenrasters/einer
   Linkzeile - ruhige Trennlinie statt eigener Container/Schatten. */
.footer-nav { margin: 3.5rem 0 0; }
.footer-section { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-section:first-child { border-top: 0; padding-top: 0; }
.footer-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.footer-section__head h2 { margin: 0 0 .35rem; font-size: 1.5rem; }
.footer-section__lead { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 52ch; }
.footer-section__all {
  font-weight: 650; font-size: .95rem; color: var(--accent-strong);
  text-decoration: none; white-space: nowrap; padding-bottom: .3rem;
}
.footer-section__all:hover { text-decoration: underline; }
/* Die generische .card-grid nutzt auto-fill (Vorgabe für lange Listen mit
   vielen Karten) - bei nur 2-3 Karten reserviert das unsichtbare leere
   Spalten und lässt die Karten klein links kleben statt gross/luftig zu
   wirken. auto-fit lässt die vorhandenen Karten stattdessen den Platz
   untereinander aufteilen (echte "grosse, dezente Karten", explizite
   Vorgabe Session 12.8.2026 - nur innerhalb des Footer-Bereichs, damit
   andere, dichter befüllte Kartenraster site-weit unverändert bleiben). */
.footer-nav .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.footer-nav .card--region { padding-bottom: 1.5rem; }
.footer-nav .card--region .card__image img { height: 180px; }
.footer-nav .card--region .card__title { font-size: 1.2rem; margin-top: .6rem; }
/* Gemeinden-/Tool-Karten im Footer: dieselbe Basiskarte site-weit (Titel +
   Beschreibung + "Mehr erfahren →"), nur etwas grosszügiger als das
   Standardmass, damit sie neben den grösseren Regionskarten nicht winzig
   wirken - gebimo-Referenz, explizite Vorgabe Session 12.8.2026. */
.footer-nav .card:not(.card--region) { padding: 1.5rem; }
.footer-nav .card:not(.card--region) .card__title { font-size: 1.08rem; }
/* Ruhiger Abschluss-Panel statt einer 24-Kantone-Linkliste. */
.discover-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.25rem 1.5rem; text-align: center;
}
.discover-panel p { margin: 0 0 1.1rem; color: var(--muted); max-width: 46ch;
  margin-left: auto; margin-right: auto; }
.discover-panel .cta-outline {
  display: inline-block; padding: .75rem 1.6rem; border-radius: 999px;
  border: 1.5px solid var(--accent-strong); color: var(--accent-strong);
  text-decoration: none; font-weight: 650;
}
.discover-panel .cta-outline:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
/* Full-Bleed-Header: reicht bis zum Viewport-Rand (endgültiges Layout,
   Session 5.8.2026 - echte Fotos werden später einfach ausgetauscht, das
   Layout selbst ist final). max-height begrenzt die Bildhöhe auf breiten
   Bildschirmen, damit das Hero nicht ins Uferlose wächst. */
.hero-img { display: block; width: 100vw; max-width: 100vw; height: auto;
  max-height: min(68vh, 680px);
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  margin-top: 0; margin-bottom: var(--space-4);
  border-radius: 0;
  object-fit: cover; background: var(--stone, #12241d); }
/* Randlose Variante: kein Bottom-Margin, sitzt bündig auf die Breadcrumb -
   nur für die Full-Bleed-Hero-Seiten, nicht sitesweit (dort bleibt der
   normale .hero-img-Abstand von 24px). */
.hero-img--bleed { margin-bottom: 0; }
.topic__crumb-wrap { padding-top: 1.25rem; padding-bottom: .5rem; }
/* Lesezeit + Aktualisiert-Datum (gebimo-Vorbild) - kleine, gedämpfte
   Metazeile unter/statt dem reinen Kicker. Etwas mehr Luft zu Breadcrumb
   und Titel (explizites Nutzer-Feedback, Session 17.8.2026: "etwas
   luftiger"). */
.topic__meta {
  display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1.1rem;
}
.topic__kicker, .kanton-hub__kicker {
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-strong); margin: 0 0 .35rem;
}
.kanton-hub__head { padding: var(--space-4) 0 var(--space-3); text-align: left; }
.kanton-hub__lead { color: var(--muted); font-size: 1rem; margin: .5rem 0 0; max-width: 42rem;
  text-align: left; }
.kanton-module { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-md);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.kanton-module:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.kanton-module__icon { width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-strong); display: grid; place-items: center; margin-bottom: .8rem; }
.kanton-module__icon svg { width: 22px; height: 22px; }
.kanton-module .card__title { margin: 0 0 .6rem; font-size: 1.05rem; }
.kanton-module__links { list-style: none; margin: 0; padding: 0;
  display: grid; gap: .5rem; }
.kanton-module__links a { font-size: .92rem; font-weight: 600; color: var(--ink);
  text-decoration: none; }
.kanton-module__links a:hover { color: var(--accent-strong); text-decoration: underline; }
.card--accent { border-left: 4px solid var(--accent); }

/* Phasen / Prozess */
.phase { margin: var(--space-4) 0; }
.phase__head { display: flex; align-items: center; gap: .8rem; margin-bottom: var(--space-2); }
.phase__num { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.phase__title { margin: 0; font-size: 1.15rem; }
.phase__sub { margin: 0; font-size: .88rem; color: var(--muted); }

/* Tool-Gerüst */
.tool__head { margin-bottom: var(--space-3); }
.tool__head h1 { margin: .1rem 0 .5rem; }

/* Vergleichstabelle */
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 420px; }
.cmp-table caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: .5rem; }
.cmp-table th[scope="col"] { font-size: .82rem; color: var(--muted); text-align: center;
  padding: .5rem .6rem; border-bottom: 2px solid var(--line); }
.cmp-table th[scope="col"]:first-child { text-align: left; }
.cmp-table th[scope="row"] { text-align: left; font-weight: 500; padding: .5rem .6rem;
  border-bottom: 1px solid var(--line); }
.cmp-table td { text-align: center; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.chk { font-weight: 700; }
.chk--yes { color: var(--accent-strong); }
.chk--part { color: #b8860b; }
.chk--no { color: var(--line-strong, #b9c4c2); }

/* Callout */
.callout { background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: var(--space-3); margin: var(--space-3) 0; }
.callout__title { margin: 0 0 .3rem; font-weight: 700; }
.callout__body { color: var(--muted); font-size: .92rem; }
.callout--info { border-left-color: var(--accent); }

/* --- Eigentümer-Dashboard --- */
.dash .phase:first-of-type { margin-top: var(--space-3); }

/* --- Premium-Maklervergleich: Presets + Gewichtung --- */
.lv__presets { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; }
.lv__presets-lab { font-size: .85rem; color: var(--muted); margin-right: .2rem; }
.lv__presets button { font-size: .82rem; padding: .35rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); cursor: pointer; color: var(--ink); }
.lv__presets button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.lv__wcell { text-align: center; }
.lv__wcell input { width: 1.1rem; height: 1.1rem; }

/* --- Makler-Profil & Hub: Leistungsumfang --- */
.makler-profil__scope, .hub-scope { margin-top: var(--space-4); }
.makler-profil__scope h2, .hub-scope h2 { margin-bottom: .4rem; }

/* --- Journey-Board (Client-Layer: persistente Verkaufsreise) --- */
.dash__board { margin: var(--space-3) 0 var(--space-4); }
.dash__board h2 { margin-bottom: .6rem; }
.jb-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.jb { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.jb__item { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg, #fff); }
.jb__item--done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.jb__item--next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.jb__mark { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; background: var(--surface); color: var(--muted); }
.jb__item--done .jb__mark { background: var(--accent); color: var(--on-accent); }
.jb__item--next .jb__mark { background: var(--accent); color: var(--on-accent); }
.jb__link { flex: 1 1 auto; text-decoration: none; color: var(--ink); font-weight: 600; }
.jb__link:hover { color: var(--accent-strong); }
.jb__toggle { flex: 0 0 auto; font-size: .76rem; padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.jb__item--done .jb__toggle { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.jb__rec { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .95rem; }
.jb__note { color: var(--muted); font-size: .85rem; }

/* ======================================================================
   PREMIUM-LAYER — hochwertigeres Erscheinungsbild (SaaS-Anmutung).
   Additiv am Ende: gewinnt bewusst im Cascade. Bewegung nur, wenn der
   Nutzer sie nicht abbestellt hat (prefers-reduced-motion).
   ====================================================================== */
:root {
  --shadow-sm: 0 1px 2px rgba(16,24,28,.05), 0 1px 3px rgba(16,24,28,.06);
  --shadow-md: 0 2px 6px rgba(16,24,28,.06), 0 8px 24px rgba(16,24,28,.07);
  --shadow-lg: 0 8px 30px rgba(16,24,28,.10), 0 20px 60px rgba(16,24,28,.10);
  --radius-lg: 16px;
  --accent-grad: linear-gradient(135deg, #3F5F4A 0%, #2F4A38 100%);
  --ease: cubic-bezier(.22,.61,.36,1);
}
body { background:
  radial-gradient(1200px 400px at 100% -10%, color-mix(in srgb, var(--accent) 6%, transparent), transparent),
  var(--paper); }

/* Header: sticky + weiche Trennung */
.site-header { position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.1) blur(8px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 1px 0 var(--line); }

/* Buttons/CTAs: Tiefe + weicher Hover */
.cta-primary { box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease); }
.cta-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-primary:active { transform: translateY(0); }
/* Oberes Band = NAVIMO-Grün, unteres Band = Schwarz (gebimo-Layout
   übernommen, aber in Markenfarbe statt gebimo-Blau - Session 5.8.2026). */
.cta-band { background: var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.cta-band.cta-band--black { background: var(--cta-black); }
.cta-band .cta-primary { color: var(--accent-strong); }
.cta-band--black .cta-primary { color: var(--cta-black); }
/* Full-Bleed-Bänder (.cta-band--next) sollen keine Rundung/keinen Schatten
   haben (Kante an Kante mit dem Viewport) - hier erneut erzwungen, weil
   diese spätere .cta-band-Regel sonst per Quellreihenfolge gewinnt. */
.cta-band--next { border-radius: 0; box-shadow: none; }
.cta-band--next { position: relative; overflow: hidden; }
.cta-band--next::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 120px at 12% 0%, rgba(255,255,255,.12), transparent); pointer-events: none; }

/* Karten: Elevation + Lift - deutlich sichtbare Tiefe auf Off-White-Hintergrund
   statt der dünnen Haarlinie, die Karte und Seite fast verschmelzen liess. */
.card { box-shadow: var(--shadow-md); border-radius: var(--radius-lg); }
.card--link { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.card--link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hub-feature, .jb-wrap { border-radius: var(--radius-lg); }

/* Tool-/Rechner-Ergebnis: eigenständige, hellgraue Karte volle Breite
   (Vorbild gebimo.ch/rechner/verkaufskosten, Session 12.8.2026 - diese
   spätere Regel gewinnt in der Kaskade gegen die frühere .calc__result-
   Basisdeklaration weiter oben, daher hier die tatsächlich wirksamen
   Werte pflegen statt an zwei Stellen zu duplizieren). */
.calc__result { background: var(--surface-muted); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: none;
  padding: 2rem; margin-top: 0; }
.calc__result:empty { display: none; }
.calc__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.calc__row:last-child { border-bottom: 0; }
.calc__highlight { display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .6rem; padding: .8rem 1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-weight: 700; font-size: 1.05rem; color: var(--accent-strong); }
.calc__highlight--ok { background: color-mix(in srgb, #1a7f37 12%, transparent); color: #14612a; }
.calc__highlight--warn { background: color-mix(in srgb, #b8860b 14%, transparent); color: #7a5a06; }

/* Tool-Formular: luftiger, klarer */
.calc__form, #lv-form, #ck-form { display: grid; gap: .85rem; }
.calc__field { display: grid; gap: .3rem; }
.calc__field label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.calc__field input, .lv__names input { padding: .6rem .7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; background: var(--surface);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.calc__field input:focus, .lv__names input:focus, .lv__grid select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Einheit (CHF/%/m²) sitzt als Badge im Feld statt als Textzusatz im Label -
   Zahl und Einheit direkt beieinander, wie in Finanz-Tools üblich. */
.calc__field-wrap { position: relative; }
.calc__field-wrap input { padding-right: 3.4rem; }
.calc__field-unit {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  font-size: .78rem; font-weight: 700; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: .15rem .45rem; pointer-events: none;
}

/* Tabellen: sanftes Zebra + Hover */
.lv__grid tbody tr:not(.lv__grouprow):hover, .cmp-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.lv__scores .lv__win { box-shadow: inset 3px 0 0 var(--accent); }

/* Badges/Chips: etwas mehr Kontur */
.badge { box-shadow: var(--shadow-sm); }

/* Dezente Einblend-Animation für Ergebnis + Karten */
@media (prefers-reduced-motion: no-preference) {
  @keyframes nvFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .calc__result:not(:empty) { animation: nvFade .28s var(--ease) both; }
  .phase { animation: nvFade .3s var(--ease) both; }
  .jb__item { transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
}

/* Trust-Strip (Vertrauenselemente) */
.trust-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
  margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.trust-strip__item { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.trust-strip__item svg { flex: 0 0 auto; }
.trust-strip__item b { color: var(--ink); font-weight: 650; }

/* Mobile: Tap-Ziele + Abstände */
@media (max-width: 560px) {
  .cta-band { padding: 1rem; }
  .card { padding: 1rem; }
  .lv__presets button { padding: .45rem .8rem; }
  /* Der zusätzliche Platz unten war bisher auf ALLE .cta-band--next
     angewendet - traf also auch das grüne "Haupt-Band" mitten auf der
     Seite (z.B. Verkaufsfahrplan: "Bereit für den nächsten Schritt?",
     gefolgt von "Passende Themen"), nicht nur das schwarze Abschluss-Band
     direkt vor dem Footer. Wirkte dadurch aufgebläht (Nutzer-Feedback
     Session 21.8.2026: "CTA-Banner zu gross"). .cta-band--black ist laut
     _closing_cta_block() (pages.py) das tatsächliche Abschluss-Band auf
     allen Funnel-/Tool-Seiten (Cockpit, Dashboard, Verkaufsfahrplan,
     Dokumenten-Assistent, Bewertung) - nur dieses braucht den Puffer gegen
     die Fixed-Chat-Bubble unten rechts (Mobile-Audit-Befund, Session
     18.8.2026). Eine DOM-Positions-Regel (:last-child) wäre fragiler: auf
     einigen Seiten folgt dem letzten CTA-Band noch ein <script>-Tag, das
     :last-child bricht, ohne visuell etwas zu ändern. Für den Makler-Band
     ohne schwarzen Abschluss (_makler_banner_block(), z.B. Gemeinde-/
     Kanton-Marktseiten) wurde geprüft: der Button ist dort nicht volle
     Breite und überschneidet sich auch ohne den Extra-Puffer nicht mit der
     Chat-Bubble (Mobile-Audit Session 21.8.2026). */
  .cta-band--next { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .cta-band--black { padding-bottom: 5.5rem; }
}

/* Callout-Listen etwas kompakter */
.callout__body ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.callout__body li { margin: .2rem 0; }

/* --- Assistenten: Fragebögen (radio/checkbox als Chips) --- */
.ma-fs { border: 0; padding: 0; margin: 0 0 1.1rem; }
.ma-fs legend { font-weight: 650; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.opts { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.opts--wrap { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; font-size: .92rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); }
.opt:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent);
  box-shadow: 0 0 0 1px var(--accent) inset; }
.opt input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.ma-crit { margin: .4rem 0 0; padding-left: 1.1rem; }
.ma-crit li { margin: .25rem 0; }
.ma-cta { margin-top: 1rem; }
.tool__after { margin-top: var(--space-4); }

/* --- Bewertungsrechner: Ein-Seiten-Struktur (gebimo-Vorbild), Karten für
   Einzelauswahl statt klassischer Radio-Buttons --- */
.bw-wizard { max-width: 42rem; margin: 0 auto; }
.bw-wizard > .lead { text-align: left; color: var(--muted); margin: 0 0 var(--space-4); }
.bw-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; margin-bottom: 1.5rem; }
.bw-group h2 { font-size: 1.2rem; margin: 0 0 .3rem; }
.bw-group__hint { color: var(--muted); font-size: .88rem; margin: 0 0 1.25rem; }
.bw-fields-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 30rem) { .bw-fields-row { grid-template-columns: 1fr 1fr; } }
.bw-result-teaser { background: var(--surface-muted); text-align: center; }
.bw-result-teaser__text { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.bw-progress { margin-bottom: var(--space-4); }
.bw-progress__bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bw-progress__bar i { display: block; height: 100%; background: var(--accent);
  border-radius: 99px; transition: width .35s var(--ease); }
.bw-progress__label { margin: .5rem 0 0; font-size: .82rem; color: var(--muted);
  font-weight: 650; text-align: center; }
.bw-screen h2 { font-size: 1.35rem; margin: 0 0 .4rem; text-align: center; }
.bw-screen > .lead { text-align: center; color: var(--muted); margin: 0 0 1.5rem; }
.bw-screen--start { text-align: center; padding: var(--space-3) 0; }
.bw-optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.bw-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
  margin: 1.5rem 0 2rem; max-width: 24rem; margin-inline: auto; }
.bw-trust-item { display: flex; gap: .6rem; align-items: center; text-align: left;
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); }
.bw-trust-icon { font-size: 1.5rem; line-height: 1; }
.bw-trust-item strong { display: block; font-size: .82rem; }
.bw-trust-item span { display: block; font-size: .78rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .bw-screen:not([style*="display: none"]) { animation: nvFade .3s var(--ease) both; }
}
.bw-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin: 1.5rem 0; }
@media (max-width: 30rem) { .bw-cards { grid-template-columns: 1fr; } }
.bw-card { display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.5rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); cursor: pointer; font: inherit; color: inherit;
  font-weight: 650; font-size: .98rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bw-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bw-card.is-selected { border-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: var(--shadow-md); }
.bw-card__icon { font-size: 2.1rem; line-height: 1; }
.bw-toggle-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem; margin: 1.25rem 0; }
.bw-toggle-card { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; font: inherit; color: inherit; font-size: .92rem; font-weight: 600;
  transition: border-color .15s, background .15s; }
.bw-toggle-card:hover { border-color: var(--accent); }
.bw-toggle-card.is-selected { border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.bw-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; gap: .75rem; }
.bw-nav .cta-primary { margin-left: auto; }
.bw-back-link { background: none; border: none; color: var(--muted); font: inherit;
  font-weight: 600; cursor: pointer; padding: .5rem 0; }
.bw-back-link:hover { color: var(--accent-strong); }

/* --- Feinschliff: Emotion, Vertrauen, Chips, Erfolgsanimation --- */
.bw-hint { margin: -.6rem 0 .5rem; font-size: .82rem; color: var(--muted); }
.bw-encourage { text-align: center; color: var(--accent-strong); font-size: .88rem;
  font-weight: 650; margin: 0 0 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .bw-card.is-selected, .bw-toggle-card.is-selected { animation: bwPulse .32s var(--ease); }
  @keyframes bwPulse { 0% { transform: scale(1); } 45% { transform: scale(1.045); } 100% { transform: scale(1); } }
}
.bw-summary { background: var(--surface-muted); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1.25rem; }
.bw-summary:empty { display: none; }
.bw-summary__label { margin: 0 0 .2rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bw-summary__text { margin: 0; font-size: .92rem; font-weight: 600; color: var(--text); }
.bw-trust-line { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem;
  margin: 1.5rem 0 0; font-size: .78rem; color: var(--muted); }
.bw-trust-line span { white-space: nowrap; }
.bw-trust-line span::before { content: "✓ "; color: var(--accent-strong); font-weight: 700; }
.bw-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.bw-chip { padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 99px;
  background: var(--surface); cursor: pointer; font: inherit; color: inherit; font-size: .88rem;
  font-weight: 600; transition: border-color .15s, background .15s, transform .15s; }
.bw-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.bw-chip.is-selected { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--on-accent); }
.bw-success-badge { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.25rem; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center; }
.bw-success-badge svg { width: 2.2rem; height: 2.2rem; }
.bw-success-badge path { stroke: var(--on-accent); stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .bw-success-badge path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: bwCheck .5s .15s var(--ease) forwards; }
  @keyframes bwCheck { to { stroke-dashoffset: 0; } }
  .bw-success-badge { animation: nvIn .4s var(--ease) both; }
}
@media (max-width: 26rem) {
  .bw-card { padding: 1.15rem .75rem; }
  .bw-card__icon { font-size: 1.8rem; }
  .bw-nav { flex-wrap: wrap; }
  .bw-nav .cta-primary { width: 100%; margin-left: 0; padding: .9rem; }
  .bw-back-link { width: 100%; text-align: center; }
}

/* --- Dashboard-Kontrollzentrum --- */
.dashx__block { margin: 0 0 var(--space-3); }
.dashx__block h3 { margin: 0 0 .5rem; font-size: 1rem; }
.dashx__progress { margin-bottom: var(--space-3); }
.dashx__bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dashx__bar span { display: block; height: 100%; background: var(--accent-grad); border-radius: 999px; transition: width .5s var(--ease); }
.dashx__pct { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.dashx__valgrid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.dashx__valgrid .stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.dashx__reminders ul { margin: 0; padding-left: 1.1rem; }
.dashx__reminders li { margin: .25rem 0; color: var(--muted); }
.dashx__recent { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dashx__recent li a { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; background: var(--surface); }

/* Maklervergleich-Empfehlung: Strategie-Items + Druck (funktional) */
.lv__strat { display: grid; gap: .5rem; }
.lv__strat-item { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .92rem; }
#lv-result .cr-h { margin: 1rem 0 .4rem; }
@media print {
  .site-header, #lv-form, .trust-strip, .lv__text, .faq, .related, .cta-band--next, .footer, .skip-link, .lv__print { display: none !important; }
  .calc__result { border: 0; box-shadow: none; padding: 0; }
  a { text-decoration: none; color: #000; }
}

/* Renovations-Priorisierung Liste */
.reno-list { margin: .3rem 0 0; padding-left: 1.3rem; }
.reno-list li { margin: .3rem 0; }

/* ======================================================================
   PREMIUM NAVIGATION — Mega-Menü (Desktop-Panels + Mobile-Drawer)
   ====================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; }
.nav-wrap { max-width: var(--maxw, 1080px); margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--accent-strong);
  text-decoration: none; flex: 0 0 auto; }
.nav-cta { margin-left: auto; flex: 0 0 auto; background: var(--accent-grad); color: var(--on-accent);
  text-decoration: none; font-weight: 700; font-size: .9rem; padding: .5rem .9rem; border-radius: 10px;
  box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.mega { flex: 1 1 auto; }
.mega__top { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem; margin: 0; padding: 0; }
.mega__item { position: relative; }
.mega__btn { font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); background: none;
  border: 0; padding: .5rem .7rem; border-radius: 8px; cursor: pointer; text-decoration: none;
  display: inline-block; }
.mega__btn:hover, .mega__item.open > .mega__btn { background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-strong); }
.mega__panel { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; z-index: 60; }
.mega__item:hover > .mega__panel, .mega__item:focus-within > .mega__panel,
.mega__item.open > .mega__panel { opacity: 1; visibility: visible; transform: none; }
.mega__lead { display: block; font-weight: 700; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--accent-strong); padding: .3rem .5rem .5rem; }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mega__links a { display: block; padding: .45rem .5rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: .9rem; }
.mega__links a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent-strong); }

.nav-toggle { display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); cursor: pointer; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; order: 3; }
  .mega { order: 4; flex-basis: 100%; display: none; }
  .site-header.nav-open .mega { display: block; }
  .mega__top { flex-direction: column; gap: .1rem; padding-top: .5rem; }
  .mega__item { position: static; }
  .mega__btn { display: block; width: 100%; text-align: left; }
  .mega__panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .3rem .7rem;
    padding: .2rem .3rem; display: none; }
  .mega__item.open > .mega__panel { display: block; }
  .mega__item:hover > .mega__panel:not(.open) { display: none; }
  .nav-wrap { flex-wrap: wrap; }
}

/* Utility-States (wiederverwendbar): Skeleton, Empty, Success */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, color-mix(in srgb, var(--line) 60%, transparent) 37%, var(--surface) 63%);
  background-size: 400% 100%; border-radius: 8px; min-height: 1rem; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: nvSkel 1.4s ease infinite; } @keyframes nvSkel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } } }
.empty-state { text-align: center; color: var(--muted); padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.success-state { border-left: 4px solid #1a7f37; background: color-mix(in srgb, #1a7f37 8%, transparent); padding: .8rem 1rem; border-radius: 10px; }

/* Maklervergleich Scorecard (Leistungsprofil nach Bereich) */
.score-card { display: grid; gap: .5rem; margin: .3rem 0 .5rem; }
.score-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: .6rem; font-size: .9rem; }
.score-lab { color: var(--muted); }
.score-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--accent-grad); border-radius: 999px; transition: width .5s var(--ease); }
.score-val { font-weight: 700; color: var(--accent-strong); min-width: 2.6rem; text-align: right; }
@media (max-width: 560px) { .score-row { grid-template-columns: 1fr; gap: .15rem; } .score-bar { grid-row: 2; } }

/* ======================================================================
   DARK-MODE-VORBEREITUNG — Tokens remappen (opt-in via prefers-color-scheme).
   Alle Komponenten nutzen Tokens, daher genügt das Umsetzen der Variablen.
   ====================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1417;
    --surface: #161c21;
    --ink: #e8edf1;
    --muted: #9aa7b1;
    --line: #2a333a;
    --accent: #3F5F4A;
    --accent-strong: #2F4A38;
    --on-accent: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.5), 0 20px 60px rgba(0,0,0,.5);
    --accent-grad: linear-gradient(135deg, #3F5F4A 0%, #2F4A38 100%);
  }
  body { background:
    radial-gradient(1200px 400px at 100% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--paper); }
  .site-header { background: color-mix(in srgb, var(--surface) 82%, transparent); }
  .chk--no { color: #4a565e; }
}

/* ======================================================================
   PREMIUM HERO + Home-Sektionen
   ====================================================================== */
.hero { position: relative; padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero__inner { max-width: 46rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: .2rem 0 .8rem; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 40rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 .5rem; }
.cta-secondary { display: inline-block; padding: .62rem .95rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .95rem;
  transition: border-color .15s var(--ease), transform .15s var(--ease); }
.cta-secondary:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--accent-strong); }
.section-lead { color: var(--muted); max-width: 44rem; margin: .2rem 0 1rem; }
.home-tools, .home-how, .home-makler { margin: clamp(2rem, 5vw, 3.2rem) 0; }
.home-tools h2, .home-how h2, .home-makler h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
/* Generische "So funktioniert es"-Nummernliste (Cockpit/Verkaufsfahrplan/
   Dokumenten-Assistent u.a. ausserhalb der Homepage) hatte bisher keine
   eigene Regel und lief auf dem eng gesetzten Browser-Standard - explizites
   Nutzer-Feedback Session 17.8.2026: "das ist bei den Seiten zu eng". */
.howto__list { padding-left: 1.4rem; }
.howto__list li { margin-bottom: .85rem; line-height: 1.55; }
.howto__list li:last-child { margin-bottom: 0; }
.home-how .howto__list { counter-reset: step; list-style: none; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.home-how .howto__list li { margin-bottom: 0; }
.home-how .howto__list li { counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.1rem 1.1rem 1.1rem 3.2rem; position: relative; box-shadow: var(--shadow-sm); }
.home-how .howto__list li::before { content: counter(step); position: absolute; left: 1rem; top: 1.05rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }

/* Dashboard: Offene Aufgaben */
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.task-list li { display: flex; align-items: center; gap: .55rem; }
.task-dot { flex: 0 0 auto; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--accent); }

/* ======================================================================
   PREMIUM TOOL-GERÜST (einheitlich für alle Tools/Assistenten)
   ====================================================================== */
.toolx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 3vw, 1.8rem); }
.toolx__head { margin-bottom: 1rem; }
.toolx__head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.015em; }
.toolx__body { margin-top: .4rem; }
/* Schritt-Indikator */
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 1.1rem; padding: .7rem 0 0;
  border-top: 1px solid var(--line); counter-reset: fl; }
.flow li { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); }
.flow__n { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-strong); font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.flow__l { font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .flow { gap: .3rem .7rem; } .flow__l { font-weight: 500; } }

/* Mega-Menü: Icons + Panel-Innenlayout */
.mega__btn { display: inline-flex; align-items: center; gap: .4rem; }
.mega__ic { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.mega__btn:hover .mega__ic, .mega__item.open .mega__ic { color: var(--accent-strong); }
.mega__panel { min-width: 270px; }
.mega__panel-in { display: block; }
.mega__lead { margin-bottom: .35rem; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .mega__ic { width: 16px; height: 16px; } }

/* Home platforms + Accordion (Design-System-Komponente) */
.home-platforms { margin: clamp(2rem, 5vw, 3.2rem) 0; }
.home-platforms h2, .home-faq h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
.home-faq { margin: clamp(2rem, 5vw, 3.2rem) 0; }
.acc { display: grid; gap: .5rem; max-width: 46rem; }
.acc__item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.acc__item summary { cursor: pointer; padding: .9rem 1rem; font-weight: 650; list-style: none; position: relative; padding-right: 2.4rem; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent-strong); transition: transform .2s var(--ease); }
.acc__item[open] summary::after { content: "\2212"; }
.acc__item[open] summary { border-bottom: 1px solid var(--line); }
.acc__body { padding: .8rem 1rem; color: var(--muted); font-size: .95rem; }

/* Maklervergleich: Fit-Bars in Ranking + einheitliche Tool-Karten für Kern-Tools */
.lv__scores td { vertical-align: middle; }
.fitbar { display: inline-block; width: 90px; height: 8px; background: var(--line); border-radius: 999px;
  overflow: hidden; margin-right: .5rem; vertical-align: middle; }
.fitbar i { display: block; height: 100%; background: var(--accent-grad); border-radius: 999px; transition: width .5s var(--ease); }
.lv__scores b { color: var(--accent-strong); }
@media (max-width: 480px) { .fitbar { width: 54px; } }
/* Kern-Tools (Cockpit/Dashboard/Vergleich) erhalten dieselbe Premium-Kartenanmutung */
.cockpit, .dash { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 3vw, 1.8rem); }
.lv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 3vw, 1.8rem); }

/* Initialen-Avatar (ersetzt Logo-Grafiken – markenfrei, kein 404) */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 14px; background: var(--accent-grad); color: var(--on-accent); font-weight: 800;
  font-size: 1.15rem; letter-spacing: .02em; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.makler-card__logo.avatar { width: 52px; height: 52px; border-radius: 12px; font-size: 1.05rem; }
.makler-profil__logo.avatar { width: 76px; height: 76px; border-radius: 18px; font-size: 1.5rem; }
/* Standort-Platzhalter statt Foto */
.standort__foto--ph { display: flex; align-items: flex-end; padding: .6rem .7rem; min-height: 120px;
  border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); }
.standort__foto--ph span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ======================================================================
   DASHBOARD PREMIUM — Ring, KPI-Karten, Quick-Access, Panels (Design-System)
   ====================================================================== */
.dashx__hero { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ring { position: relative; width: 72px; height: 72px; flex: 0 0 auto; }
.ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: var(--line); stroke-width: 6; }
.ring__fg { fill: none; stroke: url(#g) var(--accent); stroke: var(--accent-strong); stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset .6s var(--ease); }
.ring__val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: var(--ink); }
.dashx__hero-txt h3 { margin: 0 0 .2rem; }
.qa { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.qa__chip { display: inline-block; padding: .35rem .7rem; border-radius: 999px; text-decoration: none; font-size: .82rem;
  font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .15s var(--ease), transform .15s var(--ease); }
.qa__chip:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--accent-strong); }
/* KPI-Karten (Meine Zahlen / Meine Immobilie) */
.dashx__valgrid .stat { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: .85rem .9rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.dashx__valgrid .stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-grad); }
.dashx__valgrid .stat__value { font-size: 1.3rem; }
/* Wiederverwendbare Panels (Info/Success/Warning) */
.panel { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px;
  background: var(--surface); padding: .85rem 1rem; margin: .6rem 0; }
.panel--info { border-left-color: var(--accent); }
.panel--success { border-left-color: #1a7f37; background: color-mix(in srgb, #1a7f37 7%, transparent); }
.panel--warning { border-left-color: #b8860b; background: color-mix(in srgb, #b8860b 9%, transparent); }
.panel__title { font-weight: 700; margin: 0 0 .2rem; }
@media (max-width: 560px) { .dashx__hero { flex-direction: column; text-align: center; align-items: center; } .qa { justify-content: center; } }

/* Mega-Menü: Featured Card + aktive Sektion */
.mega__panel-in { display: grid; gap: .5rem; }
.mega__feat { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--line); color: var(--ink); position: relative; }
.mega__feat .mega__ic { width: 20px; height: 20px; }
.mega__feat-t { font-weight: 750; font-size: .98rem; }
.mega__feat-d { font-size: .82rem; color: var(--muted); }
.mega__feat-go { font-size: .8rem; font-weight: 650; color: var(--accent-strong); margin-top: .1rem; }
.mega__feat:hover { border-color: var(--accent); }
.mega__item.is-active > .mega__btn { color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mega__item.is-active > .mega__btn::after { content: ""; position: absolute; }
.mega__btn { position: relative; }
.mega__item.is-active > .mega__btn { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 900px) { .mega__feat { background: var(--surface); } }

/* Inhaltsseiten: gleiche Premium-Anmutung wie Tools (Design-Konsistenz) */
.topic > h1, .hub-intro h1, .kanton-intro h1, .ratgeber h1, .makler-profil h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem); letter-spacing: -.018em; line-height: 1.12; }
.topic h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); letter-spacing: -.01em; margin-top: 2rem; }
/* Bewusst keine eigene max-width mehr auf .topic p: Fliesstext soll dieselbe
   Breite nutzen wie Tabellen/Karten/Charts im selben Artikel, statt als
   schmalere Spalte daneben zu wirken. */
.topic__section + .topic__section { margin-top: .4rem; }
/* Marktbericht-Visualisierungen (market_pulse/card_grid/callout liegen als
   direkte Geschwister im .topic-Artikel): grosszügiger Abstand zwischen den
   Kacheln, sonst wirkt der Report wie eine dichte Kastenwand statt wie ein
   luftiger, editorieller Bericht. */
.topic > .card,
.topic > .card-grid,
.topic > .callout {
  margin-top: var(--space-5);
  margin-bottom: 0;
}
.topic > section:first-of-type { margin-top: var(--space-5); }
/* Abwechselnde Weiss/Grau-Container je Abschnitt (gebimo-Vorbild:
   bg-surface / bg-surface-muted) statt reinem Fliesstext ohne Struktur -
   Session 5.8.2026, explizite Vorgabe. Nur Inhaltssektionen (die
   c.sections-Blöcke mit id, nicht TOC/Gemeinden-Karten davor). */
/* Full-Bleed statt Box-in-Spalte (gebimo-Vorbild Bild 3, Session
   6.8.2026): die Farbfläche reicht bis zum Viewport-Rand, der Text bleibt
   dank Padding auf der gewohnten Spaltenbreite zentriert. */
.topic > section[id]:nth-of-type(odd),
.topic > section[id]:nth-of-type(even) {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  border-radius: 0; margin-top: 0; margin-bottom: 0;
  padding-top: 2.25rem; padding-bottom: 2.25rem;
  padding-left: max(1.75rem, calc((100vw - 68rem) / 2 + 1.75rem));
  padding-right: max(1.75rem, calc((100vw - 68rem) / 2 + 1.75rem));
}
.topic > section[id]:nth-of-type(odd) { background: var(--surface-muted); }
.topic > section[id]:nth-of-type(even) { background: var(--surface); }
/* Sprungmarken-Übersicht ("Auf dieser Seite"): bricht die reine Textwand bei
   längeren Themenseiten auf, gibt sofort Orientierung über den Seitenumfang. */
.topic__toc {
  background: var(--paper); border: 1px solid var(--border, var(--line));
  border-radius: var(--radius-lg, 14px); padding: 1.1rem 1.3rem;
  margin: var(--space-5) 0;
}
.topic__toc-eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem;
}
.topic__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; counter-reset: toc; }
.topic__toc li { counter-increment: toc; }
.topic__toc li::before {
  content: counter(toc); display: inline-flex; align-items: center; justify-content: center;
  width: 1.3rem; height: 1.3rem; margin-right: .55rem; border-radius: 50%;
  background: var(--em-light); color: var(--em2, var(--accent-strong));
  font-size: .72rem; font-weight: 700;
}
.topic__toc a { color: var(--text); text-decoration: none; font-weight: 500; }
.topic__toc a:hover { color: var(--accent-strong); text-decoration: underline; }
@media (min-width: 46rem) {
  .topic__toc ol { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}
/* "Ihr Weg zum Verkauf" - fünf feste Schritte am Ende jeder Praxisfall-Seite,
   damit sich das Spezialfall-Cluster wie ein geführter Eigentümer-Bereich
   anfühlt statt wie eine Sammlung einzelner SEO-Artikel. Gleiche Bausteine
   (Kreis-Nummer, Karte) wie topic__toc, damit kein neues Muster entsteht. */
.owner-journey {
  background: var(--paper); border: 1px solid var(--border, var(--line));
  border-radius: var(--radius-lg, 14px); padding: 1.1rem 1.3rem;
  margin: var(--space-5) 0;
}
.owner-journey__eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin: 0 0 .7rem;
}
.owner-journey__list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem;
}
.owner-journey__step a {
  display: flex; align-items: center; gap: .5rem; text-decoration: none;
  color: var(--text); font-weight: 500; font-size: .9rem;
  padding: .45rem .8rem; border-radius: 20px; background: var(--card, #fff);
  border: 1px solid var(--border, var(--line));
}
.owner-journey__step a:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.owner-journey__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; flex: 0 0 auto;
  background: var(--em-light); color: var(--em2, var(--accent-strong));
  font-size: .72rem; font-weight: 700;
}
/* Kompakte Praxis-Checkliste innerhalb eines Artikels (z. B. Glossar-Begriffe). */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.6rem; line-height: 1.5; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--em2, var(--accent-strong));
  font-weight: 700;
}
/* Sanfte Einblendung (dezent, respektiert reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .toolx, .card, .home-tools, .home-platforms, .dashx__hero { animation: nvIn .38s var(--ease) both; }
  @keyframes nvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ======================================================================
   KORREKTUR: ruhigeres, kompakteres NAVIMO-Design (Struktur wie gehabt)
   ====================================================================== */
/* Mega-Menü kompakt: weniger Höhe, weniger Text, schneller erfassbar */
.mega__feat { display: none; }                      /* Featured-Cards entfernt */
.mega__panel { min-width: 220px; padding: .35rem; }
.mega__panel-in { gap: .15rem; }
.mega__lead { font-size: .74rem; padding: .25rem .45rem .35rem; }
.mega__links a { padding: .32rem .45rem; font-size: .875rem; }
.mega__btn { padding: .42rem .6rem; font-size: .89rem; }

/* Startseite ruhiger: klare Hierarchie, mehr Weissraum, weniger Blöcke */
.home-vorteile { margin: clamp(1.8rem, 4vw, 2.6rem) 0; }
.home-vorteile h2, .home-makler h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: -.01em; margin-bottom: .9rem; }
.vorteile { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem 1.4rem; }
.vorteile li { display: grid; gap: .1rem; padding-left: 1.4rem; position: relative; }
.vorteile li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .55rem; height: .55rem;
  border-radius: 50%; background: var(--accent); }
.vorteile strong { font-weight: 650; font-size: .97rem; }
.vorteile span { color: var(--muted); font-size: .9rem; }
.hero { padding: clamp(1.8rem, 5vw, 3.2rem) 0 clamp(1.2rem, 3vw, 1.8rem); }
.hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
.hero__lead { font-size: clamp(1rem, 1.9vw, 1.15rem); }

/* ======================================================================
   ORIGINAL-NAVIMO-HEADER, HERO MIT PREIS-SLIDER, TRUST-STRIP
   1:1 aus der bestehenden Plattform übernommen (Struktur + Optik).
   Überschreibt die generischen Header-Regeln weiter oben.
   ====================================================================== */
.site-header { background: var(--stone); position: static; }
.top-bar { display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem; border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky; top: 0; z-index: 200; background: var(--stone); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; }
.logo-mark svg { width: 30px; height: 30px; fill: none; stroke: #22C55E; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.logo-name { font-family: "Manrope", var(--font); font-weight: 800; font-size: 20px; color: #fff;
  letter-spacing: .14em; }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav > a { color: rgba(255,255,255,.5); font-size: 13px; text-decoration: none; transition: color .15s; }
.nav > a:hover { color: #fff; }
.btn-nav { background: rgba(5,150,105,.2); color: #6EE7B7; border: 1px solid rgba(5,150,105,.4);
  padding: 7px 15px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none !important; }
.btn-nav:hover { background: rgba(5,150,105,.35) !important; }
.btn-steuer { background: #FEF3C7; color: #92400E; border: 1.5px solid #FBBF24; border-radius: 8px;
  padding: 6px 13px; font-weight: 700; text-decoration: none; font-size: 13px; }

/* Mega-Menü im dunklen Header (kompakt, erweitert die Navigation) */
.nav .mega__top { display: flex; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.nav .mega__btn { color: rgba(255,255,255,.5); background: none; font-size: 13px; padding: .35rem .5rem; }
.nav .mega__btn:hover, .nav .mega__item.open > .mega__btn,
.nav .mega__item.is-active > .mega__btn { color: #fff; background: rgba(255,255,255,.07); box-shadow: none; }
.nav .mega__ic { color: var(--em-mid); width: 15px; height: 15px; }
.nav .mega__panel { background: var(--card); border-color: var(--border); }

/* HERO (dunkel, im Header) */
.hero { padding: 2.75rem 2rem 2.25rem; text-align: center; background: var(--stone); }
.hero__inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 44px); color: #fff;
  line-height: 1.2; margin: 0 0 .75rem; letter-spacing: 0; }
.hero h1 em { font-style: italic; color: var(--em-mid); }
.hero-sub { color: rgba(255,255,255,.45); font-size: 16px; max-width: 500px; margin: 0 auto 2.25rem; }

/* PREIS-WIDGET mit Schieberegler */
.pw { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 20px;
  padding: 1.6rem 1.9rem; max-width: 760px; margin: 0 auto; text-align: left; }
.pw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 1rem; flex-wrap: wrap; }
.pw-top label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.5); }
.pw-inp { display: flex; align-items: center; gap: 8px; }
.pw-inp input { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px; color: #fff; font-size: 17px; font-weight: 700; font-family: var(--font);
  padding: 8px 14px; width: 185px; text-align: right; }
.pw-inp input:focus { outline: none; border-color: var(--em-mid); }
.pw-inp span { color: rgba(255,255,255,.4); font-size: 14px; }
.pw input[type=range] { width: 100%; height: 5px; border-radius: 5px; appearance: none; -webkit-appearance: none;
  cursor: pointer; outline: none; margin-bottom: 3px;
  background: linear-gradient(to right, #059669 0%, #059669 var(--pct,26.7%), rgba(255,255,255,.15) var(--pct,26.7%)); }
.pw input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--card); border: 3px solid var(--em); cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.pw input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card);
  border: 3px solid var(--em); cursor: pointer; }
#slider-marks { position: relative; height: 16px; margin: 4px 0 1rem; user-select: none; }
#slider-marks span { position: absolute; transform: translateX(-50%); font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,.5); white-space: nowrap; }
.prov-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pt { border-radius: 12px; padding: 12px 14px; text-align: center; border: 2px solid transparent; transition: all .15s; }
.pt.g, .pt.p { background: rgba(5,150,105,.08); border-color: rgba(5,150,105,.2); }
.pt.s { background: rgba(5,150,105,.2); border-color: rgba(5,150,105,.6); box-shadow: 0 0 0 2px rgba(5,150,105,.25); }
.pt-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.45); margin-bottom: 4px; }
.pt.s .pt-lbl { color: var(--em-mid); }
.pt-pct { font-size: 23px; font-weight: 700; color: #fff; line-height: 1; }
.pt-chf { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.pt.s .pt-chf { color: var(--em-mid); }
.pt-sel { font-size: 10px; color: var(--em-mid); margin-top: 3px; font-weight: 700; }
.pw-disclaimer { font-size: 11px; color: rgba(255,255,255,.3); text-align: center; margin-top: .9rem; line-height: 1.5; }

/* MOBILE */
.mob-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px; border-radius: 6px; }
.mob-menu-btn span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.75);
  border-radius: 2px; transition: all .2s; }
/* .mob-menu/.mob-menu-cta/.mob-menu-close/.mob-lang/.mob-menu-group* werden
   NICHT hier definiert - sie kommen bereits über original_shell.stylesheet()
   (siehe layout.py: _CSS_CACHE = stylesheet() + own), das ist original/
   index.html's eigenes <style> mit dem hellen Menü-Theme. Eine frühere
   Kopie dieser Regeln stand hier zusätzlich mit dunklen Farben (--stone2
   Hintergrund) - weil "own" NACH stylesheet() eingebunden wird, gewann bei
   gleicher Selektor-Spezifität immer die hier stehende, veraltete dunkle
   Version, wodurch das Menü auf jeder Unterseite schwarz statt hell
   erschien, sobald man von der Startseite wegnavigierte (Nutzer-Feedback
   Session 20.8.2026: "wird das Menü immer schwarz"). Absichtlich entfernt
   statt erneut dupliziert, damit exakt eine Quelle für dieses Markup
   übrigbleibt. */
@media (max-width: 900px) {
  .top-bar { padding: .8rem 1rem; }
  .mob-menu-btn { display: flex; }
  .nav { display: none; }
  .site-header.nav-open .mob-menu { display: flex; }
  .hero { padding: 2rem 1rem 1.75rem; }
  .pw { padding: 1.1rem 1rem; border-radius: 16px; }
  .pw-inp input { width: 150px; font-size: 15px; }
  .prov-tiers { gap: 5px; }
  .pt { padding: 8px 4px; }
  .pt-pct { font-size: 15px; } .pt-chf { font-size: 10px; } .pt-lbl { font-size: 9px; }
  .trust-strip { padding: .5rem .75rem; }
}
/* Dark-Mode-Remap deaktiviert: NAVIMO hat eine feste helle CI mit dunklem Header */
@media (prefers-color-scheme: dark) {
  :root { --paper: #ffffff; --surface: #fff; --ink: #1C1917; --muted: #6B6560; --line: #E7E4DF;
    --accent: #3F5F4A; --accent-strong: #2F4A38; --on-accent: #fff; }
  body { background: var(--paper); }
  .site-header { background: var(--stone); }
}

/* ======================================================================
   ORIGINAL-NAVIMO: FOOTER, BUTTONS, KARTEN, TYPO (1:1 übernommen)
   ====================================================================== */
.site-footer { background: var(--stone); color: rgba(255,255,255,.5); padding: 3rem 2rem 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr;
  gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: .85rem; }
.footer-tagline { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 280px; margin-bottom: 1rem; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.1); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.7); margin: 0 0 .85rem; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none;
  margin-bottom: .5rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 1.1rem 0; display: flex;
  justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) {
  .site-footer { padding: 2rem 1rem 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 1rem 0; flex-direction: column; gap: 4px; }
}

/* Buttons exakt wie im Original (Emerald, 9px Radius, Inter 700).
   Hintergrund bewusst --em2 statt --em: bei weisser 13px/700-Schrift lag der
   Kontrast mit --em (#059669) nur bei 3.76:1 (WCAG AA verlangt 4.5:1 für
   Normal-/Fettschrift unter 18.5px) - mit --em2 (#047857) liegt er bei ~5.5:1. */
.cta-primary, .btn--primary, .btn-p {
  display: inline-block; padding: 10px 16px; border-radius: 9px; background: var(--em2); color: #fff;
  border: none; font-size: 13px; font-weight: 700; font-family: var(--font); cursor: pointer;
  text-align: center; text-decoration: none; transition: background .15s; line-height: 1.3; }
.cta-primary:hover, .btn--primary:hover, .btn-p:hover { background: #036048; color: #fff; transform: none; }
.cta-secondary, .btn-s { display: inline-block; padding: 8px 14px; border-radius: 9px; background: transparent;
  color: var(--em2); border: 1.5px solid var(--em-mid); font-size: 12px; font-weight: 600; font-family: var(--font);
  text-align: center; text-decoration: none; transition: all .15s; }
.cta-secondary:hover, .btn-s:hover { background: var(--em-light); color: var(--em2); transform: none; border-color: var(--em-mid); }

/* Karten & Flächen: warme Stone-Optik statt generischer Schatten.
   body{background} bewusst NICHT hier gesetzt - die frühere Regel
   (background: var(--paper), Zeile ~44/557) soll gewinnen, sonst
   verschwindet die dezente Off-White-Fläche hinter reinweissen Karten
   sitweit (genau das "weisse Box auf weisser Fläche"-Problem). */
body { color: var(--text); font-size: 15px; line-height: 1.6; }
/* Formularfelder mind. 16px: unter 16px löst iOS Safari beim Fokussieren
   automatisch einen Pinch-Zoom auf die ganze Seite aus (Mobile-Audit-
   Befund, Session 18.8.2026) - Textgrösse sonst unverändert bei 15px. */
input, select, textarea { font-size: 16px; }
main.wrap, .page-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }
/* Rechner-Seiten: die 20rem-Illustrationsspalte frisst bei 1100px vom
   .toolx-Formular so viel weg, dass die Karte (~658px) deutlich schmaler
   wirkt als die Full-Bleed-CTA-/Footer-Bänder darunter (1020-1280px) -
   unruhiges "schmale Karte in breiter Seite"-Bild (Nutzer-Feedback Session
   24.8.2026: "gleiche Breite wie der Text"). Breiterer Container nur hier,
   damit das Formular wieder auf ähnlicher Breite wie die Bänder liegt. */
main.wrap:has(.calc-page-grid) { max-width: 1360px; }
/* Full-Bleed-Hero-Seiten (Region/Gemeinde/Kanton): kein Top-Padding, damit
   das Hero-Bild bündig unter dem Header sitzt, statt mit Lücke - Session
   5.8.2026, gebimo-Vorbild. main.wrap.wrap--hero-bleed statt nur
   .wrap--hero-bleed, um dieselbe Spezifität wie die Regel oben zu haben
   und per Quellreihenfolge zuverlässig zu gewinnen. */
main.wrap.wrap--hero-bleed { padding-top: 0; padding-bottom: 0; }
/* Schwarzes Abschluss-Band soll bündig in den Footer übergehen (explizite
   Vorgabe) - .site-footer hat sonst site-weit 4rem margin-top. */
main.wrap.wrap--hero-bleed + .site-footer { margin-top: 0; }
/* Dieselbe Regel für Seiten OHNE Hero-Bleed, wenn das schwarze Abschluss-
   Band zufällig das letzte Kind von <main> ist (z.B. /makler/beispielprofil)
   - main.wrap's eigenes padding-bottom (3rem) addierte sich sonst zum
   bereits grosszügigen Innenabstand des Bands selbst und liess einen
   auffälligen weissen Spalt vor dem Footer entstehen (Nutzer-Feedback
   Session 24.8.2026: "der weisse Spalt muss weg unten"). */
main.wrap:has(> .cta-band--black:last-child) { padding-bottom: 0; }
main.wrap:has(> .cta-band--black:last-child) + .site-footer { margin-top: 0; }
.card, .toolx, .cockpit, .dash, .lv, .makler-card, .acc__item, .dashx__valgrid .stat,
.panel, .mega__panel { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm); }
.card:hover, .makler-card:hover { border-color: var(--border2); }
.dashx__valgrid .stat::before { background: var(--em); }
.toolx, .cockpit, .dash, .lv { padding: 1.5rem 1.75rem; }
h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
main h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.25; }
main h2 { font-size: 20px; font-weight: 700; letter-spacing: 0; }
main h3 { font-size: 16px; font-weight: 700; }
.eyebrow, .tool__eyebrow { color: var(--em2); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; }
.flow__n { background: rgba(5,150,105,.12); color: var(--em2); }
.fitbar i, .score-bar i, .ring__fg { background: var(--em); }
.ring__fg { stroke: var(--em); }
.qa__chip:hover, .cta-secondary:hover { border-color: var(--em); }
a { color: var(--em2); }
@media (max-width: 900px) { main.wrap, .page-wrap { padding: .9rem .75rem 2.5rem; } }

/* Hero: Ergebnis-Kopf, Tier-Hinweise, Kanton-/Objekttyp-Auswahl (Original) */
.pw-res-head { padding-top: 1.15rem; margin: .35rem 0 .75rem; border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: 12px; line-height: 1.45; }
.pw-res-head b { color: #fff; font-weight: 700; }
.pw-res-head span { color: rgba(255,255,255,.4); }
.pt-hint { font-size: 10px; line-height: 1.35; color: rgba(255,255,255,.42); margin-top: 5px; }
.pw-cta { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid rgba(255,255,255,.1); }
.pw-cta label { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55);
  margin-bottom: .5rem; text-transform: none; letter-spacing: 0; }
.pw-frage + .pw-frage { margin-top: .85rem; }
.kw-sel { width: 100%; padding: 1.05rem 2.6rem 1.05rem 1.2rem; font-size: 17px; font-family: inherit;
  font-weight: 700; color: #fff; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-color: var(--em2); border: none; border-radius: 13px; text-align: left;
  box-shadow: 0 6px 22px rgba(5,150,105,.4);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 20px; }
.kw-sel:focus-visible { outline: 3px solid var(--em-mid); outline-offset: 2px; }
.kw-sel option { color: var(--ink); background: #fff; font-weight: 500; }

/* ======================================================================
   ORIGINAL-MAKLERKARTEN + KANTONSEINSTIEG (Startseite)
   ====================================================================== */
.cards-list { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.card:hover { border-color: var(--border2); }
.card-main { display: grid; grid-template-columns: 1fr 175px; gap: 0; padding: 1.25rem 1.5rem 1.1rem; }
.card-right { border-left: 1px solid var(--border); padding-left: 1.25rem; display: flex;
  flex-direction: column; gap: 10px; justify-content: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  border: 2px solid var(--border); box-shadow: none; background: var(--em); font-size: 1.05rem; }
.google-rating { display: inline-flex; align-items: center; gap: 6px; background: #F8FAFC;
  border: 1px solid var(--border2); border-radius: 8px; padding: 4px 10px; margin-bottom: 8px;
  font-size: 13px; transition: border-color .15s; }
.google-rating:hover { border-color: #4285F4; background: #F0F4FF; }
.g-logo { font-size: 13px; font-weight: 800; letter-spacing: -1px; }
.g-logo .g-b { color: #4285F4; } .g-logo .g-r { color: #EA4335; }
.g-logo .g-y { color: #FBBC05; } .g-logo .g-g { color: #34A853; }
.google-rating .stars { color: #F59E0B; letter-spacing: -1px; }
.google-rating b { color: var(--text); }
.g-count { color: var(--muted); font-size: 12px; }
.prov-box { text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap; }
.section-hint { font-size: 12px; color: var(--em2); font-weight: 600; margin-left: .6rem; }
.section-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.25rem; }
.section-cta .btn-p, .section-cta .btn-s { width: auto; padding-left: 20px; padding-right: 20px; }
.makler-section, .kanton-section { margin: 1.5rem 0 2.5rem; }
.kt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-chip { display: inline-block; padding: 7px 14px; border-radius: 20px; background: var(--card);
  border: 1.5px solid var(--border); color: var(--text); text-decoration: none; font-size: 13px;
  font-weight: 600; transition: all .15s; }
.kt-chip:hover { border-color: var(--em); color: var(--em2); background: var(--em-light); }
@media (max-width: 700px) {
  .card-main { display: flex; flex-direction: column; padding: .8rem .85rem .7rem; }
  .card-right { flex-direction: row; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border); border-left: none; padding: 8px 0 0; margin-top: 4px; }
  .prov-box { background: none; border: none; padding: 0; text-align: left; }
  .cards-list { gap: 10px; }
  .avatar { width: 38px; height: 38px; font-size: .85rem; }
}

/* Kompakte Hauptnavigation: ein Menüpunkt für alle Eigentümer-Tools */
.mega__item--root > .mega__panel--wide { min-width: min(720px, 88vw); padding: .9rem; }
.mega__panel-in--cols { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: .3rem 1.2rem; }
.mega__col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: .35rem 0 .3rem; }
.mega__col .mega__links a { padding: .28rem .35rem; font-size: .85rem; }
.nav .mega__btn { color: rgba(255,255,255,.5); font-size: 13px; font-weight: 400; }
@media (max-width: 1050px) { .mega__panel-in--cols { grid-template-columns: repeat(2, 1fr); } }

/* ======================================================================
   ORIGINAL-MAKLERLISTE: Filter, Sponsoren-Karte, Berater, Details
   ====================================================================== */
.filter-bar { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px;
  padding: .9rem 1rem; margin: 1.25rem 0 1.25rem; }
.fbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.f-grp { display: flex; flex-direction: column; gap: 4px; min-width: 165px; flex: 1 1 165px; }
.f-grp label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); }
.f-grp select { border: 1px solid var(--border2); border-radius: 8px; padding: 8px 11px; font-size: 13px;
  font-family: var(--font); background: var(--card); color: var(--text); cursor: pointer; }
.f-grp select:focus { outline: 2px solid var(--em-mid); outline-offset: 1px; }
/* Sortierung + Filter-Toggle sichtbar direkt über den Ergebnissen, wie im
   NAVIMO-Original: Eigentümer soll Reihenfolge selbst kontrollieren, ohne
   danach suchen zu müssen. Die Feinfilter (Spezialisierung/Leistungen)
   bleiben eingeklappt und werden über "Suche verfeinern" aufgeklappt. */
.rb-tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex: 0 0 auto; }
.rb-sort { padding: .62rem .8rem; border: 1.5px solid var(--border); border-radius: 11px;
  background: var(--card); color: var(--text); font-size: 13.5px; font-family: var(--font);
  font-weight: 600; cursor: pointer; }
.rb-sort:focus { outline: none; border-color: var(--em); box-shadow: 0 0 0 3px var(--em-light); }
.rb-filter { display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1rem;
  border: 1.5px solid var(--border); border-radius: 11px; background: var(--card); color: var(--text);
  font-size: 13.5px; font-family: var(--font); font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.rb-filter svg { width: 15px; height: 15px; color: var(--muted); transition: color .15s; }
.rb-filter:hover { border-color: var(--em); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.rb-filter:hover svg { color: var(--em2); }
.rb-filter[aria-expanded="true"] { border-color: var(--em); color: var(--em2); }
.rb-filter[aria-expanded="true"] svg { color: var(--em2); }
@media (max-width: 560px) {
  .rb-tools { width: 100%; margin-left: 0; }
  .rb-sort { flex: 1; }
  .rb-filter { flex: 1; justify-content: center; }
}
.btn-reset { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border2); background: transparent;
  color: var(--muted); font-size: 13px; cursor: pointer; font-family: var(--font); }
.btn-reset:hover { background: var(--surface); color: var(--text); }
.svc-filter { margin-top: .85rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.svc-filter summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--em2); }
.sheet-fg { margin-top: .8rem; }
.sheet-fg h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 0 0 .45rem; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px;
  border: 1.5px solid var(--border); border-radius: 20px; background: var(--card); cursor: pointer; }
.svc-chip:hover { border-color: var(--em); color: var(--em2); }
.svc-chip input { accent-color: var(--em); }

.mcard { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px;
  overflow: hidden; position: relative; }
.mcard:hover { border-color: var(--border2); }
.mcard.advert { border-color: #FCD34D; box-shadow: 0 0 0 2px rgba(252,211,77,.18); }
.advert-label { background: #FEF3C7; color: #92400E; font-size: 11px; font-weight: 700;
  padding: 4px 12px; letter-spacing: .04em; }
.card-top-row { display: flex; gap: 12px; align-items: flex-start; }
.mcard .avatar { display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border);
  font-weight: 800; font-size: 15px; margin-top: 2px; box-shadow: none; }
.svc-list, .soft-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.svc-list li, .soft-list li { padding-left: 1.1rem; position: relative; margin-bottom: 3px; }
.svc-list li::before, .soft-list li::before { content: "✓"; position: absolute; left: 0; color: var(--em2); font-weight: 700; }
@media (max-width: 700px) {
  .mcard .avatar { width: 38px; height: 38px; font-size: 12px; }
  .f-grp { min-width: 140px; }
}

/* --- Navigations-Chat: kostenloser, rein clientseitiger Stichwort-Helfer
   (Session 18.8.2026, explizite Vorgabe: "so einen wie bei gebimo.ch...
   kostenlos... mit dem NAVIMO-Icon"). Fixe Sprechblase unten rechts, öffnet
   ein kompaktes Panel - eigener .nchat-Namespace, keine Überschneidung mit
   bestehenden Klassen. --- */
.nchat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 550; }
.nchat__toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  display: grid; place-items: center; transition: transform .15s;
}
.nchat__toggle:hover { transform: scale(1.06); }
.nchat__toggle svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.nchat__toggle-x { display: none; font-size: 26px; line-height: 1; }
.nchat__badge {
  position: absolute; top: -3px; right: -3px; width: 20px; height: 20px;
  border-radius: 50%; background: #DC2626; color: #fff; font-size: .72rem;
  font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.nchat__bubble {
  position: absolute; right: 68px; bottom: 8px; white-space: nowrap;
  background: #fff; color: var(--ink); border: 1px solid var(--border2);
  border-radius: 999px; padding: .6rem 1rem; font-size: .85rem; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.16); cursor: pointer;
}
.nchat__bubble::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-left: 6px solid #fff;
}
.nchat__toggle--open .nchat__toggle-icon { display: none; }
.nchat__toggle--open .nchat__toggle-x { display: block; }
.nchat__panel {
  position: absolute; right: 0; bottom: 68px; width: min(340px, calc(100vw - 2.5rem));
  height: min(480px, calc(100vh - 7rem)); background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22); border: 1px solid var(--border2);
  display: flex; flex-direction: column; overflow: hidden;
}
.nchat__head {
  display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem;
  background: var(--accent-strong); color: #fff; flex: none;
}
.nchat__head-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.nchat__head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.nchat__head span { font-size: .78rem; opacity: .85; font-weight: 400; }
.nchat__close {
  background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer;
  line-height: 1; padding: 0 .2rem; opacity: .85;
}
.nchat__close:hover { opacity: 1; }
.nchat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.nchat__msg { max-width: 88%; font-size: .88rem; line-height: 1.45; }
.nchat__msg p { margin: 0 0 .4rem; }
.nchat__msg p:last-child { margin-bottom: 0; }
.nchat__msg--bot { align-self: flex-start; background: var(--surface-muted); border-radius: 12px 12px 12px 2px; padding: .6rem .8rem; }
.nchat__msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 12px 12px 2px 12px; padding: .6rem .8rem; }
.nchat__links { display: flex; flex-direction: column; gap: .3rem; }
.nchat__links a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.nchat__links a:hover { text-decoration: underline; }
.nchat__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.nchat__chip {
  background: #fff; border: 1px solid var(--border2); border-radius: 999px;
  padding: .35rem .7rem; font-size: .78rem; cursor: pointer; color: var(--ink);
}
.nchat__chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.nchat__form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border2); flex: none; }
.nchat__form input {
  flex: 1; border: 1px solid var(--border2); border-radius: 999px; padding: .55rem .9rem;
  /* mind. 16px gegen iOS-Auto-Zoom beim Fokussieren, siehe Kommentar bei
     body{font-size} weiter oben. */
  font-size: 16px; font-family: var(--font);
}
.nchat__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nchat__send {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--accent);
  color: #fff; font-size: 1.1rem; cursor: pointer; flex: none;
}
.nchat__send:hover { background: var(--accent-strong); }
@media (max-width: 480px) {
  .nchat { right: .75rem; bottom: .75rem; }
  .nchat__panel { right: -.5rem; }
  /* Kleiner auf Mobile: 56px verdeckte zu oft Karteninhalt beim Scrollen
     durch lange Listen (Nutzer-Feedback Session 18.8.2026). */
  .nchat__toggle { width: 46px; height: 46px; }
  .nchat__toggle svg { width: 21px; height: 21px; }
  .nchat__badge { width: 17px; height: 17px; font-size: .62rem; }
}

/* ── Maklerkarte: fehlende/kollidierende Klassen nachgezogen ──────────────────
   makler_card.py rendert Markup 1:1 aus original/index.html (siehe Docstring
   dort), aber ein Teil der zugehörigen Klassen (Badges, Berater-Strip,
   Provisions-Zahlen, Leistungsgruppen) hatte hier nie eigene Regeln - die
   oben stehenden Bare-Selektoren (.card-main/.card-right/.avatar/
   .google-rating/.g-logo/.g-count, Zeilen ~1253ff.) stammen aus einer
   älteren, inzwischen ersetzten Kartenvariante (Klasse "card", nirgends mehr
   erzeugt) und passen nicht zu den tatsächlichen mcard-Werten (falsche
   Grid-Spalten, justify-content:center statt space-between). Mit .mcard
   gescopt, damit diese Regeln gewinnen, ohne die alten Selektoren zu löschen. */
.mcard .card-main { display: grid; grid-template-columns: 1fr 155px; gap: 0;
  padding: 1.25rem 1.5rem 1.1rem; }
.mcard .card-top-row { grid-column: 1; margin-bottom: 10px; padding-right: 1.25rem; min-width: 0; }
.mcard .card-headings { min-width: 0; flex: 1; }
.mcard .card-h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2;
  margin: 0 0 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mcard .card-standort { font-size: 14px; color: var(--muted); }
.mcard .card-right { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--border);
  padding-left: 1.25rem; display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; }
.mcard .prov-box { text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; }
/* CTA soll direkt unter der Provisionsbox stehen statt durch space-between
   auseinandergerissen zu werden; Website-Link etwas kräftiger als der
   ursprüngliche 11px-Mini-Link. */
.mcard .card-right a[href*="http"] { font-size: 14px !important; font-weight: 700 !important; }
.mcard .prov-ab { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--light); margin-bottom: 2px; }
.mcard .prov-pct { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -1px; line-height: 1.1; }
.mcard .prov-chf { font-size: 13px; font-weight: 700; color: var(--em2); margin-top: 3px; }
.mcard .prov-base { font-size: 10px; color: var(--light); margin-top: 2px; line-height: 1.4; }
.mcard .g-stars { color: #FBBC05; font-size: 13px; letter-spacing: 1px; }
.mcard .g-num { font-size: 13px; font-weight: 600; color: var(--text); }

/* Badges (Admin-Vergabe, standortgebunden) und Spezialitäten-Tags */
.mcard .badge-block { margin-top: 10px; }
.mcard .spez-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.mcard .spez-tag { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px;
  background: #F3E8FF; color: #6B21A8; border: 1px solid #DDD6FE; }
.mcard .bdg { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  white-space: nowrap; letter-spacing: .02em; }
.mcard .bdg-gold { background: #FEF3C7; color: #92400E; }

/* Ansprechpartner-Strip */
.mcard .berater-strip { display: flex; align-items: center; gap: 10px; background: #F7F6F3;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin: 8px 0; }
.mcard .berater-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0;
  border: 1.5px solid var(--border2); }
.mcard .berater-info { flex: 1; min-width: 0; }
.mcard .berater-label { font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--light); margin-bottom: 1px; }
.mcard .berater-name { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.25; }
.mcard .berater-meta { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* Softskills und Leistungsgruppen */
.mcard .softskills { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 7px; }
.mcard .sk { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px;
  background: var(--em-light); color: var(--em2); border: 1px solid var(--em-mid); }
.mcard .svc-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.mcard .svc-grp2 { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mcard .svc-grp2-h { display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 13px; background: var(--surface); border: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); text-align: left; }
.mcard .svc-grp2-h:hover { background: var(--paper); }
.mcard .svc-grp2-meta { display: flex; align-items: center; gap: 9px; }
.mcard .svc-grp2-cnt { font-size: 11px; font-weight: 700; background: var(--em-light);
  color: #065F46; border-radius: 20px; padding: 1px 8px; }
.mcard .svc-grp2-arr { font-size: 10px; color: var(--muted); transition: transform .2s var(--ease); }
.mcard .svc-grp2.open .svc-grp2-arr { transform: rotate(90deg); }
.mcard .svc-grp2-chips { display: none; flex-wrap: wrap; gap: 6px; padding: 0 13px 11px; }
.mcard .svc-grp2.open .svc-grp2-chips { display: flex; }
.mcard .st { font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 500; }
.mcard .st-normal { background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; }

@media (max-width: 700px) {
  /* .mcard .card-main/.card-right (oben, höhere Spezifität als die alte
     Bare-Selektor-Regel bei Zeile ~1284) müssen hier erneut auf Mobile
     gestapelt werden - sonst gewinnt auf allen Breiten das Desktop-Grid
     und der Kartenkopf quetscht sich in eine ~220px-Spalte. */
  .mcard .card-main { display: flex; flex-direction: column; padding: .8rem .85rem .7rem; }
  .mcard .card-top-row, .mcard .card-top-info { padding-right: 0; }
  .mcard .card-right { flex-direction: row; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border); border-left: none; padding: 8px 0 0; margin-top: 4px; }
  .mcard .prov-box { background: none; border: none; padding: 0; text-align: left; }
  .mcard .card-h3 { font-size: 15px; }
  .mcard .card-standort { font-size: 11.5px; }
  .mcard .bdg { font-size: 9px; padding: 2px 6px; }
  .mcard .berater-strip { padding: 6px 8px; }
  .mcard .berater-avatar { width: 32px; height: 32px; font-size: 11px; }
  .mcard .berater-label { display: none; }
  .mcard .berater-name { font-size: 13px; }
  .mcard .berater-meta { font-size: 11px; }
  .mcard .spez-tag, .mcard .sk, .mcard .st { font-size: 9.5px; padding: 2px 6px; }
}

/* Maklervergleich als Suchoberflaeche: heller Preis-/Auswahlblock, knapper Kopf */
.lv-head { margin: 1.25rem 0 1rem; }
.lv-head h1 { margin: 0 0 .35rem; }
.lv-head .lead { color: var(--muted); margin: 0; max-width: 44rem; }
/* Suchbereich auf dieselbe Breite wie die Maklerliste: kein eigenes max-width,
   derselbe .wrap-Container wie .cards-list darunter - Suchformular und
   Maklerliste beginnen/enden auf derselben Linie. */
.lv-controls { max-width: none; }
.pw--light { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px;
  max-width: none; margin: 0; }
.pw--light .pw-top label { color: var(--muted); }
.pw--light .pw-inp input { background: var(--surface); border: 1px solid var(--border2); color: var(--text); }
.pw--light .pw-res-head b { color: var(--text); }
.pw--light input[type=range] { background: linear-gradient(to right, var(--em) 0%, var(--em) var(--pct,26.7%), var(--border) var(--pct,26.7%)); }
.pw--light #slider-marks span { color: var(--muted); }
.pw--light .pt { background: var(--surface); border-color: var(--border); }
.pw--light .pt.s { background: var(--em-light); border-color: var(--em); }
.pw--light .pt-lbl { color: var(--muted); }
.pw--light .pt.s .pt-lbl, .pw--light .pt.s .pt-chf { color: var(--em2); }
.pw--light .pt-pct { color: var(--text); }
.pw--light .pt-chf, .pw--light .pt-hint { color: var(--muted); }
.pw--light .pw-cta { border-top-color: var(--border); }
.pw--light .pw-cta label { color: var(--muted); }
.lv-foot { margin: 1.5rem 0 0; font-size: 13px; color: var(--muted); }
