/* Zeiterfassung Schauerleute – Gestaltung nach CD-Manual: Rubik, Orange #E08031 (Pantone 716) mit Schwarz.
   Tischlerei (Karl Beranek Tischlermeister): Steingrau #ACA690. */
@font-face { font-family: Rubik; src: url(/schrift/rubik-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Rubik; src: url(/schrift/rubik-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Rubik; src: url(/schrift/rubik-Bold.woff) format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: Rubik; src: url(/schrift/rubik-Black.woff) format('woff'); font-weight: 900; font-display: swap; }

:root {
  --orange: #E08031;
  --orange-tief: #C96B1F;
  --orange-hell: #FCEBDD;
  --schwarz: #17191C;
  --text: #17191C;
  --leise: #565B63;
  --linie: #E2E1DB;
  --grund: #F4F4F1;
  --weiss: #FFFFFF;
  --gruen: #1F7A4A;
  --gruen-hell: #E3F2E9;
  --rot: #B3261E;
  --rot-hell: #FBE7E5;
  --blau: #2C5D9B;
  --blau-hell: #E6EEF8;
  --lila: #7B4FB3;
  --lila-hell: #EFE8F8;
  --akzent: var(--orange);
  --akzent-tief: var(--orange-tief);
  --akzent-hell: var(--orange-hell);
  --akzent-text: #17191C;            /* Schwarz auf Orange: Kontrast 7:1 */
  --radius: 16px;
  --schatten: 0 1px 2px #0000000d, 0 4px 14px #00000012;
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--grund);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body.tischler { --akzent: #ACA690; --akzent-tief: #8F8970; --akzent-hell: #EFEDE6; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
a { color: var(--akzent-tief); }
:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--weiss); border-bottom: 1px solid var(--linie);
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
}
.kopf .marke { display: flex; align-items: center; height: 40px; }
.kopf .marke img { height: 40px; width: auto; display: block; }
.kopf .marke.landet img { animation: helmLandet .7s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes helmLandet { from { transform: translateY(-46px) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .kopf .marke.landet img { animation: none; } }
.netz { background: var(--schwarz); color: #fff; padding: 5px 12px; border-radius: 99px; font-size: 14px; font-weight: 500; }
.netz::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }
h1 { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
p { line-height: 1.45; margin: 8px 0; }
.leise { color: var(--leise); }
.klein-text { font-size: 14px; }
.unterzeile { color: var(--leise); font-size: 15px; margin: 0 0 14px; }

/* ---------- Karten ---------- */
.karte { background: var(--weiss); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--schatten); }
.karte.rand-links { border-left: 6px solid var(--akzent); }
.status { background: var(--schwarz); color: #fff; border-radius: 20px; padding: 18px 20px 18px 22px; margin: 14px 0; position: relative; overflow: hidden; box-shadow: inset 8px 0 0 var(--akzent); }
.status .etikett { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent); }
.status .titel { display: block; font-size: 24px; font-weight: 700; margin: 4px 0 2px; }
.status .sub { color: #D6D6D2; font-size: 16px; }
.status.aus { background: var(--weiss); color: var(--text); box-shadow: var(--schatten); }
.status.aus .sub { color: var(--leise); }
.status.aus .etikett { color: var(--leise); }
.status.aus { box-shadow: var(--schatten), inset 8px 0 0 var(--linie); }

.hinweis { background: var(--akzent-hell); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; border-left: 6px solid var(--akzent); }
.hinweis.rot { background: var(--rot-hell); border-left-color: var(--rot); }
.hinweis.gruen { background: var(--gruen-hell); border-left-color: var(--gruen); }
.hinweis.blau { background: var(--blau-hell); border-left-color: var(--blau); }
.hinweis b:first-child { display: block; margin-bottom: 2px; }
.offen { color: var(--rot); font-weight: 600; }

/* ---------- Knöpfe ---------- */
button, .knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; border: 0; border-radius: var(--radius); padding: 16px 18px; margin: 10px 0;
  font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--akzent); color: var(--akzent-text); transition: transform .06s, background .15s;
}
button:active { transform: scale(.985); }
button:hover { background: var(--akzent-tief); }
button.dunkel { background: var(--schwarz); color: #fff; }
button.dunkel:hover { background: #2C2F34; }
button.rand, button.hell { background: var(--weiss); color: var(--text); box-shadow: inset 0 0 0 2px var(--schwarz); }
button.rand:hover, button.hell:hover { background: #F0F0EC; }
button.gruen { background: var(--gruen); color: #fff; }
button.rot { background: var(--rot); color: #fff; }
button.textknopf { background: none; color: var(--text); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; font-weight: 500; font-size: 16px; box-shadow: none; }
button.textknopf:hover { background: none; color: var(--akzent-tief); }
button.klein { display: inline-flex; width: auto; min-height: 40px; padding: 8px 14px; font-size: 15px; margin: 4px 6px 4px 0; border-radius: 12px; }
button:disabled { opacity: .45; cursor: default; transform: none; }
.knopfzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.knopfzeile button { margin: 0; }
.knopf .unter { display: block; font-size: 14px; font-weight: 400; opacity: .8; }
.knopf-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

/* ---------- Eingaben ---------- */
label { display: block; margin: 14px 0 6px; font-weight: 600; }
input:not([type]), input[type=text], input[type=number], input[type=search], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 18px; padding: 13px 14px; border: 2px solid var(--linie); border-radius: 12px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--schwarz); outline: none; }
.wahl { display: flex; align-items: center; gap: 12px; border: 2px solid var(--linie); border-radius: var(--radius); padding: 14px 16px; margin: 8px 0; background: #fff; cursor: pointer; font-weight: 500; min-height: 60px; }
.wahl input { width: 22px; height: 22px; accent-color: var(--schwarz); flex: 0 0 auto; margin: 0; }
.wahl .inhalt { flex: 1; }
.wahl small { display: block; color: var(--leise); font-weight: 400; margin-top: 2px; }
.wahl .meter { font-weight: 700; color: var(--text); white-space: nowrap; }
.wahl.gewaehlt { border-color: var(--schwarz); background: var(--akzent-hell); }
.wahl.nah .meter { color: var(--gruen); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { border: 2px solid var(--linie); background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 600; cursor: pointer; font-size: 15px; width: auto; min-height: 0; margin: 0; color: var(--text); }
.chip.aktiv { border-color: var(--schwarz); background: var(--schwarz); color: #fff; }
.chip:hover { background: #F0F0EC; }
.chip.aktiv:hover { background: #2C2F34; }

/* ---------- Heute-Liste ---------- */
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: grid; grid-template-columns: 62px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.verlauf li:last-child { border-bottom: 0; }
.verlauf .zeit { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 18px; }
.verlauf .was { font-weight: 600; }
.verlauf .wo { color: var(--leise); font-size: 15px; grid-column: 2; }
.verlauf .alt { text-decoration: line-through; color: var(--leise); font-weight: 400; font-size: 14px; margin-left: 4px; }
.marke-klein { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--akzent-hell); color: var(--text); margin: 4px 6px 0 0; }
.marke-klein.blau { background: var(--blau-hell); }
.marke-klein.rot { background: var(--rot-hell); color: var(--rot); }
.marke-klein.gruen { background: var(--gruen-hell); color: var(--gruen); }
.marke-klein.lila { background: var(--lila-hell); color: var(--lila); }

/* ---------- Leiste unten (Handy) ---------- */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--weiss); border-top: 1px solid var(--linie);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.leiste button { flex: 1; max-width: 160px; margin: 0; border-radius: 0; min-height: 64px; background: none; color: var(--leise);
  flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; padding: 8px 4px; }
.leiste button svg { width: 26px; height: 26px; }
.leiste button.aktiv { color: var(--text); }
.leiste button.aktiv svg { color: var(--akzent-tief); }
.leiste button:hover { background: #F7F7F4; }
.leiste .punkt { position: absolute; margin-left: 22px; margin-top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); }

/* ---------- Meldung ---------- */
.meldung {
  position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 60; max-width: 540px; margin: 0 auto;
  background: var(--schwarz); color: #fff; padding: 14px 16px; border-radius: var(--radius); font-size: 16px; box-shadow: 0 8px 26px #0005;
  border-left: 6px solid var(--akzent);
}
.meldung.fehler { border-left-color: #FF6B5E; }
body.breit .meldung { bottom: 18px; }

/* ---------- Kalender ---------- */
.monatkopf { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; }
.monatkopf button { width: 48px; min-height: 48px; margin: 0; padding: 0; font-size: 24px; }
.monatkopf h2 { margin: 0; }
.kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kalender .wt { text-align: center; font-size: 13px; font-weight: 600; color: var(--leise); padding: 4px 0; }
.kalender .tag { aspect-ratio: 1 / 1.08; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 600; font-variant-numeric: tabular-nums; position: relative; border: 2px solid transparent; cursor: pointer; padding: 0; min-height: 0; margin: 0; color: var(--text); font-size: 17px; }
.kalender .tag:hover { background: #fff; filter: brightness(.97); }
.kalender .tag.leer { background: none; cursor: default; }
.kalender .tag.frei { background: #ECECE7; color: var(--leise); }
.kalender .tag.heute { border-color: var(--schwarz); }
.kalender .tag .p { width: 6px; height: 6px; border-radius: 50%; background: var(--schwarz); margin-top: 3px; }
.kalender .tag.urlaub { background: #CDEBD8; }
.kalender .tag.krank { background: #F7CFCB; }
.kalender .tag.zeitausgleich { background: #D4E2F5; }
.kalender .tag.arzt, .kalender .tag.pflegeurlaub { background: #E3D7F3; }
.kalender .tag.feiertag { background: var(--akzent-hell); color: var(--akzent-tief); }
.kalender .tag.lernen { background: #FFE9A8; color: #6b5200; }
.kalender .tag.sonst { background: #EFE6C9; }
.kalender .tag.geplant { background-image: repeating-linear-gradient(135deg, transparent 0 6px, #ffffff99 6px 9px); }
.kalender .tag.gemeldet::after { content: '?'; position: absolute; top: 2px; right: 6px; font-size: 11px; }
.legende-k { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--leise); margin: 12px 0; }
.legende-k i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }

/* ---------- Film / Begrüßung ---------- */
.vorhang { position: fixed; inset: 0; z-index: 100; background: #0B0C0D; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.vorhang video { width: 100%; max-width: 900px; border-radius: 12px; background: #000; }
.vorhang h1 { font-size: 28px; font-weight: 900; letter-spacing: .02em; margin: 22px 0 6px; text-transform: uppercase; }
.vorhang p { color: #D6D6D2; margin: 0 0 18px; }
.vorhang button { max-width: 360px; }
.vorhang .ueberspringen { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: auto; min-height: 40px; padding: 8px 16px; font-size: 15px; background: #ffffff22; color: #fff; }
.vorhang.ruhig { background: var(--grund); color: var(--text); }
.vorhang.ruhig p { color: var(--leise); }
.vorhang img.gross { width: 220px; max-width: 60vw; }
.vorhang .langsam { animation: auftauchen .9s ease both; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Anmelden ---------- */
.start-logo { display: block; width: 180px; margin: 18px auto 8px; }
.mitte { text-align: center; }

/* ---------- Fotos ---------- */
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.fotos img, .fotos .pdf { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid var(--linie); }
.fotos .pdf { display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* =====================================================================
   Büro (breit)
   ===================================================================== */
body.breit { background: var(--grund); }
body.breit .kopf { padding: 0 24px; }
.bkopf { max-width: 1440px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 16px 26px; flex-wrap: wrap; padding: 12px 0; }
.bkopf .marke img { height: 44px; }
.bkopf .titel { display: flex; flex-direction: column; }
.bkopf .titel strong { font-size: 16px; }
.bkopf .titel span { font-size: 13px; color: var(--leise); }
.bkopf nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.bkopf nav button { width: auto; min-height: 38px; padding: 7px 11px; font-size: 14px; margin: 0; border-radius: 10px; background: none; color: var(--text); font-weight: 600; position: relative; }
.bkopf nav button:hover { background: #F0F0EC; }
.bkopf nav button.aktiv { background: var(--schwarz); color: #fff; }
.bkopf nav button .zahl { display: inline-block; background: var(--orange); color: var(--schwarz); border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 6px; font-weight: 700; }
.bkopf .wer { display: flex; align-items: center; gap: 10px; font-size: 14px; }
body.breit main { max-width: 1440px; padding: 22px 24px 60px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--schatten); border: 0; text-align: left; display: block; min-height: 0; margin: 0; color: var(--text); font-weight: 400; cursor: pointer; }
.kpi:hover { background: #fff; outline: 2px solid var(--linie); }
.kpi span { display: block; font-size: 13px; font-weight: 600; color: var(--leise); }
.kpi strong { display: block; font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi small { color: var(--leise); font-size: 12px; }
.kpi.warn strong { color: var(--orange-tief); }
.kpi.rot { background: #fff; color: var(--text); }
.kpi.rot strong { color: var(--rot); }
.kpi.gut strong { color: var(--gruen); }
.spalten { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .spalten { grid-template-columns: 1fr; } }
.tafel { background: #fff; border-radius: 16px; box-shadow: var(--schatten); padding: 16px 18px; margin-bottom: 20px; }
.tafel > h2:first-child, .tafel > .tafelkopf h2 { margin-top: 0; }
.tafelkopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tafelkopf h2 { margin: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { background: #F7F7F4; position: sticky; top: 0; font-size: 13px; font-weight: 700; color: var(--leise); white-space: nowrap; }
tr.filter th { background: #fff; padding: 4px 6px; top: 34px; }
tr.filter input, tr.filter select { font-size: 13px; padding: 5px 8px; border-width: 1px; border-radius: 8px; min-width: 60px; }
tbody tr:hover td { background: #FAFAF7; }
tr.pruefen td { background: #FFF6EC; }
tr.klickbar { cursor: pointer; }
tr.gestrichen td { text-decoration: line-through; color: var(--leise); }
.tabelle { overflow: auto; border-radius: 12px; border: 1px solid var(--linie); max-height: 70vh; }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile > * { flex: 0 0 auto; }
.zeile label { margin: 0; }
body.breit input:not([type]), body.breit input[type=text], body.breit input[type=number], body.breit input[type=search], body.breit input[type=date], body.breit input[type=time], body.breit select, body.breit textarea { font-size: 15px; padding: 8px 10px; border-radius: 10px; }
body.breit button { font-size: 16px; min-height: 44px; padding: 10px 16px; }
body.breit button.klein { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.code { font-size: 34px; letter-spacing: .2em; font-family: ui-monospace, monospace; background: var(--akzent-hell); padding: 10px 16px; border-radius: 10px; display: inline-block; font-weight: 700; }
.pruefkarte { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.pruefkarte .kopfzeile { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.pruefkarte .grund { color: var(--leise); font-size: 14px; margin: 4px 0 8px; }
.leer-hinweis { color: var(--leise); padding: 18px 0; text-align: center; }

/* Tagesfenster */
.schicht { position: fixed; inset: 0; background: #17191C88; z-index: 50; display: flex; justify-content: flex-end; }
.fenster { background: var(--grund); width: min(980px, 100%); height: 100%; overflow: auto; padding: 22px 26px; box-shadow: -10px 0 40px #0004; animation: rein .2s ease; }
@keyframes rein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.fenster .kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fenster h2 { font-size: 22px; margin: 0; }
.tagzeile td { vertical-align: middle; }
.tagzeile select, .tagzeile input[type=time] { width: auto; }
.tagzeile.neu td { background: var(--gruen-hell); }
.tagzeile.geaendert td { background: #FFF6EC; }
.zeitleiste { position: relative; height: 34px; background: #fff; border-radius: 8px; margin: 10px 0 4px; overflow: hidden; border: 1px solid var(--linie); }
.zeitleiste div { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #17191C; overflow: hidden; white-space: nowrap; border-right: 1px solid #fff; }
.zeitleiste .b { background: #F3C9A2; } .zeitleiste .m { background: #D9C8F0; } .zeitleiste .i { background: #C8DAF2; } .zeitleiste .g { background: #ECECE7; color: var(--leise); } .zeitleiste .x { background: repeating-linear-gradient(135deg, #F7CFCB 0 6px, #fff 6px 10px); }
.skala { display: flex; justify-content: space-between; font-size: 11px; color: var(--leise); }

/* Karte im Büro (F9.8) */
.kartenfeld { height: 560px; border-radius: 12px; overflow: hidden; margin: 10px 0; background: #eceff1; }
.kartenfeld.punkt { height: 420px; }
body.karte-gross main { max-width: none; }
body.karte-gross .kartenfeld:not(.punkt) { height: max(640px, calc(100vh - 150px)); }
.legende { display: inline-flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14px; color: var(--leise); }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px #0002; }
.maplibregl-popup-content { font-size: 14px; line-height: 1.4; font-family: Rubik, system-ui, sans-serif; }

/* Kalender kurz/lang im Büro */
.wochen { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.wochen button { min-height: 54px; margin: 0; padding: 6px; flex-direction: column; gap: 0; font-size: 14px; border-radius: 10px; }
.wochen button small { font-weight: 400; font-size: 11px; opacity: .8; }
.wochen button.kurz { background: #fff; box-shadow: inset 0 0 0 2px var(--linie); color: var(--text); }
.wochen button.lang { background: var(--schwarz); color: #fff; }
.wochen button.fehlt { background: var(--rot-hell); color: var(--rot); }
.wochen button.vorschlag { outline: 3px dashed var(--orange); outline-offset: -3px; }
[hidden] { display: none !important; }
body.breit td select { min-width: 140px; }
body.breit td:first-child { white-space: nowrap; }
.wochen button.vergangen { opacity: .45; }

/* Dringend: Arbeitsunfall (oben auf jeder Büro-Seite) */
#dringend:empty { display: none; }
#dringend { padding: 10px 24px 0; max-width: 1400px; margin: 0 auto; }
.dringend { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--rot); color: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; box-shadow: var(--schatten); }
.dringend-text { display: flex; flex-direction: column; gap: 4px; min-width: 260px; flex: 1; }
.dringend-text b { font-size: 17px; }
.dringend-text small { opacity: .92; line-height: 1.45; }
.dringend-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.dringend .klein.rand { background: transparent; color: #fff; border-color: #fff; }
.dringend .klein.dunkel { background: #fff; color: var(--rot); }
.tafel.rot-rand { border-left: 5px solid var(--rot); }
.schicht.klein-fenster { justify-content: center; align-items: center; }
.schicht.klein-fenster .fenster { height: auto; border-radius: 16px; }

/* Buchungen: Monat eines Mitarbeiters */
.buchungskopf { gap: 8px; }
.buchungskopf .trenner { flex: 1; }
.monatsgitter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.monatsgitter .wtag { font-size: 12px; font-weight: 700; color: var(--leise); text-align: center; }
.ktag { min-height: 78px; margin: 0; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--linie); color: var(--text); font-weight: 400; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 12px; cursor: pointer; box-shadow: none; }
.ktag b { font-size: 15px; }
.ktag span { line-height: 1.3; }
.ktag .marke-klein { margin: 2px 0 0; font-size: 11px; padding: 1px 6px; }
.ktag.leer { background: transparent; border: 0; cursor: default; }
.ktag.frei { background: var(--grund); color: var(--leise); }
.ktag.feiertag { background: var(--akzent-hell); }
.ktag.k-gut { border-left: 4px solid var(--gruen); }
.ktag.k-blau { border-left: 4px solid var(--blau); background: var(--blau-hell); }
.ktag.k-orange { border-left: 4px solid var(--orange-tief); }
.ktag.k-rot { border-left: 4px solid var(--rot); background: var(--rot-hell); }
.ktag.zukunft { opacity: .6; }
.ktag.gewaehlt { outline: 3px solid var(--text); outline-offset: 1px; }
.ktag:hover { background: #fff; outline: 2px solid var(--linie); }
.marke-klein.orange { background: #FDE8D3; color: var(--orange-tief); }
.buchungstag { margin-top: 16px; }

/* Techniker: Stunden zuordnen */
.wahl.zusatz { border-color: var(--text); }
.tagnav { justify-content: space-between; margin: 4px 0 10px; }
.projektzeile { display: flex; align-items: center; gap: 10px; cursor: default; }
.projektzeile .inhalt { flex: 1; }
.projektzeile .klein { min-width: 44px; margin: 0; }
.stern { background: transparent; border: 0; box-shadow: none; color: #C9C6BB; font-size: 24px; padding: 0 4px; margin: 0; min-height: 44px; width: auto; }
.stern.an { color: var(--orange); }
.stern:hover { background: transparent; }
.zuordnung { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin: 8px 0; box-shadow: var(--schatten); }
.zuordnung .inhalt { flex: 1; font-weight: 600; }
.zuordnung .inhalt small { display: block; font-weight: 400; color: var(--leise); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper b { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .klein { min-width: 40px; margin: 0; }
.zuordnung .textknopf { width: auto; margin: 0; padding: 0 6px; }
.gut-text { color: var(--gruen); }
.status.offen-rand { box-shadow: inset 5px 0 0 var(--orange), var(--schatten); }
table.modellplan input { width: auto; }
.bueroblock small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--akzent); }
.bueroblock b { display: block; font-size: 20px; margin: 4px 0; }
.bueroblock span { display: block; }
.bueroblock .leise { color: #ffffffb3; }

/* Fotos, Lieferscheine, Barauslagen */
.belegreihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.belegreihe button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 72px; margin: 0; font-size: 14px; }
.belegreihe svg { width: 24px; height: 24px; }
button svg { vertical-align: middle; }
#kamera svg, #scannen svg { width: 22px; height: 22px; margin-right: 6px; }
.scanfeld { background: var(--schwarz); border-radius: 16px; padding: 8px; margin: 10px 0; touch-action: none; }
.scanfeld canvas { width: 100%; height: auto; display: block; border-radius: 10px; touch-action: none; }
.seiten { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 10px; }
.seiten figure { margin: 0; position: relative; flex: 0 0 auto; text-align: center; }
.seiten img { height: 120px; width: auto; border-radius: 8px; box-shadow: var(--schatten); display: block; background: #fff; }
.seiten figcaption { font-size: 12px; color: var(--leise); margin-top: 4px; }
.seiten button { position: absolute; top: 4px; right: 4px; min-width: 32px; min-height: 32px; padding: 0; margin: 0; background: #fff; }
.zeile-liste { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.zeile-liste:last-child { border-bottom: 0; }
.zeile-liste small { display: block; color: var(--leise); }
.belegraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.belegkarte { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.belegkarte.fehler { border-color: var(--rot); }
.belegkarte img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block; background: var(--grund); }
.belegkarte .pdfkachel { height: 160px; border-radius: 8px; background: var(--grund); display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: var(--text); gap: 4px; text-align: center; padding: 6px; }
.belegkarte .belegtext { font-size: 13px; }
.belegkarte select { width: 100%; font-size: 13px; }
.knopf-link { display: inline-block; background: var(--akzent); color: var(--text); font-weight: 700; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.teilwahl button { width: auto; margin: 0; }

/* Suchfeld vor langen Auswahllisten (Projekte, Fahrzeuge, Mitarbeiter) */
input.selsuche { display: block; width: 100%; margin: 0 0 4px; padding: 6px 10px; font-size: 0.95em; }
td input.selsuche, .zeile input.selsuche { min-width: 180px; }
input.selsuche.nichts { border-color: #c0392b; background: #fdecea; }

/* Formularraster (Einberufung) */
.formraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 14px; }
.formraster label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9em; }

/* Pausen (F23) */
.status.pause { background: #2f5f8a; }
.status.pause .etikett { color: #cfe3f5; }
.pausenzeile { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.pausenzeile input[type=time] { flex: 1; min-width: 0; }
.hinweis.gut { background: var(--gruen-hell); border-color: var(--gruen); }

pre.bmdtext { background: #fff; border: 1px solid var(--linie, #ddd); border-radius: 10px; padding: 12px 14px; font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre; overflow: auto; max-height: 70vh; }

.monatsliste td, .monatsliste th { white-space: nowrap; }
.monatsliste td.zahl, .monatsliste th.zahl, table th.zahl, table td.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.monatsliste tr.zeile-offen td { background: #fbebeb; }
.monatsliste tr.wochenende td:first-child { color: var(--leise, #777); }
.monatsliste tfoot th { border-top: 2px solid #333; }
tr.klickbar { cursor: pointer; } tr.klickbar:hover td { background: #f3f1ec; } tr.gewaehlt td { background: #e7f1fb; }
.kennzahlen { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; } .kennzahlen .kz { background: #fff; border-radius: 12px; padding: 10px 14px; min-width: 160px; border: 1px solid #e6e3dc; }
.kennzahlen .kz b { display: block; font-size: 22px; } .kennzahlen .kz span { font-size: 12px; color: #666; } .kennzahlen .kz.offen b { color: #b42318; }
.dreispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
@media print {
  header, nav, .nicht-drucken, #dringend, .knopf, button { display: none !important; }
  body { background: #fff; } .tafel { box-shadow: none; border: 0; padding: 0; }
  .monatsliste { font-size: 10px; } .monatsliste tr.zeile-offen td { background: none; }
}
#tf-korrekturen { background: #f9eeda; border-radius: 12px; padding: 10px 14px; margin: 10px 0; } #tf-korrekturen [data-oeffne] { display: none; } #tf-korrekturen h3 { margin: 0 0 6px; }
.kopfzeile a.knopf, a.knopf.klein { display: inline-block; width: auto; }

/* Firmen-Tablet (F6.1) */
body.tablet .kopf { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.tuhr { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tkarte { max-width: 560px; margin: 20px auto; background: #fff; border-radius: 20px; padding: 24px; text-align: center; }
.tkarte h1 { font-size: 30px; margin: 0 0 12px; }
.tanzeige { font-size: 40px; letter-spacing: 8px; padding: 12px; border: 2px solid #e6e3dc; border-radius: 14px; margin-bottom: 16px; min-height: 60px; }
.ttasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ttasten button { font-size: 32px; padding: 18px 0; margin: 0; }
.tknoepfe { display: grid; gap: 12px; margin: 16px 0; }
button.gross { font-size: 26px; padding: 22px; margin: 0; }
.tstatus { font-size: 18px; color: #555; }
.tliste { width: 100%; font-size: 19px; margin-bottom: 14px; }
.tfertig .haken { font-size: 90px; color: #1a7f37; line-height: 1; }
.kzeile { padding: 10px 12px; margin: 8px 0; } .kzeile-kopf { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .kzeile-kopf select { flex: 1; } .kzeile-kopf input[type=time] { width: 120px; }
