:root {
--bg: #f4f6f6;
--panel: #ffffff;
--ink: #1d2a2c;
--muted: #5f6f72;
--line: #e1e7e8;
--brand: #0e6d6a;
--brand-ink: #ffffff;
--brand-soft: #e3f1f0;
--brand-dark: #0b5b58;
--brand-deep: #0b4f4c;
--brand-line: #bfe0dd;
--brand-ring: #8cc9c5;
--brand-tint: #eef8f7;
/* Seitenleiste */
--side: #123b3b;
--side-2: #1d5c5a;
--side-ink: #d5e6e5;
--side-ink-2: #e2efee;
--side-muted: #9fc3c1;
--side-label: #86aaa8;
--side-dim: #7d9a99;
--side-accent: #1f8a85;
--side-focus: #5fb7b1;
--side-sub: #b9d6d4;
--red: #b42318;
--red-soft: #fdecea;
--amber: #a15c07;
--amber-soft: #fef4e2;
--green: #18794e;
--green-soft: #e6f4ec;
--grey-soft: #eef1f2;
--radius: 10px;
--shadow: 0 1px 2px rgba(16, 40, 44, .06), 0 1px 1px rgba(16, 40, 44, .04);
font-size: 15px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: var(--bg); color: var(--ink); line-height: 1.45;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1rem 0 .5rem; }
small, .muted { color: var(--muted); }
code { background: var(--grey-soft); padding: 0 .3em; border-radius: 4px; }
/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--side) 232px, transparent 232px); }
.sidebar {
background: var(--side); color: var(--side-ink); padding: 1.1rem .8rem; position: sticky; top: 0; height: 100vh;
display: flex; flex-direction: column; gap: .2rem; overflow-y: auto;
}
.brand { display: flex; gap: .6rem; align-items: center; padding: .2rem .5rem 1rem; color: #fff; }
.brand-logo { width: 40px; height: 40px; flex: none; background: #fff; border-radius: 10px; padding: 3px; object-fit: contain; }
.brand-logo.big { width: 64px; height: 64px; padding: 0; background: none; }
.kiosk-logo { width: 72px; height: 72px; padding: 6px; border-radius: 18px; margin-bottom: .8rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.brand-mark {
width: 34px; height: 34px; border-radius: 9px; background: var(--side-accent); display: grid; place-items: center;
font-weight: 700; font-size: .95rem; flex: none;
}
.brand-name { font-weight: 650; line-height: 1.15; font-size: .95rem; }
.brand-name small { display: block; color: var(--side-muted); font-weight: 400; font-size: .75rem; }
.sidebar-search { position: relative; margin: 0 .2rem .8rem; }
.sidebar .sidebar-search input[type=search] { width: 100%; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #fff;
border-radius: 8px; padding: .5rem 4.2rem .5rem 2rem; font: inherit; font-size: .9rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fc3c1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: .6rem center; background-size: 15px; }
.sidebar .sidebar-search input[type=search]::placeholder { color: var(--side-muted); }
.sidebar .sidebar-search input[type=search]:focus { outline: none; background-color: rgba(255,255,255,.15); border-color: var(--side-focus); }
.sidebar-search kbd { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); font: 600 .66rem/1 system-ui, sans-serif;
color: var(--side-muted); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: .2rem .3rem; pointer-events: none; }
.sidebar-search input:focus + kbd { display: none; }
body.kiosk .sidebar-search kbd { display: none; }
.search-big { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.search-big input { font-size: 1.05rem; padding: .7rem .9rem; }
.result-group h2 { display: flex; align-items: center; gap: .5rem; }
.result-group h2 svg { width: 18px; height: 18px; color: var(--brand); }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.results li:last-child { border-bottom: 0; }
.results .r-title { font-weight: 600; font-size: 1rem; }
.results .r-sub { font-size: .84rem; color: var(--muted); margin-top: .1rem; }
.results .r-snip { font-size: .88rem; color: #3d4f52; margin-top: .3rem; line-height: 1.5; }
kbd { font: 600 .75rem/1 system-ui, sans-serif; border: 1px solid #cfd9da; border-bottom-width: 2px; border-radius: 4px; padding: .1rem .35rem; background: #fff; }
mark { background: #fde68a; color: inherit; padding: 0 .1em; border-radius: 2px; }
.nav a {
display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: 8px;
color: var(--side-ink); font-size: .93rem;
}
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .count {
margin-left: auto; background: #e5484d; color: #fff; border-radius: 99px; font-size: .72rem;
padding: 0 .45rem; font-weight: 600;
}
.nav-sep { height: 1px; background: rgba(255,255,255,.1); margin: .6rem .4rem; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--side-label); padding: .4rem .6rem .1rem; }
.clockbox { margin-top: auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: .7rem; margin-bottom: .6rem; font-size: .85rem; }
.clock-state { color: #fff; font-weight: 600; margin-bottom: .45rem; display: flex; align-items: center; gap: .4rem; }
.clock-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--side-dim); }
.clock-state.in::before { background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.25); }
.clock-state.pause::before { background: #f0b429; }
.clock-warn { color: #ffb4a8; font-size: .8rem; margin: -.3rem 0 .4rem; }
.clock-btns { display: flex; gap: .4rem; }
.clock-btns form { flex: 1; }
.clockbox button { width: 100%; justify-content: center; }
.sidebar button.come { background: var(--side-accent); border-color: var(--side-accent); color: #fff; }
.sidebar button.go { background: rgba(229,72,77,.18); border-color: rgba(229,72,77,.4); color: #ffd9d6; }
.userbox { margin-top: 0; padding: .8rem .6rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.userbox .who { color: #fff; font-weight: 600; }
.userbox form { margin-top: .5rem; }
.sidebar .nav + .userbox { margin-top: auto; }
.userbox button { width: 100%; }
main.content { padding: 1.4rem 2rem 3rem; max-width: 1280px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.menu-toggle { display: none; }
/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > h2 { padding: 1rem 1.2rem 0; }
.panel-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.panel-head h2 { margin: 0; }
.panel-head .actions { margin-left: auto; display: flex; gap: .4rem; }
.grid { display: grid; gap: 1.1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .panel { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow); display: block; color: var(--ink); }
.stat:hover { text-decoration: none; border-color: #c7d4d5; }
.stat .num { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .84rem; }
.stat.bad .num { color: var(--red); }
.stat.warn .num { color: var(--amber); }
.stat.good .num { color: var(--green); }
/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafbfb; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.matrix th, .matrix td { text-align: center; padding: .45rem .4rem; font-size: .85rem; }
.matrix th:first-child, .matrix td:first-child { text-align: left; white-space: nowrap; }
.matrix thead th { vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: .78rem; max-width: 120px; }
.empty { color: var(--muted); padding: .8rem 0; }
.panel.flush .empty { padding: 1rem 1.2rem; }
/* ---------- Zeiterfassung ---------- */
.timesheet td { padding: .4rem .7rem; }
.timesheet tr.off td { background: #f7f9f9; color: #8a9a9c; }
.timesheet tr.today td { background: var(--brand-tint); }
.timesheet tfoot th { background: #f1f5f5; font-size: .85rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.tblock { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; padding: .1rem 0; }
details.inline > summary { cursor: pointer; color: var(--brand); font-size: .8rem; list-style: none; }
details.inline[open] { flex-basis: 100%; background: #fafcfc; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; margin: .3rem 0; }
details.inline .inline-form { margin-top: .4rem; }
.badge.abs-urlaub { background: var(--brand-soft); color: var(--brand-dark); }
.badge.abs-ueberstunden { background: #ece9fb; color: #4a3aa7; }
.badge.abs-fortbildung { background: #e7f0fd; color: #1f56a8; }
.badge.abs-krank, .badge.abs-kind_krank { background: #fdecea; color: #a12a1f; }
.badge.abs-sonstiges, .badge.abs-abwesend { background: #eef1f2; color: #4c5d60; }
/* ---------- Urlaubskalender ---------- */
.cal { table-layout: fixed; min-width: 900px; }
.cal th, .cal td { padding: 0; text-align: center; border: 1px solid #edf1f1; height: 30px; font-size: .72rem; }
.cal thead th { padding: .3rem 0; text-transform: none; letter-spacing: 0; line-height: 1.15; }
.cal .who { width: 170px; text-align: left; padding: .3rem .6rem; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal td.we, .cal th.we, .legend i.we { background: #eef1f2; }
.cal th.td { background: var(--brand); color: #fff; }
.cal td.td { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.k-urlaub { background: #2a9d8f !important; }
.k-ueberstunden { background: #7c6ee0 !important; }
.k-fortbildung { background: #4a86d8 !important; }
.k-krank, .k-kind_krank { background: #e07a6e !important; }
.k-sonstiges, .k-abwesend { background: #9aa9ab !important; }
.cal td.pend, .legend i.pend { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 4px, transparent 4px 8px) !important; }
.cal td.half { background-image: linear-gradient(to top right, transparent 50%, #fff 50%) !important; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: .7rem 1.2rem; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid #dde4e5; }
.qr-mini svg { width: 38px; height: 38px; display: block; }
/* ---------- QM-Dokumente ---------- */
.doc-view { padding-bottom: 1.2rem; }
.doc-content { max-width: 820px; line-height: 1.6; font-size: .97rem; }
.doc-content h1 { font-size: 1.35rem; margin: .4rem 0 .8rem; }
.doc-content h2 { font-size: 1.12rem; margin: 1.4rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.doc-content h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; }
.doc-content p, .doc-content ul, .doc-content ol { margin: .4rem 0 .8rem; }
.doc-content li { margin: .15rem 0; }
.doc-content table { width: auto; min-width: 60%; margin: .6rem 0 1rem; font-size: .92rem; }
.doc-content th, .doc-content td { border: 1px solid var(--line); padding: .4rem .6rem; }
.doc-content th { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--ink); }
.doc-content blockquote { margin: .6rem 0; padding: .5rem .9rem; background: var(--amber-soft); border-left: 3px solid #e09b22; border-radius: 4px; }
.doc-content.docx img { max-width: 100%; height: auto; }
.doc-frame { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f9; }
.doc-image { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.doc-text { white-space: pre-wrap; background: #f7f9f9; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; max-height: 70vh; overflow: auto; font-size: .88rem; }
.ack-bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 1.2rem; padding: .9rem 1rem; background: var(--green-soft); border: 1px solid #b5dfc8; border-radius: 10px; font-weight: 600; color: #0f5c3a; }
textarea.md-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.5; }
@media print { .doc-frame { display: none; } }
/* ---------- Scanner ---------- */
.input-with-btn { display: flex; gap: .4rem; }
.input-with-btn input { flex: 1; min-width: 0; }
.scan-btn { padding: .45rem .6rem; }
.scan-btn svg, .docscan .btn svg { width: 18px; height: 18px; }
.scanner.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8, 24, 24, .78); display: grid; place-items: center; padding: 1rem; }
.scanner-box { background: #fff; border-radius: 14px; width: min(520px, 100%); padding: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.scanner.inline .scanner-box { width: 100%; max-width: 640px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.scanner-head { display: flex; align-items: center; margin-bottom: .7rem; }
.scanner-head b { flex: 1; }
.scanner-close { border: 0; background: none; font-size: 1.2rem; padding: .2rem .5rem; }
.scanner-view { position: relative; background: #0b1515; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame { position: absolute; inset: 18% 14%; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.scanner.no-live .scanner-view { display: none; }
.scanner-status { margin: .7rem 0; font-size: .9rem; color: var(--muted); min-height: 1.3em; }
.scanner-status.ok { color: var(--green); font-weight: 600; }
.scanner-status.err { color: var(--red); }
.scanner-status.info { color: var(--brand-deep); background: var(--brand-soft); padding: .6rem .8rem; border-radius: 8px; }
.scanner.no-live .scanner-photo { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 1rem; padding: .8rem 1.2rem; }
.scanner-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.scanner-photo { cursor: pointer; }
.scanner-manual { display: flex; gap: .4rem; margin-top: .7rem; }
.scanner-manual input { flex: 1; }
.scan-wrap { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.scan-help ul { padding-left: 1.1rem; margin: .4rem 0 .8rem; }
.scan-help li { margin: .35rem 0; }
.docscan { border: 1px dashed #b9c9ca; border-radius: 10px; padding: .6rem .7rem; background: #fafcfc; }
.docscan-buttons { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.docscan-enh { font-size: .82rem; margin: 0; }
.docscan-pages { display: flex; flex-wrap: wrap; gap: .5rem; }
.docscan-pages:not(:empty) { margin-top: .6rem; }
.docscan-page { position: relative; width: 84px; }
.docscan-page img { width: 84px; height: 112px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; display: block; background: #fff; }
.docscan-page span { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; border-radius: 4px; padding: 0 .3rem; }
.docscan-tools { display: flex; justify-content: space-between; margin-top: .2rem; }
.docscan-tools button { padding: .1rem .35rem; font-size: .75rem; border-radius: 5px; }
.docscan-info:not(:empty) { margin-top: .4rem; color: var(--brand); font-weight: 600; }
.field.is-disabled > input[type=file] { opacity: .45; }
.mobile-bar { display: none; }
/* ---------- Sammelimport ---------- */
.progress { height: 12px; background: var(--grey-soft); border-radius: 99px; overflow: hidden; margin: .8rem 0 .4rem; }
.progress-bar { height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.import-table td { vertical-align: middle; }
.import-table td input[type=text], .import-table td select { min-width: 160px; width: 100%; }
.import-table td:nth-child(3) input { min-width: 240px; }
.import-table tr.skip td { background: #f7f9f9; color: #8a9a9c; }
.import-table tr.skip input[type=text] { opacity: .5; }
.bulkbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .7rem 1rem; position: sticky; top: 0; z-index: 5; }
.bulkbar input[type=text] { width: 220px; flex: none; }
.import-submit { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -4px 14px rgba(16,40,44,.08); }
/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: .76rem; padding: .1rem .5rem; border-radius: 99px; font-weight: 600; white-space: nowrap; background: var(--grey-soft); color: var(--muted); }
.badge.overdue, .badge.bad, .badge.gesperrt, .badge.missing { background: var(--red-soft); color: var(--red); }
.badge.soon, .badge.warn, .badge.offen { background: var(--amber-soft); color: var(--amber); }
.badge.ok, .badge.good, .badge.freigegeben { background: var(--green-soft); color: var(--green); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c9d3d4; }
.dot.overdue, .dot.missing, .dot.bad { background: var(--red); }
.dot.soon { background: #e09b22; }
.dot.ok { background: #2f9e66; }
.cell-ok { color: var(--green); }
.cell-overdue, .cell-missing { color: var(--red); font-weight: 600; }
.cell-soon { color: var(--amber); font-weight: 600; }
.cell-none { color: #b5c0c2; }
/* ---------- Forms ---------- */
label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .25rem; color: #34474a; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date],
input[type=datetime-local], input[type=search], input[type=file], select, textarea {
width: 100%; font: inherit; padding: .5rem .6rem; border: 1px solid #cfd9da; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-ring); outline-offset: 0; border-color: var(--brand); }
textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: .85rem; }
.form-grid .field { margin-bottom: 0; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; font-size: .92rem; }
.check input { margin-top: .2rem; width: 17px; height: 17px; flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .2rem; font-weight: 400; }
.form-actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin: 0; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 140px; }
.btn, button {
font: inherit; font-weight: 600; font-size: .9rem; border-radius: 8px; padding: .5rem .9rem; cursor: pointer;
border: 1px solid #cfd9da; background: #fff; color: var(--ink); display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap;
}
.btn:hover, button:hover { text-decoration: none; background: #f5f8f8; }
.btn.primary, button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover, button.primary:hover { background: var(--brand-dark); }
.btn.danger, button.danger { background: #fff; border-color: #f0b8b3; color: var(--red); }
.btn.danger:hover, button.danger:hover { background: var(--red-soft); }
.btn.good, button.good { background: var(--green); border-color: var(--green); color: #fff; }
.btn.small, button.small { padding: .25rem .55rem; font-size: .8rem; }
.btn.ghost, button.ghost { background: transparent; border-color: transparent; color: var(--brand); }
.sidebar button { background: rgba(255,255,255,.08); color: var(--side-ink-2); border-color: rgba(255,255,255,.15); }
.sidebar button:hover { background: rgba(255,255,255,.15); }
/* Tri-State Prüfungen */
.tri { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.tri:last-child { border-bottom: 0; }
.seg { display: inline-flex; border: 1px solid #cfd9da; border-radius: 8px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: .45rem .85rem; font-size: .88rem; cursor: pointer; border-right: 1px solid #cfd9da; font-weight: 600; color: var(--muted); }
.seg label:last-of-type { border-right: 0; }
.seg input:checked + label.yes { background: var(--green); color: #fff; }
.seg input:checked + label.no { background: var(--red); color: #fff; }
.seg input:checked + label.na { background: #6b7c7f; color: #fff; }
/* ---------- Flash ---------- */
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: .8rem; border: 1px solid; font-size: .93rem; }
.flash.ok { background: var(--green-soft); border-color: #b5dfc8; color: #0f5c3a; }
.flash.error { background: var(--red-soft); border-color: #f3c1bc; color: #8f1d14; }
.flash.warn { background: var(--amber-soft); border-color: #f2d49a; color: #7a4504; }
.callout { padding: .75rem 1rem; border-radius: 8px; background: var(--amber-soft); border: 1px solid #f2d49a; color: #7a4504; margin-bottom: 1rem; font-size: .92rem; }
.callout.bad { background: var(--red-soft); border-color: #f3c1bc; color: #8f1d14; }
.callout.info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }
dl.props { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; font-size: .93rem; }
dl.props dt { color: var(--muted); }
dl.props dd { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { font-size: .82rem; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; }
.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .4rem .8rem; border-radius: 99px; font-size: .88rem; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs a:hover { text-decoration: none; }
details.box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1.1rem; }
details.box > summary { cursor: pointer; padding: .8rem 1.2rem; font-weight: 600; list-style: none; }
details.box > summary::before { content: "+ "; color: var(--brand); }
details.box[open] > summary::before { content: "− "; }
details.box > .inner { padding: 0 1.2rem 1.1rem; }
.pager { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; padding: .8rem 1rem; }
/* ---------- Login / Kiosk ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(160deg, var(--side) 0%, var(--side-2) 100%); }
.auth-card { background: #fff; border-radius: 14px; padding: 2rem; width: 100%; max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.auth-card .brand { color: var(--ink); padding: 0 0 1.2rem; }
.auth-card .brand-name small { color: var(--muted); }
.auth-card .brand-mark { color: #fff; }
.kiosk-wrap { max-width: 880px; width: 100%; }
.kiosk-wrap h1 { color: #fff; margin-bottom: .3rem; }
.kiosk-wrap .sub { color: var(--side-sub); margin-bottom: 1.2rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.tile { background: #fff; border: 0; border-radius: 14px; padding: 1.2rem .8rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.tile .avatar { width: 58px; height: 58px; font-size: 1.15rem; }
.tile small { font-weight: 400; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.pinpad button { font-size: 1.5rem; padding: .9rem 0; justify-content: center; }
.pin-display { font-size: 2rem; letter-spacing: .5rem; text-align: center; height: 3rem; font-family: monospace; }
dialog { border: 0; border-radius: 16px; padding: 1.5rem; width: min(360px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10, 30, 30, .55); }
body.kiosk { font-size: 17px; }
body.kiosk .btn, body.kiosk button { padding: .7rem 1.1rem; }
body.kiosk input, body.kiosk select, body.kiosk textarea { padding: .7rem .7rem; }
.kiosk-timer { font-size: .8rem; color: var(--side-muted); margin-top: .3rem; }
/* ---------- Etiketten ---------- */
.labels { display: grid; grid-template-columns: repeat(auto-fill, 62mm); gap: 4mm; }
.label { width: 62mm; height: 29mm; border: 1px dashed #999; padding: 2mm 3mm; font-family: Arial, sans-serif; font-size: 8.5pt; line-height: 1.25; overflow: hidden; background: #fff; }
.label b { font-size: 10.5pt; }
@media print {
.layout { background: none; }
.sidebar, .page-head .actions, .no-print, .flash, .menu-toggle, .mobile-bar { display: none !important; }
.layout { display: block; }
main.content { padding: 0; max-width: none; }
body { background: #fff; }
.panel { box-shadow: none; border-color: #bbb; break-inside: avoid; }
.labels { gap: 0; }
.label { border: 0; page-break-inside: avoid; }
a { color: inherit; }
}
@media (max-width: 900px) {
.layout { grid-template-columns: 1fr; background: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 50; }
body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
.mobile-bar { display: flex; position: sticky; top: 0; z-index: 40; background: var(--side); }
.menu-toggle { display: inline-flex; flex: 1; background: var(--side); color: #fff; border: 0; border-radius: 0; padding: .8rem 1rem; justify-content: flex-start; min-width: 0; overflow: hidden; white-space: nowrap; }
.mobile-scan { display: grid; place-items: center; width: 54px; color: #fff; border-left: 1px solid rgba(255,255,255,.12); }
.mobile-scan svg { width: 24px; height: 24px; }
.scan-wrap { grid-template-columns: 1fr; }
.menu-toggle:hover { background: var(--side); }
main.content { padding: 1rem; }
.grid.two, .grid.three, .form-grid { grid-template-columns: 1fr; }
.tri { grid-template-columns: 1fr; }
}
/* ---------- Erscheinungsbild ---------- */
.presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.preset { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; padding: .3rem .55rem; }
.preset .sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.1); }
.preset .sw + .sw { margin-left: -8px; margin-right: .2rem; border-radius: 50%; }
.color-pick { display: flex; gap: .4rem; align-items: stretch; }
.color-pick input[type=color] { width: 46px; min-width: 46px; height: auto; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.color-pick input[type=text] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: lowercase; }
.logo-edit { display: flex; gap: 1rem; align-items: flex-start; }
.logo-edit .brand-logo.big { width: 72px; height: 72px; background: var(--grey-soft); border-radius: 12px; padding: 6px; }
.brand-preview { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: .4rem 0 .5rem; font-size: .85rem; }
.bp-side { background: var(--side); color: var(--side-ink); padding: .7rem .5rem; }
.bp-brand { display: flex; gap: .45rem; align-items: center; color: #fff; margin-bottom: .6rem; min-width: 0; }
.bp-brand > div { min-width: 0; }
.bp-brand b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-brand small { display: block; color: var(--side-muted); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-brand .brand-logo { width: 30px; height: 30px; border-radius: 7px; padding: 2px; }
.bp-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--side-label); padding: .2rem .4rem; }
.bp-nav { padding: .35rem .45rem; border-radius: 6px; }
.bp-nav.active { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.bp-main { padding: .8rem; background: var(--bg); }
.bp-main p { margin: .4rem 0; }
@media (max-width: 700px) {
.brand-preview { grid-template-columns: 1fr; }
.logo-edit { flex-direction: column; }
}
.tpl-box { margin-top: 1rem; padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: 10px; background: var(--brand-tint); }
.tpl-box h3 { margin-top: 0; }
.tpl-box .tpl { margin: .35rem 0; }
/* ---------- Temperaturprotokoll ---------- */
.temp-inputs { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.temp-inputs .field { flex: 1; min-width: 5.5rem; margin-bottom: 0; }
.temp-form .temp-out { margin: .6rem 0 0; }
.temp-form .temp-out textarea { width: 100%; margin-top: .4rem; min-height: 60px; background: #fff; }
.temp-more { margin-top: .5rem; font-size: .88rem; }
.temp-more summary { cursor: pointer; color: var(--muted); }
.temp-more .temp-inputs { margin-top: .5rem; }
.temp-card.bad { border-color: var(--red); box-shadow: 0 0 0 1px var(--red-soft); }
.list.compact li { padding: .35rem 0; }
.temp-table tr.out td { background: var(--red-soft); }
.temp-table tr.missing td { background: var(--amber-soft); }
.temp-table tr.free td { color: var(--muted); }
.print-only { display: none; }
@media print {
.print-only { display: block; }
.print-head { font-weight: 600; margin-bottom: .8rem; }
.temp-table tr.out td, .temp-table tr.missing td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ---------- Einstellungen / Einrichtung ---------- */
.settings-toc { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: -.3rem 0 1rem; font-size: .9rem; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.profile-card { position: relative; display: block; cursor: pointer; }
.profile-card input { position: absolute; opacity: 0; pointer-events: none; }
.profile-card .pc-body { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem; background: var(--panel);
border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
.profile-card:hover .pc-body { border-color: var(--brand-line); }
.profile-card input:checked + .pc-body { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }
.profile-card input:focus-visible + .pc-body { outline: 2px solid var(--brand); }
.pc-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.pc-detail { color: var(--muted); font-size: .78rem; margin-top: auto; }
.perm-table input[type=text] { width: 100%; min-width: 10rem; }
.perm-table td { vertical-align: middle; }