/* Fahrwerk 2 – Radar-Look. Nacht ist Standard. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --s: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --k: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --r: 14px;
  --leiste: 228px;
  --feder: cubic-bezier(.3, 1.4, .5, 1);
  --sanft: cubic-bezier(.22, .9, .25, 1);
  --grund: #0b0c0e; --grund-2: #0f1013; --flaeche: #15171b; --flaeche-2: #1c1f24; --flaeche-3: #262a31;
  --linie: rgba(255,255,255,.07); --linie-2: rgba(255,255,255,.13);
  --text: #eceae6; --text-2: #a7a59f; --text-3: #6e6d69;
  --akzent: #ff7a1a; --akzent-hell: #ff9a4d; --akzent-text: #ff8f3f; --akzent-weich: rgba(255,122,26,.13); --akzent-glut: rgba(255,122,26,.42); --auf-akzent: #160b02;
  --gut: #38d67f; --gut-weich: rgba(56,214,127,.12); --mittel: #f5b83d; --mittel-weich: rgba(245,184,61,.13); --schlecht: #ff5d52; --schlecht-weich: rgba(255,93,82,.12);
  --schatten: 0 1px 0 rgba(255,255,255,.035) inset, 0 18px 40px -22px rgba(0,0,0,.75);
  --schatten-hoch: 0 1px 0 rgba(255,255,255,.05) inset, 0 28px 60px -24px rgba(0,0,0,.85);
  color-scheme: dark;
}
:root[data-thema='tag'] {
  --grund: #f2f1ee; --grund-2: #eae8e3; --flaeche: #fff; --flaeche-2: #f6f5f2; --flaeche-3: #ebe9e4;
  --linie: rgba(22,20,15,.08); --linie-2: rgba(22,20,15,.15);
  --text: #17160f; --text-2: #5d5b55; --text-3: #8e8b84;
  --akzent: #f26b0c; --akzent-hell: #ff8a33; --akzent-text: #cf5604; --akzent-weich: rgba(242,107,12,.1); --akzent-glut: rgba(242,107,12,.3); --auf-akzent: #fff;
  --gut: #149a53; --gut-weich: rgba(20,154,83,.1); --mittel: #b97c06; --mittel-weich: rgba(201,138,10,.12); --schlecht: #d9352b; --schlecht-weich: rgba(217,53,43,.09);
  --schatten: 0 1px 2px rgba(30,25,15,.05), 0 14px 32px -20px rgba(30,25,15,.22);
  --schatten-hoch: 0 2px 4px rgba(30,25,15,.06), 0 26px 50px -24px rgba(30,25,15,.32);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 15px/1.5 var(--s); color: var(--text); background: var(--grund); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(900px 520px at 85% -10%, var(--akzent-weich), transparent 62%); }
body.modal-offen { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--k); font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
p { margin: 0; }
code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--flaeche-3); }
.icon { flex: none; display: block; }
.zahl, .zaehler { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
.gut-text { color: var(--gut); } .schlecht-text { color: var(--schlecht); } .gedimmt { color: var(--text-3); }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Gerüst ---------- */
.app { position: relative; z-index: 1; min-height: 100dvh; }
.leiste { position: fixed; inset: 0 auto 0 0; width: var(--leiste); display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 16px; background: linear-gradient(180deg, var(--grund-2), var(--grund)); border-right: 1px solid var(--linie); z-index: 20; }
.leiste-logo { padding: 2px 8px; }
.navi { display: flex; flex-direction: column; gap: 2px; }
.navi-punkt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-weight: 500; text-align: left; transition: background .2s, color .2s; }
.navi-punkt:hover { background: var(--flaeche-2); color: var(--text); }
.navi-punkt.aktiv { background: var(--flaeche-2); color: var(--text); }
.navi-punkt.aktiv::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--akzent); box-shadow: 0 0 14px var(--akzent-glut); }
.navi-punkt.aktiv .icon { color: var(--akzent-text); }
.navi-punkt em { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 20px; font: 700 12px/1.3 var(--k); font-style: normal; text-align: center; background: var(--akzent); color: var(--auf-akzent); }
.navi-punkt em.still { background: var(--flaeche-3); color: var(--text-2); }
.leiste-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.live { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; color: var(--text-3); }
.live-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.live.an { color: var(--gut); }
.live.an .live-punkt { background: var(--gut); box-shadow: 0 0 0 0 var(--gut); animation: puls-ring 2s infinite; }
@keyframes puls-ring { 0% { box-shadow: 0 0 0 0 rgba(56,214,127,.55); } 100% { box-shadow: 0 0 0 9px rgba(56,214,127,0); } }
.haupt { margin-left: var(--leiste); padding: 32px clamp(18px, 3vw, 44px) 80px; max-width: 1500px; }
.seite { animation: rein .4s var(--sanft) both; }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }
.handy-kopf, .tabbar { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.logo-wort { font: 700 24px/1 var(--k); text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--linie-2); background: var(--flaeche-2); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .15s var(--sanft), background .2s, box-shadow .25s; }
.knopf:hover { background: var(--flaeche-3); }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .45; pointer-events: none; }
.knopf.primaer { background: linear-gradient(180deg, var(--akzent-hell), var(--akzent)); border-color: transparent; color: var(--auf-akzent); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -8px var(--akzent-glut); }
.knopf.primaer:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px -6px var(--akzent-glut); }
.knopf.klein { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; gap: 6px; }
.knopf.geist { background: transparent; }
.knopf.mehr { display: flex; margin: 18px auto 0; }
.breit-knopf { width: 100%; margin-top: 14px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.icon-knopf { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); transition: background .2s, color .2s, transform .15s; }
.icon-knopf:hover { background: var(--flaeche-3); color: var(--text); }
.icon-knopf:active { transform: scale(.92); }
.icon-knopf.klein { width: 28px; height: 28px; border-radius: 8px; }
.text-knopf { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; background: none; color: var(--akzent-text); font-weight: 600; font-size: 13.5px; }
.text-knopf:hover { text-decoration: underline; text-underline-offset: 3px; }
.gefahr-text { color: var(--schlecht) !important; }

