/* Objektmaß – Prototyp. Welt: Bauzeichnung (Lichtpause, Graphit, Planblau, Rotstift). */
:root {
  --papier: #eef3f8;
  --papier-2: #e2e9f1;
  --flaeche: #f8fafd;
  --linie: #cbd3db;
  --hilfslinie: #8f9ba7;
  --graphit: #1b2127;
  --graphit-2: #46515c;
  --graphit-3: #5d6873;
  --planblau: #1d3f8f;
  --planblau-dunkel: #132c66;
  --planblau-hell: #dfe7f6;
  --planblau-text: #c9d6f2;
  --rotstift: #b8302a;
  --rotstift-hell: #f8e4e2;
  --unter: var(--graphit);
  --ueber: #b8302a;
  --schrift: "Barlow", system-ui, sans-serif;
  --schmal: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --r: 3px;
  --kopf-h: 64px;
  --band-h: 26px;
  --suchkopf-h: 110px;
  --schatten: 0 8px 24px rgba(19, 44, 102, .14), 0 2px 6px rgba(19, 44, 102, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--graphit);
  font: 400 15px/1.45 var(--schrift); font-variant-numeric: tabular-nums;
  min-height: 100vh;
}
::selection { background: var(--planblau); color: #fff; }
:focus-visible { outline: 2px solid var(--planblau); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--hilfslinie) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--linie); border: 3px solid var(--papier); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--hilfslinie); }
input, select, button, textarea { font: inherit; color: inherit; caret-color: var(--planblau); }
a { color: var(--planblau); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--schmal); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0; }
.sprite { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.nur-mobil { display: none; }
.leise { color: var(--graphit-3); font-weight: 500; }

/* Knöpfe und Felder */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border: 1px solid var(--linie); border-radius: var(--r);
  background: var(--flaeche); color: var(--graphit); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.knopf:hover { border-color: var(--hilfslinie); background: #fff; }
.knopf.primaer { background: var(--planblau); border-color: var(--planblau); color: #fff; }
.knopf.primaer:hover { background: var(--planblau-dunkel); }
.knopf.breit { width: 100%; }
.knopf.klein { height: 34px; padding: 0 10px; font-size: 14px; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.link-knopf { border: 0; background: none; color: var(--planblau); cursor: pointer; padding: 4px 0; font-weight: 500; }
.link-knopf:hover { text-decoration: underline; }
.icon-knopf { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--r); background: none; cursor: pointer; color: var(--graphit-2); }
.icon-knopf:hover { background: var(--papier-2); color: var(--graphit); }
.icon-knopf.klein { width: 30px; height: 30px; }
.zahl { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r); background: transparent; border: 1px solid var(--hilfslinie); color: var(--graphit-2); font-size: 12px; font-weight: 600; }
.knopf .zahl { background: var(--planblau); border-color: var(--planblau); color: #fff; }
.eingabe { position: relative; display: flex; align-items: center; margin-top: 5px; }
.eingabe input, .eingabe select {
  width: 100%; height: 38px; padding: 0 30px 0 10px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--flaeche); min-width: 0;
  -moz-appearance: textfield;
}
.eingabe input[type="date"] { padding-right: 8px; }
.eingabe select { appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346515c' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }
.eingabe input::-webkit-outer-spin-button, .eingabe input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eingabe input::placeholder { color: var(--graphit-3); }
.eingabe input:hover, .eingabe select:hover { border-color: var(--hilfslinie); }
.eingabe input:focus, .eingabe select:focus { outline: 0; border-color: var(--planblau); box-shadow: 0 0 0 3px var(--planblau-hell); }
.eingabe i { position: absolute; right: 9px; font-style: normal; font-size: 12.5px; color: var(--graphit-3); pointer-events: none; }
.hilfe { margin: 6px 0 0; font-size: 12.5px; color: var(--graphit-3); line-height: 1.4; }
.segmente { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 5px; border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; background: var(--flaeche); }
.segmente button { height: 34px; padding: 0 6px; border: 0; border-left: 1px solid var(--linie); background: none; cursor: pointer; font-size: 14px; color: var(--graphit-2); }
.segmente button:first-child { border-left: 0; }
.segmente button:hover { background: var(--papier-2); }
.segmente button[aria-checked="true"] { background: var(--planblau); color: #fff; font-weight: 500; }
.segmente button:focus-visible { outline-offset: -2px; }
.segmente.umbruch { display: flex; flex-wrap: wrap; }
.segmente.umbruch button { flex: 1 1 auto; min-width: 0; border-left: 1px solid var(--linie); border-top: 1px solid var(--linie); margin: -1px 0 0 -1px; }
.schalter { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14.5px; }
.schalter input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--hilfslinie); border-radius: 2px; background: var(--flaeche); display: grid; place-items: center; cursor: pointer; flex: none; }
.schalter input:checked { background: var(--planblau); border-color: var(--planblau); }
.schalter input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.schalter input:disabled { opacity: .5; }
.schalter .anz { margin-left: auto; color: var(--graphit-3); font-size: 13px; }
.haken-reihe { display: flex; flex-wrap: wrap; gap: 0 18px; }
.haken-reihe.spalten { display: grid; grid-template-columns: 1fr; }
.feld { margin-bottom: 14px; display: block; }
.feld-titel, label.feld { font-size: 13px; color: var(--graphit-2); font-weight: 500; }
.feld-titel { display: block; }
.feld-dreier { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 8px; }
.feld-dreier label { display: block; font-size: 13px; color: var(--graphit-2); font-weight: 500; }
.von-bis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.von-bis .eingabe { margin-top: 5px; }
.finanzierung { margin-bottom: 14px; border: 1px dashed var(--hilfslinie); border-radius: var(--r); padding: 10px 12px; background: var(--flaeche); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 30; background: var(--planblau); color: #fff; }
.kopf-zeile { display: flex; align-items: center; gap: 24px; height: var(--kopf-h); padding: 0 24px; }
.marke { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 21px/1 var(--schmal); }
.marke-zeichen { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: square; }
.hauptnav { display: flex; gap: 4px; margin-left: auto; }
.hauptnav a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; color: var(--planblau-text); text-decoration: none; font-weight: 500; border-radius: var(--r); white-space: nowrap; }
.hauptnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hauptnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.hauptnav .zahl { border-color: rgba(255, 255, 255, .45); color: #fff; }
.testhinweis { margin: 0; padding: 4px 24px; background: var(--planblau-dunkel); color: var(--planblau-text); font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--band-h); }
.testhinweis p { margin: 0; }
.daten-wahl { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r); overflow: hidden; flex: none; }
.daten-wahl button { border: 0; background: none; color: var(--planblau-text); font-size: 12.5px; padding: 3px 10px; cursor: pointer; }
.daten-wahl button[aria-pressed="true"] { background: #fff; color: var(--planblau-dunkel); font-weight: 600; }

/* Suchkopf: Ort, Immobilienart, Suchen, Filter, Speichern, Schnellfilter, Chips */
.ansicht-suche { min-height: calc(100vh - var(--kopf-h) - var(--band-h)); }
.suchkopf { position: sticky; top: calc(var(--kopf-h) + var(--band-h)); z-index: 20; padding: 12px 24px 10px; background: var(--papier); border-bottom: 1px solid var(--linie); display: grid; gap: 10px; }
.suchkopf > * { min-width: 0; max-width: 100%; }
.suchleiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ortfeld {
  position: relative; flex: 1 1 320px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0;
  min-height: 40px; padding: 0 10px; background: var(--flaeche); color: var(--graphit); border-radius: var(--r); border: 1px solid var(--linie);
}
.ortfeld:hover { border-color: var(--hilfslinie); }
.ortfeld:focus-within { border-color: var(--planblau); box-shadow: 0 0 0 3px var(--planblau-hell); }
.ortfeld .ic { color: var(--graphit-3); }
.ortfeld input { flex: 1; min-width: 120px; border: 0; outline: 0; background: none; height: 38px; }
.ortfeld input::placeholder { color: var(--graphit-3); }
.tastenhinweis { font: 500 11px/1 var(--schrift); color: var(--graphit-3); border: 1px solid var(--linie); border-radius: 3px; padding: 3px 5px; }
.ort-chips { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; overflow: hidden; }
.ort-chip { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 2px 0 9px; background: var(--planblau-hell); color: var(--planblau-dunkel); border-radius: 3px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.ort-chip button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 2px; }
.ort-chip button:hover { background: rgba(19, 44, 102, .12); }
.ort-chip .ic { width: 14px; height: 14px; color: inherit; }
.ort-chip .km { height: 22px; margin-left: 4px; padding: 0 2px; border: 0; border-left: 1px solid rgba(19,44,102,.2); background: none; color: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.ort-vorschlaege {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten); z-index: 40; max-height: 360px; overflow: auto;
}
.ort-vorschlaege li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 2px; cursor: pointer; }
.ort-vorschlaege li[aria-selected="true"], .ort-vorschlaege li:hover { background: var(--planblau-hell); }
.ort-vorschlaege .art { color: var(--graphit-3); font-size: 13px; }
.ort-vorschlaege .anz { color: var(--graphit-3); font-size: 13px; margin-left: auto; }
.ort-vorschlaege mark { background: none; color: var(--planblau); font-weight: 600; }
.art-wahl {
  height: 40px; padding: 0 34px 0 12px; border: 0; border-radius: var(--r); background: var(--planblau-dunkel); color: #fff; font-weight: 500; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.art-wahl option { background: #fff; color: var(--graphit); }
.schnellfilter { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: end; }
.schnellfilter label { display: block; font-size: 12.5px; color: var(--graphit-2); font-weight: 500; flex: 0 1 220px; min-width: 0; }
.schnellfilter .eingabe { margin-top: 3px; }
.schnellfilter .eingabe input, .schnellfilter .eingabe select { height: 34px; }
.aktive-filter { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.aktive-filter:empty { display: none; }
.aktive-filter li { display: inline-flex; align-items: center; height: 28px; padding: 0 2px 0 10px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: var(--r); font-size: 13px; color: var(--graphit-2); white-space: nowrap; }
.aktive-filter button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; color: var(--graphit-3); cursor: pointer; border-radius: var(--r); }
.aktive-filter button:hover { background: var(--papier-2); color: var(--graphit); }
.aktive-filter .ic { width: 13px; height: 13px; }

/* Strategien */
.strategien { padding: 10px 24px 14px; border-bottom: 1px solid var(--linie); }
.strategien summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
.strategien summary::-webkit-details-marker { display: none; }
.strategien summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--graphit-2); border-bottom: 1.5px solid var(--graphit-2); transform: rotate(-45deg); flex: none; align-self: center; transition: transform .15s; }
.strategien[open] summary::before { transform: rotate(45deg); }
.strategien h2 { font-size: 17px; }
.strategien summary .hilfe { margin: 0; }
.strategie-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.strategie { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 9px 11px; text-align: left; border: 1px solid var(--linie); border-radius: var(--r); background: var(--flaeche); cursor: pointer; }
.strategie:hover { border-color: var(--hilfslinie); background: #fff; }
.strategie[aria-pressed="true"] { border-color: var(--planblau); box-shadow: inset 0 0 0 1px var(--planblau); background: #fff; }
.strategie b { font-weight: 600; }
.strategie small { grid-column: 1 / -1; color: var(--graphit-3); font-size: 12.5px; line-height: 1.35; }
.strategie .anz { color: var(--graphit-3); font-size: 13px; }

/* Trefferkopf */
.treffer-bereich { min-width: 0; display: flex; flex-direction: column; background: var(--papier); }
.treffer-bereich.vollbild { overflow: auto; }
.treffer-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 24px; border-bottom: 1px solid var(--linie); }
.treffer-tabs { display: flex; gap: 2px; }
.treffer-tabs a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; color: var(--graphit-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.treffer-tabs a:hover { color: var(--graphit); }
.treffer-tabs a[aria-selected="true"] { color: var(--planblau); border-bottom-color: var(--planblau); }
.treffer-zahl { margin: 0; font-size: 15px; color: var(--graphit-2); }
.treffer-zahl strong { font: 600 24px/1 var(--schmal); color: var(--graphit); margin-right: 2px; }
.treffer-werkzeuge { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.ansicht-wahl { display: inline-flex; border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.ansicht-wahl button { width: 38px; height: 34px; border: 0; background: var(--flaeche); cursor: pointer; display: grid; place-items: center; color: var(--graphit-2); }
.ansicht-wahl button[aria-pressed="true"] { background: var(--planblau); color: #fff; }
.sortierung select { height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--flaeche); appearance: none; cursor: pointer; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346515c' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }

/* Trefferfläche: Liste oder Karte */
.treffer-flaeche { flex: 1; min-width: 0; }
.liste-wrap { min-width: 0; padding: 0 0 40px; }
.treffer-flaeche[data-ansicht="karte"] .liste-wrap { display: none; }
/* Ladezustand der serverseitigen Suche: alte Treffer bleiben stehen, nur blasser */
.treffer-bereich[aria-busy="true"] .liste-wrap, .treffer-bereich[aria-busy="true"] .treffer-zahl, .strategie-liste[aria-busy="true"] { opacity: .55; transition: opacity .2s .15s; }
.karte-wrap { display: none; position: relative; height: calc(100vh - var(--kopf-h) - var(--band-h) - var(--suchkopf-h) - 57px); min-height: 360px; background: var(--papier-2); }
.treffer-flaeche[data-ansicht="karte"] .karte-wrap { display: block; }
.karte { width: 100%; height: 100%; }
.karte canvas { filter: saturate(.35) contrast(.96); }
.karte-fehler { position: absolute; inset: auto 16px 16px; margin: 0; padding: 10px 12px; background: #fff; border: 1px solid var(--linie); font-size: 13.5px; }
.karte-hinweis { position: absolute; top: 12px; left: 12px; right: 60px; margin: 0; padding: 7px 10px; background: rgba(255,255,255,.94); border: 1px solid var(--linie); border-radius: var(--r); font-size: 12.5px; color: var(--graphit-2); z-index: 2; }

/* Tabelle */
.tabelle-wrap { width: 100%; }
.tabelle { width: 100%; border-collapse: collapse; table-layout: auto; }
.tabelle th, .tabelle td { padding: 10px 8px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--linie); }
.tabelle th:first-child, .tabelle td:first-child { padding-left: 14px; }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 14px; }
.tabelle thead th { position: sticky; top: calc(var(--kopf-h) + var(--band-h) + var(--suchkopf-h)); z-index: 5; background: var(--papier); font-size: 12px; color: var(--graphit-3); font-weight: 500; white-space: nowrap; padding-top: 8px; padding-bottom: 6px; }
.vollbild .tabelle thead th { top: 0; }
.r, .tabelle td.r { text-align: right; }
.sortknopf { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 2px 0; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.sortknopf:hover { color: var(--graphit); }
.sort-ic { width: 14px; height: 14px; }
.leise-ic { opacity: .45; }
th[aria-sort] .sortknopf { color: var(--graphit); font-weight: 600; }
.zeile { background: var(--papier); transition: background .12s; cursor: pointer; }
.zeile:hover, .zeile.hervor { background: var(--flaeche); }
.zeile.aktiv { background: var(--planblau-hell); }
.z-merk { width: 36px; }
.z-akt { width: 70px; white-space: nowrap; }
.z-akt > * { vertical-align: middle; }
.z-objekt { min-width: 240px; max-width: 480px; }
.z-qm, .z-preis, .z-vglEuro, .z-cashflow, .z-rendIst, .z-rendSoll { white-space: nowrap; }
.z-abw { min-width: 150px; width: 170px; }
.z-datum { white-space: nowrap; color: var(--graphit-2); font-size: 13.5px; }
.z-ort { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merken { width: 30px; height: 30px; margin: -5px 0 0 -6px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r); cursor: pointer; color: var(--hilfslinie); }
.merken:hover { color: var(--planblau); background: var(--papier-2); }
.merken[aria-pressed="true"] { color: var(--planblau); }
.merken[aria-pressed="true"] .ic { fill: var(--planblau); }
.objekt-titel { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--graphit); text-decoration: none; overflow-wrap: anywhere; }
.objekt-titel:hover { color: var(--planblau); text-decoration: underline; }
.zeile.gesehen .objekt-titel { color: var(--graphit-2); font-weight: 500; }
.objekt-daten { margin-top: 3px; font-size: 13px; color: var(--graphit-2); display: flex; flex-wrap: wrap; gap: 2px 5px; align-items: center; }
.objekt-daten span { white-space: nowrap; }
.objekt-daten span:nth-child(2) { white-space: normal; }
.quelle-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border: 1px solid var(--linie); border-radius: 2px; background: var(--flaeche); font-size: 11.5px; font-weight: 600; color: var(--graphit-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.quelle-badge.mehr { padding: 0 5px; }
.marker { display: inline-flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.marke-klein { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 2px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.marke-neu { background: var(--graphit); color: #fff; }
.marke-gesenkt { border: 1px solid var(--graphit-2); color: var(--graphit); }
.marke-zvg { border: 1px dashed var(--graphit-2); color: var(--graphit); }
.marke-gesehen { color: var(--graphit-3); padding: 0; font-weight: 500; }
.marke-gesehen .ic { width: 14px; height: 14px; }
.risikozeile { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--rotstift); line-height: 1.35; }
.risikozeile .ic { width: 15px; height: 15px; margin-top: 1px; }
.quellzeile { margin-top: 5px; font-size: 12.5px; color: var(--graphit-3); }
.z-preis b { display: block; font: 600 16px/1.2 var(--schmal); }
.z-preis small, .z-vglEuro small { display: block; font-size: 12px; color: var(--graphit-3); line-height: 1.3; }
.z-vglEuro { font: 600 15px/1.2 var(--schmal); }
.z-qm { font: 600 15px/1.2 var(--schmal); }
.wert { font: 600 15px/1.2 var(--schmal); }
.wert.neg { color: var(--rotstift); }
.z-cashflow, .z-rendIst, .z-rendSoll { padding-top: 12px; }
.z-qm, .z-preis, .z-vglEuro, .z-ort, .z-datum { padding-top: 12px; }

/* Aktionsmenü in der Zeile */
.menue { position: relative; display: inline-block; }
.menue summary { list-style: none; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: var(--r); cursor: pointer; color: var(--graphit-2); }
.menue summary::-webkit-details-marker { display: none; }
.menue summary:hover { background: var(--papier-2); color: var(--graphit); }
.menue-liste { position: absolute; right: 0; top: 100%; z-index: 15; min-width: 190px; padding: 4px; background: #fff; border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten); display: grid; }
.menue-liste a, .menue-liste button { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: none; text-align: left; color: var(--graphit); text-decoration: none; font-size: 14px; cursor: pointer; border-radius: 2px; white-space: nowrap; }
.menue-liste a:hover, .menue-liste button:hover { background: var(--planblau-hell); }
.menue-liste .ic { width: 14px; height: 14px; }

/* Signatur: Maßkette */
.masskette { position: relative; padding-top: 2px; font-size: 12px; color: var(--graphit-2); }
.mk-linie { position: relative; height: 22px; margin-right: 5px; }
.mk-strecke { position: absolute; top: 15px; height: 0; border-top: 1px solid var(--graphit); transform-origin: left center; animation: bemassen .45s cubic-bezier(.16,1,.3,1) both; }
.mk-strecke::before, .mk-strecke::after { content: ""; position: absolute; top: -6px; width: 1px; height: 11px; background: var(--graphit); transform: rotate(45deg); }
.mk-strecke::before { left: 0; }
.mk-strecke::after { right: 0; }
.mk-strecke.marktwert { border-top-style: dashed; border-color: var(--hilfslinie); }
.mk-strecke.marktwert::before, .mk-strecke.marktwert::after { background: var(--hilfslinie); }
.mk-strecke.diff { border-top-width: 2px; top: 14px; animation-delay: .12s; }
.mk-strecke.diff.unter { border-color: var(--graphit); border-top-style: double; border-top-width: 4px; top: 13px; }
.mk-strecke.diff.ueber { border-color: var(--ueber); }
.mk-strecke.diff.unter::before, .mk-strecke.diff.unter::after { background: var(--unter); }
.mk-strecke.diff.ueber::before, .mk-strecke.diff.ueber::after { background: var(--ueber); }
.mk-text { position: absolute; top: -4px; transform: translateX(-50%); white-space: nowrap; padding: 0 2px; font-weight: 600; font-size: 12.5px; line-height: 1.2; background: var(--papier); }
.zeile:hover .mk-text, .zeile.hervor .mk-text { background: var(--flaeche); }
.zeile.aktiv .mk-text { background: var(--planblau-hell); }
.mk-text.unter { color: var(--unter); }
.mk-text.ueber { color: var(--ueber); }
.mk-legende { display: flex; justify-content: flex-end; gap: 8px; margin-top: 1px; color: var(--graphit-3); font-size: 11.5px; white-space: nowrap; }
.masskette.kompakt .mk-legende { display: none; }
.masskette.ohne { display: grid; gap: 2px; align-content: start; }
.masskette.ohne b { font: 600 15px/1.2 var(--schmal); color: var(--graphit); }
.masskette.ohne span { font-size: 12.5px; color: var(--graphit-3); }
.masskette.ohne .mk-legende { justify-content: flex-start; white-space: normal; }
.z-abw .masskette.ohne { padding-top: 10px; }
.cf-posten { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--graphit-2); }
.cf-posten b { font-weight: 600; color: var(--graphit); }
@keyframes bemassen { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-strecke { animation: none; } }

/* Fuß: Zahlen, Seiten */
.tabelle-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 24px; }
.fuss-zahlen { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--graphit-2); }
.seiten { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.seite-knopf { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--graphit-2); font-weight: 500; cursor: pointer; }
.seite-knopf:hover { background: var(--papier-2); color: var(--graphit); }
.seite-knopf.aktiv { background: var(--planblau); color: #fff; border-color: var(--planblau); cursor: default; }
.seite-knopf:disabled { opacity: .35; cursor: not-allowed; }
.seite-luecke { padding: 0 4px; color: var(--graphit-3); }

/* Leerzustand, Absprung */
.leer { padding: 48px 24px; max-width: 560px; }
.leer p { margin: 0 0 14px; color: var(--graphit-2); }
.leer strong { display: block; color: var(--graphit); font: 600 19px/1.3 var(--schmal); margin-bottom: 4px; }
.absprung { margin: 24px; padding: 14px 16px; border: 1px dashed var(--hilfslinie); border-radius: var(--r); background: var(--flaeche); }
.absprung p { margin: 0 0 10px; display: grid; gap: 2px; }
.absprung p span { font-size: 13px; color: var(--graphit-2); }
.absprung ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.absprung a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--linie); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--graphit); font-weight: 500; }
.absprung a:hover { border-color: var(--planblau); color: var(--planblau); }
.absprung .ic { width: 15px; height: 15px; }

/* Kartenpunkte */
.punkt-huelle { width: 22px; height: 22px; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; }
.punkt { width: 13px; height: 13px; border: 2px solid #fff; background: var(--hilfslinie); transform: rotate(45deg); box-shadow: 0 1px 3px rgba(0,0,0,.35); pointer-events: none; transition: transform .12s; }
.punkt.unter { background: var(--graphit); }
.punkt.ueber { background: var(--ueber); }
.punkt-huelle:hover .punkt, .punkt.aktiv { transform: rotate(45deg) scale(1.5); background: var(--planblau); }
.maplibregl-popup-content { font: 13.5px/1.35 var(--schrift); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--schatten); }
.maplibregl-popup-content b { font-weight: 600; }

/* Filterdialog */
.filter { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--linie); border-radius: var(--r); background: var(--papier); color: var(--graphit); box-shadow: var(--schatten); display: none; flex-direction: column; }
.filter[open] { display: flex; }
.filter::backdrop, .spalten-dialog::backdrop { background: rgba(27, 33, 39, .35); }
.filter-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; margin: 0; border-bottom: 1px solid var(--linie); }
.filter-kopf h2 { font-size: 19px; flex: 1; }
.filter-rumpf { display: grid; grid-template-columns: 200px minmax(0, 1fr); flex: 1; min-height: 0; }
.filter-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--linie); }
.filter-nav button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: var(--r); color: var(--graphit-2); font-weight: 500; cursor: pointer; }
.filter-nav button:hover { background: var(--papier-2); color: var(--graphit); }
.filter-nav button[aria-current="true"] { background: var(--planblau-hell); color: var(--planblau-dunkel); }
.filter-nav .hilfe { margin-top: auto; padding: 0 10px; }
.filter-form { overflow: auto; padding: 0 22px 20px; max-height: calc(100vh - 48px - 61px - 63px); }
.gruppe { border: 0; margin: 0; padding: 16px 0 10px; border-top: 1px solid var(--linie); scroll-margin-top: 0; }
.gruppe:first-child { border-top: 0; }
.gruppe h3 { font-size: 17px; margin: 0 0 12px; }
.gruppe legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font: 600 15px/1.2 var(--schmal); color: var(--graphit); }
.gruppe legend + * { clear: both; }
.filter-fuss { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--linie); background: var(--papier); }
.filter-fuss #filterAnwenden { min-width: 220px; }
.nur-desktop { display: block; }

