/* © 2026 Martin Scherer · Fachwerte (https://www.fachwerte.de) · Alle Rechte vorbehalten.
   Badplaner — Original: https://www.fachwerte.de/tools/badplaner/ · Kennung FWBP-2026-09-23 */
/* Badplaner — Ergebnisblatt und Druck (Bericht-Agent).
   Das Blatt ist bewusst immer „Papier“ (weiß, dunkle Schrift), auch im dunklen
   Farbschema — so sieht man am Bildschirm, was aus dem Drucker kommt. */

:root {
    --bpb-papier: #ffffff;
    --bpb-tinte: #1b1f24;
    --bpb-tinte-2: #4b5360;
    --bpb-leise: #7a828e;
    --bpb-linie: #e3e6ea;
    --bpb-linie-2: #cfd4da;
    --bpb-flaeche: #f5f7f9;
    --bpb-akzent: #1f6fd1;
    --bpb-akzent-sf: #eaf2fd;
    --bpb-warn: #b4610f;
    --bpb-warn-sf: #fff5e8;
    --bpb-rot: #c33131;
    --bpb-rot-sf: #fdeeee;
    --bpb-gruen: #23854d;
    --bpb-gruen-sf: #eaf6ef;
    --bpb-schatten: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bpb-schatten: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 40px rgba(0, 0, 0, .55); }
}
:root[data-theme="dark"] { --bpb-schatten: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 40px rgba(0, 0, 0, .55); }

