/* Yanik Auftragszentrale 2 – Navy #10263a, Orange #ef6c1a */
:root {
  --navy: #10263a; --navy-2: #1b3a55; --navy-3: #2b4d6b; --orange: #ef6c1a; --orange-2: #d85c0f; --orange-soft: #fff1e7;
  --bg: #f3f5f8; --card: #fff; --line: #dfe4ea; --line-2: #eef1f4; --text: #16222e; --muted: #5d6673;
  --ok: #1f8a4c; --ok-soft: #e6f5ec; --warn: #b26a00; --warn-soft: #fff4dc; --bad: #c0392b; --bad-soft: #fdecea; --info: #2463a6; --info-soft: #e8f1fb;
  --soft: #fafbfc; --line-strong: #c9d2dc; --ink: var(--navy); --ink-2: var(--navy-2); --ink-3: var(--navy-3);
  --r: 12px; --shadow: 0 1px 2px rgba(16, 38, 58, .06), 0 4px 14px rgba(16, 38, 58, .05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.45;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
[hidden] { display: none !important; }
a { color: var(--ink-2); }
h1 { font-size: 1.65rem; margin: 0 0 .2rem; line-height: 1.2; color: var(--ink); }
h2 { font-size: 1.12rem; margin: 0 0 .7rem; color: var(--ink); }
h3 { font-size: .98rem; margin: 1rem 0 .5rem; color: var(--ink); }
h2 small, h3 small { font-weight: 400; }
p { margin: 0 0 .7rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .big { font-size: 1.1rem; }
.bad-text { color: var(--bad); } .danger-text { color: var(--bad) !important; }
.pre { white-space: pre-wrap; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--orange-2); margin: 0 0 .25rem; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--orange); color: #fff; border: 1px solid var(--orange); border-radius: 9px; padding: .58rem 1rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; min-height: 40px; white-space: nowrap; }
button:hover, .button:hover { background: var(--orange-2); border-color: var(--orange-2); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary, .button.secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--line-2); }
button.danger { background: var(--bad); border-color: var(--bad); }
button.small, .button.small { min-height: 32px; padding: .3rem .7rem; font-size: .85rem; }
button.link, .link { background: none; border: 0; color: var(--ink-2); padding: 0; min-height: 0; font-weight: 600; text-decoration: underline; cursor: pointer; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: .35rem; min-height: 0; border-radius: 8px; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); border: 0; }
.icon-btn.light { color: #fff; } .icon-btn.light:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.file-btn input { display: none; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.actions.wrap { margin: .6rem 0; }
.wide { width: 100%; }

/* Formulare */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .75rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .55rem .65rem; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-weight: 400; color: var(--text); background: var(--card); min-height: 40px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(239, 108, 26, .35); outline-offset: 1px; border-color: var(--orange); }
input[readonly] { background: var(--line-2); }
input.invalid { border-color: var(--bad); background: var(--bad-soft); }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; min-height: 0; margin: 0 .45rem 0 0; accent-color: var(--orange); transform: scale(1.15); }
input[type=color] { padding: .15rem; height: 40px; }
input[type=range] { padding: 0; accent-color: var(--orange); }
label.check { display: flex; align-items: flex-start; font-weight: 500; color: var(--text); gap: .1rem; }
label.check.big { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: 2fr .7fr 1fr 1.6fr; }
.inline { display: flex; gap: .4rem; align-items: stretch; } .inline input, .inline select { margin-top: .3rem; }
.form-error { color: var(--bad); font-weight: 600; margin: .5rem 0 0; min-height: 1em; }
.qty { width: 5.2rem; text-align: right; } .w-money { width: 6.6rem; text-align: right; } .w-size { width: 5.5rem; } .w-color { width: 8rem; }
.is-busy { opacity: .7; }
.inline-form { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; margin-top: .8rem; } .inline-form label { margin: 0; } .inline-form label.check { align-self: center; }