/* Spaltenwahl */
.spalten-dialog { width: min(380px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--linie); border-radius: var(--r); background: var(--flaeche); color: var(--graphit); box-shadow: var(--schatten); }
.spalten-liste { padding: 10px 20px; display: grid; }
.spalten-hilfe { padding: 0 20px 16px; margin: 0; }

/* Panel */
.panel-schleier { position: fixed; inset: 0; background: rgba(27, 33, 39, .28); z-index: 50; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); z-index: 60; background: var(--papier); box-shadow: -12px 0 40px rgba(19,44,102,.18);
  display: flex; flex-direction: column; outline: 0; animation: einfahren .28s cubic-bezier(.16,1,.3,1);
}
@keyframes einfahren { from { transform: translateX(32px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
.panel-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.panel-kopf h2 { font-size: 19px; flex: 1; }
.panel-inhalt { overflow: auto; padding: 22px 26px 40px; flex: 1; }
.d-titel { font: 600 24px/1.2 var(--schmal); margin: 0 0 6px; }
.d-unter { color: var(--graphit-2); margin: 0 0 14px; }
.d-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.d-urteil { margin: 0 0 26px; padding: 14px 16px; background: var(--papier); border: 1px solid var(--linie); border-radius: var(--r); }
.d-urteil p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.d-urteil .pro { color: var(--graphit); font-weight: 600; }
.d-urteil .contra { color: var(--rotstift); font-weight: 600; }
.d-abschnitt { margin: 0 0 30px; }
.d-abschnitt h3 { font-size: 17px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--linie); }
.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); }
.kennzahlen div { padding: 10px 12px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.kennzahlen dt { font-size: 12.5px; color: var(--graphit-3); }
.kennzahlen dd { margin: 2px 0 0; font: 600 17px/1.25 var(--schmal); }
.kennzahlen dd small { font: 400 12.5px var(--schrift); color: var(--graphit-3); }
.eigenschaften { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.eigenschaften div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--linie); font-size: 14px; }
.eigenschaften dt { color: var(--graphit-2); }
.eigenschaften dd { margin: 0; font-weight: 500; text-align: right; }
.cf-grafik, .verlauf-grafik { width: 100%; height: auto; display: block; font-family: var(--schrift); }
.cf-grafik text, .verlauf-grafik text { font-size: 12px; fill: var(--graphit-2); }
.cf-grafik .zahltext { font-size: 13px; font-weight: 600; fill: var(--graphit); }
.cf-erklaerung { margin: 10px 0 0; font-size: 13px; color: var(--graphit-3); }
.cf-regler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cf-regler label { font-size: 12.5px; color: var(--graphit-2); }
.risikoliste { list-style: none; margin: 0; padding: 0; }
.risikoliste li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.risikoliste .ic { color: var(--rotstift); margin-top: 2px; }
.risikoliste b { font-weight: 600; }
.risikoliste p { grid-column: 2; margin: 0; font-size: 13.5px; color: var(--graphit-2); }
.risikoliste li.ok .ic { color: var(--graphit); }
.quellen-liste { list-style: none; margin: 0; padding: 0; }
.quellen-liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.quellen-liste span { color: var(--graphit-3); font-size: 13px; }
.vergleich { list-style: none; margin: 0; padding: 0; }
.vergleich li { border-bottom: 1px solid var(--linie); }
.vergleich button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.vergleich button:hover b { color: var(--planblau); text-decoration: underline; }
.vergleich span { font-size: 13px; color: var(--graphit-3); }
.notiz textarea { width: 100%; min-height: 80px; padding: 10px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--flaeche); resize: vertical; }
.notiz textarea:focus { outline: 0; border-color: var(--planblau); box-shadow: 0 0 0 3px var(--planblau-hell); }

