:root {
  --bg: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --navy: #161616;
  --navy-2: #2b2b2b;
  --accent: #e30613;
  --accent-2: #ff3b3b;
  --accent-soft: #fde8e9;
  --side-bg: #0c0c0d;
  --side-text: #d4d4d8;
  --side-muted: #71717a;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --err: #dc2626;
  --err-soft: #fee2e2;
  --info: #2563eb;
  --info-soft: #dbeafe;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--side-bg); color: var(--side-text);
  display: flex; flex-direction: column; padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { width: 44px; height: auto; display: block; }
.brand b { display: block; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.nav-group { margin-top: 12px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--side-muted); padding: 0 10px 5px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
  color: var(--side-text); font-weight: 500; margin-bottom: 1px; font-size: 13.5px;
}
.nav-item svg { width: 17px; height: 17px; color: var(--ic, var(--side-muted)); flex: none; }
.bauki-btn {
  display: flex; align-items: center; gap: 10px; margin: 14px 2px 4px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,.22), rgba(227,6,19,.22)); border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.bauki-btn svg { width: 18px; height: 18px; color: #c084fc; }
.bauki-btn b { flex: 1; font-size: 14px; }
.bauki-btn span { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #d4d4d8; }
.bauki-btn:hover, .bauki-btn.active { border-color: rgba(255,255,255,.35); }
/* eigene Klasse – „.chat“ ist das Chatfenster und würde den Knopf riesig machen */
.bauki-btn.ki-chat { margin-top: 0; background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(59,130,246,.18)); }
.bauki-btn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Anzenhofer Ki Chat */
.chat { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; min-height: calc(100dvh - 190px); }
.chat-list { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.chat-msg.user { align-items: flex-end; }
.chat-bubble { max-width: min(720px, 92%); padding: 11px 15px; border-radius: 16px; line-height: 1.55; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.chat-msg.user .chat-bubble { background: var(--navy); color: #fff; border-color: var(--navy); border-bottom-right-radius: 4px; }
.chat-msg.assistant .chat-bubble { border-bottom-left-radius: 4px; }
.chat-msg.error .chat-bubble { background: var(--err-soft); border-color: var(--err); color: var(--err); }
.chat-li { display: block; padding-left: 16px; position: relative; }
.chat-li::before { content: "•"; position: absolute; left: 4px; }
.chat-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.chat-tools { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.chat-tools .btn svg { width: 14px; height: 14px; }
.chat-empty { margin: auto 0; padding: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.chat-hello { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.chat-hello > svg { width: 34px; height: 34px; color: #a855f7; flex: none; }
.chat-hello div { display: flex; flex-direction: column; }
.chat-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-idea { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font: inherit; color: var(--text); }
.chat-idea:hover { border-color: #a855f7; color: #7e22ce; }
.chat-input { position: sticky; bottom: 8px; display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(15,23,42,.06); }
.chat-input textarea { flex: 1; resize: none; border: 0; outline: none; font: inherit; font-size: 16px; line-height: 1.45;
  padding: 8px 6px; background: transparent; color: var(--text); max-height: 220px; }
.chat-input .btn { flex: none; }
.chat-foot { text-align: center; padding-bottom: 6px; }
@media (max-width: 760px) {
  .chat { min-height: calc(100dvh - 150px); }
  .chat-bubble { max-width: 96%; }
  .chat-input { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .chat-input .btn span { display: none; }
}
.company-switch { position: relative; margin: 12px 2px 0; }
.cs-current { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 12px; padding: 8px 32px 8px 12px; position: relative; }
.cs-current:hover { border-color: rgba(255,255,255,.3); }
.cs-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); }
.cs-current b { font-size: 13px; line-height: 1.25; }
.cs-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--side-muted); }
.cs-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; background: #18181b; border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 2px; }
.cs-menu button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px; border: 0; background: transparent;
  color: #e4e4e7; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cs-menu button:hover { background: rgba(255,255,255,.08); }
.cs-menu button.on { background: rgba(227,6,19,.2); color: #fff; }
.cs-menu small { color: var(--side-muted); font-size: 11px; }
.cs-menu .cs-new { flex-direction: row; align-items: center; gap: 8px; color: #fca5a5; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
.cs-menu .cs-new svg { width: 15px; height: 15px; }
.logo-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 150px; height: 110px; border: 1px dashed var(--border); border-radius: 12px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.logo-preview img { max-width: 140px; max-height: 100px; }
.co-checks { display: flex; flex-direction: column; gap: 3px; }
.co-checks label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.co-checks input { width: auto; accent-color: var(--accent); }
.nav-bottom { margin-top: 18px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(227,6,19,.18); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.pill { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--accent); color: #fff; }
.user-card { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.user-card .avatar { background: var(--accent); }
.user-card small { display: block; color: #a1a1aa; font-size: 12px; }

.main { padding: 28px 32px 48px; min-width: 0; }
.menu-btn { display: none; }
.topbar { display: none; }
.backdrop { display: none; }

/* ---------- Header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 15px; font-weight: 700; }
.card-head .link { color: var(--accent); font-weight: 600; font-size: 13px; }
.card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1.6fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Quick actions wie bei BauGrid */
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.quick a {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 14px; text-align: center; transition: transform .12s, border-color .12s;
}
.quick a:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.quick .ico { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.quick .ico svg { width: 20px; height: 20px; }
.quick b { display: block; font-size: 14px; }
.quick span { color: var(--muted); font-size: 12px; }

.kpi { padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi .value { font-size: 24px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .hint { color: var(--muted); font-size: 12px; }
.kpi.accent { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.accent .label, .kpi.accent .hint { color: #cbd5e1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge.draft { background: #f1f5f9; color: #475569; }
.badge.open { background: var(--warn-soft); color: #92400e; }
.badge.paid { background: var(--ok-soft); color: #166534; }
.badge.err { background: var(--err-soft); color: #991b1b; }
.badge.info { background: var(--info-soft); color: #1e40af; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { background: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface);
  padding: 8px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: #e48f06; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--err); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; display: block; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px 14px; }
.f { display: flex; flex-direction: column; gap: 5px; grid-column: span 4; min-width: 0; }
.f.s2 { grid-column: span 2; } .f.s3 { grid-column: span 3; } .f.s4 { grid-column: span 4; } .f.s5 { grid-column: span 5; } .f.s9 { grid-column: span 9; } .f.s6 { grid-column: span 6; } .f.s8 { grid-column: span 8; } .f.s12 { grid-column: span 12; }
.f label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.f label .req { color: var(--accent); }
input, select, textarea {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 11px; outline: none;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 6, 19, .14); }
input.invalid { border-color: var(--err); background: #fffafa; }
.section { margin-bottom: 16px; }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .chev { transition: transform .15s; color: var(--muted); }
details.card[open] > summary .chev { transform: rotate(90deg); }

/* Positionen */
.lines td { padding: 6px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.lines th { padding: 8px 4px; }
.lines input, .lines select { padding: 7px 8px; }
.lines .pos { color: var(--muted); font-weight: 600; padding-top: 14px; text-align: center; width: 34px; }
.lines .detail { margin-top: 5px; font-size: 13px; color: var(--muted); }
.lines td.total { padding-top: 14px; font-weight: 600; }

/* ---------- Editor layout ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.editor.with-pdf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px; }
.editor.with-pdf .f { grid-column: span 6; }
.editor.with-pdf .f.s8, .editor.with-pdf .f.s12 { grid-column: span 12; }
.side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.pdf-pane { position: sticky; top: 20px; height: calc(100vh - 40px); overflow: hidden; }
.pdf-pane iframe { width: 100%; height: calc(100% - 50px); border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.sum-row.total { border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 18px; }
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.issues li { display: flex; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; }
.issues li.error { background: var(--err-soft); color: #7f1d1d; }
.issues li.warning { background: var(--warn-soft); color: #78350f; }
.issues li.ok { background: var(--ok-soft); color: #14532d; }
.issues .tag { font-size: 10px; font-weight: 700; text-transform: uppercase; opacity: .7; margin-left: auto; white-space: nowrap; }
.ready { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ready div { border-radius: 10px; padding: 10px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ready svg { width: 16px; height: 16px; flex: none; }
.ready .yes { background: var(--ok-soft); color: #166534; }
.ready .no { background: var(--err-soft); color: #991b1b; }
.export-list { display: flex; flex-direction: column; gap: 8px; }
.export-list .btn { justify-content: flex-start; }
.export-list .btn small { margin-left: auto; color: var(--muted); font-weight: 500; }
.export-list .btn.locked { opacity: .55; filter: grayscale(.6); }
.export-list .btn.locked::after { content: "🔒"; margin-left: 6px; font-size: 12px; }
.issues li[data-goto] { cursor: pointer; }
.issues li[data-goto]:hover { outline: 2px solid currentColor; outline-offset: -2px; }
.issues-head { margin: 0 0 8px; color: #7f1d1d; }
.card-body.official { border-top: 1px solid var(--border); }
.off-block { margin-top: 10px; font-size: 13px; }
.off-block > b svg { width: 14px; height: 14px; vertical-align: -2px; }
.off-block .issues { margin-top: 6px; }
input.invalid-xr { border-color: var(--warn); }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(227, 6, 19, .35); } 100% { box-shadow: none; } }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; background: var(--info-soft); color: #1e3a8a; border: 1px solid #bfdbfe; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.banner ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- KI-Import ---------- */
.drop {
  display: block; border: 2px dashed #cbd5e1; border-radius: 18px; background: var(--surface); padding: 40px 24px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.drop:hover, .drop:focus-visible { border-color: var(--accent); background: #fffbeb; outline: none; }
.drop.over { border-color: var(--accent); border-style: solid; background: #fff7ed; transform: scale(1.01); }
.drop .drop-btn { margin: 16px 0 10px; }
.drop .muted.small { font-size: 12.5px; }
/* PDF wird irgendwo ins Portal gezogen */
body.dropping::after {
  content: "PDF loslassen – die Anzenhofer Ki liest sie ein"; position: fixed; inset: 12px; z-index: 100; pointer-events: none;
  display: grid; place-items: center; border: 3px dashed var(--accent); border-radius: 22px; background: rgba(12, 12, 13, .72);
  color: #fff; font-size: 26px; font-weight: 800; text-align: center; padding: 20px;
}
.jobs { display: flex; flex-direction: column; gap: 10px; }
.job { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.job-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.job-ico svg { width: 16px; height: 16px; }
.job.done .job-ico { background: var(--ok-soft); color: var(--ok); }
.job.error .job-ico { background: var(--err-soft); color: var(--err); }
.job-main { flex: 1; min-width: 0; }
.job-main > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-main .bar { margin-top: 6px; }
.job-main .bar span { transition: width .6s ease; }
.job .badge { margin-left: 4px; }
.one-model { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.one-model > span:first-child { display: flex; align-items: center; gap: 8px; }
.one-model input { width: auto; }
.link-btn { border: 0; background: none; color: var(--info); font-size: 11px; font-weight: 700; cursor: pointer; padding: 0 0 0 6px; text-transform: none; letter-spacing: 0; }
.job .job-del { flex: none; padding: 6px; color: var(--muted); }
.job .job-del:hover { color: var(--err); }
.job-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
@media (max-width: 760px) { .job { flex-wrap: wrap; } .job .btn:not(.job-del) { width: 100%; } .job .job-del { margin-left: auto; } }
.drop .big { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--navy); color: var(--accent-2); }
.drop .big svg { width: 30px; height: 30px; }
.drop h2 { font-size: 20px; margin-bottom: 4px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.step { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.step b { display: block; font-size: 13px; margin-bottom: 2px; }
.step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; font-weight: 700; font-size: 12px; margin-bottom: 8px; }
.step.active { border-color: var(--accent); }
.step.active .n { background: var(--accent); color: #fff; }
.step.done .n { background: var(--ok); color: #fff; }
.spinner { width: 18px; height: 18px; border: 2.5px solid #fde68a; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Timeline E-Rechnungspflicht */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline .year { font-weight: 800; color: var(--accent); }
.timeline .now .year { color: var(--ok); }

/* Filter chips */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.chips { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.chips button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chips button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.toolbar input { max-width: 280px; }
select.status { width: auto; padding: 4px 8px; font-size: 13px; border-radius: 8px; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); font-size: 13px; animation: pop .2s ease-out; }
.toast.error { background: #7f1d1d; }
.toast.ok { background: #14532d; }
.toast ul { margin: 6px 0 0; padding-left: 18px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

pre.code { background: var(--navy); color: #e2e8f0; padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 13px; margin: 8px 0; }

/* ---------- Dashboard-Bausteine (BauGrid-Stil) ---------- */
.small { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.grid-2b { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.proj-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 16px; scrollbar-width: thin; }
.proj-tabs button { border: 0; background: none; padding: 9px 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.proj-tabs button:hover { color: var(--text); }
.proj-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }

.week { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.day { flex: 1; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 6px 0 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.day small { color: var(--muted); font-size: 11px; }
.day b { font-size: 17px; }
.day i { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.day i.has { background: var(--ok); }
.day.today b { color: var(--accent); }
.day.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.day.on small, .day.on b { color: #fff; }
.day.on i.has { background: #fff; }
.btb-entry { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.btb-entry:hover { border-color: #fca5a5; }
.btb-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.btb-entry ul { margin: 6px 0 0; padding-left: 18px; color: #334155; }

.tasks { display: flex; flex-direction: column; gap: 12px; }
.task { cursor: pointer; }
.task-top { display: flex; align-items: center; gap: 8px; }
.task-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pct { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.bar { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bar.slim { height: 5px; width: 80px; display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }

.note-add { display: flex; gap: 6px; margin-bottom: 10px; }
.notes, .points, .team { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.notes li:last-child, .points li:last-child, .team li:last-child { border-bottom: 0; }
.notes .icon-btn { float: right; padding: 2px; margin-top: -2px; }
.points li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.points li:hover .grow { color: var(--accent); }
.team li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.presence { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot.away { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.date-chip { width: 44px; text-align: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11px; line-height: 1.1; padding: 5px 0; flex: none; }
.date-chip b { display: block; font-size: 16px; }
.mini-kpi { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.mini-kpi span { color: var(--muted); font-size: 12px; font-weight: 600; }
.mini-kpi b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-kpi small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.mini-kpi.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini-kpi.dark span, .mini-kpi.dark small { color: #a1a1aa; }

/* ---------- Modul-Listen & Dialog ---------- */
tfoot td { border-top: 2px solid var(--border); background: var(--surface-2); }
.due-over { color: var(--accent); font-weight: 700; }
.due-soon { color: var(--warn); font-weight: 600; }
.modal-back { position: fixed; inset: 0; background: rgba(12, 12, 13, .45); z-index: 45; display: grid; place-items: center; padding: 16px; animation: pop .15s ease-out; }
.modal { background: var(--surface); border-radius: 16px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.modal .card-head { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-foot { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.check { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-weight: 500; }
.check input { width: auto; }
.range { display: flex; align-items: center; gap: 10px; }
.range input { padding: 0; accent-color: var(--accent); }
.range output { min-width: 44px; font-weight: 700; }
.calc { padding: 8px 11px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border); font-weight: 600; min-height: 38px; }
.clock-form { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 10px; }
.running { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.run { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); }
.elapsed { font-weight: 700; font-size: 15px; }

/* ---------- Controlling, Berechtigungen, Guide ---------- */
.lnk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: 13px; }
.lnk input { width: 80px; }
table.perm td, table.perm th { padding: 6px 8px; }
.perm-group td { background: var(--surface-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.perm-area { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.perm-area svg { width: 16px; height: 16px; color: var(--ic); }
select.lvl { padding: 4px 6px; font-size: 12.5px; border-radius: 8px; min-width: 112px; }
select.lvl[data-lvl="Bearbeiten"] { background: var(--ok-soft); border-color: #bbf7d0; color: #166534; }
select.lvl[data-lvl="Lesen"] { background: var(--info-soft); border-color: #bfdbfe; color: #1e40af; }
select.lvl[data-lvl="Kein Zugriff"] { background: #f4f4f5; color: #71717a; }
.guide { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.guide .card-head { border-bottom: 0; }
.guide details[open] .card-head { border-bottom: 1px solid var(--border); }
.guide .card-body { line-height: 1.65; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; margin-right: 10px; }

/* ---------- Leistungen (Excel-Ersatz) ---------- */
.lv-card .card-head { gap: 12px; }
.lv-vat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lv-vat select { width: auto; padding: 5px 8px; font-size: 13px; }
.lv-toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
table.lv { border-collapse: collapse; }
table.lv th { background: #18181b; color: #fff; border: 0; }
table.lv td { padding: 3px 4px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
table.lv input, table.lv select { padding: 5px 7px; border-radius: 6px; border-color: transparent; background: transparent; }
table.lv input:hover { border-color: var(--border); }
table.lv input:focus, table.lv select:focus { background: #fff; border-color: var(--accent); }
table.lv .num-in { text-align: right; font-variant-numeric: tabular-nums; }
table.lv input[readonly] { color: var(--info); font-weight: 600; cursor: default; }
.lv-detail { font-size: 12px; color: var(--muted); margin-top: 1px; }
.lv-gp { padding-top: 9px !important; font-weight: 600; white-space: nowrap; }
.lv-act { white-space: nowrap; text-align: right; }
.lv-act .icon-btn { display: inline-flex; padding: 5px; font-weight: 700; }
.lv-act .icon-btn.on { color: var(--info); }
.lv-act sup { font-size: 9px; margin-left: 1px; }
.lv-title td { background: #f6f7f9; }
.lv-title .lv-tline { display: flex; gap: 6px; align-items: center; }
.lv-title .lv-tdesc { font-weight: 700; flex: 1; }
.lv-title select { width: auto; font-size: 12px; color: var(--muted); }
.lv-title.lvl1 td { background: #ececf0; } .lv-title.lvl1 .lv-tdesc { font-size: 15px; }
.lv-title.lvl2 .lv-tline { padding-left: 10px; } .lv-title.lvl3 .lv-tline { padding-left: 20px; } .lv-title.lvl4 .lv-tline { padding-left: 30px; }
.lv-title [data-sum] { color: var(--text); font-weight: 800; }
.lv-sum { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--muted); font-size: 13px; cursor: pointer; }
.lv-sum input { width: auto; accent-color: var(--accent); }
.lv-text input { font-style: italic; }
.lv-am > td { background: #f0f7ff; }
table.am { margin: 4px 0 8px; background: #fff; border: 1px solid #dbeafe; border-radius: 8px; }
table.am th { background: #eff6ff !important; color: #1e40af !important; font-size: 10px; padding: 5px 6px; }
table.am td { padding: 2px 4px; border-bottom: 1px solid #eef2f7; }
table.am tfoot td { border-bottom: 0; padding: 5px 6px; }
.err-txt { color: var(--accent); font-weight: 700; }
.lv-help { padding: 8px 14px 12px; margin: 0; }
.lv-help svg { width: 13px; height: 13px; vertical-align: -2px; }
table.lv tfoot td { background: var(--surface-2); padding: 9px 6px; border-top: 2px solid var(--border); }
.ded { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; margin-bottom: 6px; }
.ded .num-in { text-align: right; }
.lbl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.small-select { margin-top: 6px; font-size: 13px; padding: 5px 8px; color: var(--muted); }

/* ---------- Anmeldung (BauGrid-Stil) ---------- */
[hidden] { display: none !important; }
.auth {
  min-height: 100vh; color: #fff;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 72%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 82%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1200px 600px at 20% 110%, rgba(227,6,19,.28), transparent 60%),
    linear-gradient(160deg, #0b0d12 0%, #12151d 55%, #1b1012 100%);
  background-size: 220px 220px, 260px 260px, 300px 300px, 240px 240px, 280px 280px, auto, auto;
}
.auth-wrap { display: flex; min-height: 100vh; }
.auth-hero { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 56px; }
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand img { width: 54px; height: auto; border-radius: 6px; }
.auth-brand b { display: block; font-size: 22px; font-weight: 800; }
.auth-brand small { display: block; color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.auth-claim h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; font-weight: 800; max-width: 640px; letter-spacing: -.02em; }
.auth-claim h1 span { color: var(--accent-2); }
.auth-claim p { color: #cbd5e1; font-size: 18px; margin: 18px 0 26px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: #e5e7eb; }
.auth-points svg { width: 18px; height: 18px; color: var(--accent-2); }
.auth-foot { color: #6b7280; font-size: 12px; margin: 0; }
.auth-side { width: 500px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 430px; background: #fff; color: var(--text); border-radius: 20px; padding: 26px 28px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: transparent; padding: 8px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form h2 { font-size: 22px; font-weight: 800; }
.auth-form p { margin: 0 0 8px; }
.auth-form label:not(.check) { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 8px; }
.auth-form input { padding: 11px 13px; font-size: 15px; }
.auth-form .check { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: 14px; }
.auth-form .check input { width: auto; accent-color: var(--accent); }
.auth-form .btn.block { width: 100%; justify-content: center; padding: 12px; font-size: 15px; margin-top: 8px; }
.auth-form .center { text-align: center; margin-top: 10px; }
.auth-form .hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.auth-error { background: var(--err-soft); color: #991b1b; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 6px; cursor: pointer; }
.pw-eye svg { width: 18px; height: 18px; display: block; }
.code-input { font-family: ui-monospace, Consolas, monospace; font-size: 20px !important; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.strength { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; margin-top: 6px; }
.strength span { display: block; height: 100%; width: var(--s, 0%); background: var(--err); transition: width .2s; }
.strength[data-level="ok"] span { background: var(--warn); }
.strength[data-level="strong"] span { background: var(--ok); }
.invite-who { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 6px 0 4px; }
.invite-who small { display: block; color: var(--muted); }
.done-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 4px auto 6px; }
.done-badge svg { width: 34px; height: 34px; }
.auth-form:has(.done-badge) h2, .auth-form:has(.done-badge) > p { text-align: center; }
.hs-tip { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-size: 14px; }
.hs-tip ol { margin: 6px 0 0; padding-left: 20px; }
.ios-share { width: 16px; height: 16px; vertical-align: -3px; color: #2563eb; }

/* Benutzer-Karte in der Seitenleiste */
.user-card { justify-content: space-between; }
.user-link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-link b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-out { color: #a1a1aa; }
.user-out:hover { background: rgba(255,255,255,.1); color: #fff; }
.banner.warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }

/* Zugangskarte (Bildschirm und Druck) */
.access-card { border: 2px solid #111; border-radius: 16px; overflow: hidden; background: #fff; color: #111; }
.ac-head { display: flex; align-items: center; gap: 12px; background: #0c0c0d; color: #fff; padding: 12px 16px; }
.ac-head img { width: 40px; height: auto; }
.ac-head b { display: block; font-size: 17px; }
.ac-head small { color: #fca5a5; font-weight: 600; }
.ac-body { display: grid; grid-template-columns: 210px 1fr; gap: 18px; padding: 16px; align-items: start; }
.ac-qr svg { width: 210px; height: 210px; display: block; }
.ac-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.ac-info table td { padding: 3px 8px 3px 0; border: 0; }
.ac-info table td:first-child { color: #555; font-size: 13px; }
.ac-steps { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.ac-foot { border-top: 1px dashed #bbb; padding: 9px 16px; font-size: 11.5px; color: #444; }
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; padding: 10mm; }
  #print-area .access-card { width: 175mm; break-inside: avoid; }
  body { background: #fff; }
}

/* Zeiterfassung: Protokoll und Stempeluhr */
.form-extra { border-top: 1px solid var(--border); padding-top: 4px; }
.stamp-log h3 { font-size: 13px; display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stamp-log h3 svg, .stamp-log svg { width: 14px; height: 14px; vertical-align: -2px; }
.stamp-log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stamp-log li { border-left: 3px solid var(--info); background: var(--surface-2); border-radius: 0 8px 8px 0; padding: 7px 10px; font-size: 13px; }
.stamp-log li.kommen, .stamp-log li.gehen { border-left-color: var(--ok); }
.stamp-log li.bearbeitet { border-left-color: var(--accent); }
.stamp-log .changes { margin-top: 3px; } .stamp-log s { color: var(--muted); }
.card-head .muted svg, .card-head .small svg { width: 14px; height: 14px; vertical-align: -2px; }
.clock-self { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
#geo-note svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--warn); }
.drive-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.drive-form select { width: auto; min-width: 160px; }
.drive-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.drive-label svg { width: 18px; height: 18px; color: var(--info); }
.drive-form .chips { align-items: center; flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 5px 12px; border-radius: 7px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chip input:focus-visible + span { outline: 2px solid var(--info); }
.drive-form .chips input[type=number] { width: 84px; padding: 5px 8px; }

/* Fuhrpark / Fahrzeugakte */
.back-link { display: inline-block; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.vehicle-head { align-items: center; }
.plate { display: inline-block; font-family: "Arial Narrow", Arial, sans-serif; font-weight: 800; font-size: 30px; letter-spacing: .06em;
  border: 3px solid #111; border-radius: 8px; padding: 2px 14px 2px 34px; background: #fff linear-gradient(90deg, #1d4ed8 0 24px, transparent 24px);
  color: #111; line-height: 1.25; }
.deadline-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dl-tile { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.dl-tile span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dl-tile b { display: block; font-size: 18px; margin: 3px 0 1px; }
.dl-tile small { color: var(--muted); }
.dl-tile.ok { border-left-color: var(--ok); }
.dl-tile.soon { border-left-color: var(--warn); background: #fffbeb; }
.dl-tile.soon small { color: #92400e; font-weight: 600; }
.dl-tile.over { border-left-color: var(--accent); background: #fef2f2; }
.dl-tile.over small { color: var(--accent); font-weight: 700; }
.damage-list { display: flex; flex-direction: column; gap: 10px; }
.damage { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.damage-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.damage-text { margin: 6px 0 2px; }
.damage-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.damage-actions svg { width: 15px; height: 15px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.doc-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.doc-list li a { display: inline-flex; align-items: center; gap: 6px; }
.doc-list li a svg { width: 16px; height: 16px; color: var(--accent); }
.doc-list .icon-btn { margin-left: auto; }
.doc-upload { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-upload select { width: auto; }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-svg svg { width: 150px; height: 150px; display: block; }
.labels { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.vlabel { display: flex; gap: 4mm; align-items: center; border: 1.5px dashed #888; border-radius: 4mm; padding: 4mm; break-inside: avoid; }
.vl-qr svg { width: 34mm; height: 34mm; display: block; }
.vl-txt small { color: #555; font-size: 9pt; }
.vl-txt .plate { font-size: 18pt; padding: 0 8px 0 22px; background: #fff linear-gradient(90deg, #1d4ed8 0 16px, transparent 16px); margin: 2mm 0 1mm; }
.vl-model { font-size: 10pt; font-weight: 600; }
.vl-hint { font-size: 8.5pt; color: #333; margin-top: 2mm; }
.chip { position: relative; }
/* Einsatzplanung */
.week-nav { display: flex; gap: 8px; }
.plan-grid { min-width: 860px; table-layout: fixed; }
.plan-grid th:first-child, .plan-grid td.pg-name { width: 170px; }
.plan-grid th.is-today, .plan-grid td.is-today { background: #fff7ed; }
.plan-grid tr.is-me td { box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, .04); }
.pg-cell { vertical-align: top; height: 64px; }
.pg-cell.editable { cursor: pointer; }
.pg-cell.editable:hover { background: var(--surface-2); }
.pg-add { color: var(--muted); opacity: 0; font-size: 20px; font-weight: 300; }
.pg-cell:hover .pg-add { opacity: 1; }
.pchip { display: block; border-left: 4px solid var(--c, #64748b); background: color-mix(in srgb, var(--c, #64748b) 10%, transparent);
  border-radius: 6px; padding: 4px 7px; font-size: 13px; line-height: 1.3; overflow: hidden; }
.pchip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip small { display: block; color: var(--muted); }
.pchip .pnote { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip.abw { border-left-color: #94a3b8; background: repeating-linear-gradient(45deg, #f1f5f9 0 6px, #e2e8f0 6px 12px); color: #475569; font-weight: 600; }
.my-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.my-day { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.my-day > span:first-child { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.my-day .wd { color: var(--text); font-size: 15px; }
/* aktueller Tag: Wochentag eingekreist (Wochenplan, Mein Einsatz) */
.wd-today { border: 2px solid var(--warn); border-radius: 999px; padding: 1px 9px; }
.site-day .card-head h2 { display: flex; align-items: center; gap: 10px; }
.my-day a svg { width: 13px; height: 13px; vertical-align: -2px; }
.site-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.site-day.is-today { outline: 2px solid var(--warn); }
.site-card { border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.site-card svg { width: 14px; height: 14px; vertical-align: -2px; }
.site-people { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 3px; }
.site-people span { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; font-size: 13px; }
.site-abw { margin-top: 6px; }
.pick-days, .pick-team { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pick-days .chip span, .pick-team .chip span { border: 1px solid var(--border); background: var(--surface-2); }
.pick-days .chip input, .pick-team .chip input { position: absolute; opacity: 0; }
.pick-days .chip input:checked + span, .pick-team .chip input:checked + span { background: var(--navy, #111); color: #fff; }
.screen-link .qr-svg svg { width: 130px; height: 130px; }
.scr-form { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.scr-form h3 { font-size: 15px; margin: 0; }
.scr-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.scr-mode { display: flex; align-items: center; gap: 8px; }
.scr-mode input { width: auto; }
.scr-row { padding-left: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.scr-row input[type=number] { width: 64px; }
.scr-row.off { opacity: .4; pointer-events: none; }
#scr-preview { margin: 0; font-weight: 600; color: var(--text); }
@media (max-width: 1100px) { .site-days { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-days, .my-plan { grid-template-columns: 1fr; } }
.list-thumb { position: relative; display: inline-block; }
.list-thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.list-thumb b { position: absolute; right: -6px; top: -6px; background: var(--navy, #111); color: #fff; font-size: 10px; border-radius: 10px; padding: 1px 5px; }
.form-photos .lbl { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 6px; }
.form-photos .lbl svg, .form-photos .btn svg { width: 15px; height: 15px; }
.form-photos .thumbs { margin-bottom: 8px; }
.thumbs img.pending { opacity: .6; outline: 2px dashed var(--info); }
/* Jahres-Rundcheck */
.check-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.check-group { font-size: 14px; margin: 14px 0 6px; }
.check-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.seg { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; flex-shrink: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-ok input:checked + span { background: var(--ok); color: #fff; }
.seg-mangel input:checked + span { background: var(--accent); color: #fff; }
.seg-na input:checked + span { background: #64748b; color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--info); }
.check-confirm { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 600; }
.check-confirm input { width: auto; }
.check-print { font-size: 10.5pt; color: #111; }
.check-print h1 { font-size: 16pt; margin: 0 0 2mm; }
.check-print h3 { font-size: 11pt; margin: 4mm 0 1mm; }
.check-print table { width: 100%; border-collapse: collapse; }
.check-print td { border: 1px solid #999; padding: 1.5mm 2mm; }
.check-print .cp-items td:last-child { width: 30mm; text-align: center; font-weight: 700; }
.check-print .cp-mangel { color: #b91c1c; }
.cp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; margin-top: 16mm; }
.cp-sign div { border-top: 1px solid #111; padding-top: 1mm; font-size: 9pt; }
@media (max-width: 560px) { .check-row { flex-direction: column; align-items: flex-start; } }
@media (max-width: 1100px) { .deadline-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .deadline-tiles { grid-template-columns: 1fr 1fr; } .plate { font-size: 24px; } .vehicle-head .head-actions { width: 100%; } }

/* Handy-Anleitung */
.pg-tabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.pg-tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.pg-tabs button.on { background: var(--navy); color: #fff; }
.pg-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pg-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pg-step figure { margin: 0; background: linear-gradient(160deg, #eef2f7, #e2e8f0); display: grid; place-items: center; padding: 16px 12px 0; height: 330px; overflow: hidden; }
.pg-step figure img, .pg-step figure svg { width: 190px; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(15,23,42,.25)); }
.shot-frame { width: 190px; border: 9px solid #1c1c1e; border-radius: 28px; overflow: hidden; background: #fff; align-self: start; box-shadow: 0 10px 18px rgba(15,23,42,.25); }
.shot-frame img { width: 100%; display: block; filter: none !important; }
.pg-step .pg-txt { padding: 12px 14px 14px; font-size: 14px; }
.pg-step .pg-txt > b:first-child { display: block; font-size: 15px; margin-bottom: 3px; }
.pg-tabs svg { width: 16px; height: 16px; vertical-align: -3px; }
.pg-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.pg-step .step-n { margin-right: 6px; }

/* ---------- Ansicht-Umschalter ---------- */
select.view-sel { min-width: 118px; }
.view-switch { display: flex; gap: 4px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; padding: 4px; margin-top: 10px; }
.view-switch button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent;
  color: var(--side-text); padding: 7px 6px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.view-switch button svg { width: 15px; height: 15px; }
.view-switch button.on { background: var(--accent); color: #fff; }
.main .view-switch { background: var(--surface); border-color: var(--border); margin: 0; }
.main .view-switch button { color: var(--muted); font-size: 17px; padding: 10px 18px; }
.main .view-switch button.on { color: #fff; }

/* ---------- Einfache Ansicht: groß, kontrastreich, wenig ---------- */
body.simple { --muted: #334155; --border: #cbd5e1; --bg: #f1f5f9; }
body.simple .main #view, body.simple .modal, body.simple .toasts { zoom: 1.18; }
body.simple .nav-item { font-size: 17px; padding: 13px 12px; font-weight: 600; }
body.simple .nav-item svg { width: 22px; height: 22px; color: #fff; }
body.simple .menu-btn { font-size: 20px; padding: 8px 14px; }
body.simple .menu-btn::after { content: " Menü"; font-size: 16px; font-weight: 700; margin-left: 4px; }
body.simple .topbar-title { font-size: 18px; }
body.simple .btn { min-height: 40px; }
body.simple .page-head .sub, body.simple .muted { color: #334155; }
body.simple #mod-csv { display: none; }   /* Export braucht hier niemand */
.s-hello h1 { font-size: 30px; font-weight: 800; }
.s-date { font-size: 18px; color: #334155; margin: 2px 0 18px; }
.s-card { background: var(--surface); border: 2px solid var(--border); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.s-card h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: #475569; margin-bottom: 6px; }
.s-card h3 { font-size: 16px; margin: 16px 0 8px; }
.s-today { border-color: #0f766e; background: #f0fdfa; }
.s-big { font-size: 28px; font-weight: 800; line-height: 1.2; }
.s-muted { color: #64748b; }
.s-line { font-size: 18px; margin-top: 6px; }
.s-line svg { width: 18px; height: 18px; vertical-align: -3px; }
.s-note { background: #fef9c3; border-radius: 10px; padding: 6px 10px; display: inline-block; }
.s-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; border-radius: 16px; cursor: pointer;
  font-size: 26px; font-weight: 800; letter-spacing: .04em; padding: 22px 16px; margin-top: 12px; color: #fff; }
.s-btn svg { width: 28px; height: 28px; }
.s-btn-start { background: #15803d; box-shadow: 0 6px 0 #14532d; }
.s-btn-stop { background: #b91c1c; box-shadow: 0 6px 0 #7f1d1d; }
.s-btn-dark { background: #0f172a; font-size: 20px; padding: 16px; }
.s-btn:active { transform: translateY(3px); box-shadow: none; }
.s-btn.busy { opacity: .6; }
.s-drive { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s-drive button { font-size: 20px; font-weight: 700; padding: 14px 4px; border-radius: 12px; border: 2px solid #1d4ed8; background: #eff6ff; color: #1e3a8a; cursor: pointer; }
.s-drive button:disabled { opacity: .5; }
.s-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.s-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: 18px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); min-height: 130px; }
.s-tile b { font-size: 21px; line-height: 1.2; }
.s-tile small { font-size: 16px; color: #334155; }
.s-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 6px; }
.s-ico svg { width: 26px; height: 26px; }
.s-red { --c: #dc2626; } .s-orange { --c: #ea580c; } .s-blue { --c: #2563eb; } .s-teal { --c: #0d9488; }
.s-green { --c: #16a34a; } .s-purple { --c: #7c3aed; } .s-slate { --c: #475569; }
.s-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 17px; font-weight: 600; }
@media (max-width: 760px) {
  body.simple .main #view { zoom: 1.06; }
  body.simple .modal, body.simple .toasts { zoom: 1; }
  body.simple .modal { font-size: 16px; }
  .s-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .s-tile { padding: 14px; min-height: 120px; }
  .s-tile b { font-size: 18px; }
  .s-hello h1 { font-size: 26px; }
  .s-drive { grid-template-columns: 1fr 1fr; }
  .s-drive button { white-space: nowrap; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1280px) {
  .editor.with-pdf { grid-template-columns: minmax(0, 1fr) 320px; }
  .editor.with-pdf .pdf-pane { grid-column: 1 / -1; grid-row: 1; height: 70vh; position: static; }
}
@media (max-width: 1100px) {
  .grid-2, .grid-2b, .grid-3, .editor { grid-template-columns: 1fr; }
  .clock-form { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
  .grid-4, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; z-index: 40; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 30; }
  .main { padding: 16px; }
  .menu-btn { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; border-radius: 10px; padding: 6px 12px; font-size: 18px; cursor: pointer; }
  .f, .f.s2, .f.s3, .f.s4, .f.s5, .f.s6, .f.s8, .f.s9 { grid-column: span 12; }
  .steps { grid-template-columns: 1fr 1fr; }
  .auth-wrap { flex-direction: column; }
  .auth-hero { padding: 22px 20px 6px; flex: 0 0 auto; }
  .auth-claim, .auth-foot { display: none; }
  .auth-side { width: 100%; padding: 12px 14px 28px; align-items: flex-start; }
  .auth-card { padding: 20px 18px; border-radius: 18px; }
  .ac-body { grid-template-columns: 1fr; justify-items: center; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock-form { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 22px; }

  /* ---------- Handy: Kopfleiste, Karten statt Tabellen, Dialoge als Vollbild ---------- */
  .main { padding: 0 12px calc(24px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; margin: 0 -12px 14px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--side-bg); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
  .topbar-brand img { display: block; height: 28px; width: auto; }
  .topbar-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-head { margin-bottom: 14px; gap: 10px; }
  .page-head > div:first-child { flex: 1 1 100%; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1 1 auto; justify-content: center; }
  #mod-csv { display: none; }   /* Excel-Export am Handy unnötig */
  .card-head { padding: 12px 14px; flex-wrap: wrap; gap: 2px 10px; }
  .card-body { padding: 14px; }
  .toolbar { flex-wrap: wrap; padding: 10px 12px; }
  .toolbar select, .toolbar input { max-width: none !important; flex: 1 1 100%; }
  /* iPhone zoomt bei Eingabefeldern unter 16 px automatisch hinein – deshalb 16 px */
  input, select, textarea { font-size: 16px; }

  table.cardify thead { display: none; }
  table.cardify, table.cardify tbody, table.cardify tfoot { display: block; }
  table.cardify tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); position: relative; }
  table.cardify tbody tr:active { background: var(--surface-2); }
  table.cardify td { display: block; border: 0; padding: 2px 0; text-align: left !important; min-width: 0; overflow-wrap: anywhere; }
  table.cardify td::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  table.cardify td.td-title { grid-column: 1 / -1; font-size: 16px; font-weight: 700; padding-bottom: 4px; }
  table.cardify td.td-title::before { display: none; }
  table.cardify td.td-empty { display: none; }
  table.cardify td.td-media { position: absolute; right: 14px; top: 10px; }
  table.cardify td.td-media::before { display: none; }
  table.cardify td.td-media + td.td-title, table.cardify tr:has(.td-media) .td-title { padding-right: 56px; }
  table.cardify td.empty { grid-column: 1 / -1; }
  table.cardify td.empty::before { display: none; }
  table.cardify tfoot tr { background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
  table.cardify tfoot td.td-sumlabel { grid-column: 1 / -1; }
  .table-wrap:has(table.cardify) { overflow: visible; }

  .modal-back { padding: 0; place-items: end stretch; }
  .modal { width: 100% !important; max-height: 100dvh; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
  .modal > form, .modal > .card-body { flex: 1 0 auto; }
  .modal .card-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .modal-foot { flex-wrap: wrap; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); margin-top: auto; }
  .modal-foot .grow { display: none; }
  .modal-foot .btn { flex: 1 1 0; justify-content: center; min-height: 46px; }
  .modal-foot .btn.danger { flex: 0 0 auto; }
  .modal-foot > .muted, .modal-foot > span.small { flex: 1 1 100%; order: -1; }
  .toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }

  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .quick a { padding: 12px 6px; }
  .quick .ico { width: 34px; height: 34px; margin-bottom: 6px; }
  .quick b { font-size: 12.5px; }
  .quick span { display: none; }
  .btn { min-height: 40px; }
  .desk-only { display: none !important; }
  .plan-actions .chips { flex: 1 1 100%; }
  .plan-actions .chips button { flex: 1; }
  .week-nav { display: flex; gap: 6px; flex: 1 1 100%; }
  .week-nav .btn:nth-child(2) { flex: 1; }
  .plan-actions .btn.primary { flex: 1 1 100%; }
  table.cardify td.td-actions { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-start; }
  table.cardify td.td-actions::before { display: none; }
  table.cardify select.status { width: 100%; }
  .sidebar { width: min(300px, 86vw); }
}


/* Rechnungsdesign (Organisation) – kleine Skizze je Design, aus den Bausteinen zusammengesetzt (--c = Designfarbe) */
.design-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.design-opt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px; border: 2px solid var(--border);
  border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.design-opt:hover { border-color: #cbd5e1; }
.design-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.design-thumb { --c: #e30613; position: relative; width: 100%; height: 120px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
  margin-bottom: 6px; overflow: hidden; }
.design-thumb i { position: absolute; display: block; }
/* 1 Kopf · 2 Info-Karte · 3 Tabellenkopf · 4 Zeilen · 5 Summe */
.design-thumb i:nth-child(1) { left: 8%; top: 6%; width: 36%; height: 8%; background: #9ca3af; border-radius: 2px; }
.design-thumb i:nth-child(2) { right: 8%; top: 22%; width: 34%; height: 18%; border-radius: 3px; background: color-mix(in srgb, var(--c) 10%, #fff); }
.design-thumb i:nth-child(3) { left: 8%; right: 8%; top: 48%; height: 7%; background: var(--c); }
.design-thumb i:nth-child(4) { left: 8%; right: 8%; top: 58%; height: 22%; background: repeating-linear-gradient(#fff 0 5px, #e5e7eb 5px 6px); }
.design-thumb i:nth-child(5) { right: 8%; top: 84%; width: 30%; height: 8%; background: var(--c); }
.design-thumb.h-bar::before, .design-thumb.h-line::before { content: ""; position: absolute; inset: 0 0 auto; height: 4%; background: var(--c); }
.design-thumb.h-line::before { height: 2%; }
.design-thumb.h-band::before, .design-thumb.h-dark::before { content: ""; position: absolute; inset: 0 0 auto; height: 18%; background: var(--c); }
.design-thumb.h-dark::before { background: #111827; border-bottom: 2px solid var(--c); }
.design-thumb.h-band i:nth-child(1), .design-thumb.h-dark i:nth-child(1) { background: #fff; }
.design-thumb.h-stripe::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4%; background: var(--c); }
.design-thumb.c-outline i:nth-child(2) { background: none; border: 1px solid var(--c); }
.design-thumb.c-plain i:nth-child(2) { background: none; border-top: 2px solid var(--c); border-radius: 0; }
.design-thumb.t-soft i:nth-child(3) { background: color-mix(in srgb, var(--c) 15%, #fff); }
.design-thumb.t-dark i:nth-child(3) { background: #111827; }
.design-thumb.t-line i:nth-child(3) { background: none; border-bottom: 2px solid var(--c); }
.design-thumb.zebra i:nth-child(4) { background: repeating-linear-gradient(#fff 0 5px, color-mix(in srgb, var(--c) 12%, #fff) 5px 10px); }
.design-thumb.tot-line i:nth-child(5) { background: none; border-top: 2px solid var(--c); }
.design-thumb.serif::after { content: "Aa"; position: absolute; left: 8%; top: 24%; font: 600 15px Georgia, serif; color: #374151; }
/* klassisch: Linien wie in Excel */
.design-thumb.h-klassisch i:nth-child(1) { border-bottom: 3px solid var(--c); }
.design-thumb.h-klassisch i:nth-child(2) { background: none; border: 1px solid #111; border-radius: 0; }
.design-thumb.h-klassisch i:nth-child(3) { background: none; border-bottom: 2px solid #111; }
.design-thumb.h-klassisch i:nth-child(4) { background: repeating-linear-gradient(90deg, #fff 0 18%, #111 18% calc(18% + 1px)); }
.design-thumb.h-klassisch i:nth-child(5) { background: none; border-bottom: 3px double #111; }
@media (max-width: 900px) { .design-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .design-pick { grid-template-columns: 1fr; } .design-thumb { height: 90px; } }