/* Tantive Kreditkarten-Abrechnung: Designsystem (ohne Fremdbibliotheken, nichts wird von einem CDN geladen) */
:root {
  --bg: #f4f4f6; --bg2: #ececf0; --card: #ffffff; --card2: #fafafb; --text: #0f1115; --muted: #6a7080; --line: #e3e4ea;
  --brand: #dc2626; --brand2: #ef4444; --brand-soft: #fef2f2; --primary: #dc2626; --link: #b91c1c;
  --ok: #15803d; --ok-soft: #e8f6ee; --warn: #b45309; --warn-soft: #fdf3e3; --err: #b91c1c; --err-soft: #fdecec; --info: #475569; --info-soft: #eef0f4;
  --side: #0a0a0a; --side-text: #b9bcc6; --side-hover: #1a1a1a; --shadow: 0 1px 2px rgba(15,17,21,.05), 0 8px 24px -12px rgba(15,17,21,.12);
  --radius: 14px; --sw: 248px; color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --bg2: #121216; --card: #15151a; --card2: #1a1a20; --text: #eceef3; --muted: #8e94a5; --line: #26262e;
  --brand-soft: #2a1213; --link: #f87171; --ok: #4ade80; --ok-soft: #10261a; --warn: #fbbf24; --warn-soft: #2a2110; --err: #f87171; --err-soft: #2d1415;
  --info: #a3abbd; --info-soft: #1d1f27; --side: #050505; --side-hover: #16161a; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -14px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Gerüst: Seitenleiste + Inhalt ---------- */
.shell { display: grid; grid-template-columns: var(--sw) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .25s ease; }
html.sb-collapsed .shell { --sw: 72px; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; padding: 4px 6px 18px; text-decoration: none !important; }
.brand img { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 6px 14px rgba(220,38,38,.45)); }
.brand b { display: block; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; color: var(--side-text); font-size: 11px; letter-spacing: .04em; margin-top: 2px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-text); font-weight: 500; text-decoration: none; position: relative; white-space: nowrap; transition: background .15s, color .15s; }
.side nav a svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side nav a:hover { background: var(--side-hover); color: #fff; }
.side nav a.active { background: linear-gradient(90deg, rgba(220,38,38,.28), rgba(220,38,38,.06)); color: #fff; }
.side nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand2); }
html.sb-collapsed .sb-label, html.sb-collapsed .brand div, html.sb-collapsed .chip div { display: none; }
.side .grow { flex: 1; }
.sidebtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; background: none; border: 0; color: var(--side-text); border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; white-space: nowrap; }
.sidebtn:hover { background: var(--side-hover); color: #fff; transform: none; }
.sidebtn svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebtn kbd { margin-left: auto; font: 11px ui-monospace, monospace; border: 1px solid #333; border-radius: 5px; padding: 1px 6px; color: #8d91a0; }
html.sb-collapsed .sidebtn kbd { display: none; }
.chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid #1f1f24; margin-top: 6px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand2), #7f1d1d); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.chip div { min-width: 0; } .chip a { color: #fff; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip small { color: var(--side-text); font-size: 12px; }
.chip form { margin-top: 2px; } .chip button.link { color: var(--side-text); font-size: 12px; padding: 0; }
.chip button.link:hover { color: #fff; }
.content { min-width: 0; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 32px 24px; flex: 1; animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.foot { padding: 20px 32px 28px; color: var(--muted); font-size: 13px; display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); max-width: 1180px; width: 100%; margin: 0 auto; }
.foot b { color: var(--text); letter-spacing: .16em; text-transform: uppercase; } .foot b i { color: var(--brand); font-style: normal; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; } .foot a { color: var(--muted); } .foot a:hover { color: var(--text); }
.mbar { display: none; }

/* ---------- Typografie ---------- */
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 6px; font-weight: 700; }
h2 { font-size: 19px; letter-spacing: -.01em; margin: 28px 0 12px; } h3 { font-size: 15px; margin: 0 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--brand); font-weight: 600; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 24px; max-width: 70ch; }
.muted { color: var(--muted); } .small { font-size: 13px; }
p.back { margin: 0 0 6px; font-size: 14px; }

/* ---------- Karten, Kacheln ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 22px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); }
.tile .k { color: var(--muted); font-size: 13px; } .tile .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--muted); font-size: 12px; } .tile.alert .v { color: var(--brand); }
.hero { position: relative; border-radius: 20px; padding: 30px 32px; color: #fff; overflow: hidden; margin: 0 0 22px; background: radial-gradient(120% 140% at 0% 0%, #3a0d0d 0%, #0a0a0a 55%), #0a0a0a; box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(closest-side, rgba(239,68,68,.55), transparent); filter: blur(10px); animation: float 9s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; width: 300px; height: 300px; left: 35%; bottom: -200px; background: radial-gradient(closest-side, rgba(220,38,38,.28), transparent); animation: float 12s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-30px, 24px) scale(1.08); } }
.hero > * { position: relative; z-index: 1; } .hero h1 { color: #fff; margin: 4px 0 8px; } .hero p { color: #c9ccd6; margin: 0; max-width: 60ch; }
.hero .eyebrow { color: #fca5a5; }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 14px 0; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--card2); }
tbody tr { transition: background .12s; } tbody tr:hover { background: var(--card2); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
.card table { box-shadow: none; }

/* ---------- Formulare, Knöpfe ---------- */
label { display: block; margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 4px rgba(239,68,68,.16); }
input[type=file] { border: 0; background: none; padding: 0; width: auto; }
input[type=checkbox] { width: auto; display: inline-block; margin: 0 6px 0 0; accent-color: var(--brand); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); } label.check input { width: auto; margin: 0; }
button, .btn { font: inherit; font-weight: 500; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; display: inline-block; text-decoration: none !important; }
button:hover, .btn:hover { border-color: var(--muted); transform: translateY(-1px); }
button.primary, .btn.primary { background: linear-gradient(180deg, var(--brand2), var(--brand)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(220,38,38,.6); }
button.primary:hover, .btn.primary:hover { box-shadow: 0 10px 22px -8px rgba(220,38,38,.75); border-color: transparent; }
button:active { transform: translateY(0) scale(.98); } button:disabled { opacity: .6; cursor: wait; }
button.link { border: 0; background: none; color: var(--link); padding: 0; box-shadow: none; transform: none; }
form.inline { display: inline; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; align-items: end; }
input[type=search] { max-width: 26rem; }

/* ---------- Status ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); animation: rise .35s both; }
.flash.ok { border-color: var(--ok); background: var(--ok-soft); } .flash.warn { border-color: var(--warn); background: var(--warn-soft); } .flash.error { border-color: var(--err); background: var(--err-soft); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--info-soft); color: var(--info); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok, .badge.freigegeben { background: var(--ok-soft); color: var(--ok); }
.badge.pruefen, .badge.warn, .badge.offen { background: var(--warn-soft); color: var(--warn); }
.badge.abweichung, .badge.zurueckgewiesen { background: var(--err-soft); color: var(--err); }
.badge.kein_beleg { background: var(--info-soft); color: var(--muted); }
.seg { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--bg2); min-width: 120px; }
.seg i { display: block; height: 100%; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.seg .s-freigegeben, .seg .s-ok { background: var(--ok); } .seg .s-pruefen, .seg .s-offen { background: #f59e0b; } .seg .s-abweichung, .seg .s-zurueckgewiesen { background: var(--brand); } .seg .s-kein_beleg { background: #94a3b8; }
dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; margin: 0; } dt { color: var(--muted); } dd { margin: 0; }
details.confirm { display: block; margin: 4px 0 8px; font-size: 13px; } details.confirm summary { cursor: pointer; color: var(--link); }
details.confirm form { margin-top: 6px; } details.confirm input { width: 100%; min-width: 260px; }
ul.reasons { margin: 8px 0; padding-left: 20px; } .reasons li { margin: 4px 0; } .reasons .fehler { color: var(--err); } .reasons .hinweis { color: var(--warn); } .reasons .info { color: var(--muted); }

/* ---------- Upload-Fläche ---------- */
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; transition: border-color .2s, background .2s, transform .2s; background: var(--card2); position: relative; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); transform: scale(1.01); }
.drop svg { width: 38px; height: 38px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop .t { font-weight: 600; margin-top: 6px; } .drop input[type=file] { margin: 12px auto 4px; font-size: 13px; color: var(--muted); }
.drop .files { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.busy { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(8,8,10,.62); backdrop-filter: blur(6px); }
.busy.on { display: grid; animation: rise .25s both; }
.busy .box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 36px; text-align: center; max-width: 380px; box-shadow: 0 30px 80px -20px #000; }
.busy .ring { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--bg2); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy .bar { height: 5px; border-radius: 9px; background: var(--bg2); margin-top: 16px; overflow: hidden; } .busy .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Befehlspalette (Strg+K) ---------- */
.pal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding-top: 14vh; background: rgba(8,8,10,.55); backdrop-filter: blur(5px); }
.pal.on { display: flex; }
.pal .box { width: min(560px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 90px -20px #000; overflow: hidden; animation: rise .22s both; }
.pal input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 18px 20px; font-size: 17px; background: transparent; box-shadow: none !important; }
.pal ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.pal li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--text); text-decoration: none; }
.pal li a small { color: var(--muted); } .pal li.sel a, .pal li a:hover { background: var(--brand-soft); }
.pal .hint { padding: 8px 18px 12px; color: var(--muted); font-size: 12px; }