/* Suchauftrag-Formular */
.formular { display: grid; gap: 18px; }
.formular label.block { display: grid; gap: 5px; font-size: 13.5px; font-weight: 500; color: var(--graphit-2); }
.formular input[type="text"], .formular input[type="email"], .formular input[type="password"] { height: 40px; padding: 0 10px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--flaeche); }
.formular input:focus { outline: 0; border-color: var(--planblau); box-shadow: 0 0 0 3px var(--planblau-hell); }
.vorschau { padding: 14px 16px; border: 1px solid var(--linie); background: var(--papier); border-radius: var(--r); }
.vorschau b { font: 600 22px/1.1 var(--schmal); color: var(--planblau); }
.vorschau p { margin: 4px 0 0; font-size: 13.5px; color: var(--graphit-2); }
.vorschau ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--graphit-2); }
.fehler { color: var(--rotstift); font-size: 13px; margin: 2px 0 0; }

/* Seiten Merkliste, Aufträge */
.ansicht-seite { max-width: 1280px; margin: 0 auto; padding: 32px 24px 60px; }
.seiten-kopf { margin-bottom: 18px; }
.seiten-kopf h1 { font-size: 30px; }
.seiten-kopf p { margin: 6px 0 0; color: var(--graphit-2); }
.ansicht-seite .tabelle thead th { position: static; }
.ansicht-seite .tabelle { border-top: 1px solid var(--linie); }
.auftragsliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.auftrag { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.auftrag h2 { font-size: 19px; }
.auftrag p { margin: 0; color: var(--graphit-2); font-size: 14px; }
.auftrag .aktionen { display: flex; gap: 8px; align-items: start; grid-row: span 2; grid-column: 2; flex-wrap: wrap; justify-content: end; }
.auftrag.pausiert h2 { color: var(--graphit-3); }
.auftrag h2 small { font: 500 13px/1 var(--schrift); color: var(--graphit-3); vertical-align: middle; }
.auftrag.lade { grid-template-columns: 1fr; }
.auftrag.lade .aktionen { grid-column: 1; grid-row: auto; justify-content: start; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; padding: 11px 16px; background: var(--graphit); color: #fff; border-radius: var(--r); box-shadow: var(--schatten); font-size: 14px; max-width: calc(100vw - 32px); }

/* ---------- Anmeldedialog ---------- */
.zugang { border: 1px solid var(--linie); border-radius: var(--r); padding: 0; width: min(420px, calc(100vw - 32px)); background: var(--flaeche); color: var(--graphit); box-shadow: var(--schatten); }
.zugang::backdrop { background: rgba(27, 33, 39, .35); }
.zugang-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; margin: 0; border-bottom: 1px solid var(--linie); }
.zugang-kopf h2 { flex: 1; font-size: 19px; font-family: var(--schmal); font-weight: 600; }
.zugang-hinweis { margin: 14px 18px 0; padding: 10px 12px; border-left: 3px solid var(--planblau); background: var(--planblau-hell); font-size: 14px; }
.zugang-tabs { display: flex; margin: 10px 18px 0; border-bottom: 1px solid var(--linie); }
.zugang-tabs button { background: none; border: 0; padding: 9px 12px; font-weight: 500; color: var(--graphit-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.zugang-tabs button[aria-selected="true"] { color: var(--planblau); border-bottom-color: var(--planblau); }
.zugang-form, .zugang-konto, .zugang-paket { padding: 18px; }
.zugang-form { gap: 12px; }
.zugang-form .link-knopf { justify-self: start; }
.zugang-fehler { color: var(--rotstift); font-size: 14px; margin: 0; }
.zugang-klein { font-size: 12.5px; color: var(--graphit-3); margin: 0; }
.zugang-aktionen { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.zugang-konto p, .zugang-paket p { margin: 0 0 12px; }

/* Mittlere Breite: Spalten enger */
@media (max-width: 1280px) {
  .tabelle th, .tabelle td { padding: 9px 6px; }
  .z-abw { min-width: 130px; width: 140px; }
  .z-objekt { min-width: 200px; }
  .hauptnav a { padding: 0 8px; }
}
@media (max-width: 1080px) {
  .z-ort, .z-datum { display: none; }
}

/* Handy und Tablet: Tabelle wird zu Karten */
@media (max-width: 860px) {
  :root { --kopf-h: auto; }
  .nur-mobil { display: inline-flex; }
  .nur-desktop { display: none; }
  body { overflow-x: hidden; }
  .kopf { position: static; }
  .kopf-zeile { height: 52px; gap: 12px; padding: 0 16px; }
  .kopf-zeile > * { min-width: 0; }
  .marke { font-size: 19px; }
  .hauptnav { gap: 0; overflow-x: auto; scrollbar-width: none; }  /* mit „Anmelden“ zu breit für 390 px: Leiste scrollt statt der Seite */
  .hauptnav a { height: 34px; font-size: 13.5px; padding: 0 5px; gap: 5px; }
  .hauptnav .zahl { min-width: 18px; height: 18px; padding: 0 4px; }
  .marke-zeichen { width: 24px; height: 24px; }
  .marke { gap: 6px; }
  .hauptnav a[data-nav="suche"] { display: none; }
  .testhinweis { padding: 4px 16px; font-size: 12px; flex-wrap: wrap; }
  .suchkopf { position: static; padding: 10px 16px; gap: 8px; }
  .suchleiste { gap: 6px; }
  .ortfeld { flex-basis: 100%; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
  .ortfeld::-webkit-scrollbar { display: none; }
  .ort-chips { flex: 0 0 auto; }
  .ortfeld input { flex: 1 0 150px; height: 38px; }
  .tastenhinweis { display: none; }
  .art-wahl { flex: 1 1 150px; min-width: 0; padding-right: 26px; font-size: 14px; background-position: right 6px center; }
  #suchen { flex: 0 0 auto; padding: 0 12px; }
  #filterAuf, #auftragAnlegen { flex: 1 1 40%; padding: 0 10px; }
  .schnellfilter { gap: 8px; }
  .schnellfilter label { flex: 1 1 calc(50% - 4px); font-size: 12px; }
  .schnellfilter label:last-child { flex-basis: 100%; }
  .strategien { padding: 8px 16px 10px; }
  .strategie-liste { display: flex; overflow-x: auto; gap: 8px; margin: 10px -16px 0; padding: 0 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .strategie-liste::-webkit-scrollbar { display: none; }
  .strategie { flex: 0 0 220px; scroll-snap-align: start; }
  .treffer-kopf { padding: 8px 16px; gap: 6px 10px; }
  .treffer-tabs { flex-basis: 100%; }
  .treffer-zahl { flex: 1; font-size: 14px; }
  .treffer-zahl strong { font-size: 20px; }
  .treffer-werkzeuge { flex-basis: 100%; margin-left: 0; flex-wrap: nowrap; }
  .sortierung { flex: 1; min-width: 0; }
  .sortierung select { width: 100%; font-size: 14px; }
  #csvExport span, #vollbild { display: none; }
  .karte-wrap { height: 70vh; }
  .tabelle, .tabelle tbody { display: block; width: 100%; }
  .tabelle thead { display: none; }
  .tabelle tr.zeile {
    display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: 8px; row-gap: 8px; align-items: start;
    grid-template-areas: "m o o o p" "m o o o a" ". k k k k" ". c i s s";
    padding: 12px 16px 12px 10px; border-bottom: 1px solid var(--linie);
  }
  .tabelle td { display: block; padding: 0; border: 0; }
  .tabelle td.z-merk { grid-area: m; }
  .tabelle td.z-objekt { grid-area: o; min-width: 0; max-width: none; }
  .tabelle td.z-preis { grid-area: p; text-align: right; }
  .tabelle td.z-akt { grid-area: a; text-align: right; width: auto; }
  .tabelle td.z-abw { grid-area: k; width: auto; min-width: 0; }
  .tabelle td.z-cashflow { grid-area: c; }
  .tabelle td.z-rendIst { grid-area: i; }
  .tabelle td.z-rendSoll { grid-area: s; }
  .tabelle td.z-qm, .tabelle td.z-ort, .tabelle td.z-vglEuro, .tabelle td.z-datum { display: none; }
  .tabelle td.z-abw:not(:has(.masskette)) { display: none; }
  .tabelle tr.ohne-werte td.wert { display: none; }
  .tabelle tr.ohne-werte { grid-template-areas: "m o o o p" "m o o o a" ". k k k k"; }
  .tabelle td.z-cashflow, .tabelle td.z-rendIst, .tabelle td.z-rendSoll { text-align: left; padding-top: 0; }
  .tabelle td.wert::before { content: attr(data-label); display: block; font: 500 11.5px/1.2 var(--schrift); color: var(--graphit-3); margin-bottom: 1px; }
  .merken { margin: -4px 0 0 -4px; }
  .z-preis small.nur-mobil { display: block; }
  .masskette.kompakt .mk-legende { display: flex; justify-content: flex-start; white-space: normal; }
  .z-abw .masskette.ohne { padding-top: 0; }
  .tabelle-fuss { padding: 10px 16px; }
  .leer { padding: 32px 16px; }
  .absprung { margin: 16px; }
  .filter { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .filter-rumpf { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .filter-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--linie); scrollbar-width: none; }
  .filter-nav::-webkit-scrollbar { display: none; }
  .filter-nav button { white-space: nowrap; flex: none; }
  .filter-nav .hilfe { display: none; }
  .filter-form { padding: 0 16px 20px; max-height: none; }
  .filter-fuss { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .filter-fuss #filterAnwenden { min-width: 0; flex: 1; }
  .feld-dreier { grid-template-columns: 1fr 1fr; }
  .segmente button { font-size: 13px; padding: 0 4px; }
  .panel { width: 100vw; }
  .panel-inhalt { padding: 18px 16px 40px; }
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .eigenschaften { grid-template-columns: 1fr; }
  .ansicht-seite { padding: 20px 16px 48px; }
  .auftrag { grid-template-columns: 1fr; }
  .auftrag .aktionen { grid-column: 1; grid-row: auto; }
}

/* ---------- Tacho (Preis gegen Vergleich), fünf Farbstufen ---------- */
.masskette.tacho { display: grid; justify-items: center; gap: 0; padding-top: 0; }
.tacho-svg { width: 96px; height: 50px; display: block; overflow: visible; }
.tacho-nadel { fill: var(--graphit); animation: zeigen .5s cubic-bezier(.16,1,.3,1) both; transform-origin: 60px 56px; }
.tacho-nabe { fill: var(--flaeche); stroke: var(--graphit); stroke-width: 1.5; }
.tacho-wert { font: 600 14px/1.1 var(--schmal); margin-top: -4px; color: var(--graphit); white-space: nowrap; }
.tacho-wert.t1 { color: #1f8a3b; }
.tacho-wert.t2 { color: #3a9a4c; }
.tacho-wert.t3 { color: #9a7f00; }
.tacho-wert.t4 { color: #c6473a; }
.tacho-wert.t5 { color: #a3201a; }
.tacho-wert.inline { font-size: 16px; margin: 0; }
.tacho-wert.inline small { font-weight: 500; font-size: 12px; }
.masskette.tacho .mk-legende { justify-content: center; margin-top: 2px; }
.masskette.tacho.kompakt .mk-legende { display: none; }
.z-abw .masskette.tacho { padding: 2px 0; }
.panel .masskette.tacho .tacho-svg { width: 180px; height: 94px; }
.panel .masskette.tacho .tacho-wert { font-size: 22px; margin-top: -8px; }
@keyframes zeigen { from { transform: rotate(-90deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tacho-nadel { animation: none; } }
@media (max-width: 860px) { .masskette.tacho.kompakt .mk-legende { display: flex; } }
