/* Digital · Familie Budde – ruhiges, großes, breites Design (hell + dunkel) */
:root {
  --bg: #f6f5f1;
  --flaeche: #ffffff;
  --flaeche-2: #efede7;
  --linie: #e1ded6;
  --text: #1d1f22;
  --leise: #676b72;
  --akzent: #1f5f5b;
  --akzent-hell: #e3efed;
  --akzent-text: #ffffff;
  --warn: #9a5b00;
  --warn-hell: #fbf0dc;
  --gefahr: #b42318;
  --gefahr-hell: #fde8e6;
  --mark: #ffe58f;
  --schatten: 0 1px 2px rgba(20, 20, 20, .05), 0 4px 16px rgba(20, 20, 20, .06);
  --radius: 12px;
  --kopf: 68px;
  color-scheme: light;
}
:root[data-thema="dunkel"] {
  --bg: #16181b;
  --flaeche: #1f2226;
  --flaeche-2: #272b30;
  --linie: #33383e;
  --text: #ebe9e4;
  --leise: #9da2a9;
  --akzent: #5fb3a8;
  --akzent-hell: #1f3836;
  --akzent-text: #0e1513;
  --warn: #f0b45a;
  --warn-hell: #3a2d16;
  --gefahr: #ff8a7a;
  --gefahr-hell: #3d1f1b;
  --mark: #6b5a12;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --bg: #16181b; --flaeche: #1f2226; --flaeche-2: #272b30; --linie: #33383e; --text: #ebe9e4; --leise: #9da2a9;
    --akzent: #5fb3a8; --akzent-hell: #1f3836; --akzent-text: #0e1513; --warn: #f0b45a; --warn-hell: #3a2d16;
    --gefahr: #ff8a7a; --gefahr-hell: #3d1f1b; --mark: #6b5a12; --schatten: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akzent); }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Knöpfe & Felder ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--linie);
  background: var(--flaeche); cursor: pointer; font-weight: 550; white-space: nowrap;
}
.knopf:hover { border-color: var(--leise); }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf.primaer:hover { filter: brightness(1.08); }
.knopf.gefahr { color: var(--gefahr); }
.knopf.leise { background: transparent; border-color: transparent; color: var(--leise); }
.knopf.leise:hover { color: var(--text); background: var(--flaeche-2); }
.knopf.breit { width: 100%; }
.knopf.gross { min-height: 54px; font-size: 18px; padding: 0 28px; }
.knopf.klein { min-height: 34px; padding: 0 12px; font-size: 15px; }
.knopf:disabled { opacity: .45; cursor: default; filter: none; }
.symbolknopf { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--leise); }
.symbolknopf:hover { background: var(--flaeche-2); color: var(--text); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, .knopf:focus-visible, button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
label { display: grid; gap: 6px; font-size: 15px; color: var(--leise); }
label > input, label > select, label > textarea { color: var(--text); font-size: 16px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--akzent); }

/* ---------- Marke ---------- */
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.marke small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin-top: -3px; }
.marke-zeichen { width: 34px; height: 34px; border-radius: 9px; background: var(--akzent); position: relative; flex: none; }
.marke-zeichen::before { content: ""; position: absolute; inset: 8px 10px 7px 9px; background: var(--akzent-text); border-radius: 2px; clip-path: polygon(0 0, 68% 0, 100% 30%, 100% 100%, 0 100%); opacity: .95; }
.marke-zeichen::after { content: ""; position: absolute; left: 13px; right: 13px; top: 17px; height: 2px; background: var(--akzent); box-shadow: 0 5px 0 var(--akzent); }
.marke.gross { font-size: 26px; margin-bottom: 18px; }
.marke.gross .marke-zeichen { width: 44px; height: 44px; }
.marke.gross .marke-zeichen::before { inset: 10px 13px 9px 12px; }
.marke.gross .marke-zeichen::after { left: 17px; right: 17px; top: 22px; box-shadow: 0 6px 0 var(--akzent); }

