/* Gutachtenhelfer. Ein Stylesheet für beide Länder. Zuerst Handy (375 px), dann breiter. Serifenlose Systemschrift, keine externen Abrufe. */

:root {
  --papier: #f6f7f4;
  --karte: #ffffff;
  --sand: #eef1ec;
  --linie: #dfe4dd;
  --tinte: #0d1b16;
  --text: #2c3833;
  --leise: #58645e;
  --gruen: #0b6b52;
  --gruen-tief: #0a3a2e;
  --gruen-hell: #e3f4ec;
  --minze: #d3f0e2;
  --ton: #0b6b52;
  --ton-tief: #0a3a2e;
  --ton-hell: #fff5e3;
  --bernstein: #b45309;
  --warn: #92400e;
  --ja: #0b6b52;
  --nein: #a3271b;
  --radius: 18px;
  --schatten: 0 1px 2px rgba(13, 27, 22, .05), 0 12px 32px -18px rgba(13, 27, 22, .22);
  --schatten-gross: 0 2px 4px rgba(13, 27, 22, .04), 0 28px 60px -28px rgba(13, 27, 22, .32);
  /* Systemschrift, serifenlos. In Produktion kann hier eine selbst gehostete Schrift davor stehen. Keine externen Abrufe. */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --serif: var(--sans);
  --breite: 1140px;
  --lese: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gruen-tief); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--sans); color: var(--tinte); line-height: 1.15; font-weight: 750; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: 1.95rem; }
h2 { font-size: 1.5rem; margin-top: 3rem; }
h3 { font-size: 1.15rem; margin-top: 1.6rem; letter-spacing: -.015em; }
p, ul, ol, dl, table { margin: 1rem 0 0; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: .35rem; }
strong { color: var(--tinte); }
small, .klein { font-size: .9rem; color: var(--leise); }
hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5rem 0; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rand { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1.1rem; }
.lese { max-width: var(--lese); }

/* ---------- Kopf */
.kopf { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf .rand { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .65rem; padding-bottom: .65rem; }
.marke { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinte); min-width: 0; }
.marke svg { flex: none; width: 34px; height: 34px; }
.marke-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.marke-zeile { display: none; font-size: .8rem; color: var(--leise); line-height: 1.2; }
.kopf .knopf { padding: .5rem .95rem; font-size: .95rem; white-space: nowrap; }
.haupt-nav { background: var(--karte); border-bottom: 1px solid var(--linie); }
.haupt-nav .rand { padding: 0; }
.haupt-nav ul { list-style: none; margin: 0; padding: 0 .6rem; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.haupt-nav ul::-webkit-scrollbar { display: none; }
.haupt-nav li { margin: 0; flex: none; }
.haupt-nav a { display: block; margin: .45rem 0; padding: .35rem .7rem; font-size: .93rem; color: var(--text); text-decoration: none; border-radius: 999px; white-space: nowrap; }
.haupt-nav a:hover { color: var(--gruen-tief); background: var(--sand); }
.haupt-nav a[aria-current] { color: var(--gruen-tief); font-weight: 650; background: var(--minze); }

/* ---------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer;
  background: var(--gruen); color: #fff; border: 2px solid var(--gruen); border-radius: 14px;
  padding: .8rem 1.3rem; font: 650 1.02rem/1.25 var(--sans); text-decoration: none; text-align: center;
  transition: background .15s, transform .1s;
}
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf.zweit { background: var(--karte); color: var(--gruen-tief); border-color: var(--linie); }
.knopf.zweit:hover { background: var(--gruen-hell); border-color: var(--gruen); color: var(--gruen-tief); }
.knopf.gross { padding: 1rem 1.7rem; font-size: 1.1rem; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* ---------- Brotkrumen, Stand */
main { display: block; padding: 0 0 4rem; }
.krumen { font-size: .88rem; color: var(--leise); padding-top: 1rem; }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .45rem; }
.krumen li { margin: 0; }
.krumen li + li::before { content: "›"; margin-right: .45rem; color: #9aa59f; }
.krumen a { color: var(--leise); }
.stand { font-size: .9rem; color: var(--leise); margin-top: .9rem; }
.stand::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gruen); margin-right: .5rem; vertical-align: .08em; }

/* ---------- Seitenkopf allgemein */
.seitenkopf { padding: 1.4rem 0 .4rem; }
.seitenkopf .lead, .lead { font-size: 1.14rem; line-height: 1.55; color: var(--tinte); margin-top: 1rem; }
.kennung { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gruen); margin: 0 0 .6rem; }

/* ---------- Ratgeber (Format aus INHALT-FORMAT.md) */
.ratgeber { max-width: var(--lese); padding-top: 1.4rem; }
.ratgeber .ort { display: none; }
.ratgeber section { margin-top: .4rem; }
.kurz { background: var(--gruen-hell); border-radius: var(--radius); padding: 1.2rem 1.25rem 1.3rem; margin-top: 1.6rem; border-left: 5px solid var(--gruen); }
.kurz h2 { margin-top: 0; font-size: 1.2rem; }
.kurz ul { list-style: none; padding: 0; margin-top: .8rem; }
.kurz li { padding-left: 1.6rem; position: relative; }
.kurz li + li { margin-top: .65rem; }
.kurz li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .45rem; border-left: 2.5px solid var(--gruen); border-bottom: 2.5px solid var(--gruen); transform: rotate(-45deg); }

