:root {
  --hintergrund: linear-gradient(135deg, #eef1f8 0%, #f3f1f6 45%, #f8efe6 100%);
  --karte: #ffffff; --flaeche: #f4f5f8; --linie: #e7e8ee;
  --text: #1c2033; --leise: #6b7083; --primaer: #2b5fd9; --primaer-hell: #e8eefc;
  --orange: #e9883b; --orange-hell: #fdebd9; --gruen: #2f9e5b; --gruen-hell: #e3f4ea;
  --grau-hell: #eef0f4; --warn: #b8610a; --warn-hell: #fff1e2;
  --schatten: 0 1px 2px rgba(28,32,51,.04), 0 4px 16px rgba(28,32,51,.04);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: linear-gradient(135deg, #14161d 0%, #17161c 50%, #1d1813 100%);
    --karte: #1f2129; --flaeche: #262833; --linie: #31343f;
    --text: #eceef4; --leise: #9a9fb0; --primaer: #6f97ff; --primaer-hell: #24304d;
    --orange: #f2a15e; --orange-hell: #3a2a1c; --gruen: #5cc489; --gruen-hell: #1d3227;
    --grau-hell: #2a2d38; --warn: #f2a15e; --warn-hell: #3a2a1c;
    --schatten: none;
  }
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--hintergrund); }
body { margin: 0; min-height: 100vh; color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; }
a { color: var(--primaer); text-decoration: none; } a:hover { text-decoration: underline; }
.ic { flex: none; }

/* Grundlayout */
.app { display: grid; grid-template-columns: 264px 1fr; gap: 24px; padding: 16px; max-width: 1480px; margin: 0 auto; }
.seitenleiste { position: sticky; top: 16px; height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 20px;
  padding: 20px 12px; background: rgba(255,255,255,.45); border-radius: var(--radius); }
@media (prefers-color-scheme: dark) { .seitenleiste { background: rgba(255,255,255,.03); } }
.marke { display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 20px; font-weight: 600; color: var(--text); }
.marke:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 36px; height: 28px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.konto { padding: 0 12px; display: flex; flex-direction: column; font-size: 13px; }
.konto span { color: var(--leise); }
.seitenleiste nav { display: flex; flex-direction: column; gap: 4px; }
.seitenleiste nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); font-weight: 500; }
.seitenleiste nav a:hover { background: rgba(255,255,255,.6); text-decoration: none; }
.seitenleiste nav a.aktiv { background: var(--karte); box-shadow: var(--schatten); }
.badge { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; background: var(--orange); color: #fff; border-radius: 10px; padding: 1px 8px; }
.leiste-fuss { margin-top: auto; padding: 12px; border-top: 1px solid var(--linie); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--leise); }
.status.ok { color: var(--gruen); } .status.warn { color: var(--warn); }

.inhalt { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.kopfleiste { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px;
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); }
.kopfleiste h1 { margin: 0; font-size: 26px; font-weight: 600; }
.suchfeld { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); color: var(--leise); width: min(360px, 100%); }
.suchfeld input { border: 0; outline: 0; padding: 11px 0; width: 100%; background: transparent; }
main { display: flex; flex-direction: column; gap: 24px; }

/* Karten */
.karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 24px; min-width: 0; }
.raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.raster .breit { grid-column: 1 / -1; }
.karten-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.kopf-text { flex: 1; min-width: 0; }
.kopf-text h2 { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.label { display: block; font-size: 12px; color: var(--leise); }
.kachel { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none; }
.kachel.klein { width: 34px; height: 34px; border-radius: 9px; }
.kachel.orange { background: var(--orange-hell); color: var(--orange); }
.kachel.blau { background: var(--primaer-hell); color: var(--primaer); }
.kachel.gruen { background: var(--gruen-hell); color: var(--gruen); }
.kachel.grau { background: var(--grau-hell); color: var(--leise); }
.pfeil-knopf { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--linie); border-radius: 12px; color: var(--text); flex: none; }
.pfeil-knopf:hover { background: var(--flaeche); text-decoration: none; }

