/*
  Lokani – Bereich Handel & Winterlager (0.54, Task 16). Die Regeln standen bis 0.53 in erp.css (Werte unverändert); Abstands-Hilfsklassen
  (Tabler mb-3, mt-2 …) sind benannte Regeln (alter Wert im Kommentar). Die Farben des Belegungsplans stehen als --wl-* in tokens.css
  (hell und dunkel gleich wie bis 0.53). Die Lackfarbe eines Fahrzeugs kommt aus winterlager/darstellung.py als --lack am Stellplatz.
*/

/* ---------- Karten dieses Bereichs (bis 0.53 „.flaeche .formular …“) ---------- */
.karte.handel-karte-unten { margin-bottom: 1rem; }                      /* Karte mit mb-3 */
.karte.verkauf-positionen-karte { margin-top: 14px; }                    /* Zusatzpositionen im Verkaufsformular */
.verkauf-vorschau__teil { display: contents; }                           /* htmx-Teil: die Kinder bleiben Flex-Kinder der Karte */

/* ---------- Abstände (früher mb-3, mt-2 … im Markup) ---------- */
.handel-leiste { margin-bottom: 1rem; }                                  /* Filterknöpfe/Monat über der Liste (mb-3) */
.handel-titel-oben { margin-top: 1rem; }                                 /* Zwischenüberschrift im Angebotsformular (mt-3) */
.handel-hochladen { margin-top: 1rem; }                                  /* Hochladen unter den Inseratbildern (mt-3) */
.handel-akte-hochladen { margin-top: .5rem; }                            /* Hochladen in der Akte (mt-2) */
.handel-bild-hinweis { margin: .5rem 0 0; }                              /* Hinweis unter den Bildern (mt-2 mb-0) */
.handel-ohne-bilder { margin-bottom: 1rem; }                             /* „Noch keine Bilder.“ (mb-3) */
.handel-englisch { margin-top: 1.25rem; }                                /* englische Felder im Aufklapper: row mt-1 (4 px) + 16 px Abstand der ersten Spalte (Bootstrap .row > *) */
.handel-angaben-hinweis { margin-top: .5rem; }                           /* Hinweis unter den Angaben (mt-2) */
.handel-text-unten { margin-bottom: .5rem; }                             /* Textfeld über dem Kopieren-Knopf (mb-2) */
.annahme-hochladen .lese-fortschritt > .kleiner { margin-bottom: .25rem; }  /* „wird gelesen …“ über dem Balken (mb-1) */

