/* Felder & Hof › Fahrzeuge (13.11.2026, js/hw-fahrzeuge-ansicht.js): dritte Ansicht neben Felder und Einsatzorte,
   gleiche Bausteine wie die Feld-Liste (hw-felder.css). Nach hw-felder.css laden (gleiche Gewichtung, spätere gewinnt). */
#hwfza-bereich { display: none; }
.hwf-modus.hwfza-an #hwf-bereich, .hwf-modus.hwfza-an #hwf-orte-kopf, .hwf-modus.hwfza-an #bau-body { display: none; }
.hwf-modus.hwfza-an #hwfza-bereich { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.hwf-modus.hwfza-an #hwfza-bereich > .hwf-wrap { flex: 1 1 auto; min-height: 0; }
.hwfza-zeile { cursor: pointer; }
.hwfza-zeile--drin .hwf-name b { color: var(--primary); }
.hwfza-alt .hwf-l-gross { color: var(--hwfz-hinweis, #A85F17); }   /* „Batterie prüfen“: 16.11. dasselbe Orange wie TÜV/Wartung (hw-fahrzeugseite.css) */
.hwfza-online .hwf-l-gross { color: #3b6d11; font-weight: 600; }   /* „Online“ grün wie bei WhatsApp (16.11., Lars) */
html.dark .hwfza-online .hwf-l-gross { color: #8cc152; }
.hwfza-aus { font-size: 13px; color: var(--text-muted); padding: 8px 0 4px; }
.hwfza-heute #hwfza-protokoll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: thin; }   /* 23.11. (Lars): alle Einträge, scrollt und rastet je Zeile ein */
.hwfza-heute #hwfza-protokoll tr { scroll-snap-align: start; }
.hwfza-heute { grid-template-columns: 1fr; }   /* keine Karte links: Liste über die ganze Breite */
.hwfza-heute .hwf-h-tabelle .hwf-p-tag { width: 104px; }
.hwfza-heute .hwf-h-wer { width: 20%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwfza-h-was { width: 26%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Symbol vor dem Fahrzeug (13.11.2026, js/fahrzeug-symbole.js) */
.hwfza-fz { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hwfza-fz .fz-symbol { flex: 0 0 auto; color: var(--primary); }
.hwfza-fz b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.dark .hwfza-fz .fz-symbol { color: var(--text); }
.hwf-h-text .hwfza-fz { display: flex; }
.hwfza-fz-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwfza-heute .hwf-h-wo { width: 24%; }

/* Sender-Zustand (23.11.2026, Zweig rollrasen-sender-zustand): Bereich „Sender“ rechts in der Karte „Heute“ (dort war Platz frei) */
.hwfza-heute.hwf-heute { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 28px; }
.hwfza-sp { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding-left: 24px; border-left: 1px solid var(--border); }
.hwfza-sp-unter { font-size: 13px; color: var(--text-muted); margin: -4px 0 10px; }
.hwfza-sp-gruen { color: #3b6d11; font-weight: 600; }
html.dark .hwfza-sp-gruen { color: #8cc152; }
.hwfza-sp-liste { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.hwfza-sp-fz { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 0;
  border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; font-size: 14px; color: var(--text); text-align: left; cursor: pointer; }
.hwfza-sp-fz b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwfza-sp-fz span { flex: 0 0 auto; font-size: 13px; color: var(--text-muted); }
.hwfza-sp-fz--nie span, .hwfza-sp-fz--alt span { color: var(--hwfz-hinweis, #A85F17); font-weight: 600; }
.hwfza-sp-fz:hover b { text-decoration: underline; }
.hwfza-sp-gut { font-size: 14px; color: var(--text-muted); padding: 4px 0 8px; }
.hwfza-sp-link { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--primary); cursor: pointer; }
.hwfza-sp-link:hover { text-decoration: underline; }
html.dark .hwfza-sp-link { color: var(--text); }
.hwfza-sp-schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hwfza-sp-schritte li { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text); }
.hwfza-sp-schritte li span { flex: 0 0 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: var(--app-bg, #eef1f5); color: var(--text-muted); }
html.dark .hwfza-sp-schritte li span { background: rgba(255, 255, 255, .08); }
@media (max-width: 1240px) {   /* kleiner Mac: „Heute“ mit schmaleren Spalten, damit die Fahrzeugnamen lesbar bleiben */
  .hwfza-heute.hwf-heute { grid-template-columns: minmax(0, 1fr) 230px; column-gap: 20px; }
  .hwfza-sp { padding-left: 18px; }
  .hwfza-heute .hwf-h-tabelle .hwf-p-tag { width: 96px; }
  .hwfza-heute .hwf-h-wer { width: 22%; }
  .hwfza-h-was { width: 16%; }
  .hwfza-heute .hwf-h-wo { width: 20%; }
}
@media (max-width: 760px) { .hwfza-heute.hwf-heute { grid-template-columns: 1fr; } .hwfza-sp { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--border); } }

/* Liste aufgeräumt (24.11.2026, Zweig rollrasen-fahrzeugliste, Lars: „ja bau mal alle drei“) */
/* 1 · Foto statt Symbol: kleines Querformat 4:3 vor dem Namen; ohne Foto das Symbol im gleichen Rahmen, damit die Namen bündig stehen */
.hwfza-fz--bild { gap: 12px; }
.hwfza-bild { flex: 0 0 48px; width: 48px; height: 36px; border-radius: 6px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: #eef0f3; box-shadow: inset 0 0 0 1px rgba(43, 47, 51, .06); }
.hwfza-bild--symbol .fz-symbol { color: #2b2f33; }
.hwfza-bild--laedt { background: linear-gradient(90deg, #eef0f3, #e3e6ea, #eef0f3); background-size: 200% 100%; animation: hwfza-laedt 1.2s linear infinite; }
@keyframes hwfza-laedt { from { background-position: 100% 0; } to { background-position: -100% 0; } }
html.dark .hwfza-bild { background: rgba(255, 255, 255, .07); }
html.dark .hwfza-bild--symbol .fz-symbol { color: var(--text); }
/* 2 · „Heute“: Name und Ort anklickbar, Filter wie die Einsätze der Fahrzeugseite (Schilder aus hw-fahrzeugseite.css) */
.hwfza-heute-kopf { justify-content: space-between; }
.hwfza-heute-kopf .hwf-titel { flex: 0 0 auto; }
.hwfza-h-knopf { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwfza-h-knopf:hover { color: #b4480f; text-decoration: underline; text-underline-offset: 3px; }
html.dark .hwfza-h-knopf:hover { color: #ea7535; }
.hwfza-heute { transition: box-shadow .2s; }
html:not(.dark) .hwfza-heute--filter, html.dark .hwfza-heute--filter { outline: 2px solid #ea7535; outline-offset: -2px; }   /* innen, weil der Rand außen abgeschnitten wird */
.hwfza-heute--person .hwf-h-wer .hwfza-h-knopf, .hwfza-heute--ort .hwf-h-wo .hwfza-h-knopf { color: #b4480f; font-weight: 600; }
html.dark .hwfza-heute--person .hwf-h-wer .hwfza-h-knopf, html.dark .hwfza-heute--ort .hwf-h-wo .hwfza-h-knopf { color: #ea7535; }
.hwfza-anim #hwfza-protokoll tr { animation: hwfzs-rein .3s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }
.hwfza-anim .hwfzs-filter { animation: hwfzs-plopp .25s cubic-bezier(.2, .9, .3, 1.2) both; }
@media (prefers-reduced-motion: reduce) { .hwfza-anim #hwfza-protokoll tr, .hwfza-anim .hwfzs-filter, .hwfza-bild--laedt { animation: none; } }

/* Fenster „Neues Fahrzeug“ (24.11.2026, Lars: „ein Fenster in dem Reiter“) – wie „Neues Feld“: links Foto, rechts das Nötige */
.modal-overlay.hwfzn-huelle { z-index: 9100; }
.modal-overlay.hwfzq-huelle { z-index: 9110; }   /* Sender anfragen liegt über dem Fahrzeug-Fenster */
.hwfzn-fenster { width: 760px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.hwfzn-rumpf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; grid-template-areas: "foto form" "notiz form";
  column-gap: 24px; row-gap: 14px; padding: 4px 20px 4px; overflow-y: auto; min-height: 0; }
.hwfzn-links { grid-area: foto; }
.hwfzn-rechts { grid-area: form; }
.hwfzn-notiz { grid-area: notiz; align-self: start; }
.hwfzn-weitere.bau-link { margin-right: auto; padding: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hwfzn-rechts.bau-form { padding: 0; gap: 12px; }
.hwfzn-links { display: flex; flex-direction: column; gap: 8px; }
.hwfzn-foto { all: unset; box-sizing: border-box; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; border: 1.5px dashed #c9ced4; background: #f4f5f7;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 600;
  overflow: hidden; transition: border-color .15s, background .15s; }
.hwfzn-foto:hover, .hwfzn-foto:focus-visible { border-color: #ea7535; background: #fbf1ea; }
.hwfzn-foto small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.hwfzn-foto-plus { width: 36px; height: 36px; border-radius: 50%; background: #2b2f33; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 400; line-height: 1; margin-bottom: 4px; }
.hwfzn-foto--da { border: 0; background: #e6e8eb; }
.hwfzn-foto--da img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hwfzn-foto-knoepfe { display: flex; gap: 14px; font-size: 13px; }
.hwfzn-foto-knoepfe .bau-link { font-size: 13px; font-weight: 600; padding: 0; }
.hwfzn-wahl { display: inline-flex; align-self: flex-start; padding: 3px; gap: 2px; border-radius: 9px; background: #eef0f3; }
.hwfzn-wahl button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 16px; border: 0; border-radius: 7px; background: none; color: var(--text); cursor: pointer; }
.hwfzn-wahl button.aktiv { background: #2b2f33; color: #fff; }
.hwfzn-rechts select, .hwfzn-rechts input[type=date] { font: inherit; font-weight: 400; font-size: 14px; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white); color: var(--text); min-width: 0; width: 100%; box-sizing: border-box; }
.hwfzn-rechts input[type=text] { min-width: 0; }
.hwfzn-rechts input:focus, .hwfzn-rechts select:focus { outline: none; border-color: #ea7535; }
.hwfzn-paar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.hwfzn-paar > .bau-feld { min-width: 0; }
.hwfzn-paar input[type=date] { min-width: 0; max-width: 100%; }
.hwfzn-fehler { padding: 0 20px; font-size: 13px; font-weight: 600; color: #b4480f; min-height: 0; }
.hwfzn-fehler:not(:empty) { padding-top: 10px; }
html.dark .hwfzn-foto { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .2); }
html.dark .hwfzn-foto:hover { background: rgba(234, 117, 53, .12); }
html.dark .hwfzn-wahl { background: rgba(255, 255, 255, .07); }
html.dark .hwfzn-wahl button.aktiv { background: #ea7535; }
html.dark .hwfzn-rechts select, html.dark .hwfzn-rechts input[type=date] { background: var(--surface, #1e2530); }
html.dark .hwfzn-fehler { color: #ea7535; }
@media (max-width: 760px) {
  .hwfzn-rumpf { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "foto" "form" "notiz"; gap: 14px; padding: 4px 16px; }
  .hwfzn-fenster .modal-footer { flex-wrap: wrap; }
  .hwfzn-foto { aspect-ratio: 16 / 7; }
}

/* ── Sender aus dem Lager (26.11.): Auswahl im Fenster, „Sender anfragen“ ── */
.hwfzn-sender-text .bau-link { margin-left: 0; font-size: inherit; }
.hwfza-sp-anfragen { align-self: flex-start; margin-top: 12px; }
.hwfzq-fenster { width: min(440px, calc(100vw - 32px)); }
.hwfzq-rumpf { display: flex; flex-direction: column; gap: 14px; padding: 4px 20px 0; }
.hwfzq-text { margin: 0; font-size: 13px; color: var(--text-secondary, #636b73); line-height: 1.45; }
.hwfzq-rumpf .bau-feld small { display: block; margin-top: 6px; }

/* ── Intern: Einstellungen › Fahrzeug-Sender (js/sender-lager.js) ── */
.sl-hinweis { margin-bottom: 14px; }
.sl-anfrage, .sl-frei { margin-bottom: 12px; }
.sl-anfrage-kopf { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.sl-anfrage-kopf span, .sl-leise { color: var(--text-secondary, #636b73); font-size: 13px; }
.sl-nachricht { font-size: 13px; margin-bottom: 8px; white-space: pre-wrap; }
.sl-zeile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sl-zeile > div { min-width: 0; }
.sl-zeile input, .sl-zeile select { width: 100%; }
.sl-breit { grid-column: 1 / -1; }
.sl-breit select { margin-top: 6px; }
.sl-knoepfe { margin-top: 10px; }
.sl-meldung:empty { display: none; }
.sl-liste { overflow-x: auto; }
.sl-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.sl-tabelle th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-secondary, #636b73); padding: 8px 10px; }
.sl-tabelle td { padding: 8px 10px; border-top: 1px solid var(--border, #e3e6e9); }
.sl-tabelle .bau-link { margin-left: 0; }
.sl-erledigt { margin-top: 14px; font-size: 13px; }
.sl-erledigt summary { cursor: pointer; font-weight: 600; }