.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kennzahl { display: flex; align-items: center; gap: 16px; color: var(--text); }
.kennzahl:hover { text-decoration: none; outline: 2px solid var(--primaer-hell); }
.kennzahl strong { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 2px; }

/* Eintraege zum Zuordnen */
.eintrag { border: 1px solid var(--linie); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.eintrag-kopf { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.eintrag-kopf > div:nth-child(2) { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.eintrag-kopf strong { color: var(--text); }
.pdf { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--flaeche); color: var(--leise); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; background: var(--flaeche); color: var(--text); white-space: nowrap; }
.chip.warn { background: var(--warn-hell); color: var(--warn); }
.leise { font-size: 13px; color: var(--leise); }

/* Formulare und Knoepfe */
.zuordnen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 14px; }
.zuordnen .breit { grid-column: span 1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--leise); }
input, select, button, .knopf { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); color: var(--text); }
label input, label select { width: 100%; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--primaer-hell); border-color: var(--primaer); }
button, .knopf { cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.knopf:hover, button:hover { background: var(--flaeche); text-decoration: none; }
button.primaer { background: var(--primaer); border-color: var(--primaer); color: #fff; }
button.primaer:hover { filter: brightness(1.07); background: var(--primaer); }
.klein { padding: 5px 12px; font-size: 13px; }
.link { display: inline; color: var(--primaer); font-size: inherit; cursor: pointer; }
.fuss-aktion { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Tabellen */
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--leise); padding: 0 12px 10px; border-bottom: 1px solid var(--linie); }
td { padding: 12px; border-bottom: 1px solid var(--linie); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.aktionen { display: flex; gap: 8px; justify-content: flex-end; } .aktionen form { margin: 0; }

/* Leer-Zustand wie im Cockpit */
.leer-box { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 28px 16px;
  border: 1.5px dashed var(--linie); border-radius: 14px; color: var(--leise); }
.leer-box strong { color: var(--text); margin-top: 4px; } .leer-box span { font-size: 13px; }

/* Drag & Drop */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 16px;
  border: 1.5px dashed var(--linie); border-radius: 14px; color: var(--leise); transition: .15s; }
.dropzone strong { color: var(--text); } .dropzone span { font-size: 13px; }
.dropzone.aktiv, body.ziehen .dropzone { border-color: var(--primaer); background: var(--primaer-hell); color: var(--primaer); }
.upload-liste { list-style: none; padding: 0; margin: 8px 0 0; width: 100%; font-size: 13px; text-align: left; }
.upload-liste li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: var(--text); }
.upload-liste .ok { color: var(--gruen); } .upload-liste .fehler { color: var(--warn); }
.ablage-overlay { position: fixed; inset: 0; display: none; place-items: center; background: rgba(43,95,217,.12); backdrop-filter: blur(2px); z-index: 10; pointer-events: none; }
.ablage-overlay div { background: var(--karte); padding: 32px 40px; border-radius: var(--radius); text-align: center; color: var(--primaer); box-shadow: 0 10px 40px rgba(0,0,0,.12); }
body.ziehen .ablage-overlay { display: grid; }

