@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/plex-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/plex-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url(fonts/plex-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --blau: #1d4ed8;
  --blau-dunkel: #1e3a8a;
  --blau-hell: #eff4ff;
  --blau-rand: #c7d7fe;
  --gruen: #15803d;
  --gruen-hell: #ecfdf3;
  --gruen-rand: #b7ebc9;
  --gelb: #a15c07;
  --gelb-hell: #fffaeb;
  --gelb-rand: #fde7b0;
  --rot: #b42318;
  --rot-hell: #fef3f2;
  --rot-rand: #fecdca;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --linie: #e2e8f0;
  --linie-2: #eef2f6;
  --flaeche: #f8fafc;
  --flaeche-2: #f1f5f9;
  --weiss: #fff;
  --papier: #fff;
  --kanal-booking: #1d4ed8;
  --kanal-airbnb: #e0565b;
  --kanal-direkt: #15803d;
  --kanal-traum: #d97706;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --radius: 8px;
  --radius-s: 6px;
  --schatten-1: 0 1px 2px rgba(15, 23, 42, .05);
  --schatten-2: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --schatten-3: 0 12px 32px rgba(15, 23, 42, .16);
  --fokus: 0 0 0 3px rgba(29, 78, 216, .35);
  --dauer: 180ms;
  --kurve: cubic-bezier(.2, .8, .2, 1);
  --z-kopf: 10; --z-navi: 20; --z-schublade: 40; --z-toast: 60;
  --fs: 15px;
  --hoehe: 40px;
}
body.einfach { --fs: 17px; --hoehe: 46px; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --blau: #6b9bff;
    --blau-dunkel: #a9c4ff;
    --blau-hell: #16213b;
    --blau-rand: #2a3b63;
    --gruen: #4ade80;
    --gruen-hell: #10261a;
    --gruen-rand: #1d4a31;
    --gelb: #fbbf24;
    --gelb-hell: #2a2111;
    --gelb-rand: #4d3a12;
    --rot: #f87171;
    --rot-hell: #2c1515;
    --rot-rand: #5a2424;
    --text: #e8edf5;
    --text-2: #b4bfcd;
    --text-3: #94a3b8;
    --linie: #263043;
    --linie-2: #1e2635;
    --flaeche: #0b1120;
    --flaeche-2: #111a2b;
    --weiss: #131c2e;
    --kanal-booking: #6b9bff;
    --schatten-1: none;
    --schatten-2: 0 1px 2px rgba(0, 0, 0, .4);
    --schatten-3: 0 16px 40px rgba(0, 0, 0, .55);
    --fokus: 0 0 0 3px rgba(107, 155, 255, .45);
  }
  .knopf.primaer, .knopf.gruen { color: #0b1120 !important; }
  .marke-zeichen { color: #0b1120 !important; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: var(--fs); color: var(--text); background: var(--flaeche); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blau); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; color: inherit; touch-action: manipulation; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 1.75em; font-weight: 600; margin: 0 0 var(--s1); letter-spacing: -.015em; line-height: 1.2; }
h2 { font-size: 1.12em; font-weight: 600; margin: 0 0 var(--s3); letter-spacing: -.005em; }
h3 { font-size: 1em; font-weight: 600; margin: 0 0 var(--s2); }
.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right; }
.leise { color: var(--text-2); }
.sehr-leise { color: var(--text-3); font-size: .88em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.springen { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--blau); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--radius-s); }
.springen:focus { top: var(--s2); }

