/* Vorbild ist HMS' Excel-Blatt (HMS 01.11.2026: "gerne Tabelle und ziemlich nah am Original"): Arial, Gitter, seine Farben */
:root {
  --text: #000;
  --leise: #555;
  --gitter: #e3e3e3;
  --linie: #bbb;
  --kopf: #c0c0c0;
  --marke: #01468b;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--text); font-size: 13px; line-height: 1.25; }
[hidden] { display: none !important; }
a { color: var(--marke); }
button, select, input { font: inherit; color: inherit; }

.oben { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 6px 12px; border-bottom: 1px solid var(--linie); background: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.logo { height: 22px; width: auto; }
#nav { display: flex; gap: 2px; flex-wrap: wrap; }
#nav a { padding: 5px 10px; color: var(--text); text-decoration: none; border: 1px solid transparent; }
#nav a:hover { background: #f0f0f0; }
#nav a.an { background: var(--kopf); border-color: #888; font-weight: 700; }
.rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
select, input[type=search], button { height: 28px; border: 1px solid #888; background: #fff; padding: 0 8px; border-radius: 0; }
button { cursor: pointer; }
button:hover { background: #f0f0f0; }
button.an { background: var(--kopf); font-weight: 700; }
#artwahl { display: inline-flex; }
#artwahl button + button { border-left: 0; }

main { padding: 10px 12px 24px; overflow-x: auto; }
footer { padding: 6px 12px 14px; color: var(--leise); font-size: 12px; }

table.blatt { border-collapse: collapse; }
table.blatt td { border: 1px solid var(--gitter); padding: 2px 6px; white-space: nowrap; font-size: 12.5px; height: 20px; }
table.blatt td.lang { white-space: normal; min-width: 340px; max-width: 540px; }
table.blatt td.frei { white-space: normal; max-width: 170px; }
table.blatt td[data-re] a { color: inherit; }

table.liste { border-collapse: collapse; }
table.liste th { background: var(--kopf); border: 1px solid #888; padding: 3px 6px; text-align: left; white-space: nowrap; font-size: 12.5px; cursor: default; }
table.liste th[data-sort] { cursor: pointer; }
table.liste td { border: 1px solid var(--gitter); padding: 2px 6px; font-size: 12.5px; vertical-align: top; white-space: nowrap; }
table.liste td.lang { white-space: normal; min-width: 340px; max-width: 540px; }
.zahl { text-align: right !important; font-variant-numeric: tabular-nums; }
tr.vorbereitet td { background: #e2efd9; color: #008000; font-weight: 700; }
tr.summe td { font-weight: 700; border-top: 1px solid #333; }
h2 { font-size: 14px; margin: 16px 0 4px; }
.werkzeug { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
input[type=search] { width: 280px; max-width: 100%; }
.leer { padding: 12px 0; color: var(--leise); }

/* PDF der gezeigten Ansicht */
@page { size: A4 landscape; margin: 8mm 8mm 13mm; }
.druck-titel { display: none; }
body.druck { background: #fff; }
body.druck .druck-titel { display: block; font-size: 12px; margin: 0 0 6px; }
body.druck table { zoom: .62; }
body.druck tr { break-inside: avoid; }
body.druck h2 { break-after: avoid; font-size: 11px; margin: 8px 0 3px; }
body.druck a { color: inherit; text-decoration: none; }