/* Listen */
.werte { margin: 0 0 12px; display: grid; gap: 12px; }
.werte dt { font-size: 12px; color: var(--leise); } .werte dd { margin: 2px 0 0; font-weight: 600; word-break: break-all; }
.kurzliste { list-style: none; padding: 0; margin: 0; }
.kurzliste li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.kurzliste li:last-child { border-bottom: 0; }
.dateiliste { list-style: none; padding: 0; margin: 0; }
.dateiliste a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; color: var(--text); }
.dateiliste a:hover { background: var(--flaeche); text-decoration: none; }
.pfad { margin: 0 0 12px; font-weight: 500; } .pfad span { color: var(--leise); }
.absender-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.absender-karte { display: flex; align-items: center; gap: 14px; color: var(--text); }
.absender-karte:hover { text-decoration: none; outline: 2px solid var(--primaer-hell); }
.absender-karte > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vorschau { padding: 8px; } .vorschau iframe { width: 100%; height: 78vh; border: 0; border-radius: 10px; background: #fff; }
.zweispaltig .zuordnen { grid-template-columns: 1fr 1fr; }
details { margin-top: 16px; } summary { cursor: pointer; color: var(--leise); font-size: 13px; }
pre { white-space: pre-wrap; font-size: 12px; max-height: 300px; overflow: auto; background: var(--flaeche); padding: 12px; border-radius: 10px; }

/* Schmale Bildschirme */
@media (max-width: 1100px) {
  .raster { grid-template-columns: 1fr 1fr; } .kennzahlen { grid-template-columns: 1fr 1fr; }
  .zuordnen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; gap: 16px; }
  .seitenleiste, .inhalt, main, .raster > * { min-width: 0; }
  .seitenleiste { position: static; height: auto; padding: 12px; gap: 12px; }
  .konto, .leiste-fuss { display: none; }
  .seitenleiste nav { flex-direction: row; overflow-x: auto; }
  .seitenleiste nav a { padding: 8px 12px; white-space: nowrap; }
  .kopfleiste { flex-direction: column; align-items: stretch; padding: 16px; }
  .raster, .zweispaltig { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kennzahlen { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kennzahl { flex-direction: column; align-items: flex-start; gap: 10px; }
  .kachel { width: 40px; height: 40px; }
  .zuordnen, .zweispaltig .zuordnen { grid-template-columns: 1fr 1fr; }
  .karte { padding: 16px; }
  .kennzahl strong { font-size: 22px; }
}

/* Ergaenzungen fuer die Webversion */
.meldung { padding: 12px 16px; border-radius: 12px; background: var(--gruen-hell); color: var(--gruen); font-weight: 500; }
.meldung.warn { background: var(--warn-hell); color: var(--warn); }
.link-knopf { background: none; border: 0; padding: 8px 0 0; color: var(--leise); font-weight: 500; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.link-knopf:hover { background: none; color: var(--text); }
.leiste-fuss { display: flex; flex-direction: column; gap: 4px; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.stapel button { align-self: flex-start; }
textarea { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); color: var(--text); resize: vertical; width: 100%; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kopierbar { user-select: all; word-break: break-all; }
.vorschau img { width: 100%; border-radius: 10px; }
body.einfach { display: grid; place-items: center; padding: 16px; }
.anmelde-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.anmelde-box h1 { margin: 12px 0 0; font-size: 22px; }
.anmelde-box .marke { padding: 0; }
.anmelde-box .stapel button { align-self: stretch; }
@media (max-width: 1100px) { .raster.zwei { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .leiste-fuss { display: none; } }

/* Bereiche (Privat / Firma / ...) */
.bereiche { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 8px; padding: 4px; background: rgba(255,255,255,.55); border-radius: 12px; }
@media (prefers-color-scheme: dark) { .bereiche { background: rgba(255,255,255,.05); } }
.bereiche a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 8px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--leise); white-space: nowrap; }
.bereiche a:hover { text-decoration: none; color: var(--text); }
.bereiche a[style] .ic { color: var(--b); }
.bereiche a.aktiv { background: var(--karte); color: var(--text); box-shadow: var(--schatten); }
.bereiche a.aktiv[style] { background: color-mix(in srgb, var(--b) 16%, var(--karte)); color: var(--b); }
.bereich-chip { --b: var(--leise); display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--b) 14%, transparent); color: var(--b); }
h1 .bereich-chip { font-size: 13px; margin-left: 6px; }
.bereich-zeilen { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bereich-zeilen legend { font-size: 13px; color: var(--leise); margin-bottom: 6px; padding: 0; }
.bereich-zeile { display: grid; grid-template-columns: 44px 120px minmax(0, 1fr); gap: 8px; }
.bereich-zeile input[type=color] { padding: 2px; height: 40px; width: 44px; cursor: pointer; }
.badge.blau { background: var(--primaer); }

/* Import */
.hinweis-karte { display: flex; align-items: center; gap: 14px; color: var(--text); }
.hinweis-karte:hover { text-decoration: none; outline: 2px solid var(--primaer-hell); }
.hinweis-karte > div { flex: 1; display: flex; flex-direction: column; }
.fortschritt { height: 8px; border-radius: 4px; background: var(--flaeche); overflow: hidden; margin: 8px 0 14px; }
.fortschritt span { display: block; height: 100%; width: 0; background: var(--primaer); transition: width .3s; }
.import-gruppe { border-top: 1px solid var(--linie); padding: 10px 0; }
.import-gruppe summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.import-gruppe summary::-webkit-details-marker { display: none; }
.import-gruppe summary strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gruppen-ziel { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 14px 0; }
.gruppen-ziel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--leise); }
button:disabled { opacity: .5; cursor: default; }
@media (max-width: 760px) {
  .konto { display: none; }
  .bereiche { margin: 0; display: flex; overflow-x: auto; }
  .gruppen-ziel { grid-template-columns: minmax(0, 1fr); }
}