/* ---------- Anmeldung ---------- */
body.auth { background: #050505; }
body.auth .shell { display: block; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { position: relative; overflow: hidden; padding: 56px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(110% 120% at 0% 0%, #4a0f10 0%, #0a0a0a 58%); }
.login .art::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: 8%; background: radial-gradient(closest-side, rgba(239,68,68,.5), transparent); animation: float 10s ease-in-out infinite; }
.login .art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(80% 80% at 30% 40%, #000, transparent); }
.login .art > * { position: relative; z-index: 1; }
.login .art .brand b { font-size: 18px; } .login .art h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; max-width: 14ch; }
.login .art p { color: #c9ccd6; max-width: 44ch; margin: 0 0 18px; font-size: 16px; }
.login .art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #dfe1e8; }
.login .art li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand2); margin-right: 12px; box-shadow: 0 0 12px var(--brand2); }
.login .form { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.login .form .inner { width: min(380px, 100%); animation: rise .5s both; } .login h1 { font-size: 28px; }
.login .form button.primary { width: 100%; padding: 12px; font-size: 16px; }
.login .legal { color: var(--muted); font-size: 12px; margin-top: 28px; }
.narrow { max-width: 440px; margin: 40px auto; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 900px) {
  .shell { display: block; } .side { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; } html.sb-open .side { transform: none; }
  html.sb-collapsed .sb-label, html.sb-collapsed .brand div, html.sb-collapsed .chip div { display: initial; }
  .mbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 50; }
  .mbar button { background: none; border: 0; color: #fff; padding: 4px; } .mbar img { width: 28px; height: 28px; }
  .mbar b { letter-spacing: .2em; text-transform: uppercase; font-size: 14px; }
  main { padding: 22px 16px; } .foot { padding: 18px 16px 26px; } h1 { font-size: 25px; }
  .login { grid-template-columns: 1fr; } .login .art { display: none; }
  table { display: block; overflow-x: auto; }
}
@media print { .side, .mbar, .foot, .pal, .busy { display: none !important; } .shell { display: block; } main { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Feinschliff */
input[type=file]::file-selector-button { font: inherit; font-weight: 500; padding: 8px 14px; margin-right: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--brand2); }
td a strong { color: var(--text); white-space: nowrap; } td a:hover strong { color: var(--brand); }
.btn.primary, .btn.primary:hover { color: #fff; }
td > a:first-child { color: var(--text); font-weight: 500; } td > a:first-child:hover { color: var(--brand); text-decoration: none; }

/* Positionsseite: Belegvorschau neben dem Formular */
main.wide { max-width: 1560px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: start; }
.split.single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.split .col > .card:first-child { margin-top: 0; }
.viewer { position: sticky; top: 18px; height: calc(100vh - 36px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.vhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card2); }
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.vtabs button { padding: 5px 12px; font-size: 13px; border-radius: 999px; }
.vtabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.small, button.small { padding: 5px 12px; font-size: 13px; }
.vbody { flex: 1; min-height: 0; background: var(--bg2); display: flex; }
.vbody iframe { border: 0; width: 100%; height: 100%; background: #fff; }
.vbody .imgwrap { overflow: auto; width: 100%; height: 100%; display: grid; place-items: start center; padding: 14px; }
.vbody img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); cursor: zoom-in; }
.vbody img.zoom { max-width: none; width: 170%; cursor: zoom-out; }
@media (max-width: 1100px) {
  .split, .split.single { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: static; height: 70vh; order: -1; }
}

/* Mandant */
.tenant { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none !important; transition: background .15s; }
.tenant:hover { background: rgba(255,255,255,.11); }
.tenant > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--brand); }
.tenant .sb-label { flex: 1; min-width: 0; }
.tenant small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--side-text); }
.tenant b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant .chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--side-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tenants-pick { display: grid; gap: 12px; margin-top: 18px; }
.tenants-pick button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; text-align: left; padding: 16px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tenants-pick button:hover { border-color: var(--brand); transform: translateY(-1px); }
.tenants-pick button.cur { border-color: var(--brand); }
.tenants-pick small { display: block; font-weight: 400; color: var(--muted); }

/* Übersicht: Filter, Gruppen, Sortierköpfe */
.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin: 6px 0 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filterbar label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.filterbar select, .filterbar input { min-width: 150px; }
.filterbar .count { margin-left: auto; align-self: center; }
.filterbar .resetlink { align-self: center; font-size: 13px; }
.grouphead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 22px 0 -4px; }
.grouphead h3 { margin: 0; font-size: 17px; }
.alerttext { color: var(--brand); }
.sortlink { color: inherit; text-decoration: none !important; white-space: nowrap; }
.sortlink:hover, .sortlink.on { color: var(--text); }
.sortlink .arrow { margin-left: 5px; font-size: 9px; color: var(--brand); }