/* Anmeldung */
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; background: radial-gradient(circle at 20% 10%, #1b3a55, var(--navy) 55%); }
.login-card { background: #fff; width: min(440px, 100%); border-radius: 18px; padding: 2rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.login-logo { width: 220px; max-width: 70%; display: block; margin: 0 auto 1rem; }
.login-card h1 { margin-bottom: .6rem; } .login-card button:not(.link) { width: 100%; margin-top: .3rem; }
.code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.howto { padding-left: 1.2rem; } .howto li { margin-bottom: .8rem; }
.qr { width: 190px; margin: .6rem 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; } .qr svg { width: 100%; height: auto; display: block; }
.secret { display: inline-block; background: var(--line-2); padding: .3rem .5rem; border-radius: 6px; word-break: break-all; }
.codes { columns: 2; font-family: ui-monospace, monospace; font-size: 1.05rem; padding-left: 1.2rem; }

/* Grundgerüst */
/* Seitenleiste links (seit 4.9.0), schmale Kopfzeile oben im Inhalt */
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--navy); color: #c9d4df; padding: 1rem .7rem .7rem; z-index: 35; }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; white-space: nowrap; flex: none; } .brand img { height: auto; width: 100%; max-width: 196px; display: block; }
.side-brand { padding: 0 .45rem .9rem; }
#nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; min-height: 0; margin: 0 -.2rem; padding: 0 .2rem; scrollbar-width: thin; scrollbar-color: #2b4d6b transparent; }
.nav-title { margin: .95rem .65rem .25rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #7f94a8; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: .65rem; color: #dbe4ec; text-decoration: none; padding: .48rem .65rem; border-radius: 8px; font-weight: 550; font-size: .93rem; min-height: 38px; }
.nav-item .i { width: 17px; height: 17px; opacity: .85; } .nav-item span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: var(--navy-2); color: #fff; }
.nav-item.active { background: var(--orange); color: #fff; } .nav-item.active .i { opacity: 1; }
.nav-count { background: #24445f; color: #fff; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; min-width: 22px; text-align: center; }
.nav-count.late { background: var(--bad); } .nav-item.active .nav-count { background: rgba(255, 255, 255, .25); }
.side-me { border-top: 1px solid #24445f; margin-top: .6rem; padding-top: .6rem; }
.side-me .me { width: 100%; justify-content: flex-start; }
.side-me .me-name { flex: 1; }
.me .caret { width: 14px; height: 14px; opacity: .7; transition: transform .15s; } .dd.open > .me .caret { transform: rotate(180deg); }
.dd-menu.up { top: auto; bottom: calc(100% + 6px); left: 0; right: 0; }
.nav-backdrop { display: none; }
.shell { min-width: 0; display: flex; flex-direction: column; }
.shell > main { width: 100%; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .8rem; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: .55rem 1.6rem; min-height: 60px; }
.top-brand { display: none; } .side-brand .brand-icon { display: none; }
/* Schmale Bildschirme (Tablet, kleiner Laptop): Seitenleiste nur mit Symbolen */
@media (min-width: 861px) and (max-width: 1180px) {
  .app-shell { grid-template-columns: 68px minmax(0, 1fr); }
  .sidebar { padding: .8rem .5rem .6rem; }
  .side-brand { padding: 0 0 .8rem; justify-content: center; } .side-brand .brand-full { display: none; } .side-brand .brand-icon { display: block; width: 40px; }
  .nav-title { height: 1px; margin: .55rem .4rem; background: #24445f; overflow: hidden; color: transparent; }
  .nav-item { justify-content: center; padding: .55rem 0; position: relative; } .nav-item span:first-of-type { display: none; } .nav-item .i { width: 20px; height: 20px; }
  .nav-count { position: absolute; top: 2px; right: 4px; font-size: .62rem; min-width: 17px; padding: 0 .25rem; }
  .side-me .me { justify-content: center; padding: .2rem 0; } .side-me .me-name, .side-me .caret { display: none; }
  .dd-menu.up { right: auto; min-width: 230px; }
}
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--card); color: var(--text); border-radius: 12px; box-shadow: 0 12px 34px rgba(16, 38, 58, .22); border: 1px solid var(--line); padding: .35rem; z-index: 40; }
.dd-menu.right { left: auto; right: 0; }
.dd.open > .dd-menu { display: block; }
.dd-menu a, .dd-menu > button { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; background: none; border: 0; min-height: 0; font-size: .93rem; justify-content: flex-start; }
.dd-menu a:hover, .dd-menu > button:hover, .dd-menu a:focus-visible { background: var(--orange-soft); color: var(--text); border: 0; }
.dd-menu a.active { background: var(--line-2); box-shadow: inset 3px 0 0 var(--orange); }
.dd-menu a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
#new-menu a { flex-direction: column; align-items: flex-start; gap: 0; }
.dd-title { margin: 0; padding: .45rem .7rem .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; } .dd-title small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8rem; }
.top-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; flex: none; }
.top-btn { background: var(--card); border: 1px solid var(--line); color: var(--ink); min-height: 40px; padding: .35rem .65rem; font-weight: 600; font-size: .9rem; position: relative; }
.top-btn:hover { background: var(--line-2); border-color: var(--line-strong); }
.new-btn { background: var(--orange); border-color: var(--orange); } .new-btn:hover { background: var(--orange-2); border-color: var(--orange-2); }
.search-btn { color: var(--muted); background: var(--soft); flex: 1; max-width: 520px; justify-content: flex-start; font-weight: 500; } .search-btn span { flex: 1; text-align: left; }
kbd { font-family: inherit; font-size: .72rem; border: 1px solid var(--line); border-radius: 5px; padding: .05rem .35rem; color: var(--muted); background: var(--card); }
.bell .badge { position: absolute; top: -5px; right: -5px; background: var(--orange); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; border: 2px solid #fff; }
.bell-panel { width: min(380px, 92vw); padding: 0; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid var(--line); } .bell-head .link { min-height: 0; padding: 0; }
.bell-list { max-height: 60vh; overflow: auto; }
.bell-list a { display: block; padding: .6rem .9rem; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none; border-radius: 0; }
.bell-list a:hover { background: var(--orange-soft); } .bell-list a.unread { background: #fff8f2; box-shadow: inset 3px 0 0 var(--orange); }
.bell-list b { display: block; font-size: .9rem; } .bell-list small { display: block; color: var(--muted); } .bell-list time { font-size: .75rem; color: var(--muted); }
.bell-list p { padding: 1rem .9rem; margin: 0; }
.bell-foot { display: block; padding: .6rem .9rem; font-size: .85rem; text-align: center; background: var(--soft); }
.bottom-bar { display: none; }
#modal.search-modal { width: min(640px, 96vw); margin-top: 8vh; vertical-align: top; }
.search-box input { font-size: 1.1rem; min-height: 48px; }
.search-results { max-height: 55vh; overflow: auto; margin: .5rem 0; }
.search-results a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.search-results a small { display: block; color: var(--muted); } .search-results a.sel, .search-results a:hover { background: var(--orange-soft); }
.sr-group { margin: .6rem 0 .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.notify-table td, .notify-table th { vertical-align: middle; } .notify-table .center { text-align: center; width: 110px; } .notify-table tr.grp td { background: var(--line-2); font-weight: 700; color: var(--ink); font-size: .85rem; }
.notify-table td small { display: block; color: var(--muted); } .notify-table input[type=radio] { width: 18px; height: 18px; min-height: 0; }
#menu-toggle { display: none; }
.me { background: none; border: 0; color: #fff; display: flex; align-items: center; gap: .45rem; padding: .2rem .4rem; min-height: 38px; font-weight: 500; }
.me:hover { background: rgba(255, 255, 255, .1); border: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.me-name { display: flex; flex-direction: column; text-align: left; line-height: 1.1; font-size: .88rem; } .me-name small { color: #aebbc8; }
.timer-badge { background: var(--ok); border-color: var(--ok); font-size: .82rem; min-height: 32px; padding: .2rem .6rem; font-variant-numeric: tabular-nums; }
main { max-width: 1320px; margin: 0 auto; padding: 1.3rem 1.2rem 3rem; }
.app-foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 0 0 1.5rem; }
.loading { padding: 2rem; text-align: center; color: var(--muted); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); } .empty h2 { color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: .2rem; text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.toolbar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; justify-content: space-between; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 1rem; overflow: hidden; }
.card.pad, .card .pad { padding: 1.1rem 1.2rem; } .pad-x { padding-left: 1.2rem; padding-right: 1.2rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .card > .card-head { padding: 1rem 1.2rem .4rem; } .card.pad > .card-head { padding: 0; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; background: #fbfcfd; margin: .6rem 0; }
.alert { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; background: var(--info-soft); border: 1px solid #c5dbf2; }
.alert.warn { background: var(--warn-soft); border-color: #f1d7a4; } .alert.bad { background: var(--bad-soft); border-color: #f2c2bd; } .alert.success { background: var(--ok-soft); border-color: #b9e0c8; } .alert.info { background: var(--info-soft); }
.alert p { margin: .3rem 0 0; }
.legend { color: var(--muted); font-size: .88rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-color: var(--orange); }
.settings-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; margin: .8rem 0 1.1rem; }
.settings-nav-group { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--card); padding: .65rem .7rem; }
.settings-nav-group h2 { margin: 0 0 .35rem; color: var(--muted); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.settings-nav-group > div { display: grid; gap: .15rem; }
.settings-nav-group a { display: block; min-width: 0; padding: .35rem .45rem; border-radius: 7px; color: var(--ink-2); font-size: .84rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.settings-nav-group a:hover { background: var(--line-2); }
.settings-nav-group a.active { color: var(--ink); background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.settings-disclosure > summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.settings-disclosure[open] > summary { margin-bottom: .8rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
@media (max-width: 1080px) { .settings-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .settings-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .settings-nav { grid-template-columns: 1fr; } }

/* Suche, Chips */
.search { position: relative; margin: 0 0 .8rem; flex: 1; min-width: 240px; max-width: 520px; }
.search .i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); margin-top: .15rem; }
.search input { padding-left: 2.2rem; margin: 0; }
.search.big { max-width: none; } .search.big input { font-size: 1.05rem; min-height: 48px; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { padding: .35rem .75rem; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
td { padding: .6rem .8rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
td small, .mini-main small, .mini-step small { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
tr.click { cursor: pointer; } tr.click:hover td { background: #fbf6f2; }
tr.inactive td { opacity: .55; } tr.warn-row td { background: #fffaf0; } tr.muted-row td { color: var(--muted); } tr.hl td { background: var(--orange-soft); }
table.compact td, table.compact th { padding: .4rem .55rem; }
tfoot td { border-top: 2px solid var(--line); background: var(--soft); }
table.orders tr.st-late td:first-child { box-shadow: inset 3px 0 0 var(--bad); } table.orders tr.st-done td { color: var(--muted); }
.line-edit input, .line-edit select, .line-edit textarea { margin: 0; min-height: 34px; padding: .35rem .5rem; } .line-edit td { vertical-align: middle; } .line-edit tr.locked { background: var(--soft); }

/* Status */
.pill { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); }
.pills { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .4rem; }
.due { display: inline-flex; flex-direction: column; font-weight: 600; white-space: nowrap; } .due small { font-weight: 500; }
.due.bad { color: var(--bad); } .due.warn { color: var(--warn); }
.order-head .due { display: inline; } .order-head .due small { display: inline; margin-left: .3rem; }

/* Übersicht */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1rem 0 .65rem; }
.section-intro h2 { margin: 0; font-size: 1.22rem; }
.dashboard-focus { margin-bottom: 1.1rem; }
.focus-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.focus-kpis .kpi { padding: 1rem 1.15rem; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.focus-kpis .kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 38, 58, .1); border-color: var(--line-strong); }
.dashboard-flow { margin: .2rem 0 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.55); }
.dashboard-flow summary { cursor: pointer; padding: .75rem 1rem; color: var(--ink); font-weight: 700; }
.dashboard-flow summary span { margin-left: .35rem; color: var(--muted); font-size: .86rem; font-weight: 450; }
.dashboard-flow[open] { padding: 0 .8rem .2rem; }
.dashboard-flow[open] summary { margin: 0 -.8rem .75rem; border-bottom: 1px solid var(--line); }
.dashboard-flow .kpis { margin-bottom: .5rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border-left: 4px solid var(--line); }
.kpi b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--ink); } .kpi span { font-size: .85rem; color: var(--muted); font-weight: 600; hyphens: auto; display: block; }
.kpi.bad { border-left-color: var(--bad); } .kpi.bad b { color: var(--bad); } .kpi.warn { border-left-color: var(--warn); } .kpi.ok { border-left-color: var(--ok); } .kpi.info { border-left-color: var(--info); } .kpi.zero { opacity: .6; }
.kpis.small .kpi b { font-size: 1.3rem; }
@media (max-width: 680px) { .focus-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .section-intro { align-items: flex-start; } .dashboard-flow summary span { display: block; margin: .15rem 0 0; } }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.2rem; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--text); }
.mini-list a:hover { background: #fbf6f2; } .mini-list a.st-late { box-shadow: inset 3px 0 0 var(--bad); }
.mini-step { text-align: right; font-weight: 600; font-size: .9rem; color: var(--ink-2); }

/* Auftragsakte */
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--navy); color: #fff; border-radius: var(--r); padding: .9rem 1.2rem; margin-bottom: .8rem; flex-wrap: wrap; }
.next-step small { display: block; color: #aebbc8; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; font-weight: 700; } .next-step b { font-size: 1.2rem; } .next-step span { display: block; color: #ffb4a8; font-size: .88rem; }
.next-step.late { background: linear-gradient(90deg, var(--navy), #4a2231); }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 1rem; gap: .3rem; overflow-x: auto; }
.stepper li { flex: 1; min-width: 110px; }
.stepper a { display: block; padding: .45rem .6rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.stepper li.done a { background: var(--ok-soft); border-color: #b9e0c8; color: var(--ok); } .stepper li.done a::before { content: "✓ "; }
.stepper li.current a { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-2); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1rem; align-items: start; }
.order-side .card.pad { padding: .9rem 1rem; } .order-side h3 { margin-top: 0; } .order-side textarea { margin-bottom: .4rem; }
section[id^=sec-] { scroll-margin-top: 70px; }
.checklist { list-style: none; padding: 0; margin: 0 0 .6rem; }
.checklist li { display: flex; flex-direction: column; padding: .5rem .6rem .5rem 2.1rem; position: relative; border-radius: 8px; }
.checklist li::before { content: ""; position: absolute; left: .55rem; top: .62rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c1cad4; }
.checklist li.done::before { background: var(--ok); border-color: var(--ok); } .checklist li.done::after { content: "✓"; position: absolute; left: .82rem; top: .5rem; color: #fff; font-size: .8rem; font-weight: 800; }
.checklist li span { color: var(--muted); font-size: .88rem; }
.status-box { border-radius: 10px; padding: .75rem .9rem; margin: .4rem 0 .8rem; border: 1px solid var(--line); background: var(--soft); } .status-box p { margin: .2rem 0 0; font-size: .9rem; }
.status-box.info { background: var(--info-soft); border-color: #c5dbf2; } .status-box.warn { background: var(--warn-soft); border-color: #f1d7a4; } .status-box.bad { background: var(--bad-soft); border-color: #f2c2bd; } .status-box.ok { background: var(--ok-soft); border-color: #b9e0c8; }
.versions { list-style: none; padding: 0; margin: 0; } .versions li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.versions li.current b { color: var(--orange-2); } .versions small { display: block; color: var(--muted); } .quote { font-style: italic; margin: .3rem 0 0; white-space: pre-line; }
.files .file { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; } .files .file a { font-weight: 600; text-decoration: none; } .files small { color: var(--muted); flex: 1; }
.press-grid { display: flex; gap: .6rem; flex-wrap: wrap; }
.press { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; background: var(--card); display: flex; flex-direction: column; } .press small { color: var(--muted); }
.timer-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; } .timer-row select { width: auto; margin: 0; }
.time-list { list-style: none; padding: 0; margin: .6rem 0 0; } .time-list li { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; border-top: 1px solid var(--line-2); } .time-list li span { flex: 1; } .time-list small { color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; max-height: 520px; overflow: auto; } .timeline li { padding: .5rem 0 .5rem .9rem; border-left: 2px solid var(--line); margin-left: .3rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .8rem; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.timeline p { margin: .1rem 0; font-size: .86rem; white-space: pre-wrap; } .timeline small { color: var(--muted); font-size: .76rem; }
.voucher-list { list-style: none; padding: 0; margin: .4rem 0; } .voucher-list li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .5rem 0; } .facts dt { color: var(--muted); font-size: .86rem; } .facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.facts.small { font-size: .88rem; }
.menu { position: relative; } .menu summary { list-style: none; } .menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); min-width: 220px; z-index: 20; padding: .3rem; }
.menu-list button, .menu-list a { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: .55rem .7rem; border-radius: 7px; font-weight: 500; text-decoration: none; min-height: 0; }
.menu-list button:hover, .menu-list a:hover { background: var(--line-2); border: 0; }
.page-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; } .page-thumbs img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.choice { display: flex; gap: .6rem; border: 0; padding: 0; margin: 0 0 .8rem; flex-wrap: wrap; }
.choice-card { flex: 1; min-width: 160px; display: flex; align-items: center; gap: .4rem; padding: .8rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; background: var(--card); }
.choice-card span { display: flex; flex-direction: column; color: var(--text); } .choice-card small { color: var(--muted); font-weight: 400; }
.choice-card:has(input:checked).ok { border-color: var(--ok); background: var(--ok-soft); } .choice-card:has(input:checked).change { border-color: var(--warn); background: var(--warn-soft); }

/* Auftragsformular */
.picked { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); } .picked small { display: block; color: var(--muted); }
.combo { position: relative; } .combo-list { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .6rem; }
.combo-list button { justify-content: flex-start; flex-direction: column; align-items: flex-start; background: var(--card); color: var(--text); border-color: var(--line); font-weight: 600; } .combo-list button small { color: var(--muted); font-weight: 400; }
.combo-list button:hover { background: var(--orange-soft); border-color: var(--orange); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(243, 245, 248, .95); backdrop-filter: blur(4px); padding: .8rem 0; display: flex; gap: 1rem; align-items: center; z-index: 5; }
.pick-results { max-height: 60vh; overflow: auto; }
.pick { width: 100%; display: grid; grid-template-columns: 1fr 1fr 130px; gap: .8rem; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line); margin-bottom: .3rem; font-weight: 500; align-items: start; white-space: normal; }
.pick:hover { background: var(--orange-soft); border-color: var(--orange); } .pick small { display: block; color: var(--muted); font-size: .8rem; } .pick span.right { text-align: right; }
.size-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; } .size-grid label { margin: 0; text-align: center; } .size-grid input { width: 4.6rem; text-align: center; }
.size-picks { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .4rem; }

/* Werkstatt, Planung */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; border-top: 4px solid var(--navy-3); }
.work-card.st-late { border-top-color: var(--bad); } .work-card header { display: flex; justify-content: space-between; } .work-card h3 { margin: 0; } .work-card footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .5rem; font-weight: 600; font-size: .88rem; flex-wrap: wrap; }
.note { background: var(--warn-soft); border-radius: 8px; padding: .4rem .6rem; font-size: .88rem; }
.plain { list-style: none; padding: 0; margin: .3rem 0; } .plain li { padding: .2rem 0; }
.week { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem; min-height: 180px; }
.day.today { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(239, 108, 26, .2); } .day.drop { background: var(--orange-soft); } .day h3 { margin: 0 0 .5rem; font-size: .88rem; }
.day.unplanned { min-height: 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.plan-card { border: 1px solid var(--line); border-left: 4px solid var(--navy-3); border-radius: 8px; padding: .45rem .55rem; margin-bottom: .4rem; cursor: pointer; background: var(--soft); font-size: .86rem; }
.plan-card small { display: block; color: var(--muted); } .plan-card span { display: block; font-weight: 600; color: var(--ink-2); font-size: .8rem; margin-top: .2rem; } .plan-card.st-late { border-left-color: var(--bad); }
.batch-list { list-style: none; padding: 0; margin: 0; } .batch-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; align-items: center; } .batch-list small { display: block; color: var(--muted); }
.supplier-block .sum { margin: .5rem 0 .8rem; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.checks { list-style: none; padding: 0; margin: 0; } .checks li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .7rem; border-radius: 8px; margin-bottom: .3rem; background: var(--soft); border-left: 4px solid var(--line); flex-wrap: wrap; }
.checks li.ok { border-left-color: var(--ok); } .checks li.warn { border-left-color: var(--warn); background: #fffaf0; } .checks li.bad { border-left-color: var(--bad); background: var(--bad-soft); } .checks span { color: var(--muted); }
.calc-result h2 { font-size: 2rem; } .calc-result h2 small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.method { margin-bottom: .6rem; }

/* Dialog und Meldungen */
dialog#modal { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); box-shadow: 0 25px 80px rgba(0, 0, 0, .3); }
dialog#modal.wide { width: min(1040px, calc(100vw - 1.5rem)); }
dialog::backdrop { background: rgba(16, 38, 58, .55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; } .modal-head h2 { margin: 0; }
#modal-body { padding: 1.1rem 1.2rem 1.3rem; overflow: auto; }
#toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 150%); background: var(--navy); color: #fff; padding: .75rem 1.2rem; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .25s, opacity .25s; z-index: 1000; max-width: calc(100vw - 2rem); opacity: 0; visibility: hidden; }
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; } #toast.bad { background: var(--bad); }

/* Gestaltung (Vollbild) */
body.designer-open { overflow: hidden; }
.designer { position: fixed; inset: 0; z-index: 200; background: #eef1f5; display: flex; flex-direction: column; }
.d-head { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; padding: .6rem 1rem; } .d-head small { display: block; color: #aebbc8; }
.d-tabs { display: flex; gap: .3rem; padding: .5rem 1rem 0; overflow-x: auto; background: var(--card); border-bottom: 1px solid var(--line); }
.d-tabs button { background: none; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; flex-direction: column; align-items: flex-start; font-weight: 600; min-height: 0; padding: .4rem .8rem; }
.d-tabs button small { font-weight: 400; font-size: .76rem; } .d-tabs button.active { color: var(--ink); border-bottom-color: var(--orange); } .d-tabs button.missing::after { content: "noch ohne Grafik"; color: var(--muted, #6b7480); font-size: .72rem; } .d-tabs button.nodeco::after { content: "nicht veredelt"; color: var(--muted, #6b7480); font-size: .72rem; } .d-tabs button.nodeco { opacity: .75; }
.nodeco-check { padding: .5rem .6rem; border: 1px dashed var(--line, #ccd2d9); border-radius: 8px; margin-bottom: .6rem; }
.d-tabs button:hover { background: var(--line-2); border-color: transparent; } .d-tabs button.active:hover { border-bottom-color: var(--orange); }
.d-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.d-board { overflow: auto; padding: 1rem; } .d-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.d-view h3 { text-align: center; margin: 0 0 .4rem; }
.surface { position: relative; width: 100%; aspect-ratio: 1; background: #fff; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.surface canvas { width: 100%; height: 100%; display: block; }
.placed { position: absolute; padding: 0; background: none; border: 1px dashed transparent; border-radius: 2px; min-height: 0; cursor: grab; touch-action: none; }
.placed:hover { background: none; border-color: rgba(239, 108, 26, .6); } .placed.selected { border: 2px solid var(--orange); box-shadow: 0 0 0 3px rgba(239, 108, 26, .2); }
.placed img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; display: block; } .placed img.stitch { filter: contrast(1.05) saturate(.9); }
.d-panel { background: var(--card); border-left: 1px solid var(--line); overflow: auto; padding: 1rem; }
.d-panel fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; } .d-panel { overflow-x: hidden; } .d-panel .button, .d-panel button { white-space: normal; text-align: center; } .d-panel select, .d-panel input { max-width: 100%; } .d-panel legend { font-weight: 800; color: var(--ink); margin-bottom: .6rem; font-size: 1rem; }
.swatches { display: flex; gap: .3rem; flex-wrap: wrap; margin: -.3rem 0 .7rem; } .swatches button { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid var(--line-strong); }
.motifs { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0; }
.motifs button { justify-content: flex-start; background: var(--card); color: var(--text); border-color: var(--line); gap: .6rem; font-weight: 600; text-align: left; white-space: normal; }
.motifs button.active { border-color: var(--orange); background: var(--orange-soft); } .motifs img { width: 44px; height: 44px; object-fit: contain; background: repeating-conic-gradient(#e7eaee 0 25%, #fff 0 50%) 50% / 12px 12px; border-radius: 6px; }
.motifs small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.p-settings { border-top: 1px solid var(--line); padding-top: .8rem; } .p-settings h4 { margin: 0 0 .6rem; }
.d-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 1rem; background: var(--card); border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Öffentliche Freigabeseite */
body.public { background: var(--bg); padding: 1rem; }
.public-card { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.public-head { display: flex; gap: 1.2rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; flex-wrap: wrap; } .public-head img { width: 180px; }
.public-status { display: flex; justify-content: space-between; background: var(--soft); border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; } .public-status span { color: var(--muted); }
.state-approved { color: var(--ok); } .state-changes { color: var(--warn); }
.proof-pages { display: flex; flex-direction: column; gap: .8rem; margin: .8rem 0; } .proof-pages img { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; }
.public-form { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; } .public-form button { width: 100%; min-height: 50px; font-size: 1.05rem; }
/* Markierungen im Korrekturabzug (Kunde tippt auf die Stelle) */
.mark-page { display: flex; flex-direction: column; gap: .25rem; } .mark-target { position: relative; display: block; cursor: crosshair; }
.proof-pages[data-mark="0"] .mark-target { cursor: zoom-in; }
.mark-tools { display: flex; justify-content: space-between; gap: 1rem; margin: 0; font-size: .9rem; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: #d6336c; color: #fff; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); pointer-events: none; }
.pin.static { position: static; transform: none; flex: 0 0 30px; }
.marks-list { background: #fff5f8; border: 1px solid #f3c3d4; border-radius: 12px; padding: .6rem .8rem; margin: .8rem 0; } .marks-list h3 { margin: 0 0 .4rem; font-size: 1rem; }
.mark-row { display: flex; gap: .6rem; align-items: center; margin: .3rem 0; } .mark-row label { flex: 1; margin: 0; } .mark-row input { width: 100%; }
.public-form .mark-row button { width: auto; min-height: 40px; min-width: 40px; font-size: 1.2rem; }
.proof-marks { position: relative; display: block; } .proof-marks img { display: block; width: 100%; }
.marks-legend { background: #fff5f8; border: 1px solid #f3c3d4; border-radius: 10px; padding: .5rem .5rem .5rem 2rem; margin: 0 0 .8rem; } .marks-legend li { margin: .2rem 0; }
.page-thumbs.single { grid-template-columns: 1fr; }
.complaints li.open { border-left: 3px solid var(--warn); padding-left: .5rem; } .complaints li.done { opacity: .85; }
.public-foot { margin-top: 1.5rem; color: var(--muted); font-size: .85rem; text-align: center; }

/* Projektor */
body.projector-page { background: #0b1520; color: #fff; overflow: hidden; }
.proj-setup { display: grid; grid-template-columns: 360px 1fr; height: 100vh; }
.proj-panel { background: var(--card); color: var(--text); overflow: auto; padding: 1rem 1.2rem; } .proj-panel h1 { font-size: 1.4rem; } .proj-panel hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.proj-panel .press.big { flex-direction: row; gap: 1rem; flex-wrap: wrap; font-size: 1.15rem; margin-bottom: .8rem; background: var(--orange-soft); border-color: var(--orange); }
.proj-panel .big-btn { width: 100%; min-height: 52px; font-size: 1.05rem; margin: .5rem 0; }
.nudge { display: grid; grid-template-columns: repeat(3, 52px); gap: .3rem; justify-content: center; margin: .5rem 0; } .nudge button { min-height: 44px; padding: 0; font-size: 1.2rem; }
.readout { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stage { position: relative; overflow: hidden; background: #000; }
.plate { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 2px solid #fff; background: #000; }
.plate.guides i.gx { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(255, 255, 255, .22); }
.plate.guides i.gy { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.plate i.cx, .plate i.cy { position: absolute; background: rgba(239, 108, 26, .7); } .plate i.cx { left: 50%; top: 0; bottom: 0; width: 1px; } .plate i.cy { top: 50%; left: 0; right: 0; height: 1px; }
.plate:not(.guides) i.cx, .plate:not(.guides) i.cy { display: none; }
.motif { position: absolute; transform-origin: 50% 50%; } .motif img { width: 100%; height: 100%; object-fit: fill; display: block; } .motif .mbox { position: absolute; inset: -1px; border: 1px dashed rgba(239, 108, 26, .9); }
.proj-live { position: fixed; inset: 0; background: #000; cursor: none; } .proj-live:hover { cursor: default; }
.live-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem .8rem; background: rgba(0, 0, 0, .7); color: #ccc; font-size: .85rem; opacity: .15; transition: opacity .2s; } .live-bar:hover { opacity: 1; }
.corner { position: fixed; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(239, 108, 26, .85); border: 2px solid #fff; color: #fff; font-weight: 800; min-height: 0; padding: 0; cursor: move; touch-action: none; z-index: 3; }
.corner.sel { background: #fff; color: var(--orange); }
.calib-help { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(16, 38, 58, .92); padding: 1rem 1.2rem; border-radius: 14px; max-width: 460px; z-index: 2; }
.calib-help p { color: #d5dde6; }

/* Druck: Auftragsblatt */
#print-sheet { display: none; }
@media print {
  body.printing-sheet > *:not(#print-sheet) { display: none !important; }
  body.printing-sheet #print-sheet { display: block; color: #000; font-size: 11pt; }
  #print-sheet header { display: flex; gap: 1rem; align-items: center; border-bottom: 2px solid #000; padding-bottom: .4rem; margin-bottom: .6rem; } #print-sheet header img { width: 150px; }
  #print-sheet h1 { font-size: 18pt; color: #000; margin: 0; } #print-sheet h2 { font-size: 12pt; color: #000; margin: .8rem 0 .3rem; }
  #print-sheet table { border: 1px solid #999; } #print-sheet td, #print-sheet th { border: 1px solid #bbb; padding: 4px 6px; color: #000; background: #fff; } #print-sheet td.box { width: 30px; }
  #print-sheet .print-note { border: 2px solid #000; padding: .4rem; font-weight: 600; margin: .4rem 0; }
  #print-sheet .print-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: .5rem; } #print-sheet .print-pages img { width: 100%; border: 1px solid #ccc; }
  #print-sheet footer { margin-top: 1rem; font-size: 9pt; }
  #print-sheet .print-qr { margin-left: auto; width: 28mm; text-align: center; font-size: 8pt; } #print-sheet .print-qr svg { width: 28mm; height: 28mm; }
  body.print-codes > * { display: none !important; } body.print-codes #auth, body.print-codes #app { display: block !important; }
  .topbar, .sidebar, .nav-backdrop, .app-foot, #toast, .bottom-bar { display: none !important; } .app-shell { display: block; }
  @page { size: A4; margin: 12mm; }
}

/* Mobil */
@media (max-width: 1100px) {
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .week { grid-template-columns: repeat(3, 1fr); }
  .d-body { grid-template-columns: 1fr; overflow: auto; } .d-board { overflow: visible; } .d-panel { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .designer { overflow: auto; }
}
@media (max-width: 860px) {
  #menu-toggle { display: inline-flex; }
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(290px, 84vw); height: auto; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); z-index: 50; padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 38, 58, .45); z-index: 45; }
  .nav-item { padding: .7rem .75rem; font-size: 1rem; min-height: 44px; }
  .topbar { background: var(--navy); border: 0; padding: .4rem .6rem; min-height: 56px; gap: .4rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
  .top-brand { display: flex; } .top-brand img { width: auto; height: 26px; }
  #menu-toggle { color: #fff; } #menu-toggle:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .topbar .top-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
  .search-btn, .new-btn { display: none; } .top-btn { padding: .35rem .5rem; }
  .bottom-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 36; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 38, 58, .08); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-bar a, .bottom-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .45rem .2rem; min-height: 56px; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none; }
  .bottom-bar a.active { color: var(--orange-2); box-shadow: inset 0 3px 0 var(--orange); } .bottom-bar .i { width: 22px; height: 22px; }
  .app-foot { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px; } /* iOS zoomt sonst beim Antippen in jedes Feld */
  main { padding: 1rem .8rem 3rem; }
  .cols, .grid, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.35rem; }
  .week { grid-template-columns: 1fr; } .day { min-height: 0; }
  .d-pair { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr; } .pick span.right { text-align: left; }
  .proj-setup { grid-template-columns: 1fr; grid-template-rows: auto 50vh; height: auto; } body.projector-page { overflow: auto; }
  table.orders thead { display: none; } table.orders tr { display: grid; grid-template-columns: 1fr auto; padding: .5rem .3rem; border-bottom: 1px solid var(--line); }
  table.orders td { border: 0; padding: .2rem .5rem; } table.orders td:nth-child(n+5) { grid-column: 1 / -1; }
  .next-step b { font-size: 1.05rem; }
  .sticky-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.noscript { padding: 2rem; text-align: center; }

/* Einheitliche Arbeitsoberfläche: klare Hierarchie, wenig Dekoration, sichtbarer Fokus. */
:root {
  --bg: #f4f6f8;
  --line: #d9e0e7;
  --line-2: #edf1f4;
  --r: 9px;
  --shadow: 0 1px 3px rgba(16, 38, 58, .045);
}
body { color: #172635; }
main { max-width: 1480px; padding-top: 1.25rem; }
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.01em; }
button, .button { border-radius: 7px; transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease; }
button:not(:disabled):hover, .button:hover { box-shadow: 0 2px 5px rgba(16, 38, 58, .1); }
button:active:not(:disabled), .button:active { box-shadow: none; }
input, select, textarea { border-color: #c5d0da; border-radius: 7px; }
.sidebar { background: var(--navy); }
.nav-item { transition: background-color .14s ease, color .14s ease; }
.nav-item.active { color: #fff; background: #1b3a55; box-shadow: inset 3px 0 0 var(--orange); }
.topbar { box-shadow: 0 1px 3px rgba(16, 38, 58, .045); }
.page-head { margin-bottom: 1.1rem; }
.dashboard-hero {
  align-items: center;
  min-height: 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}
.dashboard-hero-copy { min-width: 0; }
.dashboard-hero .eyebrow { margin-bottom: .3rem; }
.dashboard-hero h1 { color: var(--ink); font-size: clamp(1.35rem, 2vw, 1.75rem); }
.dashboard-hero-copy > p:last-child { margin: .25rem 0 0; color: var(--muted); }
.dashboard-hero .bad-text { color: var(--bad); }
.dashboard-hero .actions { flex: none; }
.section-intro { margin: 1rem 0 .6rem; }
.section-intro h2 { font-size: 1.12rem; }
.focus-kpis .kpi { min-height: 84px; padding: .8rem .95rem; border-left-width: 3px; }
.focus-kpis .kpi b { font-size: 1.65rem; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.focus-kpis .kpi span { margin-top: .25rem; }
.focus-kpis .kpi.zero { background: var(--card); box-shadow: none; }
.focus-kpis .kpi:hover { transform: none; box-shadow: 0 2px 6px rgba(16, 38, 58, .08); }
.dashboard-flow { border-color: var(--line); background: var(--card); }
.dashboard-flow summary { padding: .7rem .9rem; }
.card { border-color: var(--line); box-shadow: var(--shadow); }
.card > .card-head { padding-top: .9rem; }
.card > .card-head h2 { font-size: 1rem; }
.mini-list li:first-child a { border-top-color: transparent; }
.mini-list a { padding-top: .7rem; padding-bottom: .7rem; transition: background-color .14s ease; }
.mini-list a:hover { background: #f6f8fa; }
.table-wrap { border-radius: 7px; }
th { background: var(--soft); }
.settings-nav-group { border-color: var(--line); border-radius: 8px; box-shadow: none; }
.settings-nav-group a { padding: .42rem .5rem; }
.settings-nav-group a:hover { background: var(--soft); }
.settings-nav-group a.active { background: var(--orange-soft); box-shadow: inset 2px 0 0 var(--orange); }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid rgba(239, 108, 26, .42); outline-offset: 2px; }
@media (max-width: 860px) {
  main { padding-top: .9rem; }
  .dashboard-hero { padding: .9rem 1rem; }
}
@media (max-width: 560px) {
  .dashboard-hero { align-items: flex-start; gap: .75rem; }
  .dashboard-hero .actions { width: 100%; }
  .dashboard-hero .actions .button { flex: 1; }
  .focus-kpis .kpi { min-height: 76px; padding: .7rem; }
  .focus-kpis .kpi b { font-size: 1.5rem; }
  button.small, .button.small { min-height: 36px; }
}
/* Installation */
body.install { background: radial-gradient(circle at 20% 10%, #1b3a55, var(--navy) 55%); padding: 1.5rem 1rem; }
.install-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 1.8rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.install-card > img { width: 220px; display: block; margin-bottom: 1rem; }
.install-card h2 { margin-top: 1.4rem; } .install-card button { width: 100%; margin-top: .6rem; min-height: 48px; }
.alert.danger { background: var(--bad-soft); border-color: #f2c2bd; color: var(--bad); font-weight: 600; }
.hint { color: var(--muted); font-size: .88rem; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 1rem; margin-top: .6rem; }

.tier-map{display:flex;flex-wrap:wrap;gap:.5rem;margin:.25rem 0 .75rem}
.tier-map label{display:flex;align-items:center;gap:.4rem;border:1px solid var(--line,#dde3ea);border-radius:8px;padding:.3rem .5rem;font-weight:600}
.tier-map label span{font-weight:400;display:flex;align-items:center;gap:.25rem}
.tier-map input{width:5.5rem;margin:0}
label.inline{display:flex;align-items:center;gap:.5rem;max-width:28rem}

.threads{display:grid;gap:.35rem;margin:.5rem 0}
.threads .thread{display:grid;grid-template-columns:1.4rem 2.6rem 1fr;align-items:center;gap:.4rem;margin:0;font-weight:400}
.threads .thread span{font-weight:700;color:var(--muted);text-align:right}
.threads input[type=color]{padding:0;height:2rem;width:2.6rem;margin:0}
.threads .thread input{margin:0}
.threads .thread.free{grid-template-columns:1.4rem 2.6rem 1fr 2rem}
.threads .thread.check input:not([type=color]){border-color:var(--warn,#c77700);box-shadow:0 0 0 2px color-mix(in srgb,var(--warn,#c77700) 25%,transparent)}
.threads .thread.check span::after{content:'?';color:var(--warn,#c77700);margin-left:1px}

/* DTF-Bögen */
.dtf-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,560px);gap:1rem;align-items:start}
@media (max-width:1100px){.dtf-grid{grid-template-columns:1fr}}
.dtf-side{position:sticky;top:1rem}
.dtf-canvas-wrap{max-height:75vh;overflow:auto;margin-top:.5rem;border-radius:8px}
.dtf-canvas-wrap canvas{display:block}
.dtf-motif{display:flex;gap:.6rem;align-items:center}
.dtf-motif img{width:56px;height:56px;object-fit:contain;background:var(--soft);border-radius:6px;flex:none}
.dtf-motif span{display:flex;flex-direction:column}
.dtf-items select{min-width:11rem;max-width:16rem}
.dtf-motif span{min-width:12rem}
.dtf-items tr.inactive td{opacity:.55}
.dot{display:inline-block;width:.7rem;height:.7rem;border-radius:50%;margin-right:.35rem;vertical-align:middle}
tr.click{cursor:pointer}

.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem;margin-top:.5rem}
.lib-item{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;text-align:left;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:.5rem;font-weight:400}
.lib-item:hover{border-color:var(--orange,#ef6c1a);background:var(--card)}
.lib-item img{width:100%;height:110px;object-fit:contain;background:var(--soft);border-radius:6px}
.lib-item small{color:var(--muted)}
button.wide,.button.wide{width:100%;justify-content:center}
tr.fee td{background:#fbf6f2}

.pers-preview{background:#1f2a44;border-radius:10px;padding:.5rem;margin:.5rem 0;overflow:auto}
.pers-preview canvas{display:block;margin:0 auto;max-width:100%}
.dtf-motif img.dark{background:#1f2a44}

/* Auswertung */
.chart { position: relative; margin: .4rem 0 .8rem; min-height: 240px; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--orange); }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:hover, .chart .hit:focus { fill: rgba(16, 38, 58, .05); }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; border-radius: 8px; padding: .45rem .65rem; font-size: .82rem; line-height: 1.35; box-shadow: var(--shadow); min-width: 150px; z-index: 2; font-variant-numeric: tabular-nums; }
.kpi .small-note { display: block; }

/* Angebote */
.offer-edit td { vertical-align: top; }
.offer-edit textarea { min-height: 38px; }
.offer-edit .kind { width: 7.5rem; }
.offer-sum { display: flex; justify-content: flex-end; gap: 1.5rem; font-weight: 650; margin-top: .6rem; }
.offer-evidence { background: var(--line-2); border-radius: 9px; padding: .6rem .8rem; font-size: .86rem; }
.chip.st-entwurf { background: var(--line-2); color: var(--muted); } .chip.st-gesendet { background: var(--info-soft); color: var(--info); }
.chip.st-angenommen { background: var(--ok-soft); color: var(--ok); } .chip.st-abgelehnt, .chip.st-abgelaufen { background: var(--bad-soft); color: var(--bad); }
.offer-table { width: 100%; } .offer-table td small { display: block; white-space: pre-line; color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.offer-totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem 0; margin: .6rem 0 1rem; padding: .7rem .8rem; background: var(--soft); border-radius: 10px; font-variant-numeric: tabular-nums; }
.offer-totals dt { margin: 0; } .offer-totals dd { margin: 0; padding-left: 1rem; text-align: right; white-space: nowrap; } .offer-totals .hl { font-weight: 750; font-size: 1.08rem; border-top: 2px solid var(--navy); padding-top: .4rem; }
.state-angenommen { color: var(--ok); } .state-abgelehnt, .state-abgelaufen { color: var(--bad); } .state-versendet { color: var(--orange-2); }

.offer-table .unit-m { display: none; }
@media (max-width: 560px) { .offer-table .col-unit, .offer-table .col-qty { display: none; } .offer-table .unit-m { display: block; } }
#dtf-rows .pill { white-space: normal; }
.offer-table td.right { white-space: nowrap; }
.public-status { gap: 1rem; } .public-status b { text-align: right; }
.price-display { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.inline-radio { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-weight: 500; color: var(--text); cursor: pointer; }
.inline-radio input { width: auto; min-height: 0; margin: 0; }
label.mini { font-size: .75rem; font-weight: 600; color: var(--muted); margin: .3rem 0 0; }
.coverage { list-style: none; padding: 0; margin: .3rem 0 .8rem; display: grid; gap: .3rem; }
.coverage li { padding: .45rem .7rem .45rem 2rem; border-radius: 8px; background: var(--soft); position: relative; font-size: .9rem; }
.coverage li small { display: block; color: var(--muted); }
.coverage li::before { position: absolute; left: .65rem; top: .45rem; font-weight: 800; }
.coverage li.ok::before { content: "✓"; color: var(--ok); } .coverage li.wait::before { content: "…"; color: var(--warn); } .coverage li.bad::before { content: "!"; color: var(--bad); }
.coverage li.bad { background: var(--bad-soft); } .coverage li.wait { background: var(--warn-soft); }
.sg-item { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; margin-top: .7rem; }
.sg-head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: .4rem; }
.sg-head small { display: block; color: var(--muted); }
.sg-price { margin-left: auto; text-align: right; } .sg-price > span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: block; } .sg-price b { font-size: 1.3rem; color: var(--ink); }
.sg-table { width: 100%; } .sg-table td small { display: block; color: var(--muted); font-size: .8rem; } .sg-table td small.tag { display: inline; color: var(--warn); }
.sg-table tfoot td { border-top: 1px solid var(--line); font-weight: 600; }
.login-band { background: var(--navy); margin: -2rem -2rem 1.2rem; padding: 1.4rem 2rem; border-radius: 18px 18px 0 0; display: flex; justify-content: center; }
.login-band img { height: 34px; width: auto; max-width: 100%; }
.app-foot .slogan { margin: 0 0 .2rem; font-weight: 600; color: var(--ink-3); font-size: .9rem; letter-spacing: .01em; }
.login-foot { margin: 1.2rem 0 0; text-align: center; font-size: .75rem; color: var(--muted); }
.center { text-align: center; }
.order-main, .order-side { min-width: 0; }
.bell-foot { justify-content: center; }
/* Aushilfe: nur ansehen, Zeiten und Endkontrolle */
body.role-helper #customer-goods, body.role-helper #file-ready, body.role-helper .file-btn:has(#prod-file), body.role-helper #qty-edit, body.role-helper #stage-done, body.role-helper #stage-ordered, body.role-helper #stage-start, body.role-helper [data-del-file], body.role-helper #pers-edit { display: none !important; }
.pers-grid { width: 100%; margin: .4rem 0 .6rem; } .pers-grid th { text-align: left; font-size: .85rem; padding: .2rem .4rem; } .pers-grid td { padding: .2rem .3rem; } .pers-grid input { margin: 0; }
/* Kunden (Stufe 2) */
.brand-colors { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; } .brand-colors li { display: grid; grid-template-columns: 34px 1fr; column-gap: .6rem; align-items: center; }
.brand-colors .sw { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); } .brand-colors .sw.empty { background: repeating-linear-gradient(45deg, #fff, #fff 4px, var(--line-2) 4px, var(--line-2) 8px); }
.brand-colors small { color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; } .plain-list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.plain-list li > b, .plain-list li > small { grid-column: 1; } .plain-list li > small { color: var(--muted); } .plain-list li > span { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.plain-list li.done { opacity: .55; } .plain-list li.late > b { color: var(--bad); }
.lib-tabs { display: flex; gap: .3rem; margin-bottom: .8rem; flex-wrap: wrap; } .lib-tabs button { background: var(--card); color: var(--text); border-color: var(--line); } .lib-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.lib-thumbs { display: flex; gap: .3rem; justify-content: center; } .lib-thumbs img { width: 30%; max-height: 70px; object-fit: contain; }
.lib-item.static { cursor: default; } .lib-item.static:hover { transform: none; }
.dup-group { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .6rem; }
.chips { display: flex; gap: .3rem; flex-wrap: wrap; margin: -.3rem 0 .6rem; } .chip { background: var(--line-2); color: var(--text); border-color: var(--line); min-height: 30px; padding: .2rem .6rem; font-size: .82rem; font-weight: 600; }
.alert.small { font-size: .82rem; padding: .5rem .7rem; }

/* ---------- 3.4: Angebote mit Bild, Varianten, Staffel ---------- */
.offer-items { display: grid; gap: .9rem; }
.offer-item-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: var(--card); box-shadow: var(--shadow); }
.offer-item-head { display: flex; align-items: end; gap: .8rem; padding-bottom: .8rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line-2); }
.offer-kind-control { width: 11rem; flex: none; } .offer-kind-control label { margin: 0; font-size: .73rem; color: var(--muted); }
.offer-kind-control select { margin-top: .2rem; }
.offer-item-index { padding: .34rem .6rem; border-radius: 99px; background: var(--line-2); color: var(--muted); font-size: .78rem; font-weight: 650; }
.offer-item-sum { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.offer-item-sum small { display: block; color: var(--muted); font-size: .72rem; }
.offer-item-sum b { color: var(--ink); font-size: 1.05rem; }
.offer-remove { align-self: center; }
.offer-item-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .32fr); gap: 1rem; }

.offer-item-product, .offer-item-pricing { min-width: 0; }
.offer-field { display: block; margin: 0 0 .7rem; color: var(--ink-2); font-size: .78rem; font-weight: 650; }
.offer-product-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
.offer-item-pricing { padding: .75rem; border-radius: 10px; background: var(--soft); }
.offer-price-grid { display: grid; grid-template-columns: minmax(5rem, .65fr) minmax(7rem, 1fr); gap: .65rem; }
.offer-item-pricing .offer-field:last-child { margin-bottom: 0; }
.offer-price-grid .qty { width: 100%; }
.offer-cost-note { margin: -.1rem 0 .6rem; padding-top: .55rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.offer-catalog-facts { margin: -.25rem 0 .65rem; color: var(--muted); font-size: .76rem; }
.offer-catalog-data { border-top: 1px solid var(--line-2); padding-top: .5rem; font-size: .8rem; }
.offer-catalog-data summary { cursor: pointer; color: var(--muted); }
.offer-catalog-data summary span { margin-left: .35rem; }
.offer-source-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; margin-top: .55rem; }
.offer-size-breakdown { min-width: 0; margin-top: .8rem; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem; background: var(--soft); }
.offer-size-breakdown summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.offer-size-breakdown summary span { margin-left: .45rem; color: var(--muted); font-size: .82rem; font-weight: 500; }
.offer-size-breakdown > .small { margin: .45rem 0; }
.offer-size-rows { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(6rem, .7fr) 2.4rem; gap: .45rem; align-items: end; margin: .55rem 0; }
.offer-size-rows label { display: grid; gap: .2rem; font-size: .78rem; color: var(--muted); }
.offer-size-rows input { width: 100%; min-width: 0; }
.offer-size-breakdown > button { margin: .2rem .4rem .2rem 0; }
.offer-size-ready { color: var(--ok); font-weight: 600; }
.offer-article-lookup { position: relative; margin-top: .3rem; }
.offer-search-hint { display: block; margin-top: -.35rem; color: var(--muted); font-size: .74rem; font-weight: 400; }
.offer-article-results { position: relative; z-index: 2; max-height: 18rem; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 22px #172b4420; padding: .3rem; margin-top: .25rem; }
.offer-article-hit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); width: 100%; gap: .2rem .75rem; padding: .55rem .65rem; border: 0; border-radius: 7px; background: var(--card); color: var(--text); text-align: left; }
.offer-article-hit:hover, .offer-article-hit:focus-visible { background: var(--info-soft); color: var(--text); }
.offer-article-hit span { min-width: 0; }
.offer-article-hit b, .offer-article-hit small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-article-hit small { color: var(--muted); font-size: .75rem; }
.offer-item-footer { display: flex; flex-wrap: wrap; align-items: end; gap: .3rem 1rem; padding-top: .75rem; margin-top: .65rem; border-top: 1px solid var(--line-2); }
.offer-variant-field { width: min(13rem, 100%); margin: 0; }
.offer-optional { margin: 0 0 .45rem !important; font-size: .83rem; }
.offer-image-actions { display: inline-flex; gap: .8rem; margin-left: auto; padding-bottom: .2rem; }
.offer-section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: .7rem; }
.offer-section-head h2, .offer-section-head p { margin-bottom: .15rem; }
.offer-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .65fr); align-items: end; gap: 1rem; margin-top: 1rem; }
.offer-summary-options { display: grid; gap: .4rem; }
.offer-summary-options > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .85rem; }
.offer-summary-options b { color: var(--ink); white-space: nowrap; }
.offer-totals { margin: 0; padding: .9rem 1rem; border: 1px solid var(--line); background: var(--soft); }
.offer-totals dd { font-weight: 650; }
.offer-totals .hl { color: var(--ink); }
.offer-margin { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.tiers-edit { display: inline-flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; }
.tiers-edit .tier { display: inline-flex; align-items: center; gap: .25rem; background: var(--line-2); border-radius: 8px; padding: .15rem .4rem; }
.tiers-edit .tier input { width: 4.6rem; padding: .2rem .35rem; } .tiers-edit .tier .qty { width: 4rem; }
.offer-thumb { display: block; margin-top: .4rem; } .offer-thumb img { width: 72px; height: 54px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.offer-table caption { text-align: left; font-weight: 700; color: var(--ink); padding: .8rem 0 .3rem; }
.offer-table .offer-img { float: left; margin: 0 .7rem .3rem 0; } .offer-table .offer-img img { width: 120px; height: 90px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }
.offer-table .offer-brand { color: var(--ink-3); font-weight: 600; }
.offer-table small.tiers { color: var(--orange-2); font-weight: 600; }
.offer-choice fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; margin: 0 0 .8rem; }
.offer-choice legend { font-weight: 700; color: var(--ink); padding: 0 .3rem; }
.qty-line { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .qty-line span { flex: 1 1 12rem; } .qty-line input { width: 7rem; }
.mockup-grid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1rem; }
.mockup-preview canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.pos-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .6rem; } .pos-checks .check { margin: .15rem 0; font-size: .88rem; }
.lib-thumbs.pick, .lib-thumbs.files { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-start; }
.lib-thumbs.pick button { padding: 2px; background: #fff; border: 1px solid var(--line); width: 56px; height: 56px; } .lib-thumbs.pick img { width: 100%; height: 100%; object-fit: contain; }
.lib-thumbs.files a { display: flex; flex-direction: column; width: 110px; text-decoration: none; font-size: .78rem; word-break: break-all; } .lib-thumbs.files img { width: 110px; height: 80px; object-fit: contain; background: #f4f6f8; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) { .offer-item-layout, .offer-summary { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .mockup-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .offer-item-card { padding: .75rem; } .offer-item-head { flex-wrap: wrap; gap: .5rem; } .offer-kind-control { width: 100%; } .offer-item-index { order: 1; } .offer-item-sum { order: 2; } .offer-remove { order: 3; margin-left: auto; } .offer-product-meta, .offer-source-fields { grid-template-columns: 1fr; } .offer-article-hit { grid-template-columns: 1fr; } .offer-summary { grid-template-columns: 1fr; } }

/* ---------- Statuslink, Anfrageformular, Referenzen ---------- */
.status-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.status-steps li { display: flex; gap: .8rem; padding: .55rem 0; position: relative; }
.status-steps li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 2.1rem; bottom: -.4rem; width: 2px; background: var(--line); }
.status-steps .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); flex: none; margin-top: .1rem; }
.status-steps li.done .dot { background: var(--ok); border-color: var(--ok); } .status-steps li.done::before { background: var(--ok) !important; }
.status-steps li.current .dot { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 4px var(--orange-soft); }
.status-steps b { display: block; color: var(--ink); } .status-steps li.open b { color: var(--muted); font-weight: 600; } .status-steps small { color: var(--muted); }
.care { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; } .care h3 { margin: .7rem 0 .2rem; } .care p { color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chips-field { border: 0; padding: 0; margin: 0 0 .8rem; } .chips-field legend { font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.chips-field .chip { display: inline-flex; align-items: center; gap: .3rem; margin: 0 .3rem .4rem 0; cursor: pointer; font-weight: 500; }
.chips-field .chip input { margin: 0; } .chips-field .chip:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
body.public.embed { padding: 0; background: transparent; } body.public.embed .public-card { box-shadow: none; border: 0; padding: .5rem; max-width: none; background: transparent; }
.public-card.wide { max-width: 1100px; }
.ref-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ref-filter a { padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .88rem; } .ref-filter a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ref-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ref-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); }
.ref-grid figcaption { padding: .7rem .8rem; display: flex; flex-direction: column; gap: .15rem; } .ref-grid figcaption small { color: var(--orange-2); font-weight: 600; } .ref-grid figcaption span { color: var(--muted); font-size: .9rem; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.sc-card { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0 0 .7rem; overflow: hidden; text-align: left; font-weight: 400; }
.sc-card:hover { background: var(--card); border-color: var(--orange); } .sc-card b, .sc-card small, .sc-card .pill { margin: 0 .7rem; } .sc-card small { color: var(--muted); }
.sc-card img, .sc-card .sc-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sc-noimg { display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--muted); font-size: .86rem; min-height: 120px; border-radius: 10px; }
.sc-edit { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem; } .sc-img { display: flex; flex-direction: column; gap: .5rem; } .sc-img img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 700px) { .sc-edit { grid-template-columns: 1fr; } }
.inq-detail .box { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; }
#print-sheet .care-card { display: none; }
@media print {
  body.printing-sheet #print-sheet.care-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; font-size: 9.5pt; }
  #print-sheet.care-sheet .care-card { display: block; border: 1px dashed #999; padding: 6mm; min-height: 128mm; }
  #print-sheet.care-sheet .care-card header { border-bottom: 1px solid #000; } #print-sheet.care-sheet .care-card header img { width: 110px; }
  #print-sheet.care-sheet .care-card header div { display: flex; flex-direction: column; } #print-sheet.care-sheet h3 { font-size: 10pt; margin: 3mm 0 1mm; }
  #print-sheet.care-sheet .care-card p { margin: 0 0 1.5mm; }
  #print-sheet.care-sheet .care-card footer { display: flex; gap: 4mm; align-items: center; border-top: 1px solid #000; padding-top: 2mm; margin-top: 3mm; }
  #print-sheet.care-sheet .print-qr { margin: 0; width: 22mm; } #print-sheet.care-sheet .print-qr svg { width: 22mm; height: 22mm; }
}
.sc-img .link { white-space: normal; text-align: left; justify-content: flex-start; padding-left: 0; }
/* Projektor: Steuerung am Monitor + Beamer-Fenster */
.beamer-box { border: 2px solid var(--line); border-radius: 12px; padding: .7rem .8rem; margin: .6rem 0; background: var(--soft); }
.beamer-box.on { border-color: var(--ok); background: var(--ok-soft); } .beamer-box b { display: block; } .beamer-box.on b { color: var(--ok); }
.beamer-box small { display: block; color: var(--muted); margin: .2rem 0 .3rem; }
.beamer-hint { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: 520px; background: rgba(16, 38, 58, .95); color: #fff; border-radius: 14px; padding: 1rem 1.2rem; cursor: default; }
.beamer-hint p { color: #d5dde6; } .beamer-wait { display: flex; align-items: center; justify-content: center; }
.corner-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: .5rem 0; } .corner-pick button { min-height: 40px; padding: .3rem; }
.stage-note { color: #9fb0c2; text-align: center; margin-top: 30vh; }
/* Kunde suchen: Lexware */
.combo-list .combo-head { margin: .3rem .6rem .1rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); }
.combo-list .combo-note { margin: .4rem .6rem; }
.lex-line { margin-top: .25rem; font-size: .86rem; } .lex-line .link { font-size: .86rem; }
.ok-text { color: var(--ok); font-weight: 600; } .warn-text { color: var(--warn); font-weight: 600; }
.lex-hint { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: var(--info-soft); border-radius: 10px; padding: .5rem .7rem; margin: 0 0 .7rem; }
/* 3.5: Auftrag – Schritte zum Aufklappen */
.step-card { padding: 0; } .step-card > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; padding: 1rem 1.2rem; }
.step-card > summary::-webkit-details-marker { display: none; }
.step-card > summary h2 { margin: 0; display: flex; align-items: center; gap: .45rem; }
.step-card > summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); align-self: center; transition: transform .15s; }
.step-card[open] > summary::after { transform: rotate(-135deg); }
.step-card .step-sum { color: var(--muted); font-size: .9rem; } .step-card.done .step-sum { color: var(--ok); }
.step-card.current { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), var(--shadow); } .step-card.current .step-sum { color: var(--orange-2); font-weight: 600; }
.step-card .step-body { padding: 0 1.2rem 1.1rem; }
.step-ok { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .8rem; }
.steps-toggle { text-align: right; margin: -.2rem 0 1rem; font-size: .88rem; }
.timeline.short > li:nth-child(n+7) { display: none; }
.date-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; } .date-chips .chip { cursor: pointer; font-size: .8rem; padding: .2rem .6rem; }
.date-chips button.chip { min-height: 32px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); }
.date-chips button.chip:hover { color: var(--ink); background: var(--orange-soft); border-color: var(--orange); box-shadow: none; }
.sticky-actions { padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
#cust-error:empty { display: none; }
.more-fields { margin: .4rem 0 .2rem; } .more-fields > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.mini-list li.has-go { display: flex; align-items: center; gap: .4rem; } .mini-list li.has-go > a:first-child { flex: 1; min-width: 0; }
.mini-list .go { flex: none; margin-right: .5rem; }
.hf-qty { margin: .6rem 0; } .hf-qty > summary { cursor: pointer; font-size: .92rem; }
tr.hl td { background: var(--orange-soft) !important; }
.mini-list li.has-go { border-top: 1px solid var(--line-2); } .mini-list li.has-go > a:first-child { border-top: 0; }
.mini-list a.go { display: inline-flex; justify-content: center; padding: .35rem .75rem; border-top: 0; color: #fff; } .mini-list a.go:hover { background: var(--orange-2); }
.more-card > summary { cursor: pointer; list-style: none; } .more-card > summary::-webkit-details-marker { display: none; } .more-card > summary h2 { margin: 0; } .more-card[open] > summary h2 { margin-bottom: .7rem; }
.more-card > summary h2::before { content: '▸ '; color: var(--muted); } .more-card[open] > summary h2::before { content: '▾ '; }
.press-strip { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: var(--orange-soft); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .7rem; }
.press-pill { font-size: .88rem; background: var(--card); border-radius: 8px; padding: .2rem .5rem; }

/* ---- 3.6: Beamer-Station (Modul Projektor) ---- */
body.station-page, body.station-page * { cursor: none !important; }
.station-pair { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: #0b1520; color: #fff; }
.station-pair h1 { color: #fff; font-size: 2rem; margin: .3rem 0 1rem; } .station-pair p { color: #c9d4df; max-width: 640px; font-size: 1.2rem; } .station-pair .eyebrow { color: var(--orange); }
.pair-code { font: 800 clamp(3rem, 14vw, 9rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: #fff; background: rgba(239, 108, 26, .18); border: 3px solid var(--orange); border-radius: 22px; padding: .3em .5em; margin-bottom: 1.4rem; }
.station-status { position: fixed; left: 14px; top: 10px; font-size: .9rem; color: rgba(255, 255, 255, .35); z-index: 6; pointer-events: none; }
.station-status.bad { color: #ff8a80; font-weight: 700; }
.station-pair .station-status { left: 50%; transform: translateX(-50%); top: auto; bottom: 14px; }
.station-note { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); background: rgba(194, 65, 12, .9); color: #fff; padding: .5rem 1rem; border-radius: 10px; z-index: 5; }
.station-msg { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #c9d4df; font-size: 1.2rem; text-align: center; }
.station-msg b { color: #fff; font-size: 1.6rem; }
body.station-page .live-bar { opacity: .8; font-size: 1.15rem; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; }
.station-box.off { border-color: var(--warn, #c2410c); background: #fff7ed; } .station-box.off b { color: #c2410c; }
.more-beamer { margin: .4rem 0; } .more-beamer > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.step-pick { display: flex; align-items: center; gap: .35rem; margin: .4rem 0 .6rem; } .step-pick span { color: var(--muted); font-size: .85rem; margin-right: .2rem; }
.step-pick button { min-height: 38px; padding: .25rem .7rem; }
.calib-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.calib-preview { width: 100%; max-height: 70vh; } .calib-preview .scr { fill: #000; stroke: #3b4b5c; stroke-width: 4; }
.calib-preview .poly { fill: rgba(239, 108, 26, .12); stroke: #fff; stroke-width: 3; }
.calib-preview .pt { fill: rgba(239, 108, 26, .9); stroke: #fff; stroke-width: 3; cursor: pointer; } .calib-preview .pt.sel { fill: #fff; stroke: var(--orange); }
.calib-preview text { fill: #fff; font-weight: 800; pointer-events: none; }
.calib-stage .stage-note { margin-top: .6rem; }
.pair-input { font: 700 1.6rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.howto { margin-top: .8rem; } .howto > summary { cursor: pointer; font-weight: 700; color: var(--navy, #10263a); }
.howto ol { padding-left: 1.2rem; } .howto li { margin: .35rem 0; }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .3rem; } .copy-row code { background: var(--soft); padding: .35rem .5rem; border-radius: 6px; word-break: break-all; }
span.corner { display: flex; align-items: center; justify-content: center; }
body.station-page .calib-help { left: 14px; top: 50%; bottom: auto; transform: translateY(-50%); max-width: 300px; font-size: .9rem; }
/* 3.7: Kontrast-Modus am Projektor – Motiv als weiße Silhouette mit kräftigem Rahmen, ohne Raster */
.plate.contrast { border-width: 3px; }
.plate.contrast i.gx, .plate.contrast i.gy { display: none; }
.plate.contrast i.cx, .plate.contrast i.cy { background: rgba(255, 255, 255, .55); }
.plate.contrast .motif img { filter: brightness(0) invert(1); }
.plate.contrast .motif .mbox { inset: -4px; border: 3px solid #fff; }
.choice-list label.check { margin: .5rem 0; gap: .4rem; }
/* 3.8: easyTEX */
.et-order { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; margin: .5rem 0; } .et-order.focus { border-color: var(--orange); }
.et-order > summary { cursor: pointer; font-size: 1.02rem; padding: .3rem 0; } .et-order > summary small { margin-left: .4rem; }
.et-motif { display: flex; align-items: center; gap: .6rem; } .et-motif img { width: 40px; height: 40px; object-fit: contain; background: repeating-conic-gradient(#e7eaee 0 25%, #fff 0 50%) 50% / 10px 10px; border-radius: 6px; }
.et-motif small { display: block; color: var(--muted); } .et-qty { width: 5.5rem; text-align: right; }
.et-item { display: flex; gap: .5rem; align-items: center; margin: .15rem 0; flex-wrap: wrap; }
/* 3.9: Automatik */
.rule { display: grid; grid-template-columns: 1fr 230px; gap: 1rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); } .rule small { display: block; color: var(--muted); margin-top: .15rem; }
.rule select { margin: 0; } #af h3 { margin: 1.1rem 0 .2rem; } @media (max-width: 640px) { .rule { grid-template-columns: 1fr; } }
.auto-card { background: var(--orange-soft); border: 1px solid var(--orange); border-radius: 14px; padding: .8rem 1rem; margin: .8rem 0 1rem; }
.auto-card h2 { font-size: 1rem; margin: 0 0 .4rem; display: flex; align-items: center; gap: .4rem; color: var(--orange-2); }
.auto-card ul { list-style: none; margin: 0; padding: 0; } .auto-card li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border-top: 1px solid rgba(239, 108, 26, .25); }
.auto-card li:first-child { border-top: 0; } .auto-card li small { display: block; color: var(--muted); }
.qc-issues { margin: .6rem 0; border: 1px dashed var(--line); border-radius: 10px; padding: .4rem .7rem; } .qc-issues > summary { cursor: pointer; font-weight: 600; }
/* 4.0: Hilfslinien auf der Platte und Pressparameter im Rand (Projektor Stufe 2) */
.plate .hlines { position: absolute; inset: 0; pointer-events: none; }
.plate .hl { position: absolute; display: block; } .plate .hl.h { left: 0; right: 0; height: 0; border-top: 2px solid rgba(0, 229, 255, .95); }
.plate .hl.v { top: 0; bottom: 0; width: 0; border-left: 2px solid rgba(0, 229, 255, .95); }
.plate .hl.sel { border-color: #fff; }
.plate .hl span { position: absolute; font: 700 9px/1 system-ui, sans-serif; color: #000; background: rgba(0, 229, 255, .95); padding: 1px 3px; border-radius: 2px; white-space: nowrap; }
.plate .hl.h span { left: 2px; top: 1px; } .plate .hl.v span { left: 2px; top: 2px; transform: rotate(90deg); transform-origin: 0 0; }
.plate .hl.sel span { background: #fff; }
.plate.contrast .hl.h, .plate.contrast .hl.v { border-width: 3px; }
.params-panel { position: fixed; z-index: 4; color: #fff; display: flex; flex-direction: column; gap: .25rem; font-size: clamp(14px, 1.6vw, 24px); line-height: 1.25; pointer-events: none; text-align: left; }
.params-panel.left { text-align: right; align-items: flex-end; }
.params-panel .pp-order { font-size: 1.35em; font-weight: 800; } .params-panel .pp-cust { color: #d5dde6; }
.params-panel .pp-motif { font-weight: 700; } .params-panel .pp-size { color: #d5dde6; font-size: .9em; }
.params-panel .pp-press { display: flex; flex-wrap: wrap; gap: .3em; margin: .2em 0; } .params-panel.left .pp-press { justify-content: flex-end; }
.params-panel .pp-press b { background: var(--orange); color: #fff; padding: .15em .5em; border-radius: .35em; font-size: 1.15em; }
.params-panel .pp-note { color: #ffd6a8; font-size: .9em; } .params-panel .pp-hint { color: #ffb4a8; font-size: .9em; font-weight: 700; }
.stage .params-panel.preview { position: absolute; right: 12px; top: 12px; bottom: auto; max-width: 260px; font-size: 12px; background: rgba(16, 38, 58, .85); padding: .5rem .7rem; border-radius: 10px; }
.lines-box { margin: .6rem 0; border: 1px solid var(--line); border-radius: 10px; padding: .4rem .7rem; } .lines-box > summary { cursor: pointer; font-weight: 700; }
.line-add { display: flex; gap: .3rem; flex-wrap: wrap; margin: .5rem 0; } .line-add button { min-height: 36px; padding: .2rem .6rem; }
.line-row { display: flex; align-items: center; gap: .3rem; padding: .2rem .3rem; border-radius: 6px; margin: .15rem 0; } .line-row.sel { background: var(--orange-soft); }
.line-row .ax { width: 1.1rem; text-align: center; color: #0097a7; font-weight: 800; } .line-row input[type=number] { width: 4.5rem; } .line-row input[type=text] { flex: 1; min-width: 4rem; }
.line-row button, .tpl-row button { min-height: 0; padding: .1rem .3rem; }
.tpl-row { display: flex; align-items: center; gap: .4rem; margin: .15rem 0; } .tpl-row > button:first-child { font-weight: 700; }
.tpl-save { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin-top: .5rem; } .tpl-save button { grid-column: 1 / -1; }
/* 4.2: Klebeetiketten mit Strichcode, Scan-Seite */
th.pickcol, td.pickcol { width: 2.2rem; text-align: center; padding-right: 0; }
td.pickcol input, th.pickcol input { width: 1.05rem; height: 1.05rem; }
.scan-box { max-width: 640px; }
.scan-box #scan-input { font: 700 1.6rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.scan-box #scan-input::placeholder { text-transform: none; font-weight: 400; letter-spacing: 0; font-size: .95rem; }
.scan-hit { margin-top: 1rem; border: 2px solid var(--orange); border-radius: 12px; padding: .8rem 1rem; background: var(--orange-soft); }
.scan-hit h2 { margin: .1rem 0 .3rem; } .scan-hit .eyebrow { color: var(--orange); }
.week .day.holiday { background: repeating-linear-gradient(135deg, #fff7ed 0 10px, #ffeedd 10px 20px); }
.week .day h3 .hol { display: block; color: #c2410c; font-weight: 700; font-size: .78rem; }
.d-pair + .d-pair { margin-top: 1.2rem; }

/* Kapazität im Wochenplan (ab 4.5.0) */
.day .cap { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: -.2rem 0 .15rem; }
.day .cap span { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.day .cap.full span { background: var(--warn); } .day .cap.over span { background: var(--bad); }
.day .cap-text { display: block; font-size: .74rem; color: var(--muted); margin-bottom: .45rem; } .day .cap-text.over { color: var(--bad); font-weight: 700; }
.cap-days { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
/* Produktfotos im Gestalter */
.photo-row { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .6rem; font-size: .9rem; }
.photo-row .photo-up { display: inline-flex; gap: .4rem; align-items: center; } .photo-row .photo-up select { padding: .2rem .4rem; min-height: 0; width: auto; font-size: .85rem; }
.photo-row .file-link { margin: 0; cursor: pointer; text-decoration: underline; color: var(--orange-2, #bd5017); }

/* Produktfotos (4.7.0) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin: .6rem 0 1rem; }
.photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f7f9; display: block; }
.photo-grid figcaption { padding: .4rem .5rem; font-size: .82rem; display: flex; flex-direction: column; gap: .2rem; position: relative; }
.photo-grid figcaption small { color: var(--muted); }
.photo-grid figcaption .icon-btn { position: absolute; right: .2rem; top: .2rem; }
.photo-grid.pick img { aspect-ratio: 3 / 4; }
.photo-grid.pick select { width: 100%; font-size: .82rem; padding: .25rem .3rem; min-height: 0; }
.bookmarklet { cursor: grab; }
ol.steps { padding-left: 1.2rem; } ol.steps li { margin: .2rem 0; }
.dropzone { display: flex; align-items: center; justify-content: center; gap: .5rem; border: 2px dashed var(--line); border-radius: 12px; padding: 1.4rem; background: var(--soft); cursor: pointer; color: var(--ink-2); font-weight: 600; margin: .6rem 0; }
.dropzone.over { border-color: var(--orange, #f46a12); background: #fff6ef; }
.dv-weight { width: 5.5em; text-align: right; }
.photo-grid.pick input { width: 100%; font-size: .82rem; padding: .25rem .4rem; min-height: 0; }
.photo-grid.pick figcaption small { word-break: break-all; }
.photo-row .photo-alt { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; } .photo-row .photo-alt select { padding: .2rem .4rem; min-height: 0; width: auto; font-size: .85rem; }
.photo-row .photo-hint { flex-basis: 100%; color: var(--warn, #9a6200); font-size: .85rem; }
.photo-row .loading-inline { color: var(--muted); font-style: italic; }
.photo-row .loading-inline::before { content: ""; display: inline-block; width: .75em; height: .75em; margin-right: .45em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.08em; animation: photo-spin .8s linear infinite; }
@keyframes photo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .photo-row .loading-inline::before { animation: none; } }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; } .inline-form label { flex: 1 1 180px; margin: 0; } .inline-form .form-error { flex-basis: 100%; }

/* Gemeinsame Maße für Anmeldung, Dialoge, Menüs und öffentliche Ansichten. */
.login-shell, body.install { background: var(--navy); }
.login-card, .install-card { border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.login-band { border-radius: 10px 10px 0 0; }
.dd-menu, .menu-list { border-radius: 8px; box-shadow: 0 6px 18px rgba(16, 38, 58, .14); }
dialog#modal { border-radius: 10px; box-shadow: 0 12px 36px rgba(0, 0, 0, .2); }
#toast { border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .17); }
.public-card, .offer-item-card, .ref-grid figure, .sc-card, .et-order, .auto-card { border-radius: 8px; }
@media (max-width: 640px) {
  .login-card, .install-card { padding: 1.25rem; }
  .login-band { margin: -1.25rem -1.25rem 1rem; padding: 1.1rem 1.25rem; }
}
/* Auf kleineren Desktopfenstern bleiben Navigationsnamen sichtbar. */
@media (min-width: 861px) and (max-width: 1180px) {
  .app-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .sidebar { padding: .8rem .55rem .6rem; }
  .side-brand { padding: 0 .35rem .8rem; }
  .side-brand .brand-full { display: block; }
  .side-brand .brand-icon { display: none; }
  .nav-title { height: auto; margin: .75rem .55rem .2rem; background: none; overflow: visible; color: #7f94a8; }
  .nav-item { justify-content: flex-start; padding: .45rem .55rem; }
  .nav-item span:first-of-type { display: block; }
  .nav-item .i { width: 17px; height: 17px; }
  .nav-count { position: static; font-size: .7rem; min-width: 22px; padding: .05rem .45rem; }
  .side-me .me { justify-content: flex-start; padding: .35rem .4rem; }
  .side-me .me-name, .side-me .caret { display: flex; }
}

/* ---------- Visuelle Überarbeitung: ruhige, klar gegliederte Arbeitsoberfläche ---------- */
:root {
  --bg: #f1f4f7;
  --surface: #fff;
  --line: #d7e0e8;
  --line-2: #e9eef2;
  --muted: #5b6876;
  --r: 11px;
  --shadow: 0 1px 2px rgba(16, 38, 58, .04), 0 5px 16px rgba(16, 38, 58, .045);
}
body { background: var(--bg); }
.app-shell { background: var(--bg); }
.sidebar {
  background: linear-gradient(180deg, #122b41 0%, #10263a 48%, #0d2235 100%);
  padding: 1rem .75rem .8rem;
  box-shadow: 5px 0 22px rgba(16, 38, 58, .07);
}
.side-brand { min-height: 48px; margin: 0 .2rem .65rem; padding: .15rem .4rem .9rem; border-bottom: 1px solid rgba(220, 232, 242, .13); }
.side-brand .brand-full { max-width: 184px; }
.nav-title { margin: 1rem .7rem .38rem; color: #9aafc2; font-size: .65rem; letter-spacing: .13em; }
.nav-item { min-height: 40px; margin: 1px 0; padding: .5rem .7rem; color: #d5e0e9; border: 1px solid transparent; border-radius: 9px; }
.nav-item:hover { background: rgba(255, 255, 255, .075); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .08); box-shadow: inset 3px 0 0 #ff914f; }
.nav-item.active .i { color: #ffad79; }
.nav-count { background: rgba(255, 255, 255, .12); }
.side-me { border-top-color: rgba(220, 232, 242, .15); padding-top: .75rem; }
.avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .16); }
.shell { background: var(--bg); }
.topbar {
  min-height: 66px;
  padding: .65rem clamp(1rem, 2.5vw, 2.25rem);
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 2px 8px rgba(16, 38, 58, .035);
}
.search-btn { background: var(--soft); border-color: var(--line); border-radius: 9px; }
.top-btn { border-radius: 9px; }
main { max-width: 1560px; padding: clamp(1.15rem, 2.1vw, 2rem) clamp(1rem, 2.5vw, 2.25rem) 3rem; }
.page-head { align-items: center; margin-bottom: 1.35rem; }
.page-head h1 { font-size: clamp(1.55rem, 2.2vw, 2rem); letter-spacing: -.035em; }
.page-head .eyebrow { display: flex; align-items: center; gap: .4rem; margin-bottom: .38rem; color: #a34a16; letter-spacing: .12em; }
.page-head .eyebrow::before { content: ""; display: inline-block; width: 17px; height: 2px; border-radius: 2px; background: var(--orange); }
.page-head > div > .muted { margin-top: .35rem; max-width: 68ch; }
.back { margin-bottom: .8rem; color: #526376; }
.card {
  border-color: var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 38, 58, .035), 0 4px 13px rgba(16, 38, 58, .035);
}
.card.pad, .card .pad { padding: 1.25rem 1.35rem; }
.card > .card-head { padding: 1.05rem 1.35rem .55rem; }
.card > .card-head h2, .card.pad > h2 { font-size: 1.04rem; letter-spacing: -.015em; }
.card-head { padding-bottom: .2rem; }
.cols, .order-grid, .dtf-grid { gap: 1.15rem; }
.box { border-color: var(--line); border-radius: 9px; background: #f8fafb; }
.section-intro { margin: 1.35rem 0 .7rem; }
.section-intro h2 { font-size: 1.17rem; letter-spacing: -.02em; }
.kpi { border-radius: 11px; border-color: var(--line-strong); box-shadow: 0 2px 8px rgba(16, 38, 58, .035); }
.focus-kpis .kpi { padding: .95rem 1.05rem; }
.focus-kpis .kpi span { font-size: .82rem; letter-spacing: .005em; }
.dashboard-hero { border-radius: 12px; padding: 1.15rem 1.35rem; box-shadow: 0 2px 8px rgba(16, 38, 58, .035); }
.dashboard-hero h1 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.dashboard-flow { border-radius: 11px; }
button, .button { min-height: 42px; padding: .62rem 1rem; border-radius: 8px; font-weight: 680; }
button.secondary, .button.secondary { background: var(--card); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { background: #f4f7f9; border-color: #aebdca; }
button:not(:disabled):hover, .button:hover { box-shadow: 0 3px 9px rgba(16, 38, 58, .12); }
label { color: #344a5e; font-size: .83rem; margin-bottom: .85rem; }
input, select, textarea { min-height: 42px; padding: .62rem .72rem; border-color: var(--line-strong); background-color: var(--card); box-shadow: inset 0 1px 1px rgba(16, 38, 58, .025); }
input:hover, select:hover, textarea:hover { border-color: #9fb0bf; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(239, 108, 26, .11); }
input[readonly] { color: #46586a; background: var(--soft); }
textarea { line-height: 1.5; }
.toolbar { padding: .15rem 0; }
.search input { box-shadow: none; }
.tabs { gap: .45rem; border-bottom: 1px solid #d7e0e8; margin-bottom: 1.15rem; }
.tabs a { padding: .72rem .85rem; border-bottom-width: 3px; }
.tabs a.active { color: #163b58; }
.table-wrap { border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
table { border-radius: inherit; }
th { padding: .7rem .8rem; background: var(--soft); color: #566778; font-size: .7rem; letter-spacing: .075em; }
td { padding: .7rem .8rem; border-bottom-color: #edf1f4; }
tbody tr:last-child td { border-bottom: 0; }
tr.click:hover td { background: #fff7f1; }
.pill { padding: .2rem .58rem; font-size: .73rem; letter-spacing: .01em; }
.alert, .status-box { border-radius: 9px; }
.empty { padding: 3rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .62); }
.empty h2 { margin-bottom: .35rem; }
.loading { min-height: 110px; display: grid; place-items: center; }
.app-foot { padding-top: .45rem; }
@media (min-width: 861px) {
  .app-shell { grid-template-columns: 248px minmax(0, 1fr); }
  .shell > main { max-width: none; }
}
@media (max-width: 860px) {
  .topbar { min-height: 60px; }
  main { padding: 1.1rem .95rem 3rem; }
  .page-head { align-items: flex-start; margin-bottom: 1.05rem; }
  .card.pad, .card .pad { padding: 1rem; }
  .card > .card-head { padding: .9rem 1rem .5rem; }
  .table-wrap { border-radius: 8px; }
}
@media (max-width: 560px) {
  .page-head h1 { font-size: 1.45rem; }
  .page-head .actions { width: 100%; }
  .page-head .actions > * { flex: 1 1 auto; }
  .section-intro { margin-top: 1.05rem; }
  .card.pad, .card .pad { padding: .9rem; }
  th, td { padding: .55rem .6rem; }
  .empty { padding: 2rem .9rem; }
}

/* 4.10: Angebot als Geschäftsdokument (Kundenlink) */
body.offer-public { padding: 1rem .75rem 2rem; }
.offer-doc-wrap { max-width: 210mm; margin: 0 auto; }
.offer-doc-bar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; flex-wrap: wrap; }
.offer-doc-bar .public-status { margin: 0; flex: 1 1 260px; background: var(--card); border: 1px solid var(--line); }
.offer-doc { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 18px rgba(16, 38, 58, .08); padding: 16mm 18mm 10mm; color: #1b2733; font-size: 14px; line-height: 1.5; counter-reset: pos; }
.offer-doc-head { display: grid; grid-template-columns: 1fr minmax(200px, 38%); gap: 1.5rem; align-items: start; margin-bottom: 2rem; }
.offer-doc-from { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.offer-doc-from img { width: 190px; max-width: 100%; }
.offer-doc-to { padding-top: 3.2rem; }
.offer-doc-sender { font-size: .7rem; color: var(--muted); border-bottom: 1px solid var(--line-strong); display: inline-block; margin-bottom: .5rem; padding-bottom: .1rem; }
.offer-doc-to address { font-style: normal; line-height: 1.45; }
.offer-doc-info { display: grid; grid-template-columns: auto auto; gap: .15rem 1rem; margin: 0; font-size: .86rem; width: 100%; }
.offer-doc-info dt { color: var(--muted); } .offer-doc-info dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.offer-doc-title { font-size: 1.6rem; margin: 0 0 .9rem; display: flex; flex-direction: column; gap: .15rem; }
.offer-doc-title small { font-size: 1rem; font-weight: 500; color: var(--text); }
.offer-doc .offer-table { border-collapse: collapse; margin-bottom: .5rem; }
.offer-doc .offer-table th { background: var(--soft); color: #1b2733; font-size: .78rem; text-transform: none; letter-spacing: 0; padding: .45rem .5rem; border: 0; }
.offer-doc .offer-table td { padding: .55rem .5rem; border-bottom: 1px solid #e3e8ed; vertical-align: top; font-variant-numeric: tabular-nums; }
.offer-doc .offer-table tbody tr { counter-increment: pos; break-inside: avoid; }
.offer-doc .offer-table td.col-pos::before { content: counter(pos); color: var(--muted); }
.offer-doc .offer-table .col-pos { width: 2.4rem; }
.offer-doc .offer-table thead { display: table-header-group; }
.offer-doc .table-wrap { overflow: visible; border: 0; }
.offer-doc-totals { margin: .6rem 0 1.2rem auto; max-width: 340px; background: none; border: 0; padding: .2rem 0; }
.offer-doc-totals .hl { border-top: 2px solid #1b2733; }
.offer-doc-notes { font-size: .9rem; } .offer-doc-notes h2 { font-size: .95rem; margin: 1rem 0 .3rem; }
.offer-doc-foot { margin-top: 2rem; padding-top: .6rem; border-top: 1px solid var(--line-strong); font-size: .72rem; color: var(--muted); text-align: center; }
.offer-answer { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-top: 1rem; padding: 1.2rem; }
.offer-decided { text-align: center; margin-top: 1rem; }
@media (max-width: 700px) {
  .offer-doc { padding: 1.1rem .9rem; font-size: 13.5px; }
  .offer-doc-head { grid-template-columns: 1fr; gap: 1rem; }
  .offer-doc-from { order: -1; align-items: stretch; } .offer-doc-from img { width: 150px; }
  .offer-doc-to { padding-top: 0; }
  .offer-doc .offer-table .col-pos, .offer-doc .offer-table .col-unit, .offer-doc .offer-table .col-qty { display: none; }
  .offer-doc .offer-table .unit-m { display: block; }
  .offer-doc .offer-table .offer-img img { width: 84px; height: 64px; }
  .offer-doc-totals { max-width: none; }
}
@media print {
  body.offer-public { padding: 0; background: #fff; }
  .offer-doc-bar, .offer-answer, .alert, .offer-decided { display: none !important; }
  .offer-doc { border: 0; box-shadow: none; padding: 0; }
}

/* 4.10: Angebotspositionen – Werkzeuge, Prüfung, Speicherstand */
.offer-item-tools { display: inline-flex; gap: .2rem; align-items: center; }
.offer-item-tools .icon-btn { min-width: 34px; min-height: 34px; font-size: 1rem; line-height: 1; }
.offer-item-tools .icon-btn:disabled { opacity: .35; }
#of input.invalid, #of textarea.invalid { border-color: var(--bad); background: var(--bad-soft); outline-color: var(--bad); }
.offer-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.offer-add { margin-top: .8rem; }
#toast .toast-undo { color: #fff; text-decoration: underline; margin-left: .6rem; min-height: 0; padding: 0; background: none; border: 0; }
button.is-busy { cursor: progress; }
@media (max-width: 700px) { .offer-head-actions { align-items: stretch; } }
@media (max-width: 520px) { .offer-item-tools { order: 3; margin-left: auto; } }
.offer-doc .offer-table { table-layout: fixed; }
.offer-doc .offer-table .col-qty { width: 5.5rem; } .offer-doc .offer-table .col-unit, .offer-doc .offer-table .col-sum { width: 6.8rem; }
@media (max-width: 700px) { .offer-doc .offer-table .col-sum { width: 6rem; } }

/* ===== Vorgangsakte (5.1): Auftrag als ein Vorgang von der Anfrage bis zur Rechnung ===== */
.va { display: flex; flex-direction: column; gap: 1rem; }
.va h1, .va h2, .va-kpis b, .va-journey b { font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.va-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "badge title meta" "badge actions actions"; gap: .35rem 1rem; align-items: center; }
.va-badge { grid-area: badge; align-self: start; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font: 800 20px 'Plus Jakarta Sans', system-ui, sans-serif; color: #fff;
  background: linear-gradient(135deg, #23476b, #10263a); box-shadow: 0 10px 22px -10px rgba(16, 38, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .15); position: relative; }
.va-badge::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid var(--bg); }
.va-title { grid-area: title; min-width: 0; }
.va-crumb { margin: 0; font-size: .82rem; color: var(--muted); } .va-crumb a { color: var(--ink-3); font-weight: 600; text-decoration: none; }
.va-title h1 { font-size: 1.85rem; font-weight: 800; margin: .1rem 0; }
.va-sub { margin: 0; color: var(--muted); font-size: .9rem; } .va-sub a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.va-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.va-due { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-weight: 700; font-size: .84rem; background: var(--info-soft); color: var(--info); }
.va-due.warn { background: #fff4dc; color: #a35f00; } .va-due.bad { background: var(--bad-soft); color: var(--bad); } .va-due.ok { background: var(--ok-soft); color: var(--ok); }
.va-due .i { width: 15px; height: 15px; }
.va-lex { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.va-actions { grid-area: actions; }
.va-journey { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 1.3rem 1rem 1.1rem; overflow-x: auto; }
.va-journey ol { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); margin: 0; padding: 0; min-width: 640px; }
.va-journey li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 0 .3rem; }
.va-journey li::before { content: ""; position: absolute; top: 22px; left: -50%; width: 100%; height: 4px; background: var(--line-2); border-radius: 4px; z-index: 0; }
.va-journey li:first-child::before { display: none; }
.va-journey li.past::before, .va-journey li.now::before { background: linear-gradient(90deg, #1f8a4c, #2ea865); }
.va-journey li.now::before { background: linear-gradient(90deg, #2ea865, var(--orange)); }
.va-dot { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); color: #9aa6b3; margin-bottom: .35rem; }
.va-dot .i { width: 19px; height: 19px; }
.va-journey li.done .va-dot { background: linear-gradient(135deg, #2ea865, #1f8a4c); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -6px rgba(31, 138, 76, .7); }
.va-journey li.done .va-dot .i { stroke-width: 3; }
.va-journey li.now .va-dot { background: linear-gradient(135deg, #ffa149, #ef6c1a 55%, #d4470b); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(239, 108, 26, .16), 0 8px 18px -6px rgba(239, 108, 26, .8); animation: va-pulse 2.4s infinite; }
.va-journey li.skip .va-dot { border-style: dashed; }
@keyframes va-pulse { 50% { box-shadow: 0 0 0 10px rgba(239, 108, 26, .06), 0 8px 18px -6px rgba(239, 108, 26, .8); } }
.va-journey b { font-size: .9rem; color: var(--ink); } .va-journey li.now b { color: var(--orange-2); } .va-journey li.todo b, .va-journey li.skip b { color: var(--muted); font-weight: 600; }
.va-journey small { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.va-next { display: flex; gap: 1rem; align-items: stretch; justify-content: space-between; border-radius: 18px; padding: 1.2rem 1.3rem; border: 1px solid #ffd9bf;
  background: radial-gradient(120% 160% at 0% 0%, #fff4ea 0%, #fff 55%); box-shadow: var(--shadow); }
.va-next.late { border-color: #f3c2bd; background: radial-gradient(120% 160% at 0% 0%, #fdecea 0%, #fff 55%); }
.va-next.complete { border-color: #bfe5cc; background: radial-gradient(120% 160% at 0% 0%, #e6f5ec 0%, #fff 55%); }
.va-next-l { min-width: 0; flex: 1; }
.va-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; color: var(--orange-2); }
.va-next h2 { font-size: 1.35rem; font-weight: 800; margin: .15rem 0 .3rem; }
.va-next p { margin: 0 0 .7rem; font-size: .9rem; }
.va-next-act { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.va-next #next-action button { min-height: 44px; padding: .55rem 1.1rem; border-radius: 12px; font-weight: 700; border: 0; background: linear-gradient(135deg, #ffa149 0%, #ef6c1a 45%, #d4470b 100%); box-shadow: 0 10px 20px -8px rgba(239, 108, 26, .8); }
.va-next #next-action button:hover { filter: brightness(1.05); }
.va-thumbs { display: flex; gap: .6rem; flex: none; }
.va-thumbs figure { margin: 0; width: 112px; background: linear-gradient(160deg, #f2f5f9, #e7edf4); border-radius: 14px; padding: .4rem .4rem .3rem; text-align: center; border: 1px solid var(--line-2); }
.va-thumbs img { width: 100%; height: auto; display: block; }
.va-thumbs figcaption { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.va-kpis > div { padding: .8rem 1rem; border-right: 1px solid var(--line-2); }
.va-kpis small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 700; color: var(--muted); }
.va-kpis b { font-size: 1.4rem; font-weight: 800; color: var(--ink); } .va-kpis .good-text { color: var(--ok); } .va-kpis .warn-text { color: var(--warn); }
.va-stepper { margin: 0; }
.va-tl .card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.va-tl h3 { margin: 0; }
.va-tl-f { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 3px; }
.va-tl-f button { background: none; border: 0; color: var(--muted); min-height: 0; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.va-tl-f button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 38, 58, .12); }
.va-note { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; margin: .7rem 0 .4rem; }
.va-note textarea { width: 100%; min-height: 64px; border-radius: 12px; resize: vertical; }
.va-next #next-action:empty { display: none; }
.va-tl-list { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 640px; overflow: auto; }
.va-tl-list li { display: flex; gap: .6rem; padding: .45rem 0; }
.va-tl-list.short > li:nth-child(n+7) { display: none; }
.va-tl-i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--ink-3); margin-top: 1rem; }
.va-tl-i .i { width: 14px; height: 14px; }
.va-tl-list li > div { min-width: 0; flex: 1; }
.va-tl-list small { color: var(--muted); font-size: .74rem; }
.va-bubble { margin: .15rem 0 0; padding: .5rem .7rem; border-radius: 4px 12px 12px 12px; background: var(--soft); font-size: .86rem; }
.va-bubble b { display: block; color: var(--ink); font-weight: 650; }
.va-bubble span { display: block; white-space: pre-wrap; color: var(--text); overflow-wrap: anywhere; }
.k-customer .va-tl-i { background: var(--info-soft); color: var(--info); } .k-customer .va-bubble { background: #eef5fc; }
.k-note .va-tl-i { background: #fff4dc; color: #a35f00; } .k-note .va-bubble { background: #fff8e6; border: 1px solid #f7e2a8; }
@media (max-width: 900px) {
  .va-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge title" "meta meta" "actions actions"; }
  .va-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .va-next { flex-direction: column; } .va-thumbs { overflow-x: auto; }
}
@media (max-width: 560px) { .va-badge { width: 46px; height: 46px; font-size: 16px; } .va-title h1 { font-size: 1.4rem; } .va-thumbs figure { width: 92px; } }

/* ------------------------------------------------------------------ Sammellink (5.3) */
body.collect-public { background: var(--soft); padding: 1rem .8rem 2.5rem; min-height: 100vh; }
.cl-wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.cl-hero { color: #fff; padding: 1.2rem 1.2rem 1.3rem; border-radius: 22px; background: radial-gradient(120% 120% at 100% 0%, rgba(239, 108, 26, .45), transparent 55%), linear-gradient(135deg, #10263d, #183a5c); box-shadow: 0 24px 48px -24px rgba(14, 34, 54, .6); }
.cl-logo { height: 38px; background: #fff; border-radius: 10px; padding: 5px 9px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.cl-eyebrow { margin: 1rem 0 .2rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffb27a; }
.cl-hero h1 { color: #fff; font-size: 1.7rem; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.cl-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cl-meta span { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 99px; padding: .3rem .75rem; font-size: .85rem; color: #dbe6f2; }
.cl-meta span b { color: #fff; } .cl-meta span.soon { background: rgba(239, 108, 26, .25); border-color: rgba(255, 161, 73, .5); }
.cl-note { margin: .8rem 0 0; color: #cfdbe8; font-size: .92rem; }
.cl-card { background: #fff; border-radius: 20px; padding: 1.3rem; box-shadow: 0 24px 48px -24px rgba(14, 34, 54, .45); border: 1px solid #e3e8ef; display: flex; flex-direction: column; gap: .9rem; }
.cl-card h2 { margin: 0; font-size: 1.2rem; }
.cl-card label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.cl-card label.check { flex-direction: row; align-items: flex-start; font-weight: 400; font-size: .85rem; color: #4a5a6e; }
.cl-card input:not([type=radio]):not([type=checkbox]) { min-height: 48px; font-size: 1.05rem; border-radius: 12px; }
.cl-hint { font-weight: 400; color: #66758a; font-size: .8rem; } .cl-hint.bad { color: #c22d26; font-weight: 700; }
.cl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cl-sizes { border: 0; padding: 0; margin: 0; } .cl-sizes legend { font-weight: 700; font-size: .92rem; margin-bottom: .45rem; padding: 0; }
.cl-size-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.cl-card label.cl-size { display: inline-flex; flex-direction: row; position: relative; }
.cl-size input { position: absolute; opacity: 0; pointer-events: none; }
.cl-size span { min-width: 54px; min-height: 46px; padding: 0 .8rem; border-radius: 12px; border: 1.5px solid #d5dde7; display: grid; place-items: center; font-weight: 700; background: #f6f8fb; cursor: pointer; transition: all .12s; }
.cl-size.none span { font-weight: 500; font-size: .85rem; color: #66758a; }
.cl-size input:checked + span { background: linear-gradient(135deg, #ffa149, #ef6c1a 45%, #d4470b); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgba(239, 108, 26, .9); }
.cl-size input:focus-visible + span { outline: 3px solid #2563c9; outline-offset: 2px; }
.cl-submit { min-height: 54px; font-size: 1.05rem; font-weight: 800; border-radius: 14px; border: 0; background: linear-gradient(135deg, #ffa149, #ef6c1a 45%, #d4470b); box-shadow: 0 14px 28px -14px rgba(239, 108, 26, .95); }
.cl-small { font-size: .78rem; color: #66758a; margin: 0; } .cl-small a { word-break: break-all; }
.cl-done { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border-radius: 20px; padding: 1.1rem 1.2rem; border: 1px solid #bfe5cc; box-shadow: 0 24px 48px -24px rgba(14, 34, 54, .45); }
.cl-done p { margin: .25rem 0 0; }
.cl-check { width: 44px; height: 44px; border-radius: 50%; background: #22a06b; color: #fff; font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; flex: none; animation: cl-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cl-pop { from { transform: scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cl-check { animation: none; } }
.cl-foot { text-align: center; font-size: .8rem; color: #66758a; }

/* Sammellink in der Vorgangsakte */
.cl-panel .cl-bars { display: grid; gap: .5rem; margin: .6rem 0; }
.cl-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; font-size: .85rem; }
.cl-bar .track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.cl-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, #ffa149, #ef6c1a); border-radius: 99px; }
.cl-sizes-line { font-size: .8rem; color: var(--muted); grid-column: 1 / -1; }
.cl-link { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; background: #f6f8fb; border: 1px dashed #d5dde7; border-radius: 12px; padding: .5rem .6rem; }
.cl-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.cl-entries td.dup { color: #c22d26; font-weight: 700; }

/* ===========================================================================
   Dunkelmodus (5.3): Farben über Variablen; „Papier“ (Dokumente, Zeichnungen, Gestalter-Fläche) bleibt hell.
   =========================================================================== */
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0b1622; --card: #13212f; --soft: #172738; --line: #263a4f; --line-2: #1c2e40; --line-strong: #34506b;
  --text: #e3eaf2; --muted: #9aabbd; --ink: #f1f5fa; --ink-2: #9cc7f0; --ink-3: #b9cde1;
  --orange-soft: #3a2414; --ok: #4cc584; --ok-soft: #13301f; --warn: #f0b04a; --warn-soft: #33270f; --bad: #ff7b6e; --bad-soft: #3a1a17; --info: #79b3f2; --info-soft: #132a44;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
}
:root[data-theme=dark] .topbar { background: #0f1d2b; border-color: var(--line); }
:root[data-theme=dark] input, :root[data-theme=dark] select, :root[data-theme=dark] textarea { background: #0f1c29; color: var(--text); border-color: var(--line-strong); }
:root[data-theme=dark] input::placeholder, :root[data-theme=dark] textarea::placeholder { color: #6f8297; }
:root[data-theme=dark] button.secondary, :root[data-theme=dark] .button.secondary { color: var(--ink); }
:root[data-theme=dark] dialog#modal { background: var(--card); color: var(--text); }
:root[data-theme=dark] body { color: var(--text); }
:root[data-theme=dark] .back { color: var(--muted); }
:root[data-theme=dark] label { color: #b9c8d8; }
:root[data-theme=dark] input[readonly] { color: var(--muted); }
:root[data-theme=dark] .tabs a.active { color: var(--ink); }
:root[data-theme=dark] th { color: #8fa3b8; }
:root[data-theme=dark] .topbar { backdrop-filter: none; }
:root[data-theme=dark] .empty { background: rgba(255, 255, 255, .02); }
:root[data-theme=dark] .dashboard-flow { background: var(--card); }
:root[data-theme=dark] .howto > summary { color: var(--ink); }
:root[data-theme=dark] img { color-scheme: light; }
/* Papier bleibt Papier */
:root[data-theme=dark] :is(.offer-doc, .surface, .qr, .offer-thumb, .lib-thumbs, .photo-grid figure, .ref-grid figure, #print-sheet, .proof-sheet, .garment-tile) {
  --card: #fff; --soft: #fafbfc; --line: #dfe4ea; --line-2: #eef1f4; --line-strong: #c9d2dc; --text: #16222e; --muted: #5d6673; --ink: #10263a; --ink-2: #1b3a55; --ink-3: #2b4d6b;
  --orange-soft: #fff1e7; --ok-soft: #e6f5ec; --warn-soft: #fff4dc; --bad-soft: #fdecea; --info-soft: #e8f1fb; --ok: #1f8a4c; --warn: #b26a00; --bad: #c0392b; --info: #2463a6;
  color: var(--text); color-scheme: light;
}
:root[data-theme=dark] .va-next { border-color: rgba(239, 108, 26, .35); background: radial-gradient(120% 160% at 0% 0%, rgba(239, 108, 26, .18) 0%, var(--card) 55%); }
:root[data-theme=dark] .va-next.late { border-color: rgba(255, 123, 110, .35); background: radial-gradient(120% 160% at 0% 0%, rgba(255, 123, 110, .16) 0%, var(--card) 55%); }
:root[data-theme=dark] .va-next.complete { border-color: rgba(76, 197, 132, .35); background: radial-gradient(120% 160% at 0% 0%, rgba(76, 197, 132, .14) 0%, var(--card) 55%); }
:root[data-theme=dark] .va-thumbs a, :root[data-theme=dark] .va-thumbs figure { color-scheme: light; }
:root[data-theme=dark] .week .day.holiday { background: repeating-linear-gradient(135deg, #2a1d12 0 10px, #241a10 10px 20px); }
.search-results a > .i { margin-right: .45rem; color: var(--orange-2); vertical-align: -3px; }

/* Kacheln und Leer-Zustände (5.3) */
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 0 0 1.2rem; }
.hub-tile { display: flex; gap: .8rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .12s, border-color .12s; }
a.hub-tile:hover { transform: translateY(-2px); border-color: var(--orange); }
.hub-tile b { display: block; font: 800 1.45rem/1.1 'Plus Jakarta Sans', Inter, system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.hub-tile small { display: block; font-size: .78rem; font-weight: 650; color: var(--muted); }
.hub-tile em { display: block; font-style: normal; font-size: .74rem; color: var(--muted); margin-top: .1rem; }
.hub-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--ink-3); }
.hub-tile.or .hub-ic { background: linear-gradient(135deg, #ffa149, #ef6c1a 45%, #d4470b); color: #fff; box-shadow: 0 8px 16px -8px rgba(239, 108, 26, .8); }
.hub-tile.ok .hub-ic { background: var(--ok-soft); color: var(--ok); } .hub-tile.warn .hub-ic { background: var(--warn-soft); color: var(--warn); }
.hub-tile.bad .hub-ic { background: var(--bad-soft); color: var(--bad); } .hub-tile.bad b { color: var(--bad); }
.hub-tile.info .hub-ic { background: var(--info-soft); color: var(--info); } .hub-tile.vi .hub-ic { background: #efe9ff; color: #6d3ef0; }
:root[data-theme=dark] .hub-tile.vi .hub-ic { background: #251d45; color: #b49cff; }
.empty-art { text-align: center; padding: 2rem 1.2rem 2.2rem; background: var(--card); border: 1px dashed var(--line-strong); border-radius: 18px; }
.empty-art svg { width: 160px; height: 130px; display: block; margin: 0 auto .6rem; }
.empty-art .ea-s { fill: var(--line-2); } .empty-art .ea-f { fill: var(--soft); stroke: var(--ink-3); stroke-width: 3; stroke-linejoin: round; }
.empty-art .ea-l { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .empty-art .ea-o { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.empty-art h2 { margin: 0 0 .3rem; } .empty-art p { color: var(--muted); max-width: 46ch; margin: 0 auto .6rem; } .empty-art .actions { justify-content: center; }
/* Zuständigkeit (5.3) */
.va-who { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.va-who select { margin: 0; width: auto; min-height: 30px; padding: .2rem 1.6rem .2rem .5rem; font-size: .82rem; border-radius: 99px; background-color: var(--card); }
.avatar.sm { width: 26px; height: 26px; font-size: .68rem; }
.va-who .avatar { color: #fff; flex: none; }
/* Wer ist gerade da (5.3) */
.online { display: flex; align-items: center; padding-right: .3rem; }
.online .avatar { margin-left: -7px; color: #fff; border: 2px solid var(--card); box-shadow: none; position: relative; cursor: default; }
.online .avatar.on::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); }
.online .avatar.c1 { background: linear-gradient(135deg, #5b8def, #2b59c3); } .online .avatar.c2 { background: linear-gradient(135deg, #3fd08f, #13895a); } .online .avatar.c3 { background: linear-gradient(135deg, #a78bfa, #6d3ef0); }
.online .avatar.more { background: var(--line-2); color: var(--ink-3); }
@media (max-width: 760px) { .online { display: none; } }
/* Handy: laufende Zeit nur als grünes Uhr-Symbol, damit die Kopfzeile nicht über den Rand geht (5.3) */
@media (max-width: 600px) { .timer-badge span { display: none; } .timer-badge { padding: .2rem .5rem; } }
/* Entwurf im Angebot (5.3.1) */
.offer-table .offer-draft { display: block; clear: both; margin: .6rem 0 .2rem; max-width: 460px; }
.offer-table .offer-draft img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
.offer-proof { margin: 1.4rem 0; }
.offer-proof h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.offer-proof-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin: .6rem 0; }
.offer-proof-pages img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }

/* ==========================================================================
   Lager: Vorschläge aus den Preislisten beim Tippen (5.3.2)
   ========================================================================== */
.suggest-wrap { position: relative; }
.suggest-box { position: absolute; left: 0; top: 100%; z-index: 60; width: min(640px, 92vw); max-height: 340px; overflow: auto; margin-top: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16, 38, 58, .18); padding: .25rem; }
.grid.three > label:nth-child(2) .suggest-box { left: 50%; transform: translateX(-50%); }
/* nur in der Vorschlagsliste – .sg-item ist auch der Preisvorschlag im Auftrag (5.5.2: dort war die Tabelle sonst eine 150-px-Spalte) */
.suggest-box .sg-item { width: 100%; display: grid; grid-template-columns: 1fr 150px 80px; gap: .6rem; text-align: left; background: transparent; color: var(--text); border: 0; border-radius: 8px; padding: .45rem .55rem; font-weight: 500; min-height: 0; white-space: normal; align-items: start; }
.suggest-box .sg-item small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.suggest-box .sg-item .right { text-align: right; }
.suggest-box .sg-item:hover, .suggest-box .sg-item.active { background: var(--orange-soft); color: var(--text); }
.sg-none { margin: .4rem .55rem; }
.sg-hint .sg-all { margin-left: .4rem; }
.pl-hits { margin-top: 1rem; } .pl-hits h2 { display: flex; align-items: center; gap: .4rem; font-size: 1.05rem; }
@media (max-width: 700px) { .suggest-box { width: 100%; } .suggest-box .sg-item { grid-template-columns: 1fr auto; } .suggest-box .sg-item > span:nth-child(2) { display: none; } .grid.three > label:nth-child(2) .suggest-box { left: 0; transform: none; } }

/* 5.4.1: easyTEX-CSV hochladen */
.et-csv { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.et-csv h3 { margin: 0 0 4px; }
.et-csv .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.et-csv input[type=file] { flex: 1 1 260px; min-width: 0; }

/* 5.4.2: easyTEX-Bestellung im Einkauf */
.et-order .card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.et-order h2 { display: flex; align-items: center; gap: 8px; }
.et-steps { list-style: none; padding: 0; margin: 12px 0 4px; display: grid; gap: 6px; }
.et-steps li { display: flex; gap: 8px; align-items: flex-start; }
.et-steps .et-mark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.et-steps .et-mark svg { width: 14px; height: 14px; }
.et-steps li.ok .et-mark { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.et-steps li.bad .et-mark { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.et-free .et-hit-list { list-style: none; padding: 0; margin: 6px 0 10px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.et-free .et-hit-list li + li { border-top: 1px solid var(--line-2); }
.et-free .et-hit-list button.et-hit { width: 100%; text-align: left; display: block; padding: 8px 10px; border: 0; border-radius: 0; white-space: normal; min-height: 0; font-weight: 500; }
.et-free .et-hit-list button small { display: block; }
.et-free .et-hit-list button.active { background: var(--line-2); }
.et-pick { margin: 8px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.et-pick-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.et-pick-head small { display: block; }
.et-pick-head label { min-width: 220px; margin: 0; }
#etfree h3 { margin: 6px 0; }

/* 5.4.3: Bedarf an easyTEX senden */
.et-need { margin: 10px 0 0; }
.et-dtf { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.et-dtf small { display: block; color: var(--muted); padding-left: 26px; }
.et-progress { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.et-progress p { margin: 4px 0; }
#etd h3 { margin: 14px 0 6px; }
/* 5.5.0: Systemstatus – Cronjob-Zeilen und Fehlerprotokoll */
.sys-more { margin: .8rem 0; } .sys-more summary { cursor: pointer; font-weight: 600; padding: .3rem 0; }
.sys-more label { display: block; margin-top: .5rem; } .sys-more input.mono { width: 100%; }
pre.log { max-height: 320px; overflow: auto; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font-size: .78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
/* 5.5.0: Darstellungsfehler aus der Oberflächen-Prüfung aller Seiten */
.proj-panel button { white-space: normal; }
.dtf-items select { width: 100%; min-width: 0; }
.pers-grid { table-layout: fixed; } .pers-grid input, .pers-grid select { width: 100%; min-width: 0; }
.kpi b { overflow-wrap: anywhere; }
.order-no, .num-keep { white-space: nowrap; }
@media (max-width: 1100px) { .dtf-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .topbar { background: var(--navy); border-bottom-color: transparent; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
  .sticky-actions { flex-wrap: wrap; } .sticky-actions button { white-space: normal; }
  .kpi b { font-size: clamp(1.1rem, 5vw, 1.7rem); }
  .card p.small, .card code, .card .muted { overflow-wrap: anywhere; }
  .stepper li { min-width: 0; } .stepper a { white-space: normal; font-size: .78rem; overflow-wrap: anywhere; }
}
.price-split { display: block; font-weight: 400; font-size: .74rem; white-space: normal; min-width: 9rem; }
/* 5.5.0: easyTEX-Dialoge – Knopf bleibt sichtbar, am Handy Zeilen als Karten statt seitlich schieben */
#modal-body:has(#etd), #modal-body:has(#etf2) { overflow: visible; } /* sonst klebt der Knopf am nicht scrollenden Innenteil */
#etf2 .actions, #etd .actions { position: sticky; bottom: 0; z-index: 2; background: var(--card); padding: .65rem 0; margin-bottom: 0; box-shadow: 0 -8px 12px -10px rgba(16, 38, 58, .35); }
@media (max-width: 600px) {
  table.et-match, table.et-match tbody { display: block; }
  table.et-match thead { display: none; }
  table.et-match tr { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .2rem .4rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
  table.et-match td { display: block; grid-column: 2; border: 0; padding: 0; text-align: left; }
  table.et-match td:first-child { grid-column: 1; grid-row: 1 / span 6; }
  table.et-match td.et-q::before { content: 'Menge '; color: var(--muted); font-size: .82rem; }
  table.et-match td:last-child::before { content: 'EK '; color: var(--muted); font-size: .82rem; }
  table.et-match select, table.et-match input.qty { width: 100%; min-width: 0; max-width: none; }
}

/* 5.5.1 Anmeldefenster (Anmeldung abgelaufen, Seite bleibt stehen) */
dialog#reauth { border: 0; border-radius: 12px; padding: 1.2rem 1.3rem 1rem; width: min(420px, calc(100vw - 1.5rem)); box-shadow: 0 25px 80px rgba(0, 0, 0, .35); background: var(--card); color: var(--text); }
dialog#reauth h2 { margin: 0 0 .4rem; }
dialog#reauth input[readonly] { background: var(--bg); color: var(--muted); }
dialog#reauth .actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .4rem; }
dialog#reauth details { margin-top: .6rem; }
dialog#reauth::backdrop { background: rgba(10, 24, 38, .72); backdrop-filter: blur(2px); }
:root[data-theme=dark] dialog#reauth { border: 1px solid var(--line-strong); box-shadow: 0 25px 80px rgba(0, 0, 0, .7); }

/* 5.5.1 Änderungsprotokoll */
.alog { list-style: none; margin: 0; padding: 0; }
.alog > li { padding: .7rem 0; border-top: 1px solid var(--line-2); display: grid; gap: .25rem; }
.alog > li:first-child { border-top: 0; }
.alog-h { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.alog-d { display: grid; gap: .1rem; font-size: .9rem; color: var(--ink-2, var(--text)); overflow-wrap: anywhere; }
.alog .empty { padding: 1rem 0; }
#al-area { width: auto; min-width: 12rem; }