/* Loeschen */
.knopfreihe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zuordnen .knopfreihe .primaer { flex: 1; }
.knopf.loeschen, button.loeschen { color: var(--leise); }
.knopf.loeschen:hover, button.loeschen:hover { color: #d64545; border-color: #d64545; }

/* Abmelden auch auf dem Handy */
@media (max-width: 760px) {
  .seitenleiste .leiste-fuss { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 4px 0; margin-top: 0; }
  .leiste-fuss .link-knopf { padding: 0; }
}
.dateiliste .datei-zeile { display: flex; align-items: center; gap: 8px; }
.dateiliste .datei-zeile > a:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dateiliste .datei-zeile form { margin: 0; }
.dateiliste .datei-zeile a.knopf { display: inline-flex; padding: 5px 12px; border: 1px solid var(--linie); }
.seitenleiste nav.nav-unten { margin-top: auto; }
.seitenleiste .nav-unten + .leiste-fuss { margin-top: 0; }
@media (max-width: 760px) { .seitenleiste nav.nav-unten { margin-top: 0; } }
.alle-ablegen { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px 16px; margin-bottom: 8px; border-radius: 12px; background: var(--primaer-hell); }
.alle-ablegen p { margin: 0; }
@media (max-width: 760px) { .alle-ablegen { flex-direction: column; align-items: stretch; } }
.alle-ablegen button { white-space: nowrap; flex: none; }

/* Ordner-Menue (drei Punkte) */
.dateiliste .ordner-zeile { display: flex; align-items: center; gap: 8px; position: relative; }
.dateiliste .ordner-zeile > a { flex: 1; min-width: 0; }
.kachel.eigen { background: color-mix(in srgb, var(--b) 15%, transparent); color: var(--b); }
.menue summary { list-style: none; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 20px; color: var(--leise); }
.menue summary::-webkit-details-marker { display: none; }
.menue summary:hover, .menue[open] summary { background: var(--flaeche); color: var(--text); }
.menue-inhalt { position: absolute; right: 0; top: 40px; z-index: 5; width: min(340px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 12px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); border: 1px solid var(--linie); }
.menue-inhalt form { margin: 0; }
.menue-inhalt label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--leise); }
.menue-inhalt .zeile { display: flex; gap: 6px; }
.menue-inhalt .zeile input:not([type=color]), .menue-inhalt .zeile select { flex: 1; min-width: 0; }
.menue-inhalt input[type=color] { width: 40px; height: 34px; padding: 2px; }
.symbol-knopf { width: 34px; height: 34px; display: grid !important; place-items: center; padding: 0 !important; border-radius: 9px; color: var(--leise) !important; flex: none; }
.symbol-knopf:hover { background: var(--flaeche); color: var(--text) !important; }
.zip-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 0 8px; }
.zip-leiste label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ordner-zeile > input[type=checkbox] { margin-left: 8px; }
.dateiliste .ordner-zeile > a.symbol-knopf { flex: none; }
.zip-leiste label { flex-direction: row !important; color: var(--leise); }
.zip-leiste label { white-space: nowrap; }

