@charset "UTF-8";
/*
 * FMFlow Akte – druck.css (media="print"). A4 hoch, schwarz-weiß-sicher (SPEC §6).
 * Jahresplan/Wand: Container mit .druck-a3-quer (benannte Seite A3 quer).
 * Kopf/Fuß je Seite: Elemente .druckkopf / .druckfuss (nur im Druck sichtbar, wiederholen sich
 * über position: fixed in Chromium/Edge) – z. B. Anlagennr. und Prüfsumme der Akte.
 * Elemente mit .nicht-drucken entfallen, .nur-druck erscheinen nur hier.
 */

@page { size: A4 portrait; margin: 16mm 14mm 18mm 16mm; }
@page a3quer { size: A3 landscape; margin: 12mm; }
.druck-a3-quer { page: a3quer; }
.druck-seitenumbruch { break-before: page; }
.druck-zusammen { break-inside: avoid; }

:root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --papier: #FFFFFF; --blatt: #FFFFFF; --karton: #F1F1F1; --linie: #9A9A9A; --linie-stark: #6A6A6A;
    --tinte: #000000; --tinte-2: #333333; --tinte-3: #555555;
    --aktenblau: #000000; --auf-aktenblau: #FFFFFF;
    --stop: #000000; --warn: #000000; --ok: #000000;
    --vorschlag: #000000; --vorschlag-grund: #FFFFFF;
    --signalgelb: #BBBBBB; --luecke-streifen: #FFFFFF;
    --stop-grund: #FFFFFF; --warn-grund: #FFFFFF; --ok-grund: #FFFFFF; --blau-grund: #FFFFFF; --karton-hell: #FFFFFF;
    color-scheme: light;
}

html, body { background: #fff !important; color: #000 !important; }
body { font-size: 10pt; line-height: 1.4; }
a { color: #000; text-decoration: none; }

/* Rahmen, Bedienelemente und Hilfen entfallen */
.register, .kopf, .fuss, .sprunglink, .meldungen, .toasts, .ladebalken, .krumen,
.knopf, .knopfreihe, .knopf-plus, .glied__plus, .verweis, .feld__bestaetigen, .seitenkopf__aktionen,
.deckblatt__aktionen, .wiedervorlage__aktionen, .eingangskarte__fuss, .dropzone, .reiter,
dialog, .palette, .nicht-drucken, .muster-inhalt { display: none !important; }
.nur-druck { display: block !important; }

.seite--app { display: block; padding: 0; }
.arbeitsflaeche, .inhalt { display: block; max-width: none; margin: 0; padding: 0; }

.druckkopf, .druckfuss { display: flex !important; justify-content: space-between; gap: 1rem; position: fixed; left: 0; right: 0; font: 7.5pt "Cascadia Mono", Consolas, monospace; color: #333; }
.druckkopf { top: -10mm; border-bottom: .5pt solid #999; padding-bottom: 1.5mm; }
.druckfuss { bottom: -12mm; border-top: .5pt solid #999; padding-top: 1.5mm; }

/* Flächen: keine Schatten, dünne schwarze Linien */
.karte, .blatt, .deckblatt, .reiter__blatt, .eingangskarte, .karteikarte, .wiedervorlage__liste, .fach, .anhang {
    background: #fff !important; border-color: #888 !important; box-shadow: none !important; break-inside: avoid;
}
.deckblatt { margin-top: 0; border: 1pt solid #000 !important; }
.deckblatt::before { display: none; }
.blatt::before, .blatt::after { background: #fff; border-color: #888; box-shadow: none; }
.seitenkopf { border-bottom: 1.5pt solid #000; margin-bottom: 4mm; }

/* Status bleibt über Symbol + Text lesbar */
.stempel { color: #000 !important; border-color: #000 !important; opacity: 1; }
.ampel, .ampel__text { color: #000 !important; }
.ampel__symbol { color: #fff !important; background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ampel--gruen .ampel__symbol, .ampel--offen .ampel__symbol, .ampel--ruhend .ampel__symbol { color: #000 !important; background: none !important; }
.chip { border-color: #666 !important; background: #fff !important; color: #000 !important; }
.chip__marke { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.anlagennr { border-color: #000 !important; box-shadow: none !important; }

/* Lücke: Schraffur als Graustreifen */
.luecke, .luecke-marke, .glied--luecke::after, .glied--luecke::before, .kettenglyphe__glied--luecke,
.feldraster__feld--luecke dd::before, .legende__balken--kuendigung {
    background: repeating-linear-gradient(-45deg, #bbb 0 3px, #fff 3px 6px) !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.kettenglyphe__glied--ok, .kettenglyphe__glied--warn, .kettenglyphe__glied--stop { color: #000 !important; background: #fff !important; border-color: #000 !important; }
.kettenglyphe__glied--stop { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.glied { border-color: #000 !important; background: #fff !important; }

/* SVG-Grafiken */
.plakette__segment { fill: #ddd !important; stroke: #fff !important; }
.plakette__segment--faellig { fill: #000 !important; }
.plakette__monat { fill: #000 !important; }
.plakette__monat--faellig { fill: #fff !important; }
.lebenslinie-rahmen__scroll, .lineal-rahmen { overflow: visible !important; border-color: #888 !important; }
.lebenslinie, .lineal { min-width: 0 !important; }
.lebenslinie__bahn--b { fill: #f4f4f4; }
.lebenslinie__marke--plan, .lebenslinie__marke--offen { fill: #fff !important; stroke: #000 !important; }
.lebenslinie__marke--ohne_befund, .lebenslinie__marke--maengel_behoben, .lebenslinie__marke--stoerung, .lebenslinie__marke--instandsetzung { fill: #000 !important; }
.lebenslinie__marke--maengel { fill: #777 !important; }
.lebenslinie__heute-flagge { fill: #000 !important; }
.lineal__laufzeit { fill: #444 !important; }
.schraffur__a, .schraffur__stop { fill: #999 !important; }
.schraffur__b, .schraffur__grund { fill: #fff !important; }
svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Tabellen über Seiten: Kopf wiederholen, Zeilen nicht zerteilen */
.tabelle-rahmen { overflow: visible; }
.tabelle thead { display: table-header-group; }
.tabelle tr { break-inside: avoid; }
.tabelle th { border-bottom: 1pt solid #000; color: #000; }
.verzeichnis__eintrag { break-inside: avoid; }

/* Formulare im Druck als Werte */
input, select, textarea { border: 0 !important; border-bottom: .5pt solid #000 !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }

/* Links ausschreiben, wo gewünscht */
a.druck-url[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #333; }
