/* Ziser Kundenportal – Gestaltung nach dem Erscheinungsbild der Ziser-Webseite (Weinrot, warmes Beige, Gold, Open Sans). */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/open-sans-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/open-sans-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/open-sans-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/open-sans-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/open-sans-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/open-sans-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --wine: #951022; --wine-dark: #740c1a; --wine-soft: #f6e7e9;
  --gold: #cfc055; --gold-text: #7a6620; --gold-soft: #f7f2d8;
  --orange-soft: #fdf0de; --orange-text: #9a5307;
  --ok: #2f7a4b; --ok-soft: #e4f2e9;
  --ink: #2d2928; --text: #4a4746; --muted: #6e6865;
  --bg: #f7f3ee; --surface: #ffffff; --line: #e4ded7; --line-strong: #d3cbc2;
  --on-wine: #ffffff;
  --shadow: 0 1px 2px rgba(45, 41, 40, .06), 0 4px 16px rgba(45, 41, 40, .06);
  --radius: 12px;
  color-scheme: light;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root {
    --wine: #e0707e; --wine-dark: #f0a0aa; --wine-soft: #3a2025;
    --gold-text: #e3d27a; --gold-soft: #35301a; --orange-soft: #3a2a14; --orange-text: #f0b46a;
    --ok: #7fcf9b; --ok-soft: #1d3326;
    --ink: #f1ece7; --text: #d9d2cc; --muted: #a8a09a;
    --bg: #171413; --surface: #221e1d; --line: #383230; --line-strong: #4a4340;
    --on-wine: #1a0d0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 76rem; margin: 0 auto; padding: 2rem 1rem 4rem; flex: 1; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .75rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 0; }
a { color: var(--wine); }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- Kopfzeile ------------------------------------------------------------------------------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner { max-width: 76rem; margin: 0 auto; padding: .65rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--text); padding: .4rem .7rem; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--wine-soft); color: var(--wine); font-weight: 600; }
.global-search { margin-left: auto; position: relative; flex: 0 1 19rem; min-width: 10rem; }
.global-search input[type=search] { width: 100%; padding: .55rem 4rem .55rem 2.2rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; }
.global-search .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: .72rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 .35rem; pointer-events: none; }
.user { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--wine); color: var(--on-wine); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.who { color: var(--muted); font-size: .85rem; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem; }

/* --- Bausteine ------------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1rem; }
.card.flush { padding: 0; }
.narrow { max-width: 30rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.lead h1 { margin: 0; }
.lead p { margin: .25rem 0 0; }
.notice { background: var(--ok-soft); color: var(--ok); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.error { background: var(--wine-soft); color: var(--wine); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.error ul { margin: 0; padding-left: 1.2rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--wine-soft); color: var(--wine); vertical-align: 2px; }
.badge.off { background: var(--bg); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.decision textarea { width: 100%; min-width: 14rem; }
.badge.gold { background: var(--gold-soft); color: var(--gold-text); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); flex: none; }

/* --- Formulare ------------------------------------------------------------------------------- */
form.inline { display: inline; }
.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .25rem; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, input[type=file] {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit;
}
input:focus, select:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 3px var(--wine-soft); }
button, .button { font: inherit; font-weight: 600; font-size: .92rem; padding: .55rem 1rem; border-radius: 9px; border: 1px solid var(--wine);
  background: var(--wine); color: var(--on-wine); cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
button:hover, .button:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
button.secondary, .button.secondary { background: transparent; color: var(--wine); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { border-color: var(--wine); background: transparent; }
button.danger { background: transparent; color: var(--wine); border-color: var(--wine); }
button.link { background: none; border: none; color: var(--wine); padding: 0; text-decoration: underline; font-weight: 500; }
.small-button { padding: .3rem .7rem; font-size: .82rem; }
.row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
details > summary { cursor: pointer; font-weight: 600; color: var(--wine); margin: .5rem 0; }

/* --- Tabellen -------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); }

/* --- Suche ----------------------------------------------------------------------------------- */
.search-hero { position: relative; }
.search-hero input[type=search] { font-size: 1.1rem; padding: .85rem 1rem .85rem 2.9rem; border: 2px solid var(--wine); border-radius: 12px; }
.search-hero .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--wine); pointer-events: none; }
.scope { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; font-weight: 500; }
.chip:hover { background: var(--surface); border-color: var(--wine); }
.chip[aria-pressed="true"] { background: var(--wine); color: var(--on-wine); border-color: var(--wine); }
.chip b { font-weight: 700; opacity: .7; margin-left: .25rem; }
.results { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
.group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.1rem 0 .5rem; font-weight: 700; }
.group-title:first-child { margin-top: 0; }
.hit { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem;
  margin-bottom: .5rem; color: inherit; text-decoration: none; font-weight: 400; white-space: normal; }
