/* Werkstatt-App – Schadensliste Klassenräume */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/barlow-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format("woff2"); }

:root {
  --bg: #E9ECEA;
  --card: #FFFFFF;
  --ink: #1E2A2F;
  --muted: #5A686E;
  --line: #D5DBD8;
  --line-strong: #B9C2BE;
  --plate: #24343B;
  --plate-ink: #F1F4F2;
  --plate-muted: #A9B8BD;
  --ok: #2E7A4E;
  --ok-soft: #E3F0E8;
  --warn: #E3B321;
  --warn-ink: #5A4400;
  --danger: #B8321F;
  --danger-soft: #F8E5E1;
  --focus: #1E6FD9;
  --shadow: 0 1px 2px rgba(30, 42, 47, .08), 0 2px 8px rgba(30, 42, 47, .05);
  --radius: 10px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12191C;
    --card: #1B2529;
    --ink: #E4EAE7;
    --muted: #9AA9AE;
    --line: #2C393E;
    --line-strong: #3E4E54;
    --plate: #0C1316;
    --plate-ink: #EEF2F0;
    --plate-muted: #93A4AA;
    --ok: #53B27D;
    --ok-soft: #1B3326;
    --warn: #E3B321;
    --warn-ink: #F4D77A;
    --danger: #E2654F;
    --danger-soft: #3A1E19;
    --focus: #6AA8FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: dark) {
  .room-tag, .plate { box-shadow: inset 0 0 0 1px var(--line-strong); }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.muted { color: var(--muted); }
.print-only { display: none; }
.nowrap { white-space: nowrap; }

/* ---------- Kopfzeile ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--plate);
  color: var(--plate-ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 6px;
  background: repeating-linear-gradient(-45deg, var(--warn) 0 6px, #1E2A2F 6px 12px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-text strong { font-family: var(--font-cond); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.brand-text small { color: var(--plate-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topnav { display: flex; align-items: center; gap: 4px; }
.topnav > a {
  font-family: var(--font-cond); font-weight: 600; font-size: 17px; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; padding: 8px 10px; border-radius: 6px; color: var(--plate-muted);
}
.topnav > a[aria-current="page"] { color: var(--plate-ink); background: rgba(255, 255, 255, .08); }
.topnav > a:hover { color: var(--plate-ink); }

.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; padding: 4px; border-radius: 50%; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--warn); color: #1E2A2F; font-family: var(--font-cond); font-weight: 700; font-size: 19px;
}
.usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  padding: 14px 16px; border: 1px solid var(--line);
}
.usermenu-panel p { margin: 0 0 12px; overflow-wrap: anywhere; }
.usermenu-panel small { color: var(--muted); }

/* ---------- Layout ---------- */

.board { max-width: 1120px; margin: 0 auto; padding: 0 16px 32px; }
.narrow { max-width: 520px; margin: 0 auto; padding: 32px 16px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 0 16px;
}

.toolbar {
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.board .toolbar { padding: 14px 0; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.section-title {
  font-family: var(--font-cond); font-weight: 700; font-size: 21px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.section-title--page { font-size: 26px; margin: 8px 0 14px; }
.section-title .count {
  font-family: var(--font); font-weight: 500; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--muted);
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 16px; border-radius: 8px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.1;
}
.btn:hover { background: rgba(127, 127, 127, .1); }
.btn-primary { background: var(--ink); color: var(--card); }
.btn-primary:hover { background: var(--ink); opacity: .9; }
.btn-ghost { border-color: var(--line-strong); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-large { min-height: 52px; font-size: 18px; width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }

.btn-plate {
  margin-top: 10px; min-height: 40px; padding: 6px 12px; font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, .35); color: var(--plate-ink); background: transparent;
}
.btn-plate:hover { background: rgba(255, 255, 255, .1); }

.btn-icon {
  flex: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: 20px; cursor: pointer;
}
.btn-icon:hover { border-color: var(--line); color: var(--ink); }

.segmented {
  display: inline-flex; background: var(--card); border-radius: 10px; padding: 4px; box-shadow: var(--shadow);
}
.seg {
  min-height: 40px; padding: 6px 16px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  font-weight: 600; color: var(--muted);
}
.seg[aria-pressed="true"] { background: var(--ink); color: var(--card); }

@media (max-width: 520px) {
  .segmented { width: 100%; }
  .seg { flex: 1; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn-primary { flex: 1 1 100%; min-height: 50px; font-size: 18px; }
  .toolbar-actions .btn-ghost { flex: 1; }
  .brand-text small { display: none; }
}

/* ---------- Überblick ---------- */

.summary {
  display: grid; gap: 12px 24px; align-items: center;
  grid-template-columns: auto 1fr;
  grid-template-areas: "main stock" "bar bar";
}
.summary-main { grid-area: main; }
.summary-count { margin: 0; font-family: var(--font-cond); font-weight: 700; line-height: .95; }
.summary-count .num { font-size: 56px; }
.summary-count .of { font-size: 28px; color: var(--muted); margin-left: 4px; }
.summary-label { margin: 2px 0 0; color: var(--muted); }
.summary-label strong { color: var(--ink); }
.summary-stock { grid-area: stock; display: flex; justify-content: flex-end; gap: 20px; margin: 0; }
.summary-stock div { text-align: right; }
.summary-stock dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.summary-stock dd { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 30px; line-height: 1; }

.progress {
  grid-area: bar; width: 100%; height: 14px; border: 0; border-radius: 7px; overflow: hidden;
  background: var(--line); appearance: none; -webkit-appearance: none;
}
.progress::-webkit-progress-bar { background: var(--line); border-radius: 7px; }
.progress::-webkit-progress-value { background: var(--ok); border-radius: 7px; }
.progress::-moz-progress-bar { background: var(--ok); border-radius: 7px; }

@media (max-width: 520px) {
  .summary { grid-template-columns: 1fr; grid-template-areas: "main" "bar" "stock"; }
  .summary-stock { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
  .summary-stock div { text-align: left; }
}

/* ---------- Punkte ---------- */

.tasklist { list-style: none; margin: 0; padding: 0; }

.task {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 4px 10px 8px;
  border-top: 1px solid var(--line);
}
.tasklist .task:first-child { border-top: 0; }

.task.prio-bald, .task.prio-dringend { padding-left: 20px; }
.task.prio-bald::before, .task.prio-dringend::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 8px; border-radius: 2px;
}
.task.prio-bald::before { background: repeating-linear-gradient(-45deg, var(--warn) 0 5px, #1E2A2F 5px 10px); }
.task.prio-dringend::before { background: repeating-linear-gradient(-45deg, var(--danger) 0 5px, #FFFFFF 5px 10px); }
.task.is-done::before { opacity: .3; }

.check {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 28px; height: 28px; margin: 0; margin-top: 1px;
  border: 2.5px solid var(--ink); border-radius: 6px; background: var(--card);
  display: grid; place-items: center; cursor: pointer;
}
.check::after {
  content: ""; width: 14px; height: 8px; margin-top: -3px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); opacity: 0;
}
.check:checked { background: var(--ok); border-color: var(--ok); }
.check:checked::after { opacity: 1; }
.check:disabled { opacity: .6; cursor: progress; }

.task-body { flex: 1; min-width: 0; }
.task-text { display: block; cursor: pointer; overflow-wrap: anywhere; }
.task.is-done .task-text { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.hint { margin: 4px 0 0; font-size: 15px; color: var(--muted); font-style: italic; }
.hint span {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid currentColor; font-style: normal; font-weight: 700; font-size: 12px; margin-right: 2px;
}
.done-info { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ok); }

.prio-tag, .room-tag {
  display: inline-block; vertical-align: 2px; margin-right: 6px;
  font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 4px; line-height: 1.35;
}
.prio-tag--bald { background: var(--warn); color: #1E2A2F; }
.prio-tag--dringend { background: var(--danger); color: #fff; }
.room-tag {
  float: left; margin: 0 10px 2px 0; font-size: 20px; padding: 2px 10px;
  background: var(--plate); color: var(--plate-ink); text-decoration: none; letter-spacing: .03em;
  min-width: 52px; text-align: center;
}
.room-tag:hover { background: var(--ink); }

/* ---------- Klassen ---------- */

.room {
  display: grid; grid-template-columns: 190px 1fr; gap: 0; padding: 0; overflow: hidden;
  scroll-margin-top: 76px;
}
.plate {
  position: relative;
  background: var(--plate); color: var(--plate-ink);
  padding: 20px 18px 16px;
  /* Schrauben der Türplakette */
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .28) 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, rgba(255, 255, 255, .28) 0 3px, transparent 3.5px);
}
.plate-name {
  margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 64px; line-height: .9; letter-spacing: .01em;
}
.plate-stock { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--plate-muted); font-size: 15px; }
.plate-stock b { font-family: var(--font-cond); font-size: 22px; color: var(--plate-ink); margin-right: 2px; }
.plate-extra { margin: 4px 0 0; color: var(--plate-muted); font-size: 14px; }
.plate-open {
  margin: 12px 0 0; display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: var(--warn); color: #1E2A2F; font-weight: 600; font-size: 15px;
}
.plate-open b { font-family: var(--font-cond); font-size: 19px; }
.room.is-done .plate-open { background: var(--ok); color: #fff; }

.room-body { padding: 12px 16px 16px; min-width: 0; }
.cat-group + .cat-group { margin-top: 8px; }
.cat-title {
  margin: 6px 0 2px; font-family: var(--font-cond); font-weight: 600; font-size: 15px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.room-info {
  margin: 12px 0 0; font-size: 15px; color: var(--muted);
  padding: 8px 12px; border-left: 3px solid var(--line-strong); background: rgba(127, 127, 127, .06); border-radius: 0 6px 6px 0;
}

.note-wrap { margin-top: 14px; }
.note-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.note {
  width: 100%; min-height: 48px; resize: vertical; padding: 10px 12px; border-radius: 8px;
  border: 1.5px solid var(--line-strong); background: var(--card); font-size: 16px;
}
.note:focus { border-color: var(--focus); }
.note-meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.note-meta.saved { color: var(--ok); font-weight: 600; }
.note-meta.error { color: var(--danger); font-weight: 600; }

@media (max-width: 700px) {
  .room { grid-template-columns: 1fr; }
  .plate {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "name stock" "name open" "extra extra" "btn btn";
    column-gap: 16px; align-items: center; padding: 16px;
  }
  .plate-name { grid-area: name; font-size: 58px; }
  .plate-stock { grid-area: stock; margin: 0; align-self: end; }
  .plate-open { grid-area: open; margin: 6px 0 0; justify-self: start; align-self: start; }
  .plate-extra { grid-area: extra; }
  .plate .btn-plate { grid-area: btn; justify-self: start; }
  .room-body { padding: 8px 12px 14px; }
}

/* Klassen ohne Schäden */
.clean { margin-top: 24px; }
.clean-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.room-compact {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  scroll-margin-top: 76px; display: flex; flex-direction: column;
}
.room-compact > .room-info, .room-compact > .note-wrap { margin: 10px 12px 12px; }
.room-compact > .room-info + .note-wrap { margin-top: 0; }
.plate--small { padding: 14px 14px 12px; }
.plate--small .plate-name { font-size: 40px; }
.plate--small .plate-stock { margin-top: 6px; }
.plate--small .btn-plate { margin-top: 8px; min-height: 36px; }
.note-wrap summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 15px; padding: 6px 0; }

/* ---------- Filter „Nur offene“ ---------- */

body.only-open .task.is-done,
body.only-open .cat-group.is-done,
body.only-open .prio.is-done { display: none; }

/* ---------- Dialoge & Formulare ---------- */

.dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 0; border-radius: 14px; padding: 0; background: var(--card); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.dialog::backdrop { background: rgba(18, 25, 28, .55); }
.form { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.form h2 { margin: 0; font-family: var(--font-cond); font-size: 26px; text-transform: uppercase; letter-spacing: .04em; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="number"], .form select, .form textarea {
  min-height: 46px; padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--line-strong);
  background: var(--card); font-weight: 400; width: 100%;
}
.form textarea { resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.form legend { font-weight: 600; margin-bottom: 6px; padding: 0; width: 100%; }
.form .radio {
  flex-direction: row; align-items: center; gap: 8px; font-weight: 500;
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; min-height: 44px; cursor: pointer;
}
.form .radio:has(input:checked) { border-color: var(--ink); background: rgba(127, 127, 127, .1); }
.form .radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.form-actions .spacer { flex: 1; }
.form-error { margin: 0; color: var(--danger); font-weight: 600; }
.devlogin { margin-top: 24px; padding: 16px 0 0; border-top: 1px dashed var(--line-strong); }
.devlogin h2 { font-size: 20px; }

/* ---------- Login & Meldungen ---------- */

.message h1 { font-family: var(--font-cond); font-size: 30px; text-transform: uppercase; letter-spacing: .03em; margin: 8px 0; line-height: 1.1; }
.brand-line { margin: 0; font-family: var(--font-cond); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.login-plate {
  display: inline-flex; flex-direction: column; padding: 16px 22px; border-radius: 8px; margin-bottom: 8px;
  background: var(--plate); color: var(--plate-ink); font-family: var(--font-cond); font-weight: 700; font-size: 38px;
  line-height: .9; text-transform: uppercase; letter-spacing: .03em;
  border-left: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--warn) 0 6px, #1E2A2F 6px 12px) 10;
}
.notice { padding: 10px 12px; border-radius: 8px; background: var(--ok-soft); color: var(--ink); }
.tech pre { white-space: pre-wrap; font-size: 13px; background: rgba(127, 127, 127, .1); padding: 10px; border-radius: 6px; }
code { font-size: .9em; }

/* ---------- Verlauf ---------- */

.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--muted); }
.table td { min-width: 90px; }
.ev { display: inline-block; padding: 1px 8px; border-radius: 4px; background: rgba(127, 127, 127, .14); font-weight: 600; white-space: nowrap; }
.ev-task_done { background: var(--ok-soft); color: var(--ok); }
.ev-task_delete, .ev-room_delete, .ev-login_denied { background: var(--danger-soft); color: var(--danger); }

/* ---------- Statuszeile & Toast ---------- */

.syncline { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100vw - 32px); z-index: 50;
  background: var(--ink); color: var(--card); padding: 12px 18px; border-radius: 10px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.toast.error { background: var(--danger); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .task { transition: background-color .3s; }
  .task.flash { background: var(--ok-soft); }
}

/* ---------- Druck ---------- */

@media print {
  @page { margin: 12mm; }
  :root { --ink: #000; --muted: #333; --line: #999; --card: #fff; --bg: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .topbar, .toolbar, .no-print, .dialog, .toast, .syncline, .note-label, .note-meta, .btn-icon { display: none !important; }
  .print-only { display: block; }
  .print-head h1 { font-family: var(--font-cond); font-size: 20pt; margin: 0; text-transform: uppercase; }
  .print-head p { margin: 0 0 8pt; }
  .board { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 1px solid #999; border-radius: 4px; padding: 8pt; margin-bottom: 8pt; }
  .summary { display: flex; gap: 20pt; }
  .summary-count .num { font-size: 26pt; }
  .summary-count .of { font-size: 14pt; }
  .summary-stock dd { font-size: 16pt; }
  .progress { display: none; }
  .room { grid-template-columns: 34mm 1fr; break-inside: avoid; page-break-inside: avoid; border: 1px solid #000; }
  .plate, .room-compact .plate {
    background: #fff !important; color: #000; border-right: 2px solid #000; padding: 8pt;
    display: block;
  }
  .plate-name { font-size: 30pt; }
  .plate-stock, .plate-extra, .plate-stock b { color: #000; }
  .plate-open { background: none !important; color: #000 !important; border: 1px solid #000; padding: 0 4pt; }
  .check { display: none; }
  .printbox {
    display: inline-grid; place-items: center; flex: none; width: 13pt; height: 13pt; border: 1.5pt solid #000; font-weight: 700;
  }
  .task { padding: 3pt 0 3pt 2pt; gap: 6pt; break-inside: avoid; }
  .task.prio-bald, .task.prio-dringend { padding-left: 10pt; }
  .task.prio-bald::before, .task.prio-dringend::before { width: 5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .task.is-done .task-text { text-decoration: line-through; }
  .prio-tag { border: 1px solid #000; background: none !important; color: #000 !important; }
  .room-tag { background: none; color: #000; border: 1.5px solid #000; font-size: 13pt; }
  .clean-grid { grid-template-columns: repeat(4, 1fr); gap: 6pt; }
  .room-compact { border: 1px solid #000; box-shadow: none; break-inside: avoid; }
  .room-compact .plate { border-right: 0; border-bottom: 1px solid #000; }
  .plate--small .plate-name { font-size: 18pt; }
  .note-wrap summary { display: none; }
  .note-wrap details, details.note-wrap { display: block; }
  .note-print { margin: 6pt 0 0; font-size: 10pt; }
  .room-info { background: none; border-left: 2px solid #000; padding: 2pt 6pt; color: #000; }
  .hint, .done-info { font-size: 9.5pt; color: #000; }
  .section-title { font-size: 14pt; margin-bottom: 4pt; }
  body.only-open .task.is-done, body.only-open .cat-group.is-done, body.only-open .prio.is-done { display: flex; }
  body.only-open .cat-group.is-done, body.only-open .prio.is-done { display: block; }
  a { text-decoration: none; }
}
