/* Auftragshummel · Handwerker-App (PWA). Baut auf ../basis.css auf. */
html { scroll-padding-top: 80px; }
body { min-height: 100dvh; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 761px) { body { padding-bottom: 0; } }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }

/* Kopf */
.appbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.appbar-row { display: flex; align-items: center; gap: 16px; padding-block: 10px 0; min-height: 52px; }
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding-bottom: 10px; }
.brand b { font-family: var(--f-display); font-size: 26px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 2px; margin-left: auto; align-self: end; }
.tab { border: 0; background: none; padding: 10px 12px 12px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.count { font-family: var(--f-mono); font-size: 11px; background: var(--accent); color: var(--on-accent); font-weight: 600; border-radius: 99px; padding: 1px 7px; line-height: 1.5; }
.count:empty { display: none; }
@media (max-width: 760px) { .tabs { display: none; } .brand { padding-bottom: 10px; } }

/* Untere Leiste (Handy) */
.botnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
.botnav a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-decoration: none; position: relative; min-height: 56px; }
.botnav a[aria-current="page"] { color: var(--ink); }
.botnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.botnav svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.botnav .count { position: absolute; top: 4px; left: calc(50% + 6px); }
@media (min-width: 761px) { .botnav { display: none; } }

main { padding-block: 20px 40px; }
.kopfzeile { display: flex; justify-content: space-between; align-items: end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.kopfzeile h1 { font-size: clamp(28px, 6vw, 40px); }
.werkzeug { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stand { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn); font-size: 13.5px; padding: 8px 16px; text-align: center; }

/* Eingang */
.filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 12px; }
.filter .chip { white-space: nowrap; min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.inbox-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) {
  .inbox-grid { grid-template-columns: minmax(0, 1fr); }
  .inbox-grid[data-detail="1"] .spalte-liste { display: none; }
  .inbox-grid[data-detail="0"] .spalte-detail { display: none; }
}
.zurueck-mobil { justify-self: start; padding-left: 0; }
@media (min-width: 981px) { .zurueck-mobil { display: none !important; } .spalte-detail { position: sticky; top: 76px; max-height: calc(100dvh - 92px); overflow-y: auto; border-radius: 12px; } }
.list { display: grid; gap: 8px; }
.row { text-align: left; width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px; cursor: pointer; display: grid; gap: 8px; position: relative; color: inherit; text-decoration: none; }
.row:hover { border-color: var(--muted); }
.row[aria-current="true"] { border-color: var(--primary); box-shadow: inset 4px 0 0 var(--accent); }
.row.ungelesen .row-top b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 7px; box-shadow: 0 0 0 1.5px var(--accent-ink); vertical-align: 1px; }
.row-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.row-top b { font-size: 15.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.row-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.erledigt { opacity: .72; }
.score { font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1; min-width: 2ch; text-align: right; }
.score small { font-family: var(--f-mono); font-size: 10px; color: var(--muted); font-weight: 400; display: block; letter-spacing: .04em; text-transform: uppercase; }
.leer { border: 2px dashed var(--line); border-radius: 12px; padding: 28px 18px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.status-tag { font-size: 12px; font-weight: 700; color: var(--muted); }
.warn-tag { font-size: 12px; font-weight: 700; color: var(--crit); }
.status-tag.auftrag { color: var(--ok); }
.status-tag.abgesagt { color: var(--muted); text-decoration: line-through; }

/* Dossier */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.sheet-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; background: linear-gradient(var(--accent), var(--accent)) top / 100% 5px no-repeat, var(--surface); }
.sheet-head h2 { font-size: 22px; line-height: 1.15; }
.sheet-body { padding: 16px 18px 22px; display: grid; gap: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.qlist label { display: flex; gap: 10px; align-items: baseline; font-size: 14px; cursor: pointer; }
.qlist input { width: 18px; height: 18px; flex: none; transform: translateY(3px); accent-color: var(--ink); }
.hints { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.beschreibung { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.fotos button { border: 1px solid var(--line); border-radius: 8px; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); cursor: zoom-in; }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.segment { display: flex; flex-wrap: wrap; gap: 6px; }
.segment .chip { min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
.zaehler { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.meldung { font-size: 13px; color: var(--muted); min-height: 1.3em; }
.meldung.ok { color: var(--ok); }
.meldung.fehler { color: var(--crit); font-weight: 700; }

/* Foto-Ansicht */
dialog.foto { border: 0; padding: 0; background: #000; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
dialog.foto::backdrop { background: rgba(0,0,0,.85); }
dialog.foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
dialog.foto button { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; background: #fff; color: #000; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; }

/* Preise */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 400px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.pe-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pe-row:last-child { border-bottom: 0; }
.pe-row .unit-row { max-width: none; }
.pe-row .input { padding: 7px 8px; text-align: right; }
.pe-row .unit { padding: 7px 8px; font-size: 12px; }
.pe-row small { display: block; color: var(--muted); font-size: 12px; }
.pe-row.geaendert > span:first-child::after { content: " · eigener Wert"; color: var(--accent-ink); font-family: var(--f-mono); font-size: 11px; }
.zone-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 120px; gap: 8px; align-items: center; padding: 6px 0; }
.zone-row b { font-family: var(--f-display); font-size: 22px; }
.speicherleiste { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border: 1.5px solid var(--primary); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; box-shadow: var(--shadow); }
@media (min-width: 761px) { .speicherleiste { bottom: 12px; } }

/* Einbau */
.embed-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .embed-grid { grid-template-columns: minmax(0, 1fr); } }
.qr-card { background: #fff; border-radius: 10px; padding: 14px; display: inline-grid; justify-items: center; gap: 6px; border: 1px solid var(--line); color: #1C1E21; }
.qr-card svg { width: 200px; height: 200px; display: block; }
.qr-card span { font-family: var(--f-mono); font-size: 11px; overflow-wrap: anywhere; text-align: center; max-width: 220px; }
.linkzeile { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.linkzeile .input { flex: 1 1 220px; font-family: var(--f-mono); font-size: 13px; }
.schritte-liste { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }

/* Anmeldung */
.login { max-width: 420px; margin: 8vh auto 0; padding: 0 16px; display: grid; gap: 18px; }
.login .marke { display: grid; gap: 6px; justify-items: start; }
.login .marke .marke-bild { width: 96px; height: auto; margin-bottom: 6px; }
.login .marke .marke-bild.dunkel, :root[data-theme="dark"] .login .marke .marke-bild.hell { display: none; }
:root[data-theme="dark"] .login .marke .marke-bild.dunkel { display: block; }
.login .marke .marke-titel { font-family: var(--f-display); font-size: 40px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.login .code { font-family: var(--f-mono); font-size: 28px; letter-spacing: .3em; text-align: center; }
.konto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.lade { color: var(--muted); padding: 24px 0; }
.box.pause { margin: 0 0 14px; }
.wa-verlauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wa-verlauf li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; max-width: 92%; }
.wa-verlauf li.ein { background: var(--surface-2); }
.wa-verlauf li.aus { justify-self: end; border-style: dashed; }
.wa-verlauf p { margin: 4px 0 0; white-space: pre-wrap; font-size: 14px; }
.nutzer-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.nutzer-liste li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; }
.nutzer-liste li > div { display: grid; min-width: 0; }
.nutzer-liste .fine { overflow-wrap: anywhere; }
.nutzer-neu { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) { .nutzer-neu { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); } }
.varianten { margin-top: 12px; }
.varianten summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.varianten ul { padding-left: 18px; }
/* v06: Auswertung im Konto */
.tabelle-wrap { overflow-x: auto; margin-top: 12px; border-radius: 6px; }
.calc.bericht th { text-align: left; font: 500 11.5px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 8px 6px 0; border-bottom: 1px solid var(--line); }
.calc.bericht td { padding-right: 8px; }
.calc.bericht td:not(:first-child), .calc.bericht th:not(:first-child) { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* v07: Links zu Impressum und Datenschutz des Betreibers */
.rechtliches { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rechtliches a { color: var(--ink); padding: 4px 0; }
/* v08: Heute, Angebote, Termine, Anfrage erfassen */
.three { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
@media (max-width: 620px) { .three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .three > :last-child { grid-column: 1 / -1; } }
.heute-kpis { margin-bottom: 16px; }
.heute-kpis a.kpi { text-decoration: none; color: inherit; }
.heute-kpis a.kpi:hover b { text-decoration: underline; text-underline-offset: 3px; }
.heute-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 400px) { .heute-grid { grid-template-columns: minmax(0, 1fr); } }
.list.kompakt { gap: 6px; }
.list.kompakt .row { padding: 10px; gap: 4px; }
.tag-titel { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.termin { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; align-items: start; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 8px 10px; background: var(--surface); }
.termin.erledigt { border-left-color: var(--line); opacity: .7; }
.termin.erledigt .termin-text b { text-decoration: line-through; }
.termin-zeit { font-size: 13px; font-weight: 600; }
.termin-text { display: grid; gap: 2px; min-width: 0; }
.termin-text .fine { overflow-wrap: anywhere; }
.termin-knoepfe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.termin-knoepfe .btn { min-height: 34px; }
.rueck, .nachfassen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rueck a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.rueck li.angenommen a { border-left: 4px solid var(--ok); }
.rueck li.frage a { border-left: 4px solid var(--accent); }
.rueck li.abgelehnt a, .rueck li.widerrufen a { border-left: 4px solid var(--crit); }
.nachfassen li { display: grid; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.nachfassen li > div:first-child { display: grid; }
.neu-tag { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 4px; padding: 0 6px; }
.ag-tag { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 0 6px; border: 1px solid var(--line); color: var(--muted); }
.ag-tag.gesendet { border-color: var(--steel); color: var(--steel); background: var(--steel-soft); }
.ag-tag.angenommen { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.ag-tag.abgelehnt, .ag-tag.widerrufen { border-color: var(--crit); color: var(--crit); background: var(--crit-bg); }
.ag-tag.entwurf { border-style: dashed; }
.angebote { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.angebot-zeile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.angebot-zeile.angenommen { border-color: var(--ok); }
.ag-kopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ag-kopf .mono { margin-left: auto; font-weight: 600; }
blockquote.frage { margin: 0; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; display: grid; gap: 2px; font-size: 14px; }
.link-knopf { background: none; border: 0; padding: 4px 0; color: var(--crit); font-size: 12.5px; text-decoration: underline; cursor: pointer; justify-self: start; }
.fotos figure { margin: 0; display: grid; gap: 4px; }
.fotos figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); align-items: center; }
.formular-karte { max-width: 760px; gap: 16px; }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ag-grid .ag-pos { grid-column: 1 / -1; }
.ag-grid > * { min-width: 0; }
@media (max-width: 900px) { .ag-grid { grid-template-columns: minmax(0, 1fr); } }
.pos-liste { display: grid; gap: 12px; }
.pos-zeile { display: grid; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pos-zahlen { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 8px; align-items: end; }
@media (max-width: 560px) { .pos-zahlen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pos-summe { display: grid; gap: 2px; text-align: right; padding-bottom: 10px; }
.pos-summe b { font-size: 15px; }
.calc.summen { max-width: 420px; margin-left: auto; }
.ag-leiste { gap: 10px 16px; }
.ag-summe-kurz { display: grid; }
.ag-summe-kurz b { font-size: 20px; }
.senden-karte { margin-top: 16px; border: 2px solid var(--accent); }
.senden-wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.weg-knopf { justify-content: flex-start; text-align: left; min-height: 64px; padding: 12px 14px; }
.weg-knopf span { display: grid; gap: 2px; }
.weg-knopf small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.weg-knopf svg { width: 26px; height: 26px; }
.termin-form { margin: 0 0 16px; border: 2px solid var(--accent); }
.wahl-zeile { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.wahl-zeile input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.wahl-zeile:has(small) { align-items: flex-start; }
.wahl-zeile:has(small) input { margin-top: 2px; }
.wahl-zeile small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.login .bleiben { margin: 4px 0 2px; }
.cfg-titel { font-size: 14px; margin: 14px 0 0; color: var(--ink); }
.warn-tag { display: inline-block; }
.kal-liste { display: grid; gap: 18px; }
.kal-tag { display: grid; gap: 8px; }
.kal-tag .tag-titel { font-size: 15px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.mehr-links .btn svg { width: 18px; height: 18px; }
.logo-zeile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.logo-vorschau { width: 180px; height: 72px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; background: #fff; padding: 6px; }
.logo-vorschau img { max-width: 100%; max-height: 100%; display: block; }
dialog.karte { border: 0; border-radius: 16px; padding: 24px; max-width: min(440px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
dialog.karte::backdrop { background: rgba(20, 22, 25, .55); }
dialog.karte #qr-inhalt { display: grid; gap: 10px; justify-items: center; }
.qr-card.gross svg { width: min(280px, 70vw); height: auto; }
.field small.hinweis-klein { display: block; margin-top: 6px; color: var(--warn); }

/* v08.5: Funktionen in Arbeit (grau), Kunden kontaktieren, Mehrkosten, Regler, Regie */
.card.grau { background: var(--surface-2); border: 1.5px dashed var(--line); box-shadow: none; }
.card.grau h2 { color: var(--muted); }
.card.grau .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.rf-liste, .mk-liste, .ergaenzungen { list-style: none; padding: 0; margin: 0 0 10px; }
.rf-liste > li { border-bottom: 1px solid var(--line); padding: 8px 0; display: grid; gap: 4px; }
.rf-liste ul { margin: 2px 0 0 18px; padding: 0; }
.rf-form, .mk-form, .ae-form { margin-top: 10px; }
.mk-form h4, .ae-form h4 { margin: 0 0 6px; font-size: 15px; }
.regler { margin: 4px 0 12px; display: grid; gap: 4px; }
.regler input[type=range] { width: 100%; accent-color: var(--primary); min-height: 32px; }
.pos-zeile.regie .pos-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* v10.0 Rollen und Zuweisung */
.vorzeilen { white-space: pre-line; }
.zustaendig { font-size: 12.5px; color: var(--muted); }
.rollen-hinweis { margin: 0 0 12px; }
.input.klein { width: auto; min-height: 36px; padding: 4px 8px; font-size: 14px; }
.nutzer-liste li { flex-wrap: wrap; }
dl.rollen dd { margin-bottom: 4px; }

/* v10.1 Rechnungen */
.rechnungen { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.rechnung-zeile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.rechnung-zeile.ausgestellt { border-color: var(--ok); }
.rechnung-zeile.storniert { border-style: dashed; }   /* keine Transparenz: Kontrast muss bleiben (axe) */
.ag-tag.ausgestellt { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.ag-tag.storniert { border-color: var(--crit); color: var(--crit); background: var(--crit-bg); }
.re-form, .re-ausstellen { margin-top: 10px; }
.re-form h4, .re-ausstellen h4 { margin: 0 0 6px; font-size: 15px; }
.re-summe { font-weight: 700; }

/* v10.2 Besichtigung (Aufmaß) und Vorschläge für Positionen */
.bes-raeume { display: grid; gap: 12px; }
.bes-raum { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; margin: 0; }
.bes-raum legend { font-weight: 700; padding: 0 4px; }
.bes-masse { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.bes-masse .field { min-width: 0; }
.bes-summe { margin: 0; }
.tabelle-scroll { overflow-x: auto; max-width: 100%; }
.bes-tabelle th:not(:first-child), .bes-tabelle td:not(:first-child) { text-align: right; }
.bes-notizen { margin: 8px 0; padding-left: 18px; }
.vor-liste { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; margin: 10px 0 0; min-width: 0; }
.vor-liste legend { font-weight: 700; padding: 0 4px; }
.bes-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.bes-tabelle th, .bes-tabelle td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bes-tabelle th { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.bes-tabelle tr.s td { font-weight: 700; border-bottom: 0; }
/* v10.2 Testserver (STUFE=test) */
.brand .test-marke { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #B42318; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
