/* Paketportal POSTUNDVERSAND · CI: Navy #16365C, Rot #E30613, Orange #F0531F */
:root {
  --navy: #16365C;
  --navy-2: #0F2742;
  --red: #E30613;
  --orange: #F0531F;
  --ink: #1B2530;
  --muted: #5A6673;
  --fine: #646E79;
  --line: #E4E8EC;
  --fill: #F5F7F9;
  --bg: #EEF1F4;
  --ok: #17673F;
  --ok-bg: #E6F4EC;
  --warn: #8A5A00;
  --warn-bg: #FFF4DB;
  --err: #B3121F;
  --err-bg: #FDECEE;
  --radius: 10px;
  --font: 'Segoe UI', Inter, Arial, Helvetica, sans-serif;
  --mono: Consolas, 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1 { font-size: 1.6rem; margin: 0 0 .2rem; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.02rem; margin: 0 0 .9rem; color: var(--navy); font-weight: 650; display: flex; align-items: center; gap: .5rem; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1.mono { font-size: 1.45rem; letter-spacing: .02em; }
.small { font-size: .82rem; }
.muted { color: var(--muted); margin: 0; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }

/* ---------- Modusleiste ---------- */
.modebar { text-align: center; font-size: .82rem; font-weight: 600; padding: .35rem 1rem; color: #fff; letter-spacing: .02em; }
.mode-mock { background: repeating-linear-gradient(135deg, var(--red) 0 14px, #C70511 14px 28px); }
.mode-sandbox { background: var(--orange); }

/* ---------- Kopf ---------- */
.top { display: flex; align-items: center; gap: 1rem; background: #fff; padding: .6rem 1.4rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.logo-li { height: 30px; width: auto; }
.logo-lf { height: 34px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; border-left: 1px solid var(--line); padding-left: .9rem; }
.brand-txt strong { color: var(--navy); font-size: 1.05rem; }
.brand-txt small { color: var(--muted); font-size: .7rem; letter-spacing: .12em; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.who { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.who span { display: flex; flex-direction: column; line-height: 1.15; }
.who small { color: var(--muted); font-size: .75rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid !important; place-items: center; font-weight: 700; }
.navtoggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: .3rem; }
.cibar { display: flex; height: 4px; }
.cibar span:nth-child(1) { flex: 0 0 90px; background: var(--red); }
.cibar span:nth-child(2) { flex: 0 0 90px; background: var(--orange); }
.cibar span:nth-child(3) { flex: 1; background: var(--line); }

/* ---------- Gerüst ---------- */
.shell { display: flex; min-height: calc(100vh - 110px); }
.side { flex: 0 0 236px; background: var(--navy); padding: 1rem .7rem; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: .65rem; color: #C9D5E3; text-decoration: none; padding: .55rem .75rem; border-radius: 8px; font-size: .93rem; }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.on { background: #fff; color: var(--navy); font-weight: 600; }
.side a.on svg { color: var(--red); }
.side-h { color: #9DB0C5; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 1.1rem .75rem .35rem; }
.side-foot { margin-top: auto; padding: 1rem .75rem 0; color: #8FA3B9; font-size: .78rem; border-top: 1px solid rgba(255,255,255,.1); }
.side-foot a { color: #C9D5E3; padding: 0; display: inline; }
.main { flex: 1; min-width: 0; padding: 1.6rem 2rem 3rem; max-width: 1400px; }
.foot { background: #fff; color: var(--fine); font-size: .78rem; padding: .8rem 2rem; border-top: 1px solid var(--line); }

/* ---------- Bausteine ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.crumb { margin: 0 0 .15rem; font-size: .85rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.card { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1.2rem; box-shadow: 0 1px 2px rgba(22,54,92,.06), 0 0 0 1px rgba(22,54,92,.05); }
.card.narrow { max-width: 760px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card.danger { border-left: 4px solid var(--red); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.grid2 > .card, .grid3 > .card { margin-bottom: 0; }
.grid2, .grid3 { margin-bottom: 1.2rem; }
.col { display: flex; flex-direction: column; gap: 1.2rem; }
.col > .card { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.cards .card { margin: 0; }
.empty { color: var(--muted); padding: 1rem 0; margin: 0; }
.addr { margin: 0; line-height: 1.6; }
.count { background: var(--fill); color: var(--navy); border-radius: 20px; padding: .05rem .55rem; font-size: .8rem; }
.plainlist { margin: 0; padding-left: 1.1rem; line-height: 1.8; }
.btns { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 1.2rem; }
.kpi { background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: 0 0 0 1px rgba(22,54,92,.05); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--navy); }
.kpi:nth-child(2)::before { background: var(--orange); }
.kpi:nth-child(3)::before { background: var(--red); }
.kpi span { display: block; color: var(--muted); font-size: .82rem; }
.kpi strong { display: block; font-size: 2rem; color: var(--navy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi a { font-size: .82rem; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 1rem; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.bar-f { width: 100%; max-width: 32px; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 2px; height: 2px; transition: height .4s; }
.bar:last-child .bar-f { background: var(--red); }
.bar-v { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-l { font-size: .7rem; color: var(--fine); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.quick a { display: block; padding: .9rem 1rem; border-radius: 8px; background: var(--fill); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.quick a:hover { border-color: var(--navy); }
.quick strong { display: block; color: var(--navy); }
.quick span { font-size: .82rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .92rem;
  padding: .55rem 1rem; border-radius: 8px; border: 1px solid #C9D2DB; background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #B8050F; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); font: inherit; cursor: pointer; padding: .4rem .6rem; border-radius: 6px; }
.btn-ghost:hover { background: var(--fill); color: var(--red); }
.btn-sm { padding: .3rem .65rem; font-size: .82rem; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: .2rem .45rem; border-radius: 6px; }
.icon-btn:hover { background: var(--err-bg); color: var(--err); }
form.inline { display: inline; }

/* Formulare */
.row { display: flex; gap: .8rem; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; margin-bottom: .8rem; min-width: 0; }
.field.grow { flex: 1 1 220px; }
.w-xs { flex: 0 0 70px; width: 70px; } .w-s { flex: 0 0 90px; } .w-m { flex: 0 0 120px; } .w-l { flex: 0 0 180px; } .w-xl { flex: 0 0 240px; }
.field label { font-size: .8rem; color: var(--muted); margin-bottom: .25rem; font-weight: 600; }
.req { color: var(--red); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #C9D2DB; border-radius: 7px; padding: .5rem .65rem; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(22,54,92,.25); border-color: var(--navy); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--navy); }
input[type=file] { padding: .4rem; background: var(--fill); }
.has-err input, .has-err select { border-color: var(--err); background: #FFFBFB; }
.hint { color: var(--fine); font-size: .75rem; margin-top: .2rem; }
.err { color: var(--err); font-size: .78rem; margin-top: .2rem; display: block; }
.err-txt { color: var(--err); font-size: .85rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; margin: .35rem 0 .7rem; cursor: pointer; }
.check input { margin-top: .25rem; }
.check span { display: flex; flex-direction: column; }
.check small { color: var(--fine); font-size: .76rem; }
.check.inline { margin: 0; align-items: center; }
.check.inline input { margin-top: 0; }
.stack .field { margin-bottom: 1rem; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.actions .muted { margin-right: auto; }
.actions.sticky { position: sticky; bottom: 0; background: rgba(238,241,244,.94); backdrop-filter: blur(6px); padding: .8rem 0; margin: 0; z-index: 5; border-top: 1px solid var(--line); }
.filter { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-start; padding-bottom: .4rem; }
.filter .push { margin-left: auto; }
.pricegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 .8rem; }

.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 3px; margin-bottom: 1rem; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .42rem 1rem; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(22,54,92,.15); }
.seg input:focus-visible + span { outline: 2px solid var(--navy); }

.step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; }
.formgrid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.2rem; align-items: start; margin-bottom: 1.2rem; }
.formgrid > .card { margin: 0; }
.adrpick select { min-width: 240px; font-size: .88rem; padding: .35rem .5rem; }
.zoll { border-top: 4px solid var(--orange); }
.is-hidden { display: none !important; }

.kundenwahl { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: var(--radius); padding: .55rem .9rem; margin-bottom: 1.1rem; box-shadow: 0 0 0 1px rgba(22,54,92,.05); }
.kundenwahl label { font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.kundenwahl select { max-width: 420px; }

/* Tabellen */
.tablewrap { overflow-x: auto; }
.tablewrap.tall { max-height: 460px; overflow-y: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .55rem .6rem; border-bottom: 2px solid var(--line); background: #fff; position: sticky; top: 0; }
.tbl td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:hover td { background: #FAFBFC; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.tbl .sub { display: block; color: var(--muted); font-size: .8rem; }
.tbl .sub.warn { color: var(--warn); }
.tbl-form td { padding: .35rem .3rem; border-bottom: 0; }
.tbl-form input, .tbl-form select { padding: .4rem .5rem; font-size: .88rem; }
.tbl-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; gap: 1rem; }
tr.row-err td { background: #FFF8F8; }
.tbl th.r, .tbl td.r { text-align: right; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .12rem .55rem; border-radius: 20px; vertical-align: middle; letter-spacing: .02em; font-family: var(--font); }
.b-open { background: #FFF1E9; color: #B2400F; }
.b-done { background: var(--ok-bg); color: var(--ok); }
.b-cancel { background: #EEF0F2; color: var(--muted); text-decoration: line-through; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.preview iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 8px; background: var(--fill); }

.pager { display: flex; gap: .3rem; flex-wrap: wrap; }
.pager a { padding: .35rem .7rem; border-radius: 6px; background: #fff; text-decoration: none; }
.pager a.on { background: var(--navy); color: #fff; }

/* Meldungen */
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .92rem; border-left: 4px solid; }
.flash ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.flash-ok { background: var(--ok-bg); border-color: var(--ok); color: #124D30; }
.flash-warn { background: var(--warn-bg); border-color: #E3A21A; color: var(--warn); }
.flash-err { background: var(--err-bg); border-color: var(--err); color: var(--err); }

/* Anmeldung */
body.plain { background: var(--navy); background-image: radial-gradient(circle at 20% 0%, #1E4677 0, transparent 55%); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { background: #fff; border-radius: 14px; padding: 2rem 2.2rem 1.8rem; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login-card .cibar { margin: 1.2rem -2.2rem 1.4rem; }
.login-logos { display: flex; justify-content: space-between; align-items: center; }
.login-logos .logo-li { height: 40px; } .login-logos .logo-lf { height: 48px; }
.login-card h1 { margin-bottom: .3rem; font-size: 1.4rem; line-height: 1.25; }
.login-card .muted { margin-bottom: 1.3rem; }
.mode-note { text-align: center; color: var(--red); font-weight: 700; font-size: .8rem; margin: 1rem 0 0; letter-spacing: .04em; }
.login-link { text-align: center; margin: 1rem 0 0; font-size: .9rem; }
.login-link a { color: var(--navy); }
.login-foot { color: #9FB3C8; font-size: .82rem; margin-top: 1.2rem; }
.login-foot a { color: #DCE6F0; }

/* Mobil */
@media (max-width: 1100px) {
  .formgrid, .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .navtoggle { display: block; }
  .brand-txt, .who span:not(.avatar) { display: none; }
  .logo-li { height: 24px; } .logo-lf { height: 28px; }
  .top { padding: .5rem 1rem; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 30px rgba(0,0,0,.3); }
  .side.open { transform: none; }
  .main { padding: 1rem 1rem 3rem; }
  .grid3, .kpis, .quick { grid-template-columns: 1fr; }
  .w-l, .w-xl { flex: 1 1 160px; }
  .kundenwahl { flex-direction: column; align-items: stretch; }
  .adrpick select { min-width: 0; width: 100%; }
}
@media print {
  .side, .top, .cibar, .modebar, .foot, .actions, .btn { display: none !important; }
  body { background: #fff; }
}
.keybox { display: block; margin-top: .4rem; padding: .5rem .7rem; background: #fff; border: 1px dashed #E3A21A; border-radius: 6px; word-break: break-all; user-select: all; color: var(--ink); }
.tbl tbody.grp { border-top: 2px solid var(--line); }
.tbl tr.subtotal td { font-weight: 650; background: var(--fill); color: var(--navy); }
.tbl tr.row-hl td { background: #F3F7FC; font-weight: 600; }
.card > p.muted { margin-bottom: .8rem; }
.setup-card { max-width: 520px; }
.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: .88rem; }
.checklist li { padding: .45rem .6rem .45rem 1.9rem; border-radius: 6px; margin-bottom: .3rem; position: relative; }
.checklist li::before { position: absolute; left: .6rem; font-weight: 700; }
.ck-ok { background: var(--ok-bg); color: #124D30; } .ck-ok::before { content: '✓'; }
.ck-warn { background: var(--warn-bg); color: var(--warn); } .ck-warn::before { content: '!'; }
.ck-err { background: var(--err-bg); color: var(--err); word-break: break-all; } .ck-err::before { content: '×'; }
.tbl-zonen th[scope=row] { white-space: nowrap; font-size: .82rem; color: var(--ink); text-transform: none; letter-spacing: 0; position: static; }
.tbl-zonen input { min-width: 72px; text-align: right; }
.zonelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem 1.2rem; font-size: .85rem; }
.zonelist strong { display: block; color: var(--navy); }
.zonelist span { color: var(--muted); }
.preis { width: 100%; border-collapse: collapse; font-size: .88rem; }
.preis td { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.preis td.r { white-space: nowrap; padding-left: 1rem; }
.preis tr.nb td { color: var(--warn); }
.preis tfoot td { font-weight: 700; border-bottom: 0; padding-top: .5rem; color: var(--navy); }
.range { display: flex; gap: .3rem; flex-wrap: wrap; }
.range a { font-size: .8rem; padding: .25rem .6rem; border-radius: 20px; background: var(--fill); text-decoration: none; }
.range a.on { background: var(--navy); color: #fff; }
.nbform { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.bars-wide { gap: 3px; height: 190px; } .bars-wide .bar-v { font-size: .65rem; }

/* ---------- Zustellstatus und Nachforschungen ---------- */
.b-info { background: #E8F0FA; color: var(--navy); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-err { background: var(--err-bg); color: var(--err); }
.b-grey { background: #EEF0F2; color: var(--muted); }
textarea { min-height: 6rem; resize: vertical; line-height: 1.45; }
.field textarea { display: block; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; border-left: 2px solid var(--line); margin-left: .35rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: #C9D2DB; }
.timeline li:first-child::before { background: var(--navy); }
.timeline .t-zeit { display: block; color: var(--muted); font-size: .78rem; }
.timeline .t-text { display: block; font-size: .9rem; }
.track-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.track-head .badge { font-size: .85rem; padding: .25rem .8rem; }
.msgs { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.2rem; }
.msg { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; background: #fff; }
.msg.intern { background: var(--warn-bg); border-color: #F0D9A6; }
.msg .m-kopf { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.msg .m-text { white-space: pre-wrap; font-size: .92rem; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; }
.hinweisliste { margin: .2rem 0 1rem; padding-left: 1.1rem; color: var(--muted); font-size: .85rem; }
.hinweisliste li { margin-bottom: .2rem; }
.artwahl .check.gesperrt { opacity: .55; cursor: not-allowed; }
h3.mt { margin: 1.3rem 0 .5rem; font-size: .95rem; }
.side .navcount { margin-left: auto; background: var(--orange); color: #fff; border-radius: 10px; font-size: .72rem; font-weight: 700; padding: 0 .45rem; line-height: 1.3rem; }
.track-head { align-items: flex-start; } .track-head > div { flex: 1; }
.row.mt-row { margin-top: .9rem; }
.adr-hinweis { margin: -.3rem 0 .7rem; font-size: .8rem; min-height: 0; color: var(--muted); }
.adr-hinweis:empty { display: none; }
.adr-hinweis.ok { color: var(--ok); }
.adr-hinweis.warn { color: var(--warn); }
.druck-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .druck-kopf h1 { font-size: 1.25rem; margin: 0 0 .3rem; } .druck-kopf p { margin: 0; }
.maptbl td { vertical-align: top; }
.maptbl select, .maptbl input { min-width: 220px; }
.maptbl .map2 { margin-top: .35rem; font-size: .85rem; color: var(--muted); }
.maptbl .check.inline { margin: .35rem 0 0; font-size: .85rem; }
.maptbl .mapgruppe td { background: var(--fill); font-weight: 700; color: var(--navy); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: .45rem .7rem; }
.maptbl tr.map-ok td:first-child { border-left: 3px solid var(--ok); }
.maptbl input[type=checkbox] { min-width: 0; width: auto; } .maptbl .check.inline { display: flex; justify-content: flex-start; }
.copybtn { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: .3rem; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; vertical-align: middle; position: relative; }
.copybtn:hover { background: var(--fill); border-color: var(--line); color: var(--navy); }
.copybtn.copied { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.copybtn.copied::after { content: 'Kopiert'; position: absolute; left: 50%; bottom: 120%; transform: translateX(-50%); background: var(--navy); color: #fff; font: 600 .72rem var(--font); padding: .15rem .45rem; border-radius: 4px; white-space: nowrap; }
.copybtn.copyfail { color: var(--err); }
h1 .copybtn { width: 30px; height: 30px; }
.copy-tmp { position: fixed; left: -9999px; top: 0; }
.nrwechsel { background: var(--warn-bg); border-radius: 8px; padding: .5rem .8rem; margin: -.2rem 0 .8rem; }

/* ---------- Retourenportal (öffentlich) ---------- */
body.plain:has(.rp) { background: #F3F5F7; background-image: none; }
.rp { --rp: var(--navy); max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.rp-kopf { display: flex; align-items: center; min-height: 64px; padding-bottom: 1rem; border-bottom: 4px solid var(--rp); margin-bottom: 1.5rem; }
.rp-logo { max-height: 56px; max-width: 260px; }
.rp-name { font-size: 1.4rem; color: var(--rp); }
.rp-inhalt { background: #fff; border-radius: 12px; padding: 1.6rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.rp-inhalt h1 { margin-top: 0; color: var(--rp); }
.rp-inhalt h2 { font-size: 1rem; margin: 1.4rem 0 .6rem; color: var(--rp); }
.rp-text { margin-bottom: 1rem; color: var(--ink); }
.rp .btn-primary.rp-btn { background: var(--rp); border-color: var(--rp); }
.rp-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rp-fuss { text-align: center; color: var(--fine); font-size: .78rem; margin-top: 1rem; }
.rp-label { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.rp-qr { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 640px) { .rp-label { grid-template-columns: 1fr; } .rp-inhalt { padding: 1.1rem; } }
input[type="color"] { height: 42px; padding: 4px; cursor: pointer; }

.flash-info { background: #EEF3F9; border-color: #16365C; color: #16365C; }
.rp-auftrag { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; background: #F4F6F9; border-radius: 8px; padding: .8rem 1rem; margin-bottom: .5rem; }
.rp-auftrag .btn { margin-left: auto; }
.rp-artikel select { min-width: 4.5rem; }

.rp-links h2 { margin-top: 0; }
.rp-link { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .45rem 0; border-top: 1px solid #EEF1F5; }
.rp-link:first-of-type { border-top: 0; }
.rp-link .mono { word-break: break-all; }
.rp-link-name { min-width: 14rem; font-weight: 600; }
.kpis3 { grid-template-columns: repeat(3, 1fr); }
.antl progress { width: 100%; height: .7rem; accent-color: var(--navy); }
.antl td.balken { width: 40%; }
.hilfe h2 { margin-top: 0; }
.hilfe ol li, .hilfe ul li { margin-bottom: .4rem; }
.hilfe code { background: #F1F4F8; padding: 0 .3rem; border-radius: 4px; }
@media (max-width: 800px) { .kpis3 { grid-template-columns: 1fr; } }

/* Anmeldeseite mit Werbefläche */
.anm { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) 1.15fr; }
.anm-links { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.2rem; }
.anm-rechts { position: relative; overflow: hidden; background: var(--navy-2); color: #E6EEF6; padding: 3.5rem 3.2rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.anm-rechts::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 120px, var(--orange) 120px 240px, transparent 240px); }
.anm-rechts::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(240, 83, 31, .12); pointer-events: none; }
.anm-kicker { margin: 0 0 .6rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.anm-titel { margin: 0 0 .6rem; font-size: 2rem; line-height: 1.15; color: #fff; max-width: 22ch; }
.anm-lead { margin: 0 0 1.8rem; color: #B9C9DA; max-width: 52ch; }
.anm-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; z-index: 1; }
.anm-karte { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 1.2rem 1.2rem 1rem; }
.anm-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.anm-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.anm-karte:nth-child(2) .anm-icon { background: var(--orange); }
.anm-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.anm-etikett { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .15rem .6rem; }
.anm-karte h3 { margin: 0 0 .35rem; font-size: 1.08rem; color: #fff; }
.anm-karte p { margin: 0 0 .7rem; color: #C4D2E0; font-size: .92rem; }
.anm-karte ul { margin: 0; padding: 0; list-style: none; }
.anm-karte li { position: relative; padding-left: 1.3rem; margin: .3rem 0; font-size: .88rem; color: #E6EEF6; }
.anm-karte li::before { content: ""; position: absolute; left: 0; top: .42rem; width: .55rem; height: .3rem; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.anm-cta { margin-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 1rem 1.2rem; }
.anm-cta strong { color: var(--navy); }
.anm-btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; padding: .6rem 1.1rem; border-radius: 8px; white-space: nowrap; }
.anm-btn:hover { background: #C10510; }
.anm-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 1100px) { .anm-karten { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .anm { grid-template-columns: 1fr; }
  .anm-links { min-height: auto; padding-top: 2.5rem; }
  .anm-rechts { padding: 2.4rem 1.2rem 2rem; }
  .anm-titel { font-size: 1.6rem; }
}
.anm-cta > div { flex: 1 1 260px; }

/* Registrierung */
.reg-wrap { justify-content: flex-start; }
.reg-card { max-width: 640px; }
.reg-h { font-size: 1rem; margin: 1.4rem 0 .4rem; color: var(--navy); border-top: 1px solid var(--line); padding-top: 1rem; }
.reg-card .check small { display: block; }
.login-reg { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; color: var(--muted); }
.login-reg .btn { margin-top: .5rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.tabs a { padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs a.on .muted { color: #C9D6E4; }
fieldset.module { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem .3rem; margin: .8rem 0; }
fieldset.module legend { font-weight: 600; font-size: .85rem; padding: 0 .3rem; color: var(--navy); }
.card-warn { border-left: 4px solid var(--orange); }
.preise td.small { font-size: .85rem; color: var(--muted); }
.neg { color: var(--err); }
td.pos { color: var(--ok); }
.b-sent { background: #E8EEF7; color: var(--navy); }
.check input[type=checkbox] { flex: 0 0 auto; }

.anm-mehr { display: inline-block; margin-top: .8rem; color: #fff; font-weight: 600; font-size: .9rem; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.anm-mehr:hover { color: var(--orange); }
.anm-links .login-foot + .login-foot { margin-top: .3rem; }

/* Dezente Hinweise auf weitere Leistungen */
.werbung { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.werbung-k { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 10px; padding: .8rem 2.2rem .8rem 1rem; font-size: .88rem; color: var(--muted); }
.werbung-k > div { flex: 1; }
.werbung-t { display: block; color: var(--navy); font-size: .92rem; font-weight: 700; margin: 0 0 .1rem; }
.werbung-k a { white-space: nowrap; color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.werbung-x { position: absolute; top: .35rem; right: .45rem; border: 0; background: none; color: var(--fine); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: .2rem .35rem; border-radius: 4px; }
.werbung-x:hover { color: var(--ink); background: var(--fill); }
@media print { .werbung { display: none; } }

/* Barrierefreiheit: Text nur für Screenreader, sichtbarer Fokus an Links und Knöpfen */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.werbung-k a:focus-visible, .anm-mehr:focus-visible, .login-foot a:focus-visible, .werbung-x:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
td input.w-m { width: 8rem; text-align: right; }

/* ---------------------------------------------------------------- Hilfe im Wiki Stil */
.hilfe-btn { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .9rem;
  border: 1px solid var(--line); background: #fff; padding: .38rem .75rem; border-radius: 20px; }
.hilfe-btn:hover { color: var(--red); border-color: var(--red); }
.hilfe-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 640px) { .hilfe-btn span { display: none; } .hilfe-btn { padding: .38rem .5rem; } }

.hilfe-backdrop { position: fixed; inset: 0; background: rgba(15, 39, 66, .35); z-index: 90; }
.hilfe-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: #fff; z-index: 91; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(15, 39, 66, .25); transform: translateX(100%); transition: transform .22s ease; outline: none; }
.hilfe-panel.auf { transform: none; }
@media (prefers-reduced-motion: reduce) { .hilfe-panel { transition: none; } }
.hilfe-panel-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.3rem .9rem;
  background: var(--navy); color: #fff; border-bottom: 4px solid var(--orange); }
.hilfe-panel-kopf small { color: #C9D6E5; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.hilfe-panel-kopf h2 { color: #fff; margin: .15rem 0 0; font-size: 1.2rem; }
.hilfe-zu { background: transparent; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 .3rem; border-radius: 6px; }
.hilfe-zu:hover, .hilfe-zu:focus-visible { background: rgba(255,255,255,.15); outline: 2px solid #fff; }
.hilfe-panel-text { flex: 1; overflow-y: auto; padding: 1.1rem 1.3rem 1.5rem; }
.hilfe-panel-fuss { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.3rem; border-top: 1px solid var(--line); background: var(--fill); font-size: .9rem; }
body.hilfe-offen { overflow: hidden; }

.wiki { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.2rem; align-items: start; }
@media (max-width: 960px) { .wiki { grid-template-columns: 1fr; } .wiki-side { order: -1; } }
.wiki-side { position: sticky; top: 1rem; }
.wiki-toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.wiki-toc ol, .wiki-toc ul { margin: 0; padding-left: 1.2rem; }
.wiki-toc li { margin: .25rem 0; }
.wiki-text { line-height: 1.6; }
.wiki-text .lead { font-size: 1.05rem; color: var(--ink); margin-top: 0; }
.wiki-text h2 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; padding-bottom: .35rem; border-bottom: 2px solid var(--line); scroll-margin-top: 1rem; }
.wiki-text h2:first-of-type { margin-top: 1rem; }
.wiki-text ol.schritte { counter-reset: s; list-style: none; padding-left: 0; }
.wiki-text ol.schritte > li { counter-increment: s; position: relative; padding-left: 2.3rem; margin-bottom: .65rem; }
.wiki-text ol.schritte > li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.wiki-text ol.schritte ul { margin-top: .3rem; }
.wiki-text code { background: #F1F4F8; padding: 0 .3rem; border-radius: 4px; }
.wiki-text .tipp, .wiki-text .achtung { border-left: 4px solid var(--ok); background: var(--ok-bg); padding: .7rem .9rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.wiki-text .achtung { border-left-color: var(--orange); background: var(--warn-bg); }
.wiki-text table.tbl { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.wiki-text table.tbl th { text-align: left; vertical-align: top; width: 34%; padding: .5rem .7rem .5rem 0; color: var(--navy); font-weight: 650; }
.wiki-text table.tbl td { padding: .5rem 0; }
.wiki-text table.tbl tr + tr > * { border-top: 1px solid var(--line); }
.wiki-text details.faq { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .85rem; margin-bottom: .5rem; background: #fff; }
.wiki-text details.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.wiki-text details.faq[open] summary { margin-bottom: .4rem; }
.wiki-text details.faq p { margin: .3rem 0 .2rem; }
.wiki-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wiki-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .6rem; }
.tag { display: inline-block; font-size: .8rem; padding: .15rem .6rem; border-radius: 20px; background: #EEF3F9; color: var(--navy); text-decoration: none; border: 1px solid #D5E0EC; }
.tag:hover, .tag.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tag.on .muted, .tag:hover .muted { color: #C9D6E5; }
.hilfe-suche label { display: block; font-weight: 650; color: var(--navy); margin-bottom: .4rem; }
.hilfe-suche .row { display: flex; gap: .6rem; }
.hilfe-suche input { flex: 1; font: inherit; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; }
.hilfe-gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 1.2rem; }
.hilfe-liste, .hilfe-treffer { list-style: none; margin: 0; padding: 0; }
.hilfe-liste li { padding: .5rem 0; display: flex; flex-direction: column; }
.hilfe-liste li + li, .hilfe-treffer li + li { border-top: 1px solid var(--line); }
.hilfe-treffer li { padding: .6rem 0; }
@media print { .hilfe-btn, .hilfe-panel, .hilfe-backdrop, .wiki-side { display: none !important; } .wiki { display: block; } }
.top .hilfe-btn { color: var(--navy); border-color: var(--line); }
.top .hilfe-btn:hover { color: var(--red); border-color: var(--red); }
.wiki-text table.tbl th { position: static; text-transform: none; letter-spacing: 0; font-size: .95rem; background: none; border-bottom: 0; }
.wiki-text table.tbl td { border-bottom: 0; }
.wiki-text table.tbl .badge { white-space: nowrap; }

/* ---------------------------------------------------------------- Retoureneingang im Lager */
.scan-box label { display: block; font-weight: 650; color: var(--navy); margin-bottom: .4rem; }
.scan-box .row { display: flex; gap: .6rem; }
.scan-box input { flex: 1; font-size: 1.35rem; padding: .7rem .9rem; border: 2px solid var(--navy); border-radius: 10px; font-family: inherit; letter-spacing: .03em; }
.fall-liste { list-style: none; margin: 0; padding: 0; }
.fall-liste li + li { border-top: 1px solid var(--line); }
.fall-liste a { display: block; padding: .8rem .2rem; text-decoration: none; color: var(--ink); }
.fall-liste a:hover, .fall-liste a:focus-visible { background: var(--fill); }
.pos { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; margin-bottom: .8rem; background: #fff; }
.pos-kopf { margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
.pos-kopf .row { width: 100%; display: flex; gap: .6rem; flex-wrap: wrap; }
.pos-felder { display: grid; grid-template-columns: 110px minmax(0, 2fr) minmax(0, 1fr); gap: .8rem; align-items: start; }
@media (max-width: 860px) { .pos-felder { grid-template-columns: 1fr; } }
.flabel { font-size: .8rem; color: var(--muted); margin-bottom: .25rem; font-weight: 600; display: block; }
.zustand { display: flex; flex-wrap: wrap; gap: .4rem; }
.zustand label { position: relative; cursor: pointer; }
.zustand input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.zustand span { display: inline-block; padding: .55rem .8rem; border: 2px solid var(--line); border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); background: #fff; min-height: 44px; line-height: 1.5; }
.zustand input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.zustand .z-ok input:checked + span { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.zustand .z-geb input:checked + span, .zustand .z-fremd input:checked + span { background: var(--warn-bg); border-color: var(--orange); color: #8A3A00; }
.zustand .z-dev input:checked + span, .zustand .z-fehlt input:checked + span { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.foto-knopf { position: relative; overflow: hidden; margin: 0 .4rem .4rem 0; }
.foto-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-knopf:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.foto-vorschau { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.foto-vorschau p { width: 100%; margin: .2rem 0 0; }
.foto-vorschau figure { position: relative; margin: 0; width: 96px; height: 96px; }
.foto-vorschau img, .foto-raster img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.foto-weg { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--err); color: #fff; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.foto-raster a { position: relative; display: block; aspect-ratio: 1; text-decoration: none; }
.foto-raster span { position: absolute; left: 6px; bottom: 6px; background: rgba(15, 39, 66, .8); color: #fff; font-size: .72rem; padding: .1rem .4rem; border-radius: 4px; }
.btn-gross { font-size: 1.05rem; padding: .8rem 1.4rem; }
.pruef-tab td .badge { white-space: nowrap; }
.anm-karte ul.anm-kanaele { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: .2rem 0 .9rem; }
.anm-karte li.anm-kanal { position: relative; margin: 0; padding: 0 .4rem; height: 40px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.anm-karte li.anm-kanal::before { content: none; }
.anm-kanal img { max-height: 22px; max-width: 100%; object-fit: contain; }
.anm-kanal span { color: var(--navy); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.anm-karte li.anm-kanal-bald { background: rgba(255, 255, 255, .78); }
.anm-kanal-bald img, .anm-kanal-bald span { opacity: .55; }
.anm-kanal em { position: absolute; top: -.45rem; right: -.3rem; font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--orange); color: #fff; border-radius: 999px; padding: .05rem .4rem; }
.anm-etikett-aktiv { background: #17673F; border-color: #17673F; color: #fff; }

/* Sammeldruck */
.sd-fortschritt { height: 10px; background: var(--fill); border-radius: 6px; overflow: hidden; margin: 1rem 0 .4rem; }
.sd-fortschritt span { display: block; height: 100%; width: 0; background: var(--navy); transition: width .2s; }
.sd-teile { display: flex; flex-direction: column; gap: .6rem; margin: .8rem 0; }
.sd-teil { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; }
.sd-teil span { flex: 1 1 220px; font-weight: 600; color: var(--navy); }
.sd-frame { position: fixed; width: 1px; height: 1px; left: -9999px; top: 0; border: 0; }
.ok-txt { color: var(--ok); }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Sicherung und Update */
.card .tipp, .card .achtung { border-left: 4px solid var(--ok); background: var(--ok-bg); padding: .7rem .9rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.card .achtung { border-left-color: var(--orange); background: var(--warn-bg); }
table.kv th { text-align: left; width: 10rem; color: var(--fine); font-weight: 500; vertical-align: top; }
.foot-sw { float: right; }
@media (max-width: 700px) { .foot-sw { float: none; display: block; margin-top: .3rem; } }

/* Impressum */
.plain-fuss { text-align: center; color: #9FB3C8; font-size: .8rem; padding: 1rem; margin: 0; }
.plain-fuss a { color: #DCE6F0; }
.rechtsseite { max-width: 760px; margin: 0 auto; padding: 2.5rem 1rem; }
.rechtsseite .head h1 { color: #fff; }
.rechtsseite .head .muted { color: #C9D5E3; }
.impressum-sw { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--fine); }
.foot a { color: inherit; }

/* Zwei Faktor */
.qr-feld { margin: .8rem 0; } .qr-feld canvas { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.geheimnis { font-size: 1.05rem; letter-spacing: .05em; user-select: all; }
.code-feld input { font-size: 1.3rem; letter-spacing: .25em; max-width: 14rem; }
.notfallcodes { columns: 2; font-size: 1.1rem; line-height: 2; padding-left: 1.5rem; }
@media print { body * { visibility: hidden; } .notfallcodes, .notfallcodes * { visibility: visible; } .notfallcodes { position: absolute; top: 2cm; left: 2cm; } }
[hidden] { display: none !important; }

/* Preisliste im Händlerbereich: gleiche Spaltenbreiten in allen Gruppen */
.tbl-preise { table-layout: fixed; }
.tbl-preise th:nth-child(1) { width: 48%; }
.tbl-preise th:nth-child(2) { width: 36%; }
.tbl-preise th:nth-child(3) { width: 16%; }

/* Dashboard für Fulfillment Händler */
a.kpi { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.kpi:hover { box-shadow: 0 0 0 1px var(--navy), 0 6px 18px rgba(22,54,92,.10); transform: translateY(-1px); }
.ff-kpis .kpi em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.ff-kpis .kpi:nth-child(4)::before { background: var(--ok); }
.ff-kpis .kpi-warn::before { background: var(--orange) !important; }
.ff-kpis .kpi-warn strong { color: var(--orange); }
.ff-kpis .kpi-ok strong { color: var(--ok); }
.ff-kpis-klein .kpi { padding: .7rem 1.2rem; }
.ff-kpis-klein .kpi strong { font-size: 1.4rem; }
.ff-kpis-klein .kpi::before { background: var(--line) !important; }
.bar-we .bar-f { opacity: .45; }
.ff-allesgut { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.2rem; border-radius: 8px; background: var(--ok-bg); color: var(--ok); }
.ff-allesgut span { font-size: .85rem; }
.ff-liste { list-style: none; margin: 0; padding: 0; }
.ff-liste li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.ff-liste li:last-child { border-bottom: 0; }
.ff-liste a { text-decoration: none; color: var(--ink); margin-right: .4rem; }
.ff-liste a strong { color: var(--navy); }
.ff-fortschritt { display: block; height: 6px; margin-top: .4rem; background: var(--fill); border-radius: 3px; overflow: hidden; }
.ff-fortschritt span { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 3px; transition: width .5s; }
.ff-quick { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .ff-quick { grid-template-columns: 1fr; } }

/* Dashboard Haendler: quittierte Warnungen, Warnschwellen */
.ff-quit{display:inline-block;margin:0 0 0 .4rem}
.ff-quit .btn-sm{padding:.15rem .55rem;font-size:.78rem}
.ff-quittiert{opacity:.55}
.ff-schwellen{margin-top:1rem}
.ff-schwellen summary{cursor:pointer;font-weight:600}
.ff-schwellen form{margin-top:.8rem}
/* Artikel: Stueckliste und VE */
.ff-arten{display:flex;flex-wrap:wrap;gap:1.2rem;margin:.4rem 0 .6rem}
.ff-arten .radio{display:flex;align-items:center;gap:.4rem;font-weight:500}
.ff-komp input.grow{width:100%}
.ff-komp td.r input{width:7rem;text-align:right}

/* ---------------------------------------------------------------- Muster eidesstattliche Erklärung (Tickets) */
.muster { max-width: 46rem; background: #fff; padding: 2.2rem 2.4rem; line-height: 1.6; color: #111; }
.muster h2 { font-size: 1.25rem; margin: 0 0 1.2rem; }
.muster dl { display: grid; grid-template-columns: 13rem 1fr; gap: .45rem 1rem; margin: 0 0 1.2rem; }
.muster dt { color: #444; }
.muster dd { margin: 0; }
.muster .mu-linie { display: inline-block; min-width: 16rem; border-bottom: 1px solid #333; height: 1.2em; }
.muster .mu-box { display: inline-block; width: .9rem; height: .9rem; border: 1px solid #333; margin-right: .5rem; vertical-align: -2px; }
.muster .mu-unterschrift { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; }
.muster .mu-unterschrift div { border-top: 1px solid #333; padding-top: .3rem; font-size: .85rem; color: #444; }
.muster .mu-klein { font-size: .8rem; color: #555; margin-top: 2rem; }
.muster .mu-lang { min-width: 26rem; }
@media print { .muster { box-shadow: none; border: 0; padding: 0; max-width: none; } .card.mu-hinweis, .main > .head { display: none !important; } .main { padding: 0 !important; } }
.pflichtbelege { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem .2rem; margin: 0 0 1rem; }
.pflichtbelege legend { font-weight: 600; padding: 0 .3rem; }

/* Anmeldeseite: Kasten „Ohne Aufpreis inklusive“ in der Karte Shopanbindung */
.anm-inkl { border: 1px solid rgba(240, 83, 31, .6); background: rgba(240, 83, 31, .12); border-radius: 10px; padding: .7rem .9rem .3rem; margin: .9rem 0 .8rem; }
.anm-inkl > strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #F4A27F; margin-bottom: .35rem; }
.anm-inkl .anm-punkte { margin: 0; }
