/* Löwe Filesharing – Layout & Komponenten · © Löwe Medizintechnik · Ersteller: Harald Löwe */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--ink); background: var(--bg); display: flex; flex-direction: column; }
a { color: var(--brand-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 14px; } h2 { font-size: 16px; margin: 0 0 12px; } h3 { font-size: 14px; margin: 18px 0 8px; }
code { background: #eef1f5; padding: 2px 5px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; } .nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 24px; background: var(--brand); color: var(--brand-ink); padding: 0 20px; height: 56px; flex: none; position: sticky; top: 0; z-index: 30; }
.topbar a { color: var(--brand-ink); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--brand-ink) !important; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: var(--brand); font-weight: 700; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 7px 14px; border-radius: 6px; opacity: .92; font-size: 14px; font-weight: 600; }
.topbar nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; opacity: 1; }
.topbar nav a.active { background: var(--accent); color: var(--brand); opacity: 1; font-weight: 600; }
.topbar .user { font-size: 13px; opacity: .9; margin-left: auto; }
.foot { text-align: center; font-size: 11px; color: var(--muted); padding: 10px; flex: none; }
body.app .foot { display: none; }

/* Buttons & Formulare */
.btn { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; cursor: pointer; text-decoration: none !important; line-height: 1.4; }
.btn:hover:not(:disabled) { border-color: #b9c3cf; background: #f8fafc; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover:not(:disabled) { background: var(--brand-2); border-color: var(--brand-2); }
.btn-danger { color: var(--err); } .btn-danger:hover:not(:disabled) { background: #fef3f2; border-color: #f3b7b1; }
.btn-sm { padding: 3px 9px; font-size: 12px; } .btn-lg { padding: 10px 22px; font-size: 15px; } .btn-block { width: 100%; justify-content: center; padding: 9px; }
.icon-btn { font: inherit; font-size: 16px; width: 30px; height: 30px; border: 1px solid transparent; background: none; border-radius: 6px; cursor: pointer; color: var(--ink); }
.icon-btn:hover:not(:disabled) { background: #e9edf2; } .icon-btn:disabled { opacity: .3; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
input, select, textarea { font: inherit; font-size: 14px; display: block; width: 100%; margin-top: 4px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--sel); border-color: var(--brand-2); }
label.chk { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); font-size: 13px; margin: 4px 0; }
label.chk input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 0 0 10px; } legend { font-size: 12px; font-weight: 600; color: var(--muted); }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .form-grid .full { grid-column: 1 / -1; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } form.inline { display: inline; }
.alert { padding: 9px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
.alert-ok { background: #ecfdf3; color: var(--ok); } .alert-err { background: #fef3f2; color: var(--err); } .alert-info { background: #eff6ff; color: #1e40af; }

/* Anmeldung */
body.auth { background: linear-gradient(180deg, var(--brand) 0, var(--brand) 240px, var(--bg) 240px); }
.auth-box { width: 380px; max-width: calc(100% - 24px); margin: 70px auto 20px; background: var(--surface); border-radius: 12px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.12); flex: none; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; } .auth-brand small { display: block; color: var(--muted); }
.qr { width: 200px; margin: 6px auto 8px; } .qr svg { width: 100%; height: auto; display: block; }
.secret { letter-spacing: 1px; font-size: 12px; word-break: break-all; }

/* Seiten */
.page { padding: 22px 28px; width: 100%; max-width: 1400px; margin: 0 auto; flex: 1; } .page.narrow { max-width: 720px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: auto; } .card .pad { padding: 14px 16px 0; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; } .kv dt { color: var(--muted); }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #eef2f7; color: var(--brand); font-weight: 600; white-space: nowrap; }
.badge-err { background: #fef3f2; color: var(--err); }
.st { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.st-aktiv { background: #ecfdf3; color: var(--ok); } .st-abgelaufen { background: #fffaeb; color: var(--warn); } .st-widerrufen { background: #f2f4f7; color: var(--muted); }
tr.inactive td { opacity: .55; }
.linkbox { font-size: 12px; font-family: ui-monospace, Menlo, monospace; } .linkbox.sm { display: inline-block; width: 200px; padding: 3px 6px; margin: 0 4px 0 0; vertical-align: middle; }

/* Tabellen */
table.list { width: 100%; border-collapse: collapse; background: var(--surface); }
table.list th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.list td { padding: 7px 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
table.list.compact td, table.list.compact th { padding: 5px 8px; }
.num { text-align: right; } .c-name { width: 45%; }
.c-name .ico { margin-right: 10px; vertical-align: middle; }
.snip { font-size: 12px; color: var(--muted); margin: 3px 0 0 32px; max-width: 700px; }

/* Explorer */
.explorer { flex: 1; display: grid; grid-template-columns: 250px 1fr; min-height: 0; }
.sidebar { background: #eaeef3; border-right: 1px solid var(--line); overflow: auto; padding: 12px 6px; }
.side-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 0 10px 6px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; } .tree ul { padding-left: 14px; }
.tnode { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; cursor: pointer; white-space: nowrap; user-select: none; }
.tnode:hover { background: rgba(0,0,0,.05); } .tnode.active { background: var(--sel); font-weight: 600; } .tnode.drop { outline: 2px dashed var(--brand-2); }
.twist { width: 14px; font-size: 11px; color: var(--muted); text-align: center; flex: none; }
.tname { overflow: hidden; text-overflow: ellipsis; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--surface); }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.nav-btns { display: flex; gap: 2px; }
.crumbs { flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: 14px; }
.crumbs a { color: var(--ink); cursor: pointer; padding: 2px 6px; border-radius: 5px; } .crumbs a:hover { background: #eef1f5; text-decoration: none; }
.crumbs a:last-of-type { font-weight: 600; } .crumbs span { color: var(--muted); } .crumbs a.drop { outline: 2px dashed var(--brand-2); }
.crumbs.static { margin-bottom: 12px; }
.search { display: flex; gap: 6px; width: 420px; max-width: 45%; }
.search input { margin: 0; } .search select { margin: 0; width: 140px; flex: none; }
.actions { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.actions .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; } .actions .grow { flex: 1; }
.listing { flex: 1; overflow: auto; outline: none; }
.listing .row { cursor: default; user-select: none; }
.listing tr.row:hover td { background: #f7f9fb; }
.listing .row.sel td, .listing .cell.sel { background: var(--sel) !important; }
.listing tr.row.drop td { background: #e6f0fc; outline: none; } .listing tr.row.drop td:first-child { box-shadow: inset 3px 0 var(--brand-2); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; padding: 14px; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 8px; text-align: center; position: relative; }
.cell:hover { background: #f4f6f9; } .cell.drop { outline: 2px dashed var(--brand-2); }
.cell .ico { transform: scale(1.8); margin: 12px 0 10px; }
.cname { font-size: 12px; word-break: break-word; line-height: 1.3; max-height: 3.9em; overflow: hidden; }
.cell .badge { position: absolute; top: 6px; right: 6px; }
.statusbar { font-size: 12px; color: var(--muted); padding: 6px 14px; border-top: 1px solid var(--line); background: #fafbfc; }
.drop-hint { display: none; position: absolute; inset: 0; background: rgba(10,90,168,.08); border: 3px dashed var(--brand-2); border-radius: 8px; place-items: center; font-size: 18px; font-weight: 600; color: var(--brand); pointer-events: none; }
.main.dragging .drop-hint { display: grid; }

/* Symbole (reines CSS, keine externen Bilder) */
.ico { display: inline-block; width: 20px; height: 22px; position: relative; flex: none; }
.ico-folder { width: 22px; height: 17px; background: #f2b84b; border-radius: 2px 3px 3px 3px; margin-top: 3px; }
.ico-folder::before { content: ''; position: absolute; left: 0; top: -3px; width: 9px; height: 4px; background: #f2b84b; border-radius: 2px 2px 0 0; }
.ico-folder::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #f7c862; border-radius: 2px; }
.ico-folder.sm { transform: scale(.8); margin: 0 2px 0 0; }
.ico-file, .ico-pdf, .ico-doc, .ico-xls, .ico-ppt, .ico-img, .ico-zip, .ico-vid { background: #fff; border: 1.5px solid #9aa6b4; border-radius: 2px 6px 2px 2px; }
.ico-file::after, .ico-pdf::after, .ico-doc::after, .ico-xls::after, .ico-ppt::after, .ico-img::after, .ico-zip::after, .ico-vid::after {
  content: attr(data-ext); position: absolute; left: -3px; bottom: 2px; font-size: 7px; font-weight: 700; line-height: 1; color: #fff; background: #7b8794; padding: 1px 2px; border-radius: 2px; text-transform: uppercase; max-width: 24px; overflow: hidden; }
.ico-pdf { border-color: #d14b3c; } .ico-pdf::after { background: #d14b3c; }
.ico-doc { border-color: #2b5fb4; } .ico-doc::after { background: #2b5fb4; }
.ico-xls { border-color: #1f7a3d; } .ico-xls::after { background: #1f7a3d; }
.ico-ppt { border-color: #c4561f; } .ico-ppt::after { background: #c4561f; }
.ico-img { border-color: #7a4cc2; } .ico-img::after { background: #7a4cc2; }
.ico-zip { border-color: #6b5b3a; } .ico-zip::after { background: #6b5b3a; }
.ico-vid { border-color: #b4237a; } .ico-vid::after { background: #b4237a; }
.ico-big { transform: scale(2.6); margin: 24px 0 26px; }

/* Kontextmenü, Dialoge, Uploads, Hinweise */
.ctx { position: fixed; z-index: 50; list-style: none; margin: 0; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); min-width: 190px; }
.ctx li { padding: 6px 12px; border-radius: 5px; cursor: pointer; font-size: 13px; } .ctx li:hover { background: var(--sel); }
.ctx li.sep { height: 1px; padding: 0; margin: 4px 0; background: var(--line); cursor: default; } .ctx li.danger { color: var(--err); }
dialog { border: none; border-radius: 12px; padding: 0; width: 800px; max-width: calc(100% - 24px); box-shadow: 0 20px 50px rgba(0,0,0,.25); color: var(--ink); }
dialog::backdrop { background: rgba(15,23,42,.35); }
dialog form { padding: 20px 22px; }
.dlg-body { max-height: 65vh; overflow: auto; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.picker { border: 1px solid var(--line); border-radius: 6px; height: 300px; overflow: auto; padding: 6px; }
.inh { font-size: 10px; color: var(--muted); background: #f2f4f7; padding: 0 5px; border-radius: 8px; }
.shares { margin-bottom: 6px; }
.uploads { position: fixed; right: 16px; bottom: 16px; width: 380px; max-height: 50vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 40; }
.uploads-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.uploads ul { list-style: none; margin: 0; padding: 6px 12px; overflow: auto; }
.uploads li { padding: 6px 0; border-bottom: 1px solid #f0f2f5; } .u-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 5px; background: #eef1f5; border-radius: 3px; overflow: hidden; margin: 4px 0; } .bar i { display: block; height: 100%; width: 0; background: var(--brand-2); transition: width .2s; }
.uploads li.ok .bar i { background: var(--ok); } .uploads li.err .bar i { background: var(--err); width: 100% !important; } .uploads li.err .u-st { color: var(--err); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d2733; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; z-index: 100; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: opacity .4s; }
.toast-err { background: var(--err); } .toast.out { opacity: 0; }

/* Öffentliche Freigabe */
.share-page { max-width: 900px; padding-top: 28px; }
.share-file { text-align: center; padding: 34px; } .share-file h1 { color: var(--ink); word-break: break-word; }

@media (max-width: 860px) {
  .explorer { grid-template-columns: 1fr; } .sidebar { display: none; }
  .search { width: 100%; max-width: none; } .toolbar { flex-wrap: wrap; }
  .cols, .form-grid.two { grid-template-columns: 1fr; } .topbar nav a { padding: 6px 8px; } .topbar .user { display: none; }
}
textarea { resize: vertical; min-height: 60px; }
.mail-fields { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px 2px; background: #fafbfc; margin-bottom: 10px; }
.alert-ok { margin: 0 0 12px; }
.sel-sm { display: inline-block; width: auto; margin: 0; padding: 3px 6px; font-size: 13px; }

/* Löwe-Logo wie in Fachhandelsportal / MP-Verwaltung */
.logo-pill { display: inline-flex; align-items: center; background: #fff; border-radius: 6px; padding: 4px 10px; line-height: 0; }
.logo-pill img { height: 26px; width: auto; display: block; }
.auth-brand .logo-pill { border: 1px solid var(--line); }
.narrow-card { max-width: 900px; }

/* ---------- Dateiviewer ---------- */
body.viewer { background: #e9edf2; }
.viewer-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px 18px; background: var(--brand); color: #fff; }
.viewer-bar .muted { color: rgba(255,255,255,.75); }
.viewer-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.viewer-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .btn { border-color: rgba(255,255,255,.35); }
.viewer-bar .btn:not(.btn-primary) { background: transparent; color: #fff; }
.viewer-bar .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.viewer-ver select { margin: 0; }
.viewer-main { flex: 1; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; }
.viewer-note { margin: 0; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
.pdf-frame { width: 100%; flex: 1; min-height: calc(100vh - 120px); border: 0; background: #fff; box-shadow: var(--shadow); }
.img-view { max-width: 100%; text-align: center; }
.img-view img, .img-view canvas { max-width: 100%; max-height: calc(100vh - 140px); background: repeating-conic-gradient(#f3f4f6 0% 25%, #fff 0% 50%) 50% / 20px 20px; box-shadow: var(--shadow); }
.media { max-width: 100%; max-height: calc(100vh - 140px); }
audio.media { width: 600px; }
.doc-page { width: 100%; max-width: 850px; background: #fff; padding: 56px 64px; box-shadow: var(--shadow); line-height: 1.55; }
.doc-page p { margin: 0 0 8px; } .doc-page p.empty { min-height: 8px; } .doc-page p.li { padding-left: 18px; text-indent: -12px; }
.doc-page h2, .doc-page h3, .doc-page h4 { color: var(--brand); margin: 18px 0 8px; }
.doc-page img, .slide img { max-width: 100%; height: auto; display: block; margin: 8px 0; }
.al-center { text-align: center; } .al-right { text-align: right; } .al-both { text-align: justify; }
.doc-table { border-collapse: collapse; margin: 10px 0; width: 100%; font-size: 13px; }
.doc-table td { border: 1px solid #cfd6df; padding: 4px 8px; vertical-align: top; }
.doc-table td p { margin: 0; }
.sheet-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-self: stretch; }
.sheet-tab { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-bottom: 0; background: #f2f4f7; border-radius: 6px 6px 0 0; cursor: pointer; }
.sheet-tab.active { background: #fff; font-weight: 600; color: var(--brand); }
.sheet-pane { align-self: stretch; }
.sheet-wrap { overflow: auto; max-height: calc(100vh - 170px); background: #fff; box-shadow: var(--shadow); width: 100%; }
.sheet { border-collapse: collapse; font-size: 12.5px; }
.sheet th { background: #f2f4f7; color: var(--muted); font-weight: 600; position: sticky; top: 0; border: 1px solid #e1e6ec; padding: 3px 8px; }
.sheet tbody th { position: sticky; left: 0; }
.sheet td { border: 1px solid #e6eaef; padding: 3px 8px; white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.sheet td.n { text-align: right; font-variant-numeric: tabular-nums; }
.slide { width: 100%; max-width: 900px; background: #fff; box-shadow: var(--shadow); padding: 28px 36px; border-radius: 6px; position: relative; }
.slide h3 { color: var(--brand); font-size: 20px; margin: 0 0 12px; }
.slide .lvl { margin: 0 0 6px; } .lvl-1 { padding-left: 20px; } .lvl-2 { padding-left: 40px; } .lvl-3, .lvl-4 { padding-left: 60px; }
.slide-no { position: absolute; top: 8px; right: 14px; font-size: 11px; color: var(--muted); }
.text-view { width: 100%; max-width: 1100px; background: #fff; padding: 20px 24px; box-shadow: var(--shadow); white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; width: 100%; }
.thumbs figure { margin: 0; background: #fff; padding: 10px; box-shadow: var(--shadow); text-align: center; }
.thumbs img { max-width: 100%; } .thumbs figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.viewer-empty { margin-top: 10vh; text-align: center; background: #fff; padding: 40px 60px; border-radius: 10px; box-shadow: var(--shadow); }
.mail-head { background: #fff; padding: 16px 20px; width: 100%; max-width: 1100px; box-shadow: var(--shadow); }
.psd-status { font-size: 12px; }

/* ---------- Versionsvergleich ---------- */
.diff-head { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.diff-head label { margin: 0; }
.diff-stats { display: flex; gap: 10px; margin: 8px 0 14px; font-size: 13px; }
.diff-stats span { padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.ds-add { background: #e4f5ee; color: #1d6b48; } .ds-del { background: #fbe7e7; color: #a12f2f; } .ds-chg { background: #fcefdc; color: #8a5414; }
table.diff { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; background: #fff; }
table.diff th { background: #f2f4f7; padding: 8px 10px; text-align: left; }
table.diff .ln { width: 46px; }
table.diff td { padding: 4px 10px; vertical-align: top; border-bottom: 1px solid #f0f2f5; word-break: break-word; line-height: 1.45; }
table.diff td.ln { width: 46px; color: #9aa4b0; text-align: right; font-size: 11px; }
tr.d-del td.o { background: #fdecec; } tr.d-add td.n { background: #e9f7ef; }
tr.d-chg td.o { background: #fff6f6; } tr.d-chg td.n { background: #f3fbf6; }
table.diff del { background: #f6b8b8; text-decoration: line-through; border-radius: 2px; }
table.diff ins { background: #a9e3c3; text-decoration: none; border-radius: 2px; }
tr.d-gap td { text-align: center; color: var(--muted); background: #fafbfc; font-size: 12px; padding: 6px; }
.compare-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-imgs figure { margin: 0; background: #fff; padding: 10px; box-shadow: var(--shadow); text-align: center; }
.compare-imgs img { max-width: 100%; max-height: 70vh; }
.badge-ver { background: #E7EFF6; color: var(--brand-2); margin-left: 6px; }

/* ---------- Auswertung ---------- */
.filter-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 14px 16px; }
.filter-bar label { margin: 0; min-width: 140px; }
.filter-bar .btn-row { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 26px; color: var(--brand); line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; }
.grid2 .card { margin: 0; }
svg.chart { width: 100%; height: auto; display: block; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.legend li { margin: 4px 0; display: flex; align-items: center; gap: 6px; }
.sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sw-0 { background: #1B2A4A; } .sw-1 { background: #3E6B99; } .sw-2 { background: #A9C0D6; } .sw-3 { background: #2E9E6B; } .sw-4 { background: #E08A2C; } .sw-5 { background: #D14343; } .sw-6 { background: #7C4DBB; }
.badge-kunde { background: #E4F5EE; color: #1d6b48; }
td.warn { color: var(--err); font-weight: 700; }
.chk-hint { margin: -4px 0 12px 22px; }
