/* Felder & Hof › Fahrzeuge › Seite je Fahrzeug (15.11.2026, js/hw-fahrzeugseite.js). Ganze Seite im Reiter wie die Feldseite
   (Zweig rollrasen-feldansicht): oben „‹ Felder & Hof“, Name ▾, „‹ 2 von 7 ›“; eine Karte mit drei Zahlen, Tabellen mit Kopf, rechts
   Seitenteil. Eigene Klassen hwfzs-*; Säulen und Balken (hwf-fs-monate, hwf-fs-arten) aus hw-felder.css. Nach hw-felder.css laden. */
#hwfzs-bereich { display: none; }
#tab-baustellen.hwfzs-an .bau-panel > .dash-header, #tab-baustellen.hwfzs-an #hwf-bereich, #tab-baustellen.hwfzs-an #hwfza-bereich,
#tab-baustellen.hwfzs-an #bau-body { display: none; }
#tab-baustellen.hwfzs-an #hwfzs-bereich { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.hwfzs-seite { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
/* 16.11. (Lars: „in dem Fenster scrollen, das sollte so nicht sein“): am PC passt die Seite ins Fenster. Die Karte nimmt die Höhe bis
   unten, „Zuletzt benutzt“ füllt den Rest und zeigt nur ganze Zeilen (js: _hwfzsEinpassen). Schmal (eine Spalte) scrollt die Seite. */

/* Kopfzeile: Zurück-Knopf, Blättern und Kacheln kommen von der Feldseite (hwfFsKopfHtml, .hwf-fs-* in hw-felder.css, 18.11.).
   Hier nur, was es dort nicht gibt: neben dem Zurück-Knopf leise Symbol, Kennzeichen und wofür. */