/* Feld mit Kopieren-Knopf (bis 0.53 Tablers input-group mb-3) */
.handel-kopierzeile { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: auto; margin-bottom: 1rem; }
.handel-kopierzeile > .eingabe { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.handel-kopierzeile > .eingabe:focus { z-index: 5; }
.handel-kopierzeile > .knopf { position: relative; z-index: 2; }
.handel-kopierzeile > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.handel-kopierzeile > :not(:first-child) { margin-inline-start: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Beschriftung mit Zeichenzähler rechts (bis 0.53 form-label d-flex justify-content-between) */
.feld__beschriftung.handel-beschriftung-zeile { display: flex; justify-content: space-between; }

/* ---------- Fahrzeughandel ---------- */
.handel-foto { display: grid; place-items: center; width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--flaeche-2, var(--wl-rgba-0-0-0-05)); }
/* ohne Foto: .leer (liste.css) gewann bis 0.53 über .handel-foto, weil es später geladen wurde */
.handel-foto.leer { background: none; border-radius: 0; }
.handel-foto.leer svg { width: 22px; height: 22px; opacity: .35; }
.handel-kopf { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 18px; align-items: start; }
.handel-kopf:not(:has(.handel-bild)) { grid-template-columns: 1fr; }
.handel-bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.kalkulation strong.rot { color: var(--rot); }
@media (max-width: 720px) {
  .handel-kopf { grid-template-columns: 1fr; }
}
.verkauf-vorschau { position: sticky; top: 16px; }
.vorschau-fehler { margin: 10px 0 0; padding-left: 18px; color: var(--rot); }
.verkauf-positionen input { width: 100%; }

.wl-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-zeile input[type=text] { flex: 1 1 180px; min-width: 0; }
.wl-zeile input.zahl { flex: 0 1 110px; text-align: right; }

.zubehoer-liste { list-style: none; margin: 0; padding: 0; }
.zubehoer-liste li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.neueingang-zeilen td { vertical-align: top; }
.neueingang-zeilen input[type=text] { min-width: 0; width: 100%; }
.neueingang-foto img { max-width: 100%; max-height: 70vh; border: 1px solid var(--linie); border-radius: 8px; }
.neueingang-fahrzeug { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.neueingang-fahrzeug:last-of-type { border-bottom: none; }

/* ---------- Winterlager-Belegungsplan als Halle in Draufsicht (Entwürfe „Belegungsplan“ und „Fahrzeugtypen & Farben“) ---------- */
.wl-belegung .karte__kopf { flex-wrap: wrap; gap: 12px; }
.wl-legende { display: flex; gap: 16px; font-size: 13px; color: var(--text-leise); align-items: center; flex-wrap: wrap; }
.wl-legende span { display: inline-flex; align-items: center; gap: 6px; }
.wl-legende i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; box-sizing: border-box; }
.wl-legende i.frei { border: 2px dashed var(--wl-a1a1aa); }
.wl-legende i.belegt { background: var(--wl-2f5fd0); border: 2px solid var(--wl-15171c); }
.wl-legende i.gewaehlt { border: 3px solid var(--wl-ffd23f); }
.wl-halle { background-color: var(--wl-2b2f37); background-image: radial-gradient(var(--wl-rgba-255-255-255-07) 1.2px, transparent 1.3px); background-size: 10px 10px;
  border: 3px solid var(--wl-15171c); border-radius: 14px; box-shadow: inset 0 0 0 4px var(--wl-363b45), 0 4px 0 var(--wl-15171c); padding: 18px 14px; overflow-x: auto; }
.wl-reihe-name { color: var(--wl-c7cad1); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 4px 6px 8px; }
.wl-reihe-name:not(:first-child) { margin-top: 18px; }
.wl-stellplaetze { display: grid; grid-template-columns: repeat(auto-fill, 120px); justify-content: center; row-gap: 14px; column-gap: 0; }
.wl-stall { position: relative; width: 120px; height: 170px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
  background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 10px; font-family: Inter, system-ui, sans-serif; }
.wl-stall:hover { background: var(--wl-rgba-255-255-255-06); }
.wl-stall:focus-visible { outline: 3px solid var(--wl-ffd23f); outline-offset: 2px; }
.wl-stall[aria-pressed="true"]::after { content: ""; position: absolute; inset: 24px 4px 0 4px; border: 3px solid var(--wl-ffd23f); border-radius: 10px;
  box-shadow: 0 0 0 3px var(--wl-rgba-255-210-63-25); pointer-events: none; }
.wl-linie { position: absolute; background: var(--wl-e9e6dc); border-radius: 1px; }
.wl-linie.links { left: 0; top: 30px; bottom: 4px; width: 2px; } .wl-linie.rechts { right: 0; top: 30px; bottom: 4px; width: 2px; }
.wl-linie.oben { left: 30px; right: 30px; top: 30px; height: 4px; border-radius: 2px; opacity: .45; }
.wl-nr { margin-top: 4px; background: var(--wl-f4f3ee); border: 2px solid var(--wl-15171c); border-radius: 5px; min-width: 22px; text-align: center; padding: 1px 7px;
  font-size: 12px; font-weight: 700; color: var(--wl-15171c); box-shadow: 0 2px 0 var(--wl-15171c); position: relative; line-height: 1.4; }
.wl-fahrzeug { height: 100px; width: 116px; margin-top: 6px; display: flex; align-items: center; justify-content: center; position: relative; }
.wl-fahrzeug svg { stroke: var(--wl-15171c); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.wl-fahrzeug .schatten { fill: var(--wl-000); fill-opacity: .28; stroke: none; }
.wl-fahrzeug .reifen { fill: var(--wl-23262c); } .wl-fahrzeug .griff { fill: var(--wl-2a2d34); } .wl-fahrzeug .metall { fill: var(--wl-8b9099); }
.wl-fahrzeug .spiegel { fill: var(--wl-c9ccd2); } .wl-fahrzeug .licht { fill: var(--wl-ffe27a); } .wl-fahrzeug .scheibe { fill: var(--wl-bfe3f5); }
.wl-fahrzeug .lack { fill: var(--lack, var(--wl-2f5fd0)); }
.wl-fahrzeug .glanz { fill: none; stroke: var(--wl-fff); stroke-opacity: .8; stroke-width: 2.5; }
.wl-fahrzeug .linie { fill: none; } .wl-fahrzeug .linie.dick { stroke-width: 3.5; } .wl-fahrzeug .linie.duenn { stroke-width: 2; }
.wl-fahrzeug .rille { fill: none; stroke: var(--wl-4a4e57); stroke-width: 2; }
.wl-fahrzeug .auspuff { fill: none; stroke: var(--wl-8b9099); stroke-width: 4; }
.wl-frei-umriss { width: 58px; height: 88px; box-sizing: border-box; border: 2px dashed var(--wl-rgba-255-255-255-35); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--wl-c7cad1); }
.wl-stall.frei:hover .wl-frei-umriss { border-color: var(--wl-rgba-255-255-255-7); }
.wl-kz-zeile { height: 30px; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.wl-kz { display: flex; height: 24px; max-width: 108px; border: 2px solid var(--wl-15171c); border-radius: 4px; background: var(--wl-fff); overflow: hidden; box-shadow: 0 2px 0 var(--wl-15171c); box-sizing: border-box; }
.wl-kz .eu { width: 9px; flex: none; background: var(--wl-1f4fbf); color: var(--wl-fff); font-size: 6px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.wl-kz .text { font-family: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif; font-stretch: condensed; font-weight: 700; font-size: 16px; line-height: 1;
  letter-spacing: .03em; color: var(--wl-111); padding: 0 6px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.wl-kz.gross { height: 40px; max-width: none; border-width: 3px; border-radius: 6px; box-shadow: none; }
.wl-kz.gross .eu { width: 18px; font-size: 10px; padding-bottom: 4px; }
.wl-kz.gross .text { font-size: 28px; letter-spacing: .04em; padding: 0 14px; }
/* Infostreifen unter dem Plan */
.wl-auswahl { margin-top: 16px; }
.wl-hinweis { margin: 0; font-size: 13px; color: var(--text-leise); }
.wl-info { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; border-radius: 12px; padding: 16px 20px; }
.wl-info[hidden] { display: none; }
.wl-info.belegt { border: 2px solid var(--wl-15171c); background: var(--wl-fffdf3); box-shadow: 0 3px 0 var(--wl-15171c); color: var(--wl-18181b); }
.wl-info.frei { border: 2px dashed var(--wl-a1a1aa); justify-content: space-between; font-size: 14px; }
.wl-daten { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 4px 28px; margin: 0; font-size: 14px; }
.wl-daten dt { color: var(--wl-52525b); font-size: 12px; font-weight: 400; margin: 0; }
.wl-daten dd { margin: 0; font-weight: 700; }
.wl-knoepfe { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wl-umparken { display: flex; gap: 6px; align-items: center; margin: 0; }
.wl-umparken select { width: auto; }

@media (max-width: 767.98px) {
  .wl-daten { grid-template-columns: auto 1fr; grid-auto-flow: row; }
  .wl-knoepfe { margin-left: 0; }
}

/* Inseratsbilder */
.inserat-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.inserat-bild { position: relative; margin: 0; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden;
  background: var(--flaeche-2); }
.inserat-bild.titel { outline: 2px solid var(--primaer); outline-offset: -2px; }
.inserat-bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.inserat-bild figcaption { padding: .25rem; background: var(--flaeche); }
.inserat-bild .plakette.inserat-titelmarke { position: absolute; top: .4rem; left: .4rem; background: var(--wl-rgba-255-255-255-94) !important;
  color: var(--wl-1d2433) !important; box-shadow: 0 1px 4px var(--wl-rgba-0-0-0-25); font-weight: 600; opacity: 1; }

.listenpreis { padding: .4375rem 0; font-weight: 600; }
.akte-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-bottom: .5rem; }
.akte-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--linie); }

/* Knöpfe nur für die Tastatur: unsichtbar, bis sie den Fokus bekommen */
.nur-tastatur:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); border: 0; min-width: 0; min-height: 0; }

