/* BugFix Intern. Aufbau wie das FEZ-Dashboard, Akzentfarbe aus dem BugFix-Logo. */

:root {
  --accent: #c8451c;
  --accent-dark: #a93813;
  --accent-soft: #fdf1ec;
  --navy: #1f3a56;
  --green: #22a447;
  --ink: #1c1f24;
  --muted: #6b7280;
  --line: #e3e6ea;
  --bg: #eef0f3;
  --panel: #ffffff;
  --sidebar: #1f2124;
  --radius: 6px;
  --topbar-h: 58px;
  --sidebar-w: 228px;
  --sidebar-w-collapsed: 64px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: var(--accent); }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.25; }
h2 { margin: 26px 0 10px; font-size: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Rahmen ---------- */

.app-body { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

.sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sidebar);
  color: #fff;
  scrollbar-width: none;
  transition: width .2s ease;
}

.sidebar::-webkit-scrollbar { display: none; }

.sidebar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.sidebar-toggle:hover { border-color: var(--ink); }

.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  color: #e6e7e9;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar nav a:hover { background: rgba(255, 255, 255, .06); }
.sidebar nav a.active { background: var(--accent); color: #fff; }

.nav-icon { display: flex; flex-shrink: 0; width: 18px; height: 18px; }
.icon { display: block; }

.nav-section {
  margin: 14px 0 4px;
  padding: 10px 22px 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8a8f98;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-badge {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.sidebar-foot { margin-top: auto; padding: 18px 22px; color: #8a8f98; font-size: 12px; white-space: nowrap; }

.nav-tip {
  position: fixed;
  z-index: 100;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .12s;
}

.nav-tip.show { opacity: 1; }

@media (min-width: 701px) {
  .sb-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
  .sb-collapsed .sidebar-head { justify-content: center; padding: 0; }
  .sb-collapsed .sidebar nav a { justify-content: center; padding: 14px 0; }
  .sb-collapsed .nav-label { display: none; }
  .sb-collapsed .nav-section { margin: 10px 12px 4px; padding: 0; }
  .sb-collapsed .nav-badge { position: absolute; top: 6px; right: 8px; min-width: 16px; margin: 0; padding: 1px 4px; font-size: 10px; }
  .sb-collapsed .sidebar-foot { display: none; }
}

.app-main { display: flex; flex: 1; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; }

.topbar {
  position: relative;
  z-index: 40;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  height: var(--topbar-h);
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.topbar .clock { color: var(--muted); font-variant-numeric: tabular-nums; }
.topbar .user { white-space: nowrap; }
.logout-form { margin: 0; }
.link-red { padding: 0; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.topbar-logo { display: block; flex-shrink: 0; padding-left: 22px; border-left: 1px solid var(--line); }
.topbar-logo img { display: block; width: auto; height: 40px; }

.env-pill {
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-knopf {
  display: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin-right: auto;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-backdrop { display: none; }

.content { flex: 1; min-height: 0; padding: 22px 24px 40px; overflow-y: auto; }
.content > h1, .page-title { margin-bottom: 16px; font-size: 24px; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .topbar { gap: 14px; padding: 0 14px; }
  .topbar .clock { display: none; }
}

@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .sidebar-toggle { display: none; }
  .menu-offen .sidebar { transform: none; }
  .menu-offen .menu-backdrop { position: fixed; inset: 0; z-index: 50; display: block; background: rgba(0, 0, 0, .45); }
  .menu-knopf { display: flex; }
  .topbar .user, .env-pill { display: none; }
  .topbar-logo { padding-left: 12px; }
  .topbar-logo img { height: 32px; }
  .content { padding: 16px 14px 32px; }
}

/* ---------- Bausteine ---------- */

.panel { margin: 0 0 16px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { margin: 0 0 8px; color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(200, 69, 28, .25);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: #fff; border-color: #cfd4da; box-shadow: none; color: var(--ink); }
.btn.ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.link { padding: 0; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }

.form { display: flex; flex-direction: column; max-width: 620px; }
.form fieldset { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; }
.form.narrow { max-width: none; }

label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 700; }
.form > label:first-of-type, .form fieldset > label:first-of-type { margin-top: 0; }

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #cfd4da;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

input:focus, select:focus, textarea:focus { outline: 2px solid rgba(200, 69, 28, .25); border-color: var(--accent); }
textarea { resize: vertical; }

fieldset.checks { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.checks legend { font-size: 12px; font-weight: 700; }
.checks label, label.check { margin: 4px 0; font-size: 14px; font-weight: 400; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inline { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.flash { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; }
.flash.ok { background: #edf8f0; border: 1px solid #bfe5c9; color: #17692f; }
.flash.err { background: var(--accent-soft); border: 1px solid #f3cdbf; color: var(--accent-dark); }
.flash.warn { background: #fff5e0; border: 1px solid #f5d49a; color: #6b4600; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 14px;
  background: #f7f8fa;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; text-decoration: none; }
td a:hover { text-decoration: underline; }

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.filter label { margin: 0; }
.filter select { width: auto; }
.filter .btn { margin: 0; padding: 9px 14px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.pre { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { margin-bottom: 10px; padding: 14px 20px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { display: block; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile strong { display: block; font-size: 30px; line-height: 1.1; }
.tile span { color: var(--muted); }

/* ---------- Anmeldung und Einrichtung ---------- */

.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 450px; padding: 40px 34px 34px; background: var(--panel); border-radius: 14px; box-shadow: 0 20px 50px rgba(20, 30, 50, .12); }
.auth-logo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 28px; }
.auth-card h1 { margin-bottom: 18px; font-size: 24px; text-align: center; }
.auth-card .panel { margin: 0; padding: 0; background: none; border: 0; }
.auth-card .btn { align-self: stretch; }
.auth-card .env-pill { display: block; width: max-content; margin: 0 auto 14px; }

/* ---------- Arbeitsberichte ---------- */

.nowrap { white-space: nowrap; }
tr.day-head td { background: #f7f8fa; }
.day-details { margin: 2px 0; }
.day-details > summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.day-list { margin: 6px 0; padding-left: 18px; }
.time-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.time-edit > b { flex: 1 1 100%; }
.time-edit label { margin: 0; }
.time-edit input { width: auto; }
.time-edit input[type="number"] { width: 80px; }

.tag { display: inline-block; padding: 1px 6px; background: #fff5e0; border-radius: 8px; color: #6b4600; font-size: 11px; font-weight: 700; }
.input-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.input-row input { flex: 1 1 240px; width: auto; }
.input-row .btn { margin-top: 0; }
.folder-dialog { width: min(640px, calc(100vw - 24px)); padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.folder-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.folder-dialog h2 { margin-top: 0; }
.folder-path { margin: 0 0 10px; font-weight: 700; overflow-wrap: anywhere; }
.folder-list { max-height: 45vh; margin: 10px 0; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.folder-list .muted { margin: 0; padding: 12px; }
.folder-item { display: block; width: 100%; padding: 11px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.folder-item:last-child { border-bottom: 0; }
.folder-item:hover { background: #f7f8fa; }

.logo-preview { display: block; width: auto; max-width: 320px; height: 60px; margin-top: 10px; object-fit: contain; object-position: left; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.signatur-vorschau { width: 100%; height: 190px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

.day-signature { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.day-signature img { width: auto; height: 56px; background: #fff; border-bottom: 1px solid var(--line); }

.day-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.day-aktionen a { font-weight: 700; }
.day-mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.day-mail input { width: 240px; padding: 6px 8px; }
.tag.ok { background: #edf8f0; color: #17692f; }
.tag.err { background: var(--accent-soft); color: var(--accent-dark); }
.pdf-fenster { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; }
.pdf-fenster[open] { display: flex; flex-direction: column; }
.pdf-zu { align-self: flex-end; margin: 8px; }
.pdf-fenster iframe { flex: 1; width: 100%; border: 0; }
.art-bild { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.art-bild-zelle { width: 60px; padding-right: 0; }
.art-bild-gross { display: block; max-width: 220px; max-height: 160px; margin-top: 10px; border-radius: 6px; }
.pdf-inhalt { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; background: #eef0f3; }
.pdf-inhalt .pdf-seite { display: block; max-width: 100%; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }

.day-karte { margin-bottom: 12px; }
.day-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.day-datum { font-size: 16px; }
.day-kopf-rechts { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; font-variant-numeric: tabular-nums; }
.day-kopf-rechts a { font-weight: 700; }
.day-text { margin: 10px 0; }
.day-personen { margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; }
.day-personen li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.day-personen li.muted { display: block; }
.day-dauer { text-align: right; font-variant-numeric: tabular-nums; }
.day-signature { padding: 6px 0; }
.day-mail { margin-top: 6px; }
.day-intern { padding: 8px 10px; background: #f7f8fa; border-left: 3px solid #cfd4da; }
.topbar-logo b { white-space: nowrap; }
@media (max-width: 600px) {
  .day-personen li { grid-template-columns: minmax(0, 1fr) auto; }
  .day-personen li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); }
}

.day-personen li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto minmax(150px, auto); align-items: center; }
.day-verrechnung { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; font-size: 13px; }
.day-verrechnung form { margin: 0; }
.check-zeile { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 400; }
.check-zeile input { width: auto; }
@media (max-width: 600px) {
  .day-personen li { grid-template-columns: minmax(0, 1fr) auto; }
  .day-verrechnung { grid-column: 1 / -1; justify-content: flex-start; }
}

.verrechnung { margin-bottom: 12px; }
.verrechnung-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verrechnung-aktionen { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; margin-top: 8px; }
.grund-form > summary { color: var(--accent-dark); font-size: 13px; font-weight: 700; cursor: pointer; }
.grund-form form { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.grund-form input[name=reason] { flex: 1 1 200px; min-width: 200px; padding: 6px 8px; }
.grund-form .btn { margin-top: 0; }
.grund-feld { display: block; margin: 8px 0; font-size: 13px; }
.day-kunde { margin: 8px 0; padding: 8px 10px; background: var(--accent-soft); border-radius: 6px; font-size: 14px; }
.protokoll { margin-bottom: 12px; }
.protokoll > summary { font-weight: 700; cursor: pointer; }
.protokoll .table-wrap { margin-top: 10px; }

.pruef-form { display: grid !important; gap: 8px; max-width: 480px; padding: 8px 0; }
.pruef-form label { font-size: 13px; font-weight: 600; }
.pruef-form input:not([type=checkbox]), .pruef-form textarea, .pruef-form select { display: block; width: 100%; margin-top: 3px; padding: 6px 8px; font-weight: 400; }
.pruef-form .btn { justify-self: start; margin-top: 0; }
.bericht-mail { margin-bottom: 12px; }
.uebersicht-liste { margin: 14px 0; }
.uebersicht-liste h2 { margin-top: 0; }

.einsatzort { margin: 12px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.einsatzort legend { padding: 0 4px; font-size: 13px; font-weight: 600; }

.need-liste li { grid-template-columns: minmax(0, 1fr) auto auto; }
.need-liste form { margin: 0; }
.woche-filter { align-items: center; }
.woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
.woche-tag { min-height: 180px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.woche-tag.heute { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.woche-tag header { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.woche-tag header a { font-weight: 700; text-decoration: none; }
.woche-tag .muted { margin: 0; font-size: 13px; }
.woche-eintrag { display: block; margin-bottom: 6px; padding: 6px; background: #f7f8fa; border-radius: 6px; color: var(--ink); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.woche-eintrag:hover { background: var(--accent-soft); }
.woche-eintrag span, .woche-eintrag small, .woche-eintrag b { display: block; }
.woche-eintrag b .tag { display: inline; }
.woche-eintrag small { color: var(--muted); }
@media (max-width: 1100px) { .woche { grid-template-columns: repeat(2, minmax(0, 1fr)); } .woche-tag { min-height: 0; } }
@media (max-width: 600px) { .woche { grid-template-columns: minmax(0, 1fr); } }

.pdf-kopf { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 8px; }
.pdf-kopf .btn { margin: 0; }
@media print {
  @page { size: A4; margin: 0; }
  body.pdf-drucken { background: #fff; }
  body.pdf-drucken > *:not(.pdf-druckziel) { display: none !important; }
  body.pdf-drucken .pdf-druckziel { position: static !important; display: block !important; width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important; margin: 0; padding: 0; overflow: visible !important; border: 0; box-shadow: none; }
  body.pdf-drucken .pdf-druckziel .pdf-kopf, body.pdf-drucken .pdf-druckziel .bf-popup-kopf { display: none !important; }
  body.pdf-drucken .pdf-druckziel .bf-popup-inhalt, body.pdf-drucken .pdf-druckziel .pdf-inhalt { overflow: visible !important; padding: 0; background: #fff; }
  body.pdf-drucken .pdf-seite { display: block; width: 100% !important; margin: 0; box-shadow: none; break-after: page; }
  body.pdf-drucken .pdf-seite:last-child { break-after: auto; }
}
.leer-hinweis { margin-bottom: 12px; border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.leer-hinweis p { margin: 0 0 8px; }
.leer-hinweis .btn { margin-top: 0; }
.need-liste li { grid-template-columns: minmax(0, 1fr) auto auto; }
.kulanz-knoepfe-web { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; font-weight: 700; }
.lager-karte { margin-bottom: 12px; }
.lager-info { margin: 6px 0; }
.lager-menge input { width: 96px; padding: 6px 8px; }
.auftrag-bericht { margin: 2px 0; font-size: 14px; }
.akte-name { margin-top: 0; }
.akte-sprung { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0; font-weight: 700; }
.akte-pfad { margin: 0 0 8px; font-weight: 700; }
.akte-dateien { margin: 0; padding: 0; list-style: none; }
.akte-dateien li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }

.reiter-leiste { display: flex; flex-wrap: wrap; gap: 2px; margin: 12px 0; border-bottom: 1px solid var(--line); }
.reiter-leiste a { flex-shrink: 0; padding: 10px 14px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.reiter-leiste a:hover { color: var(--ink); }
.reiter-leiste a.an { border-bottom-color: var(--accent); color: var(--ink); }
.akte-titel { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.akte-titel h2 { margin: 0 0 2px; }
.akte-titel p { margin: 0; }
.akte-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.akte-knoepfe .btn { margin: 0; }
.akte-neu { margin-top: 12px; }
.akte-summe { margin: 10px 0; text-align: right; }
.akte-notiz-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.akte-notiz-wahl .btn { margin: 0; }
.akte-notiz-wahl .btn.an { background: var(--navy); border-color: var(--navy); color: #fff; }
.form-fenster { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 10px; }
.form-fenster::backdrop { background: rgba(15, 23, 42, 0.5); }
.form-fenster-kopf { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.form-fenster-kopf .btn { margin: 0; }
.form-fenster .panel { border: 0; box-shadow: none; }
.lager-menge .stepper { display: flex; align-items: stretch; gap: 4px; }
.lager-menge .stepper-knopf { flex-shrink: 0; width: 42px; min-height: 40px; background: #fff; border: 1px solid #cfd4da; border-radius: 6px; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.lager-menge .lager-wert { width: 76px; padding: 6px; text-align: center; font-weight: 700; }

/* Rechnungen, Rückgabe, Popups */
.summen { margin: 10px 0 14px auto; max-width: 340px; }
.summen div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.summen .gesamt { border-top: 1px solid var(--line); font-weight: 700; margin-top: 4px; padding-top: 6px; }
.rechnung-hinweis { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid #d97706; background: #fffbeb; }
.bericht-wahl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 400; }
.bericht-wahl input { width: auto; margin-top: 3px; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feld-paar label { display: block; }
.zeile-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zeile-knoepfe form { margin: 0; }
.time-edit-text { display: block; width: 100%; margin-top: 6px; }
.time-edit-text textarea { width: 100%; }
.termin-knopf { margin: 0; white-space: nowrap; }
input.rueckgabe-wert { width: 80px; }
.rueckgabe-fehlt { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-weight: 400; white-space: normal; }
.rueckgabe-fehlt input { width: auto; }

/* Einheitliches Material-Fenster und Mengenfelder */
.stepper { display: flex; align-items: stretch; gap: 4px; }
.stepper .stepper-knopf { flex-shrink: 0; width: 42px; min-height: 40px; margin: 0; background: #fff; border: 1px solid #cfd4da; border-radius: 6px; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.stepper .lager-wert { width: 76px; min-width: 0; margin: 0; padding: 6px; text-align: center; font-weight: 700; }
.form .stepper .lager-wert, .pruef-form .stepper .lager-wert { flex: 1; }
.reiter-zahl { display: inline-block; min-width: 20px; padding: 0 6px; background: #e8eaee; border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 20px; text-align: center; }
.reiter-zahl.voll { background: var(--accent); color: #fff; }
.mat-wahl { display: block; }
.mat-suche { margin-bottom: 0; }
.art-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.art-filter-knopf { padding: 7px 14px; background: #fff; border: 1px solid #cfd4da; border-radius: 16px; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.art-filter-knopf.an { background: var(--navy); border-color: var(--navy); color: #fff; }
.art-liste { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.art-liste > .muted { margin: 0; padding: 12px; }
.art-zeile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; background: #fff; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.art-zeile:last-child { border-bottom: 0; }
.art-zeile.an { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.art-thumb { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; background: #eef0f3; border-radius: 6px; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-text { min-width: 0; }
.art-text b, .art-text small { display: block; overflow-wrap: anywhere; }
.art-text small { color: var(--muted); }
.art-menge { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 12px; margin-top: 8px; }
.art-menge label { display: block; margin-top: 0; }
.mat-frei { margin-top: 8px; }
.mat-frei[hidden] { display: none; }
.mat-bestand { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.mat-bestand.fehlt { color: var(--accent-dark); font-weight: 700; }
.bedarf-klappe { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.bedarf-klappe > summary { font-weight: 700; cursor: pointer; }
.bedarf-klappe[open] > summary { margin-bottom: 8px; }
.bedarf-liste { margin-top: 10px; }
.bedarf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.bedarf-zeile .mat-name { flex: 1 1 160px; min-width: 0; }
.bedarf-zeile .mat-name b, .bedarf-zeile .mat-name small { display: block; overflow-wrap: anywhere; }
.bedarf-stand { color: var(--muted); }
.bedarf-stand.fehlt { color: var(--accent-dark); font-weight: 700; }
.bedarf-stand.reicht { color: #1c7c3f; }
.bedarf-warnung { margin-top: 10px; }
.bedarf-warnung .check-zeile { display: flex; margin-top: 6px; }
.lager-quelle { margin-top: 4px; }
.lager-quelle select { width: 100%; margin: 0; padding: 5px; font-size: 13px; }
.lager-bestand { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.positionen-menge .stepper .lager-wert { width: 64px; }
.positionen-preis { width: 92px; margin: 0; padding: 6px; text-align: right; }
.lager-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stand-folge-box { margin-top: 10px; }
@media (max-width: 700px) { .art-menge { grid-template-columns: 1fr; } }
.stepper-feld { margin-top: 12px; }
.stepper-feld > span { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.art-menge .stepper-feld { margin-top: 0; }
.mat-wahl input:not(.lager-wert), .mat-frei input { font-weight: 400; }
.mat-wahl { margin-bottom: 12px; }
.art-menge > div > label { font-size: 14px; }
.einsatzort[hidden] { display: none; }

/* Breite Formulare: Spalten nutzen den Bildschirm */
.form-fenster.breit { width: min(1500px, calc(100vw - 24px)); }
.form-fenster.breit .form { max-width: none; }
.form-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.form-spalte > label:first-child { margin-top: 0; }
.spalten-titel { margin: 18px 0 8px; font-size: 15px; }
.feld-paar > div > label { margin-top: 0; }
@media (max-width: 1000px) { .form-spalten { grid-template-columns: minmax(0, 1fr); } }
.stepper input[type=number]::-webkit-inner-spin-button, .stepper input[type=number]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.stepper input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.termin-kalender { margin: 12px 0; }
.termin-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.termin-pfeil { margin: 0; padding: 4px 14px; }
.termin-woche { font-size: 14px; }
.termin-woche-raster { display: grid; grid-template-columns: repeat(7, minmax(84px, 1fr)); gap: 4px; overflow-x: auto; }
.termin-tag { display: block; min-height: 96px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.termin-tag:hover { border-color: var(--accent); }
.termin-tag > b { display: block; margin-bottom: 4px; }
.termin-tag.heute > b { color: var(--accent-dark); }
.termin-tag.an { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.termin-eintrag { display: block; margin-bottom: 4px; padding: 3px 4px; background: #eef0f3; border-radius: 4px; overflow-wrap: anywhere; }
.termin-eintrag b, .termin-eintrag span, .termin-eintrag small { display: block; }
.termin-eintrag small { color: var(--muted); }
.termin-eintrag.belegt { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.termin-frei { color: #1c7c3f; }
.termin-konflikt ul { margin: 6px 0; padding-left: 18px; }
.belegt-hinweis { color: var(--accent-dark); font-weight: 600; }
.termin-knopf { margin: 0; }

.zieh-griff { width: 28px; color: var(--muted); font-size: 18px; text-align: center; cursor: grab; touch-action: none; user-select: none; }
.wird-gezogen { background: var(--accent-soft); }
.zeile-titel td { background: #f4f5f7; font-size: 15px; }
.zeile-text td { color: var(--ink); }
.termin-tag { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.belegt-hinweis { display: block; margin-left: 24px; font-size: 12px; }

/* Rechnung: Kopf und Summe bleiben stehen, dazwischen läuft die Liste */
.rechnung-kopf { padding: 0 0 8px; }
.rechnung-kopf .akte-titel { margin-bottom: 4px; }
.rechnung-kopf .reiter-leiste { margin: 4px 0 8px; }
.rechnung-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.rechnung-knoepfe .btn { margin: 0; padding: 7px 12px; }
.rechnung-knoepfe #positionen-speichern { margin-left: auto; }
.rechnung-fuss { position: sticky; bottom: -40px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 28px; margin-top: 12px; padding: 10px 16px; background: var(--navy); border-radius: var(--radius); color: #fff; }
.rechnung-fuss span { display: flex; flex-direction: column; text-align: right; }
.rechnung-fuss small { color: #c6cdd8; font-size: 12px; }
.rechnung-fuss .gesamt b { font-size: 18px; }
.rechnung-fuss .btn { margin: 0; }
.positionen-rabatt { width: 58px; margin: 0; padding: 6px; text-align: right; }
.texte-feld { margin: 0; padding: 0; border: 0; }
.rechnung-texte { max-width: 900px; }
.text-zeile { display: flex; align-items: flex-start; gap: 8px; }
.text-zeile input, .text-zeile textarea { flex: 1; min-width: 0; margin: 0; }
.text-zeile .btn { flex-shrink: 0; margin: 0; }
.vorlage-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vorlage-text { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.vorlage-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vorlage-knoepfe .btn { margin: 0; padding: 6px 12px; }
.vorlage-neu { margin-top: 12px; }
@media (max-width: 700px), (max-height: 620px) {
  .rechnung-knoepfe #positionen-speichern { margin-left: 0; }
  .rechnung-fuss { bottom: -32px; gap: 6px 16px; }
}
#rechnung-positionen .positionen-preis { width: 92px; }
#rechnung-positionen .positionen-rabatt { width: 58px; }

/* Großer Bildschirm: Die Seite steht, nur die Positionen laufen, ihre Überschrift bleibt stehen */
.rechnung-fest .content { overflow: hidden; }
.rechnung-fest .rechnung-rahmen { display: flex; flex-direction: column; min-height: 0; }
.rechnung-fest .rechnung-kopf, .rechnung-fest .rechnung-fuss { flex-shrink: 0; }
.rechnung-fest .rechnung-fuss { position: static; margin-top: 8px; }
.rechnung-fest .rechnung-mitte { flex: 1; min-height: 0; overflow: auto; }
.rechnung-fest .rechnung-mitte .table-wrap:has(#rechnung-positionen) { overflow: visible; }
.rechnung-fest #rechnung-positionen thead th { position: sticky; top: 0; z-index: 3; background: #f7f8fa; box-shadow: 0 1px 0 var(--line); }
.mat-nur-artikel .mat-frei, .mat-nur-artikel .art-menge { display: none; }
.rechnung-fest .content { padding-bottom: 0; }
.positionen-text { display: block; margin: 4px 0; color: var(--ink); line-height: 1.4; white-space: pre-wrap; }
.art-liste-klein { max-height: 170px; }
.leistung-zeile { display: flex; flex-wrap: wrap; gap: 0 12px; }
.leistung-zeile > div { flex: 1 1 170px; min-width: 0; }
.leistung-zeile > div[hidden] { display: none; }
.leistung-hinweis { margin: 4px 0 0; }
.kopie-link { margin-left: 8px; font-weight: 600; white-space: nowrap; }
.kopie-stand { margin: 8px 0 0; font-weight: 600; }
.kopie-fehler { margin: 6px 0 0; padding-left: 18px; color: var(--accent-dark); }
.geraet-aktionen { min-width: 180px; }
.geraet-aktionen .grund-form { margin-top: 4px; }
.auftrag-grund { color: var(--accent-dark); }
#offen-liste .stepper .lager-wert { width: 58px; }
#offen-liste input[name^=note] { min-width: 150px; margin: 0; }
.stellungnahme { color: var(--ink); font-weight: 600; }
.abruf-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.abruf-stand { font-size: 14px; color: var(--muted); }
.angebot-bild { display: block; max-width: 72px; max-height: 72px; margin-top: 4px; border-radius: 4px; }
.schalter-an { background: var(--accent-soft); border-color: var(--accent); }
.pos-nr { width: 44px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.angebot-bild[hidden], .positionen-text[hidden] { display: none; }
.umschalter-zeile { display: block; margin-top: 2px; }
.umschalter { display: inline; margin: 2px 12px 0 0; padding: 0; background: none; border: 0; color: var(--accent-dark); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
#rechnung-positionen .zeile-titel td { background: #dce6f1; color: #17314f; }
#rechnung-positionen .zeile-titel .pre, #rechnung-positionen .zeile-titel .positionen-text { color: #17314f; font-weight: 400; }
#rechnung-positionen .zeile-titel .zieh-griff { color: #17314f; }
table.ohne-text .positionen-text { display: none; }
table.ohne-text tr.zeigt-text .positionen-text { display: block; }
table.ohne-bild .angebot-bild { display: none; }
table.ohne-bild tr.zeigt-bild .angebot-bild { display: block; }
.nur-ohne-text, .nur-ohne-bild { display: none; }
table.ohne-text .nur-ohne-text, table.ohne-bild .nur-ohne-bild { display: inline; }
.umschalter:not(.an)[data-umschalten] { color: var(--muted); }
.titel-summe { color: #17314f; }

/* Material-Fenster */
.material-fenster { display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; background: var(--bg); }
.fenster-kopf { flex-shrink: 0; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.fenster-kopf b, .fenster-kopf small { display: block; }
.fenster-kopf input[type=search] { margin: 8px 0 0; }
.fenster-kopf .stepper-feld { margin-top: 6px; }
.fenster-hilfe { margin: 6px 0 0; font-size: 13px; }
.fenster-stand { min-height: 18px; margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #1c7c3f; }
.fenster-stand.fehlt { color: var(--accent-dark); }
.fenster-liste { flex: 1; min-height: 0; max-height: none; margin: 8px; background: #fff; }
.fenster-zeile { cursor: grab; }
.fenster-zeile:active { cursor: grabbing; }
.fenster-zeile .art-text { flex: 1; }
.fenster-plus { flex-shrink: 0; margin: 0; padding: 4px 14px; font-size: 18px; }
tr.ablage-davor td { box-shadow: inset 0 3px 0 var(--accent); }
tr.ablage-danach td { box-shadow: inset 0 -3px 0 var(--accent); }
tr.neu-eingefuegt td { background: var(--accent-soft); }

/* Artikelgruppen und Favoriten */
.art-filter-wahl { width: auto; max-width: 100%; margin: 0; padding: 7px 10px; border-radius: 16px; font-size: 13px; }
.artikel-gruppe { width: auto; min-width: 130px; max-width: 190px; margin: 0; padding: 6px 8px; font-size: 13px; }
.artikel-stand { font-size: 13px; font-weight: 600; color: #1c7c3f; }
.artikel-stand.fehlt { color: var(--accent-dark); }
.favorit-knopf { min-width: 44px; min-height: 34px; padding: 4px 8px; background: #fff; border: 1px solid #cfd4da; border-radius: 6px; color: var(--muted); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.favorit-knopf.an { border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.favorit-menue { position: fixed; z-index: 50; width: 260px; max-height: 320px; overflow-y: auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.favorit-menue label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px; font-weight: 400; cursor: pointer; }
.favorit-menue input { width: auto; margin: 0; }
.favorit-menue .btn { width: 100%; margin: 6px 0 0; }
.listen-block { margin-top: 18px; }
.listen-block h2 { margin: 0 0 8px; font-size: 16px; }
.listen-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.listen-zeile form { display: flex; align-items: center; gap: 8px; margin: 0; }
.listen-zeile form:first-child { flex: 1; min-width: 240px; }
.listen-zeile input { flex: 1; margin: 0; }
.listen-zeile .btn { margin: 0; padding: 7px 12px; }
.listen-neu { border-bottom: 0; }

.druck-material-titel { margin: 22px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }

/* Leistungspaket und Kalkulation */
#paket-block { margin: 14px 0; padding: 12px; background: #f6f7f9; border: 1px solid var(--line); border-radius: 8px; }
#paket-block h3 { margin: 0 0 8px; font-size: 15px; }
#paket-block .mat-suche { margin-top: 10px; }
.paket-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.paket-zeile .mat-name { flex: 1; min-width: 150px; }
.paket-zeile .mat-name b, .paket-zeile .mat-name small { display: block; }
.paket-summe { min-width: 74px; font-weight: 600; text-align: right; }
.paket-inhalt { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.kalk-eingabe { width: 86px; margin: 0; padding: 6px 8px; text-align: right; }
.kalk-art { width: auto; margin: 0; padding: 6px 8px; font-size: 13px; }
.kalk-summen { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.kalk-summen b { display: block; }
.kalk-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kalk-aktion input { width: 80px; margin: 0; }
.kalk-aktion .check-zeile { margin: 0; }
#kalk-tabelle + h3, .table-wrap + h3 { margin-top: 18px; }

.paket-teile { display: block; margin-top: 6px; }
.paket-teil { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0 3px 10px; border-left: 2px solid var(--line); font-size: 13px; }
.positionen-teilpreis { width: 84px; margin: 0; padding: 4px 6px; font-size: 13px; text-align: right; }
.positionen-preis[readonly] { background: #f3f4f6; color: var(--muted); }

/* Positionen: alles beginnt oben auf einer Linie */
#rechnung-positionen tbody td { vertical-align: top; padding-top: 22px; }
#rechnung-positionen tbody td:has(> input), #rechnung-positionen tbody td:has(> .stepper) { padding-top: 12px; }
#rechnung-positionen tr.zeile-titel td, #rechnung-positionen tr.zeile-text td { padding-top: 14px; }
#rechnung-positionen tr.hat-teile td { border-bottom: 0; padding-bottom: 2px; }
#rechnung-positionen tr.zeile-teil td { padding-top: 11px; padding-bottom: 3px; border-bottom: 0; font-size: 13px; color: var(--muted); }
#rechnung-positionen tr.zeile-teil td:has(> input) { padding-top: 3px; }
#rechnung-positionen tr.zeile-teil:has(+ tr:not(.zeile-teil)) td, #rechnung-positionen tr.zeile-teil:last-child td { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
#rechnung-positionen .teil-name { padding-left: 14px; color: var(--ink); }
#rechnung-positionen .positionen-teilpreis { width: 92px; margin: 0; }
.positionen-stand { align-self: center; margin-left: auto; font-size: 13px; color: var(--muted); }
.positionen-stand.fehlt { color: var(--accent-dark); font-weight: 600; }
.rechnung-fuss .fuss-werte { display: contents; }

/* Knöpfe mit Symbol, gut zu treffen auf dem Tablet */
.symbol-knopf { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; background: #fff; border: 1px solid #cfd4da; border-radius: 8px; color: var(--navy); cursor: pointer; }
.symbol-knopf:hover { background: #f1f4f8; }
.symbol-knopf.gefahr { color: var(--accent-dark); }
.symbol-knopf.gefahr:hover { background: var(--accent-soft); border-color: var(--accent); }
td form:has(> .symbol-knopf) { display: inline-block; margin: 0 0 0 4px; }
.symbol-zelle { white-space: nowrap; }
#rechnung-positionen tbody td.symbol-zelle { padding-top: 12px; }
/* Preise ausblenden, zum Beispiel beim Kunden vor Ort */
table.ohne-preise .spalte-preis, table.ohne-preise .titel-summe { display: none; }
.rechnung-fuss .fuss-werte[hidden] { display: none; }
/* Notizen im Büro */
#angebot-notizen.nz-box { min-height: 72vh; }

/* Feste Spaltenbreiten: Beschreibungen drücken die Spalten dahinter nicht mehr zusammen */
#rechnung-positionen { table-layout: fixed; width: 100%; min-width: 1120px; }
#rechnung-positionen th, #rechnung-positionen td { padding-left: 8px; padding-right: 8px; }
#rechnung-positionen .breite-griff { width: 34px; }
#rechnung-positionen .breite-pos { width: 58px; }
#rechnung-positionen .breite-menge { width: 15.4%; }
#rechnung-positionen .breite-preis { width: 11.1%; }
#rechnung-positionen .breite-rabatt { width: 8.6%; }
#rechnung-positionen .breite-steuer { width: 6.4%; }
#rechnung-positionen .breite-netto { width: 8.8%; }
#rechnung-positionen .breite-knoepfe { width: 108px; }
#rechnung-positionen.ohne-preise { min-width: 620px; }
#rechnung-positionen td { overflow-wrap: anywhere; }