/* ---------- Seiten-Grundelemente ---------- */
.seiten-kopf { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.ueberzeile { font: 600 12.5px/1 var(--k); text-transform: uppercase; letter-spacing: .18em; color: var(--akzent-text); margin-bottom: 8px; }
.seiten-kopf h1 { font-size: clamp(34px, 4vw, 50px); font-weight: 700; }
.seiten-unter { margin-top: 8px; color: var(--text-2); max-width: 720px; }
.seiten-kopf-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--text-2); font-weight: 600; font-size: 14px; transition: gap .2s, color .2s; }
.zurueck:hover { color: var(--text); gap: 9px; }
.karte { position: relative; min-width: 0; padding: 20px; border-radius: var(--r); background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.karte-kopf h3 { font-size: 21px; }
.hilfe { font-size: 13px; color: var(--text-2); margin: 10px 0 0; }
.unter-titel { margin: 22px 0 8px; font: 600 12.5px var(--s); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.raster-2 + .karte, .karte + .raster-2 { margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--flaeche-3); color: var(--text-2); white-space: nowrap; }
.chip.gut { background: var(--gut-weich); color: var(--gut); }
.chip.schlecht { background: var(--schlecht-weich); color: var(--schlecht); }
.chip-reihe { display: flex; flex-wrap: wrap; gap: 6px; }
.leer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; text-align: center; border: 1.5px dashed var(--linie-2); border-radius: 18px; }
.leer-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent-text); }
.leer h3 { font-size: 26px; }
.leer p { max-width: 460px; color: var(--text-2); margin-bottom: 6px; }
.laedt { display: flex; align-items: center; gap: 12px; padding: 60px 0; color: var(--text-2); }
.laedt.fehler { color: var(--schlecht); }
.laedt-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); animation: puls 1s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .3; transform: scale(.7); } }
.status-box { display: flex; gap: 12px; padding: 13px 15px; border-radius: 12px; background: var(--flaeche-2); margin-top: 12px; }
.status-box div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.status-box span { color: var(--text-2); }
.status-box.gut { background: var(--gut-weich); }
.status-box.gut > .icon { color: var(--gut); }
.hinweis { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--akzent-weich); font-size: 14px; color: var(--text-2); }
.hinweis > .icon { color: var(--akzent-text); }
.kennzahlen { display: flex; flex-direction: column; margin-top: 14px; }
.kennzahlen > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--linie); font-size: 14px; }
.kennzahlen > div:first-child { border-top: 0; }
.kennzahlen span { color: var(--text-2); }
.kennzahlen b { font: 600 17px var(--k); white-space: nowrap; }
.gefahr-zone { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--linie-2); }