[data-sortieren] > [data-id] { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
[data-sortieren] > [data-id].wird-gezogen { cursor: grabbing; z-index: 10; position: relative; box-shadow: 0 12px 30px var(--wl-rgba-18-20-26-25);
  opacity: .95; transition: none; }
[data-sortieren].sortiert-gerade > [data-id]:not(.wird-gezogen) { transition: transform .15s; }
/* ---------- aus erp.css (0.54, Task 20; Werte unverändert) ---------- */
/* Menü „…“ an der Akte (details/summary) */
.mehr-menue { position: relative; }
.mehr-menue > summary { list-style: none; cursor: pointer; letter-spacing: .1em; font-weight: 700; }
.mehr-menue > summary::-webkit-details-marker { display: none; }
.mehr-menue-inhalt { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(280px, 90vw); background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); box-shadow: var(--schatten-hoch); padding: 8px; display: grid; gap: 2px; }
.mehr-menue-inhalt a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--r-klein); color: inherit; text-decoration: none; }
.mehr-menue-inhalt a:hover { background: var(--flaeche-hover); }
.mehr-menue-inhalt p { margin: 4px 10px 2px; }

/* ---------- Fahrzeughandel (seit 0.68) ---------- */
/* Reiter: „Mehr“ als Menü in der Reiterzeile */
/* 0.74: ohne overflow: visible – sonst schob die Reiterzeile am Handy die ganze Seite 160–220 px zur Seite; das Menü „Mehr“
   ist ein Popover (position: fixed) und wird von der wischbaren Leiste nicht abgeschnitten */
