/* Plantafel */
.leiste { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--flaeche); border-bottom: 1px solid var(--linie); flex-wrap: wrap; flex: none; }
.leiste .platz { flex: 1; }
.datumwahl { display: flex; gap: 4px; align-items: center; }
.datumwahl input { width: 150px; }
.datumwahl b { margin: 0 6px; white-space: nowrap; }
.suche { width: 230px; }
.warnungen { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px; flex: none; border-bottom: 1px solid var(--linie); background: var(--flaeche2); font-size: 13px; align-items: center; min-height: 38px; }
.warn { min-height: 26px; padding: 2px 10px; border-radius: 99px; font-size: 13px; text-align: left; }
.warn.fehler { background: var(--fehler-bg); border-color: var(--fehler); color: var(--fehler); font-weight: 600; }
.warn.hinweis { background: var(--hinweis-bg); border-color: var(--hinweis); color: var(--hinweis); }
.alles-gut { color: var(--gut); font-weight: 600; }
.zaehler { margin-left: auto; color: var(--leise); white-space: nowrap; }
.tafel { flex: 1; min-height: 0; overflow: auto; position: relative; background: var(--flaeche); --h: 80px; }
.kopfzeile, .reihe { display: flex; width: max-content; min-width: 100%; }
.kopfzeile { position: sticky; top: 0; z-index: 6; background: var(--flaeche2); border-bottom: 1px solid var(--linie); }
.ecke, .fzname { position: sticky; left: 0; z-index: 5; width: 132px; flex: none; background: var(--flaeche2); border-right: 1px solid var(--linie); padding: 5px 10px; }
.ecke { font-size: 12px; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; line-height: 18px; }
.stunden { position: relative; height: 28px; flex: none; }
.stunden span { position: absolute; top: 0; font-size: 12px; color: var(--leise); padding: 5px 0 0 5px; border-left: 1px solid var(--linie); height: 28px; }
.reihe { border-bottom: 1px solid var(--linie2); }
.reihe.offen { border-bottom: 2px solid var(--linie); }
.reihe.offen .fzname, .reihe.offen .spur { background-color: var(--hinweis-bg); }
.reihe.aus .fzname b { text-decoration: line-through; color: var(--leise); }
.reihe.ziel .spur { background-color: rgba(237, 221, 150, .45); }
.spur { position: relative; flex: none; background-image: linear-gradient(to right, var(--linie2) 1px, transparent 1px); background-size: var(--h) 100%; }
.fzname b { font-size: 15px; display: block; white-space: nowrap; }
.fzname small { display: block; color: var(--leise); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Jede Fahrt ist ein Schild: blasse Fläche über die ganze Beschriftung, i = kräftiger Teil in der echten Dauer der Fahrt */
.tafel { --stark: 34%; }
@media (prefers-color-scheme: dark) { .tafel { --stark: 0%; } }
.balken { position: absolute; width: max-content; border-radius: 7px; padding: 5px 10px 0 10px; font-size: 13px; line-height: 1.3; white-space: nowrap; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; color: var(--text); z-index: 2; }
.balken em, .balken span { display: block; font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.balken span { font-size: 11.5px; opacity: .8; }
.balken span.ort { font-weight: 650; opacity: 1; }
.balken span.ziel { opacity: 1; }
.balken.normal { background: color-mix(in srgb, var(--normal) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--normal-r) 60%, transparent); }
.balken.kranken { background: color-mix(in srgb, var(--kranken) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kranken-r) 60%, transparent); }
.balken.rechnung { background: color-mix(in srgb, var(--rechnung) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rechnung-r) 60%, transparent); }
.balken i { position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; border-radius: 7px; border: 1px solid; border-left-width: 4px; }
.balken.normal i { background: color-mix(in srgb, var(--normal-r) var(--stark), var(--normal)); border-color: var(--normal-r); }
.balken.kranken i { background: color-mix(in srgb, var(--kranken-r) var(--stark), var(--kranken)); border-color: var(--kranken-r); }
.balken.rechnung i { background: color-mix(in srgb, var(--rechnung-r) var(--stark), var(--rechnung)); border-color: var(--rechnung-r); }
.balken.s-unterwegs em { font-weight: 650; }
.balken.s-unterwegs i { box-shadow: 0 0 0 2px var(--text); }
.balken.s-erledigt { opacity: .55; }
.balken.s-ausgefallen, .balken.s-storniert { opacity: .55; text-decoration: line-through; }
.balken.s-ausgefallen i, .balken.s-storniert i { background: var(--flaeche2); border-color: var(--leise); }
.balken.k-hinweis { box-shadow: inset 0 0 0 2px var(--hinweis); }
.balken.k-fehler { box-shadow: inset 0 0 0 2px var(--fehler); }
.balken.k-fehler i { border-color: var(--fehler); box-shadow: 0 0 0 1px var(--fehler); }
.balken.zieht { z-index: 20; cursor: grabbing; opacity: .95; box-shadow: var(--schatten), inset 0 0 0 1px var(--leise); }
.balken.blink { animation: blink .45s 5; }
@keyframes blink { 50% { box-shadow: 0 0 0 4px var(--marke-tief); } }
@media (prefers-reduced-motion: reduce) { .balken.blink { animation: none; box-shadow: 0 0 0 4px var(--marke-tief); } }
.jetzt { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--jetzt); pointer-events: none; z-index: 3; }
.liste { flex: 1; min-height: 0; overflow: auto; background: var(--flaeche); padding: 0 12px 40px; }
.liste h3 { display: none; }
.verlauf { font-size: 13px; border-top: 1px solid var(--linie); margin-top: 8px; padding-top: 8px; }
.verlauf div { padding: 2px 0; }
#kundennotiz { background: var(--hinweis-bg); color: var(--hinweis); border-radius: 7px; padding: 6px 10px; margin: -4px 0 10px; font-size: 13.5px; }
.legende { display: flex; gap: 10px; align-items: center; }
@media print {
  body { background: #fff; color: #000; display: block; font-size: 11pt; }
  .kopf, .leiste, .warnungen, .tafel, .testband, dialog, #toast { display: none !important; }
  #liste.versteckt, .liste { display: block !important; overflow: visible; padding: 0; }
  .liste h3 { display: block; font-size: 14pt; margin: 0 0 8pt; }
  td, th { padding: 3pt 5pt; border-bottom: .5pt solid #999; }
  .marker { border: 0; padding: 0; background: none !important; font-weight: 400; font-size: inherit; }
}

/* Angebote: noch keine Buchung – gestrichelt, eigene Zeile, zählen nirgends mit */
.reihe.angebote { border-bottom: 1px dashed var(--leise); }
.reihe.angebote .fzname, .reihe.angebote .spur { background-color: var(--flaeche2); }
.balken.s-angebot { background: transparent; box-shadow: none; outline: 1.5px dashed var(--leise); outline-offset: -1px; cursor: pointer; }
.balken.s-angebot i { background: transparent !important; border-style: dashed; }
.angebotbox { background: var(--hinweis-bg); color: var(--hinweis); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.angebotbox span { flex: 1 1 240px; }

/* Hinweise, die der Funker nicht übersehen darf: Meldungen von Mumiie, offene Fahrten kurz vor der Abholzeit */
.meldungen { display: flex; gap: 6px; flex-wrap: wrap; padding: 7px 12px; flex: none; background: var(--fehler-bg); border-bottom: 1px solid var(--fehler); }
.meld { display: inline-flex; border-radius: 99px; overflow: hidden; border: 1.5px solid var(--fehler); background: var(--flaeche); }
.meld button { border: 0; border-radius: 0; background: transparent; min-height: 28px; padding: 2px 11px; font-size: 13px; font-weight: 650; color: var(--fehler); text-align: left; }
.meld.neu { border-color: var(--hinweis); }
.meld.neu button { color: var(--hinweis); }
.meld button.ok { border-left: 1.5px solid currentColor; font-weight: 500; }
.meld.dringend { animation: dringend 1.2s steps(2, jump-none) infinite; }
@keyframes dringend { 50% { box-shadow: 0 0 0 3px var(--fehler); } }
@media (prefers-reduced-motion: reduce) { .meld.dringend { animation: none; box-shadow: 0 0 0 2px var(--fehler); } }
@media print { .meldungen { display: none !important; } }

/* Fahrer-Schritte, Schein und Zuzahlung */
.balken.s-anfahrt i { box-shadow: 0 0 0 2px var(--marke-tief); }
.balken u { text-decoration: none; background: var(--fehler); color: #fff; border-radius: 4px; padding: 0 4px; font-size: 10.5px; font-weight: 700; }
.vhinweis { background: var(--kranken); border: 1px solid var(--kranken-r); border-radius: 7px; padding: 6px 10px; margin: -2px 0 10px; font-size: 13.5px; }
.vhinweis.knapp { background: var(--hinweis-bg); border-color: var(--hinweis); color: var(--hinweis); }
.vhinweis.info { background: var(--flaeche2); border-color: var(--linie); }
.vhinweis button { margin: 4px 0 2px; }
#ablaufhinweis { color: var(--hinweis); font-weight: 600; white-space: nowrap; }