/* ---------- Felder ---------- */
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 12px; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld.breit { grid-column: 1 / -1; }
.feld-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.feld-huelle { position: relative; display: flex; align-items: center; }
.feld input, .feld select, .feld textarea, .text-gross, .suche input, .auswahl-klein { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linie-2); background: var(--flaeche-2); color: var(--text); font: 500 15px var(--s); outline: none; transition: border-color .2s, box-shadow .2s; }
.feld textarea, .text-gross { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus, .text-gross:focus, .suche:focus-within, .auswahl-klein:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-weich); }
.feld input::placeholder, .feld textarea::placeholder, .text-gross::placeholder, .suche input::placeholder { color: var(--text-3); font-weight: 400; }
.feld-einheit { position: absolute; right: 12px; color: var(--text-3); font-size: 13.5px; pointer-events: none; }
.feld-huelle:has(.feld-einheit) input { padding-right: 40px; }
.feld-hilfe { font-size: 12px; color: var(--text-3); }
.feld.wichtig input { font: 600 18px var(--k); border-color: color-mix(in srgb, var(--akzent) 35%, var(--linie-2)); }
.auswahl select, .auswahl-klein { appearance: none; padding-right: 32px; cursor: pointer; }
.auswahl::after { content: ''; position: absolute; right: 14px; width: 7px; height: 7px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
:root:not([data-thema='tag']) input[type='date']::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
.schalter-liste { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.schalter-zeile { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.schalter-zeile b { display: block; font-size: 14.5px; }
.schalter-zeile small { font-size: 12.5px; color: var(--text-2); }
.schalter { position: relative; flex: none; width: 42px; height: 25px; padding: 0; border-radius: 25px; border: 0; background: var(--flaeche-3); transition: background .25s; }
.schalter span { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--text-2); transition: transform .35s var(--feder), background .25s; }
.schalter[aria-checked='true'] { background: var(--akzent); }
.schalter[aria-checked='true'] span { transform: translateX(17px); background: #fff; }

/* ---------- Modal, Toast ---------- */
.modal-huelle { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(5,6,8,.62); backdrop-filter: blur(6px); animation: blende .25s both; }
@keyframes blende { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 48px); overflow: auto; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie-2); box-shadow: var(--schatten-hoch); animation: modal-rein .42s var(--feder) both; }
.modal.breit { width: min(760px, 100%); }
@keyframes modal-rein { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal-kopf { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 14px; padding: 20px 20px 12px; background: var(--flaeche); }
.modal-kopf h2 { font-size: 26px; font-weight: 700; }
.modal-kopf p { color: var(--text-2); font-size: 14px; margin-top: 3px; }
.modal-inhalt { padding: 4px 20px 20px; }
.modal-aktionen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: flex-end; }
.modal-aktionen .platz { flex: 1; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--grund); font-weight: 600; font-size: 14px; box-shadow: var(--schatten-hoch); animation: toast-rein .45s var(--feder) both; }
.toast .icon { color: var(--gut); }
.toast.fehler { background: var(--schlecht); color: #fff; }
.toast.fehler .icon { color: #fff; }
@keyframes toast-rein { from { opacity: 0; transform: translateY(14px) scale(.95); } }

/* ---------- Rollzähler ---------- */
.zaehler { position: relative; display: inline-flex; align-items: baseline; white-space: nowrap; }
.z-ziffer { display: inline-block; height: 1.15em; line-height: 1.15em; overflow: hidden; vertical-align: bottom; }
.z-band { display: flex; flex-direction: column; transition: transform 1.1s cubic-bezier(.2,.85,.15,1); }
.z-band span { height: 1.15em; line-height: 1.15em; text-align: center; }
.z-zeichen { line-height: 1.15em; }

/* ---------- Marktbewertung ---------- */
.marktwert { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.marktwert b { font: 700 18px/1.1 var(--k); white-space: nowrap; }
.marktwert b small { font: 600 13px var(--s); }
.marktwert span { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.marktwert.ton-gut b { color: var(--gut); }
.marktwert.ton-mittel b { color: var(--mittel); }
.marktwert.ton-schlecht b { color: var(--schlecht); }
.marktwert.ton-grau b { color: var(--text-2); font-size: 15px; }
.marktwert.gross { padding: 14px 16px; border-radius: 12px; background: var(--flaeche-2); margin-bottom: 4px; }
.marktwert.gross b { font-size: 30px; }
.marktwert.gross.ton-gut { background: var(--gut-weich); }
.marktwert.gross.ton-schlecht { background: var(--schlecht-weich); }
.marktwert.gross.ton-mittel { background: var(--mittel-weich); }

/* ---------- Radar ---------- */
.radar-kopf { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-bottom: 28px; }
.schirm { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--flaeche) 80%, transparent) 0%, var(--grund-2) 72%); border: 1px solid var(--linie-2); box-shadow: inset 0 0 60px rgba(0,0,0,.35), 0 30px 80px -40px var(--akzent-glut); overflow: hidden; }
.schirm svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.schirm-strahl { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(255,122,26,.05) 300deg, rgba(255,122,26,.32) 359deg, rgba(255,160,90,.6) 360deg); animation: drehen 4s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.schirm-ring { fill: none; stroke: var(--linie-2); stroke-width: .4; }
.schirm-achse { stroke: var(--linie); stroke-width: .4; }
.schirm-text { font: 600 4.6px var(--k); fill: var(--text-3); letter-spacing: .05em; }
.schirm-mitte { fill: var(--akzent); }
.blip { fill: var(--text-3); opacity: .5; animation: blip 4s linear infinite; cursor: pointer; transform-box: fill-box; transform-origin: center; }
.blip.ton-gut { fill: var(--gut); } .blip.ton-mittel { fill: var(--mittel); } .blip.ton-schlecht { fill: var(--schlecht); }
.blip:hover { opacity: 1 !important; transform: scale(1.8); }
.blip.neu { stroke: #fff; stroke-width: .6; }
@keyframes blip { 0% { opacity: 1; transform: scale(1.6); } 25% { opacity: .55; transform: scale(1); } 100% { opacity: .38; transform: scale(1); } }
.radar-info h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; margin-bottom: 14px; }
.radar-text { color: var(--text-2); font-size: 16px; max-width: 560px; }
.radar-zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.radar-zahlen > div { padding: 14px 16px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.radar-zahlen .zaehler { font: 700 34px var(--k); }
.radar-zahlen span:not(.zaehler span):not(.zaehler) { display: block; font-size: 13px; color: var(--text-2); }
.radar-zahlen .gut .zaehler { color: var(--gut); }
.radar-legende { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.punkt { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.punkt.gut { background: var(--gut); } .punkt.mittel { background: var(--mittel); } .punkt.schlecht { background: var(--schlecht); }

.filter-leiste { position: sticky; top: 10px; z-index: 10; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 14px; border-radius: 14px; background: color-mix(in srgb, var(--flaeche) 88%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--linie-2); box-shadow: var(--schatten); }
.suche { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linie-2); background: var(--flaeche-2); color: var(--text-3); }
.suche input { height: 36px; padding: 0; border: 0; background: none; box-shadow: none !important; }
.auswahl-klein { width: auto; height: 38px; background-image: none; }
.filter-chip { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--linie-2); background: transparent; color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.filter-chip.aktiv { background: var(--gut-weich); border-color: var(--gut); color: var(--gut); }
.segment { display: flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.segment button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13px; }
.segment button.aktiv { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }

.feed { display: flex; flex-direction: column; gap: 8px; }
.zeile { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr) 140px 210px 80px; gap: 16px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); cursor: pointer; animation: rein .35s var(--sanft) both; transition: border-color .2s, transform .25s var(--sanft), box-shadow .25s; }
.zeile:hover { border-color: var(--linie-2); transform: translateY(-1px); box-shadow: var(--schatten-hoch); }
.zeile::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.zeile.ton-gut::before { background: var(--gut); box-shadow: 0 0 12px var(--gut); }
.zeile.ton-schlecht::before { background: var(--schlecht); opacity: .6; }
.zeile-bild { width: 116px; height: 80px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--flaeche-2); color: var(--text-3); }
.zeile-bild img { width: 100%; height: 100%; object-fit: cover; }
.zeile-text { min-width: 0; }
.zeile-oben { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 3px; }
.zeile-zeit { font-size: 12px; color: var(--text-3); margin-left: auto; white-space: nowrap; }
.zeile h3 { font: 600 17px/1.2 var(--k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile-text p { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile-ort { display: flex; align-items: center; gap: 4px; color: var(--text-3) !important; }
.plattform { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--flaeche-3); color: var(--text-2); }
.p-mobilede { background: rgba(255,102,0,.14); color: #ff8a3d; }
.p-autoscout24 { background: rgba(245,200,0,.14); color: #e8bf2a; }
.p-kleinanzeigen { background: rgba(160,200,40,.14); color: #a8cc3c; }
.zeile-preis { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.zeile-preis b { font: 700 21px var(--k); }
.gesenkt { font-size: 12px; font-weight: 600; color: var(--gut); }
.label-boerse { font-size: 11.5px; color: var(--text-3); }
.zeile-knoepfe { display: flex; justify-content: flex-end; gap: 2px; }

/* ---------- Inserat ---------- */
.inserat-kopf { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 26px; align-items: center; margin-bottom: 22px; }
.inserat-bild { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--flaeche-2); color: var(--text-3); box-shadow: var(--schatten); }
.inserat-bild img { width: 100%; height: 100%; object-fit: cover; }
.inserat-titel h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; margin: 10px 0 8px; }
.inserat-fakten { color: var(--text-2); font-size: 15.5px; }
.inserat-ort { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--text-3); font-size: 14px; }
.inserat-preis { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; padding: 18px 20px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.inserat-preis > span:first-child { font-size: 13px; color: var(--text-2); font-weight: 600; }
.inserat-preis b { font: 700 42px/1 var(--k); }
.inserat-preis small { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.verteilung { position: relative; height: 70px; margin: 18px 8px 6px; }
.verteilung::before { content: ''; position: absolute; left: 0; right: 0; top: 36px; height: 4px; border-radius: 4px; background: var(--flaeche-3); }
.vt-band { position: absolute; top: 33px; height: 10px; border-radius: 10px; background: color-mix(in srgb, var(--akzent) 30%, transparent); }
.vt-punkt { position: absolute; top: 34px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--text-3); opacity: .8; }
.vt-markt, .vt-dieses { position: absolute; translate: -50% 0; display: flex; flex-direction: column; align-items: center; white-space: nowrap; font-size: 11.5px; }
.vt-markt { top: 0; color: var(--text-2); }
.vt-markt::after { content: ''; width: 2px; height: 18px; margin-top: 2px; background: var(--text-2); }
.vt-dieses { top: 30px; flex-direction: column-reverse; }
.vt-dieses::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 3px solid currentColor; background: var(--flaeche); margin-bottom: 4px; }
.vt-dieses.ton-gut { color: var(--gut); } .vt-dieses.ton-schlecht { color: var(--schlecht); }
.limit-gross { padding: 14px 16px; border-radius: 12px; background: var(--flaeche-2); }
.limit-gross span { display: block; font-size: 13px; color: var(--text-2); font-weight: 600; }
.limit-gross b { font: 700 38px/1.1 var(--k); }
.limit-gross small { display: block; font-size: 13px; color: var(--text-2); }
.limit-gross.klein { margin-top: 14px; }
.limit-gross.klein b { font-size: 28px; color: var(--akzent-text); }
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: grid; grid-template-columns: 1fr auto 90px; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linie); font-size: 14px; }
.verlauf li span { color: var(--text-2); }
.verlauf em { font-style: normal; text-align: right; font-weight: 600; }
.vergleich-karte { margin-top: 18px; }
.tabelle { display: flex; flex-direction: column; }
.tz { display: grid; grid-template-columns: minmax(0, 2.4fr) 100px 100px 80px 56px 110px 100px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; font-size: 14px; transition: background .2s; }
a.tz:hover { background: var(--flaeche-2); }
.tz.kopf { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.tz .r { text-align: right; }
.tz .zahl { font: 600 15.5px var(--k); }
.tz-titel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabelle.jahre { margin-top: 18px; }
.tempo-karte { margin-bottom: 18px; }
.tempo-zeile { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--flaeche-2); font-size: 13.5px; color: var(--text-2); }
.tempo-zeile.schnell { background: var(--gut-weich); color: var(--gut); font-weight: 600; }
.tempo-karte .hinweis { margin: 12px 0; }
.tabelle.tempo { margin-top: 12px; }
.tabelle.tempo .tz { grid-template-columns: minmax(0, 2fr) 110px 100px 120px 120px 70px 100px; }
@media (max-width: 860px) { .tabelle.tempo .tz { grid-template-columns: minmax(0, 1fr) 70px 90px 80px; } .tabelle.tempo .tz > :nth-child(3), .tabelle.tempo .tz > :nth-child(5), .tabelle.tempo .tz > :nth-child(6) { display: none; } }
.tabelle.jahre .tz { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
/* Zustand laut Inserat */
.zustand-karte { margin-bottom: 18px; }
.zustand-karte .karte-kopf { justify-content: flex-start; flex-wrap: wrap; }
.zustand-karte .karte-kopf .platz { flex: 1; }
.zustand-tuev { margin: 0 0 12px; font-size: 16px; }
.zustand-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.zustand-gruppe { padding: 12px 14px; border-radius: 12px; background: var(--flaeche-2); }
.zustand-gruppe > span { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.zustand-gruppe ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.zustand-gruppe.plus { background: var(--gut-weich); } .zustand-gruppe.plus li::marker { color: var(--gut); }
.zustand-gruppe.minus { background: var(--schlecht-weich); } .zustand-gruppe.minus li::marker { color: var(--schlecht); }
.zustand-gruppe.optik { background: var(--mittel-weich); } .zustand-gruppe.optik li::marker { color: var(--mittel); }
.zustand-zitate { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13.5px; color: var(--text-2); }
.zustand-zitate > span { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.zustand-zitate q { padding: 6px 10px; border-left: 3px solid var(--linie); background: var(--flaeche-2); border-radius: 0 8px 8px 0; font-style: italic; }
.zustand-text { position: relative; max-height: 150px; overflow: hidden; margin-bottom: 6px; }
.zustand-text.voll { max-height: none; }
.zustand-text:not(.voll)::after { content: ''; position: absolute; inset: auto 0 0; height: 48px; background: linear-gradient(transparent, var(--flaeche)); }
.zustand-text p { margin: 0; white-space: pre-line; font-size: 14px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 860px) { .zustand-raster { grid-template-columns: 1fr; } }

/* ---------- Treffer ---------- */
.treffer-liste { display: flex; flex-direction: column; gap: 8px; }
.treffer { display: grid; grid-template-columns: 42px minmax(0, 1fr) 220px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); cursor: pointer; transition: border-color .2s; animation: rein .35s var(--sanft) both; }
.treffer:hover { border-color: var(--linie-2); }
.treffer.neu { border-color: color-mix(in srgb, var(--akzent) 45%, var(--linie)); }
.treffer-art { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--akzent-weich); color: var(--akzent-text); }
.treffer-art.preis { background: var(--gut-weich); color: var(--gut); }
.treffer-oben { font-size: 12px; color: var(--text-3); }
.treffer h3 { font: 600 17px var(--k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.treffer-text p { font-size: 13px; color: var(--text-2); }

/* ---------- Suchprofile ---------- */
.profil-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.profil-karte { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); animation: rein .4s var(--sanft) both; }
.profil-karte.aus { opacity: .6; }
.profil-karte header { display: flex; justify-content: space-between; align-items: center; }
.profil-karte h3 { font-size: 22px; }
.profil-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profil-zahlen b { display: block; font: 700 28px var(--k); }
.profil-zahlen span { font-size: 12.5px; color: var(--text-2); }
.profil-bester { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--linie-2); background: none; text-align: left; }
.profil-bester span { font-size: 11.5px; color: var(--text-3); }
.profil-bester b { font-size: 14px; }
.profil-bester em { font-style: normal; font-weight: 600; font-size: 13px; }

.scan-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--flaeche-2); font-size: 12.5px; color: var(--text-2); }
.scan-zeile > .icon { color: var(--gut); }
.scan-zeile.fehler { background: var(--schlecht-weich); color: var(--schlecht); }
.scan-zeile.fehler > .icon { color: var(--schlecht); }
.scan-zeile.aus > .icon { color: var(--text-3); }
.themen-box { margin-top: 16px; padding-top: 4px; border-top: 1px dashed var(--linie-2); }
.themen-box .unter-titel { margin-top: 14px; }
.check-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-liste li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-liste li div { display: flex; flex-direction: column; gap: 2px; }
.check-liste small { color: var(--text-2); font-size: 12.5px; }
.check { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--mittel-weich); color: var(--mittel); font-weight: 800; font-size: 13px; }
.check-liste li.ok .check { background: var(--gut-weich); color: var(--gut); }
.themen-chips { margin: 12px 0 4px; }
.themen-box .schalter-zeile { margin-top: 14px; }
.chat-wahl { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px dashed var(--linie-2); }
.chat-liste { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chat-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--flaeche-2); }
.chat-liste li span { display: flex; flex-direction: column; }
.chat-liste small { font-size: 12px; color: var(--text-2); }
.scanner-box { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.scanner-box .formular { margin-top: 0; }
.scan-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scan-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--flaeche-2); font-size: 13.5px; }
.scan-liste li span { color: var(--text-2); text-align: right; }
.scan-liste li.fehler span { color: var(--schlecht); }