/* ---------- Anmeldung ---------- */
.tor { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.tor-karte { width: min(460px, 100%); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; padding: 32px; box-shadow: var(--schatten); }
.tor-karte h1 { font-size: 24px; margin: 4px 0 12px; }
.tor-karte form { display: grid; gap: 14px; }
.tor-karte fieldset { border: 1px solid var(--linie); border-radius: 12px; display: grid; gap: 12px; padding: 14px; }
.tor-karte legend { padding: 0 6px; color: var(--leise); font-size: 14px; }
.formfehler { color: var(--gefahr); margin: 0; min-height: 1.2em; }
.leise { color: var(--leise); font-size: 15px; }

/* ---------- Grundgerüst ---------- */
.app {
  display: grid; height: 100vh; height: 100dvh;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-rows: var(--kopf) minmax(0, 1fr);
  grid-template-areas: "kopf kopf" "seite mitte";
}
.app.mit-vorschau { grid-template-columns: 290px minmax(380px, 1fr) minmax(520px, 47%); grid-template-areas: "kopf kopf kopf" "seite mitte vorschau"; }
.kopf {
  grid-area: kopf; display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: var(--flaeche); border-bottom: 1px solid var(--linie); position: relative; z-index: 5;
}
.kopf .marke { width: 250px; flex: none; }
.suchfeld { flex: 1; max-width: 860px; position: relative; display: flex; align-items: center; }
.suchfeld svg { position: absolute; left: 14px; color: var(--leise); }
.suchfeld input { padding-left: 44px; min-height: 46px; font-size: 17px; background: var(--bg); border-color: transparent; }
.suchfeld input:focus { background: var(--flaeche); border-color: var(--linie); }
.kopf-aktionen { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; }
.nutzer { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px 0 14px; border-radius: 21px; border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; font-weight: 600; }
.nutzer svg { width: 16px; height: 16px; color: var(--leise); }
.menue { position: absolute; right: 0; top: 52px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); padding: 6px; min-width: 200px; display: grid; }
.menue button { text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.menue button:hover { background: var(--flaeche-2); }
.nur-schmal { display: none; }
.menue button[data-aktion="thema"] { display: none; }

/* ---------- Seitenleiste ---------- */
.seitenleiste { grid-area: seite; overflow-y: auto; padding: 18px 14px 40px; border-right: 1px solid var(--linie); background: var(--bg); }
.ansichten { display: grid; gap: 2px; margin-bottom: 18px; }
.ansichten button, .facette button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
  border: 0; background: none; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 16px;
}
.ansichten button:hover, .facette button:hover { background: var(--flaeche-2); }
.ansichten button.aktiv, .facette button.aktiv { background: var(--akzent-hell); color: var(--akzent); font-weight: 650; }
.ansichten b, .facette b { font-weight: 600; font-size: 14px; color: var(--leise); font-variant-numeric: tabular-nums; }
.ansichten b.warn:not(:empty) { background: var(--warn-hell); color: var(--warn); padding: 1px 8px; border-radius: 10px; }
.ansichten b.akzent:not(:empty) { background: var(--akzent-hell); color: var(--akzent); padding: 1px 8px; border-radius: 10px; }
.facette { margin: 0 0 16px; }
.facette h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); margin: 0 12px 6px; font-weight: 650; }
.facette .mehr { color: var(--akzent); font-size: 15px; }
.facette input { min-height: 36px; margin: 0 0 6px; font-size: 15px; }
.facette .liste-scroll { max-height: 290px; overflow-y: auto; }

/* ---------- Mitte ---------- */
.mitte { grid-area: mitte; overflow-y: auto; padding: 16px 22px 60px; }
.werkzeug { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ergebnis-info { color: var(--leise); }
.ergebnis-info strong { color: var(--text); }
.werkzeug-rechts { display: flex; gap: 12px; align-items: center; }
.werkzeug-rechts select { width: auto; min-height: 38px; }
.steuer-schalter { display: flex; align-items: center; gap: 8px; color: var(--leise); white-space: nowrap; font-size: 15px; }
.verarbeitung { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--akzent-hell); color: var(--akzent); border-radius: var(--radius); margin-bottom: 12px; font-weight: 550; }
.dreher { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: drehen .8s linear infinite; flex: none; }
@keyframes drehen { to { transform: rotate(360deg); } }