.app { display: grid; grid-template-columns: 248px 1fr; grid-template-rows: 60px 1fr; height: 100vh; height: 100dvh; }
.kopf {
  grid-column: 1 / 3; display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s5) 0 0;
  background: var(--weiss); border-bottom: 1px solid var(--linie); z-index: var(--z-kopf);
}
.marke { width: 248px; display: flex; align-items: center; gap: var(--s3); padding-left: var(--s5); font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.marke-zeichen { width: 32px; height: 32px; border-radius: 8px; background: var(--blau); color: #fff; display: grid; place-items: center; flex: 0 0 32px; }
.marke small { display: block; font-weight: 400; font-size: 12px; color: var(--text-3); margin-top: -2px; letter-spacing: 0; }
.suche { flex: 1; max-width: 520px; position: relative; }
.suche label { position: absolute; left: 14px; top: 0; height: 100%; display: flex; align-items: center; color: var(--text-3); }
.suche input { width: 100%; height: 40px; border: 1px solid var(--linie); border-radius: 20px; padding: 0 16px 0 40px; font: inherit; font-size: 14.5px; background: var(--flaeche); color: var(--text); transition: border-color var(--dauer), box-shadow var(--dauer), background var(--dauer); }
.suche input::placeholder { color: var(--text-3); }
.suche input:focus { background: var(--weiss); border-color: var(--blau); box-shadow: var(--fokus); outline: none; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }
.modus { display: inline-flex; padding: 3px; background: var(--flaeche-2); border-radius: 10px; border: 1px solid var(--linie); }
.modus button { border: 0; background: none; padding: 0 14px; height: 34px; border-radius: 7px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background var(--dauer), color var(--dauer); }
.modus button:hover { color: var(--text); }
.modus button.an { background: var(--weiss); color: var(--text); box-shadow: var(--schatten-2); }
.firma-knopf { display: flex; align-items: center; gap: var(--s3); font-size: 14px; font-weight: 500; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blau-hell); color: var(--blau-dunkel); display: grid; place-items: center; font-weight: 600; font-size: 13px; border: 1px solid var(--blau-rand); }

.navi { background: var(--weiss); border-right: 1px solid var(--linie); padding: var(--s4) var(--s3); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.navi a {
  display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3); border-radius: var(--radius-s); color: var(--text-2); font-size: .94em; font-weight: 500;
  transition: background var(--dauer), color var(--dauer); position: relative;
}
.navi a:hover { background: var(--flaeche-2); color: var(--text); text-decoration: none; }
.navi a.an { background: var(--blau-hell); color: var(--blau-dunkel); font-weight: 600; }
.navi a.an::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blau); }
.navi a svg { flex: 0 0 20px; }
.navi .zaehler { margin-left: auto; background: var(--rot); color: #fff; border-radius: 10px; font-size: 12px; min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.navi .trenner { height: 1px; background: var(--linie); margin: var(--s3) var(--s2); }
.navi .neu-knopf { margin: 0 0 var(--s4); justify-content: center; }
.navi-fuss { margin-top: auto; padding: var(--s4) var(--s3) var(--s2); font-size: 12.5px; color: var(--text-3); line-height: 1.5; border-top: 1px solid var(--linie-2); }
.navi-fuss strong { color: var(--text-2); font-weight: 500; word-break: break-all; }

.inhalt { overflow-y: auto; padding: var(--s6) var(--s6) var(--s7); scroll-behavior: smooth; }
.seite { max-width: 1280px; margin: 0 auto; animation: einblenden 220ms var(--kurve); }
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } }
.seiten-kopf { display: flex; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.seiten-kopf .leise { max-width: 70ch; }
.seiten-kopf .aktionen { margin-left: auto; display: flex; gap: var(--s3); flex-wrap: wrap; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--hoehe); padding: 0 var(--s4); border-radius: var(--radius-s);
  border: 1px solid var(--linie); background: var(--weiss); color: var(--text); font-weight: 500; white-space: nowrap; font-size: .95em;
  transition: background var(--dauer), border-color var(--dauer), box-shadow var(--dauer), transform 80ms; box-shadow: var(--schatten-1);
}
.knopf:hover { border-color: #cbd5e1; background: var(--flaeche); text-decoration: none; }
.knopf:active { transform: scale(.98); }
.knopf.primaer { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf.primaer:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
.knopf.gruen { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.knopf.gruen:hover { filter: brightness(.93); }
.knopf.gross { min-height: 48px; padding: 0 var(--s5); font-size: 1em; font-weight: 600; }
.knopf.klein { min-height: 36px; padding: 0 var(--s3); font-size: .88em; }
.knopf.text { border-color: transparent; background: none; color: var(--blau); box-shadow: none; }
.knopf:disabled, .knopf[aria-busy="true"] { opacity: .5; cursor: not-allowed; }
.knopf[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: dreh .8s linear infinite; }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten-1); padding: var(--s5); }
.karte + .karte { margin-top: var(--s4); }
.karte-kopf { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.karte-kopf h2 { margin: 0; }
.karte-kopf .rechts { margin-left: auto; }
.raster { display: grid; gap: var(--s4); }
.raster.zwei { grid-template-columns: 1fr 1fr; }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
.raster.vier { grid-template-columns: repeat(4, 1fr); }
.raster.haupt { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.raster > .karte + .karte { margin-top: 0; }

.kennzahl .label { color: var(--text-2); font-size: .88em; font-weight: 500; display: flex; align-items: center; gap: var(--s2); }
.kennzahl .wert { font-size: 1.85em; font-weight: 600; margin: var(--s1) 0 2px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kennzahl .neben { font-size: .84em; color: var(--text-3); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: .82em; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.trend.hoch { color: var(--gruen); background: var(--gruen-hell); }
.trend.runter { color: var(--rot); background: var(--rot-hell); }
.plus { color: var(--gruen); }
.minus { color: var(--rot); }

.pille { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px 2px 8px; font-size: .8em; font-weight: 600; white-space: nowrap; border: 1px solid transparent; line-height: 1.6; }
.pille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
.pille.gruen { background: var(--gruen-hell); color: var(--gruen); border-color: var(--gruen-rand); }
.pille.gelb { background: var(--gelb-hell); color: var(--gelb); border-color: var(--gelb-rand); }
.pille.rot { background: var(--rot-hell); color: var(--rot); border-color: var(--rot-rand); }
.pille.blau { background: var(--blau-hell); color: var(--blau-dunkel); border-color: var(--blau-rand); }
.pille.grau { background: var(--flaeche-2); color: var(--text-2); border-color: var(--linie); }
.punkt { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: 0 0 10px; vertical-align: -1px; }

.reiter { display: flex; gap: var(--s1); border-bottom: 1px solid var(--linie); overflow-x: auto; scrollbar-width: none; }
.reiter button { border: 0; background: none; min-height: 46px; padding: 0 var(--s3); color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; white-space: nowrap; transition: color var(--dauer), border-color var(--dauer); }
.reiter button:hover { color: var(--text); }
.reiter button.an { color: var(--blau-dunkel); border-bottom-color: var(--blau); font-weight: 600; }
.reiter .anz { background: var(--flaeche-2); border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 6px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.reiter button.an .anz { background: var(--blau-hell); color: var(--blau-dunkel); }

.tabelle-huelle { overflow-x: auto; }
table.liste { width: 100%; border-collapse: collapse; }
.liste th { position: sticky; top: 0; text-align: left; font-weight: 600; font-size: .76em; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--linie); background: var(--flaeche); white-space: nowrap; }
.liste td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--linie-2); vertical-align: middle; }
.liste tbody tr:last-child td { border-bottom: 0; }
.liste tr.klickbar { cursor: pointer; transition: background var(--dauer); }
.liste tr.klickbar:hover td, .liste tr.klickbar:focus-visible td { background: var(--flaeche); }
.liste tr.klickbar:focus-visible { outline: 2px solid var(--blau); outline-offset: -2px; }
.liste tr.markiert td:first-child { box-shadow: inset 3px 0 0 var(--gelb); }
.liste .unter { display: block; font-size: .85em; color: var(--text-3); margin-top: 1px; }
.tabelle-karte { padding: 0; overflow: hidden; }
.tabelle-karte .karte-kopf { padding: var(--s4) var(--s5) 0; }
.tabelle-karte > .reiter-zeile { padding: 0 var(--s5); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

.aufgabe { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--linie-2); }
.aufgabe:first-of-type { padding-top: var(--s1); }
.aufgabe:last-child { border-bottom: 0; padding-bottom: 0; }
.aufgabe .symbol { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 44px; }
.aufgabe .symbol.blau { background: var(--blau-hell); color: var(--blau); }
.aufgabe .symbol.gelb { background: var(--gelb-hell); color: var(--gelb); }
.aufgabe .symbol.gruen { background: var(--gruen-hell); color: var(--gruen); }
.aufgabe .titel { font-weight: 600; }
.aufgabe .knopf { margin-left: auto; flex: 0 0 auto; }
.erledigt-alles { text-align: center; padding: var(--s6) var(--s4) var(--s5); }
.erledigt-alles .haken { width: 64px; height: 64px; border-radius: 50%; background: var(--gruen-hell); color: var(--gruen); display: grid; place-items: center; margin: 0 auto var(--s3); }

.feed { list-style: none; padding: 0; margin: 0; position: relative; }
.feed li { display: flex; gap: var(--s3); padding: var(--s2) 0; font-size: .93em; color: var(--text-2); }
.feed .zeit { color: var(--text-3); width: 52px; flex: 0 0 52px; font-size: .9em; padding-top: 1px; font-variant-numeric: tabular-nums; }
.ki-zeichen { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--blau-hell); color: var(--blau); border: 1px solid var(--blau-rand); font-size: 10.5px; font-weight: 700; flex: 0 0 22px; letter-spacing: .02em; }

.hinweis { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--radius-s); background: var(--blau-hell); border: 1px solid var(--blau-rand); color: var(--text); font-size: .93em; }
.hinweis > svg, .hinweis > .ki-zeichen { flex: 0 0 auto; color: var(--blau); margin-top: 1px; }
.hinweis.gelb { background: var(--gelb-hell); border-color: var(--gelb-rand); }
.hinweis.gelb > svg { color: var(--gelb); }
.hinweis.gruen { background: var(--gruen-hell); border-color: var(--gruen-rand); }
.hinweis.gruen > svg { color: var(--gruen); }
.hinweis.rot { background: var(--rot-hell); border-color: var(--rot-rand); color: var(--rot); }
.hinweis + .hinweis { margin-top: var(--s3); }

.mailbox { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); box-shadow: var(--schatten-1); }
.mailbox > svg { color: var(--blau); flex: 0 0 auto; }
.mailbox code { font-family: inherit; font-weight: 600; font-size: 1.02em; color: var(--blau-dunkel); word-break: break-all; }
.kopieren { border: 1px solid var(--linie); background: var(--weiss); border-radius: var(--radius-s); min-height: 36px; padding: 0 var(--s3); font-size: .85em; margin-left: auto; flex: 0 0 auto; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; border: 2px dashed var(--blau-rand); border-radius: var(--radius); padding: var(--s4); text-align: center; color: var(--text-2); background: var(--blau-hell); transition: border-color var(--dauer), background var(--dauer); cursor: pointer; min-height: 100%; }
.drop:hover, .drop.ueber { border-color: var(--blau); }
.drop strong { color: var(--text); }
.drop svg { color: var(--blau); }

