/* SV 14.0 · Gestaltungsebene nach dem SVIS-Design-System.
   Wird als letzte Stildatei geladen. Ziel: überall dieselben Farben, Abstände, Karten, Tabellen und Knöpfe.
   Farben je Firma kommen weiterhin aus „Erscheinungsbild“ (--primaer, --akzent werden dort gesetzt). */
:root {
  --sv-navy: #071c30; --sv-flaeche-dunkel: #102b43; --sv-gold: #dfbd7f; --sv-gold-text: #8a6a32;
  --sv-karte: #ffffff; --sv-tinte: #183448; --sv-leise: #5f6b78; --sv-linie: #e2e7ec; --sv-grund: #f4f5f7;
  --sv-ok: #1f7a4d; --sv-ok-bg: #e8f5ee; --sv-warn: #9a5b00; --sv-warn-bg: #fff6e0; --sv-fehler: #b42318; --sv-fehler-bg: #fdecea;
  --sv-info: #1d5b8f; --sv-info-bg: #e9f2fa;
  --sv-r: 12px; --sv-r-klein: 8px; --sv-schatten: 0 1px 2px rgba(7, 28, 48, .05), 0 4px 14px rgba(7, 28, 48, .05);
  --sv-titel: Georgia, "Times New Roman", serif;
  --tinte: var(--sv-tinte); --leise: var(--sv-leise); --linie: var(--sv-linie); --flaeche: var(--sv-grund);
  --r: var(--sv-r-klein); --schatten: var(--sv-schatten);
}
body { background: var(--sv-grund); }

/* Seitentitel einheitlich */
.titelzeile h1, .heute-kopf h1, .seite > h1, .einstellungs-inhalt > .karte > h2:first-child { font-family: var(--sv-titel); letter-spacing: 0; }
.titelzeile h1, .seite > h1 { font-size: 1.6rem; font-weight: 700; color: var(--sv-tinte); }

/* Karten */
.karte { border-radius: var(--sv-r); border-color: var(--sv-linie); box-shadow: var(--sv-schatten); }