.frist-streifen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.frist-streifen h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); margin: 0 0 8px; }
.frist-zeile { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linie); cursor: pointer; }
.frist-zeile:first-of-type { border-top: 0; }
.frist-zeile .datum { font-weight: 650; font-variant-numeric: tabular-nums; }
.frist-zeile.ueberfaellig .datum { color: var(--gefahr); }
.frist-zeile .beschr { min-width: 0; }
.frist-zeile .beschr small { display: block; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.liste { display: grid; gap: 8px; }
.eintrag {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 16px; cursor: pointer;
}
.eintrag:hover { border-color: var(--leise); }
.eintrag.aktiv { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.daumen { width: 58px; height: 74px; border-radius: 6px; background: var(--flaeche-2); border: 1px solid var(--linie); object-fit: cover; object-position: top; display: grid; place-items: center; color: var(--leise); font-size: 12px; overflow: hidden; }
.eintrag-titel { font-size: 17px; font-weight: 620; line-height: 1.3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eintrag-meta { color: var(--leise); font-size: 15px; margin-top: 2px; }
.eintrag-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 13px; padding: 2px 9px; border-radius: 20px; background: var(--flaeche-2); color: var(--leise); font-weight: 550; white-space: nowrap; }
.chip.bereich-gmbh { background: #e6ecf7; color: #2c4a7e; }
:root[data-thema="dunkel"] .chip.bereich-gmbh { background: #1f2a3d; color: #9db6e0; }
.marker { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.marker.neu { background: var(--akzent); color: var(--akzent-text); }
.marker.korb { background: var(--warn-hell); color: var(--warn); }
.marker.fehler { background: var(--gefahr-hell); color: var(--gefahr); }
.marker.frist { background: var(--warn-hell); color: var(--warn); text-transform: none; letter-spacing: 0; }
.eintrag-ausschnitt { color: var(--leise); font-size: 15px; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eintrag-rechts { text-align: right; white-space: nowrap; }
.betrag { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 17px; }
.eintrag-rechts small { display: block; color: var(--leise); font-size: 14px; }
.leer { text-align: center; color: var(--leise); padding: 60px 20px; border: 2px dashed var(--linie); border-radius: 16px; }
.leer h2 { color: var(--text); font-size: 20px; margin: 0 0 6px; }

/* ---------- Vorschau ---------- */
.vorschau { grid-area: vorschau; display: flex; flex-direction: column; min-height: 0; background: var(--flaeche); border-left: 1px solid var(--linie); }
.vorschau-kopf { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 10px; border-bottom: 1px solid var(--linie); }
.vorschau-kopf h2 { font-size: 20px; margin: 0; line-height: 1.3; flex: 1; }
.vorschau-kopf .meta { color: var(--leise); font-size: 15px; margin-top: 2px; font-weight: 400; }
.reiter { display: flex; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--linie); }
.reiter button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--leise); font-weight: 600; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.reiter button.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }
.vorschau-inhalt { flex: 1; min-height: 0; overflow-y: auto; }
.vorschau-inhalt iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.pdf-rahmen { height: 100%; display: flex; flex-direction: column; }
.pdf-rahmen iframe { flex: 1; }
.seitenansicht { display: grid; gap: 14px; padding: 16px; background: var(--flaeche-2); min-height: 100%; align-content: start; }
.seitenansicht img { width: 100%; height: auto; display: block; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.12); min-height: 200px; }
.textansicht { white-space: pre-wrap; font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 18px; margin: 0; }
.details { padding: 18px; display: grid; gap: 14px; }
.details .zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.details .dreispaltig { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 12px; }
.hinweis-box { background: var(--warn-hell); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-weight: 550; }
.hinweis-box.fehler { background: var(--gefahr-hell); color: var(--gefahr); }
.hinweis-box p { margin: 4px 0 0; font-weight: 400; color: var(--text); }
.aktionsleiste { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--linie); background: var(--flaeche); }
.aktionsleiste .rechts { margin-left: auto; display: flex; gap: 10px; }
.abschnitt h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); margin: 8px 0 8px; }
.frist-eintrag { display: grid; grid-template-columns: auto 140px 130px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; }
.frist-eintrag.erledigt input:not([type=checkbox]) { text-decoration: line-through; color: var(--leise); }
.verlauf { list-style: none; padding: 0; margin: 0; color: var(--leise); font-size: 14px; display: grid; gap: 4px; }
.lernhinweis { font-size: 14px; color: var(--leise); }
.zurueck-knopf { display: none; }

/* ---------- Ablage, Meldungen, Dialog ---------- */
.ablage-ueberlagerung { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--akzent) 18%, transparent); display: grid; place-items: center; pointer-events: none; }
.ablage-ueberlagerung div { background: var(--flaeche); border: 3px dashed var(--akzent); border-radius: 20px; padding: 40px 60px; font-size: 24px; font-weight: 700; text-align: center; color: var(--akzent); }
.ablage-ueberlagerung small { display: block; font-size: 16px; font-weight: 500; color: var(--leise); margin-top: 6px; }
.meldungen { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100vw - 40px)); }
.meldung { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--schatten); display: flex; gap: 10px; align-items: center; }
.meldung.fehler { background: var(--gefahr); color: #fff; }
.dialog { border: 1px solid var(--linie); border-radius: 18px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 60px); background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.dialog::backdrop { background: rgba(0, 0, 0, .35); }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--linie); }
.dialog-kopf h2 { margin: 0; font-size: 21px; }
.dialog-inhalt { padding: 18px 22px; display: grid; gap: 18px; overflow-y: auto; max-height: calc(100vh - 200px); }
.dialog-fuss { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--linie); }
.dialog section { display: grid; gap: 10px; }
.dialog h3 { margin: 0; font-size: 16px; }

