/* =============================================================================
   PCG VerwaltungsNetz – Stylesheet (PCG-Stil, siehe Projekt-Briefing)
   Ruhig, aufgeräumt, „amtlich-modern“: viel Weißraum, klare Karten,
   Petrol + Ampelfarben, Mono-Badges für alles Nummerierte.
   ============================================================================= */

/* --- Schrift ----------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-var.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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-var-ext.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+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------------ */
:root {
  --ink: #16232e;
  --ink-soft: #51616e;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --line: #e2e7e6;

  --brand: #0e5a63;
  --brand-deep: #0b3d44;
  --brand-soft: #e2eeef;
  --brand-ghost: #f0f6f6;

  --amber: #a86a12;  --amber-bg: #fbf2e0;
  --green: #2c7a52;  --green-bg: #e5f2ea;
  --red:   #b0392f;  --red-bg:   #f9e9e7;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(22,35,46,.05), 0 4px 14px rgba(22,35,46,.06);

  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
  --sidebar: 248px;
}

/* --- Basis ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 450;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.25; }
h1 { font-size: 1.45rem; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; margin-top: 1rem; }
p { margin: 0 0 .8rem; }
code, .mono { font-family: var(--mono); font-size: .9em; }
svg { display: inline-block; vertical-align: middle; }

/* --- App-Rahmen -------------------------------------------------------------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}
.main { min-width: 0; display: flex; flex-direction: column; }

/* --- Sidebar ----------------------------------------------------------------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--brand-deep), #0d3239);
  color: #fff;
  padding: 1.3rem 1rem 1.1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  color: #fff;
  padding: .2rem .55rem .9rem;
  text-decoration: none !important;
}
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9dc2be; }
.nav { flex: 1; display: flex; flex-direction: column; gap: .15rem; overflow-y: auto; }
.nav-label {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7fa5a1;
  padding: .9rem .6rem .35rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  color: #e6f0ef;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none !important;
  transition: background .15s;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.aktiv { background: rgba(255,255,255,.13); color: #fff; }
.nav-item-disabled { opacity: .45; cursor: default; }
.nav-item-disabled:hover { background: transparent; }
.nav-hint { margin-left: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: #9dc2be; }
.nav-toggle { display: none; }
.sidebar-user {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: .9rem;
  margin-top: .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.user-link { display: flex; flex-direction: column; color: #fff; min-width: 0; text-decoration: none !important; }
.user-name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .7rem; color: #9dc2be; }

/* --- Topbar ------------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: .7rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.quick-search { position: relative; flex: 1; max-width: 520px; }
.quick-search svg {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-soft); pointer-events: none;
}
.quick-search input[type="search"] {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  padding: .5rem 1rem .5rem 2.6rem;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  min-height: 40px;
  appearance: none;
  -webkit-appearance: none;
}
.quick-search input[type="search"]:focus { background: var(--surface); outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.quick-search input[type="search"]:disabled { opacity: .6; cursor: not-allowed; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

/* --- Inhalt ------------------------------------------------------------------ */
.content { padding: 1.6rem 2rem 2.4rem; width: 100%; max-width: none; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  margin-bottom: 1.2rem;
}
.page-head h1 { font-size: 1.35rem; margin-bottom: .1rem; }
.page-head .sub { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.head-actions .btn { min-height: 42px; }

/* --- Karten ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.2rem;
}
.card h2 { font-size: 1.02rem; margin-bottom: .8rem; }
.card-hint { font-size: .8rem; color: var(--ink-soft); margin: .7rem 0 0; }

/* --- Statistik-Kacheln ------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}
.stat-value { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .3rem; }

/* --- Tabellen ---------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: .55rem .6rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table thead th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--line);
}
.table tbody tr:hover { background: var(--brand-ghost); }
.table tbody tr:last-child td { border-bottom: none; }
.table td .btn-sm { white-space: nowrap; }
.table .details { color: var(--ink-soft); font-family: var(--mono); font-size: .76rem; word-break: break-word; }
.table-kv th { width: 36%; font-weight: 600; color: var(--ink-soft); font-size: .85rem; }
.table-kv tr:last-child th, .table-kv tr:last-child td { border-bottom: none; }
.table-kv tr:hover { background: transparent; }
.table-check td:first-child { font-size: .85rem; }
.table-check tr:hover { background: transparent; }
.nowrap { white-space: nowrap; }

/* --- Mono-Badge (Nummern, Kennzeichen, Codes) -------------------------------- */
.az {
  display: inline-block;
  font-family: var(--mono);
  font-size: .82em;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: .1rem .45rem;
  border-radius: 5px;
  white-space: nowrap;
}

/* --- Status-Badges ----------------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 99px;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.5;
}
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red   { background: var(--red-bg);   color: var(--red); }
.badge.gray  { background: var(--paper);    color: var(--ink-soft); border: 1px solid var(--line); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red   { color: var(--red); }

/* --- Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-ghost); color: var(--brand-deep); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8f2d25; border-color: #8f2d25; }
.btn-sm { min-height: 33px; padding: .25rem .75rem; font-size: .82rem; }
.btn-block { width: 100%; min-height: 44px; margin-top: .4rem; }

/* --- Formulare --------------------------------------------------------------- */
.field { margin-bottom: 1rem; }
.field label, .field > label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .3rem; }
.help { font-size: .78rem; color: var(--ink-soft); margin: .35rem 0 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], input[type="date"], input[type="url"], input[type="tel"],
select, textarea {
  width: 100%;
  min-height: 42px;
  padding: .5rem .8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351616e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 16px;
  padding-right: 2.2rem;
}
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.form-row:has(> .card) { align-items: stretch; }
.form-row > .card { margin-bottom: 1.2rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; margin: .8rem 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); flex: 0 0 18px; }
.mt { margin-top: 1rem; }

