/* =====================================================================
   Aufmaß V4 — Druck (Gesamtaufmaß / Übersicht), A4 eine Seite je Position
   ===================================================================== */
#print-root { display: none; }
/* PDF-Erstellung (21.10.2026): Blätter kurz sichtbar hinter dem Fortschrittsfenster, damit html2canvas sie zeichnen kann */
@media screen {
  #print-root.pdf-render { display: block; position: fixed; left: 0; top: 0; width: 190mm; z-index: 1; background: #fff; }
  #print-root.pdf-render .print-page { width: 190mm; min-height: 277mm; background: #fff; }
  .pdf-ov { position: fixed; inset: 0; z-index: 5000; background: rgba(20, 22, 26, .55); display: flex; align-items: center; justify-content: center; padding: 24px; }
  .pdf-box { background: var(--surface-1, #fff); color: var(--ink, #16181C); border-radius: 18px; padding: 22px 22px 18px; width: 100%; max-width: 420px; box-shadow: 0 24px 64px rgba(0, 0, 0, .3); font-family: 'IBM Plex Sans', sans-serif; }
  .pdf-t { font-size: 18px; font-weight: 700; }
  .pdf-s { font-size: 13.5px; color: var(--muted, #8A929E); margin-top: 6px; min-height: 20px; }
  .pdf-s.err { color: #B3261E; }
  .pdf-bar { height: 6px; border-radius: 3px; background: var(--line, #E2E5EA); margin: 14px 0 16px; overflow: hidden; }
  .pdf-bar i { display: block; height: 100%; background: #A11C1C; transition: width .2s; }
  .pdf-btns { display: flex; gap: 10px; }
  .pdf-btns button { flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--line, #E2E5EA); background: var(--surface-1, #fff); color: var(--ink, #16181C); font: inherit; font-weight: 600; cursor: pointer; }
  .pdf-btns .pdf-go { background: #A11C1C; border-color: #A11C1C; color: #fff; }
  .pdf-btns .pdf-go:disabled { opacity: .4; }
}
/* Vorschau (User 26.10.2026): „Gesamtaufmaß"/„Lagerliste" zeigen die Blätter zuerst am Bildschirm, oben die Leiste
   mit Zurück · Als PDF sichern · Drucken. Die Blätter behalten ihre Druckbreite (190 mm), der weiße Rand ist nur Schatten. */
@media screen {
  #print-root.dv-open { display: block; position: fixed; inset: 0; z-index: 3000; overflow: auto; -webkit-overflow-scrolling: touch;
    background: #DADDE2; padding: calc(64px + env(safe-area-inset-top, 0px)) 0 48px; }
  #print-root.dv-open .print-page { width: 190mm; min-height: 277mm; margin: 0 auto 30mm; box-shadow: 0 0 0 10mm #fff, 0 6px 0 10mm rgba(0, 0, 0, .08); }
  #print-root.dv-open .print-page:first-child { margin-top: 10mm; }
  body.dv-aktiv #app { visibility: hidden; }
  #dv-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 3001; display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
    background: #fff; border-bottom: 1px solid #E2E5EA; font-family: 'IBM Plex Sans', sans-serif; color: #16181C; }
  #dv-bar button { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #E2E5EA; background: #fff; color: #16181C; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
  #dv-bar .dv-druck { background: #A11C1C; border-color: #A11C1C; color: #fff; }
  #dv-bar .dv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  #dv-bar .dv-t b { font-size: 16px; }
  #dv-bar .dv-t span { font-size: 12.5px; color: #8A929E; }
}
@media print {
  #dv-bar { display: none !important; }
  #app { display: none !important; }
  #print-root { display: block; }
  /* App-Layout (height:100% + overflow + position:fixed) klippt sonst auf EINE Seite → für den Druck aufheben */
  html, body { background: #fff; height: auto !important; min-height: 0 !important; overflow: visible !important; position: static !important; }
  #print-root { height: auto !important; overflow: visible !important; }
  /* Ränder ECHT über @page (V2-bewährtes Rezept) — die Seite füllt nur die Druckfläche (width:100%).
     KEINE erzwungene 210mm-Breite: sonst skaliert iOS die volle Papierbreite in den bedruckbaren
     Bereich hinein → alles wird ~10% kleiner und die Ränder addieren sich („falsch skaliert").
     Seitenhöhe FIX (≤ Druckfläche 297−10−9) + overflow:hidden → keine Leerseiten mittendrin. */
  @page { size: A4; margin: 10mm 10mm 9mm; }
  html, body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* iOS bläht Text sonst geräteabhängig auf */
}

.print-page {
  width: 100%; height: auto; overflow: visible;
  /* KEINE Seitenhöhe (wie V2): jede mm-Höhe ist ein Gamble gegen die real verfügbare
     Druckfläche (Safari/Drucker setzen eigene Ränder an) — läuft die Seite auch nur 1mm
     über, entsteht nach JEDER Seite eine Leerseite. Ohne Höhe kann nichts überlaufen;
     der Umbruch kommt allein aus page-break-after. */
  box-sizing: border-box; padding: 0;              /* Ränder kommen aus @page, nicht aus dem Element */
  page-break-after: always; break-after: page; background: #fff; color: #16181C;
  font-family: 'IBM Plex Sans', sans-serif; display: flex; flex-direction: column; position: relative;
}
.print-page:last-child { page-break-after: auto; break-after: auto; }
/* Übersicht: Block-Fluss statt Flex, damit lange Kartenlisten sauber über mehrere Seiten umbrechen —
   dafür KEINE fixe Höhe/kein overflow:hidden (sonst würde die Liste abgeschnitten) */
.print-page.ov-flow { display: block; height: auto; min-height: 0; overflow: visible; }
.print-page.ov-flow .p-foot { margin-top: 18px; }
.print-page .mono { font-family: 'IBM Plex Mono', monospace; }

.p-head { display: flex; justify-content: space-between; align-items: flex-start; }
.p-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #8A929E; }
.p-proj { font-size: 26px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin-top: 3px; line-height: 1.02; }
.p-pos { font-size: 16px; font-weight: 700; color: #A11C1C; margin-top: 2px; }
.p-badge { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; }
.p-badge.done { color: #15803D; background: #E7F6EC; }
.p-badge.open { color: #B45309; background: #FEF3E2; }
.p-rule { height: 2.5px; background: #A11C1C; border-radius: 2px; margin-top: 12px; }

.p-main { display: flex; gap: 22px; margin-top: 16px; flex: none; }
.p-left { width: 246px; flex: none; display: flex; flex-direction: column; gap: 15px; }
.p-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.p-diagbox { border: 1px solid #EEF0F3; border-radius: 12px; background: #FBFBFC; padding: 14px 12px 12px; }

.p-sechead { display: flex; align-items: center; gap: 8px; }
/* Eine Überschrift darf nie als letzte Zeile einer Seite stehen, und lange Tabellen
   (Positionsindex, Zuschnitt) nehmen ihren Kopf auf die Folgeseite mit. */
.print-page .p-sechead { break-after: avoid; page-break-after: avoid; }
.pos-index thead, .p-table thead { display: table-header-group; }
.p-sh { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #A11C1C; white-space: nowrap; }
.p-sechead .ln { flex: 1; height: 1px; background: #EBEDF0; }

.p-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #9AA1AC; line-height: 1.2; }
.p-val { font-size: 13px; font-weight: 600; color: #16181C; margin-top: 1px; line-height: 1.3; }
.p-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 16px; margin-top: 10px; }

.p-fertbox { margin-top: 11px; border: 1px solid #F0D5D5; background: #FCF4F4; border-radius: 9px; padding: 9px 12px; }
.p-bottom { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 18px; }
.p-notiz { margin-top: 9px; background: #FEF6EC; border: 1px solid #F6E2C2; border-radius: 9px; padding: 11px 15px; font-size: 12.5px; line-height: 1.4; color: #5B4A2E; white-space: pre-wrap; }   /* Absätze wie eingegeben */
.p-col { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.p-media-row { display: flex; gap: 12px; margin-top: 10px; }
.p-media { flex: 1; border: 1px solid #EEF0F3; border-radius: 10px; background: #FBFBFC; padding: 9px; display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 150px; }
.p-media img { max-width: 100%; max-height: 200px; border-radius: 6px; object-fit: contain; }
.p-media-ph { flex: 1; display: flex; align-items: center; justify-content: center; color: #C4C9D0; font-size: 22px; min-height: 120px; }
.p-media-lbl { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #9AA1AC; text-transform: uppercase; margin-top: auto; }
.p-foot { margin-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid #EEF0F3; padding-top: 8px; font-size: 10px; color: #A7AEB8; }   /* fester Abstand — ohne Seitenhöhe gibt es kein „unten" zum Anpinnen */

.p-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 12px; }
.p-table th { text-align: left; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #9AA1AC; padding: 7px 8px; border-bottom: 1px solid #E6E8EC; }
.p-table td { padding: 8px; border-bottom: 1px solid #F1F3F5; font-weight: 600; }

/* Kalkulations-Blatt — gleiche Formensprache wie die übrigen Blätter (p-*), keine App-Karten */
.p-kstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.p-kstat { border: 1px solid #EEF0F3; border-radius: 10px; background: #FBFBFC; padding: 10px 12px 9px; text-align: center; }
.p-kstat .v { font-size: 21px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; line-height: 1.1; }
.p-kstat .l { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #9AA1AC; margin-top: 4px; }
.p-ksec { break-inside: avoid; page-break-inside: avoid; }
.p-krows { margin-top: 8px; }
.p-krow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5.5px 0; border-bottom: 1px solid #F1F3F5; }
.p-krow:last-child { border-bottom: none; }
.p-krow .l { font-size: 11.5px; font-weight: 600; color: #5B6470; }
.p-krow .v { font-size: 13px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.p-krow .u { font-size: 10px; color: #9AA1AC; font-weight: 600; }
.p-ksub { margin-top: 7px; font-size: 10px; color: #9AA1AC; }

/* ---------- Deckblatt (Seite 1): Eckdaten-Kacheln + Kunde/Baustelle-Karten + Positionsindex ---------- */
.cv-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.cv-tile { border: 1px solid #EEF0F3; border-radius: 10px; background: #FBFBFC; padding: 9px 10px 8px; }
.cv-tile .v { font-size: 13.5px; font-weight: 700; line-height: 1.15; }
.cv-tile .l { font-size: 8.5px; font-weight: 700; letter-spacing: .06em; color: #9AA1AC; margin-top: 3px; text-transform: uppercase; }
.cv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.cv-card { border: 1px solid #EEF0F3; border-radius: 12px; background: #fff; padding: 12px 14px; break-inside: avoid; page-break-inside: avoid; }
.cv-ct { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #A11C1C; }
.cv-name { font-size: 16px; font-weight: 700; margin-top: 6px; line-height: 1.15; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 8px; }
.cv-note { font-size: 11px; color: #9AA1AC; margin-top: 8px; }
/* Positionsindex-Tabelle */
.pos-index { width: 100%; border-collapse: collapse; margin-top: 10px; }
.pos-index th { text-align: left; font-size: 9px; font-weight: 700; letter-spacing: .05em; color: #9AA1AC; padding: 6px 8px; border-bottom: 1.5px solid #E6E8EC; text-transform: uppercase; }
.pos-index td { padding: 6.5px 8px; border-bottom: 1px solid #F1F3F5; font-size: 11px; font-weight: 600; vertical-align: top; line-height: 1.3; }
.pos-index tr { break-inside: avoid; page-break-inside: avoid; }
.pos-index .nr { font-family: 'IBM Plex Mono', monospace; font-weight: 700; color: #A11C1C; white-space: nowrap; }
.pos-index .dim { font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.pos-index .sub { font-size: 9.5px; color: #9AA1AC; font-weight: 600; }

/* ---------- Standards (Seite 2): Örtlichkeiten + Fensterstandard als Karten in 2 Spalten ---------- */
/* Zwei Spalten NICHT über column-count: ein Multicol-Block bricht in Safari nicht über die
   Seitengrenze — sobald die Standards länger als eine Seite sind, läuft er über statt umzubrechen.
   Inline-Blocks fließen dagegen zeilenweise, und zwischen zwei Zeilen darf der Drucker umbrechen. */
.std-cols { margin-top: 14px; font-size: 0; }   /* font-size:0 = kein Leerraum zwischen den Karten */
.std-card { display: inline-block; vertical-align: top; width: 49%; margin: 0 2% 14px 0; font-size: 12px;
  break-inside: avoid; page-break-inside: avoid; border: 1px solid #EEF0F3; border-radius: 12px; background: #fff; padding: 12px 14px; box-sizing: border-box; }
.std-card:nth-child(even) { margin-right: 0; }
.std-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 9px; }

/* Abweichend vom Projektstandard → rot */
.p-val.dev { color: #A11C1C; }

/* AUSSTATTUNG NEU — eigener Chip-Block */
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.p-chip { font-size: 10.5px; font-weight: 700; border: 1px solid #F0D5D5; background: #FCF4F4; color: #A11C1C; border-radius: 6px; padding: 3px 9px; }

/* ===================== Neues Aufmaßblatt (21.10.2026) =====================
   A4, links oben getackert → Kopf rechtsbündig; Zeichnung über die ganze Breite. */
.k-page { font-family: 'IBM Plex Sans', sans-serif; font-size: 9.6pt; line-height: 1.32; }
.k-page .mono, .k-dl dd.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.k-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm; padding-bottom: 2.5mm; border-bottom: 0.6mm solid #A11C1C; margin-bottom: 4mm; flex: none; }
.k-tack { width: 30mm; flex: none; }                 /* links oben wird getackert — frei lassen */
.k-right { text-align: right; min-width: 0; }
.k-t { font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 24pt; line-height: 1; color: #A11C1C; }
.k-s { font-size: 13pt; font-weight: 700; margin-top: 1.2mm; color: #16181C; }
.k-k { font-size: 8.5pt; color: #5B6470; margin-top: 0.8mm; }
.k-marken { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5mm; margin-top: 1.5mm; }
.k-marken span { font-size: 8pt; font-weight: 700; padding: 0.4mm 2mm; border-radius: 1.2mm; background: #F4F5F7; color: #16181C; }
.k-marken span.rot { background: #A11C1C; color: #fff; }
.k-sh { font-size: 7.6pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A11C1C; margin: 0 0 1.6mm; padding-bottom: 0.8mm; border-bottom: 0.2mm solid #E2E5EA; }
.k-draw { border: 0.25mm solid #E2E5EA; border-radius: 2mm; padding: 3mm 4mm 2mm; margin-bottom: 4mm; flex: none; display: flex; flex-direction: column; align-items: center; }
.k-draw svg { display: block; max-height: 122mm; }
.k-cap { font-size: 10pt; font-weight: 700; text-align: center; margin-top: 1.5mm; }
.k-cols { display: grid; grid-template-columns: 0.95fr 1.25fr 1.05fr; gap: 5mm; flex: none; }
.k-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9mm 3mm; }
.k-dl dt { color: #5B6470; font-size: 8.4pt; white-space: nowrap; }
.k-dl dd { margin: 0; font-weight: 600; font-size: 9.2pt; text-align: right; overflow-wrap: anywhere; }
.k-dl dd.strong { font-weight: 700; font-size: 10.5pt; color: #16181C; }
.k-dl dd.klein { font-weight: 500; font-size: 7.6pt; color: #8A929E; }
.k-leer { font-size: 8.8pt; color: #8A929E; }
.k-abw { margin-top: 4mm; border-left: 0.9mm solid #A11C1C; padding: 1.5mm 0 1.5mm 3mm; display: flex; flex-direction: column; gap: 1mm; flex: none; font-size: 9.4pt; }
.k-abw b { font-weight: 700; }
.k-abw span { color: #8A929E; }
.k-notiz { margin-top: 4mm; border: 0.25mm solid #E2E5EA; border-radius: 2mm; padding: 2.5mm 3mm; white-space: pre-wrap; font-size: 9.4pt; flex: none; }
.k-anl { margin-top: 3mm; font-size: 8.4pt; color: #8A929E; flex: none; }
.k-foot { margin-top: auto; padding-top: 2.5mm; border-top: 0.2mm solid #E2E5EA; display: flex; justify-content: space-between; font: 500 7pt 'IBM Plex Mono', monospace; color: #8A929E; flex: none; }
.ov-flow .k-foot { margin-top: 6mm; }
.k-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm 8mm; }
.k-blk { break-inside: avoid; }
.k-blk dd { white-space: pre-line; }   /* mehrzeilige Örtlichkeiten-Notizen */
.k-tab { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.k-tab th { text-align: left; font-size: 7pt; letter-spacing: .1em; text-transform: uppercase; color: #8A929E; font-weight: 700; padding: 1mm 1.5mm; border-bottom: 0.25mm solid #E2E5EA; }
.k-tab td { padding: 0.85mm 1.5mm; border-bottom: 0.15mm solid #EEF0F3; vertical-align: top; }
.k-tab td.nr { font-family: 'IBM Plex Mono', monospace; font-weight: 700; color: #A11C1C; width: 8mm; }
.k-tab td.mono { font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.k-tab tr { break-inside: avoid; }
.k-tab .grau { color: #8A929E; }
.k-tag { display: inline-block; font-size: 7pt; font-weight: 700; padding: 0.2mm 1.4mm; border-radius: 1mm; background: #F4F5F7; color: #5B6470; margin: 0 1mm 0.4mm 0; white-space: nowrap; }
.k-tag.rot { background: #FBEDED; color: #A11C1C; }
.k-cover-top { display: flex; justify-content: space-between; align-items: flex-start; }
.k-cover-logo { display: flex; align-items: center; gap: 4mm; text-align: right; }
.k-cover-logo img { height: 20mm; border-radius: 1.5mm; }
.k-cover-logo b { display: block; font-size: 12pt; letter-spacing: .18em; color: #A11C1C; }
.k-cover-logo span { font-size: 9pt; color: #5B6470; }
.k-cover-title { font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 26pt; line-height: 1.05; margin: 5mm 0 3.5mm; padding-bottom: 2.5mm; border-bottom: 0.6mm solid #A11C1C; }
.k-facts { display: grid; grid-template-columns: repeat(5, 1fr); border: 0.25mm solid #E2E5EA; border-radius: 2mm; overflow: hidden; margin-bottom: 4mm; }
.k-facts div { padding: 2mm 2.5mm; border-right: 0.25mm solid #E2E5EA; }
.k-facts div:last-child { border-right: 0; }
.k-facts b { display: block; font-size: 10pt; }
.k-facts span { font-size: 6.8pt; letter-spacing: .1em; text-transform: uppercase; color: #8A929E; }
.k-adrs { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-bottom: 5mm; }
.k-adr { border: 0.25mm solid #E2E5EA; border-radius: 2mm; padding: 2.5mm 3mm; font-size: 9pt; color: #5B6470; }
.k-adr small { display: block; font-size: 6.8pt; letter-spacing: .12em; text-transform: uppercase; color: #A11C1C; font-weight: 700; }
.k-adr b { display: block; font-size: 11pt; color: #16181C; margin: 0.6mm 0; }

/* ===== Positionsblatt (21.10.2026, nach V3-Vorbild): eine Seite je Position.
   Oben: Ansicht links, rechts daneben alle Maße (Fertigmaß zum Eintragen). Darunter Rollladen · Ausstattung · Zubehör. ===== */
.k-links { flex: none; padding-top: 1mm; }
.k-links img { display: block; height: 15mm; border-radius: 1.2mm; }
.q-oben { display: grid; grid-template-columns: 104mm minmax(0, 1fr); gap: 6mm; align-items: start; flex: none; }
.q-bild { border: 0.25mm solid #E2E5EA; border-radius: 2.5mm; background: #FBFBFC; padding: 3mm 3mm 2.5mm; }
.q-bild svg { display: block; width: 100%; height: auto; max-height: 128mm; }
.q-cap { text-align: center; font-size: 11.5pt; font-weight: 700; margin-top: 1.5mm; }
.q-capn { text-align: center; font-size: 9pt; color: #5B6470; margin-top: 0.5mm; white-space: pre-line; }
.q-masse { display: flex; flex-direction: column; gap: 4mm; min-width: 0; }
.q-fert { border: 0.25mm solid #F0D5D5; background: #FCF4F4; border-radius: 2.5mm; padding: 2.5mm 3mm; }
.q-fert-z { display: flex; align-items: flex-end; gap: 2mm; margin-top: 2.5mm; font-size: 11pt; color: #5B6470; }
.q-feld { flex: 1; min-width: 0; border-bottom: 0.35mm solid #16181C; text-align: center; font-size: 15pt; font-weight: 700; color: #16181C; padding: 0 1mm 0.3mm; }
.q-mm { font-size: 8pt; }
.q-unter { font-size: 7.6pt; color: #8A929E; margin-top: 1mm; }
.q-fehlt { color: #A11C1C; font-weight: 700; font-size: 9pt; border-bottom: 0.3mm solid #A11C1C; }
.q-unten { display: flex; flex-direction: column; gap: 3.6mm; margin-top: 4.5mm; flex: none; }
.q-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; align-items: start; }
.q-gem { font-size: 9.2pt; margin-top: 0.6mm; }
.q-gem b { color: #A11C1C; }
.q-notiz { margin-top: 4.5mm; flex: none; }
.k-page .p-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6mm 4mm; margin-top: 2.6mm; }
.k-page .p-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6mm 4mm; margin-top: 2.6mm; }
.k-page .p-col { gap: 2.4mm; margin-top: 2.6mm; }
.k-page .p-lbl { font-size: 7.4pt; }
.k-page .p-val { font-size: 10pt; }
.k-page .p-val.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 700; }
.k-page .p-val.fett { font-weight: 800; }
.k-page .p-sh { font-size: 8pt; }
.k-page .p-chips { margin-top: 0; }
.k-page .p-chip { font-size: 8.6pt; }
.k-page .p-notiz { font-size: 10pt; margin-top: 2mm; }
/* Maßtabelle neben dem Bild: je Maß eine Zeile, Breite unter Breite, Höhe unter Höhe */
.q-mtab { width: 100%; border-collapse: collapse; }
.q-mtab th, .q-mtab td { padding: 1.4mm 1.5mm; border-bottom: 0.2mm solid #E2E5EA; text-align: left; vertical-align: baseline; }
.q-mtab thead th { font-size: 7.4pt; font-weight: 700; letter-spacing: .08em; color: #9AA1AC; border-bottom: 0.3mm solid #C9CED6; }
.q-mtab thead th:first-child { color: #A11C1C; letter-spacing: .12em; }
.q-mtab tbody th { font-size: 9pt; font-weight: 600; color: #5B6470; white-space: nowrap; }
.q-mtab td { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; font-size: 12pt; font-weight: 700; color: #16181C; width: 30%; }
/* Abschnitte untereinander: links Einzelheiten, rechts die Bubble mit den Keyfacts */
.q-abs-in { display: grid; grid-template-columns: minmax(0, 1fr) 96mm; gap: 6mm; align-items: start; }
.q-abs-in.ohne { grid-template-columns: minmax(0, 1fr); }
.q-abs-in .p-grid3 { margin-top: 2.6mm; }
.q-bub { margin-top: 2.6mm; border: 0.35mm solid #E6B9B9; background: #FCF4F4; border-radius: 2.5mm; padding: 2mm 3mm; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6mm 4mm; }
.q-bub > div { display: flex; flex-direction: column; }
.q-bub span { font-size: 7.2pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #A11C1C; }
.q-bub b { font-size: 11pt; font-weight: 700; color: #16181C; line-height: 1.25; }
.q-bub b.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; font-size: 12pt; }
.q-bub i { font-style: normal; font-size: 7.6pt; color: #8A929E; }
/* Glas · Insektenschutz: je Besonderheit eine Zeile, rechts das Muster wie in der Zeichnung (Legende) */
.q-gz { display: grid; grid-template-columns: minmax(0, 1fr) 96mm; gap: 6mm; align-items: center; padding: 1.1mm 0; border-bottom: 0.2mm solid #EEF0F3; }
.q-gz:last-child { border-bottom: 0; }
.q-leg { display: flex; align-items: center; gap: 2.5mm; border: 0.35mm solid #D5D9DF; border-radius: 2.5mm; padding: 1mm 2.5mm; }
.q-leg svg { width: 13.5mm; height: 9mm; flex: none; display: block; }
.q-leg b { font-size: 9.6pt; font-weight: 700; line-height: 1.25; }
.q-fb { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; align-items: start; }
/* Neue Skizze (26.10.2026): dieselbe Zeichnung wie die Positionsansicht; ein einzelnes Bild steht unten auf dem Blatt */
.q-bild svg.q-skizze { max-height: 120mm; }
.q-ht-bild svg.q-skizze { width: 100%; height: 100%; max-height: 100%; }
/* Haustür-Aufmaßblatt Seite 2: Ansicht außen und innen nebeneinander, darunter Maße und Fertigmaß (28.10.2026) */
.q-ht2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; margin-top: 4mm; flex: none; }
.q-ht2 .q-bild svg.q-skizze { max-height: 118mm; }
.q-ht2-cap { text-align: center; font-size: 11pt; font-weight: 700; margin-top: 2.5mm; flex: none; }
.q-ht2-m { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 5mm; }
.q-hw { margin: 2.6mm 0 0; padding-left: 5mm; font-size: 9pt; line-height: 1.4; }
.q-hw li + li { margin-top: 1mm; }
.q-bild1 { margin-top: 4mm; flex: none; }
.q-bild1 img { display: block; max-width: 100%; max-height: 62mm; margin-top: 2mm; border-radius: 2mm; border: 0.25mm solid #E2E5EA; object-fit: contain; }