/* ── Rahmen unter dem Werkzeug ─────────────────────────────────────── */
#bp-bericht { max-width: 64rem; }
.bpb-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 0 0 .7rem; }
.bpb-leiste-t { display: flex; flex-direction: column; gap: .1rem; }
.bpb-leiste-t b { font-size: 1.05rem; color: var(--fw-text, #111); }
.bpb-leiste-t span { font-size: .78rem; color: var(--fw-muted, #85857f); }
.bpb-leiste-k { display: flex; flex-wrap: wrap; gap: .4rem; }
.bpb-kn { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.3rem; padding: .4rem .8rem; border: 1px solid var(--bp-rand-str, #d4d4d0); border-radius: 9px; background: var(--bp-karte, #fff); color: var(--fw-text, #111); font: 500 .84rem/1 inherit; font-family: inherit; cursor: pointer; }
.bpb-kn:hover { border-color: var(--bp-akzent, #1f6fd1); color: var(--bp-akzent, #1f6fd1); }
.bpb-kn--primaer { background: var(--bp-akzent, #1f6fd1); border-color: var(--bp-akzent, #1f6fd1); color: #fff; }
.bpb-kn--primaer:hover { background: var(--bp-akzent-dk, #1557a8); color: #fff; }
.bpb-kn svg, .bpb-mini svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── Das Blatt ─────────────────────────────────────────────────────── */
.bpb-blatt { position: relative; background: var(--bpb-papier); color: var(--bpb-tinte); border-radius: 14px; box-shadow: var(--bpb-schatten); border: 1px solid rgba(16, 24, 40, .06);
    padding: clamp(1.1rem, 3.4vw, 2.6rem) clamp(1rem, 3.6vw, 2.8rem) clamp(1rem, 2.6vw, 2rem); font-size: .9rem; line-height: 1.5; overflow: hidden; }
.bpb-blatt::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--bpb-akzent), #5aa6ee 60%, #9fd0f5); }
.bpb-blatt svg { font-family: Inter, Arial, Helvetica, sans-serif; }

/* Kopf */
.bpb-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; padding-bottom: .9rem; border-bottom: 2px solid var(--bpb-tinte); }
.bpb-kopf-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.bpb-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bpb-akzent); }
.bpb-titel, .bpb-bv { font-family: inherit; color: var(--bpb-tinte); background: transparent; border: 1px solid transparent; border-radius: 7px; padding: .1rem .35rem; margin-left: -.4rem; width: 100%; max-width: 36rem; }
.bpb-titel { font-size: clamp(1.4rem, 3.2vw, 1.95rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.bpb-bv { font-size: .92rem; color: var(--bpb-tinte-2); }
.bpb-bv::placeholder { color: #a3aab4; font-style: italic; }
.bpb-titel:hover, .bpb-bv:hover { border-color: var(--bpb-linie-2); background: #fbfcfd; }
.bpb-titel:focus, .bpb-bv:focus { outline: none; border-color: var(--bpb-akzent); background: #fff; box-shadow: 0 0 0 3px var(--bpb-akzent-sf); }
.bpb-kopf-r { flex: 0 0 auto; text-align: right; font-size: .8rem; color: var(--bpb-tinte-2); line-height: 1.55; }
.bpb-kopf-r b { color: var(--bpb-tinte); }
.bpb-marke { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem; color: var(--bpb-tinte); margin-bottom: .2rem; }
.bpb-marke svg { width: 1.45rem; height: 1.45rem; color: var(--bpb-akzent); }
.bpb-klein { font-size: .76rem; color: var(--bpb-leise); }
/* Stammdaten des Betriebs (30.09.2026) */
.bpb-firma { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: .05rem; margin-bottom: .45rem; color: var(--bpb-tinte-2); }
.bpb-firma-logo { display: block; max-height: 3.4rem; max-width: 13rem; object-fit: contain; margin-bottom: .35rem; }
.bpb-firma-name { font-weight: 700; font-size: .95rem; color: var(--bpb-tinte); }
.bpb-firma-kn, .bpb-sd-leer { font: inherit; font-size: .72rem; color: var(--bpb-akzent); background: none; border: 0; padding: .1rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bpb-sd-leer { margin-top: .3rem; }
.bpb-fuss-firma { color: var(--bpb-tinte-2); font-weight: 600; flex-basis: 100%; }
.bpb-raum { display: flex; flex-wrap: wrap; gap: .3rem 1.8rem; margin: .75rem 0 0; padding: 0; }
.bpb-raum div { display: flex; flex-direction: column; }
.bpb-raum dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bpb-leise); }
.bpb-raum dd { margin: 0; font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; }

/* Kacheln */
.bpb-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.1rem 0 .4rem; }
.bpb-kachel { position: relative; display: flex; flex-direction: column; padding: .75rem .85rem .7rem; border: 1px solid var(--bpb-linie); border-radius: 12px; background: linear-gradient(180deg, #fbfcfd, #f4f6f9); min-width: 0; }
.bpb-kachel-i { position: absolute; top: .65rem; right: .7rem; color: var(--bpb-akzent); opacity: .85; }
.bpb-kachel-i svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bpb-kachel-l { font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: var(--bpb-leise); padding-right: 1.6rem; }
.bpb-kachel strong { font-size: 1.45rem; font-weight: 700; line-height: 1.2; margin: .15rem 0 .1rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bpb-kachel-t { font-size: .74rem; color: var(--bpb-tinte-2); line-height: 1.35; }
.bpb-kachel.ist-warn { background: var(--bpb-warn-sf); border-color: #f1d2ac; }
.bpb-kachel.ist-warn .bpb-kachel-i, .bpb-kachel.ist-warn strong { color: var(--bpb-warn); }
.bpb-kachel.ist-fehler { background: var(--bpb-rot-sf); border-color: #f0c4c4; }
.bpb-kachel.ist-fehler .bpb-kachel-i, .bpb-kachel.ist-fehler strong { color: var(--bpb-rot); }
.bpb-kachel.ist-gut .bpb-kachel-i, .bpb-kachel.ist-gut strong { color: var(--bpb-gruen); }
.bpb-sterne { color: #d69a12; letter-spacing: .06em; }
.bpb-sterne--gross { font-size: 1.05rem; margin-left: .35rem; }

/* 3D-Bilder */
.bpb-bilder { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: .7rem; margin: 1.1rem 0 .3rem; }
.bpb-bilder-klein { display: grid; grid-template-rows: 1fr 1fr; gap: .7rem; }
.bpb-bild { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #e9eef4, #f7f8fa); border: 1px solid var(--bpb-linie); display: flex; flex-direction: column; }
.bpb-bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .3s; }
.bpb-bild--haupt img, .bpb-bild--haupt .bpb-bild-platz { flex: 1 1 auto; min-height: 0; height: 100%; aspect-ratio: auto; }
.bpb-bild--haupt .bpb-bild-platz { min-height: 14rem; }
.bpb-bild.ist-alt img { opacity: .55; }
.bpb-bild.ist-alt::after { content: 'wird aktualisiert …'; position: absolute; left: 50%; top: 42%; transform: translateX(-50%); padding: .3rem .7rem; border-radius: 2rem; background: rgba(27, 31, 36, .72); color: #fff; font-size: .74rem; }
.bpb-bild-platz { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: #8b95a3; }
.bpb-bild-platz svg { width: 2.2rem; height: 2.2rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; animation: bpb-puls 1.6s ease-in-out infinite; }
.bpb-bild-platz em { font-style: normal; font-size: .78rem; }
@keyframes bpb-puls { 50% { opacity: .35; } }
.bpb-bild figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .6rem; font-size: .74rem; color: var(--bpb-tinte-2); background: #fff; border-top: 1px solid var(--bpb-linie); margin-top: auto; }
.bpb-mini { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .45rem; border: 1px solid var(--bpb-linie-2); border-radius: 6px; background: #fff; color: var(--bpb-tinte-2); font: 500 .7rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.bpb-mini:hover { color: var(--bpb-akzent); border-color: var(--bpb-akzent); }
.bpb-mini svg { width: .85rem; height: .85rem; }

/* Abschnitte */
.bpb-sek { margin-top: 1.9rem; }
.bpb-sek-kopf { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .4rem; margin-bottom: .8rem; border-bottom: 1px solid var(--bpb-linie-2); }
.bpb-nr { flex: 0 0 auto; align-self: center; display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--bpb-tinte); color: #fff; font-size: .78rem; font-weight: 700; }
.bpb-sek-kopf h2 { margin: 0; font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
.bpb-sek-unter { margin-left: auto; font-size: .78rem; color: var(--bpb-leise); text-align: right; }
.bpb-h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bpb-tinte-2); margin: 1.3rem 0 .5rem; }
.bpb-h3:first-child { margin-top: .2rem; }

/* Pläne */
.bpb-plan { margin: 0 0 .4rem; }
.bpb-plan > svg { display: block; width: 100%; height: auto; max-height: 78vh; margin: 0 auto; background: #fff; }
.bpb-plan--grundriss > svg { max-width: 40rem; }
.bpb-plan--elektro > svg { max-width: 38rem; }
.bpb-plan figcaption, .bpb-abw figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; font-size: .76rem; color: var(--bpb-tinte-2); margin-top: .35rem; }
.bpb-plan { padding: .5rem; border: 1px solid var(--bpb-linie); border-radius: 12px; }

/* Tabellen */
.bpb-tab-huelle { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 .4rem; }
.bpb-tab { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.bpb-tab th { text-align: left; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bpb-leise); padding: .4rem .5rem; border-bottom: 1.5px solid var(--bpb-tinte); white-space: nowrap; }
.bpb-tab td { padding: .42rem .5rem; border-bottom: 1px solid var(--bpb-linie); vertical-align: top; }
.bpb-tab tbody tr:nth-child(even) td { background: #fafbfc; }
.bpb-tab td small { display: block; font-size: .72rem; color: var(--bpb-leise); margin-top: .1rem; }
.bpb-tab .bpb-c-zahl { text-align: right; white-space: nowrap; }
.bpb-tab .bpb-c-mitte { text-align: center; }
.bpb-tab .bpb-c-fett { font-weight: 700; }
.bpb-tab .bpb-c-leise { color: var(--bpb-leise); font-size: .74rem; }
.bpb-tab .bpb-c-pos { width: 2.4rem; }
.bpb-tab .bpb-c-obj { white-space: nowrap; }
.bpb-tab .bpb-c-obj > * { vertical-align: middle; }
.bpb-tab .bpb-c-hin { white-space: nowrap; }
.bpb-tab tr.ist-warn td { background: var(--bpb-warn-sf); }
.bpb-tab tr.bpb-gruppe td { background: var(--bpb-flaeche) !important; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bpb-tinte-2); padding-top: .5rem; }
.bpb-oi { display: inline-block; width: 1.5rem; height: 1.5rem; margin-right: .45rem; color: var(--bpb-tinte); }
.bpb-oi svg { width: 100%; height: 100%; }
.bpb-posnr { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; border: 1.5px solid var(--bpb-tinte); border-radius: 50%; font-weight: 700; font-size: .74rem; }
.bpb-ref { display: inline-block; padding: .05rem .35rem; border-radius: 5px; background: var(--bpb-akzent-sf); color: var(--bpb-akzent); font-size: .7rem; font-weight: 700; text-decoration: none; }
.bpb-ref--rot { background: var(--bpb-rot-sf); color: var(--bpb-rot); }
.bpb-chip { display: inline-block; padding: .08rem .45rem; border-radius: 1rem; background: var(--bpb-flaeche); border: 1px solid var(--bpb-linie); font-size: .72rem; color: var(--bpb-tinte-2); white-space: nowrap; }
.bpb-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0 .6rem; }
.bpb-warn-t { color: var(--bpb-warn); font-size: .76rem; }
.bpb-haken { color: var(--bpb-gruen); font-weight: 700; }
.bpb-fehlt { color: #b0b6bf; }

/* Spalten */
.bpb-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.8rem; }
.bpb-spalten--abd { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.bpb-block .bpb-h3 { display: flex; align-items: center; }

/* Balken */
.bpb-balken { position: relative; height: 1.4rem; border-radius: .7rem; background: #edf0f3; overflow: hidden; margin: .2rem 0 .35rem; }
.bpb-balken span { display: block; height: 100%; border-radius: .7rem; background: linear-gradient(90deg, #f5c542, #f0a818); }
.bpb-balken em { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; font-size: .78rem; }
.bpb-klassenbalken { display: flex; height: 1.6rem; border-radius: .5rem; overflow: hidden; margin: .1rem 0 .6rem; border: 1px solid var(--bpb-linie-2); }
.bpb-klassenbalken span { display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; min-width: 2px; }
.bpb-k-0 { background: #eef1f4; color: #5b6573; }
.bpb-k-1 { background: #9cc6f2; color: #0e3a78; }
.bpb-k-2 { background: #2f6fcf; color: #fff; }
.bpb-k-3 { background: #173f86; color: #fff; }
.bpb-tab .bpb-c-kl { white-space: nowrap; width: 4.2rem; }
.bpb-tab--material td:first-child { width: 36%; }
.bpb-klasse { display: inline-block; padding: .1rem .45rem; border-radius: 5px; font-weight: 700; font-size: .74rem; }

/* Meldungen */
.bpb-meldungen { list-style: none; margin: .3rem 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.bpb-meldung { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; padding: .45rem .6rem; border-radius: 9px; background: var(--bpb-flaeche); line-height: 1.45; }
.bpb-meldung-z { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; margin-top: .05rem; border-radius: 50%; font-size: .72rem; font-weight: 800; color: #fff; background: #6f8fb8; }
.bpb-meldung.ist-warn { background: var(--bpb-warn-sf); }
.bpb-meldung.ist-warn .bpb-meldung-z { background: var(--bpb-warn); }
.bpb-meldung.ist-fehler { background: var(--bpb-rot-sf); }
.bpb-meldung.ist-fehler .bpb-meldung-z { background: var(--bpb-rot); }
.bpb-meldungen--leise .bpb-meldung { background: transparent; padding: .15rem 0; color: var(--bpb-tinte-2); }
.bpb-gut { display: flex; align-items: center; gap: .5rem; color: var(--bpb-gruen); font-weight: 600; font-size: .85rem; margin: .2rem 0 .5rem; }
.bpb-gut svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bpb-hinweise { list-style: none; margin: .3rem 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; }
.bpb-hinweise li { display: flex; gap: .6rem; align-items: flex-start; }
.bpb-hinweise em { color: var(--bpb-leise); font-style: normal; white-space: nowrap; }
.bpb-hnr { flex: 0 0 2.1rem; font-weight: 700; color: var(--bpb-akzent); }
.bpb-haftung { margin-top: 1.2rem; padding: .7rem .9rem; border-left: 3px solid var(--bpb-tinte); background: var(--bpb-flaeche); border-radius: 0 9px 9px 0; font-size: .78rem; color: var(--bpb-tinte-2); }

/* Fliesen */
.bpb-belag { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; margin: 0 0 .8rem; }
.bpb-belag div { padding: .5rem .7rem; border-radius: 9px; background: var(--bpb-flaeche); }
.bpb-belag dt { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bpb-leise); }
.bpb-belag dd { margin: 0; font-weight: 600; font-size: .86rem; }
.bpb-tab--summen { max-width: 36rem; }
.bpb-abws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; }
.bpb-abw { margin: 0; padding: .55rem .6rem .3rem; border: 1px solid var(--bpb-linie); border-radius: 12px; break-inside: avoid; }
.bpb-abw figcaption { margin: 0 0 .25rem; flex-wrap: wrap; gap: .1rem .6rem; }
.bpb-abw figcaption b { color: var(--bpb-tinte); font-size: .86rem; }
.bpb-abw > svg { display: block; width: 100%; height: auto; max-height: 23rem; }
.bpb-legende-abw { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: -.1rem 0 .6rem; }
.bpb-legende-abw span { display: inline-block; width: .85rem; height: .85rem; border-radius: 2px; border: 1px solid #8d8a84; vertical-align: -2px; }
.bpb-legende-abw .l-ganz { background: #f1f0ec; }
.bpb-legende-abw .l-schnitt { background: #d9d7d2; }
.bpb-legende-abw .l-obj { background: #fff; border-color: #1b1f24; border-radius: 3px; }
.bpb-legende-abw .l-el { background: radial-gradient(circle, #1b1f24 0 28%, #fff 30%); border-color: #1b1f24; border-radius: 50%; }
.bpb-abd-block { margin-top: .4rem; }
.bpb-plan--abd > svg { max-height: 22rem; }

/* Trockenbau */
.bpb-tb-wand + .bpb-tb-wand { margin-top: 1.2rem; padding-top: .2rem; border-top: 1px dashed var(--bpb-linie-2); }
.bpb-system { margin: 0 0 .35rem; font-weight: 600; }

/* Fuß */
.bpb-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin-top: 2rem; padding-top: .7rem; border-top: 1px solid var(--bpb-linie-2); font-size: .72rem; color: var(--bpb-leise); }

/* ── Handy ─────────────────────────────────────────────────────────── */
@media (max-width: 44rem) {
    .bpb-leiste-k { width: 100%; }
    .bpb-leiste-k .bpb-kn { flex: 1 1 auto; justify-content: center; }
    .bpb-kopf { flex-direction: column; gap: .5rem; }
    .bpb-kopf-r { text-align: left; }
    .bpb-firma { align-items: flex-start; }
    .bpb-bilder { grid-template-columns: 1fr; }
    .bpb-bilder-klein { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .bpb-spalten, .bpb-spalten--abd, .bpb-belag { grid-template-columns: 1fr; }
    .bpb-abws { grid-template-columns: 1fr; }
    .bpb-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bpb-kachel strong { font-size: 1.25rem; }
    .bpb-sek-kopf { flex-wrap: wrap; }
    .bpb-sek-unter { flex-basis: 100%; margin-left: 2.15rem; text-align: left; }
    .bpb-tab { font-size: .78rem; }
    .bpb-plan { padding: .2rem; }
    .bpb-hinweise em { white-space: normal; }
    .bpb-bild figcaption { font-size: .68rem; padding: .3rem .45rem; }
    .bpb-bild--klein .bpb-mini span { display: none; }
    /* breite Tabellen als Karten */
    .bpb-tab--karten thead { display: none; }
    .bpb-tab--karten, .bpb-tab--karten tbody { display: block; }
    .bpb-tab--karten tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .5rem .1rem; border-bottom: 1px solid var(--bpb-linie); }
    .bpb-tab--karten tbody tr:nth-child(even) td { background: transparent; }
    .bpb-tab--karten td { display: block; padding: 0; border: 0; white-space: normal !important; text-align: left !important; }
    .bpb-tab--karten td:first-child { grid-column: 1 / -1; font-weight: 600; }
    .bpb-tab--karten td[data-l]:not(:first-child)::before { content: attr(data-l) ': '; color: var(--bpb-leise); font-size: .7rem; }
    .bpb-tab--karten td:empty { display: none; }
    .bpb-tab--karten tr.bpb-gruppe { display: block; padding: 0; }
    .bpb-tab--karten tr.bpb-gruppe td { padding: .4rem .5rem; }
    .bpb-tab--objekte tr { grid-template-columns: 2rem minmax(0, 1fr); }
    .bpb-tab--objekte td:first-child { grid-column: 1; grid-row: 1 / span 6; }
    .bpb-tab--objekte td:not(:first-child) { grid-column: 2; }
    .bpb-tab--objekte td.bpb-c-obj { font-weight: 600; }
    .bpb-tab--objekte td.bpb-c-obj::before { display: none; }
    .bpb-tab--el tr { grid-template-columns: 2.2rem minmax(0, 1fr); }
    .bpb-tab--el td:first-child { grid-column: 1; grid-row: 1 / span 2; }
    .bpb-tab--el td:not(:first-child) { grid-column: 2; }
    .bpb-tab--el td::before, .bpb-tab--el td.bpb-c-obj::before { display: none; }
    .bpb-tab--sk tr { grid-template-columns: 2.2rem minmax(0, 1fr); }
    .bpb-tab--sk td:first-child { grid-column: 1; grid-row: 1 / span 3; }
    .bpb-tab--sk td:not(:first-child) { grid-column: 2; }
}

/* ── Druck: genau das Blatt, A4 hoch ───────────────────────────────── */
@media print {
    @page { size: A4 portrait; margin: 14mm 12mm 15mm;
        @bottom-left { content: "fachwerte.de/tools/badplaner"; font: 7.5pt Inter, Arial, sans-serif; color: #666; }
        @bottom-right { content: "Seite " counter(page) " von " counter(pages); font: 7.5pt Inter, Arial, sans-serif; color: #666; }
        @top-left { font: 7.5pt Inter, Arial, sans-serif; color: #666; }
        @top-right { font: 7.5pt Inter, Arial, sans-serif; color: #666; }
    }
    @page :first { @top-left { content: none; } @top-right { content: none; } }
    html, body { background: #fff !important; }
    body > *:not(main), main > *:not(#bp-bericht) { display: none !important; }
    main { padding: 0 !important; margin: 0 !important; }
    #bp-bericht { display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; animation: none !important; box-shadow: none !important; }
    .bpb-nurschirm { display: none !important; }
    .bpb-blatt { box-shadow: none; border: 0; border-radius: 0; padding: 0; font-size: 9pt; overflow: visible; color: #000;
        -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .bpb-blatt::before { display: none; }
    .bpb-kopf { border-bottom-width: 1.5pt; padding-bottom: 3mm; }
    .bpb-titel { font-size: 18pt; }
    .bpb-bv { font-size: 10pt; }
    .bpb-bv.ist-leer { display: none; }
    .bpb-titel, .bpb-bv { border: 0 !important; box-shadow: none !important; padding: 0; margin: 0; }
    .bpb-kopf-r { font-size: 8pt; }
    .bpb-firma-logo { max-height: 16mm; max-width: 55mm; }
    .bpb-firma-name { font-size: 10pt; }
    .bpb-raum { margin-top: 2.5mm; }
    .bpb-raum dd { font-size: 10pt; }
    .bpb-kacheln { grid-template-columns: repeat(3, 1fr); gap: 2mm; margin: 4mm 0 2mm; }
    .bpb-kachel { padding: 2mm 2.6mm; background: #fff; border-color: #bbb; break-inside: avoid; }
    .bpb-kachel strong { font-size: 14pt; }
    .bpb-kachel-t, .bpb-kachel-l { font-size: 7pt; }
    .bpb-bilder { grid-template-columns: 1fr; margin: 4mm 0 0; gap: 3mm; break-inside: avoid; }
    .bpb-bilder-klein { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 3mm; }
    .bpb-bild--haupt img { aspect-ratio: 16 / 10; height: auto; }
    .bpb-bild { border-radius: 2mm; border-color: #ccc; }
    .bpb-bild figcaption { font-size: 7.5pt; padding: .8mm 2mm; }
    .bpb-bild.ist-alt img { opacity: 1; }
    .bpb-bild.ist-alt::after, .bpb-bild-platz { display: none; }
    .bpb-sek { margin-top: 6mm; }
    .bpb-sek--seite { break-before: page; margin-top: 0; }
    .bpb-sek-kopf { margin-bottom: 3mm; padding-bottom: 1.5mm; border-bottom-color: #000; break-after: avoid; }
    .bpb-sek-kopf h2 { font-size: 13pt; }
    .bpb-nr { background: #000; }
    .bpb-h3 { font-size: 8pt; margin: 4.5mm 0 1.8mm; color: #000; break-after: avoid; }
    .bpb-plan { border: 0; padding: 0; break-inside: avoid; }
    .bpb-plan svg { width: auto !important; height: auto; max-width: 100%; max-height: none; }
    .bpb-plan--abd svg { max-height: 95mm; }
    .bpb-plan figcaption, .bpb-abw figcaption { font-size: 7.5pt; color: #222; }
    .bpb-tab-huelle { overflow: visible; }
    .bpb-tab { font-size: 8pt; }
    .bpb-tab th { font-size: 6.5pt; color: #333; padding: 1mm 1.2mm; border-bottom-color: #000; }
    .bpb-tab td { padding: 1mm 1.2mm; border-bottom-color: #ccc; }
    .bpb-tab tbody tr:nth-child(even) td { background: #fff; }
    .bpb-tab tr { break-inside: avoid; }
    .bpb-tab thead { display: table-header-group; }
    .bpb-oi { width: 5mm; height: 5mm; margin-right: 1.5mm; }
    .bpb-tab tr.ist-warn td { background: #fff; }
    .bpb-tab tr.bpb-gruppe td { background: #eee !important; }
    .bpb-ref { background: #fff; border: .6pt solid #000; color: #000; }
    .bpb-sterne { color: #000; }
    .bpb-abws { grid-template-columns: 1fr; gap: 4mm; }
    .bpb-abw { border-color: #bbb; border-radius: 2mm; padding: 2mm; break-inside: avoid; }
    .bpb-abw svg { max-height: 100mm; }
    .bpb-abw--boden svg { max-height: 115mm; }
    .bpb-umbruch-vor { break-before: page; margin-top: 0; }
    .bpb-meldung { font-size: 8pt; padding: 1.2mm 2mm; break-inside: avoid; background: #fff; border: .5pt solid #ccc; }
    .bpb-meldung.ist-warn, .bpb-meldung.ist-fehler { background: #fff; border-color: #888; }
    .bpb-meldung-z { width: 4mm; height: 4mm; font-size: 6.5pt; }
    .bpb-meldung.ist-fehler .bpb-meldung-z { background: #000; }
    .bpb-meldung.ist-warn .bpb-meldung-z { background: #555; }
    .bpb-meldungen--leise .bpb-meldung { border: 0; }
    .bpb-hinweise { font-size: 8pt; }
    .bpb-hinweise li { break-inside: avoid; }
    .bpb-haftung { font-size: 7.5pt; background: #fff; border-left-color: #000; break-inside: avoid; }
    .bpb-fuss { font-size: 7pt; margin-top: 6mm; }
    .bpb-klein, .bpb-haken, .bpb-fehlt { font-size: 7.5pt; }
    .bpb-warn-t { color: #000; font-size: 7.5pt; }
    .bpb-haken { color: #000; }
    .bpb-gut { color: #000; font-size: 8.5pt; }
    .bpb-balken { height: 4.5mm; }
    .bpb-balken span { background: #bbb; }
    .bpb-meldungen--leise .bpb-meldung { padding: .3mm 0; }
    .bpb-meldung.ist-info { border: 0; padding: .4mm 0; }
    .bpb-meldungen { gap: 1mm; }
    .bpb-meldungen--spalten { display: block; columns: 2; column-gap: 6mm; }
    .bpb-meldungen--spalten .bpb-meldung { display: flex; margin-bottom: 1mm; font-size: 7.5pt; }
    .bpb-chip { font-size: 7pt; background: #fff; }
    .bpb-belag div { background: #fff; border: .5pt solid #bbb; padding: 1.5mm 2.5mm; }
    .bpb-belag dd { font-size: 9pt; }
    .bpb-kachel.ist-warn, .bpb-kachel.ist-fehler { background: #fff; }
    .bpb-spalten--el { break-inside: avoid; }
    .bpb-el-oben { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 6mm; align-items: start; }
    .bpb-el-oben .bpb-spalten--el { grid-template-columns: 1fr; }
    .bpb-el-oben .bpb-plan figcaption { max-width: 100mm; }
}