.handel-reiter__mehr { display: flex; }
.handel-reiter__knopf { display: inline-flex; align-items: center; gap: .25rem; font: inherit; font-weight: 600; cursor: pointer; }
.handel-reiter__mehr.ist-aktiv .handel-reiter__knopf { color: var(--text); border-bottom-color: var(--erp-primaer-flaeche); }
.handel-reiter__pfeil { width: .875rem; height: .875rem; transform: rotate(-90deg); }
/* Segmente: zwei bis drei gleichwertige Ansichten (Gesuche/Angebote, Liste/Kacheln) */
.handel-segmente { margin: -.5rem 0 1rem; }
.handel-filter { gap: .5rem .75rem; }
.handel-filter .kundenliste__suche .eingabe { width: 100%; max-width: none; min-width: 0; }
.handel-filter__art { width: auto; }
.handel-filter__rechts { display: inline-flex; align-items: center; gap: 1rem; }
/* Standzeit-Ampel: ab 60 Tagen gelb, ab 90 rot (handel.views.STANDZEIT_*) – mit Wort (Tage), Farbe nie allein */
.handel-standzeit { font-variant-numeric: tabular-nums; }
.handel-standzeit--gelb, .handel-standzeit--rot { display: inline-flex; padding: .125rem .5rem; font-weight: 700; border-radius: 99px; }
.handel-standzeit--gelb { color: var(--gelb); background: var(--gelb-hell); }
.handel-standzeit--rot { color: var(--rot); background: var(--rot-hell); }
a.handel-foto.leer { color: var(--text-leise); }
a.handel-foto.leer:hover { color: var(--primaer-text); }
/* Kacheln: großes Foto, Preis, Standzeit – zum Zeigen am Tablet */
.handel-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.handel-kachel__ziel { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius-gross); transition: border-color .15s; }
.handel-kachel__ziel:hover { color: var(--text); text-decoration: none; border-color: var(--primaer); }
.handel-kachel__bild { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; color: var(--text-leise); background: var(--flaeche-2); }
.handel-kachel__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; }
.handel-kachel__ziel:hover .handel-kachel__bild img { transform: scale(1.03); }
.handel-kachel__bild > .icon { width: 3rem; height: 3rem; }
.handel-kachel__status { position: absolute; top: .625rem; left: .625rem; padding: .25rem .5rem; background: var(--flaeche); border-radius: 99px; }
.handel-kachel__text { display: flex; flex-direction: column; gap: .25rem; padding: .875rem 1rem 1rem; }
.handel-kachel__titel { font-size: 1rem; }
.handel-kachel__eck { font-size: .8125rem; color: var(--text-leise); }
.handel-kachel__fuss { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.handel-kachel__preis { font-family: var(--erp-schrift-titel); font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .handel-kachel__bild img { transition: none; } }
/* Bild mit Ersatz-Symbol: das Symbol liegt darunter und erscheint nur, wenn das Bild fehlt (bausteine.js: data-ersatz) */
.handel-foto--rahmen { position: relative; overflow: hidden; color: var(--text-leise); }
.handel-foto--rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.handel-foto__symbol, .handel-kachel__symbol { width: 1.5rem; height: 1.5rem; }
.handel-kachel__bild .handel-kachel__symbol { width: 3rem; height: 3rem; }
.handel-kachel__bild img { position: absolute; inset: 0; }

/* ---------- Winterlager-Übersicht (seit 0.69) ---------- */
.wl-ansichten { margin-top: 1.5rem; }
.wl-ansichten__hilfe { max-width: 75ch; margin: 0 0 1rem; font-size: .875rem; }
.wl-auslagern { margin: 0; padding: 0; list-style: none; }
.wl-auslagern__zeile { display: grid; grid-template-columns: 3.5rem minmax(12rem, 1fr) minmax(0, 2fr) auto; gap: .5rem 1rem; align-items: center;
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--linie); }
.wl-auslagern__zeile:last-child { border-bottom: 0; }
.wl-auslagern__zeile.ist-geplant { background: color-mix(in srgb, var(--gruen-hell) 60%, transparent); }
.wl-auslagern__platz { font-family: var(--erp-schrift-titel); font-size: 1.25rem; font-weight: 700; text-align: center; }
.wl-auslagern__plan { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0; }
.wl-auslagern__plan .eingabe { width: auto; }
.wl-auslagern__leistung { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; cursor: pointer; }
.wl-auslagern__termin { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 767.98px) {
  .wl-auslagern__zeile { grid-template-columns: 3rem minmax(0, 1fr); }
  .wl-auslagern__plan, .wl-auslagern__termin, .wl-auslagern__service { grid-column: 2; }
  .wl-auslagern__service { justify-self: start; }
}
.wl-auslagern__wer .zweite-zeile { display: block; }