/* ---------- Markt ---------- */
.markt-raster { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.modell-liste { display: flex; flex-direction: column; gap: 2px; max-height: 72vh; overflow: auto; padding: 6px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); }
.modell-liste a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.modell-liste a:hover { background: var(--flaeche-2); color: var(--text); }
.modell-liste a.aktiv { background: var(--akzent-weich); color: var(--akzent-text); font-weight: 600; }
.modell-liste em { font: 600 13px var(--k); font-style: normal; color: var(--text-3); }
.wolke { position: relative; }
.wolke svg { width: 100%; height: auto; display: block; }
.achse-linie { stroke: var(--linie); stroke-dasharray: 3 5; }
.achse-text { font: 500 11px var(--s); fill: var(--text-3); }
.wolke-punkt { stroke: var(--grund); stroke-width: 1.5; cursor: pointer; transition: r .2s var(--feder); opacity: .9; }
.wolke-legende { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.verlauf-balken { width: 120px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, hsl(20 80% 55%), hsl(80 80% 55%), hsl(140 80% 55%)); }
.wolke-info { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--linie-2); font-size: 13px; box-shadow: var(--schatten); }

/* ---------- Deals ---------- */
.phasen-spalten { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.phasen-spalte { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 160px; border-radius: 14px; background: color-mix(in srgb, var(--flaeche) 55%, transparent); border: 1px solid var(--linie); }
.phasen-spalte header { display: flex; justify-content: space-between; padding: 2px 4px 4px; }
.phasen-spalte h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.phasen-spalte em { font: 700 14px var(--k); font-style: normal; color: var(--text-3); }
.deal-karte { display: flex; flex-direction: column; gap: 6px; padding: 11px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); cursor: pointer; transition: border-color .2s, transform .2s; }
.deal-karte:hover { border-color: var(--linie-2); transform: translateY(-1px); }
.deal-karte b { font: 600 15px/1.2 var(--k); }
.deal-karte > span { font-size: 12.5px; color: var(--text-2); }
.deal-karte .marktwert b { font-size: 14px; }
.abgehakt-knopf { margin-top: 18px; }
.abgehakt-liste { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.abgehakt-liste a { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 13.5px; color: var(--text-2); }
.deal-seite .seiten-kopf > div:first-child { flex: 1 1 420px; min-width: 0; }
.titel-edit .feld input { height: auto; padding: 2px 8px; margin-left: -9px; border-color: transparent; background: transparent; font: 700 clamp(30px, 3.6vw, 46px)/1.1 var(--k); }
.titel-edit .feld input:hover { border-color: var(--linie-2); }
.phasen-leiste { display: flex; gap: 4px; padding: 6px; margin-bottom: 18px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); overflow-x: auto; }
.phase { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: max-content; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text-3); font-weight: 600; font-size: 13px; transition: background .25s, color .25s; }
.phase:hover { background: var(--flaeche-2); color: var(--text); }
.phase-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.phase.erledigt { color: var(--text-2); }
.phase.erledigt .phase-dot { background: currentColor; }
.phase.aktuell { background: var(--akzent-weich); color: var(--akzent-text); }
.phase.aktuell .phase-dot { background: var(--akzent); border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-weich), 0 0 12px var(--akzent); }
.posten { list-style: none; padding: 0; margin: 8px 0 0; }
.posten li { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--linie); font-size: 14px; }
.posten li span { color: var(--text-2); }
.posten li b { font: 600 16px var(--k); }
.posten-neu { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; margin-top: 10px; }
.kosten-neu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; padding: 14px; border-radius: 12px; background: var(--flaeche-2); }
.kosten-neu input, .kosten-neu select { background: var(--flaeche) !important; }
.abrechnung { display: flex; flex-direction: column; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--flaeche-2); }
.abrechnung > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.abrechnung span { color: var(--text-2); }
.abrechnung b { font: 600 17px var(--k); }
.abrechnung .summe { border-top: 1.5px solid var(--linie-2); margin-top: 4px; padding-top: 10px; }
.abrechnung .summe b { font-size: 26px; }
.abrechnung .summe.gut b { color: var(--gut); } .abrechnung .summe.schlecht b { color: var(--schlecht); }