/* Knöpfe: eine Höhe, gut zu treffen am Telefon */
.knopf { min-height: 40px; border-radius: var(--sv-r-klein); }
.knopf.haupt, .knopf.primaer { background: var(--sv-navy); border-color: var(--sv-navy); color: #fff; }
@media (max-width: 760px) { .knopf { min-height: 44px; } }

/* Tabellen */
.tab th { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sv-leise); background: #f8f9fb; }
.tab td, .tab th { border-color: var(--sv-linie); }
.tab tbody tr:hover { background: #fbf8f2; }

/* Karten/Tabelle-Umschalter (gemeinsamer Baustein). !important nur hier: ältere Auftragsregeln setzen Knöpfe mit !important. */
body .auftragsansicht { display: inline-flex; border: 1px solid var(--sv-linie); border-radius: 999px; padding: 3px; background: #fff; gap: 2px; overflow: visible; }
html body .auftragsansicht .knopf { min-height: 34px !important; min-width: 0 !important; border: 0 !important; border-radius: 999px !important; padding: .3rem 1rem !important; background: transparent !important; box-shadow: none !important; color: var(--sv-tinte) !important; }
html body .auftragsansicht.auftragsansicht .knopf.knopf:is(.an,[aria-pressed="true"]) { background: var(--sv-navy) !important; color: #fff !important; }

/* Statusmarken */
.sv-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--sv-info-bg); color: var(--sv-info); }
.sv-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.sv-status.ok { background: var(--sv-ok-bg); color: var(--sv-ok); } .sv-status.warn { background: var(--sv-warn-bg); color: var(--sv-warn); }
.sv-status.fehler { background: var(--sv-fehler-bg); color: var(--sv-fehler); }

/* Leerer Zustand (Verkaufsversion ohne Daten) */
.sv-leer { text-align: center; padding: 2.5rem 1rem; border: 1px dashed #cdd5dd; border-radius: var(--sv-r); background: #fff; color: var(--sv-leise); }
.sv-leer h3 { font-family: var(--sv-titel); color: var(--sv-tinte); margin: 0 0 .4rem; font-size: 1.15rem; }
.sv-leer .knopf { margin-top: .9rem; }

/* Einstellungen 14.0: Suche, nummerierte Bereiche, letzter Stand */
.einstellungs-navigation { border-radius: var(--sv-r); border-color: var(--sv-linie); overflow: visible !important; }
.einst-suchfeld { position: relative; padding: 10px 12px 12px; border-bottom: 1px solid var(--sv-linie); background: #fff; }
.einst-suche { width: 100%; min-height: 40px; border: 1px solid #cfd8e0; border-radius: 999px; padding: .45rem .9rem .45rem 2.1rem; font: inherit; font-size: .9rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f6b78' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem 50%; }
.einst-suche:focus { outline: 2px solid var(--sv-gold); outline-offset: 1px; border-color: var(--sv-gold); }
.einst-treffer { position: absolute; left: 12px; right: 12px; top: calc(100% - 6px); z-index: 5; background: #fff; border: 1px solid var(--sv-linie); border-radius: var(--sv-r-klein); box-shadow: 0 10px 30px rgba(7,28,48,.14); padding: 4px; }
.einst-treffer a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--sv-tinte); border: 0 !important; min-height: 0; }
.einst-treffer a span { font-size: .76rem; color: var(--sv-leise); }
.einst-treffer a:hover, .einst-treffer a:focus { background: #f6f0e6; }
.einstellungs-navigation h2 { display: flex; align-items: center; gap: 8px; text-transform: none; font-size: 12.5px; color: var(--sv-tinte); letter-spacing: .01em; }
.einst-nr { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sv-navy); color: var(--sv-gold); font-size: 11px; font-weight: 700; flex: none; }
.einst-stand { margin: -4px 0 4px; padding: 0 18px 0 46px; font-size: 11px; color: var(--sv-leise); background: #f7f9fa; }
.einst-stand:empty { display: none; }
.einst-zeile { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; padding: .55rem 0; border-top: 1px solid var(--sv-linie); }
.einst-zeile label { flex: 1 1 12rem; display: grid; gap: .25rem; min-width: 0; }
.einst-zeile > div { flex: 1 1 14rem; min-width: 0; }
.einst-label { font-size: .8rem; color: var(--sv-leise); }
.einst-zeile input { min-height: 40px; }
.modus-anzeige { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-radius: var(--sv-r-klein); background: var(--sv-ok-bg); margin: .4rem 0 .8rem; }
.modus-anzeige.demo { background: #fff3c4; }
.modus-punkt { width: .7rem; height: .7rem; border-radius: 50%; background: var(--sv-ok); }
.modus-anzeige.demo .modus-punkt { background: #d4a000; }
@media (max-width: 760px) {
  .einstellungs-navigation { display: block; }
  .einstellungs-navigation > section, .einstellungs-nav-titel { display: none; }
  .einst-suchfeld { border-radius: var(--sv-r); border: 1px solid var(--sv-linie); margin-bottom: .6rem; }
  .einst-treffer { position: static; margin-top: 8px; box-shadow: none; }
  .einstellungs-navigation { border: 0; background: transparent; }
}

/* Betriebsmodus-Streifen (Demo gelb, Live grün) */
.teststreifen.demo { background: #ffd54a; color: #3b2f00; }
.teststreifen.live { background: var(--sv-ok); color: #fff; }

/* Startseite „Heute“ nach Branchen (14.0) – ruhige, augenfreundliche Farben:
   warmes Hellgrau als Grund, weiße Karten, gedämpfte Statusfarben, keine grellen Rot- oder Grüntöne. */
.hb-seite { --hb-grund: #f4f3ef; --hb-kachel: #f8f7f3; --hb-linie: #e6e2d9; --hb-text: #1f3346; --hb-leise: #66717e;
  --hb-rot: #a2463f; --hb-rot-bg: #f7e9e6; --hb-gelb: #9a6a17; --hb-gelb-bg: #f8efd9; --hb-blau: #3f6684; --hb-blau-bg: #e9eff4;
  --hb-gruen: #2f6b4a; --hb-gruen-bg: #eaf2ec; --hb-gold: #c9a467; }
.hb-seite .heute-kopf { margin-bottom: .5rem; }
.hb-seite .heute-gruss { font-family: var(--sv-titel); font-size: 1.85rem; font-weight: 600; color: var(--hb-text); margin: 0; }
.hb-seite .heute-unter { color: var(--hb-leise); margin: .2rem 0 0; }
.hb-allgemein { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .4rem 0 1.1rem; }
.hb-chip { display: inline-flex; align-items: center; min-height: 34px; padding: .3rem .9rem; border-radius: 999px; background: var(--hb-gelb-bg); color: var(--hb-gelb); font-size: .84rem; font-weight: 600; text-decoration: none; border: 1px solid #eedcb3; }
.hb-raster { display: grid; gap: 1.1rem; }
.hb-raster.hb-mehrere { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-raster.hb-mehrere .hb-finanzen { grid-column: 1 / -1; }
.hb-raster.hb-eine { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.hb-karte { background: #fff; border: 1px solid var(--hb-linie); border-top: 2px solid var(--hb-gold); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(31, 51, 70, .04), 0 6px 20px rgba(31, 51, 70, .05); padding: 1.1rem 1.2rem 1.1rem; display: grid; gap: .9rem; align-content: start; color: var(--hb-text); }
.hb-kopf { display: flex; align-items: center; gap: .65rem; }
.hb-kopf h2 { font-family: var(--sv-titel); font-size: 1.28rem; font-weight: 600; margin: 0; color: var(--hb-text); flex: 1; }
.hb-symbol { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #12293d; color: #e2c58f; flex: none; }
.hb-symbol svg { width: 19px; height: 19px; }
.hb-oeffnen { font-size: .84rem; font-weight: 600; color: #8a6a32; text-decoration: none; white-space: nowrap; padding: .3rem .6rem; border-radius: 999px; }
.hb-oeffnen:hover { background: #f6efe2; }
.hb-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.hb-zahl { display: grid; gap: .15rem; padding: .65rem .75rem; border-radius: 10px; background: var(--hb-kachel); border: 1px solid #ece8df; text-decoration: none; color: var(--hb-text); min-height: 66px; transition: border-color .15s, background .15s; }
.hb-zahl b { font-size: 1.5rem; line-height: 1.1; font-weight: 600; color: #9aa3ad; font-variant-numeric: tabular-nums; }
.hb-zahl.hb-zahl-an b { color: var(--hb-text); }
.hb-zahl span { font-size: .8rem; color: var(--hb-leise); }
.hb-zahl small { font-size: .72rem; color: var(--hb-leise); }
.hb-zahl:hover { border-color: #dcc9a3; background: #fbf8f1; }
.hb-wichtig { display: grid; gap: .4rem; }
.hb-wichtig h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .1rem; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-leise); }
.hb-anzahl { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--hb-rot-bg); color: var(--hb-rot); font-size: .72rem; font-weight: 700; letter-spacing: 0; }
.hb-wichtig-zeile { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; text-decoration: none; color: var(--hb-text); background: #faf9f6; border: 1px solid transparent; border-left: 3px solid var(--hb-blau); }
.hb-wichtig-zeile.fehler { border-left-color: var(--hb-rot); background: #fcf6f4; }
.hb-wichtig-zeile.warn { border-left-color: #d1a24a; background: #fcf9f1; }
.hb-wichtig-zeile:hover { border-color: var(--hb-linie); background: #fff; }
.hb-punkt { display: none; }
.hb-wichtig-text { display: grid; gap: .1rem; min-width: 0; }
.hb-wichtig-text b { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-wichtig-text span { font-size: .8rem; color: var(--hb-leise); }
.hb-wichtig-zeile.fehler .hb-wichtig-text span { color: var(--hb-rot); }
.hb-wichtig-zeile.warn .hb-wichtig-text span { color: var(--hb-gelb); }
.hb-alles-gut { margin: 0; padding: .55rem .7rem; border-radius: 10px; background: var(--hb-gruen-bg); color: var(--hb-gruen); font-size: .85rem; }
.hb-mehr { font-size: .82rem; color: #8a6a32; font-weight: 600; text-decoration: none; padding-left: .7rem; }
.hb-geplant { display: flex; align-items: center; gap: .5rem; margin: 0; padding-top: .75rem; border-top: 1px solid #efebe3; font-size: .86rem; color: var(--hb-text); text-decoration: none; }
.hb-geplant svg { width: 18px; height: 18px; color: #a9864b; flex: none; }
.hb-geplant.hb-nichts { color: var(--hb-leise); }
.hb-finanzen { border-top-color: #12293d; }
.hb-fin-zeile { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t b" "s s"; gap: .1rem .8rem; padding: .6rem .2rem; border-bottom: 1px solid #efebe3; text-decoration: none; color: var(--hb-text); }
.hb-fin-zeile:last-child { border-bottom: 0; }
.hb-fin-zeile span { grid-area: t; font-size: .88rem; color: var(--hb-leise); } .hb-fin-zeile b { grid-area: b; font-size: 1.05rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hb-fin-zeile small { grid-area: s; font-size: .76rem; color: var(--hb-leise); }
.hb-fin-zeile.fehler b { color: var(--hb-rot); }
.hb-fin-zeile.ok b { color: var(--hb-gruen); }
.hb-raster.hb-mehrere .hb-finanzen { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.3rem; }
.hb-raster.hb-mehrere .hb-finanzen .hb-kopf { grid-column: 1 / -1; }
.hb-raster.hb-mehrere .hb-fin-zeile { border-bottom: 0; border-left: 1px solid #efebe3; padding-left: 1rem; grid-template-columns: 1fr; grid-template-areas: "t" "b" "s"; }
.hb-raster.hb-mehrere .hb-fin-zeile:nth-child(2) { border-left: 0; padding-left: .2rem; }
.hb-raster.hb-mehrere .hb-fin-zeile b { text-align: left; font-size: 1.4rem; }
@media (max-width: 900px) {
  .hb-raster.hb-mehrere, .hb-raster.hb-eine { grid-template-columns: 1fr; }
  .hb-raster.hb-mehrere .hb-finanzen { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .6rem; }
}
@media (max-width: 560px) {
  .hb-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-seite .heute-gruss { font-size: 1.5rem; }
  .hb-karte { padding: 1rem; }
  .hb-raster.hb-mehrere .hb-finanzen { grid-template-columns: 1fr; }
  .hb-raster.hb-mehrere .hb-fin-zeile { border-left: 0; border-bottom: 1px solid #efebe3; padding-left: .2rem; grid-template-columns: 1fr auto; grid-template-areas: "t b" "s s"; }
  .hb-raster.hb-mehrere .hb-fin-zeile b { text-align: right; font-size: 1.05rem; }
}

/* ===== 14.0 Ruhige Gesamtoptik: gleiche Farben auf allen Seiten wie auf „Heute“ =====
   Warmes Hellgrau als Grund, weiße Karten mit feiner Linie, Gold nur als Akzent (nicht als Rahmen um jedes Element). */
:root { --sv-grund: #f4f3ef; --sv-linie: #e6e2d9; --sv-tinte: #1f3346; --sv-leise: #66717e; --flaeche: #f4f3ef; --linie: #e6e2d9; --tinte: #1f3346; --leise: #66717e; }
html body { background: #f4f3ef; color: #1f3346; }
html body .karte, html body .sv-kurzkarte, html body .sv-detail-rahmen { border: 1px solid #e6e2d9 !important; border-radius: 14px; box-shadow: 0 1px 2px rgba(31,51,70,.04), 0 6px 20px rgba(31,51,70,.05); background: #fff; }
html body .sv-kurzkarte:hover { border-color: #dcc9a3 !important; }
html body .inhalt .knopf:not(.haupt):not(.primaer):not([data-fahrt-aktion]):not(.gefahr) { border-color: #d9d3c6 !important; }
html body .inhalt .knopf:not(.haupt):not(.primaer):not([data-fahrt-aktion]):not(.gefahr):hover { border-color: #c9a467 !important; background: #fbf8f1 !important; }
html body .tab { border-color: #e6e2d9 !important; }
html body .tab th { background: #f8f7f3 !important; color: #66717e !important; border-color: #e6e2d9 !important; }
html body .tab td { border-color: #efebe3 !important; }
html body .inhalt :is(input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea) { border-color: #d9d3c6; border-radius: 10px; }
html body .inhalt :is(input, select, textarea):focus { outline: 2px solid #dcc9a3; outline-offset: 1px; border-color: #c9a467; }
.sv-sammlung-kopf { margin: 10px 0 14px; }
/* Leere Listen: ruhiger Hinweis statt nackter Zeile */
html body .inhalt p.leer, html body .inhalt .heute-leer { text-align: center; padding: 1.6rem 1rem; border: 1px dashed #d9d3c6; border-radius: 14px; background: #fbfaf7; color: #66717e; margin: .6rem 0; }
html body .inhalt td p.leer { border: 0; background: transparent; padding: .4rem 0; }
.sv-leer { border-color: #d9d3c6; background: #fbfaf7; border-radius: 14px; }
.sv-leer h3 { color: #1f3346; }
html body .kennzahl, html body .finanz-kennzahlen .kennzahl { border-color: #e6e2d9 !important; border-left-color: #c9a467 !important; border-radius: 12px; background: #fff; }
html body .auftraege-karten > *, html body .ak-karte { border-color: #e6e2d9 !important; border-radius: 14px; }
html body .auftraege-karten > *:hover { border-color: #dcc9a3 !important; }

/* Einrichtungsassistent (14.0) */
.er-platz:not(:empty) { margin-bottom: 1.1rem; }
.er-karte { border-top-color: #12293d; }
.er-stand { font-size: .84rem; color: var(--hb-leise); white-space: nowrap; }
.er-balken { height: 8px; border-radius: 999px; background: #eeeae1; overflow: hidden; }
.er-balken span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c9a467, #dcc08a); transition: width .3s; }
.er-weiter { justify-self: start; }
.er-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .9rem; }
.er-liste a { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .65rem; border-radius: 10px; text-decoration: none; color: var(--hb-text); border: 1px solid transparent; }
.er-liste a:hover { background: #fbf8f1; border-color: #ece8df; }
.er-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f1eee6; color: var(--hb-leise); font-size: .8rem; font-weight: 700; flex: none; }
.er-liste li.fertig .er-nr { background: var(--hb-gruen-bg); color: var(--hb-gruen); }
.er-liste li.naechster .er-nr { background: #12293d; color: #e2c58f; }
.er-liste li.fertig .er-text b { color: var(--hb-leise); font-weight: 500; }
.er-text { display: grid; gap: .05rem; } .er-text b { font-size: .92rem; font-weight: 600; } .er-text b small { font-weight: 400; color: var(--hb-leise); }
.er-text span { font-size: .8rem; color: var(--hb-leise); }
@media (max-width: 760px) { .er-liste { grid-template-columns: 1fr; } }
html body .er-weiter.knopf { background: #12293d !important; color: #fff !important; border-color: #12293d !important; padding: .55rem 1.1rem; }
html body .er-weiter.knopf:hover { background: #1c3a55 !important; }

/* Feiertage (14.0) */
.kal-feiertag { display: inline-block; font-size: .72rem; font-weight: 600; color: #9a6a17; background: #f8efd9; border-radius: 999px; padding: .05rem .5rem; margin: .1rem 0 .15rem .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kal-zelle .kal-feiertag { display: block; margin-left: 0; }
.kal-zelle.feiertag, .kal-tag.feiertag { background: #fdfaf2; }
.ft-jahre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.ft-liste { list-style: none; margin: 0; padding: 0; }
.ft-liste li { display: flex; gap: .8rem; padding: .32rem 0; border-bottom: 1px solid #efebe3; font-size: .9rem; }
.ft-liste li span { width: 6.2rem; color: #66717e; flex: none; } .ft-liste li b { font-weight: 600; }
@media (max-width: 640px) { .ft-jahre { grid-template-columns: 1fr; } }
.dp-feiertage { color: #9a6a17; background: #f8efd9; border-radius: 10px; padding: .4rem .7rem; display: inline-block; }

/* Hinweis „Kennzeichen unterwegs“ (14.0): deutlich sichtbar, als Knopf */
html body button.nav-kz { font: inherit; cursor: pointer; }
html body .kopf .nav-kennzeichen .nav-kz.besetzt, html body .nav-kz.besetzt { background: #b3261e !important; color: #fff !important; border: 1px solid #e7b9a6 !important; border-radius: 8px; padding: .35rem .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; letter-spacing: .02em; box-shadow: 0 0 0 3px rgba(179,38,30,.22); }
html body .nav-kz.besetzt .nav-kz-art { color: #ffd9a8 !important; }
html body .nav-kz.besetzt .nav-kz-nr { color: #fff !important; }
html body .nav-kennzeichen { justify-content: flex-start; }
html body .nav-kz.besetzt:hover { background: #9c1f18 !important; }
dialog.sv-belegung { border: 0; border-radius: 16px; padding: 0; width: min(26rem, calc(100vw - 2rem)); box-shadow: 0 24px 60px rgba(7,28,48,.35); color: #1f3346; }
dialog.sv-belegung::backdrop { background: rgba(7,28,48,.45); }
dialog.sv-belegung header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.2rem; background: #12293d; border-radius: 16px 16px 0 0; }
.sv-belegung-kz { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: 1.15rem; color: #fff; background: #b3261e; border-radius: 8px; padding: .3rem .7rem; letter-spacing: .04em; }
.sv-belegung-status { color: #e2c58f; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
dialog.sv-belegung dl { margin: 0; padding: .5rem 1.2rem; }
dialog.sv-belegung dl div { display: grid; grid-template-columns: 10.5rem 1fr; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #efebe3; }
dialog.sv-belegung dl div:last-child { border-bottom: 0; }
dialog.sv-belegung dt { color: #66717e; font-size: .84rem; } dialog.sv-belegung dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
dialog.sv-belegung footer { display: flex; gap: .6rem; justify-content: flex-end; padding: .8rem 1.2rem 1.1rem; flex-wrap: wrap; }
html body dialog.sv-belegung .knopf.haupt { background: #12293d !important; color: #fff !important; border-color: #12293d !important; }
@media (max-width: 480px) { dialog.sv-belegung dl div { grid-template-columns: 1fr; gap: .1rem; } }

/* Formulare in den neuen Einstellungsabschnitten */
.einst-formular { display: grid; gap: .9rem; max-width: 40rem; }
.einst-feld { display: grid; gap: .25rem; } .einst-feld input { min-height: 42px; width: 100%; }
.einst-feld small { font-size: .78rem; }
.einst-formular .knopf.haupt { justify-self: start; }
html body .einst-formular .knopf.haupt { background: #12293d !important; color: #fff !important; border-color: #12293d !important; }

/* ===== 14.0 Feinschliff: ruhige, edle Navigation =====
   Weniger Rahmen, mehr Fläche. Gold nur für den aktiven Zustand. */
html body .einstellungs-navigation { background: #fff; border: 1px solid #e6e2d9 !important; box-shadow: 0 1px 2px rgba(31,51,70,.04), 0 6px 20px rgba(31,51,70,.05); padding-bottom: 6px; }
html body .einstellungs-navigation a { margin: 1px 8px !important; border: 0 !important; border-left: 3px solid transparent !important; border-radius: 8px !important; padding: 9px 12px 9px 14px; min-height: 38px; background: transparent; color: #33475a; font-size: 13.5px; box-shadow: none !important; }
html body .einstellungs-navigation a:hover { background: #f8f6f0; }
html body .einstellungs-navigation a.aktiv { background: #f7f1e4; border-left-color: #c9a467 !important; color: #5f4718; font-weight: 600; }
html body .einstellungs-navigation h2 { background: transparent; padding: 14px 16px 6px; margin: 0; font-weight: 600; }
html body .einstellungs-navigation section + section { border-top: 1px solid #f0ece4; margin-top: 6px; }
html body .einst-stand { background: transparent; padding-left: 44px; }
html body .einstellungs-nav-titel { font-family: var(--sv-titel); font-size: 1.05rem; padding: 16px 16px 10px; color: #1f3346; }
/* Kopf: feinere Linien, klare aktive Marke */
html body .kopf-heute-menue :is(.nav-start, .nav-kategorie-knopf) { border: 1px solid rgba(226,197,143,.22) !important; background: rgba(255,255,255,.03); border-radius: 10px !important; transition: background .15s, border-color .15s; }
html body .kopf-heute-menue :is(.nav-start, .nav-kategorie-knopf):hover { background: rgba(255,255,255,.08); border-color: rgba(226,197,143,.5) !important; }
html body .kopf-heute-menue :is(.nav-start.aktiv, .nav-kategorie-knopf.aktiv, .nav-kategorie-knopf[aria-expanded="true"]) { background: rgba(226,197,143,.14); border-color: rgba(226,197,143,.75) !important; color: #f2dcae; }
html body .nav-untermenue { border: 1px solid #e6e2d9 !important; border-radius: 14px !important; box-shadow: 0 18px 50px rgba(7,28,48,.22) !important; padding: 8px !important; }
html body .nav-untermenue .nav-modul { border-radius: 10px; }
html body .nav-untermenue .nav-modul:hover { background: #f8f6f0; }
/* Reiter innerhalb von Karten (z. B. Seite 1 / 2 / 3) */
html body .karte .reiter .reiter-k, html body .sv-tabs .knopf { border-radius: 999px !important; }
/* Meldungen unten: ruhiger */
html body #meldungen > * { border-radius: 12px; box-shadow: 0 12px 34px rgba(7,28,48,.25); }
/* Fokus überall gut sichtbar (Tastatur) */
html body :is(a, button, [role=button]):focus-visible { outline: 2px solid #c9a467; outline-offset: 2px; }
/* Titel der Seiten: gleiche Schrift und Größe */
html body .inhalt h1 { font-family: var(--sv-titel); font-weight: 600; color: #1f3346; letter-spacing: 0; }
html body .inhalt .karte > h2:first-child, html body .inhalt section.karte > h2 { font-family: var(--sv-titel); font-weight: 600; font-size: 1.15rem; color: #1f3346; }

.er-details summary { cursor: pointer; font-size: .86rem; color: #8a6a32; font-weight: 600; padding: .2rem 0; }
.er-details[open] summary { margin-bottom: .5rem; }

/* 14.0 · Fahrzeugarten (Einstellungen) */
textarea.fa-liste{width:100%;max-width:26rem;display:block;margin:.6rem 0 .9rem;line-height:1.7;font:inherit;padding:.6rem .8rem;border:1px solid var(--linie,#d9d6cf);border-radius:10px;background:#fff;resize:vertical}
.knopfzeile{display:flex;flex-wrap:wrap;gap:.6rem}

/* 14.0 · Hauptmenü bricht auf schmaleren Bildschirmen in eine zweite Zeile um statt seitlich zu überlaufen */
@media (min-width: 901px){ nav.hauptnavigation{flex-wrap:wrap !important;row-gap:.45rem} }

/* 14.0 · Fahrzeug-Werkzeuge: Zulassungsschein, FIN, Datenpakete, Wertermittlung */
.zl-leiste{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .8rem;margin:.1rem 0 .7rem;padding:.6rem .75rem;border:1px dashed #cfc8b8;border-radius:10px;background:#fbf9f4;grid-column:1/-1}
.zl-knopf{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap}
.zl-symbol{width:1.05rem;height:.8rem;border:1.6px solid currentColor;border-radius:3px;position:relative;display:inline-block;opacity:.85}
.zl-symbol::after{content:"";position:absolute;left:50%;top:50%;width:.34rem;height:.34rem;border:1.4px solid currentColor;border-radius:50%;transform:translate(-50%,-50%)}
.zl-status{font-size:.82rem;color:#5b6472;flex:1 1 14rem;min-width:0}
.zl-status.ok{color:#1f6a43}.zl-status.warn{color:#8a5a12}
.zl-hinweis{flex-basis:100%;font-size:.76rem}
.zl-hilfe{margin:.2rem 0 .6rem}.zl-hilfe>.zl-status{display:block;margin-top:-.2rem}
input.zl-neu,select.zl-neu{background:#f3f8f2;border-color:#9cc3a8;transition:background .4s}
dialog.dp-dialog,dialog.we-dialog{width:min(46rem,calc(100vw - 1.5rem));max-width:none}
.dp-reiter{display:flex;gap:.35rem;margin:.2rem 0 .7rem;border-bottom:1px solid #e3ded3}
.dp-reiter button{appearance:none;border:0;background:none;font:inherit;font-weight:600;color:#5b6472;padding:.55rem .9rem;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;border-radius:8px 8px 0 0}
.dp-reiter button:hover{background:#f6f3ec}
.dp-reiter button[aria-selected=true]{color:#14273d;border-bottom-color:#b08a4a}
textarea.dp-text{width:100%;font:500 .86rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:.8rem .9rem;border:1px solid #d9d6cf;border-radius:10px;background:#fcfbf8;color:#1d2733;resize:vertical;min-height:16rem}
.dp-hinweis{margin:.1rem 0 .55rem}
.we-kopf,.we-zeile{display:grid;grid-template-columns:1fr 1fr .8fr 1.6fr;gap:.45rem}
.we-kopf{font-size:.74rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6a7280;margin:.7rem 0 .25rem;padding:0 .1rem}
.we-liste{display:grid;gap:.4rem;margin-bottom:.55rem}
.we-zeile input{width:100%;min-width:0;padding:.5rem .6rem;border:1px solid #d9d6cf;border-radius:8px;font:inherit;background:#fff}
.we-dialog h3{font-size:.92rem;margin:1rem 0 .4rem}
.we-annahmen{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.5rem}
.we-feld{display:grid;gap:.2rem;font-size:.8rem;color:#5b6472}.we-feld input{padding:.45rem .6rem;border:1px solid #d9d6cf;border-radius:8px;font:inherit;width:100%}
.we-check{display:flex;gap:.5rem;align-items:center;margin:.7rem 0 .2rem;font-size:.88rem}
.we-ergebnis{margin:.8rem 0 .3rem;padding:.85rem 1rem;border-radius:12px;background:#f6f3ec;border:1px solid #e6dfd0}
.we-zahlen{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.7rem 1.2rem}
.we-zahlen>div{display:grid;gap:.1rem}.we-zahlen small{font-size:.74rem;color:#6a7280}.we-zahlen b{font-size:1.12rem;color:#14273d;font-variant-numeric:tabular-nums}
.we-zahlen .we-mitte b{font-size:1.35rem;color:#7a5a1e}
.we-ergebnis p{margin:.6rem 0 0}
@media (max-width:560px){.we-kopf{display:none}.we-zeile{grid-template-columns:1fr 1fr;padding-bottom:.45rem;border-bottom:1px solid #eee8dc}.we-zeile input[data-f=quelle]{grid-column:1/-1}}

/* 14.0 · Branchenlizenzen (Betreiber) */
.bl-box{margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid #e6dfd0}.bl-box h3{margin:0 0 .3rem;font-size:1rem}
.bl-liste{display:grid;gap:.7rem;margin-top:.8rem}
.bl-firma{border:1px solid #e3ded3;border-radius:12px;padding:.8rem .95rem;background:#fff}
.bl-firma header{display:flex;align-items:center;gap:.5rem;margin-bottom:.45rem}
.bl-zeile{display:grid;grid-template-columns:minmax(10rem,1.3fr) 8.5rem 9.5rem 10rem auto;gap:.5rem .7rem;align-items:center;padding:.45rem 0;border-top:1px solid #f0ebe0}
.bl-name{display:grid;font-weight:600}.bl-name small{font-weight:400;font-size:.76rem}
.bl-stand{font-size:.82rem;color:#6a7280}.bl-stand.ok{color:#1f6a43;font-weight:600}.bl-stand.warn{color:#8a5a12;font-weight:600}
.bl-zeile select,.bl-zeile input{padding:.42rem .55rem;border:1px solid #d9d6cf;border-radius:8px;font:inherit;background:#fff;min-width:0;width:100%}
@media (max-width:760px){.bl-zeile{grid-template-columns:1fr 1fr}.bl-name{grid-column:1/-1}.bl-zeile .knopf{grid-column:1/-1;justify-self:start}}
dialog.dp-dialog .dp-reiter button{border:0 !important;border-bottom:2px solid transparent !important;box-shadow:none !important;background:none !important;border-radius:8px 8px 0 0 !important;min-height:0}
dialog.dp-dialog .dp-reiter button[aria-selected=true]{border-bottom-color:#b08a4a !important;color:#14273d}
dialog.dp-dialog .dp-reiter button:hover{background:#f6f3ec !important}

/* 14.0 · Abteilungen und bestellbare Leistungen */
.abt-raster{display:grid;grid-template-columns:repeat(auto-fit,minmax(17.5rem,1fr));gap:1rem;margin-top:.9rem}
.abt-karte{border:1px solid #e3ded3;border-radius:12px;padding:.9rem 1rem;background:#fff}
.abt-karte h3{margin:0 0 .6rem;font-size:.98rem;color:#14273d}
.abt-liste{display:grid;gap:.4rem;margin-bottom:.75rem}
.abt-zeile{display:grid;grid-template-columns:1.2rem 1fr;gap:.55rem;align-items:center}
.abt-zeile input[type=text],.bl2-zeile input[type=text],.bl2-zeile select{padding:.45rem .6rem;border:1px solid #d9d6cf;border-radius:8px;font:inherit;background:#fff;min-width:0;width:100%}
.abt-zeile input[type=checkbox],.bl2-zeile input[type=checkbox]{width:1.05rem;height:1.05rem;accent-color:#b08a4a}
.abt-zeile:has(input[type=checkbox]:not(:checked)) input[type=text],.bl2-zeile:has(input[type=checkbox]:not(:checked)) input[type=text]{color:#8a8f98;background:#f7f5f0}
.bl2-kopf,.bl2-zeile{display:grid;grid-template-columns:1.2rem minmax(11rem,1.5fr) minmax(9rem,1.1fr) 9.5rem minmax(10rem,1.6fr);gap:.5rem;align-items:center}
.bl2-kopf{font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6a7280;margin:1rem 0 .3rem}
.bl2-liste{display:grid;gap:.4rem;margin-bottom:.9rem}
@media (max-width:820px){.bl2-kopf{display:none}.bl2-zeile{grid-template-columns:1.2rem 1fr 1fr;padding-bottom:.5rem;border-bottom:1px solid #eee8dc}.bl2-zeile .bl2-hinweis{grid-column:2/-1}.bl2-zeile select:nth-of-type(1){grid-column:2}}
/* Auftragsformular: Leistungen nach Abteilungen */
.service-auswahl .service-abteilung{grid-column:1/-1;margin:.7rem 0 .1rem;font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#7a5a1e;border-bottom:1px solid #ece5d6;padding-bottom:.25rem}
.service-auswahl .service-abteilung:first-child{margin-top:0}
.service-hinweise{grid-column:1/-1}
.service-hinweise p{margin:.5rem 0 0;padding:.55rem .75rem;border-left:3px solid #b08a4a;background:#fbf7ee;border-radius:0 8px 8px 0;font-size:.86rem;color:#3b3526}

/* 14.0 · Kfz-Werkstatt: Teiledaten und Positionen nach Abteilungen */
.ws-zwischen{grid-column:1/-1;margin:.9rem 0 0;font-size:.76rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#7a5a1e;border-bottom:1px solid #ece5d6;padding-bottom:.3rem}
.ws-hinweis{grid-column:1/-1;margin:.2rem 0 .4rem}
.ws-teile{display:grid;grid-template-columns:repeat(auto-fit,minmax(10.5rem,1fr));gap:.6rem 1.2rem;margin:.7rem 0 1rem;padding:.8rem 1rem;background:#f8f6f0;border:1px solid #e9e3d6;border-radius:10px}
.ws-teile>div{display:grid;gap:.1rem}
.ws-teile small{font-size:.7rem;color:#6a7280;text-transform:uppercase;letter-spacing:.04em}
.ws-teile b{color:#14273d;font-variant-numeric:tabular-nums}.ws-teile b.leise{font-weight:400;color:#9aa0a8}
.ws-positionen{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:.7rem;margin:0 0 1rem}
.ws-abt{border:1px solid #e3ded3;border-radius:10px;padding:.65rem .8rem;background:#fff}
.ws-abt h3{margin:0 0 .4rem;font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#7a5a1e}
.ws-pos{display:grid;gap:.05rem;padding:.3rem 0;border-top:1px solid #f1ece1}.ws-pos:first-of-type{border-top:0}
.ws-pos small{color:#6a7280;font-size:.78rem}
section.karte>.knopf{margin:0 .4rem .4rem 0}
.feld>.zl-status{flex:none;display:block;margin-top:.25rem}
/* Werkstatt · Fahrzeugannahme als Karte mit zwei Spalten */
form.ws-annahme{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1.1rem;max-width:62rem;padding:1.3rem 1.4rem 1.5rem;align-items:start}
form.ws-annahme>h2,form.ws-annahme>.zl-leiste,form.ws-annahme>p,form.ws-annahme>div:not(.feld),form.ws-annahme>.ws-zwischen,form.ws-annahme>.feld:has(textarea),form.ws-annahme>.feld:has([name=kunde]){grid-column:1/-1}
form.ws-annahme>h2{margin:0 0 .2rem}
form.ws-annahme>button{justify-self:start}
form.ws-annahme>.knopf.haupt{grid-column:1/-1;margin-top:.4rem;padding:.7rem 1.4rem}
form.ws-annahme>p[role=status]:empty,form.ws-annahme>div:empty{display:none}
@media (max-width:700px){form.ws-annahme{grid-template-columns:1fr;padding:1rem}}
.service-auswahl label span{overflow-wrap:anywhere;hyphens:auto;min-width:0}

/* 14.0 · Büro · Dokumente: freigegebene Dokumente mit Suche */
.df-filter{display:flex;flex-wrap:wrap;gap:.6rem;margin:.9rem 0 .4rem}
.df-suche{flex:1 1 18rem;min-width:0;padding:.6rem .85rem;border:1px solid #d9d6cf;border-radius:10px;font:inherit;background:#fff}
.df-art{padding:.6rem .8rem;border:1px solid #d9d6cf;border-radius:10px;font:inherit;background:#fff}
body.nur-dokumente .suche-global{visibility:hidden}

/* R6a: Fahrtenbuch – Titel steht schon über der Auswahl, im eingebetteten Bericht nicht doppelt zeigen */
.fp-nachweise .bericht > .titelzeile h1 { display: none; }
.bericht details.filter-mehr { flex-basis: 100%; }
.bericht details.filter-mehr[open] > summary { margin-bottom: .6rem; }

/* ===== R6a · Einheitliches Kartendesign (Vorlage „SVIS Fahrtenbuch Oldtimer“) =====
   Alle Karten: weiße Fläche, Goldrand, klare Zeilen „Bezeichnung – Wert“ mit feiner Linie,
   großer Hauptknopf über die ganze Breite (grün = START/weiter, rot = STOPP). */
:root { --k-rand: color-mix(in srgb, var(--akzent) 60%, #fff); --k-linie: #e7e2d8; --k-gruen: #1a7f37; --k-rot: #c1121f; }
.karte.fk-karte, .fk-karte, .sv-kurzkarte, .ak-karte {
  background: #fff; border: 2px solid var(--k-rand); border-radius: 16px; padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(19,41,61,.06), 0 6px 18px rgba(19,41,61,.06); display: flex; flex-direction: column; gap: .55rem;
}
.fk-karte h3, .sv-kurzkarte h3, .ak-karte .ak-fahrzeug-name { font-size: 1.22rem; font-weight: 800; color: var(--primaer); margin: 0; line-height: 1.25; }
/* Zeilen */
.fk-daten, .sv-kurzwerte, .ak-karte .ak-fakten { display: block; margin: .15rem 0 0; border: 1.5px solid var(--k-rand); border-radius: 12px; padding: .1rem .85rem; }
.fk-zeile, .sv-kurzwerte > div, .ak-karte .ak-fakt { display: grid; grid-template-columns: minmax(7.5rem, 40%) 1fr; gap: .6rem; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid var(--k-linie); margin: 0; }
.fk-zeile:last-child, .sv-kurzwerte > div:last-child, .ak-karte .ak-fakt:last-child { border-bottom: 0; }
.fk-l, .sv-kurzwerte dt, .ak-karte .ak-fakt dt { font-weight: 700; color: #1f2a37; font-size: .95rem; text-transform: none; letter-spacing: 0; margin: 0; }
.fk-l::after, .sv-kurzwerte dt::after, .ak-karte .ak-fakt dt::after { content: ':'; }
.fk-w, .sv-kurzwerte dd, .ak-karte .ak-fakt dd { margin: 0; font-size: 1rem; color: #1f2a37; overflow-wrap: anywhere; }
.fk-w input, .fk-w select { width: 100%; min-height: 2.5rem; font-size: 1rem; }
/* Hauptknopf */
.fk-knopf { width: 100%; min-height: 64px; border: 0; border-radius: 14px; color: #fff; font-size: 1.7rem; font-weight: 900; letter-spacing: .04em;
  cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.18); margin-top: .35rem; }
.fk-start { background: var(--k-gruen); } .fk-start:hover { filter: brightness(1.06); }
.fk-stopp { background: var(--k-rot); } .fk-stopp:hover { filter: brightness(1.06); }
.fk-knopf:disabled { opacity: .45; cursor: not-allowed; }
.ak-karte .ak-schritte { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.ak-karte .ak-schritte > :first-child:not(.ak-oeffnen) { flex: 1 1 100%; min-height: 54px; font-size: 1.15rem; font-weight: 800; border-radius: 12px; justify-content: center; }
.ak-karte .ak-oeffnen { flex: 1 1 auto; justify-content: center; }
/* Kopf, Status, Kennzeichen */
.fk-kopf { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; }
.fk-titel { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.fk-kz { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .08em; color: #4b5563; }
.fk-status { border-radius: 999px; padding: .2rem .7rem; font-weight: 700; font-size: .85rem; border: 1.5px solid; white-space: nowrap; }
.fk-status.frei { color: var(--k-gruen); border-color: #9bd3a9; background: #eef9f0; }
.fk-status.unterwegs { color: var(--k-rot); border-color: #f2a3aa; background: #fdecee; }
.fk-status.gesperrt { color: #6b7280; border-color: #d1d5db; background: #f3f4f6; }
.fk-banner { background: #d9f2df; color: #146c2e; font-weight: 900; font-size: 1.45rem; text-align: center; border-radius: 10px; padding: .55rem; margin: .45rem 0 .2rem; }
.fk-karte.fk-laeuft { border-color: #f0a5ab; }
.fk-tage { display: flex; justify-content: space-between; gap: .6rem; border: 1.5px solid var(--k-rand); border-radius: 12px; padding: .55rem .85rem; font-size: 1.02rem; }
.fk-tage .fk-frei { border-left: 1px solid var(--k-linie); padding-left: .8rem; color: #374151; }
.fk-link { text-align: center; font-size: .92rem; }
.fk-fuss { display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--k-linie); padding-top: .6rem; margin-top: .2rem; }
.fk-fuss .knopf { flex: 1 1 auto; justify-content: center; font-size: .88rem; min-height: 2.4rem; }
.fp-uebersicht .fp-category > div:last-child, .fp-kategorien .fp-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.sv-kurzkarte .sv-karten-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.sv-kurzkarte .sv-zeilen-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.sv-kurzkarte .sv-zeilen-aktionen > * { flex: 1 1 auto; justify-content: center; min-height: 2.8rem; }
@media (max-width: 600px) { .fk-knopf { min-height: 72px; font-size: 1.9rem; } .fk-zeile, .sv-kurzwerte > div, .ak-karte .ak-fakt { grid-template-columns: 9.2rem 1fr; } }

/* ===== R6a · Kartenmenü (☰) im Kartenkopf ===== */
.km { position: relative; flex: none; }
.km > summary { list-style: none; cursor: pointer; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 10px;
  background: var(--primaer); color: #fff; font-size: 1.35rem; line-height: 1; user-select: none; }
.km > summary::-webkit-details-marker { display: none; }
.km[open] > summary { background: color-mix(in srgb, var(--primaer) 80%, #000); }
.km-liste { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 40; min-width: 15rem; background: #fff; border: 1.5px solid var(--k-rand);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(19,41,61,.18); padding: .35rem; display: flex; flex-direction: column; }
.km-punkt, .km-liste .knopf { display: block; width: 100%; text-align: left; padding: .7rem .8rem; border: 0; border-radius: 8px; background: none; color: var(--primaer);
  font-size: .98rem; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 0; box-shadow: none; }
.km-punkt:hover, .km-punkt:focus-visible { background: #f5f1e8; }
.km-punkt.gefahr { color: var(--k-rot); }
.fk-rechts, .ak-kopf-rechts { display: flex; align-items: center; gap: .5rem; }
.ak-karte .ak-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sv-kurzkarte .sv-karten-kopf .km { margin-left: auto; }
html body .auftraege-karten > *, html body .ak-karte.ak-karte { border: 2px solid var(--k-rand) !important; border-radius: 16px; }

/* ===== R6a · Statuszähler + Kolonnen (Aufträge) ===== */
.ak-zaehler { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem 0 .8rem; scrollbar-width: thin; }
.ak-zahl { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 8.5rem; padding: .6rem .85rem;
  background: #fff; border: 2px solid var(--k-rand); border-radius: 14px; cursor: pointer; text-align: left; }
.ak-zahl b { font-size: 1.6rem; color: var(--primaer); line-height: 1.1; } .ak-zahl span { font-size: .85rem; font-weight: 700; color: #4b5563; }
.ak-zahl.ak-status-abholung, .ak-zahl.ak-status-in_zustellung { border-color: #f0b46b; }
.ak-zahl.ak-status-in_arbeit { border-color: #8fb3e0; } .ak-zahl.ak-status-fertig, .ak-zahl.ak-status-fertig_geparkt { border-color: #9bd3a9; }
.auftragsliste[data-ansicht] > .auftraege-kolonnen { display: none !important; }
.auftragsliste[data-ansicht=kolonnen] > .auftraege-kolonnen { display: block !important; }
.auftragsliste[data-ansicht=kolonnen] > .auftraege-karten, .auftragsliste[data-ansicht=kolonnen] > .auftraege-tabelle { display: none !important; }
.ak-kolonnen { display: flex; gap: 1rem; overflow-x: auto; align-items: flex-start; padding-bottom: 1rem; scroll-snap-type: x proximity; }
.ak-kolonne { flex: 0 0 340px; background: #f4f1ea; border-radius: 16px; padding: .6rem; scroll-snap-align: start; max-height: calc(100vh - 220px); overflow-y: auto; }
.ak-kolonne > header { position: sticky; top: -.6rem; z-index: 2; display: flex; justify-content: space-between; align-items: center; background: var(--primaer); color: #fff;
  border-radius: 12px; padding: .6rem .85rem; font-weight: 800; margin: -.6rem -.6rem .6rem; }
.ak-kolonne > header b { background: #fff; color: var(--primaer); border-radius: 999px; padding: .05rem .6rem; font-size: .9rem; }
.ak-kolonne .ak-raster { display: block; } .ak-kolonne .ak-liste { display: flex; flex-direction: column; gap: .7rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 600px) { .ak-kolonne { flex-basis: 86vw; max-height: none; } }
html body div.auftragsansicht button.knopf.an, html body div.auftragsansicht button.knopf.an:hover { background: var(--primaer) !important; background-color: var(--primaer) !important; color: #fff !important; border-color: var(--primaer) !important; }
html body .ak-karte .ak-fakt dt { font-size: .92rem !important; font-weight: 700 !important; color: #1f2a37 !important; text-transform: none !important; letter-spacing: 0 !important; }
html body .ak-karte .ak-fakt dd { font-size: 1rem !important; }
html body .ak-karte .ak-schritt-hinweis { font-weight: 700; color: #8a5a12; text-align: center; flex: 1 1 100%; }
.karte.fk-wrap { background: none; border: 0; box-shadow: none; padding: 0; }
.fk-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
html body .km-liste .knopf, html body .km-liste a.knopf, html body .km-liste button { border: 0 !important; background: none !important; box-shadow: none !important; text-align: left !important; justify-content: flex-start !important; width: 100%; min-height: 0 !important; padding: .7rem .8rem !important; color: var(--primaer) !important; font-weight: 600 !important; border-radius: 8px !important; }
html body .km-liste .knopf:hover, html body .km-liste button:hover { background: #f5f1e8 !important; }
.km-kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.km-kopfzeile > h2, .km-kopfzeile > h3 { margin: 0; }
.karte.ws-karte { border: 2px solid var(--k-rand); border-radius: 16px; }
html body .auftrag-kompakt-rahmen { border: 2px solid var(--k-rand) !important; border-radius: 16px !important; overflow: visible; }
html body .auftrag-kopf-aktionen { display: flex; align-items: center; gap: .5rem; }
html body .auftrag-kompakt .auftrag-bereich dt { font-weight: 700; color: #1f2a37; }
a.fk-knopf.fk-als-link { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff !important; font-size: 1.35rem; }
/* R6a: Fahrzeugkarten im Raster nebeneinander (Desktop) */
html body .fp-category .fp-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important; gap: 1rem !important; align-items: start; }
html body .fp-category .fp-grid > .fk-karte { max-width: none; width: auto; }

/* ===== R6b · Standardkarte (sv-karte.js) – ein Aussehen für alle Karten ===== */
.sk-karte { background: #fff; border: 2px solid var(--k-rand); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.sk-kopf { padding: .8rem .95rem .75rem; border-bottom: 1px solid var(--k-linie); }
.sk-z1 { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; min-width: 0; }
.sk-nr { font-weight: 800; font-size: 1.05rem; color: var(--primaer); }
.sk-titel { font-weight: 600; font-size: 1.02rem; color: #1f2a37; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
a.sk-titel:hover { text-decoration: underline; }
.sk-kennung { font-family: ui-monospace, monospace; font-size: .8rem; color: #6b7280; overflow-wrap: anywhere; }
.sk-kz { font-family: ui-monospace, monospace; font-weight: 800; font-size: .95rem; letter-spacing: .05em; padding: .12rem .55rem; border-radius: 5px; border: 1.5px solid #222; background: #fff; color: #111; }
.sk-kz.blau { background: #1f4fa8; color: #fff; border-color: #163a7a; }
.sk-rechts { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.sk-schraube { border: 1px solid var(--k-linie); background: #fff; border-radius: 9px; min-width: 2.3rem; min-height: 2.3rem; font-size: 1.05rem; cursor: pointer; }
.sk-schraube.an, .sk-schraube:hover { background: #fbf1df; border-color: var(--k-rand); }
.sk-z2 { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: stretch; margin-top: .6rem; }
.sk-wer { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.sk-wer b { font-size: 1.12rem; font-weight: 800; color: #111827; overflow-wrap: anywhere; }
.sk-wer small { color: #6b7280; font-size: .82rem; }
.sk-next { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .05rem; border: 0; border-radius: 10px; padding: .5rem .95rem;
  min-height: 2.9rem; font-weight: 800; font-size: .98rem; color: #fff !important; cursor: pointer; text-decoration: none; white-space: nowrap; text-align: left; }
.sk-next small { font-weight: 400; font-size: .74rem; opacity: .9; }
html body .sk-next.gruen { background: var(--k-gruen); border: 0; color: #fff; } html body .sk-next.rot { background: var(--k-rot); border: 0; color: #fff; }
html body .sk-next.neutral { background: #f3f4f6; color: #374151 !important; border: 1px solid #d1d5db; }
.sk-next:hover { filter: brightness(1.07); } .sk-next:disabled { opacity: .5; cursor: not-allowed; }
.sk-rubrik { display: flex; flex-direction: column; justify-content: center; padding: .4rem .8rem; border-radius: 10px; background: #fbf1df; color: #633806; border: 1px solid var(--k-rand); white-space: nowrap; }
.sk-rubrik b { font-size: .9rem; font-weight: 800; } .sk-rubrik small { font-size: .74rem; opacity: .85; }
.sk-panel { background: #fffaf2; border-bottom: 2px solid var(--k-rand); padding: .6rem .95rem; }
.sk-panel-titel { font-weight: 800; font-size: .92rem; color: #633806; margin-bottom: .45rem; }
.sk-panel-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }
.sk-panel-knoepfe .knopf { min-height: 2.3rem; font-size: .88rem; }
.sk-kette { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: .55rem .95rem; border-bottom: 1px solid var(--k-linie); font-size: .8rem; }
.sk-st { padding: .15rem .6rem; border-radius: 999px; border: 1px solid #e5e7eb; color: #6b7280; background: #fff; }
.sk-kette { gap: .35rem 1rem; }
.sk-st { position: relative; }
.sk-st + .sk-st::before { content: '›'; position: absolute; left: -.72rem; top: 50%; transform: translateY(-52%); color: #9ca3af; font-weight: 700; }
.sk-st.ok { background: #eaf3de; color: #27500a; border-color: #8fbf5a; }
.sk-st.akt { background: #fbf1df; color: #633806; border-color: var(--k-rand); font-weight: 800; }
.sk-st.aus { text-decoration: line-through; opacity: .6; }
.sk-fn { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem .95rem; background: #f8f7f4; border-bottom: 1px solid var(--k-linie); }
.sk-fn .knopf { min-height: 2.1rem; font-size: .85rem; padding: .25rem .7rem; }
.sk-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 1.2rem; margin: 0; padding: .35rem .95rem .55rem; }
.sk-felder > div { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: .5rem; padding: .32rem 0; border-bottom: 1px solid var(--k-linie); font-size: .93rem; }
.sk-felder dt { color: #6b7280; margin: 0; font-weight: 600; } .sk-felder dd { margin: 0; color: #1f2a37; overflow-wrap: anywhere; min-width: 0; }
.sk-doks { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .55rem .95rem .7rem; margin-top: auto; }
.sk-doks-l { color: #6b7280; font-size: .82rem; font-weight: 600; }
.sk-dok { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #e5e7eb; border-radius: 8px; padding: .22rem .6rem; font-size: .82rem; background: #fff; color: #1f2a37; text-decoration: none; cursor: pointer; }
.sk-dok::before { content: '📄'; font-size: .8rem; }
.sk-dok:hover { border-color: var(--k-rand); background: #fffaf2; }
.sk-band { padding: .55rem .95rem; border-bottom: 1px solid var(--k-linie); font-size: .95rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.sk-band.rot { background: #fcebeb; color: #791f1f; }
.sk-band .sk-bar { flex: 1 1 8rem; height: 9px; border-radius: 5px; background: #eee; overflow: hidden; }
.sk-band .sk-bar i { display: block; height: 100%; background: var(--k-rand); }
.sk-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; align-items: start; }
.sk-raster > li { list-style: none; } ul.sk-raster { margin: 0; padding: 0; }
/* Tabellen: Zeile aufklappen → Karte unter der Zeile */
tr.sk-zeile { cursor: pointer; } tr.sk-zeile:hover > td { background: #fffaf2; }
tr.sk-zeile.offen > td { background: #fbf1df55; border-bottom-color: transparent; }
tr.sk-zeile > td:last-child::after { content: none; }

tr.sk-unter > td { background: #fbf1df33; padding: .2rem .6rem .8rem !important; }
tr.sk-unter .sk-karte { box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.sk-punkte { display: inline-flex; gap: 3px; align-items: center; }
.sk-punkte i { width: 9px; height: 9px; border-radius: 50%; background: #eee; border: 1px solid #ddd; display: block; }
.sk-punkte i.ok { background: #639922; border-color: #639922; } .sk-punkte i.akt { background: #ba7517; border-color: #ba7517; }
@media (max-width: 700px) {
  .sk-z2 { grid-template-columns: 1fr 1fr; } .sk-wer { grid-column: 1 / -1; }
  .sk-next { white-space: normal; } .sk-rubrik { white-space: normal; }
  .sk-raster { grid-template-columns: 1fr; }
  .sk-felder { grid-template-columns: 1fr; }
}
html body :is(.sk-karte,.sk-tabelle) .sk-next.gruen { background: var(--k-gruen) !important; color: #fff !important; border: 0 !important; }
html body :is(.sk-karte,.sk-tabelle) .sk-next.rot { background: var(--k-rot) !important; color: #fff !important; border: 0 !important; }
html body :is(.sk-karte,.sk-tabelle) .sk-next.neutral { background: #f3f4f6 !important; color: #374151 !important; border: 1px solid #d1d5db !important; }
html body .sk-tabelle .sk-next { min-height: 2.3rem; font-size: .85rem; padding: .35rem .75rem; }
html body .sk-karte .sk-fn .knopf, html body .sk-karte .sk-panel .knopf { background: #fff !important; color: #152d3f !important; border: 1px solid #d6c7a8 !important; }
.sk-tabelle .sk-rubrik { display: inline-flex; padding: .25rem .6rem; }
.fk-karte-std .fk-daten { border: 0; border-radius: 0; padding: .2rem .95rem .4rem; margin: 0; border-bottom: 1px solid var(--k-linie); }
.fk-karte-std .fk-tage { border: 0; border-radius: 0; border-bottom: 1px solid var(--k-linie); padding: .6rem .95rem; background: #fffaf2; font-size: 1.05rem; }
.fk-karte-std .fk-banner { margin: .4rem 0; }
.fk-karte-std.fk-laeuft { border-color: #f0a5ab; }
html body .fp-category .fp-grid > .sk-karte { max-width: none; width: auto; min-height: 0 !important; }
.sk-karte { container-type: inline-size; }
@container (max-width: 540px) {
  .sk-z2 { grid-template-columns: 1fr 1fr; }
  .sk-wer { grid-column: 1 / -1; }
  .sk-next, .sk-rubrik { white-space: normal; }
  .sk-felder { grid-template-columns: 1fr; }
}
html body .fp-category .fp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)) !important; }
html body .auftrag-kompakt-kopf.sk-kopf { display: block !important; padding: .8rem .95rem .75rem !important; }
html body .auftrag-kompakt-kopf h1.sk-titel { font: 600 1.05rem/1.3 inherit; font-family: inherit; margin: 0; }
html body .auftrag-kompakt-kopf .auftrag-status-ecke { position: static; margin-left: auto; }
.sk-next-platz { display: flex; align-items: stretch; }
html body .sk-next-platz :is(button, a.knopf) { background: var(--k-gruen) !important; color: #fff !important; border: 0 !important; min-height: 2.9rem; font-weight: 800; font-size: .98rem; padding: .5rem 1rem; border-radius: 10px; }
html body .sk-next-platz :is(button, a.knopf)[data-fahrt-aktion="stop"] { background: var(--k-rot) !important; }
html body .sk-next-platz :is(button, a.knopf):disabled { opacity: .5; }
.auftrag-kompakt-rahmen > .sk-kette { border-bottom: 1px solid var(--k-linie); }
.sk-karte { width: 100%; box-sizing: border-box; flex: 1 1 auto; }

/* ===== R6b · Schnellkarte (kleine Karte in Listen) ===== */
.sq-karte { background: #fff; border: 2px solid var(--k-rand); border-radius: 14px; padding: .7rem .85rem .75rem; display: flex; flex-direction: column; gap: .3rem; cursor: pointer; min-width: 0; width: 100%; box-sizing: border-box; }
.sq-karte:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.sq-kopf { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .8rem; }
.sq-nr { font-weight: 800; color: var(--primaer); font-size: .9rem; }
.sq-rubrik { background: #fbf1df; color: #633806; border: 1px solid var(--k-rand); border-radius: 999px; padding: .05rem .55rem; font-weight: 600; white-space: nowrap; }
.sq-status { margin-left: auto; }
.sq-wer { font-size: 1.08rem; font-weight: 800; color: #111827; line-height: 1.25; overflow-wrap: anywhere; }
.sq-unter { font-size: .88rem; color: #374151; overflow-wrap: anywhere; }
.sq-warnung { font-size: .8rem; color: #b42318; font-weight: 700; }
.sq-fakten { margin: .15rem 0 0; display: grid; gap: .1rem; }
.sq-fakten > div { display: grid; grid-template-columns: 6.8rem 1fr; gap: .4rem; font-size: .83rem; }
.sq-fakten dt { color: #6b7280; margin: 0; } .sq-fakten dd { margin: 0; color: #1f2a37; overflow-wrap: anywhere; }
.sq-fuss { display: grid; grid-template-columns: 1fr auto; gap: .45rem; margin-top: auto; padding-top: .45rem; }
html body .sq-fuss .sk-next { min-height: 2.5rem; font-size: .9rem; padding: .35rem .75rem; white-space: normal; }
html body .sq-fuss .sk-next.gruen { background: var(--k-gruen) !important; color: #fff !important; border: 0 !important; }
html body .sq-fuss .sk-next.rot { background: var(--k-rot) !important; color: #fff !important; border: 0 !important; }
html body .sq-fuss .sk-next.neutral { background: #f3f4f6 !important; color: #374151 !important; border: 1px solid #d1d5db !important; }
html body .sq-detail { min-height: 2.5rem; border: 1.5px solid var(--k-rand) !important; background: #fff !important; color: #152d3f !important; border-radius: 10px; padding: .3rem .95rem; font-weight: 700; cursor: pointer; }
html body .sq-detail:hover { background: #fbf1df !important; }
.sq-leer { display: block; }
.sq-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; align-items: stretch; }
.sq-raster > li { list-style: none; display: flex; }
.sk-gross-seite { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.sk-gross-seite > .sk-zurueck { align-self: flex-start; }
.ak-kolonne .sq-raster { grid-template-columns: 1fr; }
@media (max-width: 700px) { .sq-raster { grid-template-columns: 1fr; } }

/* ===== R6b · Premium-Knöpfe: START grün, STOPP dunkelrot, alle anderen weiß mit feiner doppelter Goldlinie ===== */
:root { --k-gold: #B08A4E; --k-navy: #13293d; --k-stopp: #8E1B22; }
html body :is(.sk-karte,.sk-tabelle,.sq-karte,.sk-next-platz) .sk-next.start, html body .sk-next.start { background: var(--k-gruen) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
html body :is(.sk-karte,.sk-tabelle,.sq-karte,.sk-next-platz) .sk-next.stopp, html body .sk-next.stopp { background: var(--k-stopp) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
html body :is(.sk-karte,.sk-tabelle,.sq-karte,.sk-next-platz) .sk-next.fein, html body .sk-next.fein,
html body .sq-detail, html body .sk-karte .sk-fn .knopf, html body .sk-karte .sk-panel .knopf {
  background: #fff !important; color: var(--k-navy) !important; border: 1.5px solid var(--k-gold) !important;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--k-gold) !important; font-weight: 700; }
html body :is(.sk-next.fein, .sq-detail, .sk-fn .knopf):hover { background: #fbf6ec !important; }
html body .sk-next-platz :is(button, a.knopf):not([data-fahrt-aktion]) { background: #fff !important; color: var(--k-navy) !important; border: 1.5px solid var(--k-gold) !important; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--k-gold) !important; }
html body .sk-next-platz :is(button, a.knopf)[data-fahrt-aktion="start"] { background: var(--k-gruen) !important; color: #fff !important; }
html body .sk-next-platz :is(button, a.knopf)[data-fahrt-aktion="stop"] { background: var(--k-stopp) !important; color: #fff !important; }
.sk-karte, .sq-karte { border-color: #d7c39a; box-shadow: 0 1px 2px rgba(19,41,61,.06); }

/* ===== R6b · Schnellkarte: Frist-Box und Termin-Priorität ===== */
.sq-karte { position: relative; overflow: hidden; gap: .4rem; padding: .85rem .9rem .8rem; }
.sq-frist { border: 1.5px solid var(--k-navy); border-radius: 10px; padding: .45rem .7rem; font-weight: 800; font-size: .9rem; line-height: 1.35; color: #111827; background: rgba(255,255,255,.6); margin-right: 1.6rem; }
.sq-titel { font-size: 1.12rem; font-weight: 800; color: #111827; line-height: 1.25; }
.sq-titel + .sq-wer { font-size: .95rem; font-weight: 600; }
.sq-rest { font-size: .82rem; font-weight: 700; color: #7a5a1d; }
.sq-p0 .sq-rest, .sq-p1 .sq-rest { color: #8E1B22; }
.sq-zeit { height: 5px; border-radius: 3px; background: #eee; overflow: hidden; }
.sq-zeit i { display: block; height: 100%; background: #639922; }
.sq-p2 .sq-zeit i { background: #D9A94A; } :is(.sq-p1, .sq-p0) .sq-zeit i { background: #B3423A; }
.sq-etikett { font-size: .72rem; font-weight: 800; padding: .05rem .55rem; border-radius: 999px; }
.sq-p2 .sq-etikett { background: #F3DFA6; color: #5b3f05; } .sq-p1 .sq-etikett { background: #F2C4BF; color: #6b1d16; } .sq-p0 .sq-etikett { background: #8E1B22; color: #fff; }
.sq-streifen { position: absolute; left: 0; top: 12px; bottom: 12px; width: 6px; border-radius: 0 5px 5px 0; }
.sq-p2 .sq-streifen { background: #D9A94A; } .sq-p1 .sq-streifen { background: #C9655C; } .sq-p0 .sq-streifen { background: #8E1B22; }
.sq-farbe.sq-p2 { background: #FFF8E1; } .sq-farbe.sq-p1 { background: #FCEAE8; } .sq-farbe.sq-p0 { background: #F8DAD7; }
.sq-band { position: absolute; top: 10px; right: -34px; transform: rotate(35deg); font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: .12rem 2.4rem; color: #fff; }
.sq-p2 .sq-band { background: #D9A94A; color: #3d2a03; } .sq-p1 .sq-band { background: #C9655C; } .sq-p0 .sq-band { background: #8E1B22; }
.sq-ecke { position: absolute; top: .55rem; right: .55rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: #8E1B22; }
.sq-p2 .sq-ecke { background: #D9A94A; color: #3d2a03; }
:is(.sq-p0, .sq-p1) .sq-ecke { animation: sq-blink 1s steps(2, start) infinite; }
@keyframes sq-blink { to { visibility: hidden; } }
.sq-licht { position: absolute; top: .45rem; right: .5rem; width: 1.6rem; height: 1.75rem; }
.sq-licht .glas { position: absolute; inset: 0 .22rem .35rem .22rem; border-radius: .6rem .6rem .2rem .2rem; background: #C1121F; overflow: hidden; }
.sq-p1 .sq-licht .glas { background: #E0661B; }
.sq-licht .glas::after { content: ''; position: absolute; inset: -60%; background: conic-gradient(from 0deg, rgba(255,255,255,.95) 0 40deg, transparent 40deg 360deg); animation: sq-dreh .8s linear infinite; }
.sq-licht .sockel { position: absolute; left: 0; right: 0; bottom: 0; height: .38rem; border-radius: 2px; background: #2b2b2b; }
@keyframes sq-dreh { to { transform: rotate(360deg); } }
@keyframes sq-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(142,27,34,0); } 50% { box-shadow: 0 0 0 5px rgba(142,27,34,.45); } }
.sq-rahmen { animation: sq-puls 1.3s ease-in-out infinite; }
.sq-p0 { border-color: #B3423A; } .sq-p1 { border-color: #D9A096; } .sq-p2 { border-color: #E3C98A; }
.sq-leiste { border-radius: 10px; padding: .5rem .8rem; font-weight: 700; font-size: .92rem; margin: 0 0 .7rem; }
.sq-leiste.rot { background: #FCEAE8; color: #6b1d16; border: 1px solid #C9655C; } .sq-leiste.gelb { background: #FFF8E1; color: #5b3f05; border: 1px solid #D9A94A; }
@media (prefers-reduced-motion: reduce) { .sq-ecke, .sq-licht .glas::after, .sq-rahmen { animation: none !important; } }
.kw-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; margin-top: .8rem; }
.kw-optionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .25rem 1rem; margin: .5rem 0; }
.kw-optionen label { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; }
html body .fp-category .fp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important; }
html body .fp-category .fp-grid > .sq-karte { min-height: 0 !important; max-width: none; }
.sq-karte.fk-laeuft { border-color: #D9A096; }
.sk-gross-seite .fk-karte-std { max-width: 640px; }
html body .sq-fuss .sk-next { align-items: center; justify-content: center; text-align: center; }
html body .sq-fuss .sk-next small { text-align: center; }
html body .auftraege-karten > div:not(.ak-karte), html body .ak-kolonne > div:not(.ak-karte) { border: 0 !important; border-radius: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
/* R6b: 5–6 Schnellkarten nebeneinander */
html body .sq-raster { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: .65rem; }
html body .sq-karte { padding: .6rem .65rem .65rem; gap: .3rem; border-radius: 12px; }
html body .sq-frist { font-size: .78rem; padding: .32rem .5rem; margin-right: 1.4rem; border-radius: 8px; }
html body .sq-titel { font-size: .95rem; }
html body .sq-wer { font-size: .92rem; } html body .sq-titel + .sq-wer { font-size: .85rem; }
html body .sq-unter { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html body .sq-kopf { font-size: .7rem; gap: .3rem; }
html body .sq-rubrik { white-space: normal; }
html body .sq-fakten > div { grid-template-columns: 4.8rem 1fr; font-size: .76rem; }
html body .sq-rest { font-size: .74rem; }
html body .sq-fuss { grid-template-columns: 1fr auto; gap: .35rem; }
html body .sq-fuss .sk-next { min-height: 2.2rem; font-size: .8rem; padding: .25rem .45rem; }
html body .sq-detail { min-height: 2.2rem; font-size: .8rem; padding: .2rem .65rem; }
html body .sq-licht { width: 1.3rem; height: 1.45rem; top: .4rem; right: .35rem; }
html body .sq-ecke { width: 1.25rem; height: 1.25rem; font-size: .8rem; top: .45rem; right: .4rem; }
html body .fp-category .fp-grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)) !important; gap: .65rem; }
@media (max-width: 700px) { html body .sq-raster { grid-template-columns: 1fr; } }
html body ul.sq-raster.ak-liste, html body .auftragsliste ul.sq-raster, html body .fp-category .fp-grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)) !important; gap: .65rem !important; }
html body .ak-kolonne ul.sq-raster { grid-template-columns: 1fr !important; }
@media (max-width: 700px) { html body ul.sq-raster.ak-liste, html body .auftragsliste ul.sq-raster, html body .fp-category .fp-grid { grid-template-columns: 1fr !important; } }
/* R6b: Kartengröße passt sich an – 1 Karte groß, 2–3 mittel, ab 4 klein */
html body :is(.sq-raster, .fp-category .fp-grid)[data-anzahl="1"] { grid-template-columns: minmax(0, 620px) !important; }
html body :is(.sq-raster, .fp-category .fp-grid)[data-anzahl="2"] { grid-template-columns: repeat(2, minmax(0, 520px)) !important; }
html body :is(.sq-raster, .fp-category .fp-grid)[data-anzahl="3"] { grid-template-columns: repeat(3, minmax(0, 440px)) !important; }
html body :is(.sq-raster, .fp-category .fp-grid)[data-anzahl="viele"] { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)) !important; }
html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) .sq-karte { padding: 1rem 1.1rem 1rem; gap: .45rem; border-radius: 16px; }
html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) .sq-frist { font-size: 1rem; padding: .55rem .8rem; }
html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) .sq-titel { font-size: 1.3rem; }
html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) .sq-wer { font-size: 1.1rem; }
html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) .sq-unter, html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) .sq-fakten > div { font-size: .9rem; }
html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) .sq-kopf { font-size: .82rem; }
html body :is(.sq-raster, .fp-grid):is([data-anzahl="1"], [data-anzahl="2"]) :is(.sq-fuss .sk-next, .sq-detail) { min-height: 2.9rem; font-size: .98rem; }
html body :is(.sq-raster, .fp-grid)[data-anzahl="3"] .sq-titel { font-size: 1.1rem; }
html body :is(.sq-raster, .fp-grid)[data-anzahl="3"] :is(.sq-fuss .sk-next, .sq-detail) { min-height: 2.6rem; font-size: .9rem; }
html body .ak-kolonne ul.sq-raster { grid-template-columns: 1fr !important; }
@media (max-width: 700px) { html body :is(.sq-raster, .fp-category .fp-grid)[data-anzahl] { grid-template-columns: 1fr !important; } }
html body .fuhrpark .fp-category .fp-grid[data-anzahl="1"] { grid-template-columns: minmax(0, 620px) !important; }
html body .fuhrpark .fp-category .fp-grid[data-anzahl="2"] { grid-template-columns: repeat(2, minmax(0, 520px)) !important; }
html body .fuhrpark .fp-category .fp-grid[data-anzahl="3"] { grid-template-columns: repeat(3, minmax(0, 440px)) !important; }
html body .fuhrpark .fp-category .fp-grid[data-anzahl="viele"] { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)) !important; }
@media (max-width: 700px) { html body .fuhrpark .fp-category .fp-grid[data-anzahl] { grid-template-columns: 1fr !important; } }
#app ul.sq-raster[data-anzahl="1"] { grid-template-columns: minmax(0, 620px) !important; }
#app ul.sq-raster[data-anzahl="2"] { grid-template-columns: repeat(2, minmax(0, 520px)) !important; }
#app ul.sq-raster[data-anzahl="3"] { grid-template-columns: repeat(3, minmax(0, 440px)) !important; }
#app ul.sq-raster[data-anzahl="viele"] { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)) !important; }
#app .ak-kolonne ul.sq-raster { grid-template-columns: 1fr !important; }
@media (max-width: 700px) { #app ul.sq-raster[data-anzahl] { grid-template-columns: 1fr !important; } }

/* ===== R6b · Sanfte, elegante Farben (augenfreundlich) ===== */
:root { --k-rand: #e3d6bd; --k-linie: #efe9dd; --k-gold: #c4a574; --k-navy: #2c3e50; --k-gruen: #3f7d5a; --k-stopp: #9c4a4a; --k-text: #2f3640; --k-leise: #7b8290; }
html body .sq-karte, html body .sk-karte { background: #fffdf9; border: 1px solid var(--k-rand) !important; box-shadow: 0 1px 3px rgba(44,62,80,.05), 0 4px 14px rgba(44,62,80,.04); color: var(--k-text); }
html body .sq-karte:hover { box-shadow: 0 2px 6px rgba(44,62,80,.07), 0 8px 22px rgba(44,62,80,.06); border-color: #d9c7a3 !important; }
html body .sq-frist { border: 1px solid #c9cfd8; background: #f7f8fa; color: var(--k-navy); font-weight: 700; }
html body .sq-titel, html body .sq-wer, html body .sk-wer b { color: var(--k-navy); }
html body .sq-unter, html body .sq-fakten dt, html body .sk-felder dt, html body .sk-kennung { color: var(--k-leise); }
html body .sq-rubrik, html body .sk-rubrik { background: #f8f3ea; color: #7a5c2e; border: 1px solid #eadcc2; }
html body .sk-kopf, html body .sk-kette, html body .sk-fn { border-color: var(--k-linie); }
html body .sk-fn { background: #faf8f4; }
html body .sk-felder > div { border-bottom-color: var(--k-linie); }
html body .sk-st { border-color: #e6e8ec; color: #8a909c; }
html body .sk-st.ok { background: #eef5ef; color: #3d6b4c; border-color: #cfe2d4; }
html body .sk-st.akt { background: #f8f1e4; color: #7a5c2e; border-color: #e2cfa9; }
/* Knöpfe: START ruhiges Grün, STOPP gedämpftes Rot, Rest fein Gold */
html body :is(.sk-karte,.sk-tabelle,.sq-karte,.sk-next-platz) .sk-next.start, html body .sk-next.start, html body .sk-next-platz :is(button, a.knopf)[data-fahrt-aktion="start"] { background: var(--k-gruen) !important; box-shadow: 0 1px 2px rgba(63,125,90,.25) !important; }
html body :is(.sk-karte,.sk-tabelle,.sq-karte,.sk-next-platz) .sk-next.stopp, html body .sk-next.stopp, html body .sk-next-platz :is(button, a.knopf)[data-fahrt-aktion="stop"] { background: var(--k-stopp) !important; box-shadow: 0 1px 2px rgba(156,74,74,.25) !important; }
html body :is(.sk-karte,.sk-tabelle,.sq-karte,.sk-next-platz) .sk-next.fein, html body .sk-next.fein, html body .sq-detail, html body .sk-karte .sk-fn .knopf, html body .sk-karte .sk-panel .knopf, html body .sk-next-platz :is(button, a.knopf):not([data-fahrt-aktion]) {
  background: #fffdf9 !important; color: var(--k-navy) !important; border: 1px solid var(--k-gold) !important; box-shadow: inset 0 0 0 2px #fffdf9, inset 0 0 0 3px #e4d3b2 !important; font-weight: 600; }
html body :is(.sk-next.fein, .sq-detail, .sk-fn .knopf):hover { background: #f9f4ea !important; }
/* Priorität: gedämpfte Töne */
html body .sq-p2 { border-color: #ecd9a8 !important; } html body .sq-p1 { border-color: #e6c3bd !important; } html body .sq-p0 { border-color: #d6a19b !important; }
html body .sq-p2 .sq-streifen { background: #e2c47e; } html body .sq-p1 .sq-streifen { background: #d39a92; } html body .sq-p0 .sq-streifen { background: #b9645c; }
html body .sq-farbe.sq-p2 { background: #fffaf0; } html body .sq-farbe.sq-p1 { background: #fdf4f2; } html body .sq-farbe.sq-p0 { background: #fbecea; }
html body .sq-p2 .sq-etikett { background: #f6ebcc; color: #6e5521; } html body .sq-p1 .sq-etikett { background: #f5e0dc; color: #7c3e36; } html body .sq-p0 .sq-etikett { background: #b9645c; color: #fff; }
html body .sq-rest { color: #8a6d36; } html body :is(.sq-p0, .sq-p1) .sq-rest { color: #9c4a4a; }
html body .sq-p0 .sq-frist { border-color: #d6a19b; color: #7c3e36; background: #fdf6f5; }
html body .sq-licht .glas { background: #c0504d; } html body .sq-p1 .sq-licht .glas { background: #d9822b; }
html body .sq-leiste.rot { background: #fbf1ef; color: #7c3e36; border-color: #e6c3bd; font-weight: 600; } html body .sq-leiste.gelb { background: #fffaf0; color: #6e5521; border-color: #ecd9a8; font-weight: 600; }
@keyframes sq-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(185,100,92,0); } 50% { box-shadow: 0 0 0 4px rgba(185,100,92,.28); } }
html body .fk-status.frei { background: #eef5ef !important; color: #3d6b4c !important; border-color: #cfe2d4 !important; }
html body .fk-status.unterwegs { background: #f8ecea !important; color: #8a4040 !important; border-color: #e6c3bd !important; }
/* Status-Chips in Karten: ruhig, Farbe nur als kleiner Punkt */
html body :is(.sq-karte, .sk-karte, .sk-tabelle) .chip { background: #f5f3ef !important; color: #4a5260 !important; border: 1px solid #e6e1d7 !important; font-weight: 600; box-shadow: none !important; }
html body :is(.sq-karte, .sk-karte, .sk-tabelle) .chip::before { content: ''; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; margin-right: .35rem; vertical-align: .05rem; background: #a7adb8; }
html body :is(.sq-karte, .sk-karte, .sk-tabelle) .chip:is(.st-neu, .st-zugeteilt)::before { background: #6f8fb3; }
html body :is(.sq-karte, .sk-karte, .sk-tabelle) .chip:is(.st-abholung, .st-in_zustellung)::before { background: #d9a441; }
html body :is(.sq-karte, .sk-karte, .sk-tabelle) .chip:is(.st-in_arbeit, .st-garage)::before { background: #c07a70; }
html body :is(.sq-karte, .sk-karte, .sk-tabelle) .chip:is(.st-fertig, .st-fertig_geparkt, .st-zugestellt, .st-abgerechnet)::before { background: #5f9a74; }
html body :is(.sq-karte, .sk-karte, .sk-tabelle) .chip.st-storniert::before { background: #9aa0a6; }
/* R6b: Code-Feld mit „Anzeigen“ */
.code-feld { display: flex; gap: .4rem; align-items: stretch; } .code-feld input { flex: 1 1 auto; min-width: 0; letter-spacing: .08em; }
.code-feld .code-anzeigen { white-space: nowrap; }
.anmelden .knopf, .login-karte .knopf { white-space: normal; }

/* R6c: Schnellkarte nach Vorlage (Telefon-Ansicht SVIS) – elegant, übersichtlich */
html body .sq-karte.sq-v2 { background:#fff; border:1.5px solid #c9a96e; border-radius:16px; padding:1rem 1.05rem .95rem; gap:.35rem; box-shadow:0 1px 2px rgba(19,41,61,.05); }
html body .sq-v2 .sq-kopf { display:flex; align-items:center; gap:.5rem; margin:0 0 .1rem; }
html body .sq-v2 .sq-nr { color:#a8803f; font-weight:800; font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; }
html body .sq-v2 .sq-status { margin-left:auto; }
html body .sq-v2 .sq-status > * { border:1.5px solid #c9a96e; background:#fbf6ec; color:#152d3f; border-radius:999px; padding:.15rem .7rem; font-size:.8rem; font-weight:700; white-space:nowrap; }
html body .sq-v2 .sq-titelzeile { display:flex; align-items:flex-start; gap:.6rem; }
html body .sq-v2 .sq-gross { margin:0; font-size:1.42rem; line-height:1.15; font-weight:800; color:#152d3f; letter-spacing:-.01em; overflow-wrap:anywhere; flex:1; }
html body .sq-v2 .sq-kennung { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.82rem; color:#6b6457; letter-spacing:.02em; overflow-wrap:anywhere; }
html body .sq-v2 .sq-rubrik { background:none; border:0; padding:0; color:#8a7a5c; font-size:.74rem; font-weight:600; }
html body .sq-v2 .sq-fakten { display:grid; grid-template-columns:1fr 1fr; gap:.65rem 1rem; margin:.45rem 0 .2rem; padding-top:.7rem; border-top:1px solid #e6dcc8; }
html body .sq-v2 .sq-fakten > div { display:block; min-width:0; }
html body .sq-v2 .sq-fakten dt { font-size:.68rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#5f6b78; margin:0 0 .12rem; }
html body .sq-v2 .sq-fakten dd { margin:0; font-size:.98rem; font-weight:600; color:#152d3f; line-height:1.3; overflow-wrap:anywhere; }
html body .sq-v2 .sq-faellig { display:block; margin-top:.15rem; font-size:.68rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
html body .sq-v2.sq-p0 .sq-termin dd, html body .sq-v2.sq-p0 .sq-faellig, html body .sq-v2.sq-p1 .sq-termin dd, html body .sq-v2.sq-p1 .sq-faellig { color:#b42318; }
html body .sq-v2.sq-p2 .sq-termin dd, html body .sq-v2.sq-p2 .sq-faellig { color:#9a6a06; }
/* Zeilen-Variante (Team, Kunden, Listen): Beschriftung links, Wert rechts */
html body .sq-v2 .sq-fakten.zeilen { grid-template-columns:1fr; gap:.35rem; border-top:0; padding-top:.2rem; }
html body .sq-v2 .sq-fakten.zeilen > div { display:grid; grid-template-columns:minmax(6.5rem,38%) 1fr; gap:.6rem; align-items:baseline; }
html body .sq-v2 .sq-fakten.zeilen dt { font-size:.9rem; font-weight:500; letter-spacing:0; text-transform:none; color:#6b7280; margin:0; }
html body .sq-v2 .sq-fakten.zeilen dd { font-size:.95rem; font-weight:500; }
html body .sq-v2 .sq-fuss { display:grid; grid-template-columns:1fr auto; gap:.55rem; margin-top:auto; padding-top:.65rem; }
html body .sq-v2 .sq-fuss .sk-next { min-height:2.75rem; border-radius:10px; font-size:.98rem; font-weight:800; justify-content:center; text-align:center; }
html body .sq-v2 .sq-detail { min-height:2.75rem; min-width:6.2rem; border-radius:10px; font-size:.98rem; font-weight:800; color:#152d3f !important; }
html body .sq-v2 .sq-leer + .sq-detail { justify-self:start; }
html body .sq-v2 .sq-rest { font-size:.78rem; }
/* klein (viele Karten je Reihe) */
html body .sq-raster[data-anzahl="viele"] .sq-v2 .sq-gross { font-size:1.18rem; }
html body .sq-raster[data-anzahl="viele"] .sq-v2 .sq-fakten dd { font-size:.9rem; }
@media (max-width:700px) { html body .sq-v2 .sq-gross { font-size:1.5rem; } html body .sq-v2 .sq-fakten dd { font-size:1rem; } }
html body .sq-v2:has(.sq-licht) .sq-kopf, html body .sq-v2:has(.sq-ecke) .sq-kopf { padding-right:2rem; }
html body .sq-v2:has(.sq-licht):not(:has(.sq-kopf)) .sq-titelzeile, html body .sq-v2:has(.sq-ecke):not(:has(.sq-kopf)) .sq-titelzeile { padding-right:2rem; }
html body .sq-raster[data-anzahl="viele"] .sq-v2 .sq-fuss .sk-next, html body .sq-raster[data-anzahl="viele"] .sq-v2 .sq-detail { font-size:.86rem; min-height:2.6rem; padding:.3rem .55rem; }
html body .sq-raster[data-anzahl="viele"] .sq-v2 .sq-detail { min-width:5rem; }
html body .sq-v2 .sq-fuss:has(> .sq-leer) { grid-template-columns:auto; justify-content:start; }
html body .sq-v2 .sq-fuss > .sq-leer { display:none; }
html body .sq-v2 .sq-fuss:has(> .sq-leer) .sq-detail::after { content:' →'; }
/* R6c: Heute-Kacheln nach Vorlage – Beschriftung oben (Großbuchstaben), große Zahl, Zusatz darunter */
html body .hb-zahl { background:#fff; border:1.5px solid #c9a96e; border-radius:14px; padding:.8rem .9rem .75rem; gap:.3rem; }
html body .hb-zahl span { order:-1; font-size:.7rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#5f6b78; }
html body .hb-zahl b { font-size:2.1rem; font-weight:800; color:#152d3f; letter-spacing:-.01em; }
html body .hb-zahl.hb-zahl-leer b { color:#9aa3ad; }
html body .hb-zahl small { font-size:.82rem; color:#5f6b78; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html body .hb-zahl:hover { background:#fbf6ec; border-color:#a8803f; }
/* R6c: Produkt- und Dienstleistungskarten */
html body .sq-v2 .sq-fakten > .sq-breit { grid-column:1 / -1; }
html body .sq-v2 .sq-fakten > .sq-breit dd { font-weight:500; font-size:.9rem; color:#374151; }
html body .sq-v2 .sq-fakten > .sq-preis dd { font-size:1.35rem; font-weight:800; color:#152d3f; letter-spacing:-.01em; }
html body .sq-v2 .sq-fakten > .sq-warn dd { color:#b42318; }
html body .sq-v2 .sq-kopf { flex-wrap:nowrap; min-width:0; }
html body .sq-v2 .sq-kopf .sq-nr { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .sq-v2 .sq-kopf .sq-status { flex:none; }
/* R6c: Zusatzblatt immer blau – gehört zu den blauen Kennzeichen */
html body .zb-blau, html body a.zb-blau, html body button.zb-blau, html body .sk-karte .zb-blau, html body .sq-v2 .zb-blau { background:#2f5d82 !important; color:#fff !important; border:1.5px solid #234a69 !important; box-shadow:none !important; }
html body .zb-blau:hover { background:#244c6b !important; }
html body summary.zb-blau, html body .chip.zb-blau { border-radius:8px; padding:.2rem .6rem; }
/* R6c: Auftragskopf nach Vorlage */
html body .auftrag-kompakt-kopf .sk-z1 { display:grid; grid-template-columns:1fr auto; grid-template-areas:"nr rechts" "titel titel" "kennung kennung"; align-items:center; gap:.15rem .6rem; }
html body .auftrag-kompakt-kopf .sk-nr { grid-area:nr; color:#a8803f; font-weight:800; font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; }
html body .auftrag-kompakt-kopf .sk-titel { grid-area:titel; font-size:1.5rem; font-weight:800; color:#152d3f; margin:0; line-height:1.15; }
html body .auftrag-kompakt-kopf .sk-kennung { grid-area:kennung; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.82rem; color:#6b6457; }
html body .auftrag-kompakt-kopf .sk-rechts { grid-area:rechts; display:flex; gap:.4rem; align-items:center; justify-self:end; }
html body .auftrag-kompakt-kopf .sk-next-platz { display:flex; gap:.5rem; flex-wrap:wrap; align-items:stretch; }
html body .auftrag-kompakt-kopf .sk-next-platz > * { min-height:2.75rem; border-radius:10px; font-weight:800; }
html body .sk-next-platz :is(button, a.knopf).zb-blau:not([data-fahrt-aktion]), html body :is(button, a, summary, span).zb-blau.zb-blau { background:#2f5d82 !important; color:#fff !important; border:1.5px solid #234a69 !important; box-shadow:none !important; }
html body .auftrag-kompakt-kopf .sk-next-platz { display:grid; grid-template-columns:1fr auto; gap:.5rem; align-items:stretch; }
html body .auftrag-kompakt-kopf .sk-next-platz > .auftrag-steuerung :is(button, a.knopf) { width:100%; }
@media (max-width:700px) { html body .auftrag-kompakt-kopf .sk-z2 { display:grid; grid-template-columns:1fr; gap:.55rem; } }
/* R6c: Ferrari-Rot (Rosso Corsa) für STOP/STOPP · feinere Schrift auf Karten und Knöpfen (elegant, nicht fett) */
:root { --k-stopp:#D40000; --k-rot:#D40000; }
html body :is(.sk-karte,.sk-tabelle,.sq-karte,.sk-next-platz) .sk-next.stopp, html body .sk-next.stopp,
html body .sk-next-platz :is(button, a.knopf)[data-fahrt-aktion="stop"], html body .sq-fuss .sk-next.rot, html body :is(button,a).rot[data-fahrt-aktion],
html body [data-fahrt-aktion="stop"].knopf { background:#D40000 !important; background-image:none !important; color:#fff !important; border:0 !important; box-shadow:none !important; }
html body :is(.sk-next.stopp, [data-fahrt-aktion="stop"]):hover { background:#B00000 !important; }
html body .sq-v2 .sq-nr { font-weight:700; letter-spacing:.16em; }
html body .sq-v2 .sq-gross { font-weight:650; letter-spacing:-.005em; }
html body .sq-v2 .sq-fakten dt { font-weight:650; }
html body .sq-v2 .sq-fakten dd { font-weight:500; }
html body .sq-v2 .sq-fakten > .sq-preis dd { font-weight:650; }
html body .sq-v2 .sq-fuss .sk-next, html body .sq-v2 .sq-detail { font-weight:600; letter-spacing:.01em; }
html body .sq-v2 .sq-status > * { font-weight:600; }
html body .auftrag-kompakt-kopf .sk-titel { font-weight:650; }
html body .auftrag-kompakt-kopf .sk-nr { font-weight:700; }
html body .auftrag-kompakt-kopf .sk-next-platz > *, html body .auftrag-kompakt-kopf .sk-next-platz :is(button, a.knopf) { font-weight:600 !important; letter-spacing:.01em; }
html body .zb-blau, html body :is(button, a, summary, span).zb-blau.zb-blau { font-weight:600 !important; letter-spacing:.02em; background:#2f5d82 !important; background-image:none !important; }
html body .hb-zahl b { font-weight:650; }
html body .sq-v2 .sq-nr { letter-spacing:.1em; }
/* R6c: große Karte (Details) nach Vorlage – Kopf wie Auftragsseite, Reiter, Zeilen mit Aktion */
html body .sk-karte .sk-z1 { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem .55rem; }
html body .sk-karte .sk-z1 .sk-nr { color:#a8803f; font-weight:700; font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; }
html body .sk-karte .sk-z1 .sk-rechts { margin-left:auto; display:flex; gap:.4rem; align-items:center; }
html body .sk-karte .sk-z1 .sk-titel { order:5; flex-basis:100%; font-size:1.5rem; font-weight:650; color:#152d3f; line-height:1.15; text-decoration:none; }
html body .sk-karte .sk-z1 .sk-kennung { order:6; flex-basis:100%; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.82rem; color:#6b6457; }
html body .sk-karte .sk-reiterleiste { display:flex; gap:1.3rem; padding:0 1rem; margin:.6rem -1rem 0; border-top:1px solid #ece4d4; border-bottom:1px solid #ece4d4; background:#faf8f3; overflow-x:auto; }
html body .sk-karte .sk-reiter { background:none !important; border:0 !important; border-bottom:2px solid transparent !important; border-radius:0 !important; padding:.7rem 0 !important; min-height:0 !important; color:#5f6b78 !important; font-weight:500 !important; font-size:.95rem; box-shadow:none !important; white-space:nowrap; }
html body .sk-karte .sk-reiter.an { color:#152d3f !important; font-weight:600 !important; border-bottom-color:#a8803f !important; }
html body .sk-karte .sk-reiterinhalt { padding-top:.2rem; }
html body .sk-karte .sk-zeilen { display:grid; grid-template-columns:1fr; }
@media (min-width:900px) { html body .sk-karte .sk-zeilen { grid-template-columns:1fr 1fr; column-gap:1.5rem; } }
html body .sk-karte .sk-zeile2 { display:grid; grid-template-columns:minmax(7rem,34%) 1fr auto; gap:.6rem; align-items:baseline; padding:.62rem 0; border-bottom:1px solid #eee6d6; font-size:.95rem; }
html body .sk-karte .sk-zl { color:#6b7280; }
html body .sk-karte .sk-zw { color:#152d3f; overflow-wrap:anywhere; }
html body .sk-karte .sk-zeile2.fehlt .sk-zw { color:#9a5b12; font-weight:600; }
html body .sk-karte .sk-zlink { background:none !important; border:0 !important; padding:0 !important; min-height:0 !important; color:#2f5d82 !important; font-weight:500 !important; box-shadow:none !important; text-decoration:none; white-space:nowrap; }
html body .sk-karte .sk-doks { display:flex; flex-wrap:wrap; gap:.5rem; padding:.7rem 0; }
html body .sk-karte .sk-fn { padding:.7rem 0; }
html body .sk-karte .sk-reiterleiste { margin:.6rem 0 0; padding:0 1rem; }
html body .sk-karte .sk-reiterinhalt { padding:.2rem 1rem .6rem; }

/* R6c8: Karten ohne nächsten Schritt – Details als volle, ruhige Schaltfläche (wie Vorlage) */
html body .sq-v2 .sq-fuss:has(> .sq-leer) { grid-template-columns:1fr; justify-content:stretch; }
html body .sq-v2 .sq-fuss:has(> .sq-leer) .sq-detail { justify-self:stretch; width:100%; }
html body .sq-v2 .sq-fuss:has(> .sq-leer) .sq-detail::after { content:''; }
html body .sq-v2 .sq-fakten dd { overflow-wrap:break-word; word-break:normal; hyphens:manual; }
html body .sq-v2 .sq-fakten dt { overflow-wrap:normal; word-break:normal; }
/* R6d: Terminprüfung in der Anfrage */
html body .tp-box { border:1px solid #e6dcc8; border-radius:14px; padding:14px 16px; margin:0 0 14px; background:#fff; }
html body .tp-kopf { display:flex; justify-content:space-between; align-items:center; gap:.6rem; margin-bottom:.4rem; }
html body .tp-nr { color:#a8803f; font-weight:800; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; }
html body .tp-box .chip.tp-ok { background:#e8f4ec; color:#2f7a4d; border:1px solid #bfdcc9; }
html body .tp-box .chip.tp-warn { background:#fff5df; color:#8a6420; border:1px solid #ecd7a8; }
html body .tp-box .chip.tp-fehler { background:#fdeaea; color:#D40000; border:1px solid #f2c2c2; }
html body .tp-liste { list-style:none; padding:0; margin:.5rem 0; }
html body .tp-liste li { display:flex; gap:.6rem; align-items:flex-start; padding:.42rem 0; border-bottom:1px solid #f0e8d8; font-size:.92rem; }
html body .tp-liste li > i { font-style:normal; flex:none; width:1.35rem; height:1.35rem; border-radius:50%; display:grid; place-items:center; font-size:.72rem; font-weight:800; background:#eef2f6; color:#5f6b78; }
html body .tp-liste li.tp-ok > i { background:#e8f4ec; color:#2f7a4d; }
html body .tp-liste li.tp-warn > i { background:#fff3dc; color:#9a6b12; }
html body .tp-liste li.tp-fehler > i { background:#fdeaea; color:#D40000; }
html body .tp-trotz { display:flex; gap:.5rem; align-items:center; font-size:.9rem; margin:.4rem 0; }
html body .tp-bestaetigen.knopf.haupt { background:#2f7a4d !important; border-color:#2f7a4d !important; color:#fff !important; box-shadow:none !important; font-weight:700; }
html body .tp-bestaetigen.knopf.haupt:disabled { opacity:.45; }
/* R6d: Antwort an den Kunden */
html body .tp-antwort-kopf { display:flex; justify-content:space-between; align-items:center; margin:.8rem 0 .35rem; }
html body .tp-quelle { font-size:.75rem; font-weight:700; color:#2f5d82; background:#eef4f9; border:1px solid #cfd9e3; border-radius:999px; padding:.15rem .6rem; }
html body .tp-antwort { width:100%; box-sizing:border-box; border:1px solid #cfd9e3; background:#f6f9fc; border-radius:12px; padding:.7rem .85rem; font:inherit; font-size:.93rem; line-height:1.5; color:#152d3f; resize:vertical; }
html body .tp-gesendet { white-space:pre-wrap; font:inherit; font-size:.88rem; background:#fbf8f2; border:1px solid #eee3cf; border-radius:10px; padding:.6rem .75rem; margin:.4rem 0; }
html body .tp-verlauf { margin-top:.7rem; }
html body .tp-verlauf summary { cursor:pointer; font-size:.88rem; padding:.3rem 0; }
html body .tp-kistand { display:block; margin-top:.35rem; text-align:right; }

/* ===== R6e Werbung (Heute) ===== */
.wb-bereich{margin:14px 0 18px;display:flex;flex-direction:column;gap:12px}
.wb-kopf{display:flex;align-items:center;gap:12px}
.wb-ueber{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#8a6a32}
.wb-zu{margin-left:auto;background:none;border:0;color:#5f6b78;font-size:13px;min-height:40px;cursor:pointer;padding:0 6px}
.wb-zu:hover{color:#071c30;text-decoration:underline}
.wb-banner-reihe{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
.wb-banner-reihe[data-anzahl="1"]{grid-template-columns:1fr}
.wb-banner-reihe>.wb-gross{grid-row:span 2}
.wb-banner{border-radius:16px;overflow:hidden;display:flex;min-height:150px;background:#fff;border:1px solid #e6e2d9}
.wb-banner.wb-gross{background:#071c30;border-color:#071c30;color:#fff;min-height:240px}
.wb-text{flex:1;padding:22px 26px;display:flex;flex-direction:column;gap:8px;justify-content:center;min-width:0}
.wb-art{align-self:flex-start;font-size:11px;letter-spacing:2px;text-transform:uppercase;border-radius:4px;padding:3px 8px;background:#efe6d6;color:#6b5020}
.wb-gross .wb-art{background:#dfbd7f;color:#071c30}
.wb-art-neu{background:#e4edf6;color:#1d5b8f}.wb-art-saison{background:#e6f0ea;color:#2f6b4a}.wb-art-top_preis{background:#f6e7e5;color:#8f3a33}
.wb-titel{font-family:var(--sv-titel,Georgia,serif);font-size:19px;line-height:1.25;color:#071c30;overflow-wrap:anywhere}
.wb-gross .wb-titel{font-size:27px;color:#fff}
.wb-zeile{font-size:14px;line-height:1.5;color:#5f6b78}.wb-gross .wb-zeile{color:#c7d0da}
.wb-knopf{align-self:flex-start;margin-top:4px;background:#fff;color:#071c30;border:1px solid #c9a14a;border-radius:10px;padding:10px 16px;font:inherit;font-size:14px;cursor:pointer;min-height:44px}
.wb-gross .wb-knopf{border-color:#fff}
.wb-bild{width:38%;max-width:340px;flex:none;background:#16324a}
.wb-banner:not(.wb-gross) .wb-bild{width:120px;background:#eef0f2}
.wb-bild img{width:100%;height:100%;object-fit:cover;display:block}
.wb-banner.wb-gross.wb-ohne-bild{min-height:0}
.wb-plakat-reihe{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.wb-plakat-reihe[data-anzahl="1"]{grid-template-columns:minmax(0,340px)}
.wb-plakat-reihe[data-anzahl="2"]{grid-template-columns:repeat(2,minmax(0,340px))}
.wb-plakat-reihe[data-anzahl="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.wb-plakat{display:block;border-radius:14px;overflow:hidden;background:#071c30;box-shadow:0 1px 2px rgba(7,28,48,.08),0 8px 24px rgba(7,28,48,.10)}
.wb-plakat img{display:block;width:100%;height:auto}
.wb-platzhalter{aspect-ratio:9/16;display:flex;align-items:center;justify-content:center;color:#8ea3b8;font-size:13px}
.wb-lizenz{display:flex;align-items:center;gap:14px;background:#faf6ee;border:1px solid #e8d6ac;border-radius:12px;padding:10px 14px}
.wb-lizenz-von{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#8a6a32;white-space:nowrap}
.wb-lizenz-inhalt{flex:1;min-width:0}.wb-lizenz-inhalt .wb-plakat{max-width:120px}
@media (max-width:800px){
 .wb-banner-reihe{grid-template-columns:1fr}.wb-banner-reihe>.wb-gross{grid-row:auto}
 .wb-banner.wb-gross{flex-direction:column-reverse}.wb-gross .wb-bild{width:100%;max-width:none;height:170px}
 .wb-plakat-reihe,.wb-plakat-reihe[data-anzahl]{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:6px}
 .wb-plakat-reihe .wb-plakat{flex:0 0 78%;scroll-snap-align:start}
 .wb-lizenz{flex-wrap:wrap}
 .wb-banner-reihe>.wb-klein{display:none}
 .wb-gross .wb-titel{font-size:22px}
}
/* ===== R6e Werbestudio ===== */
.ws-seite .titelzeile{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.ws-ueber{display:block;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#8a6a32}
.ws-zahlen{display:flex;gap:10px;margin-left:auto;flex-wrap:wrap}
.ws-zahl{background:#fff;border:1px solid #e6e2d9;border-radius:10px;padding:8px 14px;font-size:13px;color:#5f6b78}
.ws-zahl b{font-size:17px;margin-left:6px;color:#071c30}.ws-zahl b.ok{color:#1f7a4d}.ws-zahl b.info{color:#1d5b8f}
.ws-raster{display:grid;grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:22px;align-items:start;margin-top:14px}
.ws-liste{display:flex;flex-direction:column;gap:10px}
.ws-eintrag{display:flex;gap:12px;align-items:center;text-align:left;background:#fff;border:1px solid #e6e2d9;border-radius:12px;padding:10px 12px;font:inherit;cursor:pointer;color:inherit;width:100%}
.ws-eintrag.gewaehlt{border-color:#c9a14a;box-shadow:inset 0 0 0 1px #c9a14a}
.ws-mini{width:56px;height:56px;flex:none;border-radius:8px;background:#071c30;color:#dfbd7f;display:flex;align-items:center;justify-content:center;font-size:11px;overflow:hidden}
.ws-mini.hoch{width:40px;height:70px}.ws-mini img{width:100%;height:100%;object-fit:cover}
.ws-eintrag-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ws-eintrag-text strong{font-family:var(--sv-titel,Georgia,serif);font-weight:400;font-size:16px;color:#071c30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-eintrag-text small{color:#5f6b78;font-size:12px}
.ws-zustand{font-size:12px;font-weight:600;white-space:nowrap}.ws-zustand.ok{color:#1f7a4d}.ws-zustand.info{color:#1d5b8f}.ws-zustand.aus{color:#5f6b78}
.ws-editor{background:#fff;border:1px solid #e6e2d9;border-radius:14px;padding:20px 24px;display:flex;flex-direction:column;gap:12px;min-width:0}
.ws-editor h2{margin:0;font-family:var(--sv-titel,Georgia,serif);font-weight:400;font-size:22px;color:#071c30}
.ws-vorschau-rahmen{display:flex;flex-direction:column;gap:6px}
.ws-chips{display:flex;gap:8px;flex-wrap:wrap}
.ws-chip{border:1px solid #e2e7ec;background:#fff;border-radius:20px;padding:8px 14px;font:inherit;font-size:13px;cursor:pointer;min-height:40px;color:#17191b}
.ws-chip.an{border-color:#c9a14a;background:#faf6ee;color:#6b5020}
.ws-zeile{display:flex;gap:12px;flex-wrap:wrap}.ws-zeile>.feld{flex:1;min-width:170px}
.ws-vorschau{border:1px dashed #e6e2d9;border-radius:14px;padding:12px;background:#f4f3ef}
.ws-vorschau .wb-plakat{max-width:300px;margin:0 auto}
.ws-vorschau .wb-bild img{cursor:crosshair}
.ws-knoepfe{flex-wrap:wrap}
.ws-homepage pre{white-space:pre-wrap;word-break:break-all;background:#f4f3ef;border-radius:8px;padding:10px;font-size:12px}
.ws-form{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
@media (min-width:1101px){.ws-editor{flex-direction:row;align-items:flex-start;gap:24px}.ws-vorschau-rahmen{width:340px;flex:none;position:sticky;top:12px}}
.ws-vorschau .wb-banner.wb-gross{min-height:200px}.ws-vorschau .wb-gross .wb-titel{font-size:21px}
@media (max-width:1100px){.ws-raster{grid-template-columns:1fr}}
/* ===== R6e Mein Fahrtenbuch ===== */
.kfb-kachel{display:flex;flex-direction:column;gap:4px;background:#071c30;color:#fff;border-radius:14px;padding:16px 20px;text-decoration:none;margin:0 0 14px}
.kfb-kachel-titel{font-family:var(--sv-titel,Georgia,serif);font-size:20px;color:#dfbd7f}.kfb-kachel small{color:#c7d0da}
.kfb-schutz{background:#f0f7f3;border:1px solid #cfe5d8;border-radius:10px;padding:10px 14px;color:#1f5a3c}
.kfb-lizenzen{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.kfb-lizenz{background:#fff;border:1px solid #e6e2d9;border-radius:12px;padding:12px 16px;display:flex;flex-direction:column;gap:2px;min-width:220px}
.kfb-lizenz small{color:#5f6b78;font-size:12px}.kfb-lizenz strong{font-family:var(--sv-titel,Georgia,serif);font-weight:400;font-size:18px;color:#071c30}
.kfb-lizenz.aus{opacity:.7}
.kfb-kopf{display:flex;align-items:center;gap:12px;margin:18px 0 10px}.kfb-kopf h2{margin:0;font-family:var(--sv-titel,Georgia,serif);font-weight:400}.kfb-kopf .knopf{margin-left:auto}
.kfb-lenker{display:flex;flex-direction:column;gap:8px}
.kfb-person{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e6e2d9;border-radius:10px;padding:10px 14px}
.kfb-person>div{flex:1;display:flex;flex-direction:column}.kfb-person small{color:#5f6b78}
.kfb-filter{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:10px 0}
.kfb-blatt{background:#fff;border:1px solid #e6e2d9;border-radius:12px;padding:24px 28px;color:#17191b}
.kfb-blatt-kopf{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #071c30;padding-bottom:10px}
.kfb-blatt-titel{font-family:var(--sv-titel,Georgia,serif);font-size:22px;color:#071c30}
.kfb-blatt-kz{font-size:22px;font-weight:700;letter-spacing:1px}
.kfb-blatt-kopf .r{text-align:right}
.kfb-blatt-zeitraum{margin:10px 0;color:#5f6b78;font-size:13px}
.kfb-tab{width:100%;border-collapse:collapse;font-size:13px}
.kfb-tab th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#5f6b78;border-bottom:1px solid #c9ccd1;padding:6px 6px}
.kfb-tab td{border-bottom:1px solid #eceae4;padding:6px 6px;vertical-align:top}
.kfb-tab small{display:block;color:#5f6b78;font-size:11px}
.kfb-tab .r{text-align:right;white-space:nowrap}
.kfb-blatt-fuss{margin-top:14px;font-size:11px;color:#5f6b78}
@media (max-width:700px){.kfb-tab thead{display:none}.kfb-tab tr{display:block;border-bottom:1px solid #e6e2d9;padding:6px 0}.kfb-tab td{display:inline-block;border:0;padding:2px 6px}}
@media print{
 .kfb-blatt{border:0;padding:0;border-radius:0}
 .kfb-tab{font-size:10pt}.kfb-tab thead{display:table-header-group}.kfb-tab tr{page-break-inside:avoid}
}
/* R6f: KI-Kundendienst (Info & Hilfe) */
.kd-chat{display:flex;flex-direction:column;gap:10px;max-width:760px}
.kd-kopf{display:flex;align-items:center;gap:10px}.kd-kopf>div{display:flex;flex-direction:column}
.kd-symbol{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#071c30;color:#dfbd7f;font-weight:600;font-size:13px}
.kd-chips{display:flex;flex-wrap:wrap;gap:6px}.kd-chip{cursor:pointer;border:1px solid #d9c59c;background:#fbf7ef}
.kd-liste{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto;padding:4px 2px}
.kd-blase{max-width:88%;padding:9px 12px;border-radius:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.kd-ich{align-self:flex-end;background:#eef2f6}.kd-ki{align-self:flex-start;border:1px solid #e3e6ea;background:#fff}
.kd-warte{opacity:.65;font-style:italic}.kd-fehler{border-color:#e7b0a8;background:#fdf3f1}
.kd-zeile{display:flex;gap:8px;align-items:flex-end}.kd-eingabe{flex:1;min-width:0;resize:vertical}
.kd-slots{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.kd-termin{display:flex;flex-direction:column;gap:2px;margin-top:8px;padding:8px 10px;border-radius:8px;background:#fff7e6;border:1px solid #f0d49a}
.kd-termin.ok{background:#eef8ef;border-color:#9fd3a6}
.kd-ds{display:flex;gap:6px;align-items:flex-start}.kd-hinweis{display:block}
.kd-alt{font-size:13px}.kd-alt-eintrag{border-top:1px solid #eee;padding:6px 0}
.kd-raster{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.kd-wissen{display:flex;flex-direction:column;gap:10px}.kd-wissen-zeile{display:grid;gap:6px;padding:10px;border:1px solid #e3e6ea;border-radius:10px}
.kd-code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f5f6f8;padding:8px;border-radius:6px}
.kd-g summary{cursor:pointer;font-size:13px;padding:4px 0}
@media (max-width:900px){.kd-raster{grid-template-columns:minmax(0,1fr)}.kd-blase{max-width:96%}}
.kd-platz{margin:0 0 18px}.kd-oder{color:#c7d0da;font-size:14px;margin:14px 2px 0}
/* R6f2: Werbe-Vorschau für Admin/Büro auf „Heute“ */
.wb-vorschau{border:1px dashed #c9a96a;border-radius:14px;padding:12px;margin:10px 0;background:#fffdf8}
.wb-vorschau-reihe{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.wb-vorschau-eintrag{margin:0;display:flex;flex-direction:column;gap:6px}.wb-vorschau-eintrag .wb-plakat img{max-height:340px;object-fit:contain}
.wb-vorschau-eintrag figcaption{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px}
/* R6g: Bankabgleich */
.bk-kopf{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.bk-filter{display:flex;gap:6px;flex-wrap:wrap}.bk-filter [aria-pressed=true]{background:#071c30;color:#fff}
.bk-liste{display:flex;flex-direction:column}
.bk-zeile{display:grid;grid-template-columns:90px minmax(0,1.4fr) 120px minmax(0,1.6fr);gap:10px;padding:10px 4px;border-top:1px solid #eceef1;align-items:start}
.bk-text{display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}.bk-text small{color:#5f6670}
.bk-betrag{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.bk-ein .bk-betrag{color:#1f7a3a}.bk-aus .bk-betrag{color:#7a2b1f}
.bk-zuordnung{display:flex;flex-direction:column;gap:4px}.bk-aktionen{display:flex;flex-wrap:wrap;gap:6px}.bk-art{max-width:200px}
.bk-treffer{display:flex;flex-direction:column;gap:6px;margin-top:10px;max-height:50vh;overflow:auto}.bk-treffer-knopf{text-align:left}
.chip.fehler{background:#fdecea;color:#8a1c12}.chip.warn{background:#fff4dc;color:#7a5200}
@media (max-width:900px){.bk-zeile{grid-template-columns:70px minmax(0,1fr) 100px}.bk-zuordnung{grid-column:1/-1}}
/* R6h · KI-Dokumenteneingang */
.eg-eingabe{display:flex;flex-direction:column;gap:10px}
.eg-zone{border:2px dashed #b69960;border-radius:12px;padding:22px 14px;text-align:center;display:flex;flex-direction:column;gap:4px;cursor:pointer;background:#fbf9f4}
.eg-zone:focus-visible,.eg-zone-aktiv{background:#f3ecdd;border-color:#071c30;outline:none}
.eg-fortschritt ol{margin:0;padding-left:20px;font-size:.92em}.eg-fortschritt li{padding:2px 0;overflow-wrap:anywhere}
.eg-leiste{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0 6px}
.eg-reiter{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 10px}
.eg-tab{border:1px solid #d6d9de;background:#fff;border-radius:999px;padding:6px 12px;font:inherit;cursor:pointer}
.eg-tab[aria-selected=true]{background:#071c30;color:#fff;border-color:#071c30}
.eg-liste{display:flex;flex-direction:column;gap:8px}
.eg-karte{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:start}
.eg-symbol{font-size:28px;line-height:1;text-align:center;padding-top:2px}
.eg-inhalt{display:flex;flex-direction:column;gap:4px;min-width:0}.eg-inhalt p{margin:0;overflow-wrap:anywhere}
.eg-kopf{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.eg-karte.eg-erkannt{border-left:4px solid #b69960}.eg-karte.eg-neu{border-left:4px solid #9aa3ad}
.eg-karte.eg-erledigt{opacity:.92}.eg-karte.eg-verworfen{opacity:.6}
.eg-inhalt .knoepfe select{max-width:200px}
@media (max-width:600px){.eg-karte{grid-template-columns:32px minmax(0,1fr)}.eg-symbol{font-size:22px}.eg-inhalt .knoepfe{flex-wrap:wrap}}
.eg-leiste input[type=month]{width:auto;max-width:200px}
.ausgeben-filter{display:flex;flex-wrap:wrap;gap:8px}.ausgeben-filter>input,.ausgeben-filter>select{flex:1 1 170px;width:auto;min-width:0}.ausgeben-filter>.knopf{flex:0 0 auto}
/* R6i · Fahrtenbuch-Karten: blaue Tafeln und Oldtimer getrennt, Zusatzblatt */
.kfb-bereich{background:#fbfaf6;border:1px solid #e6e2d9;border-radius:14px;padding:6px 16px 14px;margin:0 0 16px}
.kfb-bereich-probekennzeichen{border-left:5px solid #1d4f9c}.kfb-bereich-oldtimer{border-left:5px solid #b69960}
.kfb-bereich .kfb-kopf{margin-top:12px}
.sq-karte.kfb-tafel .sq-nr{background:#1d4f9c;color:#fff;border-radius:5px;padding:1px 8px;letter-spacing:1px}
.kfb-zb-link{display:inline-block;margin-top:3px;font-size:12px}
.kfb-zb h3{font-family:var(--sv-titel,Georgia,serif);font-weight:400;font-size:16px;color:#071c30;margin:16px 0 6px;border-bottom:1px solid #e6e2d9;padding-bottom:3px}
.kfb-zb-raster{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px 18px}
.kfb-zb-feld{display:flex;flex-direction:column}.kfb-zb-feld span{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#5f6b78}.kfb-zb-feld strong{font-weight:600;font-size:14px;overflow-wrap:anywhere}
.kfb-zb-unterschrift{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:42px}.kfb-zb-unterschrift div{border-top:1px solid #17191b;padding-top:4px;font-size:11px;color:#5f6b78}
@media print{.kfb-zb{font-size:11pt}.kfb-zb-raster{grid-template-columns:repeat(3,1fr)}}
/* R6j · End-Kilometer mit Startwert, −/+ und „gefahrene km“ */
.km-ende-zeile{display:flex;gap:8px;align-items:stretch}.km-ende-zeile .km-ende-wert{flex:1;font-size:20px;font-weight:600;text-align:center;letter-spacing:.5px;min-width:0}
.km-ende-knopf{min-width:52px;font-size:22px;line-height:1;padding:0 10px}
.km-ende-zeile2{display:flex;gap:8px;align-items:center;margin-top:8px;color:#5f6b78;font-size:14px;flex-wrap:wrap}.km-ende-zeile2 .km-ende-diff{width:90px;text-align:center;font-size:17px}
.km-ende-info{display:block;margin-top:4px;font-size:13px;color:#1f5a3c}.km-ende-info.warn{color:#a32020;font-weight:600}
/* R6k · Stellplatz-Karte und Fremdbelegung */
.sp-karte{max-width:640px;display:flex;flex-direction:column;gap:12px}
.sp-kopf{display:flex;align-items:baseline;gap:14px;border-bottom:1px solid #e6e2d9;padding-bottom:8px}.sp-name{font-family:var(--sv-titel,Georgia,serif);font-size:34px;color:#071c30;line-height:1}
.sp-zustand{display:flex;flex-direction:column;gap:3px;border-radius:12px;padding:12px 14px;border:1px solid #e6e2d9}
.sp-frei{background:#f0f7f3;border-color:#cfe5d8}.sp-auftrag{background:#fdf0f0;border-color:#f0caca}
.sp-fremd{background:#fbf6ea;border-color:#e8d6a8}.sp-gesperrt{background:#f2f3f5;border-color:#d6d9de}
.sp-etikett{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:1px;background:#071c30;color:#dfbd7f;border-radius:5px;padding:2px 8px}
.sp-liste{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}.sp-liste li{overflow-wrap:anywhere}.sp-liste .knopf{margin-left:8px}
.sp-uebersicht{margin-top:14px}
/* R6l · Monatsabschluss und Bank-Kategorien */
.ma-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ma-punkt{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid #e6e2d9;border-radius:10px}
.ma-punkt div{display:flex;flex-direction:column}.ma-punkt small{color:#5f6b78}
.ma-zeichen{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#fff;background:#9aa3ad}
.ma-punkt.ok .ma-zeichen{background:#1f7a4d}.ma-punkt.offen .ma-zeichen{background:#b45309}.ma-punkt.offen{background:#fff8ec}
.ma-tab{width:100%;border-collapse:collapse}.ma-tab td,.ma-tab th{padding:6px 8px;border-bottom:1px solid #eee;text-align:left}.ma-tab .r{text-align:right;font-variant-numeric:tabular-nums}
.ma-tab tr.warn td{color:#a32020}.ma-tab tfoot td{font-weight:700;border-top:2px solid #071c30}
.ma-abgeschlossen{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#f0f7f3;border-radius:10px;padding:8px 12px}
.bk-regeln{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.bk-regeln li{display:flex;justify-content:space-between;gap:10px;align-items:center}.bk-regeln li span{display:flex;flex-direction:column}
@media (max-width:600px){.ma-punkt{grid-template-columns:26px minmax(0,1fr)}.ma-punkt .knopf{grid-column:2}}
/* R6m · Konten der Steuerberatung */
.fk-tab td{vertical-align:top}.fk-konto{width:110px}.fk-st{width:80px}.fk-name{display:block;margin-top:2px}
.fk-tab+datalist{display:none}
/* R6n · Fahrtenbuch-Stammdaten */
.kfb-stamm{display:flex;flex-wrap:wrap;gap:4px 18px;margin:6px 0 4px;font-size:13px}.kfb-stamm small{color:#5f6b78;text-transform:uppercase;font-size:10px;letter-spacing:.5px}
.kfb-bereich-autos{border-left:5px solid #5f6b78}.kfb-person small.warn{color:#a32020;font-weight:600}
/* R6o · Fahrten-Kontingent */
.kfb-kontingent{margin:8px 0;padding:8px 12px;border:1px solid #e6e2d9;border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:6px}
.kfb-kont-kopf{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px}.kfb-kont-kopf small{color:#5f6b78}
.kfb-kont-balken{height:8px;border-radius:5px;background:#eef0f2;overflow:hidden}.kfb-kont-balken span{display:block;height:100%;background:#1f7a4d}
.kfb-kontingent.warn .kfb-kont-balken span{background:#b45309}.kfb-kontingent.voll{border-color:#e6b0b0;background:#fff6f6}.kfb-kontingent.voll .kfb-kont-balken span{background:#a32020}
.kfb-kont-admin{margin-top:14px}.kfb-kont-admin tr.warn td{color:#a32020}
/* R6p: Abschnitte im Menü */
html body .nav-untermenue .nav-abschnitt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9a7b45; padding: 10px 12px 4px; margin-top: 4px; border-top: 1px solid #efe9dd; }
html body .nav-untermenue .nav-abschnitt:first-child { border-top: 0; margin-top: 0; padding-top: 4px; }
/* R6q: Gebäude & Flächen – Reiter je Skizze */
html body .gp-reiter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
html body .gp-reiter .knopf.aktiv { border: 3px double #b8945a; background: #fffaf0; font-weight: 600; }
html body .gp-reiter .gp-reiter-neu { border-style: dashed; color: #6b5a3a; }

/* R6u: zehn Menübereiche passen auf Laptop-Breite in eine Zeile; „Einstellungen“ dort nur als Symbol (Name als Tooltip) */
@media(min-width:1051px) and (max-width:1600px){body .kopf-heute-menue .hauptnavigation{gap:3px}body .kopf-heute-menue :is(.nav-start,.nav-kategorie-knopf){padding:0 8px;gap:5px}.nav-kategorie-knopf>.nav-symbol:last-child{width:12px;height:12px}}
/* R6x: nur „Einstellungen“ auf Laptop-Breite als Symbol (Name als Tooltip); Dienstleistungen/Produkte immer mit Text */
@media(min-width:1051px) and (max-width:1460px){.nav-direkt-einst .nav-direkt-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media(min-width:1201px) and (max-width:1320px){body .kopf-heute-menue :is(.nav-start,.nav-kategorie-knopf){font-size:12px;padding:0 7px}}
/* R6v: Testsystem-Band über dem Menü */
.kopf .test-band{background:#f5c842;color:#3b2d00;text-align:center;font-size:12.5px;letter-spacing:.03em;padding:5px 12px;line-height:1.3;border-bottom:1px solid #d9a91a}
.kopf .test-band b{letter-spacing:.12em}
@media print{.kopf .test-band{display:none}}
/* R6y: Listen-Tabelle (Dienstleistungen, Produkte) – nur Tabelle, Favoriten und Kategorien */
.lt-werkzeug{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:6px 0 10px}
.lt-suche{flex:1 1 280px;min-height:42px;padding:8px 12px 8px 36px;border:1px solid #cdbf9f;border-radius:10px;font-size:15px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238a6a32' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center}
.lt-suche:focus{outline:2px solid #b69960;outline-offset:1px;border-color:#b69960}
.lt-chips{display:flex;flex-wrap:wrap;gap:6px}
.lt-chip{border:1px solid #d9ccb0;background:#fff;color:#183448;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:34px}
.lt-chip small{margin-left:6px;color:#8a6a32;font-weight:600}
.lt-chip[aria-pressed=true]{background:#071c30;border-color:#071c30;color:#f3e9d2}
.lt-chip[aria-pressed=true] small{color:#dfbd7f}
.lt-anzahl{margin-left:auto;font-size:12.5px;color:#5f6b78}
.lt-rahmen{overflow:auto;border:1px solid #e3d8c2;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(7,28,48,.05),0 4px 14px rgba(7,28,48,.05)}
@media(min-width:900px){.lt-rahmen{max-height:calc(100dvh - 250px)}}
table.lt-tab{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.lt-tab thead th{position:sticky;top:0;z-index:2;background:#071c30;color:#f3e9d2;text-align:left;font-weight:600;font-size:12.5px;letter-spacing:.03em;padding:10px 12px;white-space:nowrap}
.lt-tab thead th.r{text-align:right}
.lt-sort{all:unset;cursor:pointer;color:inherit}
.lt-sort:hover,.lt-sort:focus-visible{text-decoration:underline;text-underline-offset:3px}
.lt-tab tbody td{padding:9px 12px;border-bottom:1px solid #f1ebdf;vertical-align:middle}
.lt-tab tbody tr.lt-zeile:nth-child(even) td{background:#fcfaf6}
.lt-tab tbody tr.lt-zeile.klickbar{cursor:pointer}
.lt-tab tbody tr.lt-zeile:hover td,.lt-tab tbody tr.lt-zeile:focus-visible td{background:#f6efe1}
.lt-tab tbody tr.lt-zeile:focus-visible{outline:2px solid #b69960;outline-offset:-2px}
.lt-tab td.r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.lt-tab tr.lt-gruppe td{background:#f3ecdd;color:#6b5a3a;font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:7px 12px;border-bottom:1px solid #e3d8c2}
.lt-tab tr.lt-gruppe small{font-weight:500;letter-spacing:0;text-transform:none;color:#8a7a5a}
.lt-tab tr.lt-gruppe.lt-fav td{background:#fff4d6;color:#8a6a00}
.lt-nr{color:#8a6a32;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.lt-name strong{display:block;color:#071c30;font-weight:600}
.lt-name small{display:block;color:#6b7280;font-size:12.5px;max-width:52ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lt-preis{font-weight:700;color:#071c30}
.lt-warn{color:#b42318;font-weight:600}
.lt-status{display:inline-block;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;white-space:nowrap}
.lt-status.an{background:#e8f5ee;color:#1f7a4d}.lt-status.aus{background:#eef0f3;color:#5f6b78}.lt-status.warn{background:#fdecea;color:#b42318}
.lt-sterncol{width:36px;text-align:center;padding-left:6px!important;padding-right:0!important}
.lt-stern{all:unset;cursor:pointer;font-size:20px;line-height:1;color:#c9b88f;padding:4px;border-radius:6px}
.lt-stern.an{color:#e0a100}
.lt-stern:hover,.lt-stern:focus-visible{background:#fff4d6;color:#e0a100}
.lt-aktion{width:1%;white-space:nowrap}
.lt-leer{text-align:center;color:#5f6b78;padding:24px!important}
@media(max-width:700px){.lt-mobil-aus{display:none}.lt-tab{font-size:13.5px}.lt-tab tbody td,.lt-tab thead th{padding:8px 8px}.lt-name small{max-width:24ch}.lt-anzahl{margin-left:0}}
/* R6y: Schnellwahl in Programmauswahl */
.feld-schnellwahl .sw{position:relative;margin:2px 0 6px}
.sw-suche{width:100%;min-height:42px;padding:8px 12px;border:2px solid #dfbd7f;border-radius:10px;font-size:15px;background:#fffdf7}
.sw-suche:focus{outline:none;border-color:#b69960;background:#fff}
.sw-liste{margin-top:4px;border:1px solid #e3d8c2;border-radius:10px;background:#fff;max-height:300px;overflow:auto;box-shadow:0 6px 18px rgba(7,28,48,.12)}
.sw-eintrag{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;cursor:pointer;border-bottom:1px solid #f3eee4;font-size:14.5px;color:#183448}
.sw-eintrag:last-child{border-bottom:0}
.sw-eintrag.an,.sw-eintrag:hover{background:#f6efe1}
.sw-eintrag .sw-text{flex:1}
.sw-eintrag small{color:#8a7a5a;font-size:12px;white-space:nowrap}
.sw-stern{color:#e0a100}
.sw-leer{padding:10px 12px;color:#5f6b78;font-size:13.5px}
/* R6y: Scanner */
.scan-dlg .scan-hinweis{font-weight:600;color:#183448}
.scan-dlg .scan-seiten{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.scan-dlg .scan-seite{padding:6px;display:flex;flex-direction:column;align-items:center;gap:4px}
.scan-dlg .scan-modus{display:flex;align-items:center;gap:6px;font-size:13px}
/* R6y: globale Knopf-Stile in der Tabelle neutralisieren */
html body .lt-tab thead button.lt-sort{background:none!important;border:0!important;box-shadow:none!important;color:#f3e9d2!important;padding:0!important;min-height:0!important;font:inherit!important;letter-spacing:inherit;cursor:pointer;width:auto}
html body .lt-tab button.lt-stern{background:none!important;border:0!important;box-shadow:none!important;min-height:0!important;width:auto!important;padding:4px!important;font-size:20px!important;line-height:1!important;color:#c9b88f!important}
html body .lt-tab button.lt-stern.an{color:#e0a100!important}
html body .lt-tab button.lt-stern:hover,html body .lt-tab button.lt-stern:focus-visible{background:#fff4d6!important;color:#e0a100!important}
html body .sw-liste button.sw-eintrag{background:#fff!important;border:0!important;border-bottom:1px solid #f3eee4!important;border-radius:0!important;box-shadow:none!important;min-height:0!important;justify-content:flex-start;text-align:left;font-weight:400}
html body .sw-liste button.sw-eintrag.an,html body .sw-liste button.sw-eintrag:hover{background:#f6efe1!important}
.sw-suche{background-image:none!important;padding-left:12px!important}
/* R7f: Reiter für zusammengehörige Seiten (ein Menüpunkt) */
.sv-seitenreiter{display:flex;gap:4px;margin:0 0 14px;border-bottom:1px solid #e1d8c6;overflow-x:auto;scrollbar-width:none}
.sv-seitenreiter::-webkit-scrollbar{display:none}
.sv-seitenreiter a{flex:none;padding:10px 16px;min-height:42px;display:flex;align-items:center;color:#5f6b78;text-decoration:none;font-size:14px;font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap}
.sv-seitenreiter a:hover{color:#071c30}
.sv-seitenreiter a.aktiv{color:#071c30;border-bottom-color:#c9a14a}
/* R7f: Werbung als Schaufenster „Aktuell für Sie“ (Kundenportal, Mitarbeiter) */
.hw-raster.mit-werbung{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);column-gap:20px;align-items:start}
.hw-raster.mit-werbung>*{grid-column:1;min-width:0}
.hw-raster.mit-werbung>.heute-kopf{grid-column:1/-1}
.hw-raster.mit-werbung>.wb-schaufenster{grid-column:2;grid-row:2/span var(--sf-zeilen,8);align-self:start;position:sticky;top:14px}
.hw-raster.mit-werbung>.wb-weitere{order:9}
.wb-schaufenster{background:linear-gradient(160deg,#0b2236,#071c30 62%);border:1px solid #2a4259;border-radius:20px;padding:14px 14px 16px;color:#fff;box-shadow:0 2px 4px rgba(7,28,48,.12),0 18px 40px rgba(7,28,48,.22);margin-bottom:18px}
.sf-kopf{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 4px 12px}
.sf-ueber{font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:#dfbd7f;font-weight:600}
.sf-zu{background:none;border:0;color:#8ea3b8;font-size:12px;cursor:pointer;min-height:32px;padding:0 4px}.sf-zu:hover{color:#fff;text-decoration:underline}
.sf-spur{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:12px}
.sf-spur::-webkit-scrollbar{display:none}
.sf-folie{flex:0 0 100%;scroll-snap-align:start;border-radius:12px;overflow:hidden;min-width:0}
.sf-plakat{display:block;padding:0;border:0;background:#071c30;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.45)}
div.sf-plakat{cursor:default}
.sf-plakat img{display:block;width:100%;height:auto}
.sf-banner{background:#fff;color:#071c30;display:flex;flex-direction:column}
.sf-bild img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.sf-text{padding:18px 18px 20px;display:flex;flex-direction:column;gap:8px}
.sf-banner:not(:has(.sf-bild)){background:linear-gradient(160deg,#fff,#faf6ee);border-left:5px solid #dfbd7f}
.sf-titel{font-family:var(--sv-titel,Georgia,serif);font-size:21px;line-height:1.25;overflow-wrap:anywhere}
.sf-zeile{font-size:14px;line-height:1.5;color:#5f6b78}
.sf-cta{align-self:stretch;margin-top:6px;background:#dfbd7f;color:#071c30;border:0;border-radius:12px;padding:13px 16px;font:inherit;font-weight:700;cursor:pointer;min-height:46px}
.sf-cta:hover{background:#e8cb94}
.sf-unten{display:flex;align-items:center;justify-content:space-between;margin-top:14px}
.sf-punkte{display:flex;gap:7px;align-items:center}
.sf-punkte button{width:8px;height:8px;border-radius:5px;border:0;padding:0;background:#3b5570;cursor:pointer;transition:width .25s}
.sf-punkte button.aktiv{width:24px;background:#dfbd7f}
.sf-pfeile{display:flex;gap:8px}
.sf-pfeil{width:38px;height:38px;border-radius:50%;border:1px solid #3b5570;background:none;color:#dfbd7f;font-size:18px;cursor:pointer}
.sf-pfeil:hover{border-color:#dfbd7f}
.wb-weitere{margin:8px 0 18px}
.wb-weitere-kopf{display:flex;align-items:center;gap:12px;margin-bottom:10px;font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:#8a6a32;font-weight:600}
.wb-weitere-kopf::after{content:"";flex:1;border-top:1px solid #e1d8c6}
.wb-weitere-raster{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.wb-karte{position:relative;background:#fff;border:1px solid #e6e2d9;border-radius:14px;padding:16px 18px 16px 22px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.wb-karte::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#dfbd7f}
.wb-karte-titel{font-family:var(--sv-titel,Georgia,serif);font-size:17px;color:#071c30;line-height:1.3}
.wb-karte-text{font-size:13.5px;color:#5f6b78}
.wb-karte-link{align-self:flex-start;margin-top:auto;background:none;border:0;padding:6px 0 0;color:#8a6a32;font:inherit;font-weight:600;cursor:pointer;min-height:36px}
.wb-karte-link:hover{text-decoration:underline}
@media(max-width:980px){
 .hw-raster.mit-werbung{grid-template-columns:minmax(0,1fr)}
 .hw-raster.mit-werbung>*{order:3}
 .hw-raster.mit-werbung>.heute-kopf{order:0}
 .hw-raster.mit-werbung>.heute-kz{order:1}
 .hw-raster.mit-werbung>.wb-schaufenster{order:2;grid-column:1;grid-row:auto;position:static}
 .hw-raster.mit-werbung>.wb-weitere{order:9}
 .sf-folie{flex-basis:84%}
 .sf-spur{scroll-padding-left:0}
}
/* R7f: globale Knopf-Stile im Schaufenster zurücksetzen */
.wb-schaufenster button.sf-zu,.wb-karte button.wb-karte-link{background:none!important;border:0!important;box-shadow:none!important;min-width:0!important;width:auto!important}
.wb-schaufenster button.sf-zu{color:#8ea3b8!important;padding:0 4px!important;font-size:12px!important}
.wb-schaufenster button.sf-zu:hover{color:#fff!important}
.wb-karte button.wb-karte-link{color:#8a6a32!important;padding:6px 0 0!important;font-size:14px!important}
.wb-schaufenster .sf-punkte button{border:0!important;padding:0!important;min-height:0!important;min-width:0!important;height:8px!important;width:8px!important;background:#3b5570!important;box-shadow:none!important}
.wb-schaufenster .sf-punkte button.aktiv{width:24px!important;background:#dfbd7f!important}
.wb-schaufenster button.sf-pfeil{width:38px!important;height:38px!important;min-height:0!important;padding:0!important;border-radius:50%!important;border:1px solid #3b5570!important;background:none!important;color:#dfbd7f!important;box-shadow:none!important}
.wb-schaufenster button.sf-plakat{padding:0!important;border:0!important;background:#071c30!important;min-height:0!important;width:100%!important}
.wb-schaufenster button.sf-cta{background:#dfbd7f!important;color:#071c30!important;border:0!important}
.hw-raster.mit-werbung>.heute-kz{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1250px){.hw-raster.mit-werbung>.heute-kz{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.wb-schaufenster.einzeln .sf-folie{flex-basis:100%}}
/* R7j: Demo-Modus der Firma */
.kopf .demo-band{display:block;text-decoration:none;background:#ffd84d;color:#3b2d00}
.kopf a.demo-band:hover{background:#ffcf1f}
/* R7k: Neue Fahrt in Schritten, Lenker frei wählbar, Unterschrift bei Übernahme */
.fp-schritt h2{display:flex;align-items:center;gap:.5rem;font-size:1.05rem}
.fp-nr{display:inline-flex;width:1.5rem;height:1.5rem;border-radius:50%;background:#e6f1fb;color:#0c447c;font-size:.8rem;align-items:center;justify-content:center;font-family:inherit}
.fp-zwei{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.6rem}
@media(max-width:520px){.fp-zwei{grid-template-columns:minmax(0,1fr)}}
.fp-lenker-art{display:flex;gap:.4rem;flex-wrap:wrap;margin:.4rem 0 .6rem}
.fp-lenker-art .knopf[aria-pressed=true]{background:#e6f1fb;border-color:#378add;color:#0c447c}
.fp-lenker-block{border-top:1px solid var(--rand,#e3ddd0);padding-top:.6rem;margin-top:.6rem}
.fp-lenker-block:first-child{border-top:0;margin-top:0;padding-top:0}
.fp-lenker-kopf{display:flex;justify-content:space-between;align-items:center}
.fp-route-mehr{margin:.5rem 0}.fp-route-mehr summary{cursor:pointer;color:#185fa5;font-size:.92rem}
.fp-lenker-info{background:#f7f4ec;border-radius:8px;padding:.5rem .75rem;margin:.6rem 0}.fp-lenker-info p{margin:.15rem 0}
.fp-unterschrift{border:1px solid #d9a91a;background:#fffbeb;border-radius:10px;padding:.75rem;margin:.75rem 0}
.fp-unterschrift canvas.unterschrift{width:100%;max-width:600px;height:auto;aspect-ratio:3/1;background:#fff;border:1px dashed #b4b2a9;border-radius:8px;touch-action:none}
/* R7l: erlaubte Probefahrt-Zwecke je Kennzeichen */
.fp-zwecke{border-top:1px solid #e3ddd0;padding:.5rem 0}.fp-zwecke summary{cursor:pointer}
.fp-zwecke-liste{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.1rem .8rem;margin:.4rem 0}
/* R7n5: einheitliches Kartenraster – gleiche Kartenbreite in allen Gruppen (vorher 212 px Mindestbreite, Einzelkarte 620 px) */
#app :is(ul.sq-raster, .fp-category .fp-grid), #app :is(ul.sq-raster, .fp-category .fp-grid)[data-anzahl] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important; gap: .75rem !important; }
html body .sq-karte .sq-fakten dd { overflow-wrap: anywhere; word-break: normal; hyphens: manual; }
/* R7n5: Fuhrpark – „+ Karte“ in der Gruppenzeile, leere Gruppe einzeilig */
#app .fp-category > .fp-category-heading { display: flex !important; grid-template-columns: none !important; align-items: center; gap: .6rem; flex-wrap: wrap; min-height: 0 !important; }
#app .fp-category > .fp-category-heading h2 { flex: 0 1 auto; }
#app .fp-category > .fp-category-heading > .fp-add-card { margin-left: auto; width: auto !important; min-height: 32px; padding: 4px 12px; grid-column: auto !important; flex-basis: auto !important; }
html body .fp-category .fp-category-heading .fp-empty { font-size: .85rem; margin: 0; }
html body .fp-category:not(:has(.fp-grid)) { padding-bottom: 0; margin-bottom: .4rem; }
/* R7n5: Team-Karten – Zähler steht schon in der Gruppenüberschrift */
html body .team-funktionsgruppe .sv-sammlung-kopf > .klein.leise { display: none; }
html body .team-funktionsgruppe { margin-bottom: 1.2rem; }
/* R7n5: Arbeitszeit – Personenauswahl breiter, aktive Person deutlich */
html body .az-team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
html body .az-karte small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .az-karte.aktiv { background: #f7f0e4; box-shadow: inset 4px 0 0 var(--akzent); }
/* R7n5b: Neuer Auftrag – drei Spalten, jede Spalte stapelt ihre Bereiche ohne Lücken */
html body .mf-pro .mf-raster.mf-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: none; grid-template-rows: none; gap: 10px; align-items: start; }
html body .mf-pro .mf-spalte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
html body .mf-pro .mf-spalte > fieldset { grid-area: auto; margin: 0; }
@media (min-width: 761px) and (max-width: 1180px) { html body .mf-pro .mf-raster.mf-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body .mf-pro .mf-spalte:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { html body .mf-pro .mf-raster.mf-spalten { grid-template-columns: 1fr; } }
html body .mf-pro .f-transport .wahl { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
html body .mf-pro .f-transport, html body .mf-pro .f-transport > * { min-width: 0; }
html body .mf-pro .f-transport :is(h3, .wahl, .formular-orte, p) { grid-column: 1 / -1; }
@media (max-width: 700px) { #app :is(ul.sq-raster, .fp-category .fp-grid), #app :is(ul.sq-raster, .fp-category .fp-grid)[data-anzahl] { grid-template-columns: 1fr !important; } }
/* R7n5: Feinschliff Kartenraster, Team, Fuhrpark */
#app .sq-v2 .sq-fakten > div:only-child { grid-column: 1 / -1; }
#app .sq-karte .sq-fakten dd { overflow-wrap: break-word; }
#app .fp-category > .fp-category-heading > .fp-empty { min-height: 0; padding: 0; align-self: center; }
#app .team-funktionsgruppe > .karten-kopf { margin-bottom: 0; }
#app .team-funktionsgruppe .sv-sammlung-kopf { margin-top: -2.4rem; margin-bottom: .5rem; justify-content: flex-end; pointer-events: none; }
#app .team-funktionsgruppe .sv-sammlung-kopf > * { pointer-events: auto; }
#app .team-verwaltung .team-suche select.team-funktion-wahl { flex: 0 0 240px; max-width: 240px; }
@media (max-width: 700px) { #app .team-funktionsgruppe .sv-sammlung-kopf { margin-top: 0; } #app .team-verwaltung .team-suche select.team-funktion-wahl { flex: auto; max-width: 100%; } }
/* R7n5d: Endkontrolle – Prüfpunkte untereinander über die volle Breite, deutlich abgesetzt */
#app dialog .feld.check:has(input[name^="ek_"]), dialog .feld.check:has(input[name^="ek_"]) { grid-column: 1 / -1; padding: 8px 10px; border: 1px solid #e3d6bd; border-radius: 6px; background: #fbf7ef; font-weight: 600; margin: 0; }
dialog .feld.check:has(input[name^="ek_"]:checked) { background: #eef6ef; border-color: #9cc8a4; }
dialog .feld.check:has(input[name="ek_vollstaendig"]) { margin-bottom: 10px; }
/* R7n5: mehrere Schritte auf der Auftragskarte nebeneinander (START · Abholung | Fahrzeug annehmen | Details) */
#app .sk-next-gruppe { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
#app .sk-next-gruppe > .sk-next { flex: 1 1 0; min-width: 7.5rem; }
/* R7n5: Verlauf lesbar */
#app .auftrag-ereignisse .verlauf-text { display: block; font-size: .92rem; color: var(--tinte, #1d2733); margin-top: 2px; }
#app .auftrag-ereignisse .verlauf-technik { margin-top: 4px; font-size: .75rem; color: #6b7480; }
#app .auftrag-ereignisse .verlauf-technik pre { white-space: pre-wrap; word-break: break-all; margin: 4px 0 0; font-size: .72rem; }
/* R7n5: Übergabe – kompakt, mittig, alles auf einen Blick */
#app .uebergabe-seite { max-width: 680px; margin: 0 auto; }
#app .uebergabe-seite .titelzeile h1 { font-size: 1.25rem; }
#app .uebergabe-seite > .hinweis, #app .uebergabe-seite .uebergabe-freigabe { font-size: .8rem; padding: 6px 10px; margin: 0 0 8px; }
#app .uebergabe-seite section.karte, #app .uebergabe-seite details.karte { padding: 14px 16px; border-radius: 12px; }
#app .uebergabe-seite .formular { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 14px; align-items: end; }
#app .uebergabe-seite .formular > * { grid-column: 1 / -1; margin: 0; }
#app .uebergabe-seite .formular > .feld:has(input[name="schluessel"]),
#app .uebergabe-seite .formular > .feld.check { grid-column: auto; }
#app .uebergabe-seite .formular > .feld.check { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--linie, #e3ddd0); border-radius: 8px; background: #fff; }
#app .uebergabe-seite .formular input[name="schluessel"] { max-width: 100%; }
#app .uebergabe-seite .formular .f-fz { font-weight: 700; font-size: 1rem; }
#app .uebergabe-seite .formular textarea { min-height: 52px; }
#app .uebergabe-seite .formular canvas { width: 100%; max-width: 100%; height: 160px; }
#app .uebergabe-seite .formular > button.knopf.haupt { justify-self: stretch; min-height: 50px; font-size: 1.05rem; }
@media (max-width: 560px) { #app .uebergabe-seite .formular { grid-template-columns: 1fr 1fr; } #app .uebergabe-seite .formular > .feld:has(input[name="schluessel"]) { grid-column: 1 / -1; } }

/* R7n5j: Auto beim Kunden, Übergabe nicht abgeschlossen */
.chip.st-uebergabe_offen{background:#fff4e0;color:#8a4b00;border-color:#f0c27a}
.ak-status-uebergabe_offen{--ak-farbe:#c27a12}
.ak-zahl.ak-status-uebergabe_offen{border-color:#f0c27a;background:#fff4e0}
/* R7n5m: Handy-Druck – iOS/Android drucken mit eigenem Rand (Kopf-/Fußzeile des Browsers);
   ein ganzseitiges A4-Bild (297 mm) lief deshalb auf eine 2. fast leere Seite über. Bild passt jetzt immer auf eine Seite. */
@media print{
  body.pdf-drucken{margin:0!important;padding:0!important}
  body.pdf-drucken .pdf-druck img{width:auto!important;height:auto!important;max-width:100%!important;max-height:272mm!important;margin:0 auto!important}
  body.pdf-drucken .pdf-druck.quer img{max-height:185mm!important}
}

/* R7o: Öffentlicher DPF-Reinigungsnachweis */
body.dpf-oeffentlich{background:#f3f1ec}
body.dpf-oeffentlich > :not(#app):not(script):not(style){display:none!important}
.dpf-nw{max-width:520px;margin:0 auto;padding:16px 12px 32px;font-family:inherit}
.dpf-nw-laden{text-align:center;color:#666;padding:40px 0}
.dpf-nw-karte{background:#fff;border:1px solid #e3ddd0;border-radius:14px;overflow:hidden}
.dpf-nw-karte > h1,.dpf-nw-karte > p{padding:0 16px}
.dpf-nw-kopf{background:#14263f;color:#e6c98f;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px}
.dpf-nw-kopf b{font-family:Georgia,serif;font-size:17px;letter-spacing:.3px}
.dpf-nw-kopf span{font-size:12px}
.dpf-nw-inhalt{padding:16px}
.dpf-nw-status{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.dpf-nw-status h1{font-size:19px;margin:0}
.dpf-nw-status p{margin:2px 0 0;font-size:13px;color:#666}
.dpf-nw-symbol{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;flex:none;background:#eee;color:#555}
.dpf-nw-status.gruen .dpf-nw-symbol{background:#e4f1d8;color:#2f6a12}
.dpf-nw-status.gelb .dpf-nw-symbol{background:#fbefd6;color:#8a5a0a}
.dpf-nw-status.rot .dpf-nw-symbol{background:#f8e0e0;color:#9a2626}
.dpf-nw-werte{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.dpf-nw-wert{border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.dpf-nw-wert small{font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.dpf-nw-wert strong{font-size:18px}
.dpf-nw-wert span{font-size:12px}
.dpf-nw-wert.vorher{background:#f8e7e5;color:#7d2620}
.dpf-nw-wert.nachher.gruen{background:#e7f2dc;color:#2c5c10}
.dpf-nw-wert.nachher.gelb{background:#fbf0d9;color:#7a4f08}
.dpf-nw-wert.nachher.rot{background:#f8e0e0;color:#8a2020}
.dpf-nw-skala{margin-bottom:14px}
.dpf-nw-skala p{display:flex;justify-content:space-between;font-size:11px;color:#666;margin:0 0 4px}
.dpf-nw-balken{height:9px;background:#eeeae2;border-radius:5px;margin-bottom:5px;overflow:hidden}
.dpf-nw-balken i{display:block;height:100%;border-radius:5px;background:#d9534f}
.dpf-nw-balken i.nachher{background:#5b9a2a}.dpf-nw-balken i.nachher.gelb{background:#d39a2a}.dpf-nw-balken i.nachher.rot{background:#c0392b}
.dpf-nw-daten{width:100%;border-collapse:collapse;font-size:13px;border-top:1px solid #eee}
.dpf-nw-daten th{text-align:left;font-weight:400;color:#666;padding:6px 0;width:42%}
.dpf-nw-daten td{text-align:right;padding:6px 0}
.dpf-nw-fuss{border-top:1px solid #eee;padding:10px 16px;font-size:11px;color:#777;text-align:center}

/* R7o: DPF-Messkarte im Auftrag */
.dpf-karte{display:flex;flex-direction:column;gap:12px}
.dpf-form{display:flex;flex-direction:column;gap:12px}
.dpf-raster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dpf-raster fieldset{border:1px solid #e3ddd0;border-radius:10px;padding:8px 12px 12px;margin:0;display:flex;flex-direction:column;gap:6px}
.dpf-raster legend{font-weight:600;padding:0 4px}
.dpf-vorher{background:#fdf6f5}.dpf-nachher{background:#f6faf1}
.dpf-ergebnis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-radius:10px;padding:10px 12px;background:#f3f1ec}
.dpf-ergebnis div{display:flex;flex-direction:column}
.dpf-ergebnis small{font-size:11px;color:#666}
.dpf-ergebnis strong{font-size:18px}
.dpf-ergebnis.gruen{background:#e7f2dc}.dpf-ergebnis.gruen .dpf-ampel strong{color:#2c5c10}
.dpf-ergebnis.gelb{background:#fbf0d9}.dpf-ergebnis.gelb .dpf-ampel strong{color:#7a4f08}
.dpf-ergebnis.rot{background:#f8e0e0}.dpf-ergebnis.rot .dpf-ampel strong{color:#8a2020}
.dpf-aktionen{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media (max-width:820px){.dpf-raster{grid-template-columns:1fr}.dpf-ergebnis{grid-template-columns:1fr 1fr}.dpf-ergebnis .dpf-ampel{grid-column:1/-1}}
.dpf-portal{max-width:560px}
.dpf-portal .dpf-nw-karte{margin:4px 0}
.dpf-nw-aktion{padding:0 16px 14px;display:flex;gap:8px}
/* R7o: Eingangsrechnungen – sichtbare Aktion je Zeile */
@media (min-width:821px){#app .ausgabe-zeile{grid-template-columns:2fr 1fr 1fr auto}}
#app .ausgabe-zeile .ausgabe-aktion{display:flex;justify-content:flex-end}
#app .ausgabe-zeile .ausgabe-aktion a{font-weight:600;white-space:nowrap}
/* R7p: Offene Einladungen – Stand und Knöpfe in der Zeile */
.einladung-stand{max-width:34rem}.einladung-stand.warn b{color:#a4471c}
.einladung-aktionen{flex-wrap:wrap;justify-content:flex-end;gap:.4rem}

/* R7r: Auftragskarten einheitlich – gleiche Höhe je Reihe, Knöpfe immer unten, Texte ohne Silbensalat */
.ak-liste > li { display: flex; }
.ak-liste .sq-karte { display: flex; flex-direction: column; width: 100%; height: 100%; }
.ak-liste .sq-karte .sq-fuss { margin-top: auto; padding-top: .6rem; }
.ak-liste .sq-karte .sq-gross { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-liste .sq-karte .sq-kennung { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-liste .sq-karte .sq-fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ak-liste .sq-karte .sq-fakten dd { overflow-wrap: normal; word-break: normal; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ak-liste .sq-karte .sq-mehr { color: var(--sv-text-leise, #6b7280); font-weight: 500; white-space: nowrap; }

/* R7r: Werbeleiste oben */
.wb-leiste { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: .55rem .75rem .55rem .55rem; border-radius: 12px;
  background: linear-gradient(90deg, #17283d 0%, #24476b 100%); color: #fff; box-shadow: 0 2px 10px rgba(23,40,61,.15); min-height: 64px; }
.wb-leiste-bild { flex: 0 0 auto; width: 120px; height: 56px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.08); }
.wb-leiste-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-leiste-text { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.wb-leiste-text strong { font-size: 1.05rem; color: #f3d48a; }
.wb-leiste-text span { color: #e8eef5; }
.wb-leiste-knopf { flex: 0 0 auto; background: #fff; color: #17283d; border: 0; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wb-leiste-knopf:hover { background: #f3d48a; }
.wb-leiste-zu { flex: 0 0 auto; background: transparent; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .75; padding: .2rem .4rem; }
.wb-leiste-zu:hover { opacity: 1; }
@media (max-width: 640px) { .wb-leiste { flex-wrap: wrap; gap: .5rem; } .wb-leiste-bild { width: 72px; height: 44px; } .wb-leiste-text { flex-basis: calc(100% - 120px); font-size: .92rem; } .wb-leiste-knopf { padding: .4rem .8rem; } }

/* R7r: Aktionsmenü mit Symbolen (Stil wie Kassensysteme) */
html body .aktion-menu > summary { background: #2f7fb6 !important; color: #fff !important; border: 1px solid #2f7fb6 !important; gap: 6px; }
html body .aktion-menu > summary span { color: #fff !important; }
html body .aktion-menu[open] > summary, html body .aktion-menu > summary:hover { background: #256a99 !important; border-color: #256a99 !important; color: #fff !important; }
html body .aktion-liste > a, html body .aktion-liste > button { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 6px; min-height: 38px; }
html body .aktion-liste > a:hover, html body .aktion-liste > button:hover { background: #eef3f7 !important; }
.aktion-menu .am-zahnrad { font-size: .95rem; }
.aktion-liste { width: 250px; }
.aktion-liste > a, .aktion-liste > button { display: flex !important; align-items: center; gap: 10px; }
.aktion-liste .am-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.sv-zeilen-aktionen { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* R7r: Kolonnen nach Arbeitsablauf – am PC alle in einer Reihe, kompakte Karten */
@media (min-width: 1100px) {
  html body .ak-kolonnen.ak-kolonnen-fest { display: grid; grid-template-columns: repeat(var(--kol, 6), minmax(0, 1fr)); gap: .6rem; overflow-x: visible; }
  html body .ak-kolonnen-fest[data-anzahl="7"] { --kol: 7; }
  html body .ak-kolonnen-fest .ak-kolonne { flex: none; min-width: 0; padding: .45rem; max-height: calc(100vh - 240px); }
}
.ak-kolonnen-fest .ak-kolonne > header { font-size: .82rem; padding: .45rem .6rem; }
.ak-kolonne-leer { text-align: center; color: #9aa3ad; margin: .8rem 0; }
.ak-kolonne .sq-karte { padding: .6rem .65rem !important; font-size: .8rem; }
.ak-kolonne .sq-karte .sq-gross { font-size: .95rem !important; }
.ak-kolonne .sq-karte .sq-kennung, .ak-kolonne .sq-karte .sq-rubrik { font-size: .68rem; }
.ak-kolonne .sq-karte .sq-fakten { grid-template-columns: 1fr !important; gap: .35rem !important; padding-top: .45rem !important; }
.ak-kolonne .sq-karte .sq-fakten dt { font-size: .62rem; }
.ak-kolonne .sq-karte .sq-fakten dd { font-size: .78rem; -webkit-line-clamp: 2; }
.ak-kolonne .sq-karte .sq-faellig { font-size: .62rem; }

/* R7r: Knöpfe in Auftragskarten kleiner und einheitlich */
.ak-liste .sq-fuss { display: flex; gap: .4rem; align-items: stretch; flex-wrap: wrap; }
.ak-liste .sq-fuss :is(button, a) { min-height: 34px !important; padding: .3rem .6rem !important; font-size: .74rem !important; line-height: 1.15 !important; border-radius: 8px !important; }
.ak-liste .sq-fuss .sq-detail { flex: 0 0 auto; align-self: stretch; }
.ak-liste .sq-fuss .sk-next-gruppe, .ak-liste .sq-fuss > :first-child:not(.sq-detail) { flex: 1 1 0; min-width: 0; }
.ak-liste .sq-fuss .sk-next-gruppe { display: grid; grid-template-columns: 1fr; gap: .3rem; }
.ak-liste .sq-fuss .sk-next-gruppe :is(button, a) { width: 100%; }
.ak-kolonne .sq-kopf { gap: .3rem; min-width: 0; }
.ak-kolonne .sq-status { min-width: 0; max-width: 62%; }
.ak-kolonne .sq-status > * { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; }
.ak-kolonne .sq-kopf { flex-wrap: wrap; }
.ak-kolonne .sq-nr { white-space: nowrap; flex: 0 0 auto; }
.ak-kolonne .sq-status { max-width: 100%; margin-left: auto; }
html body .ak-kolonne .sq-kopf { display: flex !important; flex-direction: column; align-items: flex-start; gap: .2rem; }
html body .ak-kolonne .sq-status { margin-left: 0; max-width: 100%; }
.wb-leiste { max-width: 100%; box-sizing: border-box; overflow: hidden; }
.wb-leiste-text { overflow-wrap: anywhere; }
@media (max-width: 640px) { .wb-leiste-text { flex: 1 1 0; } .wb-leiste-zu { margin-left: auto; } }
html body .wb-leiste-zu { border: 0 !important; background: transparent !important; color: #fff !important; box-shadow: none !important; min-height: 0 !important; }
html body .auftragsansicht .knopf.an, html body .auftragsansicht .knopf.an:hover, html body .auftragsansicht .knopf.an:focus { background: #13243a !important; color: #fff !important; border-color: #13243a !important; }
html body .ak-kolonne { overflow-x: hidden !important; }
.ak-kolonne-leer { color: #9aa3ad; text-align: center; margin: .6rem 0; }
/* R7r: Kolonnen – Knöpfe untereinander, alle gleich breit und gleich hoch */
html body .ak-kolonne .sq-fuss { display: grid !important; grid-template-columns: 1fr !important; gap: .35rem !important; align-items: start !important; }
html body .ak-kolonne .sq-fuss .sk-next-gruppe { display: grid !important; grid-template-columns: 1fr !important; gap: .35rem !important; }
html body .ak-kolonne .sq-fuss button { width: 100% !important; height: auto !important; min-height: 2rem !important; padding: .3rem .5rem !important; font-size: .78rem !important; line-height: 1.15 !important; }
/* R7r2: Kolonnen ab 900 px in einer Reihe; Zähler genau über den Kolonnen */
@media (min-width: 900px) {
  html body .ak-kolonnen.ak-kolonnen-fest { display: grid; grid-template-columns: repeat(var(--kol, 6), minmax(0, 1fr)); gap: .6rem; overflow-x: visible; }
  html body .ak-kolonnen-fest[data-anzahl="7"] { --kol: 7; }
  html body .ak-kolonnen-fest .ak-kolonne { flex: none; min-width: 0; width: auto; padding: .45rem; max-height: calc(100vh - 240px); }
  html body .auftragsliste[data-ansicht="kolonnen"] .ak-zaehler { display: grid; grid-template-columns: repeat(var(--kol, 6), minmax(0, 1fr)); gap: .6rem; }
  html body .auftragsliste[data-ansicht="kolonnen"] .ak-zaehler:has(+ * .ak-kolonnen-fest[data-anzahl="7"]),
  html body .auftragsliste[data-ansicht="kolonnen"]:has(.ak-kolonnen-fest[data-anzahl="7"]) .ak-zaehler { --kol: 7; }
  html body .auftragsliste[data-ansicht="kolonnen"] .ak-zahl { min-width: 0; width: auto; }
}
@media (max-width: 899px) { html body .ak-kolonnen-fest .ak-kolonne { flex: 0 0 260px; } }
html body .ak-zahl.ak-zahl-leer { opacity: .5; }
/* R7r2: Symbol-Knöpfe in Listenzeilen (Bearbeiten / Löschen) */
.zeilen-ikons { display: inline-flex; gap: .35rem; justify-content: flex-end; }
html body .ikon-knopf { display: inline-flex !important; align-items: center; justify-content: center; width: 2.1rem !important; height: 2.1rem !important; min-height: 0 !important; padding: 0 !important; border: 1px solid #d9d2c3 !important; border-radius: 8px !important; background: #fff !important; color: #13243a !important; cursor: pointer; }
html body .ikon-knopf:hover { background: #f3efe6 !important; }
html body .ikon-knopf.gefahr { color: #b3261e !important; }
html body .ikon-knopf.gefahr:hover { background: #fbeceb !important; border-color: #e7b7b3 !important; }
.ikon-knopf .ikon { display: inline-flex; }
html body .sq-fuss.sq-fuss-ikons { display: flex !important; align-items: center; gap: .4rem; }
html body .sq-fuss.sq-fuss-ikons > .sq-detail { flex: 1 1 auto; }
/* R7t: Bankabgleich als ausgefüllter Kontoauszug */
.bk-fortschritt { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .2rem 0 .8rem; }
.bk-fs-text { flex: 1 1 320px; } .bk-fs-text span { color: #5f6670; }
.bk-fs-balken { flex: 1 1 220px; height: 8px; border-radius: 99px; background: #ece6d8; overflow: hidden; }
.bk-fs-balken i { display: block; height: 100%; background: #1f7a3a; border-radius: 99px; }
html body .bk-zeile { display: grid; grid-template-columns: 92px minmax(0, 1.5fr) minmax(0, 1.3fr) 130px 40px; gap: 12px; padding: 9px 8px; border-top: 1px solid #eceef1; align-items: start; }
.bk-kopfzeile { border-top: 0 !important; padding-top: 0 !important; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #7a8089; }
.bk-zeile .bk-datum { font-variant-numeric: tabular-nums; color: #3a414b; }
.bk-text strong { font-weight: 600; } .bk-text small { display: block; color: #6b7280; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-beleg { display: flex; gap: .5rem; align-items: flex-start; min-width: 0; }
.bk-beleg > div { display: flex; flex-direction: column; min-width: 0; }
.bk-beleg small { color: #6b7280; overflow-wrap: anywhere; } .bk-beleg .bk-quelle { font-size: .7rem; color: #9aa1aa; }
.bk-beleg-link { font-weight: 600; color: #13243a; text-decoration: underline; text-decoration-color: #c9b98f; text-underline-offset: 2px; }
.bk-kat { font-weight: 600; color: #13243a; }
.bk-ok, .bk-warn, .bk-ign { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; margin-top: 1px; }
.bk-ok { background: #e3f1e6; color: #1f7a3a; } .bk-ign { background: #eef0f2; color: #7a8089; }
.bk-warn { background: #fdf0d2; color: #8a5a00; } .bk-fehlt .bk-warn { background: #fbe1df; color: #b3261e; }
.bk-t-pruefen { color: #8a5a00; } .bk-t-fehlt { color: #b3261e; }
html body .bk-zeile .bk-betrag { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bk-ende { display: flex; justify-content: flex-end; }
.bk-zeile.bk-offen { background: #fffaf0; } .bk-zeile.bk-fehlt { background: #fff6f5; }
.bk-hand { grid-column: 2 / -1; } .bk-hand .bk-aktionen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-erledigt:hover { background: #faf8f3; }
@media (max-width: 900px) {
  html body .bk-zeile { grid-template-columns: 74px minmax(0, 1fr) 104px 34px; }
  .bk-zeile .bk-beleg { grid-column: 2 / -1; grid-row: 2; }
  .bk-kopfzeile { display: none !important; }
  .bk-hand { grid-column: 1 / -1; }
}
html body .bk-hand select.bk-art { height: 2rem !important; min-height: 0 !important; padding: 0 .5rem !important; font-size: .82rem !important; max-width: 240px; }
@media (max-width: 900px) {
  html body .bk-zeile { grid-template-columns: minmax(0, 1fr) auto 34px; grid-template-areas: "dat bet end" "txt txt txt" "bel bel bel" "hand hand hand"; gap: 4px 10px; padding: 10px 6px; }
  html body .bk-zeile .bk-datum { grid-area: dat; font-size: .85rem; color: #6b7280; }
  html body .bk-zeile .bk-text { grid-area: txt; }
  html body .bk-zeile .bk-beleg { grid-area: bel; grid-column: auto; grid-row: auto; margin-top: 2px; }
  html body .bk-zeile .bk-betrag { grid-area: bet; }
  html body .bk-zeile .bk-ende { grid-area: end; }
  html body .bk-zeile .bk-hand { grid-area: hand; grid-column: auto; }
}
/* R7v: Kennzahlen im Bankabgleich als Schalter */
html body .bk-kachel { cursor: pointer; text-align: left; font: inherit; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: box-shadow .15s, border-color .15s; }
html body .bk-kachel:hover { box-shadow: 0 2px 8px rgba(19,36,58,.12); border-color: #c9b98f; }
html body .bk-kachel small { color: #6b7280; }
html body .bk-kachel.ok b { color: #1f7a3a; } html body .bk-kachel.warn b { color: #8a5a00; } html body .bk-kachel.fehler b { color: #b3261e; }
html body .bk-kachel.aktiv { border: 2px solid #13243a !important; background: #fff !important; box-shadow: 0 2px 10px rgba(19,36,58,.15); }

/* R8c: Meine Dokumente */
.md-seite .reiter{display:flex;gap:.4rem;flex-wrap:wrap;margin:.6rem 0 1rem}
.md-seite .reiter [aria-selected="true"]{background:var(--ink,#1a2129);color:#fff;border-color:var(--ink,#1a2129)}
.md-karte{display:flex;flex-direction:column;gap:.35rem;padding:.8rem 1rem;margin-bottom:.6rem}
.md-karte .md-kopf{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}
.md-karte .md-kopf small{display:block;margin-top:.15rem}
.md-karte.md-neu{border-left:4px solid var(--gold,#9e7833)}
.md-karte .knoepfe{margin-top:.2rem}

/* R8e: Kategorie des Belegs im Bankabgleich */
.bk-kat-klein{display:inline-block;font-size:.78rem;padding:.05rem .45rem;border-radius:999px;background:var(--flaeche-2,#eef1f4);color:var(--ink,#1a2129)}
.bk-kat-wahl{font-size:.8rem;padding:.1rem .3rem;max-width:15rem;border:1px solid var(--gold,#9e7833);border-radius:6px;background:#fffaf0}

/* R8f: Dokumenteneingang – Vorschau/Liste, Zahnrad, Menü ⋯ */
.eg-schmal .eg-zone{padding:10px 14px;flex-direction:row;gap:12px;justify-content:center;flex-wrap:wrap}
.eg-leiste .eg-fuell{flex:1}
.eg-schalter{display:inline-flex;gap:0}.eg-schalter .knopf{border-radius:0}.eg-schalter .knopf:first-child{border-radius:8px 0 0 8px}.eg-schalter .knopf:last-child{border-radius:0 8px 8px 0}
.eg-schalter .knopf[aria-pressed=true]{background:#071c30!important;color:#fff!important;border-color:#071c30!important}
.eg-weitere{width:auto;max-width:200px;border-radius:999px;padding:5px 10px}
details.eg-zahnrad,details.eg-mehr{position:relative;display:inline-block}
details.eg-zahnrad>summary,details.eg-mehr>summary{list-style:none;cursor:pointer;min-width:38px;text-align:center}
details.eg-zahnrad>summary::-webkit-details-marker,details.eg-mehr>summary::-webkit-details-marker{display:none}
.eg-menue{position:absolute;z-index:30;top:calc(100% + 4px);left:0;min-width:240px;background:#fff;border:1px solid #d6d9de;border-radius:10px;box-shadow:0 8px 24px rgba(7,28,48,.14);padding:6px;display:flex;flex-direction:column;gap:4px}
.eg-menue-rechts,.eg-zknoepfe .eg-menue,.eg-pknoepfe .eg-menue{left:auto;right:0}
.eg-menue .knopf,.eg-menue a.knopf{justify-content:flex-start;text-align:left;width:100%;border-color:transparent;background:transparent}
.eg-menue .knopf:hover{background:#f3ecdd}
.eg-menue select{width:100%}.eg-menue label{display:flex;flex-direction:column;gap:4px;padding:4px 6px}.eg-menue p{margin:4px 6px}
.eg-kompakt{gap:0;border:1px solid #e3e6ea;border-radius:12px;background:#fff;overflow:visible}
.eg-zeile{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 12px;border-top:1px solid #eef0f2}
.eg-zeile:first-child{border-top:0}.eg-zeile.eg-erkannt{box-shadow:inset 3px 0 0 #b69960}
.eg-ztext{display:flex;flex-direction:column;gap:2px;min-width:0}.eg-ztext>div{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.eg-zknoepfe{display:flex;gap:6px;align-items:center}
.eg-vsym{font-size:22px;text-align:center}
.eg-gruppe{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:8px 12px;background:#f3ecdd;border-radius:10px;margin-bottom:6px}
.eg-geteilt{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.6fr);gap:12px;align-items:start}
.eg-vliste{display:flex;flex-direction:column;border:1px solid #e3e6ea;border-radius:12px;background:#fff;max-height:calc(100vh - 230px);overflow:auto;position:sticky;top:8px}
.eg-vliste .eg-gruppe{margin:6px}
.eg-vzeile{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;text-align:left;background:transparent;border:0;border-top:1px solid #eef0f2;padding:8px 10px;font:inherit;cursor:pointer}
.eg-vzeile:first-of-type{border-top:0}.eg-vzeile:hover{background:#f7f3ea}
.eg-vzeile.aktiv{background:#e9eef5;box-shadow:inset 3px 0 0 #071c30}
.eg-vtext{display:flex;flex-direction:column;min-width:0}.eg-vtext strong,.eg-vtext small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eg-vtext small{color:#5b6470}
.eg-panel{display:flex;flex-direction:column;gap:8px;position:sticky;top:8px}
.eg-pkopf{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.eg-pkopf h2{margin:0;font-size:1.15rem}
.eg-pkoerper{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:14px;align-items:start}
.eg-bild{border:1px solid #e3e6ea;border-radius:8px;min-height:200px;max-height:340px;overflow:hidden;display:flex;align-items:flex-start;justify-content:center;background:#f6f7f8;cursor:zoom-in}
.eg-bild img{width:100%;height:auto;display:block}.eg-bild canvas{width:100%!important;height:auto!important;display:block}.eg-pdf canvas:not(:first-child){display:none!important}
.eg-felder{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0}.eg-felder dt{color:#5b6470}.eg-felder dd{margin:0;overflow-wrap:anywhere}
.eg-gut{color:#2f6b3b;margin:0}
.eg-pknoepfe{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.eg-pknoepfe select{max-width:200px}
.eg-hauptknopf{flex:1 1 220px}
.eg-tasten{margin:0}
@media (max-width:900px){.eg-geteilt{grid-template-columns:minmax(0,1fr)}.eg-vliste{max-height:240px;position:static}.eg-panel{position:static}.eg-tasten{display:none}}
@media (max-width:560px){.eg-pkoerper{grid-template-columns:minmax(0,1fr)}.eg-zeile{grid-template-columns:26px minmax(0,1fr)}.eg-zknoepfe{grid-column:2}}
.eg-vliste .eg-vzeile{border:0!important;border-top:1px solid #eef0f2!important;border-radius:0!important;box-shadow:none;min-height:0;width:100%;color:inherit}
.eg-vliste .eg-vzeile.aktiv{box-shadow:inset 3px 0 0 #071c30!important;background:#e9eef5!important}
.eg-vliste .eg-vzeile.aktiv strong{color:#071c30}

/* R8g: Meine Fahrten – Statistik-Kacheln (zugleich Filter) + Tabelle mit Aktionen */
.f-uebersicht{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.f-kacheln{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.f-kachel{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid var(--linie,#ddd);border-left:4px solid #9aa3ad;border-radius:10px;background:var(--karte,#fff);cursor:pointer;text-align:left;font:inherit;color:inherit;min-height:64px}
.f-kachel b{font-size:24px;line-height:1.1}
.f-kachel span{font-size:12px;color:var(--leise,#667)}
.f-kachel:hover{box-shadow:0 2px 8px rgba(0,0,0,.08)}
.f-kachel.aktiv{outline:2px solid var(--akzent,#1d4e89);outline-offset:-1px;background:#f4f8fd}
.f-kachel.null{opacity:.55}
.f-k-blau{border-left-color:#2a6fdb}.f-k-gruen{border-left-color:#1e8e3e}.f-k-rot{border-left-color:#c62828}.f-k-gelb{border-left-color:#e0a100}
.f-k-rot:not(.null) b{color:#c62828}
.f-tabelle-rahmen{padding:0;overflow:visible}
.f-tkopf{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--linie,#e5e5e5)}
.f-suche{flex:1 1 260px;max-width:420px;min-height:36px}
.f-tabelle-scroll{overflow-x:auto}
.f-tabelle{width:100%;border-collapse:collapse;font-size:13px}
.f-tabelle th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--leise,#667);padding:8px 10px;border-bottom:1px solid var(--linie,#e5e5e5);white-space:nowrap}
.f-tabelle td{padding:8px 10px;border-bottom:1px solid var(--linie,#eee);vertical-align:middle}
.f-tr{border-left:3px solid transparent}
.f-tr td:first-child{border-left:3px solid transparent}
.f-tr.f-art-abholen td:first-child{border-left-color:#2a6fdb}.f-tr.f-art-zustellen td:first-child{border-left-color:#1e8e3e}
.f-tr.f-art-unterwegs td:first-child{border-left-color:#e0a100}.f-tr.f-art-arbeit td:first-child{border-left-color:#9aa3ad}
.f-tr.f-tr-spaet{background:#fff6f6}
.f-tr:hover{background:#f7f9fc}
.f-td-fz strong,.f-td-kunde span{display:block}
.f-td-fz small,.f-td-kunde small{display:block;font-size:11px;margin-top:2px}
.f-td-adr{max-width:220px}.f-td-adr a{font-size:12px}
.f-td-akt{white-space:nowrap;text-align:right}
.f-akt{display:inline-flex;align-items:center;gap:6px;justify-content:flex-end}
.f-akt>.knopf,.f-akt>button{min-height:34px;padding:6px 12px;font-size:12px;width:auto;white-space:nowrap}
.f-mehr{position:relative}
.f-mehr>summary{list-style:none;min-height:34px;padding:6px 10px;width:auto;cursor:pointer}
.f-mehr>summary::-webkit-details-marker{display:none}
.f-menue{position:absolute;right:0;top:calc(100% + 4px);z-index:30;display:flex;flex-direction:column;gap:6px;min-width:220px;padding:8px;background:var(--karte,#fff);border:1px solid var(--linie,#ddd);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.14);white-space:normal;text-align:left}
.f-menue .knopf,.f-menue button{width:100%;min-height:36px;justify-content:flex-start;font-size:13px}
.f-leer{text-align:center;padding:24px}
@media (max-width:760px){
  .f-kacheln{grid-template-columns:repeat(2,1fr)}
  .f-tabelle thead{display:none}
  .f-tabelle,.f-tabelle tbody,.f-tabelle tr,.f-tabelle td{display:block;width:100%}
  .f-tabelle tr.f-tr{border:1px solid var(--linie,#e5e5e5);border-left-width:4px;border-radius:10px;margin:8px;width:auto;padding:4px 0}
  .f-tr.f-art-abholen{border-left-color:#2a6fdb}.f-tr.f-art-zustellen{border-left-color:#1e8e3e}.f-tr.f-art-unterwegs{border-left-color:#e0a100}
  .f-tr td:first-child{border-left:0}
  .f-tabelle td{border:0;padding:4px 12px}
  .f-td-akt{text-align:left}.f-akt{justify-content:flex-start;width:100%}.f-akt>.knopf,.f-akt>button{flex:1;min-height:44px}
}
.f-tabelle td[data-l="Nr."],.f-tabelle td[data-l="Nr."] a{white-space:nowrap}.f-td-fz small{word-break:break-word}

/* R8h: Auftrags-Kolonnen – ruhige Farben je Arbeitsschritt (augenschonend), helle Kopfzeilen, ruhige Karten */
.ak-zahl,.ak-kolonne,.sq-karte{--kf:#6b7a8c;--kf-hell:#f1f3f6;--kf-chip:#e6eaf0}
.ak-status-neu,.ak-status-zugeteilt{--kf:#4f74b3;--kf-hell:#eef3fa;--kf-chip:#dde7f6}
.ak-status-abholung{--kf:#c2862a;--kf-hell:#fbf5ea;--kf-chip:#f6e6c8}
.ak-status-garage{--kf:#7a68ad;--kf-hell:#f4f1f9;--kf-chip:#e6e0f2}
.ak-status-in_arbeit{--kf:#2e8a96;--kf-hell:#ecf6f7;--kf-chip:#d3ecee}
.ak-status-fertig,.ak-status-fertig_geparkt{--kf:#3f8a58;--kf-hell:#eef6f0;--kf-chip:#d6ebdc}
.ak-status-in_zustellung,.ak-status-uebergabe_offen{--kf:#b8674f;--kf-hell:#fbf1ed;--kf-chip:#f3dcd3}
.ak-status-zugestellt,.ak-status-abgerechnet,.ak-status-storniert{--kf:#7d8794;--kf-hell:#f3f4f6;--kf-chip:#e5e7eb}

/* Zähler oben */
html body .ak-zaehler .ak-zahl{background:#fff!important;border:1px solid #e6e2da!important;border-top:4px solid var(--kf)!important;border-radius:12px!important;box-shadow:0 1px 2px rgba(30,40,60,.04)}
html body .ak-zaehler .ak-zahl b{color:var(--kf)!important;font-weight:700}
html body .ak-zaehler .ak-zahl span{color:#5b6472!important;font-weight:600}
html body .ak-zaehler .ak-zahl:hover{background:var(--kf-hell)!important}
html body .ak-zaehler .ak-zahl.ak-zahl-leer b{color:#b5bcc6!important}

/* Kolonne + Kopfzeile */
html body .ak-kolonnen .ak-kolonne{background:var(--kf-hell)!important;border:1px solid color-mix(in srgb,var(--kf) 14%,transparent);border-radius:14px!important}
html body .ak-kolonnen .ak-kolonne>header{background:#fff!important;color:#2b3340!important;border:0!important;border-top:4px solid var(--kf)!important;border-radius:10px!important;box-shadow:0 1px 3px rgba(30,40,60,.06);font-weight:700}
html body .ak-kolonnen .ak-kolonne>header b{background:var(--kf)!important;color:#fff!important;min-width:1.6rem;text-align:center}
html body .ak-kolonne .ak-kolonne-leer{color:color-mix(in srgb,var(--kf) 45%,#9aa3ad)}

/* Karten */
html body .ak-kolonne .sq-karte{background:#fff!important;border:1px solid #e8e4dc!important;border-left:4px solid var(--kf)!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(30,40,60,.05)!important;transition:box-shadow .15s,transform .15s}
html body .ak-kolonne .sq-karte:hover{box-shadow:0 6px 16px rgba(30,40,60,.10)!important;transform:translateY(-1px)}
html body .ak-kolonne .sq-karte.ak-ueberfaellig{border-left-color:#c9524a!important;background:#fffafa!important}
html body .ak-kolonne .sq-nr{color:var(--kf)!important;letter-spacing:.06em;font-weight:700}
html body .ak-kolonne .sq-status .chip{background:var(--kf-chip)!important;color:color-mix(in srgb,var(--kf) 80%,#1f2937)!important;border:0!important;font-weight:600}
html body .ak-kolonne .sq-status .chip::before{background:var(--kf)!important}
html body .ak-kolonne .sq-gross{color:#1f2937!important}
html body .ak-kolonne .sq-kennung{color:#8a93a0!important}
html body .ak-kolonne .sq-rubrik{color:#8a6d3b!important;background:#f6f1e7;display:inline-block;padding:.05rem .45rem;border-radius:6px}
html body .ak-kolonne .sq-fakten{border-top:1px dashed #e5e1d8!important}
html body .ak-kolonne .sq-fakten dt{color:#9aa1ab!important;letter-spacing:.05em}
html body .ak-kolonne .sq-fakten dd{color:#2b3340!important}

/* Knöpfe: Hauptschritt kräftig, Nebenschritte ruhig, Details als Textknopf */
html body .ak-kolonnen .ak-kolonne .sq-karte .sk-next{border-radius:9px!important;font-weight:600!important;box-shadow:none!important;outline:0!important;background-image:none!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sk-next.start{background:#3f8a58!important;border:1px solid #3f8a58!important;color:#fff!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sk-next.start:hover{background:#357a4c!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sk-next.stopp{background:#c9524a!important;border:1px solid #c9524a!important;color:#fff!important;opacity:1!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sk-next:not(.start):not(.stopp){background:var(--kf-hell)!important;border:1px solid color-mix(in srgb,var(--kf) 30%,transparent)!important;color:color-mix(in srgb,var(--kf) 75%,#1f2937)!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sk-next:not(.start):not(.stopp):hover{background:var(--kf-chip)!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sk-next small{color:inherit!important;opacity:.75}
html body .ak-kolonnen .ak-kolonne .sq-karte button.sq-detail{background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important;color:#6b7480!important;font-weight:600!important;min-height:28px!important}
html body .ak-kolonnen .ak-kolonne .sq-karte button.sq-detail:hover{color:var(--kf)!important;text-decoration:underline}
html body .ak-kolonne .sq-rubrik{display:inline-block!important;width:auto!important;max-width:100%}
html body .ak-kolonne .sq-karte .sq-rubrik{align-self:flex-start!important;justify-self:start!important}

/* R8h2: kompakte Auftragskarten in Kolonnen – alle gleich hoch, jede Angabe eine Zeile, Knöpfe unten */
html body .ak-kolonnen .ak-kolonne .sq-karte{display:flex!important;flex-direction:column!important;gap:.28rem!important;height:236px!important;min-height:236px!important;overflow:hidden!important;padding:.6rem .7rem .55rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-kopf{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:.4rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-status{max-width:60%!important;margin:0!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-status .chip{font-size:.64rem!important;padding:.08rem .45rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-titelzeile,html body .ak-kolonnen .ak-kolonne .sq-karte .sq-gross{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;line-height:1.25!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-kennung{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-rubrik{display:none!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fakten{display:flex!important;flex-direction:column!important;gap:.12rem!important;margin:.15rem 0 0!important;padding-top:.35rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fakten>div{display:grid!important;grid-template-columns:4.6rem 1fr!important;align-items:baseline;gap:.3rem;min-width:0}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fakten>div:nth-child(n+4){display:none!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fakten dt{font-size:.58rem!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fakten dd{font-size:.76rem!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;-webkit-line-clamp:unset!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-faellig{font-size:.6rem!important;margin:0!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss{margin-top:auto!important;display:flex!important;flex-direction:column!important;gap:.3rem!important;padding-top:.3rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next-gruppe{display:flex!important;flex-wrap:wrap!important;gap:.3rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next{min-height:30px!important;padding:.25rem .5rem!important;font-size:.72rem!important;flex:1 1 100%;display:flex!important;align-items:center;justify-content:center;gap:.3rem}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next:not(.start):not(.stopp){flex:1 1 calc(50% - .3rem);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next small{font-size:.62rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next small::before{content:'· '}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next:not(.start):not(.stopp) + .sk-next:not(.start):not(.stopp){flex-basis:calc(50% - .3rem)}
html body .ak-kolonnen .ak-kolonne .sq-karte button.sq-detail{min-height:22px!important;padding:0!important;font-size:.7rem!important;align-self:center}
html body .ak-kolonnen .ak-kolonne .ak-liste,html body .ak-kolonnen .ak-kolonne .sq-raster{gap:.55rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte>*{flex-shrink:0!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss{flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;align-content:flex-end!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss>.sk-next-gruppe{flex:1 1 100%!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next{flex:1 1 100%!important;height:30px!important;max-height:30px!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next:not(.start):not(.stopp){flex:1 1 calc(50% - .3rem)!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next:not(.start):not(.stopp):only-child,html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss>.sk-next:not(.start):not(.stopp):first-child:nth-last-child(2){flex-basis:100%!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss>button.sq-detail{flex:1 1 100%!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next .sk-next-text{font-size:.72rem}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next{flex-direction:row!important;white-space:nowrap}html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next>*{display:inline!important;margin:0!important}
/* R8h3: Auslieferungsdatum auf der Auftragskarte */
.sq-liefer{display:flex;align-items:center;gap:.35rem;font-size:.74rem;padding:.18rem .5rem;border-radius:7px;background:#f3f4f6;color:#374151;white-space:nowrap;overflow:hidden;min-width:0}
.sq-liefer b{font-weight:700;overflow:hidden;text-overflow:ellipsis}
.sq-liefer-l{font-size:.64rem;letter-spacing:.03em;color:#6b7280;flex:0 0 auto}
.sq-liefer-spaeter{background:#eef3fa;color:#284a7c}
.sq-liefer-bald{background:#fdf3dc;color:#8a5a00}
.sq-liefer-vorbei{background:#fdecea;color:#a33a32}
.sq-liefer-offen{background:#f3f4f6;color:#8a93a0}.sq-liefer-offen b{font-weight:600}
.sq-liefer-erledigt{background:#eef6f0;color:#2f6b45}
.sq-liefer-warn{margin-left:auto;font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
/* in der Kolonne steht der Termin nur noch in der Auslieferungszeile */
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fakten>.sq-termin{display:none!important}
html body .ak-kolonnen .ak-kolonne .sq-karte{height:258px!important;min-height:258px!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-rest,html body .ak-kolonnen .ak-kolonne .sq-karte .sq-zeit{display:none!important}.sq-liefer-warn{font-size:.8rem!important}
html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next{min-width:0!important;width:auto!important}html body .ak-kolonnen .ak-kolonne .sq-karte .sq-fuss .sk-next:not(.start):not(.stopp){font-size:.68rem!important;padding:.25rem .3rem!important}
/* R8i: Dokumenteneingang – bei vielen Belegen dürfen Zeilen nicht zusammengedrückt werden (Überlappung) */
html body .eg-vliste>*{flex-shrink:0!important}
html body .eg-vliste .eg-vzeile{flex:0 0 auto!important;min-height:52px!important;align-items:center;overflow:hidden}
html body .eg-vliste .eg-vzeile>*{min-width:0}
html body .eg-vliste .eg-vzeile strong,html body .eg-vliste .eg-vzeile small,html body .eg-vliste .eg-vzeile span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
/* R8i: ⚙ Funktionen auf Berichtsseiten (Rechnungsausgangsbuch) */
.bericht>.titelzeile{display:flex;align-items:center;justify-content:space-between;gap:12px}
details.bz-zahnrad{position:relative;display:inline-block}
details.bz-zahnrad>summary{list-style:none;cursor:pointer;min-width:40px;text-align:center;font-size:1.05rem}
details.bz-zahnrad>summary::-webkit-details-marker{display:none}
details.bz-zahnrad[open]>summary{background:#eef3fa}
.bz-menue{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:300px;padding:6px;background:#fff;border:1px solid #e3e6ea;border-radius:12px;box-shadow:0 10px 28px rgba(20,30,50,.16);display:flex;flex-direction:column}
.bz-titel{font-size:.66rem;text-transform:uppercase;letter-spacing:.06em;color:#8a93a0;padding:8px 10px 3px;font-weight:700}
.bz-titel:first-child{padding-top:4px}
.bz-eintrag{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;padding:8px 10px;border:0;border-radius:8px;background:transparent;font:inherit;color:#1f2937;text-decoration:none;cursor:pointer}
.bz-eintrag:hover,.bz-eintrag:focus-visible{background:#f2f5f9}
.bz-eintrag small{font-size:.72rem;color:#8a93a0}
@media (max-width:600px){.bz-menue{min-width:260px}}
html body .bz-menue .bz-eintrag{border:0!important;box-shadow:none!important;background:transparent;min-height:0!important;width:100%;justify-content:flex-start;font-weight:500}html body .bz-menue .bz-eintrag:hover{background:#f2f5f9!important}
/* R8k: Ergebnisübersicht wie Steuerberatung (KER) */
.ma-ker-tab td:first-child{padding-left:14px}
.ma-ker-tab tr.ma-summe td{font-weight:700;border-top:1px solid #d9dde3;padding-left:8px}
.ma-ker-tab tr.ma-stark td{background:#f4f7fb;font-size:1.02em}
.ma-ker-tab tr.ma-block td{font-weight:700;text-transform:uppercase;font-size:.72rem;letter-spacing:.06em;color:#6b7480;padding-top:14px;padding-left:8px}
.ma-ker:not(.ma-ker-alle) tr.ma-null{display:none}
.ma-ker-null{font-size:.8rem;color:#6b7480;display:flex;align-items:center;gap:4px}
.ma-ker-nicht{margin-top:10px;font-size:.85rem}.ma-ker-nicht ul{margin:4px 0 0 18px}
/* R8l: Kontenplan der Steuerberatung */
.fk-scroll{max-height:60vh;overflow:auto;border:1px solid #e6e8ec;border-radius:10px;margin:8px 0}
.fk-plan{margin:0}.fk-plan th{position:sticky;top:0;background:#fff;z-index:1}
.fk-plan td{vertical-align:middle;padding:4px 8px}.fk-plan td.mono{white-space:nowrap;font-weight:600}
.fk-plan select{min-width:0;width:100%;max-width:260px;font-size:.82rem;padding:3px 6px;min-height:30px}
.fk-plan tr.fk-aus td{opacity:.45}.fk-aktiv{text-align:center}
.fk-suche{min-height:36px;flex:1 1 200px;max-width:280px}
/* R8n: Sammelzahlung – mehrere Rechnungen ankreuzen */
.bk-treffer-wahl{display:grid;grid-template-columns:22px 1fr auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid #e6e8ec;border-radius:9px;margin:4px 0;cursor:pointer;font-size:.9rem}
.bk-treffer-wahl:has(input:checked){background:#eef6f0;border-color:#9bd3a9}
.bk-treffer-wahl b{white-space:nowrap;font-size:.85rem}
.bk-sammel-summe{margin-top:8px;padding:8px 10px;background:#f4f6f9;border-radius:8px;font-size:.9rem}
.bk-sammel-summe .bk-ok{color:#2f6b45}.bk-sammel-summe .bk-warn{color:#a35b00}
.bk-quelle{display:inline-block;font-size:.65rem;font-weight:700;background:#fdf3dc;color:#8a5a00;border-radius:5px;padding:1px 6px;margin-right:6px;vertical-align:1px}

/* R8p: Lohnabgaben im Bankabgleich, Lohnjournal-Dialog, Duplikat-Warnung */
.bk-abgaben h2{margin:0 0 .4rem;font-size:1.05rem}
.bk-abg th,.bk-abg td{text-align:left;padding:.3rem .6rem;vertical-align:top}
.bk-abg th.zahl,.bk-abg td.zahl{text-align:right;white-space:nowrap}
.bk-abg tr.bk-abg-ok td:last-child{color:var(--ok,#1f7a3a);font-weight:600}
.bk-abg tr.bk-abg-ueber td:last-child{color:var(--fehler,#b3261e);font-weight:700}
.lj-dialog{max-width:min(780px,96vw)}
.lj-dialog table select{min-width:12rem}
.lj-ergebnis ul{margin:.3rem 0 .5rem 1.1rem;padding:0}
.lj-ergebnis{border-bottom:1px solid var(--linie,#e5e0d5);padding-bottom:.4rem;margin-bottom:.6rem}
.eg-dup{font-weight:600}
.bk-abg tr.bk-abg-spaet td:last-child{color:var(--warn,#9a5b00)}

/* ═══ R8s: Startseite – zwei Ansichten (Elegant / Modern) + Werbevorschau eingeklappt ═══ */
.hb-seite .heute-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; position: relative; }
.hb-kopf-text { flex: 1 1 320px; min-width: 0; }
.hb-kopf-text .hb-allgemein { margin-bottom: 0; }
.hb-stilwahl { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--hb-linie); font-size: .74rem; z-index: 1; }
.hb-stilwahl > span { padding: 0 .5rem 0 .6rem; color: var(--hb-leise); letter-spacing: .06em; text-transform: uppercase; font-size: .66rem; }
.hb-stil-knopf { border: 0; background: transparent; padding: .32rem .8rem; border-radius: 999px; font: inherit; font-weight: 600; color: var(--hb-leise); cursor: pointer; }
.hb-stil-knopf[aria-pressed="true"] { background: var(--sv-navy, #12293d); color: #fff; }
.hb-held-zahlen { display: none; }

/* — Ansicht A: Elegant — */
.hb-stil-a { background: transparent; }
.hb-stil-a .heute-kopf { padding: .4rem 0 1.1rem; margin-bottom: 1.2rem; border-bottom: 1px solid #e3d7bd; }
.hb-stil-a .heute-gruss { font-size: 2.25rem; font-weight: 500; letter-spacing: .005em; }
.hb-stil-a .heute-unter { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: #8a6a32; margin-top: .35rem; }
.hb-stil-a .hb-karte { border: 1px solid #ebe5d8; border-top: 1px solid #d9c08f; border-radius: 16px; box-shadow: 0 1px 0 rgba(31,51,70,.03), 0 14px 34px -18px rgba(31,51,70,.18); padding: 1.35rem 1.5rem; }
.hb-stil-a .hb-kopf h2 { font-size: 1.38rem; font-weight: 500; }
.hb-stil-a .hb-symbol { background: transparent; border: 1px solid #e3d3b2; color: #9a7a40; border-radius: 50%; }
.hb-stil-a .hb-zahlen { gap: 0; border-top: 1px solid #efe9dc; border-bottom: 1px solid #efe9dc; }
.hb-stil-a .hb-zahl { background: transparent; border: 0; border-radius: 0; padding: .85rem .9rem; border-left: 1px solid #efe9dc; }
.hb-stil-a .hb-zahl:first-child { border-left: 0; }
.hb-stil-a .hb-zahl b { font-family: var(--sv-titel); font-size: 2.05rem; font-weight: 500; }
.hb-stil-a .hb-zahl span { order: -1; text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; }
.hb-stil-a .hb-zahl:hover { background: #fbf8f1; }
.hb-stil-a .hb-wichtig-zeile { background: transparent !important; border: 0; border-bottom: 1px solid #f1ece2; border-radius: 0; padding: .55rem .2rem; }
.hb-stil-a .hb-wichtig-zeile .hb-punkt { display: block; flex: none; width: 7px; height: 7px; margin-top: .45rem; border-radius: 50%; background: #c9b78f; }
.hb-stil-a .hb-wichtig-zeile.fehler .hb-punkt { background: var(--hb-rot); }
.hb-stil-a .hb-wichtig-zeile.warn .hb-punkt { background: #d1a24a; }
.hb-stil-a .hb-wichtig-zeile:hover { background: #fbf8f1 !important; }
.hb-stil-a .hb-fin-zeile { position: relative; }
.hb-stil-a .hb-fin-zeile b { font-family: var(--sv-titel); font-weight: 500; font-size: 1.15rem; }

/* — Ansicht B: Modern — */
.hb-stil-b .heute-kopf { background: linear-gradient(135deg, #12293d 0%, #1c3a55 60%, #24476a 100%); color: #fff; border-radius: 20px; padding: 1.6rem 1.8rem 1.5rem; margin-bottom: 1.3rem; box-shadow: 0 18px 40px -22px rgba(18,41,61,.55); }
.hb-stil-b .heute-gruss { color: #fff; font-size: 2rem; }
.hb-stil-b .heute-unter { color: #d9c08f; letter-spacing: .08em; }
.hb-stil-b .hb-stilwahl { top: 1rem; right: 1rem; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.hb-stil-b .hb-stilwahl > span, .hb-stil-b .hb-stil-knopf { color: #d6dde5; }
.hb-stil-b .hb-stil-knopf[aria-pressed="true"] { background: #d9c08f; color: #12293d; }
.hb-stil-b .hb-chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.hb-stil-b .hb-allgemein .leise { color: #c4ceda; }
.hb-stil-b .hb-held-zahlen { display: flex; flex-wrap: wrap; gap: .6rem; flex: 1 1 420px; justify-content: flex-end; }
.hb-held-zahl { display: grid; gap: .1rem; min-width: 104px; padding: .7rem .95rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.hb-held-zahl b { font-size: 1.65rem; font-weight: 600; color: #e9d3a4; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hb-held-zahl span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #c4ceda; }
.hb-held-zahl:hover { background: rgba(255,255,255,.16); }
.hb-held-geld b { font-size: 1.3rem; }
.hb-stil-b .hb-karte { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(18,41,61,.06), 0 10px 30px -14px rgba(18,41,61,.22); padding: 1.4rem 1.5rem; }
.hb-stil-b .hb-symbol { background: #12293d; color: #e9d3a4; border-radius: 12px; }
.hb-stil-b .hb-zahl { border: 0; border-radius: 14px; padding: .8rem .9rem; }
.hb-stil-b .hb-zahl:nth-child(1) { background: #eef3f8; } .hb-stil-b .hb-zahl:nth-child(2) { background: #fbf3e3; }
.hb-stil-b .hb-zahl:nth-child(3) { background: #eaf4f3; } .hb-stil-b .hb-zahl:nth-child(4) { background: #edf5ef; }
.hb-stil-b .hb-zahl b { font-size: 1.75rem; }
.hb-stil-b .hb-wichtig-zeile { border-radius: 12px; }
.hb-stil-b .hb-finanzen { background: #fff; }
@media (max-width: 700px) {
  .hb-stilwahl { position: static; order: -1; }
  .hb-stil-b .heute-kopf { padding: 1.2rem 1.1rem; }
  .hb-stil-b .hb-held-zahlen { justify-content: flex-start; }
  .hb-held-zahl { min-width: calc(50% - .3rem); }
  .hb-stil-a .hb-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-stil-a .hb-zahl:nth-child(3) { border-left: 0; }
}

/* — Werbevorschau (Admin/Büro): eingeklappte Leiste, aufgeklappt gleich große Karten — */
details.wb-vorschau { border: 1px solid #ebe3d1; border-radius: 14px; background: #fffdf8; padding: 0; margin-top: 1.2rem; }
details.wb-vorschau > summary.wb-kopf { list-style: none; cursor: pointer; display: flex; justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; padding: .7rem 1rem; margin: 0; }
details.wb-vorschau > summary::-webkit-details-marker { display: none; }
details.wb-vorschau > summary .wb-ueber::after { content: ' ▸'; color: #9a7a40; }
details.wb-vorschau[open] > summary .wb-ueber::after { content: ' ▾'; }
details.wb-vorschau > summary .wb-zu:first-of-type { margin-left: auto; }
details.wb-vorschau .wb-vorschau-reihe { display: flex; gap: .9rem; overflow-x: auto; padding: .2rem 1rem 1rem; scroll-snap-type: x proximity; }
details.wb-vorschau .wb-vorschau-eintrag { flex: 0 0 210px; margin: 0; display: grid; grid-template-rows: 270px auto; gap: .45rem; scroll-snap-align: start; }
details.wb-vorschau .wb-vorschau-eintrag > :first-child { height: 270px; overflow: hidden; border-radius: 12px; }
details.wb-vorschau .wb-vorschau-eintrag img { width: 100%; height: 100%; object-fit: cover; }
details.wb-vorschau figcaption .chip { white-space: normal; font-size: .7rem; line-height: 1.3; }
details.wb-vorschau > summary .wb-zu { background: transparent; border: 0; padding: .2rem .4rem; font-size: .8rem; color: #8a6a32; text-decoration: underline; min-height: 0; box-shadow: none; }

/* ═══ R8s: Auftragsliste (Tabelle) – „Nächster Schritt“ ruhiger: helle Flächen statt sattem Grün ═══ */
html body #app .sk-tabelle .sk-tab-schritte { display: flex !important; flex-wrap: wrap; gap: .35rem; background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
html body #app .sk-tabelle :is(.sk-next, .sk-tab-schritte > button) { min-height: 32px !important; padding: .3rem .8rem !important; border-radius: 8px !important; font-size: .82rem !important; font-weight: 600 !important; letter-spacing: 0 !important; box-shadow: none !important; flex: 0 0 auto !important; min-width: 0 !important; white-space: nowrap; align-items: center; }
html body #app .sk-tabelle :is(.sk-next.gruen, .sk-next.start, .sk-next[data-fahrt-aktion="start"]) { background: #e8f3ec !important; color: #2b6446 !important; border: 1px solid #c9e2d2 !important; }
html body #app .sk-tabelle :is(.sk-next.gruen, .sk-next.start, .sk-next[data-fahrt-aktion="start"]):hover { background: #dcede2 !important; filter: none; }
html body #app .sk-tabelle :is(.sk-next.rot, .sk-next.stopp, .sk-next[data-fahrt-aktion="stop"]) { background: #f9ebe9 !important; color: #9b3b33 !important; border: 1px solid #efcfca !important; }
html body #app .sk-tabelle .sk-tab-schritte > .sk-next:not([data-fahrt-aktion]):not(.rot) { background: #fff !important; color: #1f3346 !important; border: 1px solid #ddd6c7 !important; }
html body #app .sk-tabelle .sk-tab-schritte > .sk-next:not([data-fahrt-aktion]):not(.rot):hover { background: #faf7f0 !important; border-color: #c9b78f !important; }
html body #app .sk-tabelle .sk-next.neutral { background: #fff !important; color: #4b5563 !important; border: 1px solid #e5e7eb !important; }
html body #app .sk-tabelle tr.sk-zeile td { vertical-align: middle; }
/* Variante „Linie“ (nur zum Vergleich): Text mit feiner Kontur, Farbe nur als Punkt */
html body #app .sk-tabelle.sk-stil-linie :is(.sk-next, .sk-tab-schritte > button) { background: #fff !important; color: #1f3346 !important; border: 1px solid #ddd6c7 !important; }
html body #app .sk-tabelle.sk-stil-linie :is(.sk-next.gruen, .sk-next[data-fahrt-aktion="start"])::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3f8a58; margin-right: .45rem; display: inline-block; }
html body #app .sk-tabelle.sk-stil-linie .sk-next[data-fahrt-aktion="stop"]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c9524a; margin-right: .45rem; display: inline-block; }
html body #app .sk-tabelle.sk-stil-linie .sk-next { flex-direction: row !important; }
/* R8s: Ansichtswahl Aufträge – nur Symbole */
html body .auftragsansicht.auftragsansicht-symbole .knopf { min-width: 40px !important; width: 40px; padding: 0 !important; display: inline-grid; place-items: center; }
.auftragsansicht-symbole svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.auftragsansicht-symbole .knopf.an svg { stroke: #fff; }

/* ═══ R8s: Blaue Kennzeichen – Nummer als Tafel, Karte im Stil „Modern“ ═══ */
html body .sq-karte.fp-blau { border-radius: 18px !important; border: 1px solid #e6e8ee !important; box-shadow: 0 1px 2px rgba(18,41,61,.05), 0 12px 28px -16px rgba(18,41,61,.25) !important; padding: 1.1rem 1.15rem !important; }
html body .sq-karte.fp-blau .sq-kopf { align-items: center; margin-bottom: .55rem; }
/* R8u: .sq-nr-Tafel jetzt über .kz-at (kennzeichen-tafel.js) */
html body .sq-karte.fp-blau .sq-gross { font-size: 1rem !important; font-weight: 600 !important; color: #475569 !important; font-family: inherit !important; }
html body .sq-karte.fp-blau .sq-kennung { font-family: inherit !important; font-size: .8rem !important; color: #64748b !important; }
html body .sq-karte.fp-blau .sq-rubrik { display: none; }
html body .sq-karte.fp-blau .sq-fakten { background: #f6f7fa; border: 0 !important; border-radius: 12px; padding: .6rem .75rem; margin-top: .6rem; }
html body .sq-karte.fp-blau .fk-status, html body .sq-karte.fp-blau .sq-status > * { border-radius: 999px; font-size: .72rem; padding: .18rem .6rem; }
html body .sq-karte.fp-blau .fk-status.frei { background: #e8f3ec; color: #2b6446; border: 1px solid #c9e2d2; }
html body .sq-karte.fp-blau .fk-status.unterwegs { background: #fbeeec; color: #9b3b33; border: 1px solid #efcfca; }
html body .sq-karte.fp-blau .sq-fuss .sk-next { border-radius: 10px !important; }


/* ===== R8u: Österreichische Kennzeichentafel wie das Original ===== */
.kz-at{--kzh:2.6rem;display:inline-flex;align-items:stretch;height:var(--kzh);border-radius:calc(var(--kzh)*.12);overflow:hidden;vertical-align:middle;flex:0 0 auto;
 font:700 calc(var(--kzh)*.62)/1 'DIN 1451 Mittelschrift','DIN Alternate','Arial Narrow','Roboto Condensed',sans-serif;font-stretch:condensed;letter-spacing:.02em;white-space:nowrap;
 box-shadow:0 1px 2px rgba(0,0,0,.18)}
.kz-at.kz-klein{--kzh:1.6rem}
.kz-weiss{background:linear-gradient(#c8102e 0 9%,#fff 9% 91%,#c8102e 91%);color:#111;border:2px solid #111}
.kz-weiss .kz-eu{display:flex;flex-direction:column;align-items:center;justify-content:space-between;width:calc(var(--kzh)*.42);background:#003399;color:#fff;padding:calc(var(--kzh)*.06) 0 calc(var(--kzh)*.05)}
.kz-eu .kz-sterne{display:block;width:88%}.kz-eu .kz-sterne svg{display:block;width:100%}
.kz-eu b{font:700 calc(var(--kzh)*.24)/1 Arial,sans-serif;letter-spacing:0}
.kz-blau{background:#1b4a99;color:#fff;border:1.5px solid #0d2c5f;box-shadow:inset 0 0 0 2px #fff,0 1px 2px rgba(0,0,0,.18)}
.kz-at .kz-text{display:flex;align-items:center;gap:calc(var(--kzh)*.13);padding:0 calc(var(--kzh)*.26)}
.kz-at .kz-wappen{display:inline-flex}.kz-at .kz-wappen svg{height:calc(var(--kzh)*.52);width:auto}
html body .sq-karte .sq-nr:has(.kz-at){background:none!important;box-shadow:none!important;padding:0!important}
html body .sq-karte .sq-nr:has(.kz-at)::before{content:none!important}
.fb-zweck{color:#334155;margin-top:.15rem}

/* ===== R8u: Neue Fahrt · Blaue Tafel – kompakt, zweispaltig, ohne Scrollen ===== */
.fp-neu-blau{max-width:1400px}
.fp-neu-kopf{display:flex;align-items:center;gap:.8rem;margin:0 0 .6rem}.fp-neu-kopf h1{margin:0;font-size:1.35rem}
.fp-kompakt .fp-spalten{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"z l" "f l" "r l";grid-template-rows:auto auto 1fr;gap:.8rem;align-items:start}
.fp-kompakt.fp-ohne-lenker .fp-spalten{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"z r" "f r";grid-template-rows:auto 1fr}
.fp-a-z{grid-area:z}.fp-a-f{grid-area:f}.fp-a-l{grid-area:l}.fp-a-r{grid-area:r}
.fp-kompakt .fp-spalten>*{min-width:0}
.fp-kompakt .fp-schritt{margin:0!important;padding:.8rem 1rem!important;border-radius:14px!important}
.fp-kompakt .fp-schritt h2{margin:0 0 .5rem;font-size:1rem}
.fp-kompakt .feld{margin:0 0 .45rem}.fp-kompakt .feld .l{font-size:.78rem;margin-bottom:.15rem}
.fp-kompakt input:not([type=checkbox]),.fp-kompakt select{min-height:2.25rem;padding:.3rem .6rem}
.fp-zweck-kacheln{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.5rem;margin-bottom:.4rem}
#app .fp-zweck-kachel{display:flex;align-items:center;gap:.6rem;text-align:left;padding:.6rem .75rem;border:1.5px solid #e2e5ea!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;cursor:pointer;color:#1f2937;font:inherit}
#app .fp-zweck-kachel:hover{border-color:#9fb6d8!important}
#app .fp-zweck-kachel[aria-checked=true]{border-color:#1b4a99!important;background:#eef3fb!important;box-shadow:0 0 0 2px #1b4a9926!important}
.fp-zk-symbol{display:inline-grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:10px;background:#f1f4f8;color:#1b4a99;flex:0 0 auto}
.fp-zweck-kachel[aria-checked=true] .fp-zk-symbol{background:#1b4a99;color:#fff}
.fp-zk-symbol svg{width:1.25rem;height:1.25rem}
.fp-zk-text strong{display:block;font-size:.95rem}.fp-zk-text small{display:block;color:#64748b;font-size:.75rem}
.fp-zk-info{margin:.2rem 0 0}
.fp-auto-hinweis{margin:.4rem 0 0;padding:.4rem .6rem;border-radius:8px;background:#e8f3ec;color:#215c39}
.fp-kompakt .fp-source-info{padding:.35rem .6rem;margin:-.2rem 0 .45rem;border-radius:8px}
.fp-kompakt .fp-source-info:empty{display:none}
.fp-kompakt .fp-source-details{margin-top:.2rem}
.fp-drei{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.7fr);gap:.5rem}
.fp-haken{display:flex;gap:1.2rem;flex-wrap:wrap}.fp-haken .feld{margin:0}
.fp-kompakt .fp-lenker-art{margin:.1rem 0 .4rem}
.fp-kompakt .fp-route-mehr{margin:.2rem 0}
.fp-fuss{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:.8rem;padding:.6rem 1rem;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);border:1px solid #e6e8ee;border-radius:14px;box-shadow:0 -6px 20px -14px rgba(18,41,61,.35)}
.fp-fuss p{margin:0 auto 0 0;color:#a3261d}#app .fp-fuss .knopf.haupt{min-width:220px;min-height:2.6rem;background:#1b4a99!important;color:#fff!important;border-color:#1b4a99!important;font-weight:700;justify-content:center}
@media(max-width:900px){.fp-kompakt .fp-spalten{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"z" "f" "l" "r"!important;grid-template-rows:auto!important}.fp-drei{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.fp-kompakt .fp-a-f{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:.6rem;align-content:start}
.fp-kompakt .fp-a-f>*{grid-column:1/-1}
.fp-kompakt .fp-a-f>label.feld{grid-column:1;grid-row:2}
.fp-kompakt .fp-a-f>.fp-source-info{grid-column:1;grid-row:3;margin:0}
.fp-kompakt .fp-a-f>.fp-source{grid-column:2;grid-row:2/span 2}
.fp-kompakt .fp-source .knopf.klein{padding:.15rem .5rem;font-size:.75rem;min-height:0}
.fp-kompakt .fp-lenker-block:not(.weitere)>.fp-lenker-kopf{display:none}
.fp-kompakt .fp-a-l>p.klein{margin:-.3rem 0 .4rem}
.fp-kompakt .fp-a-z>.feld{margin-top:.2rem}

/* ===== R8v: Kundenportal – Portal-Nummern, Kontrolleur, Lieferschein Papier/Digital ===== */
.kp-karte h3{margin:.8rem 0 .4rem;font-size:.95rem}
.kp-art{display:flex;gap:.6rem;flex-wrap:wrap}
.kp-art-wahl{display:flex;align-items:flex-start;gap:.5rem;padding:.6rem .8rem;border:1.5px solid #e2e5ea;border-radius:12px;cursor:pointer;min-width:230px;flex:1}
.kp-art-wahl:has(input:checked){border-color:#1b4a99;background:#eef3fb}
.kp-art-wahl strong{display:block}.kp-art-wahl small{display:block;color:#64748b}
.kp-tabelle{width:100%;border-collapse:collapse}.kp-tabelle th{text-align:left;font-size:.75rem;color:#64748b;padding:.3rem .4rem;border-bottom:1px solid #e6e8ee}
.kp-tabelle td{padding:.35rem .4rem;border-bottom:1px solid #f0f1f4;vertical-align:middle}
.kp-tabelle .kp-nr{width:4.5rem}.kp-mitte{text-align:center}.kp-inaktiv{opacity:.55}
.kp-regeln{margin:.8rem 0;padding-left:1.1rem;color:#475569}.kp-regeln li{margin:.15rem 0}
.kp-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.6rem;margin-top:.6rem}
.kp-person{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.6rem .75rem;border:1px solid #e6e8ee;border-radius:12px;background:#fff}
.kp-person.selbst{border-color:#1b4a99;background:#f4f7fc}
.kp-badge{display:inline-grid;place-items:center;min-width:2.4rem;height:2.4rem;border-radius:10px;background:#13293d;color:#e8c77a;font-weight:800}
.kp-name{display:flex;flex-direction:column;min-width:0;flex:1}.kp-name small{color:#64748b}
.kp-kontrolle{background:#e8f3ec!important;color:#215c39!important;border-color:#c9e2d2!important}
.kp-person .kp-kontrolle{flex-basis:100%;text-align:center}.kp-name b{white-space:nowrap}
#app .kp-art .kp-art-wahl{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:.6rem;text-align:left}
#app .kp-art .kp-art-wahl input{width:auto!important;margin:.2rem 0 0;flex:0 0 auto}
#app .kp-form>button.knopf.haupt{justify-self:start;width:auto;min-width:200px;background:#13293d!important;color:#fff!important}
#app .kp-tabelle select{min-height:2.1rem;padding:.2rem .5rem}
/* R8w: Lieferschein-Kontrolle */
.ls-kontrolle-ok{background:#e8f3ec!important;color:#215c39!important;border-color:#c9e2d2!important;white-space:nowrap}
.ls-kontrolle-nein{background:#fdecea!important;color:#9b2c22!important;border-color:#f3c4be!important;white-space:nowrap}
.ls-unterschrift{display:grid;gap:.3rem;margin-top:.5rem}.ls-unterschrift canvas{width:100%;max-width:600px;height:auto;aspect-ratio:3/1;border:1.5px dashed #b8c2cf;border-radius:10px;background:#fff;touch-action:none}
.ls-unterschrift .knopf{justify-self:start}

/* R8y: Handy – Kartenraster und Werbestudio-Liste nie breiter als der Bildschirm (Spalte darf schrumpfen, Text bricht um) */
html body .sq-raster > li, html body .ws-raster > * { min-width: 0; }
@media (max-width: 700px) { html body .sq-raster, html body .ak-kolonne ul.sq-raster, #app .ak-kolonne ul.sq-raster { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 1100px) { .ws-raster { grid-template-columns: minmax(0, 1fr); } }
html body .ws-eintrag, html body .ws-eintrag-text { min-width: 0; }
html body .ws-eintrag-text strong, html body .ws-eintrag-text small { overflow-wrap: anywhere; white-space: normal; }
html body .sq-kopf > * { min-width: 0; overflow-wrap: anywhere; }