/* Code-Eingaben (TOTP, Backup-Codes) und Code-Anzeige */
.code-input {
  font-family: var(--mono);
  font-size: 1.35rem;
  letter-spacing: .45em;
  text-align: center;
  padding-left: .45em;
}
.code-box {
  font-family: var(--mono);
  font-size: .85rem;
  background: var(--brand-ghost);
  border: 1.5px dashed var(--brand);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  word-break: break-all;
  user-select: all;
}

/* --- Flash-Meldungen --------------------------------------------------------- */
.flash {
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.flash.success { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.flash.error   { background: var(--red-bg);   color: var(--red);   border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.flash.info    { background: var(--brand-soft); color: var(--brand-deep); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.flash code { background: rgba(0,0,0,.06); padding: .05rem .3rem; border-radius: 3px; }

/* --- Leerzustände ------------------------------------------------------------ */
.empty { text-align: center; color: var(--ink-soft); padding: 2.2rem 1rem; }
.empty p { margin-bottom: .6rem; }
.empty .btn { margin-top: .6rem; }
.empty-page { padding: 4rem 1rem; }
.empty-page h1 { color: var(--ink); }

/* --- Tabs -------------------------------------------------------------------- */
.tabs { display: flex; gap: 1.4rem; border-bottom: 1.5px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tab {
  padding: .5rem 0 .6rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap;
  text-decoration: none !important;
}
.tab:hover { color: var(--brand); }
.tab.aktiv { color: var(--brand); border-bottom-color: var(--brand); font-weight: 800; }

/* --- Dropzone ---------------------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone svg { width: 34px; height: 34px; color: var(--brand); margin-bottom: .4rem; }
.dropzone strong { display: block; font-size: .95rem; }
.dropzone span { font-size: .8rem; color: var(--ink-soft); }
.dropzone:hover, .dropzone.drueber { border-color: var(--brand); background: var(--brand-ghost); }
.dropzone input[type="file"] { display: none; }
.dropzone-datei { margin-top: .6rem; font-size: .85rem; font-weight: 600; }

/* --- Fortschrittsbalken ------------------------------------------------------ */
.meter { height: 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.meter-green > span { background: var(--green); }
.meter-amber > span { background: var(--amber); }
.meter-red > span { background: var(--red); }

/* --- Dialoge ----------------------------------------------------------------- */
.dw-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  max-width: 460px;
  width: calc(100% - 2rem);
  box-shadow: 0 12px 40px rgba(22,35,46,.28);
  color: var(--ink);
}
.dw-dialog::backdrop { background: rgba(22,35,46,.45); }
.dw-dialog h2 { margin-bottom: .6rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; }

/* --- Login / öffentliche Seiten --------------------------------------------- */
body.bare {
  background: var(--paper) radial-gradient(circle at 90% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 42%);
  min-height: 100vh;
}
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem 1rem; }
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.6rem;
}
.auth-card-wide { max-width: 680px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin-bottom: 1.4rem; }
.auth-brand .brand-name { color: var(--brand); font-size: 1.6rem; }
.auth-brand .brand-sub { color: var(--ink-soft); }
.auth-title { font-size: 1.2rem; text-align: center; margin-bottom: 1.1rem; }
.auth-text { font-size: .9rem; color: var(--ink-soft); }
.auth-text h3 { color: var(--ink); }
.auth-hinweis {
  font-size: .78rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 1.1rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

/* --- Responsiv --------------------------------------------------------------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: .7rem 1rem;
    gap: .5rem 1rem;
  }
  .brand { padding: .2rem .3rem; flex-direction: row; align-items: baseline; gap: .5rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 40px; height: 40px;
    background: rgba(255,255,255,.1); border: none; border-radius: var(--radius-sm); color: #fff; cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .nav { display: none; flex-basis: 100%; }
  .nav.offen { display: flex; }
  .sidebar-user { border-top: none; padding-top: 0; margin-top: 0; flex-basis: 100%; }
  .topbar, .content { padding-left: 1rem; padding-right: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .sidebar, .topbar, .head-actions, .btn { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* --- Zweiter Faktor / Einrichtung (Lieferung 0b) --------------------------- */
.faktor-box { text-align: center; padding: .6rem 0 .2rem; }
.faktor-box p { margin-bottom: .5rem; }
.faktor-icon { width: 54px; height: 54px; color: var(--brand); margin-bottom: .6rem; }
.schritte { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.schritte li { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.schritt-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; font-weight: 800;
  background: var(--paper); border: 1.5px solid var(--line);
}
.schritte li.aktiv { color: var(--brand); }
.schritte li.aktiv .schritt-nr { background: var(--brand); border-color: var(--brand); color: #fff; }
.schritte li.fertig { color: var(--green); }
.schritte li.fertig .schritt-nr { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.qr-wrap { display: flex; justify-content: center; margin: .4rem 0 1rem; }
.qr-wrap svg { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.details-box { margin-bottom: 1rem; font-size: .85rem; }
.details-box summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: .5rem; }
.codes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: .8rem 0; }
.codes-grid .az { font-size: 1rem; text-align: center; padding: .45rem; letter-spacing: .06em; }
.inline-form { display: flex; gap: .4rem; align-items: center; }
.inline-form input { min-height: 34px; padding: .25rem .6rem; font-size: .85rem; max-width: 220px; }
@media print {
  body.bare, .auth-wrap { background: #fff !important; }
  .auth-card { border: none; box-shadow: none; }
  .schritte, form, .flash, .auth-hinweis, .details-box, .qr-wrap { display: none !important; }
  .codes-grid .az { border: 1px solid #000; background: #fff; color: #000; }
}

/* --- Tab-Panels (data-tab / data-tab-panel) ---------------------------------- */
.tabs .tab { background: none; border: none; border-bottom: 2.5px solid transparent; font-family: inherit; cursor: pointer; }
[data-tab-panel][hidden] { display: none; }
.aktionen { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.aktionen form { display: inline-flex; gap: .6rem; align-items: center; margin: 0; }

/* --- Akten (Lieferung 1a) ---------------------------------------------------- */
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filter-row select, .filter-row input { width: auto; min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.filter-row input[type="search"] { flex: 2 1 220px; max-width: 360px; }
.filter-row .btn { flex: 0 0 auto; }
.detail-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.2rem; align-items: start; }
.detail-vorschau img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; }
.vorschau-leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm); min-height: 120px; }
.vorschau-leer.gross { min-height: 260px; }
.vorschau-leer .az { font-size: 1.2rem; }
.sichtung-karte { display: grid; grid-template-columns: 180px 1fr; gap: 1.2rem; }
.sichtung-vorschau img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; }
.sichtung-kopf { display: flex; flex-direction: column; margin-bottom: .6rem; }
.sichtung-form .field { margin-bottom: .6rem; }
.dropzone-klein { padding: 1rem; }
.volltext { white-space: pre-wrap; font-family: var(--mono); font-size: .82rem; line-height: 1.5; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; max-height: 70vh; overflow: auto; }
.nav-zaehler { font-size: .62rem; padding: .05rem .45rem; margin-left: auto; }
@media (max-width: 900px) {
  .detail-grid, .sichtung-karte { grid-template-columns: 1fr; }
  .filter-row select, .filter-row input { max-width: none; }
}