/* ---------- Handelsakte (0.74): Formulare in Dialogen, Listen statt Fließtext ---------- */
.akte-bilder .dokument-ablage__flaeche { aspect-ratio: 4 / 3; padding: .25rem; font-size: .75rem; }
.akte-bilder .dokument-ablage__flaeche .icon { width: 1.25rem; height: 1.25rem; }
.akte-gesuche, .akte-liste { list-style: none; margin: 0; padding: 0; }
.akte-gesuche li { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .625rem 0; border-bottom: 1px solid var(--linie); }
.akte-gesuche li:last-child, .akte-liste li:last-child { border-bottom: 0; }
.akte-gesuche__wer { display: flex; flex-direction: column; min-width: 0; }
.akte-gesuche__kontakt { display: flex; flex-wrap: wrap; gap: 0 .75rem; }
.akte-gesuche__erledigt { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.akte-gesuche__erledigt .icon { width: 1rem; height: 1rem; color: var(--gruen); }
.akte-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.akte-liste li > span:nth-child(2) { flex: 1; min-width: 8rem; }
.akte-anzahlung { margin-top: .5rem; }
.akte-zuordnen { margin-top: .75rem; }
@media (max-width: 767.98px) {
  .akte-gesuche li { flex-wrap: wrap; }
}

/* ---------- Winterlager-Einlagerung (0.74): Auslagern und Abholtermin als Dialoge ---------- */
.wl-leistungen { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; border: 0; }
.wl-leistungen legend { margin-bottom: .5rem; font: inherit; font-weight: 600; }
/* Winterlager-Einstellungen (0.74): Leistungen als Tabelle mit Spaltenköpfen */
.wl-leistungen-tabelle td { vertical-align: middle; }
.wl-leistungen-tabelle td:first-child { min-width: 14rem; }
.wl-leistungen-tabelle .eingabe.zahl { width: 7rem; text-align: right; }
.wl-leistungen-tabelle td:nth-child(4) .eingabe.zahl { width: 5rem; }
.wl-leistungen-tabelle .auswahl { min-width: 12rem; }
.wl-leistungen-tabelle__neu td { background: var(--flaeche-2); }
.wl-einstellungen .eingabe.zahl { max-width: 10rem; }
.wl-regel { margin: .75rem 0 0; }
/* Gesuche (0.74): Treffer mit „Informiert“ in einer Zeile, Erledigt im Zeilenmenü */
.handel-treffer { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.handel-treffer + .handel-treffer { margin-top: .375rem; }
.handel-treffer form { margin: 0; }
/* Angebot (0.74): Angaben und Preis nebeneinander */
.angebot-seite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.angebot-preis__gesamt { font-size: 1.125rem; }
/* Angebot-Formular (0.74) */
.angebot-positionen input[type=text], .angebot-positionen input[type=number] { width: 100%; min-width: 6rem; }
.angebot-positionen__neu { margin-top: .5rem; }
/* Aktionen (0.74): die bearbeitete Zeile ist markiert */
.tabelle tr.ist-aktiv > td { background: var(--aktiv-grund); }
.tabelle tr.ist-aktiv > td:first-child { box-shadow: inset 3px 0 0 var(--erp-primaer-flaeche); }
.handel-zubehoer-suche { flex: 1 1 20rem; max-width: 32rem; }
.handel-zubehoer-suche .eingabe-mit-symbol { width: 100%; }
.dialog [data-kundenwahl], .handel-formular [data-kundenwahl] { margin-bottom: 1rem; }   /* 0.74: Hinweis „Neuer Kunde?“ nicht am nächsten Feld */
.handel-zubehoer-suche .eingabe { width: 100%; max-width: none; }
/* Winterlager-Übersicht (0.74): Plan am Handy eingeklappt */
.wl-plan-knopf { margin-bottom: .75rem; }
@media (max-width: 767.98px) {
  .wl-plan:not(.ist-offen) { display: none; }
  .wl-belegung .wl-legende { display: none; }
}
/* Inserat (0.74): Bilder über die Ablage, ein Hauptknopf (Speichern, erst bei Änderung) */
.inserat-ablage { margin-top: 1rem; }
.inserat-ablage .dokument-ablage__flaeche { aspect-ratio: auto; min-height: 6.5rem; }
.karte__fuss.inserat-fuss { margin-top: 0; }
/* Probefahrt (0.74) */
.probefahrt-fremd { margin-bottom: 1rem; }
.probefahrt-name { grid-column: 1 / -1; }
.probefahrt-name[hidden] { display: none; }
.handel-formular-hilfe { margin-top: .75rem; }   /* 0.74: Hinweis nicht an der letzten Feldreihe */
/* Prämien (0.74) */
.handel-monat { width: 12rem; }
.handel-praemien-summe { align-self: center; }
.kalkulation + .hilfe { margin-top: .75rem; }