.schublade-hg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: var(--z-schublade); animation: ein var(--dauer) ease-out; }
.schublade { position: fixed; top: 0; right: 0; bottom: 0; width: min(1100px, 100vw); background: var(--flaeche); z-index: calc(var(--z-schublade) + 1); display: flex; flex-direction: column; box-shadow: var(--schatten-3); animation: rein 240ms var(--kurve); }
.schublade-kopf { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s5); background: var(--weiss); border-bottom: 1px solid var(--linie); min-height: 64px; }
.schublade-kopf h2 { margin: 0; }
.schublade-kopf .x { margin-left: auto; border: 0; background: none; width: 44px; height: 44px; border-radius: var(--radius-s); color: var(--text-2); display: grid; place-items: center; }
.schublade-kopf .x:hover { background: var(--flaeche-2); color: var(--text); }
.schublade-koerper { flex: 1; overflow-y: auto; padding: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.schublade-koerper.eins { grid-template-columns: minmax(0, 720px); justify-content: center; }
.schublade-fuss { display: flex; gap: var(--s3); padding: var(--s3) var(--s5); background: var(--weiss); border-top: 1px solid var(--linie); align-items: center; flex-wrap: wrap; }
.schublade-fuss .rechts { margin-left: auto; display: flex; gap: var(--s3); flex-wrap: wrap; }
@keyframes ein { from { opacity: 0; } }
@keyframes rein { from { transform: translateX(32px); opacity: .3; } }

.papier { background: var(--papier); color: #1f2937; border: 1px solid var(--linie); border-radius: 4px; box-shadow: var(--schatten-2); padding: 32px 34px; font-size: 13px; min-height: 520px; font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
.papier .p-kopf { display: flex; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.papier .p-firma { font-weight: 700; font-size: 17px; }
.papier .p-grau { color: #6b7280; }
.papier table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.papier td, .papier th { padding: 6px 4px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.papier .summe td { border: 0; padding: 3px 4px; }
.papier .bon { max-width: 300px; margin: 0 auto; font-family: "Courier New", monospace; }
.vorschau-datei { width: 100%; min-height: 640px; border: 1px solid var(--linie); border-radius: 4px; background: #fff; }
.vorschau-bild { width: 100%; border: 1px solid var(--linie); border-radius: 4px; background: #fff; }

.felder { display: grid; grid-template-columns: 150px 1fr; gap: var(--s3) var(--s4); align-items: center; }
.felder label, .felder .feld-name { color: var(--text-2); font-size: .9em; }
.felder input, .felder select, .eingabe { min-height: var(--hoehe); border: 1px solid var(--linie); border-radius: var(--radius-s); padding: 0 var(--s3); font: inherit; background: var(--weiss); color: var(--text); width: 100%; transition: border-color var(--dauer), box-shadow var(--dauer); }
.felder select:focus, .felder input:focus { border-color: var(--blau); box-shadow: var(--fokus); outline: none; }
.felder .wert { font-weight: 500; }
.ki-box { border: 1px solid var(--blau-rand); background: var(--weiss); border-radius: var(--radius); padding: var(--s4) var(--s5); box-shadow: var(--schatten-1); border-left: 3px solid var(--blau); }
.ki-box .kopfzeile { display: flex; align-items: center; gap: var(--s2); font-weight: 600; margin-bottom: var(--s2); }
.wahl { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.wahl button { border: 1px solid var(--linie); background: var(--weiss); border-radius: 999px; min-height: 44px; padding: 0 var(--s4); font-weight: 500; transition: border-color var(--dauer), background var(--dauer); }
.wahl button:hover { border-color: var(--blau); }
.wahl button.an { border-color: var(--blau); background: var(--blau-hell); color: var(--blau-dunkel); font-weight: 600; }
.buchungssatz { font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; background: var(--flaeche); border: 1px solid var(--linie-2); border-radius: var(--radius-s); padding: var(--s3); line-height: 1.75; overflow-x: auto; }

.verlauf { display: flex; flex-direction: column; gap: var(--s3); }
.schritt { display: flex; align-items: center; gap: var(--s3); font-size: .95em; color: var(--text-3); transition: color var(--dauer); }
.schritt .kreis { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linie); display: grid; place-items: center; flex: 0 0 24px; font-size: 12px; font-weight: 700; }
.schritt.laeuft { color: var(--text); font-weight: 500; }
.schritt.laeuft .kreis { border-color: var(--blau); border-top-color: transparent; animation: dreh .8s linear infinite; }
.schritt.fertig { color: var(--text); }
.schritt.fertig .kreis { border-color: var(--gruen); background: var(--gruen); color: #fff; }
.schritt.fehler .kreis { border-color: var(--rot); background: var(--rot); color: #fff; }
@keyframes dreh { to { transform: rotate(360deg); } }

.plan { overflow-x: auto; margin: 0 calc(var(--s5) * -1); padding: 0 var(--s5); }
.plan-raster { display: grid; min-width: 900px; border: 1px solid var(--linie); border-radius: var(--radius-s); overflow: hidden; }
.plan-zelle { height: 52px; border-bottom: 1px solid var(--linie-2); position: relative; background-image: linear-gradient(to right, var(--linie-2) 1px, transparent 1px); background-size: calc(100% / 42) 100%; }
.plan-raster > .plan-zelle:last-child, .plan-raster > .plan-name:nth-last-child(2) { border-bottom: 0; }
.plan-tag { font-size: 11px; color: var(--text-3); text-align: center; padding: 6px 0; border-bottom: 1px solid var(--linie); background: var(--flaeche); line-height: 1.3; font-variant-numeric: tabular-nums; }
.plan-tag.we { color: var(--text-2); font-weight: 600; }
.plan-tag.heute { color: var(--blau); font-weight: 700; background: var(--blau-hell); }
.plan-name { padding: 0 var(--s3); display: flex; align-items: center; gap: var(--s2); font-weight: 600; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie-2); font-size: .9em; background: var(--weiss); }
.balken { position: absolute; top: 8px; height: 36px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 500; padding: 0 var(--s2); display: flex; align-items: center; overflow: hidden; white-space: nowrap; cursor: pointer; z-index: 2; transition: filter var(--dauer), transform var(--dauer); }
.balken:hover, .balken:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.balken.eigen { background: repeating-linear-gradient(45deg, #94a3b8, #94a3b8 6px, #a5b2c3 6px, #a5b2c3 12px) !important; cursor: default; }
.heute-linie { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--blau); z-index: 3; }

.diagramm { display: grid; grid-template-columns: 48px 1fr; gap: var(--s2); }
.achse { display: flex; flex-direction: column; justify-content: space-between; height: 200px; font-size: 11px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; padding-bottom: 22px; }
.balkendiagramm { display: flex; align-items: flex-end; gap: var(--s2); height: 200px; position: relative; background-image: linear-gradient(to top, var(--linie-2) 1px, transparent 1px); background-size: 100% calc((100% - 22px) / 4); background-repeat: repeat-y; }
.balkendiagramm .spalte { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; position: relative; border-radius: 4px; }
.balkendiagramm .spalte:focus-visible { outline-offset: 0; }
.balkendiagramm .paar { display: flex; gap: 3px; align-items: flex-end; height: calc(100% - 22px); width: 100%; justify-content: center; }
.balkendiagramm .b { width: 42%; max-width: 22px; border-radius: 3px 3px 0 0; transition: opacity var(--dauer); }
.balkendiagramm .b.ein { background: var(--blau); }
.balkendiagramm .b.aus { background: #f59e0b; }
.balkendiagramm .b.zukunft { opacity: .35; background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,.5) 3px, rgba(255,255,255,.5) 5px); }
.balkendiagramm .m { font-size: 11.5px; color: var(--text-3); height: 16px; }
.balkendiagramm:hover .spalte:not(:hover) .b { opacity: .45; }
.tip { position: absolute; bottom: calc(100% - 14px); left: 50%; transform: translate(-50%, 4px); background: var(--text); color: var(--weiss); font-size: 12px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 120ms, transform 120ms; z-index: 4; line-height: 1.5; }
.spalte:hover .tip, .spalte:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.legende { display: flex; gap: var(--s4); font-size: .85em; color: var(--text-2); flex-wrap: wrap; }
.legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }

.balken-h { display: grid; grid-template-columns: 130px 1fr 96px; align-items: center; gap: var(--s3); margin: var(--s3) 0; font-size: .93em; }
.balken-h .spur { height: 10px; background: var(--flaeche-2); border-radius: 5px; overflow: hidden; }
.balken-h .spur i { display: block; height: 100%; border-radius: 5px; }
.balken-h .v { text-align: right; font-weight: 500; }

.fortschritt { height: 8px; background: var(--flaeche-2); border-radius: 4px; overflow: hidden; }
.fortschritt i { display: block; height: 100%; background: var(--gruen); border-radius: 4px; transition: width 400ms var(--kurve); }
.check { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--linie-2); align-items: flex-start; }
.check:last-child { border-bottom: 0; }
.check .status { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 28px; }
.check .status.ok { background: var(--gruen-hell); color: var(--gruen); border: 1px solid var(--gruen-rand); }
.check .status.offen { background: var(--gelb-hell); color: var(--gelb); border: 1px solid var(--gelb-rand); }
.check .status.warten { background: var(--flaeche-2); color: var(--text-3); border: 1px solid var(--linie); }
.check .rechts { margin-left: auto; align-self: center; }

.formular-zeile { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s2) 0; border-bottom: 1px solid var(--linie-2); gap: var(--s3); }
.formular-zeile:last-child { border: 0; }
.formular-zeile .kz { display: inline-block; min-width: 38px; font-size: .74em; font-weight: 700; color: var(--blau-dunkel); background: var(--blau-hell); border: 1px solid var(--blau-rand); border-radius: 4px; padding: 0 5px; margin-right: var(--s2); text-align: center; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.formular-zeile.summe { font-weight: 700; border-top: 2px solid var(--text); border-bottom: 0; margin-top: var(--s1); padding-top: var(--s3); }

.schalter { position: relative; width: 48px; height: 28px; flex: 0 0 48px; margin-top: 2px; }
.schalter input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.schalter input:disabled { cursor: not-allowed; }
.schalter span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 14px; transition: background var(--dauer); }
.schalter span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform var(--dauer) var(--kurve); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.schalter input:checked + span { background: var(--gruen); }
.schalter input:checked + span::after { transform: translateX(20px); }
.schalter input:focus-visible + span { box-shadow: var(--fokus); }
.schalter input:disabled + span { opacity: .5; }
.auto-zeile { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s3) 0; border-bottom: 1px solid var(--linie-2); }
.auto-zeile:last-child { border: 0; }
.auto-zeile .text { flex: 1; }
.auto-zeile .bald { margin-left: var(--s2); }

.frage-feld { display: flex; gap: var(--s2); }
.frage-feld input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--linie); border-radius: var(--radius-s); padding: 0 var(--s4); font: inherit; background: var(--weiss); color: var(--text); transition: border-color var(--dauer), box-shadow var(--dauer); }
.frage-feld input:focus { border-color: var(--blau); box-shadow: var(--fokus); outline: none; }
.antwort { margin-top: var(--s4); padding: var(--s4); background: var(--flaeche); border-radius: var(--radius-s); border: 1px solid var(--linie); white-space: pre-wrap; animation: einblenden 200ms var(--kurve); }
.antwort.laedt { color: var(--text-3); }
.antwort .zeile { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--linie-2), var(--linie), var(--linie-2)); background-size: 200% 100%; animation: schimmer 1.2s linear infinite; margin-top: var(--s2); }
@keyframes schimmer { to { background-position: -200% 0; } }
.vorschlaege { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.vorschlaege button { border: 1px solid var(--linie); background: var(--weiss); border-radius: 999px; min-height: 36px; padding: 0 var(--s3); font-size: .86em; color: var(--text-2); transition: border-color var(--dauer), color var(--dauer); }
.vorschlaege button:hover { border-color: var(--blau); color: var(--blau); }

.toast { position: fixed; bottom: var(--s5); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--weiss); padding: var(--s3) var(--s4); border-radius: var(--radius); z-index: var(--z-toast); display: flex; gap: var(--s3); align-items: center; box-shadow: var(--schatten-3); animation: hoch 220ms var(--kurve); max-width: calc(100vw - 32px); }
.toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; margin-left: var(--s2); }
@keyframes hoch { from { transform: translate(-50%, 12px); opacity: 0; } }