.tabelle { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; font-size: .98rem; margin-top: 1.2rem; }
.tabelle caption { caption-side: bottom; text-align: left; font-size: .86rem; color: var(--leise); padding: .6rem .2rem 0; }
.tabelle th, .tabelle td { padding: .7rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle thead th { background: var(--sand); font-size: .86rem; color: var(--tinte); font-weight: 600; }
.tabelle tbody tr:last-child td, .tabelle tbody tr:last-child th { border-bottom: 0; }
.tabelle td.z, .tabelle th.z { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle tbody th { font-weight: 600; color: var(--tinte); }
.tabelle.breit { display: block; overflow-x: auto; border-radius: var(--radius); }
.tabelle.breit th, .tabelle.breit td { min-width: 8.5rem; }
.tabelle.breit caption { display: block; }
.tabelle-rahmen { overflow-x: auto; margin-top: 1.2rem; border-radius: var(--radius); }
.tabelle-rahmen .tabelle { margin-top: 0; }

.balken { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; margin-top: 1.3rem; }
.balken-titel { margin: 0 0 .8rem; font-weight: 600; color: var(--tinte); font-family: var(--serif); font-size: 1.08rem; }
.b { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name wert" "spur spur"; gap: .15rem .8rem; padding: .5rem 0; border-top: 1px solid #efe8db; }
.balken-titel + .b { border-top: 0; }
.b-name { grid-area: name; font-size: .93rem; color: var(--text); }
.b-wert { grid-area: wert; font-weight: 700; color: var(--tinte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-spur { grid-area: spur; display: block; height: .7rem; background: var(--sand); border-radius: 999px; overflow: hidden; position: relative; }
.b-spur > span { display: block; height: 100%; min-width: 3px; background: var(--gruen); border-radius: 999px; }
.b.fehlt .b-spur > span { background: transparent; }
.b.fehlt .b-wert { color: var(--leise); font-weight: 400; }
.balken-quelle { font-size: .84rem; color: var(--leise); margin: .8rem 0 0; }
.balken.zeit .b { grid-template-columns: 3rem 1fr 4.6rem; grid-template-areas: "name spur wert"; align-items: center; padding: .28rem 0; border-top: 0; }
.balken.zeit .b-wert { text-align: right; font-weight: 600; font-size: .95rem; }
/* Jahr ohne Wert: kein Balken, der Hinweis steht an seiner Stelle und hat die ganze Breite. In der schmalen Wertspalte ragte er über den Kartenrand. */
.balken.zeit .b.fehlt { grid-template-columns: 3rem minmax(0, 1fr); grid-template-areas: "name wert"; }
.balken.zeit .b.fehlt .b-spur { display: none; }
.balken.zeit .b.fehlt .b-wert { text-align: left; font-weight: 400; font-size: .9rem; white-space: normal; }
.balken.zeit .b:last-of-type .b-spur > span { background: var(--gruen-tief); }
.balken.zeit .b:last-of-type .b-name { font-weight: 700; color: var(--tinte); }

.schritte { list-style: none; padding: 0; counter-reset: schritt; margin-top: 1.4rem; }
.schritte > li { counter-increment: schritt; position: relative; padding: 0 0 1.4rem 3.1rem; margin: 0; }
.schritte > li::before { content: counter(schritt); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gruen); color: #fff; font: 700 1.05rem/2.2rem var(--serif); text-align: center; }
.schritte > li::after { content: ""; position: absolute; left: 1.05rem; top: 2.5rem; bottom: .3rem; width: 2px; background: var(--linie); }
.schritte > li:last-child::after { display: none; }
.schritte h3 { margin-top: 0; padding-top: .3rem; }
.schritte dl { display: grid; grid-template-columns: 4.6rem 1fr; gap: .35rem .7rem; margin-top: .6rem; font-size: .98rem; }
.schritte dt { font-weight: 600; color: var(--gruen-tief); }
.schritte dd { margin: 0; }

.wege { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: 1.3rem; }
.weg { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.15rem 1.2rem; box-shadow: var(--schatten); }
.weg h3 { margin-top: 0; font-size: 1.12rem; }
.weg-preis { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--gruen); margin-top: .3rem; line-height: 1.2; }
.weg p { font-size: .97rem; }
.weg p + p { margin-top: .6rem; }

.beispiel { background: var(--karte); border: 1px dashed #c9bda6; border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; margin-top: 1.3rem; }
.beispiel h3 { margin-top: 0; }
.beispiel.fiktiv { background: #fdfaf4; }
.hinweis { background: var(--ton-hell); border-left: 5px solid var(--bernstein); border-radius: var(--radius); padding: .9rem 1.1rem 1rem; margin-top: 1.3rem; }
.hinweis p:first-child { margin-top: 0; }
.hinweis.ruhig { background: var(--sand); border-left-color: #b9ad97; }

.faq details, details.klapp { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); margin-top: .7rem; }
.faq summary, details.klapp summary { cursor: pointer; list-style: none; padding: .95rem 2.8rem .95rem 1.1rem; font-weight: 600; color: var(--tinte); position: relative; }
.faq summary::-webkit-details-marker, details.klapp summary::-webkit-details-marker { display: none; }
.faq summary::after, details.klapp summary::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: .6rem; height: .6rem; border-right: 2.5px solid var(--ton); border-bottom: 2.5px solid var(--ton); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after, details.klapp[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary), details.klapp > :not(summary) { margin: 0; padding: 0 1.1rem 1rem; }
details.klapp > :not(summary) + :not(summary) { padding-top: 0; }

.weiter { background: var(--gruen-tief); color: #e6f0ec; border-radius: 20px; padding: 1.6rem 1.3rem 1.8rem; margin-top: 3rem; }
.weiter h2 { color: #fff; margin-top: 0; }
.weiter a:not(.knopf) { color: #fff; }
.weiter strong { color: #fff; }
.weiter .knopf.zweit { background: transparent; color: #fff; border-color: #a9c7bc; }
.weiter .knopf.zweit:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.weiter .knopf { margin: .6rem .5rem 0 0; }
.weiter ul { padding-left: 1.2rem; }

.quellen { font-size: .9rem; color: var(--leise); margin-top: 3rem; border-top: 1px solid var(--linie); padding-top: .5rem; }
.quellen h2 { font-size: 1.15rem; margin-top: 1rem; }
.quellen li + li { margin-top: .5rem; }
.quellen a { overflow-wrap: anywhere; }

/* ---------- Start */
.held { background: radial-gradient(120% 90% at 0% 0%, var(--minze) 0%, rgba(211, 240, 226, 0) 60%), linear-gradient(180deg, #fff 0%, var(--papier) 100%); }
.held .rand { padding-top: 1.5rem; padding-bottom: 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.held h1 { font-size: clamp(2rem, 7.4vw, 3.5rem); letter-spacing: -.04em; line-height: 1.04; font-weight: 800; }
.held h1 em { font-style: normal; color: var(--gruen); }
.held .lead { margin-top: .6rem; max-width: 38rem; color: var(--text); font-size: 1.05rem; }
.haken { list-style: none; padding: 0; margin-top: 1.2rem; }
.haken li { padding-left: 1.9rem; position: relative; }
.haken li + li { margin-top: .5rem; }
.haken li::before { content: ""; position: absolute; left: .1rem; top: .42em; width: .95rem; height: .5rem; border-left: 3px solid var(--gruen); border-bottom: 3px solid var(--gruen); transform: rotate(-45deg); }
.abschnitt { padding: 3rem 0 0; }
.abschnitt > .rand > h2:first-child, .abschnitt h2.erste { margin-top: 0; }
.abschnitt.hell { background: var(--karte); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding-bottom: 2.6rem; margin-top: 2.6rem; }
.unter { color: var(--leise); margin-top: .5rem; max-width: 40rem; }

.kacheln { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: 1.3rem; list-style: none; padding: 0; }
.kacheln li { margin: 0; min-width: 0; }
.kachel { overflow-wrap: break-word; hyphens: manual; }
.kachel { display: flex; flex-direction: column; gap: .25rem; height: 100%; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1rem 1.05rem; text-decoration: none; color: var(--text); box-shadow: var(--schatten); transition: border-color .15s, transform .15s; }
.kachel:hover { border-color: var(--gruen); transform: translateY(-2px); color: var(--text); }
.kachel b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; color: var(--tinte); line-height: 1.25; }
.kachel span { font-size: 1rem; color: var(--text); line-height: 1.45; }
.kachel i { font-style: normal; font-size: .88rem; font-weight: 650; color: var(--gruen); margin-top: auto; padding-top: .5rem; }
.kachel i::after { content: " →"; }
.kacheln.gross { grid-template-columns: 1fr; }
.kacheln.gross .kachel { padding: 1.2rem 1.2rem 1.25rem; }
.kacheln.gross .kachel b { font-size: 1.25rem; }

.zahlen { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1.3rem; }
.zahl { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.15rem 1.15rem; box-shadow: var(--schatten); }
.zahl .wert { font-size: 2.2rem; font-weight: 800; color: var(--gruen-tief); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.zahl .wert small { font-size: 1rem; font-weight: 600; color: var(--leise); letter-spacing: 0; font-family: var(--sans); }
.zahl .titel { font-weight: 600; color: var(--tinte); font-size: .95rem; margin-bottom: .35rem; }
.zahl .dazu { font-size: .9rem; color: var(--leise); margin-top: .4rem; line-height: 1.45; }
.zahl.ton .wert { color: var(--gruen); }
.zahl .fehlt { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--leise); line-height: 1.4; }
.plus { color: var(--gruen); font-weight: 600; }
.minus { color: var(--nein); font-weight: 600; }

.ehrlich { background: var(--sand); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; margin-top: 1.5rem; display: grid; gap: .3rem; }
.ehrlich b.kopfzeile { font-family: var(--serif); font-size: 1.12rem; color: var(--tinte); }
.ehrlich p { margin: .3rem 0 0; font-size: .98rem; }

/* Spalten dürfen schmaler werden als ihr längstes Wort. Sonst schiebt ein langes Wort im Ergebnis die ganze Seite über den Rand. */
.zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.3rem; }
.kasten { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.3rem; box-shadow: var(--schatten); }
.kasten h2, .kasten h3 { margin-top: 0; }
.kasten.gruen { background: var(--gruen-tief); color: #e6f0ec; border-color: var(--gruen-tief); }
.kasten.gruen h2, .kasten.gruen h3, .kasten.gruen strong { color: #fff; }
.kasten.gruen a:not(.knopf) { color: #fff; }

/* ---------- Formulare, Rechner */
.formular { display: grid; gap: 1.05rem; }
.feld { display: grid; gap: .35rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.feld > label, .feld > legend, .feld-titel { font-weight: 600; color: var(--tinte); font-size: .97rem; padding: 0; }
.feld .hilfe { font-size: .86rem; color: var(--leise); margin: 0; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; font: inherit; color: var(--tinte); background: #fff; border: 1.5px solid #cdd4cc; border-radius: 12px; padding: .7rem .8rem; min-height: 3rem;
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gruen) 50%), linear-gradient(135deg, var(--gruen) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%; background-size: .36rem .36rem; background-repeat: no-repeat; padding-right: 2.2rem; }
select:hover, input:hover, textarea:hover { border-color: var(--gruen); }
textarea { min-height: 6.5rem; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--gruen); height: 2rem; margin: 0; }
.wert-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.wert-anzeige { font-size: 1.5rem; font-weight: 800; color: var(--gruen-tief); font-variant-numeric: tabular-nums; }
.wahl { display: flex; flex-wrap: wrap; gap: .45rem; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wahl span { display: inline-block; padding: .55rem .95rem; border: 1.5px solid var(--linie); border-radius: 999px; background: #fff; font-size: .95rem; line-height: 1.3; font-weight: 500; color: var(--tinte); transition: background .12s, border-color .12s; }
.wahl input:checked + span { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; font-weight: 650; }
.wahl input:focus-visible + span { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.wahl label:hover span { border-color: var(--gruen); }
.haken-feld { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: start; font-size: .96rem; }
.haken-feld input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--gruen); }

.rechner { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.rechner-eingabe { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 1.2rem 1.15rem 1.35rem; box-shadow: var(--schatten); }
.rechner-eingabe h2 { margin-top: 0; font-size: 1.25rem; }
.ergebnis { min-width: 0; }
.ergebnis h2 { margin-top: 0; }
.reicht { background: var(--gruen-tief); color: #e2efe9; border-radius: 22px; padding: 1.3rem 1.3rem 1.4rem; }
.reicht .kennung { color: #9fe3c6; margin-bottom: .3rem; }
.reicht p { margin: 0; }
.reicht .gross { font-size: 1.5rem; line-height: 1.2; color: #fff; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; }
.reicht .satz { margin-top: .6rem; font-size: .98rem; }

.wegliste { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.wegzeile { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.15rem 1.15rem; margin: 0; box-shadow: var(--schatten); }
.wegzeile.status-ja, .wegzeile.status-kann { border-left: 5px solid var(--ja); }
.wegzeile.status-teils { border-left: 5px solid #d9a441; }
.wegzeile.status-nein, .wegzeile.status-entfaellt { border-left: 5px solid #c5ccc5; }
.wegzeile.status-offen { border-left: 5px solid #c5ccc5; }
.wegkopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; }
.wegname { font-weight: 650; font-size: 1.05rem; color: var(--tinte); }
.wegpreis { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--tinte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wegpreis.ohne { font-family: var(--sans); font-size: .98rem; color: var(--leise); font-weight: 600; white-space: normal; }
.spanne { position: relative; height: .75rem; background: var(--sand); border-radius: 999px; margin: .65rem 0 .1rem; }
.spanne > span { position: absolute; top: 0; bottom: 0; min-width: 8px; border-radius: 999px; background: var(--gruen); }
.status-nein .spanne > span, .status-entfaellt .spanne > span { background: #aab3ac; }
.einheit { font-size: .82rem; color: var(--leise); }
.wegtext { font-size: .93rem; color: var(--text); margin: .55rem 0 0; }
.marke-status { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: flex-start; font-size: .93rem; margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid #efe8db; }
.marke-status b { flex: none; font-size: .78rem; letter-spacing: .03em; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; margin-top: .1rem; }
.marke-status span { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.status-ja .marke-status b, .status-kann .marke-status b { background: var(--gruen-hell); color: var(--gruen-tief); }
.status-teils .marke-status b { background: #f7ebcf; color: #6f4f0d; }
.status-nein .marke-status b { background: #f6e1dc; color: var(--nein); }
.status-offen .marke-status b, .status-entfaellt .marke-status b { background: var(--sand); color: var(--leise); }
.ergebnis-teil { margin-top: 1.4rem; }
.ergebnis-teil h3 { margin-top: 0; }
.ergebnis-teil ul { font-size: .96rem; }
.teilen { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; font-size: .93rem; color: var(--leise); }
.text-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--gruen); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.meldung { background: var(--ton-hell); border: 2px solid var(--bernstein); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin-top: 1.2rem; }
.meldung h2, .meldung h3 { margin-top: 0; font-size: 1.2rem; }
.meldung dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; font-size: .95rem; }
.meldung dt { color: var(--leise); }
.meldung dd { margin: 0; font-weight: 600; color: var(--tinte); }
[hidden] { display: none !important; }

/* ---------- Ortsseiten */
.ueberschlag { display: grid; gap: .9rem; }
.ueberschlag output { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--gruen-tief); line-height: 1.2; }
.ueberschlag .flaeche { display: flex; align-items: center; gap: .6rem; }
.ueberschlag .flaeche input { max-width: 7rem; }
.ortsliste { list-style: none; padding: 0; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.ortsliste li { margin: 0; }
.ortsliste a { display: inline-block; padding: .4rem .8rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; font-size: .93rem; text-decoration: none; }
.ortsliste a:hover { border-color: var(--gruen); }
.quellenzeile { font-size: .86rem; color: var(--leise); margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.quellenzeile p { margin-top: .45rem; }
.platzhalter { border: 2px dashed var(--bernstein); background: var(--ton-hell); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin-top: 1.3rem; }
.platzhalter b.kopfzeile { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--warn); }
.liste-ab { list-style: none; padding: 0; }
.liste-ab li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; align-items: start; padding: .6rem 0; border-top: 1px solid var(--linie); margin: 0; }
.liste-ab input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--gruen); }

/* ---------- Fuß */
.fuss { background: #0b1612; color: #c3cfc9; font-size: .93rem; margin-top: 0; }
.fuss .rand { padding-top: 2.2rem; padding-bottom: 2.4rem; display: grid; gap: 1.6rem; }
.fuss a { color: #fff; }
.fuss h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb0a9; margin: 0 0 .6rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li + li { margin-top: .4rem; }
.fuss .marke-name { color: #fff; }
.fuss p { margin: .5rem 0 0; }
.fuss .unten { border-top: 1px solid #263630; padding-top: 1rem; font-size: .84rem; color: #9fb0a9; }

/* ---------- Ab 640 px */
@media (min-width: 640px) {
  body { font-size: 1.125rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }
  .rand { padding: 0 1.6rem; }
  .marke-zeile { display: block; }
  .kacheln, .kacheln.gross { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
  .zahlen { grid-template-columns: repeat(2, 1fr); }
  .wege { grid-template-columns: repeat(2, 1fr); }
  .b { grid-template-columns: minmax(9rem, 38%) 1fr auto; grid-template-areas: "name spur wert"; align-items: center; }
  .b-wert { min-width: 5.4rem; text-align: right; }
  .weiter { padding: 2rem 2.2rem 2.2rem; }
  .zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .formular.zweispaltig { grid-template-columns: 1fr 1fr; }
  .formular.zweispaltig .ganz { grid-column: 1 / -1; }
}

/* ---------- Ab 960 px */
@media (min-width: 960px) {
  h1 { font-size: 2.8rem; }
  .held .rand { padding-top: 2.6rem; padding-bottom: 3rem; gap: 1.6rem; }
  .haupt-nav ul { padding: 0 1.1rem; gap: .6rem; }
  .haupt-nav a { padding: .8rem .7rem; }
  .zahlen { grid-template-columns: repeat(4, 1fr); }
  .zahlen.drei { grid-template-columns: repeat(3, 1fr); }
  .wege { grid-template-columns: repeat(3, 1fr); }
  .ratgeber .wege { grid-template-columns: repeat(2, 1fr); }
  .kacheln, .kacheln.gross { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kacheln.vier { grid-template-columns: repeat(4, 1fr); }
  .fuss .rand { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .fuss .unten { grid-column: 1 / -1; }
  .abschnitt { padding-top: 3.4rem; }
  .abschnitt.hell { padding-bottom: 3.4rem; margin-top: 3.4rem; }
  .spalten { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; }
}

@media print {
  .kopf, .haupt-nav, .land-leiste, .fuss, .weiter .knopf { display: none; }
  body { background: #fff; }
}

/* Abstand der Überschlag-Kästen zur Überschrift */
h2 + .ueberschlag, h2 + .kasten { margin-top: 1rem; }

.tabelle tr.selbst th, .tabelle tr.selbst td { background: var(--sand); font-weight: 600; }

/* ============================================================ Werkzeuge: Rechnen ohne Formular */
.werkzeug { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-top: 1.2rem; }
.wz-eingabe { background: var(--gruen-hell); border-radius: 22px; padding: 1rem 1rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; min-width: 0; }
.wz-schieber { display: grid; gap: .1rem; }
.wz-skala { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; color: var(--leise); }
.wz-eingabe input[type="range"] { -webkit-appearance: none; appearance: none; height: 2.4rem; background: transparent; cursor: pointer; }
.wz-eingabe input[type="range"]::-webkit-slider-runnable-track { height: .6rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #b9d9ca; }
.wz-eingabe input[type="range"]::-moz-range-track { height: .6rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #b9d9ca; }
.wz-eingabe input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 2rem; height: 2rem; margin-top: -.7rem; border-radius: 50%; background: var(--gruen); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(13, 27, 22, .3); }
.wz-eingabe input[type="range"]::-moz-range-thumb { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--gruen); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(13, 27, 22, .3); }
.wz-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .95rem; font-weight: 600; color: var(--tinte); }
.wz-zeile label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.wz-zeile input[type="number"] { width: 9.5rem; min-height: 2.6rem; padding: .4rem .6rem; }
.wz-zeile select { flex: 1 1 12rem; min-height: 2.6rem; padding-top: .4rem; padding-bottom: .4rem; }
.wz-chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-chips legend { padding: 0; font-size: .86rem; color: var(--leise); margin-bottom: .45rem; }
.wz-klapp { border-top: 1px solid #c4e2d4; padding-top: .8rem; }
.wz-klapp summary { cursor: pointer; font-size: .93rem; font-weight: 650; color: var(--gruen-tief); list-style: none; }
.wz-klapp summary::-webkit-details-marker { display: none; }
.wz-klapp summary::before { content: "+"; display: inline-block; width: 1.3rem; height: 1.3rem; line-height: 1.25rem; text-align: center; margin-right: .5rem; border-radius: 50%; background: #fff; color: var(--gruen); font-weight: 700; }
.wz-klapp[open] summary::before { content: "−"; }
.wz-klapp > * + * { margin-top: .9rem; }
.wz-klapp > div { margin-top: .9rem; }
.wz-bezirk { display: grid; gap: .6rem; border-top: 1px solid #c4e2d4; padding-top: .9rem; }
.wz-titel { margin: 0; font-size: .86rem; color: var(--leise); }
.wz-klapp .hilfe { font-size: .88rem; color: var(--text); margin: 0 0 .6rem; }
.wz-frei { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .84rem; line-height: 1.45; color: var(--gruen-tief); }
.wz-frei svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1rem; }
.wz-frei strong { color: var(--gruen-tief); }

.riesig { font-size: clamp(2rem, 8.6vw, 3.3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; text-wrap: balance; }
.reicht.ww .satz { font-size: 1rem; margin-top: .5rem; }
.ww-weg { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.ww-weg li { margin: 0; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1.05rem 1rem; display: grid; gap: .2rem; }
.ww-weg b { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gruen); }
.ww-weg span { font-size: .97rem; }
.kasten.leer { box-shadow: none; background: var(--sand); border-color: var(--linie); }
.kasten.leer .ww-weg li { background: #fff; }

.naechstes { margin-top: 1.5rem; padding: 1.1rem 1.15rem 1.2rem; border: 1.5px dashed #b9c6bd; border-radius: var(--radius); }
.naechstes p { margin: 0; font-size: .97rem; }
.naechstes .kennung { color: var(--leise); margin-bottom: .35rem; }
.naechstes .knopf-reihe { margin-top: .8rem; }
.pfeile { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .1rem; }
.pfeile li { margin: 0; }
.pfeile a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; text-decoration: none; font-weight: 600; border-top: 1px solid var(--linie); }
.pfeile li:first-child a { border-top: 0; }
.pfeile a::after { content: "→"; flex: none; }
.pfeile a:hover { text-decoration: underline; }

.kurzliste { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.kurzliste li { margin: 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: .65rem .85rem .7rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .05rem .8rem; align-items: baseline; }
.kurzliste .wegname { font-size: .98rem; }
.kurzliste .wegpreis { font-size: 1.2rem; text-align: right; }
.kurzliste .wegpreis.ohne { font-size: .9rem; }
.kurzliste .einheit { font-size: .78rem; grid-column: 1; }
.kurzliste .marke { grid-column: 2; grid-row: 2; justify-self: end; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.kurzliste .status-ja .marke, .kurzliste .status-kann .marke { background: var(--gruen-hell); color: var(--gruen-tief); }
.kurzliste .status-teils .marke { background: #f7ebcf; color: #6f4f0d; }
.kurzliste .status-nein .marke { background: #f6e1dc; color: var(--nein); }
.kurzliste .status-offen .marke, .kurzliste .status-entfaellt .marke { background: var(--sand); color: var(--leise); }
.kurz-weiter { margin-top: .9rem; }
.kurz-weiter .knopf { width: 100%; }

/* ---------- Einstiege auf der Startseite */
.einstiege { min-width: 0; }
.einstieg-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.einstieg-wahl button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-width: 0; cursor: pointer; font: 650 .8rem/1.2 var(--sans); text-align: center; color: var(--tinte); background: var(--karte); border: 1.5px solid var(--linie); border-radius: 16px; padding: .6rem .3rem .65rem; }
.einstieg-wahl button svg { width: 1.3rem; height: 1.3rem; flex: none; }
.einstieg-wahl button span { overflow-wrap: anywhere; }
.einstieg-wahl button:hover { background: var(--minze); }
.einstieg-wahl button[aria-selected="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.in-arbeit { margin: 1.1rem 0 0; font-size: .86rem; color: var(--leise); }
.in-arbeit b { font-weight: 700; color: var(--warn); }
.gratis { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .8rem 0 0; }
.gratis li { margin: 0; font-size: .78rem; font-weight: 700; color: var(--gruen-tief); background: var(--minze); border-radius: 999px; padding: .26rem .55rem .28rem; white-space: nowrap; }
.gratis li::before { content: "✓ "; }
.rolle { margin: .6rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--text); max-width: 40rem; }
.preis-hinweis { margin: .5rem 0 0; font-size: .86rem; color: var(--leise); }
.einstieg-feld { margin-top: 1rem; min-width: 0; }
.einstieg-feld > h2 { margin: 0; font-size: 1.3rem; }
.einstieg-feld > .unter { margin-top: .3rem; font-size: .9rem; line-height: 1.45; }
.einstieg-feld .werkzeug { margin-top: .9rem; }
.einstieg-feld .zwei { margin-top: .9rem; }
.einstieg-feld .kasten { box-shadow: none; }
.eigene-seite { margin: 1rem 0 0; font-size: .88rem; color: var(--leise); }

/* ---------- Werkzeug-Seiten */
.wz-kopf { padding: 1.4rem 0 0; }
.wz-kopf h1 { font-size: clamp(1.9rem, 6.6vw, 3rem); letter-spacing: -.035em; font-weight: 800; }
.wz-liste { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.wz-liste li { margin: 0; min-width: 0; }
.wz-karte { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: .2rem .9rem; height: 100%; align-content: start; background: var(--karte); border: 1px solid var(--linie); border-radius: 22px; padding: 1.15rem 1.15rem 1.2rem; text-decoration: none; color: var(--text); box-shadow: var(--schatten); transition: transform .15s, border-color .15s; }
.wz-karte:hover { transform: translateY(-2px); border-color: var(--gruen); color: var(--text); }
.wz-karte .bild { grid-row: 1 / span 3; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--gruen-hell); color: var(--gruen); display: grid; place-items: center; }
.wz-karte .bild svg { width: 1.5rem; height: 1.5rem; }
.wz-karte b { font-size: 1.12rem; font-weight: 750; letter-spacing: -.02em; color: var(--tinte); line-height: 1.25; }
.wz-karte span { font-size: .93rem; color: var(--leise); line-height: 1.45; }
.wz-karte i { font-style: normal; font-size: .88rem; font-weight: 650; color: var(--gruen); margin-top: .35rem; }
.wz-karte i::after { content: " →"; }
.wz-karte b .bald-marke, h1 .bald-marke, h2 .bald-marke { font-size: .7rem; color: var(--warn); letter-spacing: .05em; }
.bald-marke { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; background: #fde9c8; color: var(--warn); vertical-align: .15em; margin-left: .3rem; }
.bald { position: relative; border: 2px dashed #b9c6bd; border-radius: 22px; background: var(--karte); padding: 1.1rem 1.1rem 1.2rem; margin-top: 1.2rem; display: grid; gap: .9rem; }
.bald > .bald-marke { justify-self: start; margin: 0; }
.bald-feld { display: block; border: 1.5px solid var(--linie); border-radius: 12px; padding: .75rem .9rem; color: #7c8882; background: var(--papier); font-size: .97rem; }
.bald-karte { display: block; width: 100%; height: auto; border-radius: 14px; background: #eef4f0; }
.bald-daten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; margin: 0; }
.bald-daten div { background: var(--papier); border-radius: 12px; padding: .6rem .75rem; min-width: 0; }
.bald-daten dt { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); font-weight: 700; }
.bald-daten dd { margin: .15rem 0 0; }
.bald-daten dd i { display: block; height: .7rem; width: 70%; border-radius: 999px; background: var(--linie); margin-top: .35rem; }
.bald-ablage { border: 2px dashed #9fcdb8; border-radius: 16px; background: var(--gruen-hell); padding: 1.4rem 1rem; text-align: center; color: var(--gruen-tief); font-weight: 600; }
.bald-zeilen { display: grid; gap: .5rem; }
.bald-zeilen div { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .7rem; align-items: center; background: var(--papier); border-radius: 12px; padding: .6rem .75rem; }
.bald-zeilen b { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--tinte); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.bald-zeilen span { font-size: .93rem; color: var(--leise); }
.bald-hinweis { margin: 0; font-size: .9rem; color: var(--leise); }

@media (min-width: 640px) {
  .wz-eingabe { padding: 1.5rem 1.5rem 1.35rem; gap: 1rem; }
  .einstiege { background: var(--karte); border: 1px solid var(--linie); border-radius: 26px; box-shadow: var(--schatten-gross); padding: 1.2rem 1.3rem 1.5rem; }
  .einstieg-wahl button { background: var(--sand); border-color: transparent; }
  .einstieg-wahl button[aria-selected="true"] { background: var(--tinte); border-color: var(--tinte); }
  .einstieg-wahl button { flex-direction: row; gap: .5rem; font-size: 1rem; padding: .8rem .9rem; }
  .wz-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bald-daten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kurz-weiter .knopf { width: auto; }
}
@media (min-width: 960px) {
  .werkzeug { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
  .werkzeug > .wz-eingabe { position: sticky; top: 5.6rem; }
  .werkzeug.breit { grid-template-columns: minmax(0, 1fr); }
  .werkzeug.breit > .wz-eingabe { position: static; }
  .wz-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .held .lead { font-size: 1.25rem; }
}

/* ---------- Ergebnisleiste am unteren Rand, nur schmale Schirme */
.wz-fuss { position: fixed; left: .7rem; right: .7rem; bottom: .7rem; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; align-items: center; text-align: left; cursor: pointer;
  background: var(--gruen-tief); color: #fff; border: 0; border-radius: 18px; padding: .65rem 1rem .7rem; box-shadow: 0 12px 34px -8px rgba(13, 27, 22, .55); font: inherit; }
.wz-fuss span { grid-column: 1; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #9fe3c6; }
.wz-fuss b { grid-column: 1; font-size: 1rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wz-fuss i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
@media (min-width: 960px) { .wz-fuss { display: none; } }
@media (max-width: 639px) {
  .wz-kopf .kennung, .seitenkopf .kennung { display: none; }
  .einstieg-feld > .unter, .seitenkopf .lead, .wz-kopf .lead { display: none; }
  .einstieg-feld > h2 { font-size: 1.15rem; }
  .einstieg-feld .werkzeug .wz-frei { display: none; }
}
@media print { .wz-fuss { display: none; } }

/* ============================================================ Runde 6 */
/* Kopf: eine Zeile. Länderwahl in der Logozeile, Menü als Aufklapper auf schmalen Schirmen, Menüzeile erst ab 960 px. */
.kopf-rechts { display: flex; align-items: center; gap: .5rem; flex: none; }
.land-leiste { display: inline-flex; border: 1.5px solid var(--linie); border-radius: 999px; overflow: hidden; font-size: .8rem; line-height: 1; background: var(--karte); }
.land-leiste b, .land-leiste a { padding: .42rem .6rem; font-weight: 700; text-decoration: none; }
.land-leiste b { background: var(--tinte); color: #fff; }
.land-leiste a { color: var(--leise); }
.land-leiste a:hover { background: var(--sand); color: var(--tinte); }
.land-leiste .lang { display: none; }
.kopf-anfrage { display: none; }
.menue { position: static; }
.menue summary { list-style: none; cursor: pointer; font: 650 .93rem/1.2 var(--sans); color: var(--tinte); border: 1.5px solid var(--linie); border-radius: 12px; padding: .5rem .8rem; background: var(--karte); }
.menue summary::-webkit-details-marker { display: none; }
.menue[open] summary { background: var(--tinte); border-color: var(--tinte); color: #fff; }
/* Aufgeklapptes Menü (Fixrunde 26.11.): drei Gruppen mit Überschrift, darunter die Anfrage als Knopf. Jede Zeile ist mindestens 44 px hoch. */
.menue-feld { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin: 0; padding: .1rem 1.1rem 1.2rem; background: var(--karte); border-bottom: 1px solid var(--linie); box-shadow: 0 24px 40px -24px rgba(13, 27, 22, .35); max-height: calc(100vh - 3.8rem); max-height: calc(100dvh - 3.8rem); overflow-y: auto; overscroll-behavior: contain; }
.menue-titel { margin: 1.05rem 0 .15rem; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gruen); }
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue li { margin: 0; }
.menue li a { display: flex; align-items: center; min-height: 2.75rem; padding: .5rem 0; font-size: 1.02rem; line-height: 1.3; font-weight: 600; color: var(--tinte); text-decoration: none; border-top: 1px solid var(--linie); }
.menue li:first-child a { border-top: 0; }
.menue li a[aria-current] { color: var(--gruen); }
.menue .menue-anfrage { display: flex; width: 100%; margin-top: 1.1rem; padding: .8rem 1.3rem; font-size: 1.02rem; white-space: normal; }
.kopf-anfrage .voll { display: none; }
.haupt-nav { display: none; }
@media (min-width: 640px) {
  .gratis li { font-size: .9rem; padding: .3rem .75rem .32rem; }
  .rolle { font-size: 1rem; }
  .land-leiste .lang { display: inline; }
  .land-leiste .knapp { display: none; }
  .kopf-anfrage { display: inline-flex; padding: .5rem .95rem; font-size: .95rem; }
  .menue-feld { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.8rem; padding-left: 1.6rem; padding-right: 1.6rem; }
  .menue .menue-anfrage { grid-column: 1 / -1; justify-self: start; width: auto; min-width: 14rem; }
}
@media (min-width: 960px) {
  .menue { display: none; }
  .haupt-nav { display: block; }
  .haupt-nav ul { overflow: visible; }
  .kopf-anfrage .voll { display: inline; }
  .kopf-anfrage .kurz { display: none; }
}

/* Kompakte Ergebniszeile direkt unter dem Regler: nur dort, wo das Ergebnis nicht neben der Eingabe steht */
.wz-kurzzeile { margin: 0; display: grid; gap: .15rem; background: var(--gruen-tief); color: #e2efe9; border-radius: 16px; padding: .75rem .95rem .8rem; }
.wz-kurzzeile .kz-kennung { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #9fe3c6; }
.wz-kurzzeile b { font-size: 1.08rem; line-height: 1.25; font-weight: 750; letter-spacing: -.015em; color: #fff; }
.wz-kurzzeile b.kz-zahl { font-size: 1.6rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.wz-kurzzeile .kz-preise { font-size: .9rem; line-height: 1.4; margin-top: .15rem; }
.wz-kurzzeile .kz-preise strong { color: #fff; white-space: nowrap; }
.wz-kurzzeile .kz-hinweis { font-size: .78rem; color: #b9d4c9; }
@media (min-width: 960px) { .wz-kurzzeile { display: none; } }

/* Ergebniskarten kurz: Preis, Balken, Umsatzsteuer, Marke, ein Satz. Der Rest im Aufklapper. */
.wegzeile .marke-status { border-top: 0; padding-top: 0; margin-top: .7rem; align-items: center; }
.marke-status b { font-size: .82rem; letter-spacing: 0; padding: .22rem .65rem; }
.wegzeile details.klapp { margin-top: .8rem; border-radius: 12px; background: var(--papier); border-color: transparent; }
.wegzeile details.klapp summary { padding: .6rem 2.4rem .6rem .8rem; font-size: .9rem; font-weight: 650; color: var(--gruen-tief); }
.wegzeile details.klapp > :not(summary) { padding: 0 .8rem .7rem; font-size: .92rem; }
.wegzeile details.klapp ul { padding-left: 1.9rem; }
.kurzliste .marke { font-size: .74rem; }
.ww-kurz { margin: .9rem 0 0; font-size: .98rem; }
.ergebnis > details.klapp { margin-top: .9rem; }
.ergebnis > details.klapp .ww-weg { margin-top: 0; }
.ergebnis > details.klapp .ww-weg li { background: var(--papier); border: 0; }

/* Werkzeug-Übersicht */
.wz-liste.zwei-spalten { grid-template-columns: minmax(0, 1fr); }
.wz-arbeit h2 { font-size: 1.2rem; margin-top: 2.4rem; }
.wz-karte.klein { box-shadow: none; background: transparent; border-style: dashed; padding: .95rem 1rem 1rem; }
.wz-karte.klein b { font-size: 1rem; }
.wz-karte.klein .bild { background: var(--sand); color: var(--leise); }
@media (min-width: 640px) { .wz-liste.zwei-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Runde 7: Grundstücks-Check und Grundbuchauszug-Erklärer (nur .at) */
.einstieg-wahl.fuenf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.einstieg-wahl.fuenf button { grid-column: span 2; }
.einstieg-wahl.fuenf button:nth-child(n+4) { grid-column: span 3; flex-direction: row; gap: .4rem; padding: .5rem .3rem; }
@media (min-width: 640px) {
  .einstieg-wahl.fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .einstieg-wahl.fuenf button, .einstieg-wahl.fuenf button:nth-child(n+4) { grid-column: auto; flex-direction: column; gap: .3rem; font-size: .84rem; padding: .65rem .3rem .7rem; }
}
.gwz { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 1.2rem; min-width: 0; }
.einstieg-feld .gwz { margin-top: .9rem; }
.gwz-eingabe { background: var(--karte); border: 1px solid var(--linie); border-radius: 22px; box-shadow: var(--schatten); padding: 1rem 1rem 1.05rem; }
.einstieg-feld .gwz-eingabe { box-shadow: none; background: var(--sand); border-color: transparent; }
.gwz-eingabe label, .gwz-text label { display: block; font-weight: 700; color: var(--tinte); font-size: .95rem; margin-bottom: .4rem; }
.gwz-zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
.gwz-zeile input { width: 100%; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--tinte); background: #fff; border: 1.5px solid #b9c6bd; border-radius: 12px; padding: .8rem .9rem; }
.gwz-zeile input:focus-visible { outline: 3px solid var(--minze); border-color: var(--gruen); }
.gwz-zeile .knopf { width: 100%; justify-content: center; }
.gwz-klein { margin: .55rem 0 0; font-size: .84rem; line-height: 1.45; color: var(--leise); }
.gwz-status { margin: 0; font-weight: 600; color: var(--tinte); min-height: 0; }
.gwz-status:empty { display: none; }
.gwz-treffer { display: grid; gap: .4rem; }
.gwz-treffer:empty { display: none; }
.gwz-treffer-knopf { font: inherit; font-size: .95rem; text-align: left; color: var(--tinte); background: var(--karte); border: 1.5px solid var(--linie); border-radius: 12px; padding: .65rem .8rem; cursor: pointer; overflow-wrap: anywhere; }
.gwz-treffer-knopf:hover { background: var(--gruen-hell); border-color: var(--gruen); }
.gwz-landkarte { position: relative; z-index: 0; isolation: isolate; height: 300px; border: 1px solid var(--linie); border-radius: 18px; overflow: hidden; background: #eef4f0; }
.gwz-landkarte[hidden] { display: none; }
.gwz-landkarte .leaflet-control-attribution { font-size: 10px; }
.gwz-ergebnis { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; min-width: 0; }
.gwz-ergebnis:empty { display: none; }
.gwz-vorab { margin: 0; font-size: .93rem; color: var(--leise); border: 1.5px dashed #b9c6bd; border-radius: 16px; padding: .9rem 1rem; }
.gwz-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 20px; padding: 1.05rem 1.05rem 1.15rem; min-width: 0; }
.gwz-karte > h3 { margin: 0; font-size: 1.12rem; }
.gwz-daten { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; margin: .8rem 0 0; }
.gwz-daten div { background: var(--papier); border-radius: 12px; padding: .55rem .75rem .6rem; min-width: 0; }
.gwz-daten dt { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--leise); font-weight: 700; }
.gwz-daten dd { margin: .1rem 0 0; font-weight: 650; color: var(--tinte); font-size: 1.02rem; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.gwz-daten dd i { font-style: normal; font-weight: 400; color: var(--leise); }
.gwz-kopie { font: 650 .76rem/1 var(--sans); color: var(--gruen-tief); background: var(--minze); border: 0; border-radius: 999px; padding: .38rem .65rem; cursor: pointer; white-space: nowrap; }
.gwz-kopie:hover { background: var(--gruen); color: #fff; }
.gwz-hinweis { margin: .9rem 0 0; font-size: .9rem; line-height: 1.5; background: var(--ton-hell); border-left: 4px solid var(--bernstein); border-radius: 12px; padding: .7rem .85rem; color: var(--text); }
.gwz-rund { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .45rem; }
.gwz-rund li { margin: 0; background: var(--papier); border-radius: 12px; padding: .6rem .75rem .65rem; display: grid; gap: .1rem; min-width: 0; }
.gwz-rund li > i { font-style: normal; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--leise); font-weight: 700; }
.gwz-rund li > b { color: var(--tinte); font-weight: 650; }
.gwz-rund li > span { font-size: .87rem; line-height: 1.45; color: var(--leise); }
.gwz-schritte { list-style: none; counter-reset: schritt; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.gwz-schritte li { counter-increment: schritt; margin: 0; background: var(--papier); border-radius: 14px; padding: .75rem .85rem .85rem 3rem; position: relative; display: grid; gap: .4rem; min-width: 0; }
.gwz-schritte li::before { content: counter(schritt); position: absolute; left: .8rem; top: .75rem; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--tinte); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.gwz-schritte li > b { color: var(--tinte); }
.gwz-schritte li > span { font-size: .93rem; line-height: 1.5; }
.gwz-kgez { display: flex; flex-wrap: wrap; gap: .4rem; }
.gwz-kgez > span { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: .25rem .3rem .25rem .7rem; font-size: .95rem; }
.gwz-quellen { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--leise); overflow-wrap: anywhere; }
.gwz-quellen a { color: inherit; }
.gwz-privat { margin: 0; font-weight: 700; color: var(--gruen-tief); background: var(--minze); border-radius: 14px; padding: .7rem .9rem; }
.gwz-wahl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.gwz-ablage { display: grid; gap: .15rem; text-align: center; cursor: pointer; border: 2px dashed #9fcdb8; border-radius: 18px; background: var(--gruen-hell); padding: 1.3rem 1rem; color: var(--gruen-tief); }
.gwz-ablage b { font-size: 1.05rem; }
.gwz-ablage span { font-size: .85rem; }
.gwz-ablage:hover, .gwz-ablage.ziel { background: var(--minze); border-color: var(--gruen); }
.gwz-datei { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.gwz-datei:focus-visible + .gwz-ablage { outline: 3px solid var(--gruen); outline-offset: 2px; }
.gwz-wahl .knopf { justify-content: center; }
.gwz-text textarea { width: 100%; font: .82rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1.5px solid #b9c6bd; border-radius: 12px; padding: .6rem .7rem; background: #fff; color: var(--tinte); }
.gwz-beispiel { margin: 0; background: #fde9c8; color: #5f3a05; border-radius: 14px; padding: .7rem .9rem; font-size: .93rem; }
.gwz-blick { margin: .8rem 0 0; padding-left: 1.1rem; }
.gwz-blick li { margin: .2rem 0; }
.gwz-blatt { margin: .4rem 0 0; font-size: .93rem; line-height: 1.5; color: var(--text); }
.gwz-liste { margin: .7rem 0 0; padding-left: 1.1rem; font-size: .95rem; }
.gwz-eig { margin: .9rem 0 0; padding-top: .7rem; border-top: 1px solid var(--linie); }
.gwz-eintraege { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.gwz-eintrag { margin: 0; background: var(--papier); border-radius: 14px; padding: .75rem .85rem .7rem; min-width: 0; }
.gwz-eintrag h4 { margin: 0; font-size: 1rem; color: var(--tinte); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.gwz-eintrag h4 span { font-size: .76rem; font-weight: 600; color: var(--leise); }
.gwz-eintrag h4 small { font-weight: 600; color: var(--warn); }
.gwz-eintrag p { margin: .4rem 0 0; font-size: .93rem; line-height: 1.5; }
.gwz-eintrag .gwz-werte { font-weight: 650; color: var(--tinte); overflow-wrap: anywhere; }
.gwz-eintrag .klapp { margin-top: .5rem; }
.gwz-original { font: .8rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; color: var(--text); }
@media (min-width: 640px) {
  .gwz-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .gwz-zeile .knopf { width: auto; }
  .gwz-daten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gwz-wahl { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  .gwz-wahl .knopf { align-self: center; }
  .gwz-landkarte { height: 360px; }
}
@media (min-width: 960px) {
  .wz-kopf + .gwz { max-width: 54rem; }
  .gwz-daten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .einstieg-feld .gwz-daten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gwz-rund { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gwz-eintrag details.klapp { border-radius: 10px; background: transparent; border-color: var(--linie); }
.gwz-eintrag details.klapp summary { padding: .45rem 2.2rem .45rem .7rem; font-size: .84rem; font-weight: 600; color: var(--leise); }
.gwz-eintrag details.klapp summary::after { right: .8rem; width: .45rem; height: .45rem; border-width: 2px; }
.gwz-eintrag details.klapp > .gwz-original { padding: 0 .7rem .6rem; margin: 0; }
details.gwz-text > textarea { display: block; width: calc(100% - 2.2rem); margin: 0 1.1rem .7rem; padding: .6rem .7rem; }
details.gwz-text > label { padding-bottom: .2rem; }

/* ---------- Runde 8: Grundstücks-Check NRW (.de) */
.einstieg-wahl.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.einstieg-wahl.vier button { flex-direction: row; gap: .45rem; padding: .6rem .4rem; }
@media (min-width: 640px) {
  .einstieg-wahl.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .einstieg-wahl.vier button { font-size: .9rem; padding: .75rem .5rem; }
}
.gwz-gross { margin: .7rem 0 0; font-size: 1.9rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--tinte); }
.gwz-gross small { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--leise); }
.gwz-karte > p { margin: .6rem 0 0; font-size: .95rem; line-height: 1.5; }
.gwz-karte > p.gwz-gross { font-size: 1.9rem; line-height: 1.1; }
.gwz-karte > p.gwz-klein { font-size: .84rem; }
.gwz-karte > p.gwz-hinweis { margin-top: .9rem; font-size: .9rem; }
.gwz-ueberschlag, .gwz-grundsteuer { margin-top: .9rem; border-radius: 16px; padding: .85rem .95rem .95rem; }
.gwz-ueberschlag { background: var(--ton-hell); border: 1.5px dashed var(--bernstein); }
.gwz-grundsteuer { background: var(--sand); }
.gwz-ueberschlag p, .gwz-grundsteuer p { margin: .35rem 0 0; font-size: .92rem; line-height: 1.5; }
.gwz-ueberschlag .kennung, .gwz-grundsteuer .kennung { margin: 0; color: var(--warn); }
.gwz-grundsteuer .kennung { color: var(--leise); }
.gwz-ueberschlag .gwz-gross { font-size: 1.6rem; margin-top: .3rem; }
p.gwz-kgez { margin: .7rem 0 0; }
p.gwz-kgez > span { border-radius: 14px; flex-wrap: wrap; padding: .4rem .45rem .4rem .75rem; }

/* ============================================================ Runde 9: ruhiger und ohne Anzeigefehler */
:root {
  --schatten: 0 1px 2px rgba(13, 27, 22, .04), 0 10px 24px -20px rgba(13, 27, 22, .2);
}
[id] { scroll-margin-top: 5.5rem; }

/* Hauptmenü: alle Punkte auf einer Linie. „Ratgeber“ ist seit der Fixrunde 26.11. ein normaler Link auf /ratgeber/. */
@media (min-width: 960px) {
  .haupt-nav ul { align-items: center; gap: .2rem; }
  .haupt-nav a { margin: .5rem 0; padding: .42rem .8rem; font-size: .95rem; line-height: 1.3; }
}

/* Überschriften: kürzere Zeilen, ruhigere Größe auf Textseiten */
@media (min-width: 960px) {
  h1 { font-size: 2.5rem; }
  .ratgeber h1, .lese > .seitenkopf h1 { font-size: 2.3rem; }
}
.ratgeber h1, .seitenkopf h1 { max-width: 22em; }

/* Quellenvermerke: kleine Nummer im Text, Wortlaut im Abschnitt „Quellen“ */
sup.beleg { font-size: .66em; line-height: 0; margin-left: .04em; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
sup.beleg a { color: var(--leise); text-decoration: none; padding: .2em .04em; }
sup.beleg a:hover { color: var(--gruen); text-decoration: underline; }
.quellen h3 { font-size: 1rem; margin-top: 1.5rem; letter-spacing: 0; }
.quellen ol.belege { margin-top: .6rem; }
.quellen li:target { background: var(--gruen-hell); border-radius: 6px; box-shadow: 0 0 0 .3rem var(--gruen-hell); color: var(--tinte); }

/* Wege im Ratgeber: eine Spalte, gleiche Breite, Preis klar unter dem Namen */
.ratgeber .wege { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.ratgeber .weg { box-shadow: none; padding: 1.05rem 1.2rem 1.15rem; }
.weg-preis { font-size: 1.3rem; }
.weg p { max-width: 40rem; }

/* Entscheidungshilfe als geführter Ablauf: links der Anlass und was ihn genauer macht, rechts das Ergebnis mit dem Preis */
.feld > legend { margin-bottom: .5rem; }
.hilfe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.3rem; min-width: 0; }
.hilfe-fragen { display: grid; gap: 1.25rem; align-self: start; min-width: 0; }
.hf { border: 0; padding: 0; margin: 0; min-width: 0; }
.hf[hidden] { display: none; }
.hf > legend, .hf > label { display: block; padding: 0; margin: 0 0 .6rem; font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--tinte); }
.hf.folge { border-top: 1px solid var(--linie); padding-top: 1.1rem; animation: hf-da .22s ease-out; }
.hf.folge > legend { float: left; width: 100%; } /* legend im Fluss, damit die Linie darüber steht */
.hf.folge > legend + * { clear: both; }
.hf-hinweis { margin: .55rem 0 0; font-size: .84rem; color: var(--leise); }
.hf-aendern { display: none; margin-top: .6rem; font-size: .92rem; min-height: 1.75rem; }
.hf select { max-width: 24rem; }
@keyframes hf-da { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hf.folge { animation: none; } }
.hilfe-ergebnis { align-self: start; min-width: 0; }
.hilfe-leer { border: 1.5px dashed #b9c6bd; border-radius: 16px; padding: 1.1rem 1.15rem 1.2rem; }
.hilfe-leer p { margin: 0; font-size: .97rem; }
.hilfe-leer .kennung { color: var(--leise); margin-bottom: .3rem; }
.hilfe-leer .hl-gross { font-size: 1.3rem; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; color: var(--tinte); margin-bottom: .4rem; }
.hilfe-punkte { margin: 1rem 0 0; padding-left: 1.2rem; }
.hilfe-punkte li { font-size: .97rem; }
.hilfe-preis { margin-top: 1.1rem; background: var(--sand); border-radius: 16px; padding: 1rem 1.1rem 1.1rem; }
.hilfe-preis[hidden] { display: none; }
.hilfe-preis p { margin: 0; }
.hilfe-preis .kennung { color: var(--leise); margin-bottom: .15rem; }
.hp-zahl { font-size: 1.7rem; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--tinte); font-variant-numeric: tabular-nums; }
.hp-zahl.ohne { font-size: 1.25rem; color: var(--leise); letter-spacing: -.01em; }
.hp-dazu { margin-top: .35rem; font-size: .88rem; line-height: 1.5; color: var(--text); }
.hp-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem .8rem; margin-top: .85rem; }
.hp-felder:not(:has(> .feld:not([hidden]))) { display: none; }
.hp-felder .feld[hidden] { display: none; }
.hp-felder .feld > label { font-size: .88rem; }
.hp-felder select, .hp-felder input { min-width: 0; max-width: 24rem; min-height: 2.8rem; padding-top: .55rem; padding-bottom: .55rem; border-color: #b9d9ca; }
.hilfe-mehr { margin: 1rem 0 0; font-size: .97rem; }
.hilfe-ergebnis .knopf-reihe { margin-top: 1.1rem; }
@media (min-width: 860px) { .hilfe { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.2rem; } }
/* Schmale Schirme: Nach der Wahl bleibt nur der gewählte Anlass stehen, damit das Ergebnis nah bleibt */
@media (max-width: 859px) {
  .hf.zu .wahl label:not(:has(input:checked)) { display: none; }
  .hf.zu .hf-aendern:not([hidden]) { display: inline-block; }
}
.einstieg-feld .hilfe { margin-top: .9rem; }

/* Zahlenkarten */
@media (min-width: 640px) { .zahlen.eng { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zahlen.eng .zahl .wert { font-size: 1.8rem; }
.kachel b { font-size: 1.1rem; }
.kachel span { font-size: .95rem; color: var(--leise); }
.zahl .titel { min-height: 0; }

/* Überschlag: Betrag groß, Spanne klein darunter */
.ueberschlag output small { display: block; margin-top: .25rem; font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--leise); letter-spacing: 0; }

/* Platzhalter: neutral statt Warnfarbe */
.platzhalter { border: 1.5px dashed #b9c6bd; background: var(--sand); }
.platzhalter b.kopfzeile { color: var(--tinte); }

/* Startseite: Kopfzeile je Werkzeug mit leisem Verweis auf die eigene Seite */
.feld-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; }
.feld-kopf h2 { margin: 0; font-size: 1.3rem; }
.eigene-seite { font-size: .86rem; font-weight: 600; color: var(--leise); text-decoration: none; white-space: nowrap; }
.eigene-seite::after { content: " →"; }
.eigene-seite:hover { color: var(--gruen); text-decoration: underline; }
.einstieg-feld > .unter { margin-top: .3rem; }

/* Schmale Schirme */
@media (max-width: 639px) {
  .feld-kopf h2 { font-size: 1.15rem; }
  .b-name, .tabelle td, .tabelle th { -webkit-hyphens: auto; hyphens: auto; }
  /* Ergebnislisten: nur an den Trennstellen brechen, die der Text selbst mitbringt (Wortfugen), nie automatisch mitten im Wortteil. */
  .wegname, .kurzliste li { -webkit-hyphens: manual; hyphens: manual; }
}
/* Startseite: Die Kurzzeile unter dem Regler nennt das Ergebnis schon. Der große Kasten darunter wäre dasselbe noch einmal. */
@media (max-width: 959px) { .werkzeug.kompakt .ergebnis > .reicht { display: none; } .werkzeug.kompakt .kurzliste { margin-top: 0; } }

/* Tabellen am Handy: Karten mit der Spaltenüberschrift über jedem Wert statt Querscrollen */
@media (max-width: 719px) {
  .tabelle.stapel, .ratgeber .tabelle { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .tabelle.stapel thead, .ratgeber .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle.stapel tbody, .tabelle.stapel tbody tr, .tabelle.stapel tbody td, .tabelle.stapel tbody th,
  .ratgeber .tabelle tbody, .ratgeber .tabelle tbody tr, .ratgeber .tabelle tbody td, .ratgeber .tabelle tbody th { display: block; width: 100%; min-width: 0; }
  .tabelle.stapel caption, .ratgeber .tabelle caption { display: block; padding: 0 .1rem .1rem; }
  .tabelle.stapel tbody tr, .ratgeber .tabelle tbody tr { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: .75rem .95rem .85rem; margin-top: .6rem; }
  .tabelle.stapel tbody td, .tabelle.stapel tbody th, .ratgeber .tabelle tbody td, .ratgeber .tabelle tbody th { border: 0; padding: 0; text-align: left; white-space: normal; background: transparent; font-weight: 400; color: var(--text); }
  .tabelle.stapel tbody tr > :first-child, .ratgeber .tabelle tbody tr > :first-child { font-weight: 650; color: var(--tinte); font-size: 1.05rem; line-height: 1.3; }
  .tabelle.stapel tbody tr > [data-t]:not(:first-child)::before, .ratgeber .tabelle tbody tr > [data-t]:not(:first-child)::before { content: attr(data-t); display: block; margin-top: .55rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--leise); line-height: 1.3; }
  .tabelle.stapel tbody tr.selbst, .ratgeber .tabelle tbody tr.selbst { background: var(--sand); }
  /* Leere Zellen (der Bau kennzeichnet sie mit „leer“): in der Karte entfällt die Zeile, sonst stünde die Spaltenüberschrift ohne Inhalt da */
  .tabelle.stapel tbody tr > .leer:not(:first-child), .ratgeber .tabelle tbody tr > .leer:not(:first-child) { display: none; }
  /* Zahlenlisten (Bezirke, Städte): Werte zweispaltig, damit die Liste kurz bleibt */
  .tabelle-rahmen .tabelle.stapel tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 .9rem; padding: .65rem .95rem .7rem; }
  .tabelle-rahmen .tabelle.stapel tbody tr > :first-child { grid-column: 1 / -1; }
  .tabelle-rahmen .tabelle.stapel tbody tr > [data-t]:not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--tinte); }
  .tabelle-rahmen .tabelle.stapel tbody tr > [data-t]:not(:first-child)::before { margin-top: .4rem; font-weight: 600; }
}

/* Preis in den Wege-Karten deutlich, Titel der Zahlenkarten auf einer Linie */
.weg p.weg-preis { font-size: 1.25rem; margin-top: .25rem; }
@media (min-width: 640px) { .zahlen .zahl .titel { min-height: 2.9em; } }

/* Ratgeber: Leiste „Auf dieser Seite“ neben dem Text, nur auf breiten Schirmen */
.leiste { display: none; }
@media (min-width: 1100px) {
  .mit-leiste { display: grid; grid-template-columns: minmax(0, var(--lese)) minmax(0, 17rem); gap: 4rem; align-items: start; }
  .leiste { display: block; position: sticky; top: 5.5rem; margin-top: 2.2rem; padding-left: 1.2rem; border-left: 2px solid var(--linie); font-size: .9rem; }
  .leiste p { margin: 0 0 .6rem; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--leise); }
  .leiste ol { list-style: none; margin: 0; padding: 0; }
  .leiste li + li { margin-top: .5rem; }
  .leiste a { color: var(--text); text-decoration: none; line-height: 1.35; display: block; }
  .leiste a:hover { color: var(--gruen); text-decoration: underline; }
}
@media print { .leiste { display: none; } }

/* Dreispaltige Zahlentabellen am Handy: Kopfzeile darf umbrechen, damit nichts quer läuft */
@media (max-width: 599px) {
  .tabelle thead th, .tabelle thead th.z { white-space: normal; }
  .tabelle th, .tabelle td { padding: .6rem .55rem; }
  .tabelle { font-size: .93rem; }
}

/* Lange Wörter in den Schritt-Listen brechen um, Tabellenköpfe dürfen überall umbrechen */
.schritte dl { grid-template-columns: 4.6rem minmax(0, 1fr); }
.schritte dd { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.tabelle thead th.z { white-space: normal; }

/* Breite Ratgebertabellen ab 600 px: ganze Breite nutzen und umbrechen statt im Kasten quer zu scrollen */
@media (min-width: 720px) {
  .tabelle.breit { display: table; overflow: hidden; }
  .tabelle.breit th, .tabelle.breit td { min-width: 0; padding: .65rem .6rem; font-size: .95rem; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  .tabelle.breit caption { display: table-caption; }
}

/* Startseite am Handy: Der dunkle Kasten nennt nur die Aussage. Die Preise stehen in der Liste direkt darunter. */
.werkzeug.kompakt .wz-kurzzeile .kz-preise, .werkzeug.kompakt .wz-kurzzeile .kz-hinweis { display: none; }

/* ---------- Kostenrechner: beschriftete Felder. Jedes Feld füllt seine Spalte, kein Feld misst seine Breite selbst. */
.wz-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem .8rem; min-width: 0; }
.wz-felder .feld.ganz { grid-column: 1 / -1; }
.wz-felder .feld[hidden], .wz-wert-feld[hidden] { display: none; }
.wz-felder .feld > label, .wz-wert-feld .feld > label { font-size: .9rem; }
.wz-felder select, .wz-felder input, .wz-wert-feld input[type="number"] { min-width: 0; border-color: #b9d9ca; }
.wz-felder select:hover, .wz-felder input:hover, .wz-wert-feld input[type="number"]:hover { border-color: var(--gruen); }
.wz-mass { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.wz-mass input { width: 6.5rem; flex: none; font-variant-numeric: tabular-nums; }
.wz-mass span { font-weight: 600; color: var(--leise); }
.wz-wert { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; min-width: 0; background: var(--karte); border: 1px solid #c4e2d4; border-radius: 16px; padding: .95rem 1rem 1rem; }
.wz-annahme { min-width: 0; }
.wz-annahme p { margin: 0; }
.wa-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .6rem; }
.wa-kopf .kennung { margin: 0; color: var(--leise); }
.wa-marke { font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; background: var(--gruen-hell); color: var(--gruen-tief); }
.wa-marke.wa-beispiel { background: var(--sand); color: var(--leise); }
.wa-marke.wa-eigen { background: var(--tinte); color: #fff; }
.wz-annahme .wa-zahl { margin-top: .15rem; font-size: 1.7rem; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--tinte); font-variant-numeric: tabular-nums; }
.wz-annahme .wa-text { margin-top: .4rem; font-size: .86rem; line-height: 1.5; color: var(--text); }
.wz-annahme .wa-wirkt { margin-top: .4rem; font-size: .86rem; line-height: 1.5; color: var(--text); }
.wz-wert .text-knopf { justify-self: start; font-size: .92rem; min-height: 1.75rem; text-align: left; }
.wz-wert-feld { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; border-top: 1px solid var(--linie); padding-top: .8rem; }
.wz-wert-feld input[type="range"]::-webkit-slider-runnable-track { background: var(--gruen-hell); }
.wz-wert-feld input[type="range"]::-moz-range-track { background: var(--gruen-hell); }
.wz-felder select, .wz-felder input { min-height: 2.8rem; padding-top: .55rem; padding-bottom: .55rem; }
.wz-felder select { padding-left: .7rem; padding-right: 1.9rem; background-position: calc(100% - 1.05rem) 55%, calc(100% - .7rem) 55%; }
@media (max-width: 399px) { .wz-eingabe { padding-left: .8rem; padding-right: .8rem; } }
/* Zwei Spalten nur dort, wo auch der längste Bezirksname ganz in sein Feld passt. */
@media (min-width: 744px) and (max-width: 959px) { .wz-felder { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.wz-klapp summary { display: flex; align-items: flex-start; }
.wz-klapp summary::before { flex: none; }
/* Die Eingabe bleibt nur stehen, wenn sie ganz in das Fenster passt. Sonst wäre ihr unteres Ende nicht zu erreichen. */
@media (min-width: 960px) and (max-height: 899px) { .werkzeug > .wz-eingabe { position: static; } }

/* Die Kurzzeile im Formular gibt es nur auf der Startseite (kompakt), wo sie den Ergebniskopf ersetzt. Überall sonst steht der Ergebniskopf direkt unter dem Formular, beides zusammen wäre doppelt. */
.werkzeug:not(.kompakt) .wz-kurzzeile { display: none; }
@media (max-width: 639px) { .reicht .gross { -webkit-hyphens: auto; hyphens: auto; } }

/* ---------- Leitfaden „Gutachten verstehen“: Kapitelmarke, Muster-Gutachten als Dokument, Prüfliste, Kasten mit den Kapiteln (INHALT-FORMAT.md) */
.kapitel-marke { margin: 0 0 .7rem; }
.kapitel-marke a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--gruen-tief); background: var(--minze); border-radius: 999px; padding: .28rem .8rem .28rem .65rem; letter-spacing: .06em; }
.kapitel-marke a::before { content: ""; width: .7rem; height: .85rem; border: 2px solid var(--gruen); border-radius: 2px; box-shadow: inset 0 -3px 0 -1px var(--minze), inset 0 -5px 0 -1px var(--gruen); flex: none; }
.kapitel-marke a:hover { background: var(--gruen-hell); color: var(--gruen-tief); }

/* Das Gutachten als Dokument: Papierblatt mit zweitem Blatt dahinter, Deckblatt, Inhaltsverzeichnis mit Seitenzahlen */
.akte { position: relative; margin: 1.8rem .45rem 0 0; background: #fffdf8; border: 1px solid #ddd6c6; border-radius: 4px 4px 6px 6px; box-shadow: 6px 7px 0 -1px #f4efe3, 6px 7px 0 0 #ddd6c6, 0 18px 40px -26px rgba(13, 27, 22, .45); }
.akte-deckblatt { position: relative; padding: 1.5rem 1.15rem 1.3rem; border-bottom: 1px solid #e6dfcf; background: linear-gradient(#fffdf8, #fbf7ec); border-radius: 4px 4px 0 0; overflow: hidden; }
.akte-deckblatt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gruen); }
.akte-deckblatt p { margin: 0; }
.akte-marke { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--warn); border: 1.5px solid currentColor; border-radius: 4px; padding: .12rem .5rem; transform: rotate(-1.5deg); background: #fffaf0; }
.akte-deckblatt .akte-titel { margin-top: 1rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--tinte); text-wrap: balance; }
.akte-deckblatt .akte-objekt { margin-top: .3rem; font-size: 1.02rem; color: var(--text); }
.akte-daten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 1.1rem 0 0; font-size: .93rem; }
.akte-daten dt { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); padding-top: .5rem; border-top: 1px dotted #cfc6b1; }
.akte-daten dd { margin: 0; padding: .05rem 0 .5rem; color: var(--tinte); font-weight: 600; }
.akte-kopf { margin: 0; padding: 1.1rem 1.15rem 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.akte-teile { list-style: none; margin: 0; padding: .2rem 1.15rem 0; counter-reset: teil; }
.akte-teile > li { counter-increment: teil; margin: 0; padding: 1rem 0 1.1rem; border-bottom: 1px solid #ebe5d6; }
.akte-teile > li:last-child { border-bottom: 0; }
.akte-teile h3 { margin: 0; display: flex; align-items: baseline; gap: .5rem; font-size: 1.08rem; line-height: 1.3; }
.akte-teile h3::before { content: counter(teil); flex: none; min-width: 1.35rem; font-variant-numeric: tabular-nums; color: var(--gruen); font-weight: 800; }
.akte-name { min-width: 0; }
.akte-seite { margin-left: auto; flex: none; display: flex; align-items: baseline; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.akte-teile p { margin: .5rem 0 0; padding-left: 1.85rem; font-size: .96rem; line-height: 1.5; }
.akte-teile .akte-fehlt { position: relative; margin-top: .4rem; color: var(--warn); }
.akte-teile .akte-fehlt::before { content: "!"; position: absolute; left: .35rem; top: .22rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bernstein); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1rem; text-align: center; }
.akte-fuss { margin: 0; padding: .85rem 1.15rem 1rem; border-top: 1px solid #e6dfcf; background: #fbf7ec; font-size: .84rem; color: var(--leise); border-radius: 0 0 6px 6px; }

/* Prüfliste zum Antippen. Die Haken leben nur in der geöffneten Seite, gespeichert wird nichts. */
.pruefliste { margin-top: 1.5rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.pruefliste-titel { margin: 0; padding: .9rem 1.1rem; background: var(--gruen-tief); color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.pruef-punkte { list-style: none; margin: 0; padding: 0; }
.pruef-punkte li { margin: 0; border-bottom: 1px solid var(--linie); }
.pruef-punkte label { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .85rem 1.1rem .9rem; cursor: pointer; font-size: .98rem; line-height: 1.5; transition: background .15s; }
.pruef-punkte label:hover { background: #f7faf7; }
.pruef-punkte input { appearance: none; -webkit-appearance: none; width: 1.7rem; height: 1.7rem; margin: .05rem 0 0; border: 2px solid #9db8ab; border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-content: center; transition: background .12s, border-color .12s; }
.pruef-punkte input::after { content: ""; width: .85rem; height: .45rem; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-.1rem) rotate(-45deg) scale(0); transition: transform .12s; }
.pruef-punkte input:checked { background: var(--gruen); border-color: var(--gruen); }
.pruef-punkte input:checked::after { transform: translateY(-.1rem) rotate(-45deg) scale(1); }
.pruef-punkte li:has(input:checked) label { background: var(--gruen-hell); }
.pruef-punkte strong { color: var(--tinte); }
.pruefliste-stand { margin: 0; padding: .7rem 1.1rem .75rem; font-size: .88rem; color: var(--leise); background: var(--sand); border-bottom: 1px solid var(--linie); }
.pruefliste-stand b { color: var(--gruen-tief); font-variant-numeric: tabular-nums; }
.pruefliste-stand.fertig { background: var(--gruen-hell); color: var(--gruen-tief); }
.pruefliste h3 { margin: 0; padding: 1rem 1.1rem 0; font-size: 1.02rem; color: var(--warn); background: var(--ton-hell); }
.pruef-warn { list-style: none; margin: 0; padding: .5rem 1.1rem 1.1rem; background: var(--ton-hell); font-size: .97rem; line-height: 1.5; }
.pruef-warn li { position: relative; margin: .6rem 0 0; padding-left: 1.95rem; }
.pruef-warn li::before { content: "!"; position: absolute; left: 0; top: .12rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--bernstein); color: #fff; font-weight: 800; font-size: .85rem; line-height: 1.3rem; text-align: center; }
.pruef-warn strong { color: var(--tinte); }

/* Kasten „Leitfaden: Gutachten verstehen“: nur bestehende Seiten */
.leitfaden { margin-top: 3rem; background: var(--sand); border-radius: 20px; padding: 1.3rem 1.1rem 1.3rem; }
.ratgeber section.leitfaden { margin-top: 3rem; }
.leitfaden h2 { margin-top: 0; font-size: 1.3rem; }
.leitfaden > p { margin-top: .5rem; font-size: .97rem; }
.leitfaden-liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; counter-reset: lf; }
.leitfaden-liste li { margin: 0; counter-increment: lf; }
.lf-karte { position: relative; display: block; height: 100%; padding: .8rem 1rem .85rem 3.1rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; text-decoration: none; color: var(--text); }
.lf-karte::before { content: counter(lf); position: absolute; left: .85rem; top: .8rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gruen-hell); color: var(--gruen-tief); font-weight: 800; font-size: .9rem; line-height: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; }
a.lf-karte:hover { border-color: var(--gruen); color: var(--text); box-shadow: var(--schatten); }
.lf-frage { display: block; font-weight: 700; color: var(--tinte); line-height: 1.3; }
a.lf-karte .lf-frage { text-decoration: underline; text-decoration-color: #9fcdb9; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lf-titel { display: block; margin-top: .15rem; font-size: .9rem; color: var(--leise); line-height: 1.35; }
.leitfaden-liste .hier .lf-karte { border-color: var(--gruen); background: var(--gruen-hell); }
.leitfaden-liste .hier .lf-karte::before { background: var(--gruen); color: #fff; }
.lf-hier { display: inline-block; margin-top: .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gruen-tief); }

@media (min-width: 640px) {
  .akte { margin-right: .5rem; }
  .akte-deckblatt { padding: 1.9rem 1.8rem 1.5rem 2.1rem; }
  .akte-deckblatt .akte-titel { font-size: 1.75rem; }
  .akte-daten { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; column-gap: 1.6rem; grid-auto-flow: column; grid-template-rows: auto auto; }
  .akte-daten dt { border-top: 0; padding-top: 0; }
  .akte-daten dd { padding-bottom: 0; }
  .akte-kopf { padding: 1.3rem 1.8rem 0 2.1rem; }
  .akte-teile { padding: .2rem 1.8rem 0 2.1rem; }
  /* Im Inhaltsverzeichnis füllt eine Punktlinie den Raum zwischen Titel und Seitenzahl */
  .akte-seite { flex: 1 1 auto; }
  .akte-seite::before { content: ""; flex: 1 1 auto; min-width: 1.5rem; border-bottom: 2px dotted #c9c0aa; transform: translateY(-.22em); }
  .akte-fuss { padding: .9rem 1.8rem 1rem 2.1rem; }
  .pruef-punkte label { padding: .9rem 1.4rem .95rem; }
  .pruefliste-titel, .pruefliste-stand { padding-left: 1.4rem; padding-right: 1.4rem; }
  .pruefliste h3 { padding-left: 1.4rem; padding-right: 1.4rem; }
  .pruef-warn { padding-left: 1.4rem; padding-right: 1.4rem; }
  .leitfaden { padding: 1.7rem 1.8rem 1.8rem; }
  .leitfaden-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .akte { box-shadow: none; }
  .pruefliste { box-shadow: none; }
  .pruefliste-stand, .leitfaden, .kapitel-marke { display: none; }
  .pruef-punkte li:has(input:checked) label { background: transparent; }
}

/* ---------- Karte im Grundstücks-Check: Rückmeldung beim Überfahren, wie die Parzellenkarte in Gutachten-KI */
.gwz-landkarte.leaflet-container { font-family: var(--sans); cursor: grab; }
.gwz-landkarte.leaflet-container:active { cursor: grabbing; }
.gwz-landkarte .leaflet-interactive { cursor: pointer; }
.gwz-landkarte path.leaflet-interactive { transition: fill-opacity .12s, stroke-opacity .12s; outline: 0; }
.gwz-landkarte.gwz-liest, .gwz-landkarte.gwz-liest .leaflet-interactive { cursor: progress; }
/* Nummer in der Fläche: weiß beim Überfahren, grün beim gewählten Grundstück */
.leaflet-tooltip.gwz-knr { font: 700 .8rem/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--tinte); background: rgba(255, 255, 255, .95); border: 1px solid #b9c6bd; border-radius: 7px; padding: .16rem .45rem; box-shadow: 0 1px 2px rgba(13, 27, 22, .16); white-space: nowrap; pointer-events: none; }
.leaflet-tooltip.gwz-knr::before { display: none; }
.leaflet-tooltip.gwz-knr.gewaehlt { color: #fff; background: var(--gruen-tief); border-color: var(--gruen-tief); }
/* Zeile unten links: was der Zeiger trifft oder was die Karte gerade tut */
.gwz-kinfo { position: absolute; z-index: 800; left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: .82rem; line-height: 1.3; color: var(--tinte); background: rgba(255, 255, 255, .95); border: 1px solid #b9c6bd; border-radius: 9px; padding: .3rem .6rem; box-shadow: 0 1px 2px rgba(13, 27, 22, .14); pointer-events: none; }
.gwz-kinfo[hidden] { display: none; }
.gwz-kinfo b { font-variant-numeric: tabular-nums; }
.gwz-landkarte .leaflet-control-attribution { max-width: 100%; }
@media (max-width: 639.98px) {
  /* schmal: Die Quellenzeile der Karte braucht die ganze Breite unten, die Zeile sitzt deshalb oben rechts */
  .gwz-kinfo { left: auto; right: 10px; bottom: auto; top: 10px; max-width: calc(100% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .gwz-landkarte path.leaflet-interactive { transition: none; } }

/* ---------- Ratgeber-Übersicht /ratgeber/ (Fixrunde 26.11.): ein Verzeichnis statt Kacheln. Am Handy eine Spalte, ab 860 px links die Gruppe, rechts ihre Texte. */
.rg-kopf { padding: 1.4rem 0 .2rem; }
.rg-kopf h1 { max-width: 18em; }
.rg-sprung { margin-top: 1.3rem; }
.rg-gruppe { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 2px solid var(--tinte); }
.rg-gruppe-kopf h2 { margin: 0; }
.rg-gruppe-kopf p { margin: .45rem 0 0; max-width: 26rem; font-size: .98rem; line-height: 1.5; color: var(--leise); }
.rg-liste, .rg-unter { list-style: none; padding: 0; margin: 0; }
.rg-liste { margin-top: .5rem; }
.rg-liste li { margin: 0; min-width: 0; }
.rg-liste > li + li, .rg-unter li + li { border-top: 1px solid var(--linie); }
.rg-eintrag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .95rem 0 1rem; text-decoration: none; color: var(--text); }
.rg-eintrag b { grid-column: 1; font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--tinte); }
.rg-eintrag span { grid-column: 1; font-size: .97rem; line-height: 1.5; color: var(--text); }
.rg-eintrag::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 650; color: var(--gruen); transition: transform .15s; }
.rg-eintrag:hover { color: var(--text); }
.rg-eintrag:hover b { color: var(--gruen); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rg-eintrag:hover::after { transform: translateX(3px); }
.rg-unter { margin: 0 0 1rem .1rem; padding-left: 1rem; border-left: 2px solid var(--minze); }
.rg-unter .rg-eintrag { padding: .7rem 0 .75rem; }
.rg-unter .rg-eintrag b { font-size: 1.02rem; }
.rg-unter .rg-eintrag span { font-size: .93rem; }
.rg > .lese { margin-top: 2.4rem; }
@media (min-width: 860px) {
  .rg-gruppe { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 44rem); gap: 0 3.2rem; align-items: start; }
  .rg-gruppe-kopf { position: sticky; top: 5.5rem; }
  .rg-liste { margin-top: 0; }
  .rg-liste > li:first-child > .rg-eintrag { padding-top: .25rem; }
}
@media (prefers-reduced-motion: reduce) { .rg-eintrag::after { transition: none; } }

/* ---------- Tippflächen am Handy mindestens 44 × 44 px (Fixrunde 26.11., Befund Handwerk 6). Ab 720 px bleibt alles, wie es war. */
@media (max-width: 719px) {
  .kopf .rand { padding-top: .45rem; padding-bottom: .45rem; }
  .marke { min-height: 2.75rem; }
  .land-leiste b, .land-leiste a { display: inline-flex; align-items: center; justify-content: center; }
  .land-leiste a { min-width: 2.75rem; min-height: 2.75rem; }
  .menue summary { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .text-knopf, .wz-wert .text-knopf, .hf-aendern { min-height: 2.75rem; }
  .wahl label > span { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .haken-feld { min-height: 2.75rem; }
  .ortsliste a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .fuss li + li { margin-top: 0; }
  .fuss li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
/* Unter 400 px: Logo, Länderwahl und Menü bleiben in einer Zeile, auch bei 360 px */
@media (max-width: 399px) {
  .kopf .rand { gap: .5rem; padding-left: .95rem; padding-right: .95rem; }
  .kopf-rechts { gap: .4rem; }
  .marke { gap: .45rem; }
  .marke svg { width: 30px; height: 30px; }
  .kopf .marke-name { font-size: 1.05rem; }
  .land-leiste b { padding-left: .5rem; padding-right: .5rem; }
  .menue summary { padding-left: .65rem; padding-right: .65rem; }
}

/* ---------- Anfrageformular: drei Gruppen, ruhige Abstände, Fehler am Feld */
.anfrage-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1.5rem; padding: 1.25rem 1.1rem 1.35rem; }
.af-gruppe { border: 0; margin: 0; padding: 0 0 1.5rem; min-width: 0; }
.af-gruppe + .af-gruppe { border-top: 1px solid var(--linie); padding-top: 1.35rem; }
.af-gruppe > legend { float: left; width: 100%; padding: 0; margin: 0 0 .95rem; font-size: 1.12rem; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; color: var(--tinte); }
.af-gruppe > legend + * { clear: both; }
.af-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.anfrage-form .feld { gap: .4rem; align-content: start; }
.anfrage-form .feld > label { font-size: .95rem; line-height: 1.3; }
.anfrage-form select, .anfrage-form input[type="text"], .anfrage-form input[type="email"], .anfrage-form input[type="tel"], .anfrage-form textarea { border-color: #b9c6bd; }
.anfrage-form select { text-overflow: ellipsis; }
.anfrage-form textarea { min-height: 7rem; line-height: 1.5; }
.anfrage-form :is(select, input, textarea):focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-color: var(--gruen); border-radius: 12px; }
.feld-hilfe { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--leise); }
.feld-fehler { margin: 0; font-size: .88rem; line-height: 1.4; font-weight: 600; color: var(--nein); }
.anfrage-form [aria-invalid="true"] { border-color: var(--nein); background: #fdf5f3; }
.af-senden { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--linie); padding-top: 1.35rem; }
.af-senden .haken-feld { grid-template-columns: 1.4rem minmax(0, 1fr); gap: .7rem; line-height: 1.5; color: var(--text); background: var(--papier); border-radius: 14px; padding: .85rem .95rem .9rem; cursor: pointer; }
.af-senden .haken-feld input { width: 1.3rem; height: 1.3rem; margin: .12rem 0 0; }
.af-senden .klein { margin: 0; font-size: .88rem; line-height: 1.5; }
.af-fehler { margin: 0; font-weight: 600; color: var(--nein); background: #fdf5f3; border-left: 4px solid var(--nein); border-radius: 10px; padding: .65rem .85rem; }
.af-fehler[hidden] { display: none; }
.af-knopf .knopf { width: 100%; }
@media (min-width: 640px) {
  .anfrage-form { padding: 1.7rem 1.8rem 1.8rem; }
  .af-gruppe { padding-bottom: 1.7rem; }
  .af-gruppe + .af-gruppe, .af-senden { padding-top: 1.6rem; }
  .af-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
  .af-felder .feld.ganz { grid-column: 1 / -1; }
  .af-knopf .knopf { width: auto; min-width: 14rem; }
}

/* ---------- Fixrunde 26.11.: Startseite und Werkzeuge (Rechner, Entscheidungshilfe, Anfrage) ---------- */
/* Startseite: Anlass als erste Auswahl im Rechner (Erlebnis 3, 4). Die Ergebniszeile steht direkt unter dem gewählten Anlass. */
.wz-anlass > legend { font-size: 1.05rem; }
.wz-anlass .wahl { gap: .4rem; }
.wz-kurzzeile[hidden], .wz-einig[hidden] { display: none; }
@media (max-width: 959px) { .werkzeug.kompakt .ergebnis > .hilfe-leer { display: none; } }
.werkzeug.kompakt .ergebnis > .hilfe-leer + .kurzliste { margin-top: .8rem; }
.kurzliste.ohne-urteil li { grid-template-columns: minmax(0, 1fr) auto; }
/* „Reicht nur unter Bedingungen“: die Bedingung als eigene Zeile in der Karte (Erlebnis 10) */
.kurzliste .bedingung { grid-column: 1 / -1; font-size: .8rem; line-height: 1.4; color: var(--text); margin-top: .2rem; }
/* Ohne Preis: Wort statt Zahl und der Grund darunter (Handwerk 1) */
.ohne-satz { margin: .25rem 0 0; font-size: .86rem; line-height: 1.45; color: var(--leise); }
/* Mindestpreis als obere Zahl: „und mehr“ kleiner, darf umbrechen */
.und-mehr { font-size: .62em; font-weight: 650; letter-spacing: 0; white-space: normal; color: var(--leise); }
.weg-preis small { font-size: .55em; font-weight: 600; letter-spacing: 0; color: var(--leise); }
/* Eingabe außerhalb der Grenzen: Hinweis am Feld, Feld markiert, nichts still korrigiert (Handwerk 2) */
.feld-grenze { margin: .35rem 0 0; font-size: .86rem; line-height: 1.4; font-weight: 600; color: var(--warn); }
.feld-grenze[hidden] { display: none; }
input[aria-invalid="true"]:not(.anfrage-form input) { border-color: var(--bernstein); background: #fff8ec; }
/* Betrag ohne Umsatzsteuer neben der großen Zahl: bricht nur als Ganzes um */
.zahl .wert small, .weg-preis small { white-space: nowrap; display: inline-block; }

/* ---------- Fixrunde Colin 26.11. (Design): Länderwahl dezent, Hinweisleiste mit Pfeil, drei Schritte als Karten */
.land-leiste { border: 0; border-radius: 0; overflow: visible; background: none; font-size: .88rem; gap: 0; align-items: center; }
.land-leiste b, .land-leiste a { padding: .42rem .45rem; font-weight: 600; letter-spacing: .02em; }
.land-leiste b { background: none; color: var(--tinte); font-weight: 750; text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.land-leiste a { color: var(--leise); }
.land-leiste a:hover { background: none; color: var(--gruen-tief); text-decoration: underline; }
.land-leiste a::before { content: "·"; position: relative; left: -.55rem; color: var(--linie); font-weight: 700; margin-right: -.3rem; }
.land-leiste .lang, .land-leiste .knapp { display: none; }
@media (max-width: 719px) {
  .land-leiste b, .land-leiste a { min-width: 2.75rem; min-height: 2.75rem; }
}
@media (max-width: 399px) { .land-leiste b { padding-left: .35rem; padding-right: .35rem; } .land-leiste b, .land-leiste a { min-width: 2.5rem; } }
.wz-fuss .pf-links { display: none; }
@media (min-width: 860px) { .wz-fuss .pf-hoch { display: none; } .wz-fuss .pf-links { display: inline; } }

.drei { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; counter-reset: none; }
.drei-karte { position: relative; display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 1.2rem 1.2rem 1.3rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); min-width: 0; overflow-wrap: break-word; }
.drei-nr { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gruen); color: #fff; font: 700 1.15rem/1 var(--sans); }
.drei-karte h3 { margin: .35rem 0 0; padding: 0; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.015em; color: var(--tinte); }
.drei-karte p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--text); }
.drei-karte .knopf { margin-top: auto; align-self: stretch; }
.drei-karte p + .knopf { margin-top: .8rem; }
@media (min-width: 860px) {
  .drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
  .drei-karte:not(:last-child)::after { content: "→"; position: absolute; right: -1.05rem; top: 1.7rem; width: 1rem; text-align: center; color: var(--gruen); font-weight: 700; }
  .drei-karte .knopf { align-self: flex-start; }
  .drei-karte p { flex: 1 1 auto; }
}

/* Werkzeug im Ratgebertext und Service-Kasten am Textende (26.11.2026, Baustein bausteine-artikel.mjs) */
.im-text-werkzeug { margin-top: 2rem; }
.im-text-werkzeug > h2 { margin-top: 0; }
.im-text-werkzeug > .gwz { margin-top: 1rem; }
.service-kasten { background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--gruen); border-radius: var(--radius); padding: 1.2rem 1.25rem 1.3rem; margin-top: 1.4rem; box-shadow: var(--schatten); }
.service-kasten h2 { margin-top: 0; font-size: 1.2rem; }
.service-kasten p { margin-top: .6rem; }
.service-kasten p:last-child { margin-bottom: 0; }
/* Platzhalter im Ergebnis: Pfeil zur Anlass-Auswahl. Links, wo Eingabe und Ergebnis nebeneinander stehen, sonst nach oben. */
.hl-pf { display: inline-block; margin-right: .45rem; font-size: 1.55em; line-height: 1; font-weight: 800; color: var(--gruen); vertical-align: -.12em; }
.hl-pf .pf-l, .hl-links { display: none; }
.hilfe-leer .hl-pf { display: inline-block; }
@media (min-width: 860px) { .hilfe .hl-pf .pf-o { display: none; } .hilfe .hl-pf .pf-l, .hilfe .hl-links { display: inline; } }
@media (min-width: 960px) { .werkzeug .hl-pf .pf-o { display: none; } .werkzeug .hl-pf .pf-l, .werkzeug .hl-links { display: inline; } }

/* ---------- Datenblatt per E-Mail unter dem Ergebnis (Werkzeuge), Seite „Datenblatt bestätigen“ */
.db-kasten { display: grid; gap: .8rem; margin: 1.6rem 0 0; padding: 1.1rem 1.1rem 1.2rem; background: var(--sand); border: 1px solid var(--linie); border-radius: var(--radius); }
.db-kasten[hidden], .db-form[hidden], .db-fertig[hidden] { display: none; }
.db-kasten h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; color: var(--tinte); }
.db-lead { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--text); }
.db-form { display: grid; gap: .85rem; }
.db-senden .knopf { width: 100%; justify-content: center; }
.db-form .klein { margin: 0; font-size: .88rem; line-height: 1.5; }
.db-form .haken-feld { line-height: 1.5; color: var(--text); }
.db-form [aria-invalid="true"] { border-color: var(--nein); background: #fdf5f3; }
.db-form :is(input[type="email"]):focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-color: var(--gruen); }
/* Honigtopf: für Menschen und Hilfstechnik unsichtbar, für Skripte ein Feld wie jedes andere */
.db-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.db-fertig { display: grid; gap: .5rem; justify-items: start; }
.db-fertig p { margin: 0; line-height: 1.5; }
.db-fertig p:first-child { color: var(--tinte); font-size: 1.02rem; }
.db-bestaetigen { margin-top: 1.4rem; }
.db-bestaetigen h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.db-bestaetigen p { margin: 0; }
.db-bestaetigen [data-zustand="ok"] h2 { color: var(--gruen-tief); }
.db-bestaetigen [data-zustand="abgelaufen"] h2, .db-bestaetigen [data-zustand="unbekannt"] h2, .db-bestaetigen [data-zustand="fehler"] h2 { color: var(--warn); }
@media (min-width: 640px) {
  .db-senden .knopf { width: auto; }
}
/* Zweispaltiges Werkzeug (ab 960 px): Das Formular steht links über beide Zeilen, Ergebnis und Kasten rechts untereinander. */
@media (min-width: 960px) {
  .werkzeug:not(.breit) > .wz-eingabe { grid-row: 1 / span 2; }
  .werkzeug:not(.breit) > .db-kasten { grid-column: 2; grid-row: 2; margin-top: 0; }
}
@media print { .db-kasten { display: none; } }

/* Danke-Seite: Die Antwortzeit gehört zur Bestätigung und bleibt auch am Handy stehen (sonst blendet .seitenkopf .lead sie dort aus). */
.seitenkopf .lead.danke-lead { display: block; }