/* ---------- Kamera ---------- */
.kamera { position: fixed; inset: 0; z-index: 70; background: #0f1112; color: #f2f2f2; display: grid; grid-template-rows: auto 1fr auto; }
.kamera .knopf { background: #23272b; border-color: #34393f; color: #f2f2f2; }
.kamera .knopf.primaer { background: #5fb3a8; border-color: #5fb3a8; color: #0e1513; }
.kamera-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
.kamera-buehne { position: relative; min-height: 0; display: grid; place-items: center; padding: 10px; }
.kamera-leer { max-width: 460px; text-align: center; display: grid; gap: 22px; color: #c9cdd1; font-size: 17px; }
.kamera-zuschnitt { position: relative; touch-action: none; max-width: 100%; max-height: 100%; }
.kamera-zuschnitt canvas { display: block; max-width: 100%; max-height: calc(100dvh - 230px); }
.kamera-zuschnitt svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kamera-zuschnitt polygon { fill: rgba(95, 179, 168, .16); stroke: #5fb3a8; stroke-width: 2.5; }
.kamera-zuschnitt circle { fill: #fff; stroke: #5fb3a8; stroke-width: 3; cursor: grab; }
.kamera-fuss { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.kamera-seiten { display: flex; gap: 8px; overflow-x: auto; min-height: 0; }
.kamera-seiten figure { margin: 0; position: relative; flex: none; }
.kamera-seiten img { height: 76px; border-radius: 6px; border: 1px solid #34393f; display: block; }
.kamera-seiten button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #b42318; color: #fff; font-size: 14px; cursor: pointer; line-height: 1; }
.kamera-aktionen { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kamera-arbeitet { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); font-weight: 600; }

/* ---------- Mittlere Breite: Vorschau als Schublade ---------- */
@media (max-width: 1280px) {
  .app.mit-vorschau { grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "kopf kopf" "seite mitte"; }
  .vorschau { position: fixed; top: var(--kopf); right: 0; bottom: 0; width: min(760px, 92vw); z-index: 20; box-shadow: -10px 0 40px rgba(0,0,0,.18); }
  .zurueck-knopf { display: inline-grid; }
  .kopf .marke { width: auto; }
}
/* ---------- Schmal / Handy ---------- */
@media (max-width: 820px) {
  :root { --kopf: 112px; }
  body { font-size: 17px; }
  .app, .app.mit-vorschau { grid-template-columns: 1fr; grid-template-areas: "kopf" "mitte"; }
  .kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "filter marke aktionen" "suche suche suche"; gap: 8px 8px; padding: 8px 12px; align-content: center; }
  .kopf .marke { grid-area: marke; font-size: 18px; gap: 8px; width: auto; }
  .kopf .marke .marke-zeichen { width: 30px; height: 30px; }
  .kopf .marke .marke-zeichen::before { inset: 7px 9px 6px 8px; }
  .kopf .marke .marke-zeichen::after { left: 12px; right: 12px; top: 15px; box-shadow: 0 4px 0 var(--akzent); }
  .kopf .marke small { display: none; }
  .nur-schmal { display: inline-grid; grid-area: filter; }
  .kopf-aktionen { grid-area: aktionen; gap: 6px; }
  .kopf-aktionen .knopf span, #themaKnopf { display: none; }
  .kopf-aktionen .knopf { padding: 0 11px; }
  .nutzer { padding: 0 8px 0 12px; font-size: 15px; }
  .menue button[data-aktion="thema"] { display: block; }
  .suchfeld { grid-area: suche; max-width: none; }
  .mitte { overflow-x: hidden; }
  .werkzeug-rechts select { flex: 1; min-width: 0; width: 100%; }
  .steuer-schalter { font-size: 14px; }
  .seitenleiste { position: fixed; top: var(--kopf); left: 0; bottom: 0; width: min(330px, 88vw); z-index: 25; background: var(--bg); box-shadow: 10px 0 40px rgba(0,0,0,.2); transform: translateX(-105%); transition: transform .2s; }
  .seitenleiste.offen { transform: none; }
  .mitte { padding: 12px 12px 90px; }
  .werkzeug-rechts { width: 100%; justify-content: space-between; }
  .eintrag { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .daumen { width: 46px; height: 60px; }
  .eintrag-rechts { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .vorschau { position: fixed; inset: 0; width: auto; z-index: 30; top: 0; }
  .details .zweispaltig, .details .dreispaltig { grid-template-columns: 1fr; }
  .frist-eintrag { grid-template-columns: auto 1fr 1fr; }
  .frist-eintrag .beschr-feld { grid-column: 1 / -1; }
  .frist-zeile { grid-template-columns: 96px 1fr; }
  .frist-zeile .betrag { display: none; }
  .meldungen { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