.nur-fach { display: none !important; }
body.fach .nur-fach { display: revert !important; }
body.fach .nur-einfach { display: none !important; }
td.nur-fach, th.nur-fach { display: none; }
body.fach td.nur-fach, body.fach th.nur-fach { display: table-cell !important; }

.mobil-menue { display: none; }
.unten-navi { display: none; }

@media (max-width: 1180px) {
  .raster.vier { grid-template-columns: repeat(2, 1fr); }
  .raster.haupt, .raster.zwei, .raster.drei { grid-template-columns: 1fr; }
  .schublade-koerper { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 56px 1fr 64px; }
  .kopf { grid-column: 1; padding: 0 var(--s3); gap: var(--s2); }
  .marke { width: auto; padding-left: 0; font-size: 16px; }
  .marke small, .suche, .firma-knopf span { display: none; }
  .mobil-menue { display: grid; place-items: center; border: 0; background: none; width: 44px; height: 44px; border-radius: var(--radius-s); }
  .navi { position: fixed; top: 56px; bottom: 64px; left: 0; width: 280px; z-index: var(--z-navi); transform: translateX(-100%); transition: transform 240ms var(--kurve); box-shadow: none; }
  body.menue-offen .navi { transform: none; box-shadow: var(--schatten-3); }
  .inhalt { padding: var(--s5) var(--s4) var(--s6); }
  h1 { font-size: 1.45em; }
  .raster.vier { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .karte { padding: var(--s4); }
  .liste .weg-mobil { display: none; }
  .liste th, .liste td { padding: var(--s3); }
  .felder { grid-template-columns: 1fr; gap: 2px var(--s2); }
  .felder > .wert, .felder > select, .felder > div { margin-bottom: var(--s2); }
  .aufgabe { flex-wrap: wrap; gap: var(--s3); }
  .aufgabe .knopf { margin-left: 56px; }
  .schublade-koerper { padding: var(--s4); }
  .schublade-fuss { padding: var(--s3) var(--s4); padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); }
  .schublade-fuss .rechts { width: 100%; }
  .schublade-fuss .rechts .knopf { flex: 1; }
  .modus button { padding: 0 10px; font-size: 13px; }
  .firma-knopf { display: none; }
  .balken-h { grid-template-columns: 100px 1fr 80px; }
  .unten-navi { display: flex; grid-row: 3; background: var(--weiss); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); z-index: var(--z-kopf); }
  .unten-navi a, .unten-navi button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; color: var(--text-2); border: 0; background: none; min-height: 56px; position: relative; font-weight: 500; }
  .unten-navi a:hover { text-decoration: none; }
  .unten-navi .an { color: var(--blau); font-weight: 600; }
  .unten-navi .zaehler { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--rot); color: #fff; border-radius: 9px; font-size: 10.5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; font-weight: 700; }
  .papier { padding: 20px; min-height: 0; }
  .vorschau-datei { min-height: 420px; }
}
@media (max-width: 420px) {
  .raster.vier { grid-template-columns: 1fr; }
  .kennzahl .wert { font-size: 1.6em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
h1[tabindex="-1"]:focus, main:focus { outline: none; }
.marke > span:last-child { white-space: nowrap; }
.raster > *, .schublade-koerper > * { min-width: 0; }
@media (max-width: 860px) {
  .aufgabe { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; column-gap: var(--s3); row-gap: var(--s3); }
  .aufgabe .knopf { grid-column: 2; margin-left: 0; justify-self: start; }
  .mailbox { flex-wrap: wrap; padding: var(--s4); }
  .mailbox > div { flex: 1 1 200px; min-width: 0; }
  .mailbox .kopieren { margin-left: 0; }
  .seiten-kopf .aktionen { margin-left: 0; width: 100%; }
  .seiten-kopf .aktionen .knopf { flex: 1 1 auto; }
  .karte-kopf .rechts.sehr-leise { margin-left: 0; width: 100%; }
}
.tip { display: none; }
.spalte:hover .tip, .spalte:focus-visible .tip { display: block; }
.spalte:first-child .tip, .spalte:nth-child(2) .tip { left: 0; transform: none; }
.spalte:last-child .tip, .spalte:nth-last-child(2) .tip { left: auto; right: 0; transform: none; }
.balkendiagramm .spalte { min-width: 0; }
@media (max-width: 860px) {
  .diagramm { grid-template-columns: 36px minmax(0, 1fr); gap: var(--s1); }
  .balkendiagramm { gap: 2px; }
  .balkendiagramm .b { width: 40%; }
  .balkendiagramm .m { font-size: 10px; }
}
.formular-zeile > :last-child { text-align: right; }
@media (max-width: 860px) {
  .formular-zeile .zahl { white-space: normal; }
  .formular-zeile > :first-child { min-width: 0; }
}