.hit:hover, .hit[aria-current="true"] { border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); background: var(--surface); }
.hit .title { font-weight: 600; color: var(--ink); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.hit .sub { font-size: .84rem; color: var(--muted); }
.snippet { margin: .3rem 0 0; font-size: .9rem; color: var(--text); }
mark { background: var(--gold-soft); color: var(--ink); padding: 0 .15em; border-radius: 3px; font-weight: 600; }
.page-ref { display: inline-block; font-size: .78rem; margin-left: .4rem; color: var(--muted); }
.preview { position: sticky; top: 5.5rem; }
.preview .paper { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; font-size: .92rem; line-height: 1.7;
  max-height: 60vh; overflow: auto; white-space: pre-wrap; }
.preview-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }

/* --- Dokumente ------------------------------------------------------------------------------- */
.newcard { display: flex; gap: 1.1rem; align-items: center; background: linear-gradient(135deg, var(--surface), var(--wine-soft)); }
.newcard .big-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--wine); color: var(--on-wine); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.newcard .grow { flex: 1; min-width: 0; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.year { margin: 1.75rem 0 .6rem; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.doc { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: none; }
.doc .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.doc .grow { flex: 1; min-width: 0; }
.doc .t { font-weight: 600; color: var(--ink); text-decoration: none; }
.doc a.t:hover { text-decoration: underline; }
.doc .s { font-size: .84rem; color: var(--muted); }
.doc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters { display: grid; gap: .75rem; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); align-items: end; }
.filters .field { margin: 0; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
.meta dt { color: var(--muted); font-size: .88rem; }
.meta dd { margin: 0; color: var(--ink); }
.page-block { scroll-margin-top: 6rem; }
.page-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.25rem 0 .4rem; }
.page-text { white-space: pre-wrap; font-size: .95rem; line-height: 1.75; margin: 0; }
.recognized { white-space: pre-wrap; font-size: .9rem; max-height: 30rem; overflow: auto; }

/* --- Anmeldung ------------------------------------------------------------------------------- */
.codes { font-family: ui-monospace, monospace; font-size: 1.1rem; columns: 2; list-style: none; padding: 0; }
.qr svg { width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: 8px; }
.secret { font-family: ui-monospace, monospace; letter-spacing: .05em; }

@media (max-width: 84rem) {
  .who { display: none; }
}
@media (max-width: 64rem) {
  .results { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .hide-mobile, .kbd, .who { display: none; }
  .global-search { order: 10; flex-basis: 100%; margin-left: 0; }
  .global-search input[type=search] { padding-right: .8rem; }
  .brand img { height: 24px; }
  .doc { flex-wrap: wrap; }
  .doc-actions { width: 100%; padding-left: 3.4rem; }
  .newcard { flex-wrap: wrap; }
  .meta { grid-template-columns: 1fr; }
}

.tight { margin: .1rem 0; }
.spaced { margin: .75rem 0 0; }
.normal { font-weight: 500; }
.doc-image { max-width: 100%; height: auto; border-radius: 8px; }

/* --- Posteingang ------------------------------------------------------------------------------ */
.spaced-bottom { margin-bottom: 1rem; }
.inbox-summary { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.inbox-item header { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.inbox-item header .grow { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.status { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.status.ready { background: var(--ok-soft); color: var(--ok); }
.status.review, .status.failed { background: var(--orange-soft); color: var(--orange-text); }
.status.analyzing { background: var(--bg); color: var(--muted); }
.status.published { background: var(--wine-soft); color: var(--wine); }
.field.unsure > span::after { content: " · bitte prüfen"; color: var(--orange-text); font-weight: 600; }
.field.unsure select, .field.unsure input { border-color: var(--gold); background: var(--gold-soft); }
.evidence { font-size: .82rem; color: var(--muted); margin: .25rem 0 .75rem; padding-left: 1.1rem; }
.inbox-grid { display: grid; gap: 0 .9rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }

/* --- PDF-Vorschau ----------------------------------------------------------------------------- */
.pdf-fallback { margin: 0; padding: .6rem 1rem; border-top: 1px solid var(--line); }

/* --- Hilfe und Tour -------------------------------------------------------------------------- */
.help-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--wine); font-weight: 700; text-decoration: none; flex: none; background: var(--surface); }
.help-button:hover { border-color: var(--wine); background: var(--wine-soft); }
.help-inline { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--wine); font-weight: 700; font-size: .85em; }
.help-intro { max-width: 46rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 .75rem; }
.section-head h2 { margin: 0; }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.feature-grid .card { margin: 0; }
.feature h3 { margin-bottom: .4rem; }
.feature .tech h4 { font-size: .85rem; margin: .8rem 0 .3rem; color: var(--ink); }
.feature .tech ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; }
.tour { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(23, 20, 19, .55); outline: 3px solid var(--gold);
  transition: top .2s, left .2s, width .2s, height .2s; }
.tour-pop { position: fixed; pointer-events: auto; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 1rem 1.1rem; }
.tour-count { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 .3rem; }
.tour-title { font-size: 1.05rem; margin: 0 1.5rem .4rem 0; }
.tour-text { font-size: .92rem; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tour-buttons { display: flex; gap: .4rem; }
.tour-all { font-size: .85rem; }
.tour-close { position: absolute; top: .5rem; right: .8rem; font-size: 1.4rem; text-decoration: none; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* --- PDF-Ansicht (pdf.js) -------------------------------------------------------------------- */
.pdf-viewer { overflow: hidden; }
.pdf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem 1rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pdf-status { color: var(--muted); }
.pdf-pages { background: var(--bg); height: 78vh; overflow: auto; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; position: relative; }
.pdf-page { position: relative; background: #fff; box-shadow: var(--shadow); flex: none; max-width: 100%; }
.pdf-page canvas { display: block; }
.pdf-page-label { position: absolute; top: -.1rem; right: .4rem; font-size: .7rem; color: #8a8380; z-index: 2; pointer-events: none; }
.pdf-page .textLayer { position: absolute; inset: 0; overflow: clip; line-height: 1; text-align: initial; transform-origin: 0 0; z-index: 1; }
.pdf-page .textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0 0; }
.pdf-page .textLayer span.markedContent { top: 0; height: 0; }
.pdf-page .textLayer ::selection { background: rgba(149, 16, 34, .25); }
.pdf-page .textLayer mark.pdf-hit { background: rgba(207, 192, 85, .55); color: transparent; padding: 0; border-radius: 2px; font-weight: inherit; outline: 2px solid rgba(207, 192, 85, .9); }
.pdf-failed .pdf-pages { display: none; }
.similar ul.plain { list-style: none; margin: 0; padding: 0; }
.similar li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.similar li:last-child { border-bottom: none; }

/* --- Dokumentseite fürs Team, Bearbeiten, Löschen --------------------------------------------- */
.section-nav { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0 0 1rem; }
.section-nav a { font-size: .85rem; text-decoration: none; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); }
.section-nav a:hover { border-color: var(--wine); color: var(--wine); }
.button.danger-link, a.danger-link { background: transparent; color: var(--wine); border-color: var(--wine); }
.recipients { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.recipients ul.names, .impact ul.names { margin: .3rem 0 .6rem; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.names li { padding: .15rem 0; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.impact { margin-top: 1rem; padding: 1rem; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--line); }
.impact h2 { margin-top: 0; }
.warning { background: var(--orange-soft); color: var(--orange-text); padding: .75rem 1rem; border-radius: 10px; }
.preview-as { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
details.purge { margin-top: .4rem; }

/* Zustellstatus */
.delivery-meter { width: 10rem; height: .8rem; vertical-align: middle; }
.delivery-cell { white-space: nowrap; }
.view-as { border-left: 4px solid var(--gold-text); }
.more { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bulk-bar { margin-top: .75rem; align-items: end; }
.split-page { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.split-page:last-child { border-bottom: 0; }
.split-start { display: flex; gap: .5rem; align-items: center; }

/* Seitenweise Listen */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .75rem 0; font-size: .9rem; }
.pager-range { color: var(--muted); }
.pager-links { display: flex; flex-wrap: wrap; gap: .25rem; }
.pager-link { min-width: 2rem; padding: .2rem .5rem; border: 1px solid var(--line-strong); border-radius: 8px; text-align: center; text-decoration: none; }
.pager-link.current { background: var(--wine); border-color: var(--wine); color: var(--on-wine); font-weight: 700; }
.pager-link.disabled { color: var(--muted); border-color: var(--line); }
.pager-gap { padding: .2rem .25rem; color: var(--muted); }
.pager-size { margin-left: auto; }
.pager-size label { display: flex; align-items: center; gap: .4rem; }
.pager-size select { width: auto; }
