/*! Stunden-App – © 2026 Andreas Wegner. Alle Rechte vorbehalten.
 *  Kopieren, Weitergeben, Verändern oder Nutzen nur mit schriftlicher Erlaubnis des Urhebers. */
/* Stunden – Wegner Tools
   Layout: feste blaue Kopfzeile mit Wochenwechsel, darunter ein Kärtchen pro Tag,
   unten eine feste Leiste mit Wochensumme und Senden. Für Daumenbedienung am iPhone. */
:root {
  --blau: #0067c0;
  --blau-dunkel: #00508f;
  --blau-hell: #e5f1fb;
  --akzent: #0067c0;
  --gelb: #ffc83d;
  --text: #1b2430;
  --leise: #5f6b7a;
  --flaeche: #f2f2f4;
  --karte: #ffffff;
  --linie: #e2e2e6;
  --rot: #c62828;
  --gruen: #1b7a34;
  --grau-feiertag: #f1f1f1;
  --feld-linie: #c9d2dc;
  --leise2: #8a95a3;
  --rot-hell: #ffe9e9;
  --gruen-hell: #d8f2dd;
  --kopf: var(--blau);
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 17px; line-height: 1.4; color: var(--text); background: var(--flaeche); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
[hidden] { display: none !important; }
.laden { padding: 40px 20px; text-align: center; color: var(--leise); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; background: var(--kopf); color: #fff; padding: calc(env(safe-area-inset-top) + 8px) 12px 10px; }
.kopf-oben { display: flex; align-items: center; gap: 10px; }
.kopf-oben .titel { font-weight: 700; font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf select { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 6px 8px; font-size: 15px; max-width: 48vw; }
.kopf select option { color: #000; }
.knopf-rund { background: rgba(255,255,255,.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; display: grid; place-items: center; flex: none; }
.woche { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.woche .mitte { flex: 1; text-align: center; }
.woche .mitte b { display: block; font-size: 17px; }
.woche .mitte span { font-size: 13.5px; color: #d6e8f8; }
.woche .knopf-rund { font-size: 24px; }
.status { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; min-height: 18px; }
.marke { background: rgba(255,255,255,.18); padding: 1px 8px; border-radius: 99px; }
.marke.ok { background: var(--gruen-hell); color: var(--gruen); }
.marke.fehler { background: var(--rot-hell); color: var(--rot); }
.link-hell { color: #fff; background: none; border: 0; text-decoration: underline; font-size: 13px; padding: 0; }

/* Tage */
main { padding: 12px 10px calc(env(safe-area-inset-bottom) + 96px); max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.tag { background: var(--karte); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); overflow: hidden; }
.tag.feiertag { background: var(--grau-feiertag); }
.tag-kopf { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 6px; }
.tag-kopf b { font-size: 16.5px; }
.tag-kopf .ft { font-size: 13px; color: var(--leise); flex: 1; }
.tag-kopf .summe { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.tag-kopf .summe.rot, .zeile .std.rot { color: var(--rot); }
.zeile { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--linie); padding: 10px 14px; }
.zeile:active { background: var(--blau-hell); }
.zeile .zeit { font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; line-height: 1.25; }
.zeile .zeit small { display: block; color: var(--leise2); }
.zeile .was { min-width: 0; }
.zeile .was b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .was span { display: block; font-size: 14px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .std { font-weight: 700; font-variant-numeric: tabular-nums; }
.tag-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 12px; border-top: 1px solid var(--linie); }
.tag.leer .tag-knoepfe { border-top: 0; padding-top: 2px; }
.klein-knopf { border: 1px solid var(--linie); background: var(--karte); border-radius: 99px; padding: 6px 12px; font-size: 14.5px; }
.klein-knopf.haupt { background: var(--blau); color: #fff; border-color: var(--blau); }
.tag.wochenende:not(.offen) .tag-knoepfe .neben { display: none; }

/* Fussleiste */
.fuss { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--karte); border-top: 1px solid var(--linie); padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px); display: flex; align-items: center; gap: 10px; }
.fuss .gesamt { flex: 1; }
.fuss .gesamt small { display: block; font-size: 12.5px; color: var(--leise); }
.fuss .gesamt b { font-size: 21px; font-variant-numeric: tabular-nums; }
.knopf { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 600; background: var(--blau-hell); color: var(--blau-dunkel); }
.knopf.haupt { background: var(--blau); color: #fff; }
.knopf.rot { background: var(--rot-hell); color: var(--rot); }
.knopf.voll { width: 100%; }
.knopf:disabled { opacity: .5; }
.knopf.rot.scharf { background: var(--rot); color: #fff; }
.weg.scharf { font-weight: 700; }
#app { min-height: 100%; }
.anmelden { min-height: 100vh; }

/* Blätter (Bottom-Sheets) */
#schicht { position: fixed; inset: 0; z-index: 20; background: rgba(10,25,45,.45); display: flex; align-items: flex-end; justify-content: center; }
.blatt { background: var(--karte); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 14px 16px calc(env(safe-area-inset-bottom) + 16px); -webkit-overflow-scrolling: touch; }
.blatt h2 { font-size: 19px; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.blatt h2 .zu { margin-left: auto; background: var(--flaeche); border: 0; border-radius: 99px; width: 32px; height: 32px; font-size: 18px; color: var(--leise); }
.blatt h3 { font-size: 16px; margin: 20px 0 8px; color: var(--blau-dunkel); }
.feld { display: grid; gap: 4px; margin-bottom: 12px; }
.feld label { font-size: 14px; color: var(--leise); }
.feld input, .feld textarea, .feld select { width: 100%; border: 1px solid var(--feld-linie); border-radius: 10px; padding: 11px 12px; background: var(--karte); font-size: 17px; }
.feld textarea { min-height: 70px; resize: vertical; }
.feld input:focus, .feld textarea:focus, .feld select:focus { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px var(--blau-hell); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--linie); background: var(--karte); border-radius: 99px; padding: 7px 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.chip.an { background: var(--blau); color: #fff; border-color: var(--blau); }
.vorschlaege { border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; max-height: 230px; overflow-y: auto; }
.vorschlaege button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--linie); background: var(--karte); padding: 10px 12px; font-size: 16px; }
.vorschlaege button:last-child { border-bottom: 0; }
.vorschlaege button:active { background: var(--blau-hell); }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; }
.reihe > * { flex: 1; }
.schalter { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 15.5px; }
.schalter input { width: 22px; height: 22px; }
.liste { border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.liste button, .liste .eintrag { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--linie); background: var(--karte); padding: 12px; font-size: 16px; }
.liste > :last-child { border-bottom: 0; }
.liste .rechts { margin-left: auto; color: var(--leise); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.liste .weg { margin-left: auto; border: 0; background: none; color: var(--rot); font-size: 14px; padding: 4px 8px; width: auto; }
.text-leise { color: var(--leise); font-size: 14.5px; }
.fehlertext { color: var(--rot); font-size: 15px; margin: 8px 0; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--flaeche); padding: 2px 6px; border-radius: 6px; }

/* Anmelden */
.anmelden { min-height: 100%; display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 20px) 16px 30px; background: var(--kopf); }
.anmelden .karte { background: var(--karte); border-radius: 18px; padding: 22px 18px; width: 100%; max-width: 420px; box-shadow: 0 16px 40px rgba(0,30,60,.3); }
.anmelden .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.anmelden .logo img { width: 44px; height: 44px; border-radius: 10px; }
.anmelden .logo b { font-size: 21px; display: block; }
.anmelden .logo span { font-size: 13.5px; color: var(--leise); }

#hinweis { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 86px); z-index: 30; background: #1b2430; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 15px; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

@media (prefers-reduced-motion: no-preference) {
  .blatt { animation: hoch .18s ease-out; }
  @keyframes hoch { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
  /* K27: leichtes Einsinken beim Tippen */
  .knopf, .klein-knopf, .chip, .knopf-rund, .knopf-marke, .liste button, .vorschlaege button,
  .wochenwahl button, .stepper .knopf, button.regie, .kachel, .ag-tab {
    transition: transform .06s ease-out, filter .12s ease-out;
  }
  .knopf:active, .klein-knopf:active, .chip:active, .knopf-rund:active, .knopf-marke:active,
  .liste button:active, .vorschlaege button:active, .wochenwahl button:active,
  .stepper .knopf:active, button.regie:active, .kachel:active, .ag-tab:active {
    transform: scale(.96);
  }
  .knopf:disabled:active { transform: none; }
}

/* Dunkler Modus: automatisch nach Handy-Einstellung oder fest in den Einstellungen */
html[data-thema="dunkel"] {
  --blau: #3d8fe0; --blau-dunkel: #9cc8f5; --blau-hell: #1d3550; --text: #e7ecf2; --leise: #a3afbd; --leise2: #7f8b99;
  --flaeche: #0f1419; --karte: #1a2129; --linie: #2c3540; --feld-linie: #3a4552; --rot: #ff7b72; --rot-hell: #3d1f1f;
  --gruen: #6fd08a; --gruen-hell: #173323; --grau-feiertag: #232b34; --kopf: #12324f; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-thema="hell"]) {
    --blau: #3d8fe0; --blau-dunkel: #9cc8f5; --blau-hell: #1d3550; --text: #e7ecf2; --leise: #a3afbd; --leise2: #7f8b99;
    --flaeche: #0f1419; --karte: #1a2129; --linie: #2c3540; --feld-linie: #3a4552; --rot: #ff7b72; --rot-hell: #3d1f1f;
    --gruen: #6fd08a; --gruen-hell: #173323; --grau-feiertag: #232b34; --kopf: #12324f; color-scheme: dark;
  }
}
/* Suche, Uebersicht, Offline */
.suchfeld { width: 100%; border: 1px solid var(--feld-linie); border-radius: 10px; padding: 11px 12px; background: var(--karte); font-size: 17px; }
.liste .zweizeilig { display: block; min-width: 0; flex: 1; }
.liste .zweizeilig b, .liste .zweizeilig span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .zweizeilig span { font-size: 14px; color: var(--leise); }
.punkt { width: 10px; height: 10px; border-radius: 99px; flex: none; background: var(--linie); }
.punkt.gruen { background: var(--gruen); } .punkt.gelb { background: var(--gelb); } .punkt.rot { background: var(--rot); }
.wochenwahl { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wochenwahl b { flex: 1; text-align: center; }
.wochenwahl button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--blau-hell); color: var(--blau-dunkel); font-size: 22px; }
.marke.offline { background: var(--gelb); color: #3a2b00; }
/* Spruch des Tages, Tippfehler-Hinweis, 1. April */
.spruch { display: flex; align-items: center; gap: 10px; background: var(--karte); border-radius: 14px; padding: 10px 12px 10px 14px; font-size: 15px; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.spruch span { flex: 1; }
.spruch button { border: 0; background: none; color: var(--leise); font-size: 16px; padding: 4px 6px; }
.spruch.geburtstag { background: var(--gelb); color: #3a2b00; font-weight: 600; }
.meintest { background: var(--blau-hell); border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
.meintest p { margin: 0 0 8px; }
.april .kopf-oben .titel { display: inline-block; transform: rotate(180deg); }
/* Einfuehrung */
.einfuehrung { text-align: center; padding: 4px 4px 2px; }
.einfuehrung .ef-bild { font-size: 54px; line-height: 1.1; margin: 4px 0 6px; }
.einfuehrung h3 { font-size: 20px; margin: 6px 0 8px; color: var(--text); }
.einfuehrung p { margin: 0 0 14px; color: var(--text); min-height: 4.2em; }
.ef-punkte { display: flex; justify-content: center; gap: 6px; margin: 4px 0 16px; }
.ef-punkte span { width: 8px; height: 8px; border-radius: 99px; background: var(--linie); }
.ef-punkte span.an { background: var(--blau); width: 20px; }
.tag-kopf .summe .soll { font-weight: 400; color: var(--leise); font-size: 13.5px; }
/* Am PC / Mac (breites Fenster): Fenster statt Handy-Blatt, Inhalte mittig */
@media (min-width: 820px) {
  #schicht { align-items: center; }
  .blatt { border-radius: 18px; max-height: 86vh; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
  .kopf { padding-left: max(12px, calc((100vw - 760px) / 2)); padding-right: max(12px, calc((100vw - 760px) / 2)); }
  .fuss { padding-left: max(12px, calc((100vw - 736px) / 2)); padding-right: max(12px, calc((100vw - 736px) / 2)); }
  main { padding-top: 18px; }
  .zeile:hover, .liste button:hover, .vorschlaege button:hover { background: var(--blau-hell); }
  .klein-knopf:hover, .knopf:hover, .chip:hover { filter: brightness(.97); }
}
details summary { cursor: pointer; padding: 8px 0; }
.senden-gruppe { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.mail-knopf { border: 0; background: none; color: var(--blau-dunkel); font-size: 12.5px; padding: 2px 4px; white-space: nowrap; text-decoration: underline; }
.knopf.gesendet { background: var(--gruen); color: #fff; }
html[data-thema="dunkel"] .knopf.gesendet { color: #0f1419; }
@media (prefers-color-scheme: dark) { html:not([data-thema="hell"]) .knopf.gesendet { color: #0f1419; } }
/* Stunden-Menue, Uhrzeit-Auswahl, Erinnerung */
.stepper { display: flex; gap: 8px; align-items: stretch; }
.stepper input { flex: 1; text-align: center; font-size: 20px; font-weight: 600; }
.stepper .knopf { padding: 8px 14px; font-size: 17px; flex: none; }
.stunden-raster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.stunden-raster .chip { padding: 8px 0; text-align: center; }
.chips + .stunden-raster { margin-top: 8px; }
.feld select { appearance: auto; }
.spruch.erinnerung { background: var(--rot-hell); }
.spruch.erinnerung span { color: var(--text); }
/* Regiebericht-Haken (nur Anzeige) */
.zeile-mit-regie { display: flex; align-items: stretch; border-top: 1px solid var(--linie); }
.zeile-mit-regie .zeile { border-top: 0; flex: 1; min-width: 0; padding-right: 8px; }
.regie { flex: none; width: 54px; border: 0; border-left: 1px solid var(--linie); background: none; color: var(--leise); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 18px; font-weight: 700; }
.regie::before { content: ''; width: 22px; height: 22px; border: 2px solid var(--feld-linie); border-radius: 6px; display: block; }
.regie.ok::before, .regie.mit::before { display: none; }
.regie.ok { color: var(--gruen); }
.regie.ok > :first-child { }
.regie small { font-size: 10.5px; font-weight: 600; color: var(--leise); }
.knopf-marke { border: 1px solid rgba(255,255,255,.55); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.knopf-marke:active { background: rgba(255,255,255,.3); }
.zeile .was .kollegen-zeile, .zeile .was .material-zeile { font-size: 13.5px; color: var(--leise); margin-top: 2px; padding: 3px 0; cursor: pointer; }
.zeile .was .kollegen-zeile b, .zeile .was .material-zeile b { display: inline; font-weight: 600; color: var(--text); }
.zeile .was .kollegen-zeile.leer, .zeile .was .material-zeile.leer { color: var(--blau); }
.zeile .was .extra-hinweise { display: flex; gap: 16px; overflow: visible; }
.zeile .was .extra-hinweise span { display: inline-block; }
.mat-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mat-liste:empty { display: none; }
.mat-zeile { display: grid; grid-template-columns: 1fr 78px 42px 34px; gap: 6px; align-items: center; background: var(--blau-hell); border-radius: 10px; padding: 6px 6px 6px 10px; }
.mat-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.mat-zeile .mat-menge { padding: 8px; text-align: right; font-size: 16px; }
.mat-einheit { font-size: 14px; color: var(--leise); }
.mat-weg { border: 0; background: none; color: var(--leise); font-size: 17px; padding: 6px; }
.mat-treffer { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.mat-vorschlag { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; text-align: left; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 9px 12px; font-size: 15px; color: var(--text); }
.mat-vorschlag small { color: var(--leise); font-size: 12.5px; white-space: nowrap; }
.mat-vorschlag.drin { opacity: .55; }
.mat-titel { font-size: 13px; color: var(--leise); margin: 4px 0 2px; }
.mat-neu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font-size: 14px; color: var(--leise); }
.mat-neu select { width: auto; padding: 8px; }
.vorschlaege-box { background: var(--karte); border: 2px solid var(--blau); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.vorschlag { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; border-top: 1px solid var(--linie); padding-top: 8px; }
.vorschlag-text { min-width: 0; }
.vorschlag-text b { display: block; }
.vorschlag-text small { display: block; color: var(--leise); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vorschlag .knopf { padding: 8px 12px; font-size: 14.5px; }
.vorschlag-weg { border: 0; background: none; color: var(--leise); font-size: 17px; padding: 6px; }
.kollegen-chips .chip { font-size: 14.5px; }
.feld label small { font-weight: 400; font-size: 13px; }
.zeile .was .material-zeile { white-space: normal; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.zeile .was .extra-hinweise .material-zeile { display: inline-block; }
.mat-suche { display: flex; gap: 8px; }
.mat-suche input { flex: 1; min-width: 0; }
.foto-knopf { white-space: nowrap; padding: 8px 12px; }
.foto-box { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--blau); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.foto-box select { width: auto; padding: 8px; }
.foto-zeile { display: flex; flex-direction: column; gap: 6px; background: var(--blau-hell); border-radius: 10px; padding: 8px; }
.foto-zeile-unten { display: grid; grid-template-columns: 88px 1fr 34px; gap: 6px; align-items: center; }
.foto-zeile-unten .mat-menge { padding: 8px; text-align: right; font-size: 16px; }
.foto-zeile-unten select { width: 100%; }
.foto-info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--leise); }
.foto-info .chip { font-size: 12.5px; text-align: left; white-space: normal; }
.foto-knoepfe { flex-wrap: wrap; }
.foto-knoepfe .knopf { flex: 1 1 auto; }
.regie-tage { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; max-height: 46vh; overflow-y: auto; }
.regie-tag { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); cursor: pointer; }
.regie-tag input { width: 20px; height: 20px; margin: 2px 0 0; }
.regie-tag b { display: block; font-size: 15px; }
.regie-tag span { display: block; font-size: 14px; color: var(--leise); }
.regie-tag small { display: block; font-size: 13px; color: var(--leise); margin-top: 2px; }
.regie-tag.fertig { opacity: .7; }
.regie-tag .regie-geschrieben { font-size: 12.5px; color: var(--gruen, #1b7a3a); white-space: nowrap; }
.regie-offen-marke { background: var(--rot-hell); color: var(--text); border-radius: 99px; padding: 3px 10px; font-size: 13px; white-space: nowrap; }
.zeile .was .extra-hinweise { flex-wrap: wrap; gap: 2px 14px; white-space: normal; text-overflow: clip; }
.zeile .was .extra-hinweise span { white-space: nowrap; overflow: visible; text-overflow: clip; display: inline-block; -webkit-line-clamp: unset; }
.unterschrift-box { display: flex; flex-direction: column; gap: 8px; }
canvas.unterschrift { width: 100%; height: 130px; background: #fff; border: 1.5px dashed var(--linie); border-radius: 12px; touch-action: none; cursor: crosshair; }
.kollegen-std { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.kollegen-std:empty { display: none; }
.kollegen-zeile-std { grid-template-columns: 1fr 78px 32px 0; }
.rb-gesendet { font-size: 13px; color: var(--gruen); margin-top: 2px; }
.rb-offen { font-size: 13px; color: var(--rot, #c62828); margin-top: 2px; font-weight: 600; }
.regie.nr small { font-size: 11px; }
.pruefen-zeile { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--karte); }
.pruefen-kopf { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.pruefen-kopf > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.pruefen-knoepfe { display: flex; gap: 6px; flex-shrink: 0; }
.pruefen-knoepfe .knopf { padding: 7px 10px; font-size: 14px; }
.pruefen-umbenennen { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pruefen-titel { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.pruefen-titel h3 { margin: 0; }
.spruch.erinnerung.pruefen { background: var(--gelb, #fff3c4); }
.vorlagen { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.vorlagen .chips .chip { font-size: 14px; }
.chip.weg-chip { border-color: var(--rot, #c62828); color: var(--rot, #c62828); }
.link-klein { border: 0; background: none; color: var(--blau); font-size: 13px; padding: 0 4px; text-decoration: underline; cursor: pointer; }
/* ---------- Elektro Hadwiger Branding und Uebersicht ---------- */
.kopf { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.kopf-oben .titel { display: flex; align-items: center; gap: 10px; }
.kopf-logo { height: 32px; width: auto; display: block; }
.app-name { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.18); border-radius: 6px; padding: 2px 7px; }
.woche { background: rgba(0,0,0,.12); border-radius: 14px; padding: 6px; margin-top: 10px; }
.woche .knopf-rund { background: rgba(255,255,255,.16); }
.kopf select { max-width: 40vw; }
@media (max-width: 380px) { .app-name { display: none; } .kopf-logo { height: 28px; } }
/* Hinweise gebuendelt */
.mehr-hinweise { border: 0; background: none; color: var(--blau-dunkel); font-size: 14px; text-align: left; padding: 0 6px; text-decoration: underline; }
.spruch.unten { opacity: .9; font-size: 14px; }
/* Heute hervorheben, leere Tage kompakt */
.tag.heute { box-shadow: 0 0 0 2px var(--blau), 0 2px 8px rgba(0,103,192,.15); }
.heute-marke { background: var(--blau); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.fehlt-marke { background: #fff4e3; color: #8a4b00; font-size: 12px; border-radius: 99px; padding: 1px 8px; align-self: center; }
html[data-thema="dunkel"] .fehlt-marke { background: #3a2a12; color: #ffc77a; }
@media (prefers-color-scheme: dark) { html:not([data-thema="hell"]) .fehlt-marke { background: #3a2a12; color: #ffc77a; } }
.tag.leer .tag-kopf { padding-bottom: 2px; }
.tag.leer .tag-knoepfe { padding: 6px 14px 10px; gap: 6px; }
.tag.leer .klein-knopf { padding: 5px 11px; font-size: 14px; }
.tag.leer .klein-knopf.neben { color: var(--leise); }
.tag.wochenende:not(.offen) { opacity: .75; }
/* Fortschritt der Woche unten */
.fortschritt { height: 5px; border-radius: 99px; background: var(--linie); margin-top: 4px; overflow: hidden; max-width: 180px; }
.fortschritt i { display: block; height: 100%; background: var(--blau); border-radius: 99px; transition: width .3s; }
.fortschritt.voll i { background: var(--gruen); }
.fuss { box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
/* Menue in Gruppen */
.menue-kopf { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.menue-logo { height: 38px; width: auto; align-self: flex-start; }
.menue-titel { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blau-dunkel); margin: 16px 2px 6px; }
.menue-fuss { text-align: center; color: var(--leise2); font-size: 12.5px; margin: 16px 0 4px; }
html[data-thema="dunkel"] .menue-logo, html[data-thema="dunkel"] .logo-hadwiger { background: #fff; border-radius: 8px; padding: 4px 6px; }
@media (prefers-color-scheme: dark) { html:not([data-thema="hell"]) .menue-logo, html:not([data-thema="hell"]) .logo-hadwiger { background: #fff; border-radius: 8px; padding: 4px 6px; } }
/* Anmelden */
.anmelden .logo { flex-direction: column; align-items: stretch; gap: 14px; }
.anmelden .logo .logo-hadwiger { width: 220px; height: auto; align-self: center; }
.logo-schlicht { text-align: center; font-size: 26px; margin: 4px 0 18px; letter-spacing: .5px; }
.anmelden .logo .logo-zeile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--linie); padding-top: 12px; }
.anmelden { background: var(--kopf); }
@media (max-width: 600px) { .kopf-oben:has(select) .app-name { display: none; } }
.anmelden { min-height: 100vh; min-height: 100dvh; }
/* Arbeitszeit-Waechter und Azubi */
.azg-tag { margin: 0 14px 8px; padding: 6px 10px; background: #fff4e3; border-radius: 10px; font-size: 13.5px; color: #7a4300; display: flex; flex-direction: column; gap: 2px; }
html[data-thema="dunkel"] .azg-tag { background: #3a2a12; color: #ffc77a; }
@media (prefers-color-scheme: dark) { html:not([data-thema="hell"]) .azg-tag { background: #3a2a12; color: #ffc77a; } }
.azg-liste { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.azubi-rechte { border: 1px solid var(--linie); border-radius: 12px; padding: 4px 12px 2px; margin-bottom: 12px; }
.azubi-rechte .schalter { margin: 8px 0; font-size: 15px; }
.letzte-zeile { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 99px; padding: 3px 12px; font-size: 12.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.letzte-zeile:active { background: rgba(255,255,255,.28); }
/* ---------- Avatar ---------- */
.avatar-svg { display: block; border-radius: 50%; flex: none; }
.kopf-avatar { background: none; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; padding: 0; width: 36px; height: 36px; flex: none; cursor: pointer; overflow: hidden; }
.kopf-avatar .avatar-svg { width: 32px; height: 32px; }
.kopf-oben .titel { display: flex; align-items: center; gap: 10px; }
.av-vorschau { display: grid; place-items: center; margin: 4px 0 10px; }
.av-vorschau .avatar-svg { width: 132px; height: 132px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.av-gruppe { margin-bottom: 10px; }
.av-gruppe .mat-titel { margin-bottom: 6px; }
.av-farbe { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--linie) inset; padding: 0; }
.av-farbe.an { border-color: var(--blau); }
.menue-avatar { display: flex; align-items: center; gap: 12px; }
.menue-avatar .avatar-svg { width: 52px; height: 52px; }
.liste .avatar-svg { width: 32px; height: 32px; }
.abzeichen { display: inline-block; background: #fff3c4; color: #6b4b00; border-radius: 99px; padding: 1px 9px; font-size: 12.5px; font-weight: 600; margin-top: 4px; }

/* ---------- Gluehbirne beim Senden ---------- */
.gb-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(4,8,16,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: gbRein .35s ease-out, gbHell 1s 1.7s ease-out forwards; cursor: pointer; }
.gb-overlay.gb-aus { animation: gbRaus .4s ease-in forwards; }
.gb-svg { width: min(92vw, 420px); height: min(74vh, 720px); }
.gb-schein { opacity: 0; transform-origin: 200px 170px; transform: scale(.4); animation: gbSchein .9s 1.7s ease-out forwards; }
.gb-strahlen { opacity: 0; transform-origin: 200px 170px; animation: gbStrahlRein .6s 1.8s ease-out forwards, gbDrehen 9s 1.8s linear infinite; }
.gb-kabel-licht { stroke-dasharray: 420; stroke-dashoffset: 420; opacity: .9; animation: gbStrom .75s .5s linear forwards, gbKabelAus .4s 1.6s forwards; }
.gb-impuls { opacity: 0; animation: gbImpuls .8s .5s linear forwards; }
.gb-faden { animation: gbFlacker .6s 1.15s steps(1) forwards; }
.gb-glas { animation: gbGlas .6s 1.15s steps(1) forwards; }
.gb-wippe { transform-origin: 200px 610px; animation: gbWippe .12s .3s ease-out forwards; }
.gb-klick { opacity: 0; animation: gbKlick .7s .32s ease-out forwards; }
.gb-text { margin-top: -40px; text-align: center; color: #fff; opacity: 0; transform: translateY(14px); animation: gbText .5s 1.9s ease-out forwards; padding: 0 20px; }
.gb-text b { display: block; font-size: 30px; letter-spacing: .02em; text-shadow: 0 0 18px rgba(255,216,74,.8); }
.gb-text span { display: block; font-size: 17px; margin-top: 6px; color: #ffeaa8; }
.gb-funken { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes gbRein { from { opacity: 0; } to { opacity: 1; } }
@keyframes gbRaus { to { opacity: 0; } }
@keyframes gbHell { to { background: radial-gradient(circle at 50% 25%, rgba(110,82,8,.96), rgba(18,12,2,.97) 70%); } }
@keyframes gbSchein { to { opacity: 1; transform: scale(1); } }
@keyframes gbStrahlRein { to { opacity: .85; } }
@keyframes gbDrehen { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes gbStrom { to { stroke-dashoffset: 0; } }
@keyframes gbKabelAus { to { opacity: .25; } }
@keyframes gbImpuls { 0% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gbWippe { to { transform: scaleY(-1); } }
@keyframes gbKlick { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes gbText { to { opacity: 1; transform: none; } }
@keyframes gbFlacker {
  0% { stroke: #ffe066; filter: drop-shadow(0 0 6px #ffd84a); } 15% { stroke: #7b8796; filter: none; } 30% { stroke: #ffe066; filter: drop-shadow(0 0 6px #ffd84a); }
  45% { stroke: #7b8796; filter: none; } 60% { stroke: #fff7c2; filter: drop-shadow(0 0 10px #ffd84a); } 100% { stroke: #fffbe6; filter: drop-shadow(0 0 12px #ffe066); } }
@keyframes gbGlas {
  0% { fill: rgba(255,224,102,.55); } 15% { fill: rgba(200,220,240,.12); } 30% { fill: rgba(255,224,102,.5); } 45% { fill: rgba(200,220,240,.12); }
  60% { fill: rgba(255,232,120,.85); } 100% { fill: url(#gbGlas); stroke: #fff3b0; } }
.gb-ruhig, .gb-ruhig * { animation-duration: .01s !important; animation-delay: 0s !important; }
.gb-ruhig .gb-schein { opacity: 1; transform: none; } .gb-ruhig .gb-text { opacity: 1; transform: none; }

/* ---------- Ostereier ---------- */
.osterei { position: absolute; z-index: 3; border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); animation: eiWackeln 4.5s ease-in-out infinite; }
.osterei:hover { transform: scale(1.15) rotate(-8deg); }
.ei-kopf { right: 62px; bottom: -2px; transform: rotate(14deg); }
.kopf { position: sticky; } .woche { position: relative; }
.tag { position: relative; }
.ei-tag { right: 12px; bottom: 10px; transform: rotate(-12deg); opacity: .92; }
.ei-gold { right: 14px; top: 10px; transform: rotate(10deg); }
.fuss .gesamt { position: relative; }
.ei-fuss { left: 118px; top: 8px; transform: rotate(-18deg); }
.ei-menue { position: relative; display: inline-block; margin-left: 8px; vertical-align: middle; }
.ei-einstellungen { position: relative; display: inline-block; margin-left: 8px; vertical-align: middle; }
.ei-eintrag { position: relative; display: inline-block; margin-left: 6px; vertical-align: middle; transform: rotate(8deg); }
@keyframes eiWackeln { 0%, 86%, 100% { rotate: 0deg; } 89% { rotate: -9deg; } 92% { rotate: 8deg; } 95% { rotate: -5deg; } }
.ei-knack { position: fixed; z-index: 70; width: 0; height: 0; pointer-events: none; }
.ei-knack .ei-oben, .ei-knack .ei-unten { position: absolute; left: -13px; top: -16px; line-height: 0; }
.ei-knack .ei-oben { clip-path: inset(0 0 52% 0); animation: eiOben .7s ease-out forwards; }
.ei-knack .ei-unten { clip-path: inset(48% 0 0 0); animation: eiUnten .7s ease-out forwards; }
.ei-kueken { position: absolute; left: -16px; top: -18px; font-size: 30px; animation: eiKueken 1.3s ease-out forwards; }
.ei-funke { position: absolute; color: #ffcc33; font-size: 16px; left: -6px; top: -10px; opacity: 0; }
.ei-funke.f1 { animation: eiFunke1 .8s .1s ease-out forwards; } .ei-funke.f2 { animation: eiFunke2 .8s .15s ease-out forwards; } .ei-funke.f3 { animation: eiFunke3 .8s .2s ease-out forwards; }
@keyframes eiOben { to { transform: translate(-14px, -26px) rotate(-40deg); opacity: 0; } }
@keyframes eiUnten { to { transform: translate(10px, 18px) rotate(25deg); opacity: 0; } }
@keyframes eiKueken { 0% { transform: scale(.2) translateY(10px); opacity: 0; } 30% { transform: scale(1.25) translateY(-22px); opacity: 1; } 55% { transform: scale(1) translateY(-14px); } 85% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes eiFunke1 { 0% { opacity: 1; } 100% { transform: translate(-30px, -30px); opacity: 0; } }
@keyframes eiFunke2 { 0% { opacity: 1; } 100% { transform: translate(30px, -26px); opacity: 0; } }
@keyframes eiFunke3 { 0% { opacity: 1; } 100% { transform: translate(4px, -44px); opacity: 0; } }
.oster-finale { position: fixed; inset: 0; z-index: 65; background: rgba(255,248,225,.86); display: grid; place-items: center; animation: gbRein .3s ease-out; cursor: pointer; overflow: hidden; }
.oster-finale.of-aus { animation: gbRaus .4s forwards; }
.of-karte { background: #fff; border-radius: 22px; padding: 22px 24px; text-align: center; box-shadow: 0 20px 60px rgba(120,80,0,.25); max-width: 340px; display: flex; flex-direction: column; gap: 6px; animation: ofKarte .6s cubic-bezier(.2,1.6,.4,1); color: #1b2430; }
.of-medaille { font-size: 56px; line-height: 1; animation: ofMedaille 1.6s ease-in-out infinite; }
.of-karte b { font-size: 23px; } .of-karte span { font-size: 16px; color: #5f6b7a; } .of-karte small { color: #8a95a3; margin-top: 6px; }
.of-abzeichen { background: #fff3c4; color: #6b4b00; font-weight: 700; border-radius: 99px; padding: 6px 12px; margin: 6px auto 2px; }
.of-eier { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.of-eier span { animation: ofEi .5s ease-out backwards; }
.of-hase { position: absolute; bottom: 6vh; left: -80px; font-size: 64px; animation: ofHoppeln 5.5s linear infinite; }
.of-hase.zwei { bottom: 18vh; font-size: 44px; animation-duration: 7s; animation-delay: 1.2s; }
@keyframes ofKarte { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ofMedaille { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.08); } }
@keyframes ofEi { from { transform: translateY(-30px) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ofHoppeln {
  0% { transform: translate(0, 0); } 8% { transform: translate(9vw, -60px); } 16% { transform: translate(18vw, 0); } 24% { transform: translate(27vw, -60px); }
  32% { transform: translate(36vw, 0); } 40% { transform: translate(45vw, -60px); } 48% { transform: translate(54vw, 0); } 56% { transform: translate(63vw, -60px); }
  64% { transform: translate(72vw, 0); } 72% { transform: translate(81vw, -60px); } 80% { transform: translate(90vw, 0); } 88% { transform: translate(99vw, -60px); } 100% { transform: translate(112vw, 0); } }
@media (prefers-reduced-motion: reduce) { .osterei, .of-hase, .of-medaille { animation: none; } }

/* Pruefung vor dem Senden */
.vorpruef li { line-height: 1.35; }
.vp-tag { font-weight: 600; padding: 0; font-size: 15px; }
.tag.blink { outline: 3px solid var(--blau); outline-offset: 2px; transition: outline-color .3s; }

/* Beducker-Monatszettel */
.bed-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bed-nav .knopf { min-width: 44px; font-size: 20px; padding: 6px 12px; }
.bed-titel { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.bed-liste { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.bed-zeile { display: grid; grid-template-columns: 78px 64px 1fr; gap: 8px; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--linie); background: var(--karte); }
.bed-zeile:last-child { border-bottom: 0; }
.bed-zeile.rot { background: rgba(220,53,69,.10); }
.bed-zeile.rot .bed-tag { color: #b3261e; }
.bed-zeile.heute { box-shadow: inset 4px 0 0 var(--blau); }
.bed-tag { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bed-std, .bed-notiz { border: 1px solid var(--feld-linie); border-radius: 8px; padding: 7px 8px; font-size: 16px; background: var(--karte); color: var(--text); min-width: 0; }
.bed-std { text-align: center; font-variant-numeric: tabular-nums; }
.bed-std.falsch { border-color: #c62828; background: #fdecec; }
.bed-notiz { font-size: 15px; }
.bed-fuss { position: sticky; bottom: -16px; background: var(--karte); padding: 10px 0 4px; margin-top: 8px; border-top: 1px solid var(--linie); }
.bed-summe { font-size: 17px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bed-summe .marke { margin-left: auto; }
.bed-lohn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 8px; font-size: 15px; }
.bed-lohn .bed-std { width: 80px; }
.bed-frage { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 6px; }
.bed-frage-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; background: rgba(0,103,192,.08); border-radius: 10px; padding: 6px 10px; }
.bed-frage-zeile span { flex: 1 1 180px; }
.bed-frage .knopf.klein { padding: 6px 16px; font-size: 15px; min-height: 0; }
.bed-tag small.bed-von { display: block; font-size: 11.5px; color: var(--blau); line-height: 1.1; }
.bed-lohnfrage { background: rgba(0,103,192,.08); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.bed-lohnfrage p { margin: 4px 0 8px; }
.bed-lohnfrage .bed-std { width: 90px; }
.bed-lohnfrage .reihe { align-items: center; }
.bed-import { margin-top: 12px; }
.bed-import-box summary { cursor: pointer; color: var(--blau); font-size: 15px; padding: 6px 0; }
.bed-haupt { padding: 12px 12px 24px; max-width: 640px; margin: 0 auto; }
.bed-seite .bed-fuss { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom) + 6px); }
.ag-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.14); border-radius: 12px; padding: 3px; margin: 8px 0 4px; }
.ag-tab { flex: 1; border: 0; background: none; color: #fff; font-size: 15.5px; font-weight: 600; padding: 8px 6px; border-radius: 9px; opacity: .85; }
.ag-tab.an { background: #fff; color: var(--blau); opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
html[data-thema="dunkel"] .bed-zeile.rot .bed-tag { color: #ff8a80; }
@media (prefers-color-scheme: dark) { html:not([data-thema="hell"]) .bed-zeile.rot .bed-tag { color: #ff8a80; } }
.jahr-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.jahr-karte.haupt { grid-column: 1 / -1; order: -1; }
.jahr-karte.haupt b { font-size: 28px; }
.jahr-karte { background: var(--flaeche); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.jahr-karte small { color: var(--leise); font-size: 13px; }
.jahr-karte b { font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jahr-karte.haupt { background: var(--blau); color: #fff; }
.jahr-karte.haupt small { color: rgba(255,255,255,.85); }
.jahr-liste { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.jahr-zeile { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; white-space: nowrap; align-items: center; border: 0; border-bottom: 1px solid var(--linie); background: var(--karte); color: var(--text); padding: 9px 10px; font-size: 15px; text-align: left; font-variant-numeric: tabular-nums; }
.jahr-zeile:last-child { border-bottom: 0; }
.jahr-zeile.zukunft { opacity: .45; }
.jahr-zeile.laufend { background: rgba(0,103,192,.06); }
.jm-name { font-weight: 600; }
.jm-balken { height: 10px; background: var(--flaeche); border-radius: 99px; overflow: hidden; }
.jm-balken i { display: block; height: 100%; background: var(--blau); border-radius: 99px; }
.jm-std, .jm-euro { text-align: right; }
.jm-euro { color: var(--leise); }
.bed-mit-std { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; }
.bed-frage .bed-std-mit { width: 62px; padding: 5px 6px; }
.bed-minijob { font-size: 14px; margin: -4px 0 6px; color: var(--leise); }
.bed-minijob.knapp { color: #9a6700; font-weight: 600; }
.bed-minijob.ueber { color: #b3261e; font-weight: 600; }
.jm-euro.ueber { color: #b3261e; font-weight: 600; }
.jm-balken i.warn { background: #d9822b; }

/* Gesundheits-Tagebuch */
.tb-haupt { display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; }
.tb-privat { margin: -6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tb-karte { background: var(--karte); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); padding: 10px 12px 12px; }
.tb-karte h3 { margin: 0 0 8px; font-size: 16.5px; }
.tb-zeile { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linie); }
.tb-karte h3 + .tb-zeile { border-top: 0; }
.tb-titel { flex: 1; min-width: 0; font-size: 15.5px; }
.tb-titel small { display: block; color: var(--leise); font-size: 12.5px; }
.tb-stufe { display: flex; align-items: center; gap: 6px; }
.tb-stufe button { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font-size: 22px; line-height: 1; }
.tb-zahl { width: 58px; text-align: center; border: 1px solid var(--feld-linie); border-radius: 8px; padding: 8px 4px; font-size: 16px; background: var(--karte); color: var(--text); font-variant-numeric: tabular-nums; }
.tb-zahl.breit { width: 110px; }
.tb-zahl.falsch { border-color: #c62828; background: #fdecec; }
.tb-einheit { font-size: 14px; color: var(--leise); min-width: 26px; }
.tb-skala { flex-direction: column; align-items: stretch; gap: 4px; }
.tb-skala input[type=range] { width: 100%; accent-color: var(--blau); height: 32px; }
.tb-karte .chips { margin-top: 6px; }
.tb-karte .schalter { margin: 6px 0 0; }
.tb-karte textarea { width: 100%; border: 1px solid var(--feld-linie); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 16px; background: var(--karte); color: var(--text); }
.tb-umfang { margin-top: 8px; border-top: 1px solid var(--linie); padding-top: 8px; }
.tb-umfang summary { cursor: pointer; color: var(--blau); font-size: 15.5px; }
.tb-um-kopf, .tb-um-zeile { display: grid; grid-template-columns: 1fr 70px 70px; gap: 8px; align-items: center; padding: 3px 0; font-size: 15px; }
.tb-um-kopf { color: var(--leise); font-size: 13px; text-align: center; }
.tb-um-zeile .tb-zahl { width: 100%; }
.tb-tipps h3 { margin: 6px 0 8px; }
.tb-tipp { display: flex; gap: 10px; background: var(--karte); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 15.5px; line-height: 1.35; border-left: 4px solid var(--blau); }
.tb-tipp.gut { border-left-color: #2e9e5b; }
.tb-tipp.arzt { border-left-color: #c62828; }
.tb-fuss { text-align: center; margin-top: 10px; }
.tb-tab { border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.tb-tab-zeile { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--linie); font-size: 15px; font-variant-numeric: tabular-nums; }
.tb-tab-zeile:last-child { border-bottom: 0; }
.tb-tab-zeile.kopf { color: var(--leise); font-size: 13px; background: var(--flaeche); }
.tb-linie { display: block; color: var(--blau); background: var(--flaeche); border-radius: 12px; padding: 6px; }
.tb-linie svg { width: 100%; height: auto; display: block; }
.tb-um-tab { display: grid; gap: 4px 8px; font-size: 14.5px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.anschrift-zeile { font-size: 14.5px; margin: 6px 0 0; color: var(--text); line-height: 1.35; }
.anschrift-zeile a { color: var(--blau); white-space: nowrap; }
.bs-hinweis { color: var(--leise); margin-top: 2px; }
.imp-beispiel { display: flex; gap: 0; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; margin: 6px 0 10px; font-size: 14px; }
.imp-beispiel span { flex: 1; padding: 6px 8px; background: var(--flaeche); border-right: 1px solid var(--linie); font-weight: 600; }
.imp-beispiel span:last-child { border-right: 0; }
.imp-liste { max-height: 38vh; overflow: auto; margin-bottom: 10px; }
.imp-art { font-size: 13px; color: var(--blau); font-weight: 600; }
.imp-art.grau { color: var(--leise); font-weight: 400; }
.rb-kunde-fehlt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(217,130,43,.12); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.rb-kunde-fehlt span { flex: 1 1 160px; }
.tb-fragen { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.tb-fragen .schalter { margin: 4px 0; }
.tb-neu { background: var(--flaeche); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
@media (max-width: 420px) { .tb-fragen { grid-template-columns: 1fr; } }
.eintrag .rechts.reihe { flex-wrap: nowrap; align-items: center; }
.eintrag .rechts.reihe > * { flex: 0 0 auto; white-space: nowrap; }

.konto-zeile { margin-top: 4px; }
.marke.konto { background: #fff; color: #0a2a4e; font-weight: 700; padding: 3px 11px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.marke.konto.tageswert { background: #e8f0fb; color: #0a2a4e; font-weight: 600; }
.marke.konto.wird { background: #ffe08a; color: #543800; font-weight: 700; }
html[data-thema="dunkel"] .marke.konto.wird { background: #4a3a05; color: #ffd966; }
@media (prefers-color-scheme: dark) { html:not([data-thema="hell"]) .marke.konto.wird { background: #4a3a05; color: #ffd966; } }
.buero-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.buero-fertig { margin-top: 10px; }
.buero-fertig summary { cursor: pointer; color: var(--leise); font-size: 14px; padding: 4px 0; }
.buero-tag { align-items: flex-start; }
.zweizeilig span + span { font-size: 12.5px; }
.bed-haupt { grid-template-columns: minmax(0, 1fr); }

/* Gesten */
.blatt::before { content: ''; display: block; width: 38px; height: 5px; border-radius: 99px; background: var(--linie); margin: -5px auto 7px; }
.zieh-anzeige { position: fixed; top: 0; left: 50%; z-index: 30; width: 38px; height: 38px; border-radius: 99px; background: var(--karte); color: var(--leise); box-shadow: 0 2px 10px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; font-size: 22px; transform: translate(-50%, -50px); pointer-events: none; }
.zieh-anzeige.bereit { color: #fff; background: var(--blau); }
@keyframes wischLinks { from { transform: translateX(46px); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes wischRechts { from { transform: translateX(-46px); opacity: .35; } to { transform: none; opacity: 1; } }
html[data-wisch="links"] #app main, html[data-wisch="links"] .blatt .liste { animation: wischLinks .24s ease-out; }
html[data-wisch="rechts"] #app main, html[data-wisch="rechts"] .blatt .liste { animation: wischRechts .24s ease-out; }
@media (prefers-reduced-motion: reduce) { html[data-wisch] #app main, html[data-wisch] .blatt .liste { animation: none; } }

/* Eingang im Buero: drei Spalten (am Handy untereinander), je Spalte nach Namen unterteilt */
.buero-haupt { max-width: 1240px; }
.buero-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.buero-spalten .buero-karte { margin-bottom: 0; }
@media (min-width: 900px) { .buero-spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.buero-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blau-dunkel); margin: 12px 0 6px; padding-bottom: 3px; border-bottom: 2px solid var(--blau-hell); }
.buero-name small { font-weight: 600; font-size: 12px; background: var(--gelb); color: #3a2b00; border-radius: 99px; padding: 0 7px; }
.buero-fertig .buero-name { font-weight: 600; color: var(--leise); border-bottom-color: var(--linie); }
.buero-fertig .buero-name small { display: none; }
.blatt.breit { max-width: 1240px; }
.urlaub-eintrag { align-items: flex-start; }

/* Buero: Ueberblick-Kacheln, Werkzeuge, Urlaubskalender */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kachel { background: var(--blau-hell); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kachel b { font-size: 21px; line-height: 1.15; color: var(--blau-dunkel); }
.kachel span { font-size: 12.5px; color: var(--leise); }
.kachel.gelb { background: #fff3c4; } .kachel.gelb b { color: #6b4e00; }
.kachel.gruen { background: #dff5e6; } .kachel.gruen b { color: #1d6b38; }
.buero-werkzeug { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .buero-werkzeug { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.buero-werkzeug .knopf { padding: 10px 8px; font-size: 14.5px; }
.urlaub-rest { margin: 4px 0 8px; padding: 8px 10px; background: var(--blau-hell); border-radius: 10px; font-size: 14.5px; }
.urlaub-zuviel { color: #b3261e; font-weight: 600; }
.kal-kopf { justify-content: center; align-items: center; gap: 14px; margin-bottom: 8px; }
.kal-kopf b { min-width: 150px; text-align: center; font-size: 17px; }
.kal-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--linie); border-radius: 10px; }
table.kal { border-collapse: separate; border-spacing: 0; font-size: 12.5px; width: max-content; min-width: 100%; }
.kal th, .kal td { border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); text-align: center; min-width: 27px; height: 27px; padding: 0 2px; font-weight: 600; }
.kal thead th { font-weight: 600; line-height: 1.1; padding: 3px 2px; background: var(--karte); }
.kal thead th small { font-weight: 400; color: var(--leise); font-size: 10.5px; }
.kal .kal-name { position: sticky; left: 0; z-index: 1; background: var(--karte); text-align: left; padding: 0 8px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.kal-frei, .kal thead th.kal-frei { background: var(--grau-feiertag); color: var(--leise); }
.kal-u { background: #bfe8cc; color: #14522a; } .kal-a { background: #ffe9a3; color: #6b4e00; } .kal-b { background: #c5dcff; color: #0b3f85; } .kal-k { background: #ffcfca; color: #8c1d18; } .kal-w { background: #e2dcf5; color: #47358a; }
.kal-heute { box-shadow: inset 0 0 0 2px var(--blau); }
.kal-summe td, .kal-summe th { background: var(--flaeche); color: var(--leise); font-weight: 600; }
.kal-summe .kal-viele { color: #b3261e; background: #ffe7e4; }
.kal-legende { font-size: 13px; color: var(--leise); margin: 8px 0 0; }
.kal-legende span { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; font-weight: 700; margin-left: 8px; }
html[data-thema="dunkel"] .kachel.gelb { background: #4a3a05; } html[data-thema="dunkel"] .kachel.gelb b { color: #ffd966; }
html[data-thema="dunkel"] .kachel.gruen { background: #173323; } html[data-thema="dunkel"] .kachel.gruen b { color: #8fe0a6; }
.kal-kopf .klein-knopf { flex: 0 0 auto; min-width: 44px; }
.ws-feld { width: 74px !important; text-align: right; flex: 0 0 auto !important; }
.ws-zeile { display: flex; align-items: center; gap: 6px; }
.rb-tag { padding: 12px; margin-bottom: 10px; }
.rb-zeile { display: flex; gap: 6px; margin: 4px 0; }
.rb-zeile input { min-width: 0; flex: 1 1 auto; }
.rb-mat .ws-feld { width: 64px !important; }
.weg-knopf { background: var(--rot-hell); color: var(--rot); border-color: transparent; }
.liste .rb-eintrag { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 0; }
.liste .rb-eintrag .rb-auf { flex: 1 1 auto; width: auto; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; padding: 12px 4px 12px 14px; color: inherit; font: inherit; cursor: pointer; }
.liste .rb-eintrag .zweizeilig b, .liste .rb-eintrag .zweizeilig span { white-space: normal; }
.liste .rb-eintrag .klein-knopf { flex: 0 0 auto; width: auto; padding: 8px 13px; font-size: 14.5px; border: 1px solid var(--blau); border-radius: 99px; background: var(--blau); color: #fff; }
.regie.mit { border-style: dashed; opacity: .85; }
.regie-frage { margin: 8px 0; }
/* kleine Knöpfe in Listenzeilen: nicht auf volle Breite ziehen */
.liste .eintrag .klein-knopf { width: auto; flex: 0 0 auto; padding: 6px 12px; font-size: 14.5px; border: 1px solid var(--linie); border-radius: 99px; white-space: nowrap; }
.liste .eintrag .klein-knopf.haupt { border-color: var(--blau); }
.liste .vz-zeile { gap: 8px; }
.liste .vz-zeile .vz-name { flex: 1 1 auto; min-width: 0; }
.liste .vz-zeile .vz-x { width: 38px; height: 38px; flex: 0 0 auto; padding: 0; justify-content: center; border: 1px solid var(--linie); border-radius: 99px; color: var(--rot); font-size: 16px; font-weight: 700; background: var(--karte); }
.liste .vz-zeile .vz-x.scharf { width: auto; padding: 0 12px; background: var(--rot-hell); border-color: transparent; font-size: 14px; }
.liste .ob-eintrag { flex-direction: column; align-items: stretch; gap: 8px; }
.liste .ob-eintrag .zweizeilig b, .liste .ob-eintrag .zweizeilig span { white-space: normal; }
.ob-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.kollegen-zeile.fest { cursor: default; opacity: .8; }
.zeit-reihe { display: flex; align-items: center; gap: 8px; }
.zeit-reihe select { flex: 1 1 0; min-width: 0; }
.zeit-reihe span { color: var(--leise); }
.av-foto { border-radius: 50%; object-fit: cover; display: block; }
.av-leer { display: block; border-radius: 50%; background: var(--blau-hell); }
.av-foto-karte { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; }
.av-zuschnitt-rahmen { display: flex; justify-content: center; margin: 8px 0; }
.av-zuschnitt { width: 260px; height: 260px; max-width: 80vw; max-height: 80vw; border-radius: 50%; touch-action: none; cursor: grab; box-shadow: 0 0 0 3px var(--blau); }
.recht-fuss { text-align: center; color: var(--leise); font-size: 13px; margin: 14px 0 0; }
.liste .ob-emoji { font-size: 22px; flex: 0 0 auto; width: 30px; text-align: center; }

/* K3: Farbbalken je Tag */
.tag { position: relative; }
.tag::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--linie); }
.tag.tag-fertig::before { background: #2e9d4f; }
.tag.tag-offentag::before { background: #f0a500; }
.tag.tag-frei::before { background: var(--linie); }

/* K4: Animation beim Senden */
.sende-ov { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(12,20,32,.28); backdrop-filter: blur(1px); animation: sende-fade .18s ease; }
.sende-ov.weg { opacity: 0; transition: opacity .3s ease; }
.sende-kreis { position: relative; width: 108px; height: 108px; border-radius: 50%; background: #2e9d4f; box-shadow: 0 10px 30px rgba(46,157,79,.45); display: flex; align-items: center; justify-content: center; animation: sende-pop .42s cubic-bezier(.2,1.4,.5,1); }
.sende-haken { color: #fff; font-size: 56px; font-weight: 800; animation: sende-haken .5s .12s both; }
.sende-brief { position: absolute; font-size: 34px; opacity: 0; animation: sende-flug .7s .42s both; }
@keyframes sende-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sende-pop { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes sende-haken { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes sende-flug { 0% { transform: translate(0,6px) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(60px,-80px) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sende-kreis, .sende-haken, .sende-brief { animation-duration: .01s; } }

/* Baustellen zusammenführen */
.merge-zeile { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.merge-zeile input[type=checkbox] { flex: 0 0 auto; width: 20px; height: 20px; }
.merge-aehnlich { box-shadow: inset 3px 0 0 #f0a500; }
.merge-kopf { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.merge-tag { display: inline-block; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #6b4e00; background: #ffe9a3; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.merge-leiste { position: sticky; bottom: 0; background: var(--karte); border-top: 1px solid var(--linie); padding: 10px 0 2px; margin-top: 6px; }
.merge-leiste select { width: 100%; margin-top: 4px; }
/* QR-Code (Einladung neuer Kollegen) */
.qr-wrap { margin: 12px 0 2px; }
.qr-box { display: flex; justify-content: center; }
.qr-box svg { width: 190px; height: 190px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* KW-Titel als Knopf (öffnet Mini-Kalender) */
.woche .mitte .kw-titel { background: none; border: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; padding: 2px 6px; border-radius: 8px; display: inline-flex; align-items: center; }
.woche .mitte .kw-titel:active { background: rgba(255,255,255,.18); }
.kw-pfeil { font-size: .7em; opacity: .7; margin-left: 2px; }

/* Mini-Monatskalender */
.kalender { user-select: none; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kal-kopf b { font-size: 1.05rem; }
.kal-wochentage { display: grid; grid-template-columns: 2.4em repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.kal-wochentage span { text-align: center; font-size: .72rem; color: var(--text-leise, #777); font-weight: 600; }
.kal-gitter { display: grid; gap: 4px; }
.kal-reihe { display: grid; grid-template-columns: 2.4em repeat(7, 1fr); gap: 2px; border-radius: 10px; padding: 1px; }
.kal-reihe.aktiv { background: var(--blau-hell); outline: 2px solid var(--blau); }
.kal-kw { background: none; border: 0; font-size: .72rem; font-weight: 700; color: var(--blau-dunkel); cursor: pointer; border-radius: 8px; }
.kal-tag { background: none; border: 0; font-size: .92rem; padding: 9px 0; border-radius: 9px; cursor: pointer; color: inherit; }
.kal-tag:active, .kal-kw:active { background: rgba(0,103,192,.15); }
.kal-tag.fremd { color: #bbb; }
.kal-reihe.jetzt .kal-kw { color: var(--gruen); }
.kal-tag.heute { outline: 2px solid var(--gruen); font-weight: 700; }
html[data-thema="dunkel"] .kal-tag.fremd { color: #666; }
html[data-thema="dunkel"] .kal-reihe.aktiv { background: rgba(0,103,192,.22); }

/* Ein-Klick-Pausenfix an der ArbZG-Meldung */
.azg-fix { margin-top: 6px; align-self: flex-start; background: #7a4300; color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.azg-fix:active { transform: scale(.97); }
.azg-auto { font-weight: 600; }
html[data-thema="dunkel"] .azg-fix { background: #ffb74d; color: #3a2400; }

/* Export-Abschnitt (Sekretärin) oben in den Einstellungen */
.export-box { background: var(--blau-hell, #eef4fb); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
html[data-thema="dunkel"] .export-box { background: rgba(255,255,255,.06); }

/* Einfache Startseite für Sekretärinnen: große Knöpfe */
.sek-liste { display: grid; gap: 12px; max-width: 560px; margin: 4px auto 0; }
.sek-knopf { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--karte); border: 1px solid var(--linie); border-radius: 16px; padding: 16px 18px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.sek-knopf:hover { border-color: var(--akzent, #a83244); }
.sek-knopf:active { transform: scale(.99); }
.sek-emoji { font-size: 30px; line-height: 1; flex: 0 0 auto; }
.sek-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sek-text b { font-size: 18px; }
.sek-badge { flex: 0 0 auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #a83244; color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.sek-mehr-wrap { margin-top: 6px; }
.sek-mehr-knopf { width: 100%; background: transparent; border: 1px dashed var(--linie); border-radius: 14px; padding: 12px; cursor: pointer; font: inherit; color: var(--text-leise, #667); font-weight: 600; }
.sek-mehr { display: grid; gap: 12px; margin-top: 12px; }

/* Fotos im Regiebericht */
.rb-fotos { display: grid; gap: 10px; margin: 6px 0; }
.rb-foto { display: flex; gap: 10px; align-items: flex-start; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 8px; }
.rb-foto img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #fff; }
.rb-foto-recht { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.rb-foto-recht input { width: 100%; }

/* Admin: wer arbeitet wo (einmalige Abfrage) */
.arbeit-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.arbeit-name { flex: 1 1 120px; }
.arbeit-haken { display: flex; gap: 16px; flex-wrap: wrap; }
.arbeit-haken .schalter { margin: 0; }

/* Unterschriften & Events (Aktionen) */
.aktion-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #8a1f2b, #c0392b); color: #fff; border-radius: 14px; padding: 13px 13px 13px 16px; margin-bottom: 10px; box-shadow: 0 3px 12px rgba(150,40,55,.4); }
.aktion-banner.ist-event { background: linear-gradient(135deg, #1d6f3f, #2e9d58); box-shadow: 0 3px 12px rgba(35,130,75,.38); }
.aktion-banner.ist-schulung { background: linear-gradient(135deg, #1f4e8a, #2e73c0); box-shadow: 0 3px 12px rgba(35,85,160,.38); }
.aktion-banner.ist-wartung { background: linear-gradient(135deg, #8a5a1f, #c0832e); box-shadow: 0 3px 12px rgba(160,110,35,.38); }
.aktion-banner.ist-wartung .knopf.haupt { color: #8a5a1f; }
/* Geführte Tour: Leiste unten, schwebt über dem geöffneten Screen */
.tour { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none; }
.tour-inner { max-width: 560px; margin: 0 auto; background: var(--karte); color: var(--text); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 26px rgba(0,0,0,.34); border: 1px solid var(--linie); border-bottom: 0; padding: 12px 14px calc(env(safe-area-inset-bottom) + 12px); pointer-events: auto; }
.tour-kopf { display: flex; align-items: center; gap: 8px; }
.tour-emoji { font-size: 22px; }
.tour-zaehler { color: var(--leise); font-size: 13px; white-space: nowrap; }
.tour-text { margin: 6px 0 10px; font-size: 15px; line-height: 1.42; }
.tour-knoepfe { display: flex; gap: 8px; }
.tour-knoepfe .knopf { flex: 1; }
.ak-ban-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ak-ban-text b { font-size: 16px; line-height: 1.25; }
.ak-ban-text small { opacity: .93; font-size: 13px; }
.aktion-banner .knopf.haupt { background: #fff; color: #8a1f2b; font-weight: 700; padding: 10px 18px; white-space: nowrap; }
.aktion-banner.ist-event .knopf.haupt { color: #1d6f3f; }
.aktion-banner.ist-schulung .knopf.haupt { color: #1f4e8a; }
@media (prefers-reduced-motion: no-preference) { .aktion-banner { animation: akBan 2.4s ease-in-out infinite; } }
@keyframes akBan { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
.ak-vorschau { display: block; max-width: 100%; max-height: 340px; border-radius: 10px; margin: 8px 0; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.ak-sig { height: 46px; background: #fff; border-radius: 6px; padding: 2px; }
.ak-ja { color: #1a7a32; font-weight: 600; }
.ak-nein { color: #b02a2a; font-weight: 600; }