.hwfzs-neben { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.hwfzs-symbol { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 8px; background: var(--primary-pale); color: var(--primary); }
html.dark .hwfzs-symbol { background: rgba(255, 255, 255, .06); color: var(--text); }
.hwfzs-untertitel { font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* 23.11. (Lars: „so viele Texte, so viel Schrift … auf sehr viel Weiß“): statt einer großen weißen Karte kleine Karten auf dem
   grauen Grund – oben vier Kacheln, darunter links die Einsätze (scrollen, rasten je Zeile ein), rechts Mängel, Karte, Daten. */
.hwfzs-seite { gap: 10px; }
.hwfzs-kacheln { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hwfzs-k, .hwfzs-kasten { background: var(--card-bg, #fff); border-radius: 12px; min-width: 0; }
html.dark .hwfzs-k, html.dark .hwfzs-kasten { background: var(--card-bg, #1f2327); }
.hwfzs-k { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 16px 13px; }
.hwfzs-k-titel { font-size: 12.5px; color: var(--text-muted); }
.hwfzs-k-wert { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 6px; margin-left: -6px; }   /* 24.11. (Lars): Platz für den Ring um den Punkt vor „In Betrieb“, Text bleibt bündig */
.hwfzs-k-unter { font-size: 13px; color: var(--text-muted); overflow: hidden; overflow-wrap: anywhere;   /* 24.11. (Lars): nicht abschneiden – höchstens zwei Zeilen */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.hwfzs-k--warn { background: color-mix(in srgb, var(--hwfz-hinweis, #A85F17) 9%, var(--card-bg, #fff)); }
html.dark .hwfzs-k--warn { background: color-mix(in srgb, var(--hwfz-hinweis, #E0913A) 12%, var(--card-bg, #1f2327)); }
.hwfzs-k--warn .hwfzs-k-titel, .hwfzs-k--warn .hwfzs-k-wert { color: var(--hwfz-hinweis); }
.hwfzs-k--mini { padding-right: 120px; }
.hwfzs-mini { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: flex-end; gap: 3px; height: 32px; width: 96px; justify-content: flex-end; }
.hwfzs-mini i { flex: 0 1 6px; min-width: 3px; border-radius: 2px; background: var(--primary); opacity: .28; }
.hwfzs-mini i.hwfzs-mini-jetzt { opacity: 1; }
html.dark .hwfzs-mini i { background: #ea7535; }

.hwfzs-raster { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; }
.hwfzs-kasten { padding: 12px 16px 14px; }
.hwfzs-kasten-titel { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.hwfzs-einsaetze { display: flex; flex-direction: column; min-height: 0; padding-bottom: 6px; }
.hwfzs-verlauf { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: thin; }
/* Einsätze als Fahrtenbuch (24.11. von Lars gewählt). Spalten eng beieinander: Name, von – bis, Dauer, Ort */
.hwfzs-b { display: grid; grid-template-columns: minmax(120px, 210px) 118px 104px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 30px;
  font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; scroll-snap-align: start; }
.hwfzs-b-wer { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwfzs-b-zeit { white-space: nowrap; }
.hwfzs-b-dauer { white-space: nowrap; color: var(--text-muted); }
.hwfzs-b-was { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--text-muted); }
.hwfzs-b--laeuft .hwfzs-b-zeit, .hwfzs-b--laeuft .hwfzs-b-dauer { color: #b4480f; font-weight: 600; }
html.dark .hwfzs-b--laeuft .hwfzs-b-zeit, html.dark .hwfzs-b--laeuft .hwfzs-b-dauer { color: #ea7535; }
.hwfzs-buchtag { padding: 6px 0 8px; border-top: 1px solid var(--border); }
.hwfzs-buchtag:first-child { border-top: 0; }
.hwfzs-buchtag-kopf { display: flex; align-items: baseline; gap: 10px; padding: 8px 0 2px; scroll-snap-align: start; }
.hwfzs-buchtag-kopf b { font-size: 14px; font-weight: 600; color: var(--text); }
.hwfzs-buchtag-kopf span { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }


.hwfzs-seitenteil { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; }
.hwfzs-seitenteil > * { flex: 0 0 auto; }
.hwfzs-karte-teil.hwfzs-kasten { padding: 0; overflow: hidden; }
/* 23.11. (Lars: „riesen Lücke unten“): die Karte füllt den freien Platz, Daten schließen unten mit den Einsätzen ab */
.hwfzs-seitenteil > .hwfzs-karte-teil { flex: 1 1 180px; display: flex; flex-direction: column; }
.hwfzs-karte-teil .hwfzs-karte-box { flex: 1 1 auto; height: auto; min-height: 180px; }
.hwfzs-abschnitt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hwfzs-abschnitt-titel { font-size: 15px; font-weight: 700; color: var(--text); }

.hwfzs-k-teil { white-space: nowrap; }
.hwfzs-inbetrieb { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.hwfzs-inbetrieb i { width: 9px; height: 9px; border-radius: 50%; background: #ea7535; box-shadow: 0 0 0 4px rgba(234, 117, 53, .18); }
html.dark .hwfzs-inbetrieb { color: var(--text); }
html.dark .hwfzs-inbetrieb i { background: #ea7535; }

/* Gerade / Zuletzt */
.hwfzs-status { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); padding: 2px 0 6px; }
.hwfzs-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); opacity: .5; }
.hwfzs-status--an { color: var(--text); }
.hwfzs-status--an i { background: #ea7535; opacity: 1; box-shadow: 0 0 0 4px rgba(234, 117, 53, .18); }
html.dark .hwfzs-status--an { color: var(--text); }
html.dark .hwfzs-status--an i { background: #ea7535; box-shadow: 0 0 0 4px rgba(234, 117, 53, .2); }
.hwfzs-zeile { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 14px; padding: 5px 0; }
.hwfzs-label { color: var(--text-muted); }
.hwfzs-wert { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.hwfzs-notiz { white-space: pre-line; color: var(--text-muted); }
.hwfzs-teil { display: block; }
.hwfzs-klein { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.hwfzs-erledigt.bau-link, .hwfzs-mangel-erledigt.bau-link {   /* 16.11. (Lars): als Knopf erkennbar, nicht wie Text */
  display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 2px; padding: 4px 10px; min-height: 28px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text);
  font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.hwfzs-erledigt.bau-link::before, .hwfzs-mangel-erledigt.bau-link::before { content: '\2713'; font-size: 12px; color: var(--primary); }
.hwfzs-erledigt.bau-link { display: flex; width: fit-content; }
.hwfzs-erledigt.bau-link:hover, .hwfzs-mangel-erledigt.bau-link:hover { border-color: var(--text-muted); }
html.dark .hwfzs-erledigt.bau-link, html.dark .hwfzs-mangel-erledigt.bau-link { background: rgba(255, 255, 255, .06); }
html.dark .hwfzs-erledigt.bau-link::before, html.dark .hwfzs-mangel-erledigt.bau-link::before { color: #ea7535; }
.hwfzs-frist--ok { font-weight: 400; color: var(--text-muted); }

/* TÜV / Wartung. 16.11. (Lars: „das mit den Farben … die sollten in dem gleichmäßigen Orange sein“): jeder Hinweis – bald fällig,
   abgelaufen, Batterie – im selben Handwerk-Orange wie „seit …“ unter „Heute“ (hw-felder.css: #A85F17, 4,9:1 auf Weiß;
   dunkel #E0913A), kein Rot, kein Dunkelorange */
:root { --hwfz-hinweis: #A85F17; }
html.dark { --hwfz-hinweis: #E0913A; }
.hwfzs-frist { font-size: 13px; font-weight: 600; white-space: nowrap; }
.hwfzs-frist--bald, .hwfzs-frist--vorbei { color: var(--hwfz-hinweis); }
.hwfza-tabelle .hwf-l-klein .hwfzs-frist { font-size: 12px; }
.hwfzs-titel-knopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hwfzs-titel-knopf .bau-link { font-size: 13px; font-weight: 600; padding: 0; }

/* 16.11. Wartungs-Balken, Zähler, Mängel, Karte (Lars: „fang mit den drei an“) */
.hwfzs-wbalken { display: block; height: 6px; margin: 5px 0 1px; border-radius: 3px; background: var(--primary-pale); overflow: hidden; max-width: 260px; }
.hwfzs-wbalken i { display: block; height: 100%; border-radius: 3px; background: var(--primary); transition: width .3s; }
.hwfzs-wbalken--faellig i { background: var(--hwfz-hinweis); }
html.dark .hwfzs-wbalken { background: rgba(255, 255, 255, .08); }
html.dark .hwfzs-wbalken i { background: var(--text-muted); }
html.dark .hwfzs-wbalken--faellig i { background: var(--hwfz-hinweis); }
/* Zähler wie am Fahrzeug: Ziffern in einem dunklen Rahmen */
.hwfzs-zaehler { font-variant-numeric: tabular-nums; }
.hwfzs-zaehler-std { color: var(--text-muted); font-size: 13px; }
.hwfzs-maengel { padding: 12px 16px 14px; border-radius: 12px; background: color-mix(in srgb, var(--hwfz-hinweis, #A85F17) 9%, var(--card-bg, #fff)); gap: 10px; }
html.dark .hwfzs-maengel { background: color-mix(in srgb, var(--hwfz-hinweis, #E0913A) 12%, var(--card-bg, #1f2327)); }
.hwfzs-maengel .hwfzs-abschnitt-titel { color: var(--hwfz-hinweis); }
.hwfzs-mangel { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
.hwfzs-mangel + .hwfzs-mangel { padding-top: 8px; border-top: 1px solid rgba(168, 95, 23, .2); }
.hwfzs-mangel-text { font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.hwfzs-mangel-wer { grid-column: 1; font-size: 12px; color: var(--text-muted); }
.hwfzs-mangel-erledigt.bau-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; border-color: rgba(168, 95, 23, .35); }
.hwfzs-mangel-fotos { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 4px; }
.hwfzs-mangel-fotos img, .hwfzs-mangel-foto-leer { display: block; width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--primary-pale); }
.hwfzs-karte-box { height: 180px; overflow: hidden; background: var(--primary-pale); }
.hwfzs-karte-box .leaflet-control-zoom a { width: 28px; height: 28px; line-height: 28px; }

/* Knapper Platz (js _hwfzsPlatz): Stufe für Stufe weglassen statt abschneiden */
.hwfzs-eng-a2 .hwfzs-karte-teil .hwfzs-karte-box { min-height: 110px; }
.hwfzs-eng-a3 .hwfzs-mangel + .hwfzs-mangel, .hwfzs-eng-a3 .hwfzs-mangel-fotos, .hwfzs-eng-a3 .hwfzs-maengel .hwfzs-klein { display: none; }
.hwfzs-eng-a4 .hwfzs-karte-teil { display: none !important; }
.hwfzs-karte-box .leaflet-control-attribution { font-size: 9px; line-height: 1.3; padding: 0 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Eintragen */
.hwfzs-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-top: 2px; }
.hwfzs-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); min-width: 0; }
.hwfzs-form input, .hwfzs-form textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 8px; min-width: 0; box-sizing: border-box; width: 100%; }
.hwfzs-form textarea { resize: vertical; min-height: 52px; }
.hwfzs-form input:focus, .hwfzs-form textarea:focus { outline: none; border-color: var(--primary); }
.hwfzs-form-breit { grid-column: 1 / -1; }
.hwfzs-form-knoepfe { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1240px) {
  .hwfzs-raster { grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr); }
  .hwfzs-k--mini { padding-right: 16px; }
  .hwfzs-mini { display: none; }   /* kleiner Mac: Säulen nur, wo Platz ist */
  .hwfzs-k-wert { font-size: 18px; }
  .hwfzs-b { grid-template-columns: minmax(0, 1fr) 104px 98px; gap: 10px; }
  .hwfzs-b-was { display: none; }
}
@media (max-width: 900px) {
  .hwfzs-seite { overflow-y: auto; }
  .hwfzs-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hwfzs-raster { flex: 0 0 auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hwfzs-verlauf { max-height: 342px; }
  .hwfzs-seitenteil { overflow: visible; }
  .hwfzs-seitenteil > .hwfzs-karte-teil { flex: 0 0 auto; }
  .hwfzs-karte-teil .hwfzs-karte-box { height: 180px; }
}
@media (max-width: 760px) {
  .hwfzs-neben { order: 5; flex-basis: 100%; }
  .hwfzs-form { grid-template-columns: minmax(0, 1fr); }
  .hwfzs-b { grid-template-columns: minmax(0, 1fr) 100px 90px; }
  .hwfzs-b-was { display: none; }
}

/* Dashboard „Zu erledigen“: TÜV/Wartung fällig (js/dashboard-galabau.js), dasselbe Orange */
.dg-fz--vorbei, .dg-fz--bald { color: var(--hwfz-hinweis); }
.hwfzs-online { color: var(--text); font-weight: 600; }
html.dark .hwfzs-online { color: var(--text); }

/* Sender-Zustand (23.11.2026): ein Satz, was zu tun ist */
.hwfzs-sender-tun { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%;
  border: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--text-muted); cursor: help; vertical-align: 1px; }
/* Foto vom Fahrzeug: 24.11. (Lars: „präsenter“, „nicht abgeschnitten“, „sauber einbauen“) – links neben den Daten im Format
   eines Handyfotos quer (4:3), so passt jedes normale Foto ohne Zuschnitt; schmale Karte: kleiner, gleiches Format */
.hwfzs-daten-mit-foto { display: grid; grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); gap: 16px; align-items: start; }
.hwfzs-daten-mit-foto > .hwfzs-daten:only-child { grid-column: 1 / -1; }
.hwfzs-foto { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--app-bg, #eef1f5); margin-top: 4px; }
.hwfzs-foto a, .hwfzs-foto img { display: block; width: 100%; height: 100%; }
.hwfzs-foto img { object-fit: cover; }
.hwfzs-eng-a2 .hwfzs-daten-mit-foto { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.hwfzs-foto--laedt { animation: hwfzs-foto-puls 1.2s ease-in-out infinite alternate; }
@keyframes hwfzs-foto-puls { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 1240px) {
  .hwfzs-daten-mit-foto { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
  .hwfzs-daten-mit-foto .hwfzs-zeile { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
}
/* Foto im Formular „Eintragen“ (24.11.) */
.hwfzs-form-foto { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); }
.hwfzs-form-foto-zeile { display: flex; align-items: center; gap: 12px; }
.hwfzs-form-foto-bild { width: 72px; height: 54px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; background: var(--app-bg, #eef1f5); }
.hwfzs-form-foto-bild--leer { display: block; border: 1.5px dashed var(--border); background: transparent; }
.hwfzs-form-foto .bau-link { font-size: 13px; font-weight: 600; padding: 0; }
/* Daten-Zeilen aufgeräumt (24.11., Lars: „unaufgeräumt“): gleiche Abstände, feine Linien, Wartung mit „Erledigt“ rechts */
.hwfzs-daten .hwfzs-zeile { padding: 8px 0; border-top: 1px solid var(--border); }
.hwfzs-daten .hwfzs-zeile:first-child { border-top: 0; padding-top: 4px; }
.hwfzs-daten .hwfzs-zeile:last-child { padding-bottom: 0; }
.hwfzs-w-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; min-width: 0; }
.hwfzs-w-haupt .hwfzs-frist { font-size: 14px; }
.hwfzs-w-haupt .hwfzs-frist--ok { color: var(--text); font-weight: 600; }
.hwfzs-w-kopf .hwfzs-erledigt.bau-link { margin: 0; padding: 2px 9px; min-height: 24px; font-size: 12.5px; flex: 0 0 auto; }
.hwfzs-daten .hwfzs-wbalken { max-width: none; height: 4px; margin-top: 6px; }
/* Karte wie im neuen Dashboard (24.11., Vorlage dashboard-galabau.css .dg-map-*): farbige Grundkarte blasser, weiße Schilder */
html:not(.dark) .hwfzs-karte-box { background: #f2efe9; }
html:not(.dark) .hwfzs-karte-box .leaflet-tile-pane { filter: saturate(.6) contrast(.88) brightness(1.05); }
.hwfzs-map-schild-huelle { background: none; border: 0; }
.hwfzs-map-schild { position: relative; display: inline-flex; align-items: baseline; gap: 6px; transform: translate(-50%, 6px); white-space: nowrap;
  padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  font: 600 13px/1.2 Inter, system-ui, sans-serif; color: #1d1d1f; }
.hwfzs-map-schild em { font-style: normal; font-weight: 500; font-size: 12px; color: #6b7480; }
.hwfzs-map-schild--hier { box-shadow: inset 3px 0 #ea7535, 0 1px 3px rgba(0, 0, 0, .18); }
.hwfzs-map-klein .hwfzs-map-schild { padding: 0; width: 12px; height: 12px; border-radius: 50%; font-size: 0; gap: 0; transform: translate(-50%, 2px);
  border: 2px solid #fff; background: #ea7535; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.hwfzs-map-klein .hwfzs-map-schild em { display: none; }
.hwfzs-map-vorn { z-index: 9999 !important; }
.hwfzs-map-vorn.hwfzs-map-klein .hwfzs-map-schild { width: auto; height: auto; padding: 3px 8px; border-radius: 7px; font-size: 13px; gap: 6px;
  background: rgba(255, 255, 255, .97); border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transform: translate(-50%, 6px); }
.hwfzs-map-vorn.hwfzs-map-klein .hwfzs-map-schild em { display: inline; }
.hwfzs-map-mitfleck .hwfzs-map-schild { transform: translate(-50%, 14px); }
.hwfzs-map-weg:not(.hwfzs-map-vorn) { visibility: hidden; }
.hwfzs-map-fleck { cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.hwfzs-karte-box .leaflet-control-attribution a { color: inherit; }
/* 24.11. (Lars: „noch recht weiß“): wie im neuen Dashboard – Seitengrund hellgrau, Karten weiß mit leichtem Schatten */
html:not(.dark) #tab-baustellen.hwfzs-an { background: #e6e8eb; }
html:not(.dark) .app-content:has(#tab-baustellen.hwfzs-an:not(.hidden)) { background: #e6e8eb; }
html:not(.dark) .hwfzs-k, html:not(.dark) .hwfzs-kasten { box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06); }
/* Einsätze: Tagesüberschrift als hellgrauer Streifen statt Linie – gliedert, weniger Weiß */
html:not(.dark) .hwfzs-buchtag { border-top: 0; padding: 4px 0 6px; }
html:not(.dark) .hwfzs-buchtag-kopf { margin: 2px 0; padding: 6px 10px; border-radius: 7px; background: #eef0f3; }
html.dark .hwfzs-buchtag { border-top: 0; padding: 4px 0 6px; }
html.dark .hwfzs-buchtag-kopf { margin: 2px 0; padding: 6px 10px; border-radius: 7px; background: rgba(255, 255, 255, .05); }
/* Kopf (24.11.): Name groß, darunter leise Kennzeichen · wofür */
.hwf-fs-zk-text small.hwf-fs-zk-unter { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-top: 1px; }
.hwfzs-buchtag .hwfzs-b { padding: 0 10px; }   /* Zeilen bündig mit dem Text im grauen Streifen */
/* Nach Person filtern (24.11.): Name klickbar, oben ein Hinweis mit Summe und ✕ */
button.hwfzs-b-wer { all: unset; box-sizing: border-box; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: var(--text); }
button.hwfzs-b-wer:hover { color: #b4480f; text-decoration: underline; text-underline-offset: 3px; }
button.hwfzs-b-wer:focus-visible { outline: 2px solid #ea7535; outline-offset: 2px; border-radius: 3px; }
html.dark button.hwfzs-b-wer:hover { color: #ea7535; }
.hwfzs-einsaetze-titel { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.hwfzs-filter { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 3px 6px 3px 11px; border: 0; border-radius: 999px;
  background: #2b2f33; color: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.hwfzs-filter b { font-weight: 600; white-space: nowrap; }
.hwfzs-filter span { color: #e3e6ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwfzs-filter i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); font-size: 10px; }
.hwfzs-filter:hover i { background: #ea7535; }
/* Filter deutlich (24.11.): oranger Rahmen, Tagesstreifen orange getönt, Name orange; beim Umschalten gleiten die Tage herein */
.hwfzs-einsaetze { transition: box-shadow .25s ease; }
html:not(.dark) .hwfzs-einsaetze--filter, html.dark .hwfzs-einsaetze--filter { box-shadow: 0 0 0 2px #ea7535, 0 2px 10px rgba(234, 117, 53, .18); }
html:not(.dark) .hwfzs-einsaetze--filter .hwfzs-buchtag-kopf { background: #fbebe1; }
html.dark .hwfzs-einsaetze--filter .hwfzs-buchtag-kopf { background: rgba(234, 117, 53, .14); }
.hwfzs-einsaetze--person button.hwfzs-b-wer, .hwfzs-einsaetze--ort button.hwfzs-b-was { color: #b4480f; font-weight: 600; }
html.dark .hwfzs-einsaetze--person button.hwfzs-b-wer, html.dark .hwfzs-einsaetze--ort button.hwfzs-b-was { color: #ea7535; }
.hwfzs-filter { background: #ea7535; }
.hwfzs-filter span { color: #fff; opacity: .9; }
.hwfzs-filter:hover i { background: #2b2f33; }
@keyframes hwfzs-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hwfzs-plopp { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.hwfzs-anim .hwfzs-buchtag { animation: hwfzs-rein .32s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
.hwfzs-anim .hwfzs-filter { animation: hwfzs-plopp .25s cubic-bezier(.2, .9, .3, 1.2) both; }
@media (prefers-reduced-motion: reduce) { .hwfzs-anim .hwfzs-buchtag, .hwfzs-anim .hwfzs-filter { animation: none; } }
/* Filter nach Ort (24.11.): Ort klickbar wie der Name, mehrere Schilder nebeneinander, gewählter Ort auf der Karte mit dunklem Rand */
button.hwfzs-b-was { all: unset; box-sizing: border-box; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  font-size: 13px; color: var(--text-muted); }
button.hwfzs-b-was:hover { color: #b4480f; text-decoration: underline; text-underline-offset: 3px; }
button.hwfzs-b-was:focus-visible { outline: 2px solid #ea7535; outline-offset: 2px; border-radius: 3px; }
.hwfzs-filter-zeile { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hwfzs-filter-summe { font-size: 12.5px; color: var(--text); font-weight: 600; white-space: nowrap; margin-right: 2px; }
.hwfzs-filter { padding: 3px 5px 3px 10px; }
.hwfzs-filter b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.hwfzs-map-gewaehlt .hwfzs-map-schild { box-shadow: 0 0 0 2px #1d1d1f, 0 1px 3px rgba(0, 0, 0, .18); }
.hwfzs-map-gewaehlt { z-index: 9998 !important; }
.hwfzs-map-schild-huelle, .hwfzs-map-feld, .hwfzs-map-fleck { cursor: pointer; }
/* 24.11. (LIVE-Prüfung am Handy 390 px): „seit 4 Tagen abgelaufen“ darf in der schmalen Daten-Spalte umbrechen statt über den Rand zu laufen */
.hwfzs-daten .hwfzs-wert .hwfzs-frist { white-space: normal; }
/* 24.11.: der Ort als Knopf (button.hwfzs-b-was, „all: unset“) hob das Ausblenden schmaler Fenster auf – dort wie vorher ohne Ort */
@media (max-width: 1240px) { button.hwfzs-b-was { display: none; } }