/* Favoriten, Schlagwoerter, Fristen */
.stern-form { display: inline; margin: 0; }
button.stern { background: none; border: 0; padding: 4px; color: var(--leise); cursor: pointer; display: inline-grid; place-items: center; border-radius: 8px; }
button.stern:hover { background: var(--flaeche); color: var(--orange); }
button.stern.an { color: var(--orange); }
.stern-zelle { width: 36px; }
.chip.etikett { background: var(--primaer-hell); color: var(--primaer); text-decoration: none; }
.chip.etikett em { font-style: normal; opacity: .7; margin-left: 2px; }
.chips.gross .chip { font-size: 14px; padding: 6px 12px; }
.dok-leiste { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dok-leiste .chip { display: inline-flex; align-items: center; gap: 4px; }
.frist-zeile { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; flex-wrap: wrap; }
.frist-zeile a { flex: 1; min-width: 0; }
.frist-zeile form { margin: 0; }
.dublette-hinweis { margin: 6px 0 0; color: var(--warn); }
.zuordnen .breit2 { grid-column: span 2; }
@media (max-width: 760px) { .zuordnen .breit2 { grid-column: 1 / -1; } }
.kachel.lila { background: color-mix(in srgb, #7a4fd0 15%, transparent); color: #8b62e0; }
.ocr-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.ocr-zeile .knopf { display: inline-flex; align-items: center; gap: 6px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.fundstelle { font-size: 13px; max-width: 380px; }
.fundstelle mark { background: var(--orange-hell); color: inherit; border-radius: 3px; padding: 0 2px; }
/* Icon-Auswahl */
.icon-wahl { position: relative; flex: 1; }
.icon-wahl summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte, #fff); color: var(--text); cursor: pointer; }
.icon-wahl summary::-webkit-details-marker { display: none; }
.icon-wahl .pfeilchen { font-size: 11px; color: var(--leise); }
.icon-panel { position: absolute; z-index: 20; top: 40px; left: 0; width: min(320px, calc(100vw - 48px)); max-height: 340px; overflow-y: auto; padding: 10px; background: var(--karte, #fff); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.menue-inhalt .icon-panel { left: auto; right: -60px; }
.icon-suche { width: 100%; margin-bottom: 8px; position: sticky; top: 0; }
.icon-gruppe h4 { margin: 8px 2px 4px; font-size: 12px; font-weight: 600; color: var(--leise); text-transform: none; }
.icon-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.icon-raster button { display: grid; place-items: center; height: 38px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); cursor: pointer; padding: 0; }
.icon-raster button:hover { background: var(--flaeche); }
.icon-raster button.gewaehlt { border-color: var(--primaer); background: var(--primaer-hell); color: var(--primaer); }
.bereich-zeile .icon-wahl, .icon-wahl.fest { flex: 0 0 auto; }
.icon-suche { background: var(--karte); }
.menue-inhalt .feld-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--leise); }
/* Ordneransicht: Titel, Unterzeile, Datum und Aenderung */
.eintrag-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.eintrag-titel { font-weight: 500; overflow-wrap: anywhere; }
.eintrag-unter { font-size: 13px; color: var(--leise); }
.eintrag-daten { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.datum-chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.eintrag-daten .geaendert { font-size: 12px; white-space: nowrap; }
.sortierleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 13px; }
.sortierleiste .chip { text-decoration: none; color: var(--text); }
.sortierleiste .chip.aktiv { background: var(--primaer-hell); color: var(--primaer); font-weight: 600; }
@media (max-width: 640px) { .eintrag-daten .geaendert { display: none; } }
table.sortierbar th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
table.sortierbar th[data-sort]:hover { color: var(--text); }
table.sortierbar th[data-richtung="auf"]::after { content: " ↑"; }
table.sortierbar th[data-richtung="ab"]::after { content: " ↓"; }
.menue-inhalt .zeile { align-items: center; }
@media (max-width: 900px) { .spalte-geaendert { display: none; } }
@media (max-width: 640px) {
  .dateiliste .datei-zeile { flex-wrap: wrap; }
  .dateiliste .datei-zeile > a:first-child { flex: 1 1 100%; flex-wrap: wrap; }
  .dateiliste .datei-zeile .eintrag-text { flex: 1 1 0; min-width: 120px; }
  .dateiliste .datei-zeile .eintrag-daten { flex-direction: row; align-items: center; }
  .dateiliste .datei-zeile > a.knopf { margin-left: 52px; }
}