/* ---------- Einrichtung ---------- */
.schritt p { color: var(--text-2); font-size: 14.5px; }
.schritt-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.schritt-kopf div { flex: 1; }
.schritt-kopf h3 { font-size: 21px; }
.schritt-kopf > .icon { color: var(--text-3); }
.schritt-nr { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--akzent); color: var(--akzent-text); font: 700 17px var(--k); }
.schritt.fertig .schritt-nr { background: var(--gut); border-color: var(--gut); color: #04170b; }
.schritt.fertig { border-color: color-mix(in srgb, var(--gut) 35%, var(--linie)); }
.anleitung { margin: 12px 0; padding-left: 20px; color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.anleitung b { color: var(--text); }
.pfad { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--linie-2); }
.pfad code { flex: 1; background: none; padding: 0; font-size: 13px; overflow-wrap: anywhere; }
.aufklapp { margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: var(--flaeche-2); font-size: 14px; }
.aufklapp summary { cursor: pointer; font-weight: 600; color: var(--akzent-text); }
.aufklapp ul { padding-left: 18px; color: var(--text-2); }
.zeile-feld { display: flex; gap: 8px; align-items: flex-end; }
.zeile-feld .feld { flex: 1; }

/* Tag/Nacht-Wechsel */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: kreis .6s var(--sanft); }
@keyframes kreis { from { clip-path: circle(0 at 0 100%); } to { clip-path: circle(150% at 0 100%); } }

