/* Schriften wie auf onyva.de, lokal ausgeliefert (keine fremden Server): Poppins und Bricolage Grotesque, beide SIL Open Font License 1.1. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(/ui/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(/ui/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600 700; font-display: swap; src: url(/ui/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500 700; font-display: swap; src: url(/ui/bricolage.woff2) format('woff2'); }
:root {
  --bg: #FAF8F4; --karte: #FFFFFF; --text: #2B2A2B; --blass: #6E6A63; --linie: #E4DED4;
  --akzent: #2B2A2B; --neon: #0DEFFD; --petrol: #2F7C83; --gruen: #16A34A; --rot: #DC2626; --gelb: #D97706; --blau: #2F7C83;
  --radius: 12px;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #7FD9E3; outline-offset: 2px; }

/* ----- Kopf ----- */
header { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--karte); border-bottom: 1px solid var(--linie); }
header h1 { display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-size: 19px; margin: 0; font-weight: 600; }
header h1 img { height: 26px; width: auto; display: block; }
header h1 .trenner { width: 1px; height: 22px; background: var(--linie); }
h2, h3, .karte h2 { font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; }
header .hinweis { color: var(--blass); font-size: 12.5px; }
.platz { flex: 1; }
.pille { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: #F2EEE6; font-size: 12.5px; color: var(--blass); }
.pille i { width: 9px; height: 9px; border-radius: 50%; background: #A8A196; display: inline-block; }
.pille.live { color: #166534; background: #DCFCE7; } .pille.live i { background: var(--gruen); animation: puls 2s infinite; }
.pille.aus { color: #991B1B; background: #FEE2E2; } .pille.aus i { background: var(--rot); }
.pille.replay { color: #92400E; background: #FEF3C7; } .pille.replay i { background: var(--gelb); }
.pille.demo { color: #2B2A2B; background: #E9E0CF; } .pille.demo i { background: var(--akzent); }
#uhr { color: var(--blass); font-variant-numeric: tabular-nums; font-size: 13px; }
/* ----- Knöpfe: ein System ----- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--linie); background: #fff; border-radius: 9px; padding: 8px 14px; color: var(--text);
  font-weight: 600; line-height: 1.1; transition: background .15s, border-color .15s, box-shadow .15s; }
.knopf svg { width: 15px; height: 15px; flex: none; }
.knopf:hover { background: #F2EEE6; border-color: #D6CFC2; }
.knopf:active { transform: translateY(1px); }
.knopf.haupt, .knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; box-shadow: 0 1px 2px rgba(43, 42, 43, .35); }
.knopf.haupt:hover, .knopf.primaer:hover { background: #2B2A2B; border-color: #2B2A2B; }
.knopf.neben { background: #fff; color: #3A3836; }
.knopf.gefahr { background: #fff; border-color: #FCA5A5; color: #B91C1C; }
.knopf.gefahr:hover { background: #FEF2F2; border-color: var(--rot); }
.knopf.still { background: transparent; border-color: transparent; color: var(--blass); font-weight: 500; }
.knopf.still:hover { background: #F2EEE6; color: var(--text); }
.knopf.klein { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.knopf.klein svg { width: 13px; height: 13px; }
.knopf[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.knopf[disabled]:hover { background: inherit; }
.tagesbalken { display: inline-flex; flex-direction: column; gap: 3px; min-width: 120px; border: 0; background: none; padding: 2px 4px; text-align: left; color: var(--blass); font-size: 12px; border-radius: 6px; }
.tagesbalken:hover { background: #F2EEE6; }
.tagesbalken[hidden] { display: none; }
.tagesbalken .spur { height: 5px; }
.tagesbalken .spur i.warn { background: #F59E0B; } .tagesbalken .spur i.voll { background: var(--rot); }

/* ----- Hauptbereich ----- */
main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; padding: 16px; }
/* Ansichten Heute und Büro */
.ansichten { display: flex; gap: 4px; margin-left: 14px; }
.ansichten button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; color: var(--blass); font-weight: 500; }
.ansichten button:hover { background: #F2EEE6; color: var(--text); }
.ansichten button[aria-pressed=true] { background: #E9E0CF; color: var(--text); font-weight: 600; }
#heute { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
#heute[hidden], #buero[hidden], #team[hidden] { display: none; }
#team { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
#team .karte { padding: 16px 18px; } #team .karte h2 { font-size: 17px; color: var(--text); margin: 0 0 6px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 600; color: var(--blass); padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle .kontoname { font-weight: 600; margin-right: 8px; }
.chip.du { background: #E9E0CF; color: var(--text); }
.befehle { margin: 8px 0; display: grid; gap: 4px 0; }
.befehle dt { font-weight: 600; font-size: 13.5px; margin-top: 8px; }
.befehle dd { margin: 2px 0 0; } .befehle code { background: #F2EEE6; padding: 3px 7px; border-radius: 6px; font-size: 12.5px; }
#heute .karte { padding: 16px 18px; }
#heute .karte h2 { font-size: 17px; color: var(--text); margin: 0; }
.kartenkopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.kartenkopf .filter { margin: 0; }
.kartenreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kartenreihe .karte > h2 { margin-bottom: 10px; }
.faellig .abschnitt { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--blass); text-transform: uppercase; letter-spacing: .4px; }
.faelligzeile { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; border-left: 3px solid var(--linie); background: #FBF9F5; margin-bottom: 6px; }
.faelligzeile.dringend { border-left-color: var(--rot); }
.faelligzeile .titel { font-weight: 600; } .faelligzeile .meta { color: var(--blass); font-size: 12.5px; }
.faelligzeile .rechts { text-align: right; flex: none; max-width: 45%; } .faelligzeile .grund { font-size: 13px; }
.stand { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--blass); font-size: 12px; } .stand .warnung { color: var(--gelb); }
.kostenheute .grosszahl { font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-size: 30px; font-weight: 600; }
.kostenheute .meta { color: var(--blass); font-size: 12.5px; margin-bottom: 8px; }
.kostenheute .spur { height: 6px; }
.kostenheute .spur i.warn { background: #F59E0B; } .kostenheute .spur i.voll { background: var(--rot); }
#buero { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px; min-height: 0; display: flex; flex-direction: column; }
#buero .zeichnung { flex: 1; min-height: 0; }
#buero svg { width: 100%; height: 100%; display: block; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 10px 2px; color: var(--blass); font-size: 12.5px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende b { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 30; max-width: min(420px, 92vw); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 10px; font-weight: 600; box-shadow: 0 8px 24px rgba(15, 23, 42, .22); animation: rein .25s ease; }
.toast.info { background: #14532D; color: #fff; } .toast.fehler { background: #7F1D1D; color: #fff; }
.toast span { flex: 1; } .toastzu { border: 0; background: none; color: inherit; opacity: .7; font-size: 18px; line-height: 1; padding: 0 2px; }
.toastzu:hover { opacity: 1; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

aside { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; padding-right: 2px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px; }
.karte h2 { margin: 0 0 8px; font-size: 13px; text-transform: none; color: var(--blass); font-weight: 600; letter-spacing: .2px; }
.leer { color: var(--blass); font-size: 13px; }

.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); margin: -4px -4px 10px; padding: 0 4px; }
.reiter button { border: 0; background: none; padding: 7px 11px; color: var(--blass); border-bottom: 2px solid transparent; font-weight: 600; }
.reiter button[aria-selected="true"] { color: var(--akzent); border-bottom-color: var(--akzent); }
.tafel[hidden] { display: none; }

/* ----- Wartet auf dich ----- */
.warte { display: flex; flex-direction: column; gap: 8px; }
.eintrag { border: 1px solid var(--linie); border-left-width: 4px; border-radius: 9px; padding: 8px 10px; background: #fff; }
.eintrag.freigabe { border-left-color: #F59E0B; background: #FFFBEB; }
.eintrag.fehler { border-left-color: var(--rot); background: #FEF2F2; }
.eintrag .titel { font-weight: 600; }
.eintrag .meta { color: var(--blass); font-size: 12px; margin-top: 2px; }
.eintrag .aktionen { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
code.befehl { display: block; margin-top: 6px; padding: 5px 8px; border-radius: 6px; background: #F2EEE6; font: 12px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }

/* ----- Auftragsliste ----- */
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.liste li button { width: 100%; text-align: left; border: 1px solid var(--linie); border-radius: 9px; background: #fff; padding: 8px 10px; }
.liste li button:hover { background: #FBF9F5; }
.liste li button[aria-current="true"] { border-color: var(--akzent); box-shadow: 0 0 0 2px #D6CFC2; }
.liste .zeile { display: flex; align-items: center; gap: 8px; }
.liste .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .unter { color: var(--blass); font-size: 12px; margin-top: 2px; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #E4DED4; color: #3A3836; white-space: nowrap; }
.chip.neu { background: #DBEAFE; color: #1E40AF; } .chip.laeuft { background: #E9E0CF; color: #2B2A2B; }
.chip.wartet_auf_freigabe { background: #FEF3C7; color: #92400E; } .chip.fertig { background: #DCFCE7; color: #166534; }
.chip.fehler { background: #FEE2E2; color: #991B1B; } .chip.abgelehnt, .chip.abgebrochen { background: #F2EEE6; color: #6E6A63; }
.detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linie); }
.detail h3 { margin: 0 0 4px; font-size: 14px; }
.verlauf { list-style: none; margin: 8px 0; padding: 0 0 0 12px; border-left: 2px solid var(--linie); }
.verlauf li { position: relative; padding: 0 0 8px 10px; font-size: 12.5px; }
.verlauf li::before { content: ""; position: absolute; left: -17px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.verlauf .zeit { color: var(--blass); }
.tempo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--blass); }
select { font: inherit; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--linie); background: #fff; }

/* ----- Verbrauch ----- */
.balken { margin: 8px 0 12px; }
.balken .kopf { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.balken .kopf span:last-child { color: var(--blass); font-variant-numeric: tabular-nums; }
.spur { height: 10px; border-radius: 6px; background: #E4DED4; overflow: hidden; }
.spur i { display: block; height: 100%; background: var(--blau); border-radius: 6px; transition: width .6s; }
.spur i.warn { background: #F59E0B; } .spur i.voll { background: var(--rot); }
.hinweiszeile { color: var(--blass); font-size: 12px; margin-top: 4px; }
.alarmkarte { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; font-weight: 600; }

/* ----- Ticker ----- */
.ticker { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; font-size: 12.5px; }
.ticker li { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--linie); }
.ticker .zeit { color: var(--blass); font-variant-numeric: tabular-nums; flex: none; }
.ticker li.warn { color: #991B1B; }
.ticker li.system { color: var(--blass); }

/* ----- Dialog ----- */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(860px, 94vw); max-height: 88vh; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
.dialogkopf { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--linie); position: sticky; top: 0; background: #fff; }
.dialogkopf h2 { margin: 0; flex: 1; font-size: 16px; }
.dialoginhalt { padding: 6px 22px 22px; overflow: auto; max-height: calc(88vh - 60px); }
.dialoginhalt h2, .dialoginhalt h3, .dialoginhalt h4 { margin: 18px 0 6px; }
.dialoginhalt table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; display: block; overflow-x: auto; }
.dialoginhalt th, .dialoginhalt td { border: 1px solid var(--linie); padding: 5px 8px; vertical-align: top; text-align: left; }
.dialoginhalt th { background: #FBF9F5; }
.dialoginhalt blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--linie); color: #4A4743; }
.dialoginhalt code { background: #F2EEE6; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.dialoginhalt pre { margin: 8px 0; padding: 10px 12px; background: #F2EEE6; border-radius: 8px; overflow-x: auto; font-size: 12.5px; line-height: 1.45; }
.dialoginhalt pre code { background: none; padding: 0; white-space: pre; }
.dialoginhalt hr { border: 0; border-top: 1px solid var(--linie); margin: 14px 0; }
.berichtliste { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 0; }

/* ----- Anmeldung ----- */
/* Anmeldung: links die Marke (Anthrazit mit Neon-Logo wie auf onyva.de), rechts das Formular. Schmal: Marke oben als Band. */
#anmeldung { position: fixed; inset: 0; background: var(--bg); display: none; z-index: 10; overflow: auto; }
#anmeldung.an { display: flex; }
#anmeldung .markenseite { flex: 1 1 0; background: #2B2A2B; color: #FFFFFF; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
#anmeldung .markenseite img { width: 190px; height: auto; display: block; }
#anmeldung .markenzeile { font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-size: 44px; font-weight: 600; margin: 0; letter-spacing: -.5px; }
#anmeldung .markenclaim { font-size: 19px; line-height: 1.45; margin: 8px 0 22px; max-width: 30ch; color: #E9E4DA; }
#anmeldung .markenseite ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #CFC9BE; font-size: 14.5px; }
#anmeldung .markenseite li { display: flex; gap: 10px; align-items: baseline; }
#anmeldung .markenseite li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); flex: none; transform: translateY(-2px); }
#anmeldung .markenfuss { margin: 0; color: #9A958B; font-size: 12.5px; }
#anmeldung .formseite { flex: 1 1 0; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
#anmeldung form { width: min(380px, 100%); display: flex; flex-direction: column; }
#anmeldung h2 { margin: 0 0 6px; font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-size: 30px; font-weight: 600; }
#anmeldung #anmeldehinweis { color: var(--blass); margin: 0 0 18px; }
#anmeldung .feldname { display: block; font-weight: 600; font-size: 13.5px; margin: 12px 0 5px; }
#anmeldung input[type=password], #anmeldung input[type=text] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #D6CFC2; border-radius: 10px; font: inherit; background: #fff; }
#anmeldung input:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
#anmeldung .feldhilfe { color: var(--blass); font-size: 12.5px; margin: 10px 0 0; }
#anmeldung .fehler { color: var(--rot); min-height: 20px; margin: 10px 0 4px; font-size: 13px; }
#anmeldung .knopf.gross { min-height: 48px; font-size: 15px; }
#anmeldung #demo { margin-top: 10px; }
#anmeldung label.merken { display: flex; gap: 6px; align-items: center; margin-top: 10px; color: var(--blass); font-size: 13px; }
@media (max-width: 860px) {
  #anmeldung.an { flex-direction: column; }
  #anmeldung .markenseite { flex: none; padding: 22px 20px; gap: 12px; }
  #anmeldung .markenseite img { width: 130px; }
  #anmeldung .markenzeile { font-size: 26px; } #anmeldung .markenclaim { font-size: 15px; margin-bottom: 0; }
  #anmeldung .markenseite ul, #anmeldung .markenfuss { display: none; }
  #anmeldung .formseite { align-items: flex-start; padding: 24px 16px 40px; }
}

/* ----- Büro (SVG) ----- */
/* Vorderansicht: drei Stockwerke, Figuren am Schreibtisch. Bewegung nur über CSS, abgeschaltet bei "weniger Bewegung". */
.raumschild { fill: #2B2A2B; font-size: 12px; font-weight: 600; }
.raumhinweis { fill: #6E6A63; font-size: 12px; }
.flurtext { fill: #9A968C; font-size: 11px; letter-spacing: 2px; }
.schildtext { fill: #2B2A2B; font-size: 11px; font-weight: 600; }
.blasentext { fill: #fff; font-size: 10.5px; font-weight: 600; }
.badgezahl { fill: #fff; font-size: 11px; font-weight: 700; }
.vitrinentext { fill: #0F7A5F; font-size: 12px; font-weight: 500; }
.figur .oben { animation: atmen 3.6s ease-in-out infinite; }
.figur .kopfgr, .figur .auge, .figur .hand, .figur .dampf, .pflanzenkrone, .zeiger { transform-box: fill-box; }
.figur .kopfgr { transform-origin: 50% 80%; }
.figur .auge { transform-origin: center; animation: blinzeln 4.8s infinite; }
.figur.ruhe .kopfgr { animation: umschauen 8s ease-in-out infinite; }
.figur.arbeitet .kopfgr { animation: nicken 1.8s ease-in-out infinite; }
.figur.fertig .kopfgr { animation: zufrieden 4.5s ease-in-out infinite; }
.figur.arbeitet .hand.l { animation: tastatur .3s ease-in-out infinite alternate; }
.figur.arbeitet .hand.r { animation: tastatur .3s ease-in-out infinite alternate-reverse; }
.figur.arbeitet .laptop { filter: drop-shadow(0 -3px 5px rgba(127, 224, 201, .95)); }
.figur .mund.ernst { display: none; } .figur.arbeitet .mund.froh { display: none; } .figur.arbeitet .mund.ernst { display: inline; }
.figur.ruhe .koerper { filter: saturate(.6); }
.figur.werkzeug .blase rect { animation: huepfen .5s ease 2; transform-box: fill-box; transform-origin: center; }
.figur .dampf { animation: dampf 2.6s infinite ease-out; }
.pflanzenkrone { transform-origin: 50% 100%; animation: wiegen 6s ease-in-out infinite; }
.zeiger { transform-origin: 50% 100%; }
.zeiger.minute { animation: drehen 600s linear infinite; } .zeiger.sekunde { animation: drehen 60s steps(60) infinite; }
.wolken { animation: wolken 40s linear infinite; }
.led { animation: blinken 1.6s steps(2) infinite; }
.lampe.an { filter: drop-shadow(0 8px 10px rgba(255, 214, 120, .9)); }
.raum.aktiv { stroke-width: 3; }
.schild { transition: opacity .3s; }
.schild.arbeitet .schildrahmen { stroke: var(--farbe); stroke-width: 2; }
.schild.gestoppt .schildrahmen { fill: #DC2626; stroke: #DC2626; } .schild.gestoppt .schildtext { fill: #fff; }
.blase { transition: opacity .25s; pointer-events: none; }
@keyframes atmen { 50% { transform: translateY(-1.4px); } }
@keyframes nicken { 50% { transform: rotate(-2.5deg) translateY(1px); } }
@keyframes umschauen { 0%, 35%, 100% { transform: rotate(0); } 45%, 58% { transform: rotate(7deg); } 68%, 80% { transform: rotate(-6deg); } }
@keyframes zufrieden { 50% { transform: rotate(2deg) translateY(-1.5px); } }
@keyframes blinzeln { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes tastatur { to { transform: translateY(-2.6px); } }
@keyframes dampf { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: .75; } 100% { transform: translateY(-14px) scaleX(1.6); opacity: 0; } }
@keyframes wiegen { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes wolken { from { transform: translateX(-120px); } to { transform: translateX(160px); } }
.glockenkoerper { transform-box: fill-box; transform-origin: 50% 20%; }
.glockenkoerper.laeutet { animation: laeuten 1.2s ease-in-out infinite; }
.alarm.blinkt { animation: blinken 1s steps(2) infinite; }
.papier { filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .25)); }

@keyframes puls { 50% { opacity: .35; } }
@keyframes wippen { 50% { transform: translateY(-2px); } }
@keyframes tippen { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes huepfen { 50% { transform: scale(1.35); } }
@keyframes laeuten { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } }
@keyframes blinken { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 1100px) {
  body { height: auto; } html { height: auto; }
  main { grid-template-columns: 1fr; }
  #buero { min-height: 480px; }
}

/* Bestätigung für Freigeben, Ablehnen, Weiter */
#bestaetigung { width: min(460px, 92vw); padding: 0; }
#bestaetigung form { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
#bestaetigung h2 { margin: 0; font-size: 18px; }
#bestaetigung p { margin: 0; color: #3A3836; }
#bestaetigung label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--blass); }
#bestaetigung label.merken { flex-direction: row; align-items: center; gap: 6px; }
#bestaetigung textarea, #bestaetigung input[type=password] { width: 100%; padding: 8px 10px; border: 1px solid #D6CFC2; border-radius: 8px; font: inherit; color: var(--text); }
#bestaetigung .fehler { color: var(--rot); min-height: 18px; font-size: 13px; }
#bestaetigung .reihe { display: flex; gap: 8px; }
.knopf.gefahr { border-color: var(--rot); color: var(--rot); } .knopf.gefahr:hover { background: #FEF2F2; }
#banner.info { background: #DCFCE7; color: #166534; }

/* ----- Wartet auf dich, In Arbeit ----- */
.eintrag .erklaerung { margin-top: 5px; font-size: 12.5px; color: #7F1D1D; }
.abschnitt { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--linie); color: var(--blass); font-size: 12px; font-weight: 600; }
.arbeitszeile { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.arbeitszeile:hover { background: #FBF9F5; }
.arbeitszeile .symbol { width: 14px; text-align: center; color: var(--blass); } .arbeitszeile .symbol.laeuft { color: var(--akzent); animation: puls 1.6s infinite; }
.arbeitszeile .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.arbeitszeile .meta { color: var(--blass); font-size: 12px; white-space: nowrap; }
.detail .aktionen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ----- Projekte ----- */
.fortschritt { height: 8px; border-radius: 6px; background: #E4DED4; overflow: hidden; margin: 8px 0 4px; }
.fortschritt i { display: block; height: 100%; background: var(--gruen); border-radius: 6px; transition: width .6s; }
.schritte { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.schritte li { display: flex; align-items: center; gap: 8px; }
.schritte .marke { width: 14px; text-align: center; color: #A8A196; } .schritte .marke.fertig { color: var(--gruen); font-weight: 700; } .schritte .marke.laeuft { color: var(--akzent); }
.schritte .name { flex: 1; }

/* ----- Ergebnisfenster: Kurzblock und Aktionsleiste ----- */
.kurzblock { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; padding: 10px 22px; background: #FBF9F5; border-bottom: 1px solid var(--linie); }
.kurzblock[hidden], .dialogfuss[hidden] { display: none; }
.kurzchip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #E4DED4; color: #3A3836; font-size: 12.5px; font-weight: 600; }
.kurzchip.gut { background: #DCFCE7; color: #166534; } .kurzchip.warn { background: #FEF3C7; color: #92400E; } .kurzchip.schlecht { background: #FEE2E2; color: #991B1B; }
.dateiliste { flex-basis: 100%; font-size: 12.5px; color: #4A4743; } .dateiliste summary { cursor: pointer; font-weight: 600; }
.dateiliste .datei { font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 1px 0; }
.dialogfuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--linie); background: #fff; position: sticky; bottom: 0; }
.dialogfuss .links, .dialogfuss .rechts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#dialog .dialoginhalt { max-height: calc(88vh - 190px); }

/* ----- Neuer Auftrag ----- */
#neu { width: min(660px, 94vw); }
.neuinhalt { padding: 14px 22px 8px; display: flex; flex-direction: column; gap: 12px; overflow: auto; max-height: calc(88vh - 150px); }
.zone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border: 2px dashed #D6CFC2; border-radius: 12px; background: #FBF9F5; color: var(--blass); cursor: pointer; text-align: center; }
.zone svg { width: 28px; height: 28px; color: var(--akzent); } .zone strong { color: var(--text); }
.zone:hover, .zone.ueber { border-color: var(--akzent); background: #F2EEE6; }
.neuliste { display: flex; flex-direction: column; gap: 8px; }
.neuzeile { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }
.neuzeile input { grid-column: 1; padding: 6px 9px; border: 1px solid #D6CFC2; border-radius: 7px; font: inherit; font-weight: 600; }
.neuzeile .meta { grid-column: 1; color: var(--blass); font-size: 12px; } .neuzeile .knopf { grid-column: 2; grid-row: 1 / span 2; }
.neuzeile .meldung { grid-column: 1 / span 2; font-size: 12.5px; font-weight: 600; } .neuzeile .meldung.gut, .neuzeile.angelegt { color: #166534; } .neuzeile .meldung.schlecht, .neuzeile.fehler { color: #991B1B; }
.neuzeile.angelegt { background: #F0FDF4; border-color: #BBF7D0; } .neuzeile.fehler { background: #FEF2F2; border-color: #FECACA; }
.feld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--blass); font-weight: 600; }
.feld textarea, .feld input[type=text], .feld input[type=password] { padding: 9px 11px; border: 1px solid #D6CFC2; border-radius: 8px; font: inherit; font-weight: 400; color: var(--text); resize: vertical; }
.feld .merken { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: 12.5px; }
.feld[hidden] { display: none; }
#neu .meta { color: var(--blass); font-size: 12.5px; margin: 0; } #neu .fehler { color: var(--rot); min-height: 18px; font-size: 13px; }
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.klickflaeche { cursor: pointer; fill: transparent; } .klickflaeche:hover, .klickflaeche:focus { fill: rgba(37, 99, 235, .09); outline: none; }
.klickhinweis { fill: #2F7C83; font-size: 12px; font-weight: 700; pointer-events: none; }

/* ----- Anklickbare Teile im Büro und Filter ----- */
.klickbar { cursor: pointer; outline: none; }
.klickbar:hover .rumpf, .klickbar:hover .schildrahmen, .klickbar:hover circle:first-child { filter: brightness(1.08) drop-shadow(0 0 3px rgba(43, 42, 43, .55)); }
.klickbar:focus-visible { filter: drop-shadow(0 0 4px #2F7C83); }
g.glocke.klickbar:hover { transform: scale(1.08); transform-box: fill-box; transform-origin: center; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filter button { border: 1px solid var(--linie); background: #fff; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: #4A4743; font-weight: 600; }
.filter button:hover { background: #F2EEE6; }
.filter button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.filter .anzahl { opacity: .75; margin-left: 4px; font-weight: 500; }
.rolleninfo { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.rolleninfo .ziel { color: #3A3836; }
.rolleninfo h4 { margin: 8px 0 2px; font-size: 13px; color: var(--blass); }
.rolleninfo ul { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.rolleninfo li { display: flex; gap: 8px; } .rolleninfo li .zeit { color: var(--blass); font-variant-numeric: tabular-nums; flex: none; }
.ticker li.klick { cursor: pointer; } .ticker li.klick:hover { background: #FBF9F5; }
.hervorgehoben { animation: aufblitzen 1.4s ease; }
@keyframes aufblitzen { 0% { box-shadow: 0 0 0 0 rgba(43, 42, 43, .0); } 20% { box-shadow: 0 0 0 5px rgba(43, 42, 43, .35); } 100% { box-shadow: 0 0 0 0 rgba(43, 42, 43, 0); } }
.sparkarte { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.sparkarte h4 { margin: 0; font-size: 14px; } .sparkarte p { margin: 0; } .sparkarte ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: #4A4743; }
.sparkarte .zeile { font-size: 13px; font-weight: 600; }
.antwortpanel { border-top: 1px solid var(--linie); background: #FBF9F5; padding: 12px 20px; max-height: 38vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.antwortpanel h3 { margin: 0; font-size: 14px; } .antwortpanel .frage { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #2B2A2B; }
.antwortpanel textarea { font: inherit; font-weight: 400; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 8px; resize: vertical; min-height: 40px; }
.antwortpanel .zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .antwortpanel select { font: inherit; padding: 5px 8px; border: 1px solid var(--linie); border-radius: 8px; }

/* Rollen-Dialog: ausführliche Beschreibung aus docs/Agenten-Beschreibung.md */
.rollenbeschreibung { background: #FBF9F5; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 14px; margin: 6px 0 12px; font-size: 13.5px; }
.rollenbeschreibung ul { margin: 0; padding-left: 18px; } .rollenbeschreibung li { margin: 4px 0; } .rollenbeschreibung p { margin: 6px 0; }