/* ---------- Tablet ---------- */
@media (max-width: 1280px) {
  .zeile { grid-template-columns: 100px minmax(0, 1fr) 120px 190px; }
  .zeile-bild { width: 100px; height: 70px; }
  .zeile-knoepfe { display: none; }
  .tz { grid-template-columns: minmax(0, 2fr) 90px 90px 70px 50px; }
  .tz > :nth-child(6), .tz > :nth-child(7) { display: none; }
}
@media (max-width: 1100px) {
  .raster-2, .radar-kopf, .markt-raster { grid-template-columns: 1fr; }
  .radar-kopf .schirm { max-width: 360px; width: 100%; margin: 0 auto; }
  .inserat-kopf { grid-template-columns: 220px minmax(0, 1fr); }
  .inserat-preis { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .modell-liste { flex-direction: row; flex-wrap: wrap; max-height: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .leiste { display: none; }
  .haupt { margin-left: 0; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
  .handy-kopf { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--grund) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linie); }
  .handy-kopf .logo-wort { font-size: 20px; }
  .handy-kopf .logo-mark { width: 26px; height: 26px; }
  .tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; border-radius: 22px; background: color-mix(in srgb, var(--flaeche) 90%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--linie-2); box-shadow: var(--schatten-hoch); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-3); }
  .tabbar a.aktiv { color: var(--akzent-text); }
  .tabbar em { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; padding: 0 4px; border-radius: 10px; background: var(--akzent); color: var(--auf-akzent); font: 700 10.5px/17px var(--k); font-style: normal; text-align: center; }
  .filter-leiste { position: static; }
  .zeile { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .zeile-bild { width: 84px; height: 64px; grid-row: span 2; }
  .zeile-preis { flex-direction: row; align-items: baseline; gap: 8px; text-align: left; justify-content: flex-start; flex-wrap: wrap; grid-column: 2; }
  .zeile-preis b { font-size: 18px; }
  .zeile .marktwert { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .zeile h3 { font-size: 15.5px; }
  .inserat-kopf { grid-template-columns: 1fr; }
  .formular { grid-template-columns: 1fr 1fr; }
  .feld input, .feld select, .feld textarea { font-size: 16px; }
  .treffer { grid-template-columns: 38px minmax(0, 1fr); }
  .treffer .marktwert { grid-column: 2; }
  .tz { grid-template-columns: minmax(0, 1fr) 84px 84px; }
  .tz > :nth-child(4), .tz > :nth-child(5) { display: none; }
  .tabelle.jahre .tz { grid-template-columns: 1fr 1fr 1fr; }
  .tabelle.jahre .tz > :nth-child(3), .tabelle.jahre .tz > :nth-child(5) { display: none; }
  .modal-huelle { place-items: end center; padding: 0; }
  .modal, .modal.breit { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .toasts { left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); align-items: stretch; }
  .phasen-spalten { grid-template-columns: repeat(7, 78vw); scroll-snap-type: x mandatory; }
  .phasen-spalte { scroll-snap-align: start; }
}
@media (max-width: 420px) { .formular { grid-template-columns: 1fr; } .radar-zahlen .zaehler { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Scanner an/aus */
.scan-schalter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; margin-bottom: 4px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.scan-schalter b { display: block; font-size: 14px; }
.scan-schalter small { font-size: 12px; color: var(--text-3); }
.scan-schalter.an { border-color: color-mix(in srgb, var(--gut) 35%, var(--linie)); }
.scan-schalter.an b { color: var(--gut); }
.scan-schalter.an .schalter[aria-checked='true'] { background: var(--gut); }
.scan-knopf { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; margin-left: auto; margin-right: 6px; border-radius: 20px; border: 1px solid var(--linie-2); background: var(--flaeche-2); color: var(--text-2); font-weight: 600; font-size: 13px; }
.scan-knopf.an { color: var(--gut); border-color: color-mix(in srgb, var(--gut) 40%, var(--linie)); }
.scan-knopf.an .live-punkt { background: var(--gut); }

/* Fahrzeugsuche */
.such-karte { padding: 0; overflow: hidden; }
.such-zeile { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--linie); color: var(--text-3); }
.such-zeile:focus-within { color: var(--akzent-text); }
.such-zeile input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; color: var(--text); font: 600 clamp(20px, 2.1vw, 27px) var(--k); outline: none; }
.such-zeile input::placeholder { color: var(--text-3); font-weight: 500; }
.such-zeile .knopf { height: 48px; padding: 0 24px; }
.such-felder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 14px; padding: 18px 20px 20px; align-items: end; }
.such-knoepfe { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.such-anker { scroll-margin-top: 20px; height: 22px; }
.such-ergebnis { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.such-ergebnis h2 { font-size: clamp(24px, 2.6vw, 34px); }
.such-ergebnis p { color: var(--text-2); font-size: 14px; }
.such-ergebnis .knopf-reihe { margin-top: 0; }
.such-preise { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 34px; padding: 14px 20px; margin-bottom: 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); }
.such-preise span { display: block; font-size: 12.5px; color: var(--text-2); }
.such-preise b { font: 700 24px var(--k); }
.such-preise .mitte b { color: var(--akzent-text); }
.such-preise p { margin-left: auto; font-size: 13px; color: var(--text-3); }
.such-laeuft { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); }
.such-laeuft b { display: block; font: 600 20px var(--k); }
.such-laeuft div span { color: var(--text-2); font-size: 14px; }
.such-radar { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--linie-2); background: conic-gradient(from 0deg, transparent 65%, var(--akzent)); animation: such-dreh 1.4s linear infinite; }
@keyframes such-dreh { to { transform: rotate(1turn); } }
.such-beispiele { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-2); font-size: 14px; }
.such-seite .hinweis { margin-bottom: 14px; }
@media (max-width: 1280px) { .such-felder { grid-template-columns: repeat(3, minmax(0, 1fr)); } .such-knoepfe { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .such-zeile { flex-wrap: wrap; padding: 12px 14px 14px; }
  .such-zeile .knopf { width: 100%; justify-content: center; }
  .such-zeile input { font-size: 20px; }
  .such-felder { grid-template-columns: 1fr 1fr; padding: 14px; }
  .such-knoepfe .knopf { flex: 1; justify-content: center; }
  .such-preise p { margin-left: 0; width: 100%; }
}

/* Durchsuchbare Auswahl (Marke, Modell) */
.combo { position: relative; }
.combo-flaeche { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: max(100%, 270px); border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie-2); box-shadow: var(--schatten-hoch); overflow: hidden; }
.combo-liste { max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; overscroll-behavior: contain; }
.combo-liste li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.combo-liste li:hover, .combo-liste li.aktiv { background: var(--flaeche-3); }
.combo-liste li.oben { font-weight: 600; }
.combo-liste li.trenner { margin-top: 7px; position: relative; }
.combo-liste li.trenner::before { content: ''; position: absolute; left: 4px; right: 4px; top: -4px; height: 1px; background: var(--linie-2); }
.combo-liste small { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.combo-fuss { margin: 0; padding: 8px 14px; border-top: 1px solid var(--linie); font-size: 12.5px; color: var(--text-3); }
.such-karte { overflow: visible; }
a.plattform { text-decoration: none; }
a.plattform:hover { text-decoration: underline; }
@media (max-width: 860px) { .such-felder > .combo:nth-child(2) .combo-flaeche { left: auto; right: 0; } }

/* Werkstatt */
.werk-arten { display: inline-flex; flex-wrap: wrap; margin-bottom: 14px; }
.werk-arten button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; font-size: 14px; }
.werk-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.werk-felder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.werk-felder.zwei { grid-template-columns: repeat(2, minmax(0, 260px)); }
.werk-form textarea { min-height: 44px; }
.werk-inserat { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--flaeche-2); }
.werk-inserat img { width: 76px; height: 52px; object-fit: cover; border-radius: 8px; }
.werk-inserat div { flex: 1; min-width: 0; } .werk-inserat span { display: block; font-size: 13px; color: var(--text-2); }
.werk-maengel { display: grid; gap: 8px; }
.werk-los { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.werk-los .hilfe { margin: 0; }
.werk-ki { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; cursor: pointer; } .werk-ki small { color: var(--text-3); }
.werk-ki input, .teil-an input { width: 17px; height: 17px; accent-color: var(--akzent); }
.werk-seite > .karte { margin-bottom: 14px; }
.ki-antwort p { white-space: pre-line; } .ki-antwort ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); }
.pruef-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; } .pruef-liste li { display: grid; gap: 2px; } .pruef-liste span { color: var(--text-2); font-size: 14px; }
.teile-liste { display: flex; flex-direction: column; }
.teil { display: grid; grid-template-columns: 26px minmax(0, 1fr) 250px 140px; gap: 6px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--linie); }
.teil:first-child { border-top: 0; } .teil.aus > :not(.teil-an) { opacity: .4; }
.teil-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; } .teil-text b { font: 600 18px var(--k); } .teil-text small { width: 100%; color: var(--text-2); font-size: 13px; }
.teil-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; } .teil-text .teil-links { width: 100%; } .teil-links a { color: var(--akzent-text); font-weight: 600; }
.teil-preis { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; } .teil-preis b, .karte-kopf .teil-preis b { font: 700 20px var(--k); } .teil-preis small, .karte-kopf small { color: var(--text-3); font-size: 12.5px; }
.teil .angebote { grid-column: 2 / -1; }
.angebote { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.angebote a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; font-size: 14px; } .angebote a:hover { background: var(--flaeche-2); }
.angebote a > span:not(.kein-bild):not(.chip) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.angebote img, .angebote .kein-bild { flex: none; width: 54px; height: 40px; object-fit: cover; border-radius: 7px; background: var(--flaeche-2); display: grid; place-items: center; color: var(--text-3); }
.angebote b { white-space: nowrap; font: 700 16px var(--k); } .angebote strong { min-width: 74px; font: 700 18px var(--k); color: var(--akzent-text); white-space: nowrap; } .angebote .fremd { opacity: .6; }
.kalk-fuss { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px 24px; padding-top: 16px; border-top: 1px solid var(--linie-2); }
.kalk-arbeit { display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); gap: 12px; }
.kalk-summe { flex: 1; text-align: right; } .kalk-summe span, .kalk-summe small { display: block; font-size: 13px; color: var(--text-2); } .kalk-summe b { font: 700 36px var(--k); color: var(--akzent-text); }
.tuning-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .werk-felder { grid-template-columns: 1fr 1fr; } .teil { grid-template-columns: 26px minmax(0, 1fr) 130px; } .teil-preis { grid-column: 2; } }
@media (max-width: 860px) { .werk-felder.zwei { grid-template-columns: 1fr 1fr; } .teil { grid-template-columns: 26px minmax(0, 1fr); } .teil-preis, .teil-eigen { grid-column: 2; } .kalk-summe { text-align: left; width: 100%; } .tuning-raster { grid-template-columns: 1fr; } .angebote .chip { display: none; } .werk-los .knopf { width: 100%; justify-content: center; } }

/* Anmeldung, Zugänge, Handy-Menü */
.anmelde-seite { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.anmelde-karte { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 30px 26px; }
.anmelde-karte .logo { justify-content: center; margin-bottom: 8px; }
.anmelde-karte .knopf { justify-content: center; height: 46px; }
.zugaenge .formular { margin-bottom: 6px; }
.mehr-liste { display: grid; gap: 10px; }
.mehr-liste .karte { display: flex; align-items: center; gap: 14px; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mehr-liste em { margin-left: auto; font-style: normal; color: var(--text-3); }
