/* Klarglas (Entwurf 2) auf der Live-Seite: eigene Zusatzregeln.
   Die vier Dateien des Entwurfs (style.css, bausteine.css, seiten.css, extras.css) bleiben unverändert (SHA-256 geprüft).
   Alles, was die Live-Seite zusätzlich braucht (Rahmen um noch nicht umgebaute Seiteninhalte, Fuß-Ergänzungen), steht nur hier.
   Geladen wird die Datei nur, solange der Schalter design.klarglas an ist. */

/* ---------- Seite und Rahmen ---------- */
html { height: auto; min-height: 100%; }
body.kg-live { height: auto; min-height: 100%; overflow-x: hidden; }
.kg-live .kg { min-height: 100vh; min-height: 100dvh; }

/* Seiteninhalte, die noch im bisherigen Aussehen stehen (Schritte 2 bis 8): volle Breite, kein Doppelrand */
.kg-live .kg-main { padding-left: 0; padding-right: 0; }
.kg-live.kg-area-client .kg-main,
.kg-live.kg-area-provider .kg-main,
.kg-live.kg-area-admin .kg-main { padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- Fuß: Ergänzungen der Live-Seite ---------- */
.kg-foot__src { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 13px; color: var(--ink-2); }
.kg-foot__src a { display: inline; min-height: 0; color: inherit; font-size: inherit; text-decoration: underline; }

/* ---------- Konto-Blatt: Abmelden als Formular ---------- */
.kg-sheet--acc form { margin: 0; }

/* ---------- Startseite (Schritt 2) ---------- */
/* Meldung unter dem Ortsfeld (Standort wird bestimmt, nicht verfügbar …): schwebt unter der Suchleiste, schiebt nichts weg */
.kg-loc__state { position: absolute; left: 12px; right: 12px; top: calc(100% + 10px); z-index: 6; padding: 6px 12px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-1); color: var(--ink-2); font-size: 13px; line-height: 1.4; }
/* Startseite, Hintergrundgrafik so gross wie im Entwurf (Betreiber 14.11.2026): Die Buehne ist wieder so breit wie im Entwurf (bis 1800px); die Grafik (SVG, viewBox 1400x660, slice) fuellt sie.
   Die Grafik soll bei jeder Aufloesung vollbildlich sein: Auf dem Desktop waechst die Buehne mit ihrer Breite im Seitenverhaeltnis der Grafik (1400:660), so dass die Grafik die ganze Buehne fuellt und nichts oben/unten abgeschnitten wird (Mindesthoehe 660px bleibt). */
@media (min-width: 1240px) { .kg-live .kg-startpage .kg-stage { width: 100%; aspect-ratio: 1400 / 660; } }
.kg-live .kg-startpage .page-body { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.kg-loc__state[hidden] { display: none; }
/* Ohne Rangliste (noch keine Aufrufe gezählt) steht die Kachel „Wobei können wir helfen?“ allein in voller Breite */
.kg-duo--one { grid-template-columns: minmax(0, 1fr); }
.kg-duo--one .cards--entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .kg-duo--one .cards--entry { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Aufträge finden und Auftrag im Detail (Schritt 3) ---------- */
/* Breite wie im Entwurf: der Rand kommt dort vom Inhaltsbereich, hier (Gast-Seiten ohne Seitenrand) von der Seite selbst */
.kg-live .kg-market, .kg-live .kg-detail { width: calc(100% - 2 * var(--gut)); }
.kg-market .kg-sb { margin-bottom: 18px; }
/* Die bisherigen Stile der Seite setzen Beschriftungen fett; im Entwurf stehen sie normal */
.kg-live .facts dt { font-weight: 400; }
.kg-empty .notice__text p { margin: 4px 0 0; }
.kg-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 18px; color: var(--ink-2); font-size: 14.5px; }
.kg-pages .btn.is-off { opacity: .5; pointer-events: none; }
/* Karte der Aufträge (Zwei-Klick-Karte) */
.kg-map { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, .72); overflow: hidden; }
.kg-map__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; }
.kg-map__head h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 17px/1.2 var(--head); }
.kg-map__head h3 .ic { width: 20px; height: 20px; }
.kg-map__sub { flex: 1 1 200px; color: var(--ink-2); font-size: 13.5px; }
.kg-map__body { padding: 0 14px 14px; }
.kg-map__consent { margin: 0; }
.kg-map__consent .notice__text p { margin: 0; }
.kg-map__canvas { width: 100%; height: 360px; border-radius: 18px; overflow: hidden; }
.kg-map__error { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.kg-map.is-closed .kg-map__head .btn .ic { transform: rotate(180deg); }
.kg-map-none { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.kg-map-none .ic { width: 18px; height: 18px; }
/* Auftrag im Detail: bisherige Bausteine (Abrechnungsgrundlage, Zusatzkosten, Dokumente) im Rahmen der Textkarte */
.kg-legacy .prose { display: grid; gap: 12px; }
.kg-legacy .prose > p { margin: 0; }
.kg-apply { display: grid; gap: 14px; }
.kg-apply .form__actions { margin: 0; }
.kg-apply .notice__text p { margin: 0 0 6px; }
.kg-apply .notice__text p:last-child { margin-bottom: 0; }
.kg-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kg-gallery__grid a { display: block; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--sh-1); }
.kg-gallery__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.job-favorite-btn.selected .ic { fill: currentColor; }

/* ---------- Betriebe, Profil, Branchen, Info-Seiten (Schritt 4) ---------- */
/* Suchleiste ohne Umkreis (die Betriebe-Suche kennt keinen): drei Spalten statt vier */
.kg-sb--noradius { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) auto; }
@media (max-width: 759px) { .kg-sb--noradius { grid-template-columns: minmax(0, 1fr); } .kg-sb--noradius .kg-sb__go { margin-left: 0; } }
.kg-fbar__check { flex: 0 0 auto; align-self: flex-end; }
.kg-fbar__check.check { min-height: 48px; padding: 0 4px; align-items: center; }
/* Seiten ohne Seitenrand: Breite wie im Entwurf */
.kg-live .page--branchen { width: calc(100% - 2 * var(--gut)); }
.kg-info .b-note { margin: 18px 0 0; color: var(--ink-2); font-size: 14.5px; }
.kg-reply { display: block; margin-top: 4px; }
.kg-reply b { display: inline; font-weight: 600; }
a.kg-pick { text-decoration: none; }
a.kg-pick .ic { width: 15px; height: 15px; }
.card--branch .card__more { position: relative; z-index: 1; color: var(--blue-2); font-size: 13.5px; text-decoration: underline; }
.card--branch .card__body .card__text + .card__text { margin-top: 2px; }

/* ---------- Hinweis vor der ersten Standortabfrage ---------- */
/* Karte aus dem Baustein .kg-pop des Entwurfs, hier mittig über der Seite; die Ebene ist nur sichtbar, solange der Hinweis offen ist */
.kg-lochint { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kg-lochint[hidden] { display: none; }
.kg-lochint__scrim { position: absolute; inset: 0; background: rgba(14, 40, 62, .38); }
.kg-lochint__card.kg-pop { position: relative; z-index: 1; width: min(420px, 100%); padding: 20px 20px 22px; }
.kg-lochint__card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.kg-lochint__card:focus { outline: none; }


/* ---------- Anmelden, Registrieren, Passwort (Schritt 5) ---------- */
/* Der Entwurf hat rechts „Bereiche ohne Anmeldung ansehen“ (nur Entwurf); live steht die Karte allein, mittig */
.kg-signin--solo { grid-template-columns: minmax(0, 450px); justify-content: center; }
.kg-signin--solo.kg-signin--wide { grid-template-columns: minmax(0, 760px); }
.kg-live .kg-login-card--wide .form > .field { flex-basis: max(min(250px, 100%), 40%); }
.kg-live .kg-login-card--wide .form > .field--check,
.kg-live .kg-login-card--wide .form > .field--file,
.kg-live .kg-login-card--wide .form > .kg-auth-wide { flex-basis: 100%; }
.kg-auth-wide { margin: 0; }
.kg-auth-note { margin: 16px 0 0; }
.kg-auth-list { margin: 0; padding-left: 18px; }
.kg-auth-alt { margin-top: 18px; }
.kg-auth-sub { margin: 28px 0 12px; }
.kg-auth-sibs { margin-bottom: 14px; }
.kg-auth-benefits { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.kg-auth-benefits li { display: flex; align-items: flex-start; gap: 10px; }
.kg-auth-benefits .ic { flex: none; margin-top: 2px; color: var(--green-ink); }
.kg-auth-paths { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
a.kg-try__item { text-decoration: none; }
.kg-login-card .error-message:not(:empty) { margin-top: 16px; }
.kg-login-card .error-message .alert { margin: 0; padding: 14px 18px; border: 1px solid #eda29b; border-radius: 26px; background: #fdeceb; color: #b42318; font-weight: 600; }
.kg-login-card .error-message .alert-success { border-color: #8fcba0; background: #e3f4e8; color: #0f6b2d; }
.kg-login-card .error-message .alert-warning { border-color: #e3bd62; background: #fdf3dc; color: #8a5a00; }
.kg-login-card .av-reg-errors { margin: 16px 0 0; }
.kg-login-card .av-reg-errors[hidden] { display: none; }
.kg-login-card .av-reg-errors ul { margin: 4px 0 0; padding-left: 18px; }
.kg-login-card .av-google { margin-top: 18px; }

/* ---------- Bereich Auftraggeber (Schritt 6) ---------- */
.kg-rowact { white-space: nowrap; }
.kg-rowact .cell-link { margin-right: 8px; vertical-align: middle; }
.kg-more { position: relative; display: inline-block; vertical-align: middle; }
.kg-more > summary { list-style: none; cursor: pointer; }
.kg-more > summary::-webkit-details-marker { display: none; }
.kg-more__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-2); text-align: left; white-space: normal; }
.kg-more__list form { margin: 0; }
.kg-more__list a, .kg-more__list button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer; }
.kg-more__list a:hover, .kg-more__list button:hover { background: var(--blue-faint); }
.kg-more__note { display: block; padding: 8px 12px; color: var(--ink-2); font-size: 13.5px; }
@media (min-width: 1000px) { .kg-ag-list .table-scroll { overflow: visible; } }
@media (max-width: 759px) { .kg-more { display: block; margin-top: 6px; } .kg-more__list { right: auto; left: 0; } }
.kg-ag-list .b-filter, .kg-ag-offers .b-note { margin-bottom: 18px; }
.kg-ag-list .filter { gap: 10px; }
.kg-cols--solo { grid-template-columns: minmax(0, 1fr); }
.kg-pager { margin-top: 14px; }
.kg-pager .tab.is-off { opacity: .45; }
.kg-pager__info { margin: 14px 0 0; }
/* Step 7 (contractor area): list of orders, the three links of a row stand under each other, the date stays in one line. */
.kg-nowrap { white-space: nowrap; }
.page--an-auftraege .kg-rowact { white-space: normal; }
.page--an-auftraege .kg-rowact .cell-link { display: block; margin: 0 0 6px; }
.page--an-auftraege .kg-rowact .cell-link:last-child { margin-bottom: 0; }

/* ---------- Schritt 7b: Aufträge finden (Auftragnehmer) und Angebot senden ---------- */
/* Merken-Knopf in der Zeile der Auftragsliste: Herz gefüllt, wenn gemerkt */
.kg-save.selected { color: var(--blue); border-color: var(--blue-2); }
.kg-save.selected .ic { fill: currentColor; }
.kg-jr__side .kg-save { white-space: nowrap; }
/* Angebot senden: Fehlerliste, Fehlertext am Feld */
.kg-errlist { margin: 0; padding-left: 18px; }
.kg-err { color: #b42318; font-weight: 600; }
.kg-offer .kg-legacy-form { display: grid; gap: 14px; }
.kg-offer .b-form--aside .form { display: grid; gap: 16px; }
/* Bausteine der bisherigen Seite (Preisangabe, Zusatzkosten, Textbausteine) im neuen Rahmen: ihre Hilfsklassen des alten Designs */
.kg-offer .d-none { display: none !important; }
.kg-offer .d-block { display: block; }
.kg-offer .d-flex { display: flex; }
.kg-offer .flex-wrap { flex-wrap: wrap; }
.kg-offer .align-items-center { align-items: center; }
.kg-offer .gap-2 { gap: 8px; }
.kg-offer .gap-4 { gap: 16px; }
.kg-offer .mb-1 { margin-bottom: 4px; }
.kg-offer .mb-2 { margin-bottom: 8px; }
.kg-offer .mb-3 { margin-bottom: 12px; }
.kg-offer .mb-4 { margin-bottom: 0; }
.kg-offer .mb-10 { margin-bottom: 6px; }
.kg-offer .mt-1 { margin-top: 4px; }
.kg-offer .mt-2 { margin-top: 8px; }
.kg-offer .w-100 { width: 100%; }
.kg-offer .small, .kg-offer small { font-size: 13.5px; }
.kg-offer .text-muted { color: var(--ink-2); }
.kg-offer .text-danger { color: #b42318; font-weight: 600; }
.kg-offer .input-wraper { display: grid; gap: 6px; flex: 1 1 100%; min-width: 0; }
.kg-offer .custom-label { padding: 0; font: 600 14.5px/1.3 var(--body); }
.kg-offer .custom-input, .kg-offer .custom-select { width: 100%; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; }
.kg-offer .custom-input:focus, .kg-offer .custom-select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(11, 92, 150, .16); }
.kg-offer .cmn-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--blue); font-weight: 600; cursor: pointer; }
.kg-offer .form-check { display: flex; align-items: center; gap: 8px; }
.kg-offer details summary { cursor: pointer; font-weight: 600; }


/* ---------- Auftrag anlegen (Schritt 6c) ---------- */
/* Die bisherigen Bausteine im Formular (Abrechnung, Zusatzkosten, Sichtbarkeit, Dokumente, Vorlage) behalten ihre Felder und Skripte und bekommen das Aussehen der Felder des Entwurfs.
   Alles hier gilt nur unter .kg-ag-new, also nur auf dieser Seite und nur bei eingeschaltetem Klarglas. */
.kg-ag-new .kg-assist { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .72); }
.kg-ag-new .kg-assist .b-head { margin: 0; }
.kg-ag-new .kg-assist .b-hint { margin: 0; color: var(--ink-2); }
.kg-ag-new .kg-assist .field--textarea { display: grid; gap: 6px; }
.kg-ag-new .kg-assist .form__actions { margin: 0; }
.kg-ag-new .kg-assist__status { margin: 0; color: var(--green-ink); font-weight: 600; }
.kg-ag-new .kg-assist__status:empty { display: none; }
.kg-ag-new .kg-assist-wrap > summary { display: inline-flex; list-style: none; cursor: pointer; }
.kg-ag-new .kg-assist-wrap > summary::-webkit-details-marker { display: none; }
.kg-ag-new .kg-assist-wrap[open] > summary { margin-bottom: 12px; }
.kg-ag-new .kg-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.kg-ag-new .kg-tpl__label { font-weight: 600; }
.kg-ag-new a.chip { text-decoration: none; }
.kg-ag-new .kg-jobbanner .notice__text a { color: var(--blue-2); text-decoration: underline; }
.kg-ag-new .kg-jobbanner__notes { margin: 6px 0 0; padding-left: 18px; }
.kg-ag-new .field__error, .kg-ag-new .error-message { margin: 0; color: #b42318; font-size: 13.5px; font-weight: 600; }
.kg-ag-new .error-message:empty { display: none; }
.kg-ag-new .kg-jobform .form > .field--legacy { flex: 1 1 100%; display: block; }
.kg-ag-new .kg-media .img-wrap img { display: block; max-width: 260px; border-radius: 16px; }
.kg-ag-new .kg-media .media_upload_form_btn.btn--ghost { margin: 6px 0; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .84); color: var(--blue); box-shadow: none; }
.kg-ag-new .kg-media .upload-img { display: grid; gap: 4px; }
.kg-ag-new .kg-media .field__hint { margin: 0; }
/* Felder der bisherigen Bausteine wie die Felder des Entwurfs */
.kg-ag-new .field--legacy .d-flex.flex-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 0 0 16px; }
.kg-ag-new .field--legacy .d-flex.flex-wrap:last-child { margin-bottom: 0; }
.kg-ag-new .field--legacy .input-wraper { flex: 1 1 max(min(250px, 100%), 30%); min-width: 0; }
.kg-ag-new .field--legacy .custom-label { display: block; margin: 0 0 6px; padding: 0; font: 600 14.5px/1.3 var(--body); }
.kg-ag-new .field--legacy .custom-input, .kg-ag-new .field--legacy .custom-select, .kg-ag-new .field--legacy .input {
  display: block; width: 100%; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background-color: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.kg-ag-new .field--legacy .custom-input:hover, .kg-ag-new .field--legacy .custom-select:hover { border-color: rgba(14, 65, 105, .42); }
.kg-ag-new .field--legacy .custom-input:focus, .kg-ag-new .field--legacy .custom-select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(11, 92, 150, .16); }
.kg-ag-new .field--legacy select.custom-select { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='ht%74p://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4169' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.kg-ag-new .field--legacy .text-danger { display: block; margin-top: 6px; color: #b42318; font-size: 13.5px; font-weight: 600; }
.kg-ag-new .field--legacy small, .kg-ag-new .field--legacy .text-muted, .kg-ag-new .field--legacy .avx-muted { color: var(--ink-2); font-size: 13.5px; }
.kg-ag-new .field--legacy .form-check { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; padding: 6px 0; min-height: 44px; }
.kg-ag-new .field--legacy .form-check-input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-btn); }
.kg-ag-new .field--legacy .form-check-label { font-weight: 500; }
.kg-ag-new .field--legacy .av-offer-terms { display: grid; gap: 8px; margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--blue-faint); }
.kg-ag-new .field--legacy .av-offer-terms p { margin: 0; }
.kg-ag-new .field--legacy .av-offer-terms__title { font-weight: 600; }
.kg-ag-new .field--legacy .av-offer-terms a { color: var(--blue-2); text-decoration: underline; }
.kg-ag-new .field--legacy .avx-box { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .6); }
.kg-ag-new .field--legacy .avx-box > summary { font-weight: 600; cursor: pointer; }
.kg-ag-new .field--legacy .avx-box input[type=number], .kg-ag-new .field--legacy .avx-box input[type=text], .kg-ag-new .field--legacy .avx-box select {
  min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background-color: #fff; color: var(--ink); font-size: 16px; }
/* Sichtbarkeit: die beiden Möglichkeiten als Auswahlkacheln des Entwurfs (Bausteine .choice) */
.kg-ag-new .av-visibility { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.kg-ag-new .av-visibility > .custom-label { margin: 0 0 4px; padding: 0; font: 600 14.5px/1.3 var(--body); }
.kg-ag-new .av-choice { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 18px; background: #fff; cursor: pointer; }
.kg-ag-new .av-choice:hover { border-color: rgba(14, 65, 105, .45); }
.kg-ag-new .av-choice:has(input:checked) { border-color: var(--green-btn); background: #f3faf5; box-shadow: inset 0 0 0 1px var(--green-btn); }
.kg-ag-new .av-choice.is-disabled { opacity: .55; cursor: not-allowed; }
.kg-ag-new .av-choice input[type=radio] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-btn); }
.kg-ag-new .av-choice strong { font: 600 15.5px/1.3 var(--head); }
.kg-ag-new .av-choice small { color: var(--ink-2); font-size: 13.5px; }
.kg-ag-new .av-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.kg-ag-new .av-fav-options { display: grid; gap: 10px; }
.kg-ag-new .av-days-input { width: 90px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; }
/* Als Vorlage speichern */
.kg-ag-new .av-template-save { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line) !important; }
.kg-ag-new .av-template-save .custom-label { display: block; margin: 0; font: 600 14.5px/1.3 var(--body); }
.kg-ag-new .av-template-save .custom-input { min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; }
.kg-ag-new .av-template-save .cmn-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .84); color: var(--blue); font: 600 15px/1.2 var(--body); }
.kg-ag-new .av-template-save .form-check { display: flex; gap: 12px; align-items: center; margin: 0; }
.kg-ag-new .av-template-save .form-check-input { width: 22px; height: 22px; margin: 0; accent-color: var(--green-btn); }
.kg-ag-new .av-template-save small { color: var(--ink-2); font-size: 13.5px; }
.kg-ag-new .wz__aside .card--preview .card__title { margin: 0; }
@media (max-width: 759px) { .kg-ag-new .wz__step .form__actions .btn { flex: 1 1 auto; } }
.kg-ag-new .kg-jobform .field > select.input { display: block; width: 100%; min-height: 48px; padding: 10px 42px 10px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background-color: #fff; color: var(--ink); font-size: 16px; }
.kg-ag-new .kg-jobform .field > .input { width: 100%; }

/* ---------- Konto- und Serviceseiten des Auftraggebers (Schritt 6b) ---------- */
.kg-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 18px; }
.kg-profile .img_wrapper { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; }
.kg-profile .img_wrapper img { width: 100%; height: 100%; object-fit: cover; }
.kg-profile .name_wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kg-profile .edit_icon, .kg-profile .cancel_profile_name, .kg-profile .save_profile_name { cursor: pointer; color: var(--blue-2); }
.kg-profile .display_name { font: 600 20px/1.2 var(--head); }
.kg-profile .display_email { color: var(--ink-2); font-size: 14.5px; }
.kg-profile .media-upload-btn-wrapper { margin-left: auto; }
.kg-legacy-cards .setting_card { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; }
.kg-legacy-cards .setting_card .card_title { font: 600 17px/1.3 var(--head); margin: 0 0 4px; }
.kg-inv-chips { margin: 0 0 16px; }
.kg-inv-paid { min-width: 260px; display: grid; gap: 10px; }
.kg-flash { margin-bottom: 16px; }

/* ---------- Rechtslinks-Streifen in den angemeldeten Bereichen (Schritt 1b): nur Impressum, Datenschutz, AGB ---------- */
.kg-legal { margin: 0 var(--gut) 18px; }
.kg-legal__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; list-style: none; margin: 0 auto; padding: 2px clamp(16px, 3vw, 44px); max-width: 1800px; border: 1px solid var(--edge); border-radius: var(--r-xl); background: var(--glass); box-shadow: var(--sh-1); }
.kg-legal a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.kg-legal a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1099px) {
  /* Abstand zur Handy-Leiste (.kg-dock klebt unten, 10 px Rand): der Streifen endet darueber */
  .kg-legal { margin: 0 12px 20px; }
}
/* Gewählte Branchen als entfernbare Kapseln (Schritt 5, Mehrfachauswahl); Aussehen wie die Auswahl-Kapseln der Suchleiste */
.kg-chosen { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; padding: 0; list-style: none; }
.kg-chosen__chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 13.5px/1 var(--body); }
.kg-chosen__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-chosen__chip a { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; }
.kg-chosen__chip a:hover { background: rgba(255, 255, 255, .36); }
.kg-chosen__chip a .ic { width: 13px; height: 13px; }

/* ---------- Auftragnehmer Schritt 7e: Leistungen, Terminplan, Auszahlungen, Rückerstattungen (nur Klarglas-Look, Funktion unverändert) ---------- */
.kg-svc .b-filter { grid-template-columns: 1fr; }
.kg-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kg-bulk .input { width: auto; min-width: 160px; }
.kg-svc .custom_checkbox { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; vertical-align: middle; }
.kg-svc .bulk-checkbox-wrapper, .kg-svc .mark-all-checkbox { display: flex; align-items: center; }
.kg-rowact form.d-inline { display: inline; margin: 0; }
.kg-rowact form .cell-link, .kg-rowact button.cell-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.kg-rowact__note { color: var(--ink-2); font-size: 14px; }
.kg-svc .kg-rowact { white-space: normal; }
.kg-svc .kg-rowact .cell-link { display: block; min-height: 0; margin: 0 0 2px; padding: 4px 0; text-align: left; }
.kg-svc .kg-rowact form.d-inline { display: block; }
.kg-svc .kg-rowact .cell-link:last-child, .kg-svc .kg-rowact form:last-child .cell-link { margin-bottom: 0; }
.kg-svc td .pill { white-space: nowrap; }
.kg-svc .pill.kg-pill-btn { border: 0; cursor: pointer; font: inherit; }
.kg-svc .page-tabs .tab { cursor: default; }
.kg-steps { margin-bottom: 14px; }
.kg-steps .entry-card-tab { display: inline-flex; align-items: center; gap: 8px; opacity: .65; }
.kg-steps .entry-card-tab.active { opacity: 1; background: var(--blue); color: #fff; }
.kg-steps .entry-card-tab-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(14, 65, 105, .12); font-weight: 700; font-size: 13px; }
.kg-steps .entry-card-tab.active .entry-card-tab-num { background: rgba(255, 255, 255, .25); }
.kg-svc-form .b + .b { margin-top: 18px; }
.kg-svc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.kg-svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.kg-svc .check--radio > span::before { border-radius: 50%; }
.kg-svc .check--radio > span::after { left: 7px; top: 7px; width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.kg-svc .field--choice { display: grid; gap: 2px; }
.kg-svc .field .select2-container { width: 100% !important; }
.kg-svc .field .select2-container--default .select2-selection--multiple { min-height: 48px; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 4px 8px; }
.kg-svc .field .permalink_label { margin-top: 8px; }
.kg-permalink { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kg-permalink__url { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; padding: 10px 14px; border-radius: 14px; background: rgba(14, 65, 105, .06); font-size: 14.5px; }
.kg-permalink .input { flex: 1 1 220px; }
.kg-svc .field--file .img-wrap img { max-width: 120px; height: auto; border-radius: 12px; }
.kg-svc .field--file .media_upload_form_btn { margin-top: 10px; }
/* Karten der Angebote, Ausschlüsse, FAQ und Zusatzleistungen (auch die per Skript erzeugten, daher über die alten Klassen) */
.kg-svc .single-dashboard-input.card { display: block; margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; box-shadow: none; }
.kg-svc .single-dashboard-input h6 { margin: 0; font: 600 16px/1.3 var(--head); color: var(--ink); }
.kg-svc .single-dashboard-input hr { margin: 10px 0; border: 0; border-top: 1px solid var(--line); opacity: 1; }
.kg-svc .single-dashboard-input p { color: var(--ink-2); font-size: 14.5px; }
.kg-svc .single-dashboard-input .btn.btn-sm { min-height: 34px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--blue); font: 600 13.5px/1 var(--body); }
.kg-svc .single-dashboard-input .btn.btn-sm.btn-danger { color: #a1231b; border-color: rgba(161, 35, 27, .35); }
.kg-svc .single-dashboard-input .btn.btn-sm:hover { background: rgba(14, 65, 105, .06); }
/* Dialoge */
.kg-modal .kg-modal__box { padding: 22px 24px; border: 1px solid var(--edge); border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-2); font-family: var(--body); color: var(--ink); }
.kg-modal .b-head { display: flex; flex-wrap: nowrap; padding: 0; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kg-modal .b-head .b-title { flex: 1 1 auto; min-width: 0; margin: 0; }
.kg-modal .b-head .kg-modal__x { flex: none; width: 44px; padding: 0; }
.kg-modal .kg-modal__x { min-height: 40px; padding: 0 10px; }
.kg-modal .kg-modal__form { padding: 0; }
.kg-modal .kg-modal__sub { margin: 14px 0 6px; font: 600 16px/1.3 var(--head); }
.kg-modal .field { margin-bottom: 14px; }
.kg-modal .form__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 6px 0 0; }
/* Erstattungswege: Felder, die das Skript der Seite je Methode einfügt (alte Klassen), im Look der Formularfelder */
.kg-modal .kg-gwf .custom_input_wrapper { margin: 0 0 14px; }
.kg-modal .kg-gwf .custom-label { display: block; margin: 0 0 6px; font: 600 14px/1.3 var(--body); color: var(--ink); }
.kg-modal .kg-gwf .custom_input { display: block; width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); font: 16px/1.2 var(--body); }
.kg-modal .kg-gwf .custom_input:focus { outline: none; border-color: var(--blue-2); }
.kg-req { color: #a1231b; margin-left: 2px; }
.kg-method-fields { display: grid; gap: 0; }
@media (max-width: 640px) {
  .kg-modal .kg-modal__box { padding: 18px 16px; border-radius: 22px; }
  .kg-svc .single-dashboard-input .d-flex { flex-wrap: wrap; gap: 8px; }
}
/* Auswahlfelder: die Seite macht aus jedem select ein select2-Feld; hier bekommt es die Form des Entwurfs-Eingabefelds */
.kg-svc .select2-container, .kg-modal .select2-container { width: 100% !important; }
.kg-svc .select2-container--default .select2-selection--single, .kg-modal .select2-container--default .select2-selection--single { display: flex; align-items: center; height: 48px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; }
.kg-svc .select2-container--default .select2-selection--single .select2-selection__rendered, .kg-modal .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 24px 0 4px; color: var(--ink); font-size: 16px; line-height: 1.2; }
.kg-svc .select2-container--default .select2-selection--single .select2-selection__arrow, .kg-modal .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 46px; }
.kg-svc .select2-container--default.select2-container--focus .select2-selection, .kg-modal .select2-container--default.select2-container--focus .select2-selection { border-color: var(--blue-2); }
.kg-svc .b-stats .stats { grid-template-columns: minmax(0, 360px); }
/* ---------- Auftraggeber: Nachrichten (Schritt 6e) ----------
   Der Chat von heute (Bausteine und Skript unverändert) im Aufbau des Entwurfs: Gesprächsliste links, Verlauf rechts, runde Eingabe.
   Die gemeinsamen Bausteine (Liste, Kopf mit Stumm/Sperren/Melden, Nachrichten) behalten ihr Markup; ihr Aussehen steht nur hier. */
.kg-ag-chat .b-chat { position: relative; }
.kg-ag-chat .overlay, .kg-ag-chat .responsive-overlay { display: none !important; }
.kg-ag-chat .chat-wrapper { padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; }
.kg-ag-chat .chat-wrapper-flex { display: grid !important; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 14px; min-height: 540px; align-items: stretch; }
.kg-ag-chat .chat-sidebar { display: none !important; }
.kg-ag-chat .chat-wrapper-contact { position: static; width: auto; max-width: none; height: auto; padding: 8px; border-radius: var(--r-lg); align-content: start; }
.kg-ag-chat .chat-wrapper-contact-close { position: static !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; visibility: visible !important; opacity: 1 !important; background: transparent; padding: 0; overflow: visible; transition: none; }
.kg-ag-chat .close-chat { display: none !important; }
.kg-ag-chat .chat-wrapper-contact-list { display: grid; align-content: start; gap: 4px; margin: 0; padding: 0; list-style: none; max-height: 640px; overflow-y: auto; }
.kg-ag-chat .chat-wrapper-contact-list-item { margin: 0; padding: 0; border: 0; border-radius: 18px; cursor: pointer; background: transparent; }
.kg-ag-chat .chat-wrapper-contact-list-item:hover { background: rgba(14, 65, 105, .06); }
.kg-ag-chat .chat-wrapper-contact-list-item.active { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px rgba(11, 92, 150, .35); }
.kg-ag-chat .chat-wrapper-contact-list-flex { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; }
.kg-ag-chat .chat-wrapper-contact-list-thumb { position: relative; width: 44px; height: 44px; margin: 0; }
.kg-ag-chat .chat-wrapper-contact-list-thumb a { display: block; width: 44px; height: 44px; }
.kg-ag-chat .chat-wrapper-contact-list-thumb img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.kg-ag-chat .chat-wrapper-contact-list-thumb .notification-dots { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 2px #fff; opacity: .45; }
.kg-ag-chat .chat-wrapper-contact-list-thumb .notification-dots.active { background: var(--green-ink); opacity: 1; }
.kg-ag-chat .chat-wrapper-contact-list-contents { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; min-width: 0; }
.kg-ag-chat .chat-wrapper-contact-list-contents-flex { min-width: 0; }
.kg-ag-chat .chat-wrapper-contact-list-contents-title { margin: 0; font: 600 15px/1.3 var(--body); }
.kg-ag-chat .chat-wrapper-contact-list-contents-title a { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.kg-ag-chat .chat-muted-symbol { font-size: 13px; }
.kg-ag-chat .chat-wrapper-contact-list-contents .badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #b42318 !important; color: #fff; font: 700 12px/1 var(--body); }
.kg-ag-chat .kg-chat-none { margin: 8px; }

.kg-ag-chat .chat-wrapper-details { display: flex; flex-direction: column; min-width: 0; height: auto; overflow: hidden; border-radius: var(--r-lg); padding: 0; }
.kg-ag-chat .chat-wrapper-details-header { padding: 14px 20px; border-bottom: 1px solid var(--line); margin: 0; }
.kg-ag-chat .chat-wrapper-details-header.d-none { display: none !important; }
.kg-ag-chat .chat-wrapper-details-header a { color: inherit; text-decoration: none; }
.kg-ag-chat .chat-wrapper-details-header-left-author { display: flex; align-items: center; gap: 12px; }
.kg-ag-chat .chat-wrapper-details-header .chat-wrapper-contact-list-thumb, .kg-ag-chat .chat-wrapper-details-header .chat-wrapper-contact-list-thumb img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.kg-ag-chat .chat-wrapper-details-header-title { margin: 0; font: 600 17px/1.3 var(--head); color: var(--ink); }
.kg-ag-chat .chat-mute, .kg-ag-chat .chat-safety { padding: 10px 20px !important; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.kg-ag-chat .chat-mute form, .kg-ag-chat .chat-safety form { margin: 0; }
.kg-ag-chat .chat-mute .btn, .kg-ag-chat .chat-safety .btn, .kg-ag-chat .chat-safety summary { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .8); color: var(--ink); font: 600 13.5px/1 var(--body); cursor: pointer; list-style: none; }
.kg-ag-chat .chat-safety .btn-outline-danger { color: #b42318; }
.kg-ag-chat .chat-mute .btn:hover, .kg-ag-chat .chat-safety .btn:hover, .kg-ag-chat .chat-safety summary:hover { background: var(--blue-soft); }
.kg-ag-chat .chat-mute select, .kg-ag-chat .chat-safety select, .kg-ag-chat .chat-safety textarea, .kg-ag-chat .chat-safety input[type="text"] { max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 400 14px/1.4 var(--body); }
.kg-ag-chat .chat-safety summary::-webkit-details-marker { display: none; }

.kg-ag-chat .chat-wrapper-details-inner { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 320px; max-height: 560px; padding: 20px; overflow-y: auto; background: transparent; }
.kg-ag-chat .kg-chat-empty { margin: auto; color: var(--ink-2); font: 600 15px/1.4 var(--body); text-align: center; }
.kg-ag-chat .pagination { display: flex; justify-content: center; }
.kg-ag-chat .load-more-pagination { min-height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 13.5px/1 var(--body); }
.kg-ag-chat .chat-wrapper-details-inner-chat { display: flex; margin: 0; padding: 0; }
.kg-ag-chat .chat-wrapper-details-inner-chat-flex { display: flex; align-items: flex-end; gap: 8px; max-width: min(82%, 600px); flex: 0 1 auto; min-width: 0; }
.kg-ag-chat .chat-wrapper-details-inner-chat.chat-reply { justify-content: flex-end; }
.kg-ag-chat .chat-wrapper-details-inner-chat.chat-reply .chat-wrapper-details-inner-chat-flex { flex-direction: row-reverse; }
.kg-ag-chat .chat-wrapper-details-inner-chat-thumb { flex: none; width: 30px; height: 30px; }
.kg-ag-chat .chat-wrapper-details-inner-chat-thumb img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--blue-soft); }
.kg-ag-chat .chat-wrapper-details-inner-chat-contents { min-width: 0; padding: 10px 16px; border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: 0 1px 3px rgba(14, 65, 105, .12); color: var(--ink); overflow-wrap: anywhere; flex: 0 1 auto; text-align: left !important; }
.kg-ag-chat .chat-reply .chat-wrapper-details-inner-chat-contents { border-radius: 20px 20px 6px 20px; background: var(--blue); color: #fff; }
.kg-ag-chat .chat-wrapper-details-inner-chat-contents-para { margin: 0; font: 400 15px/1.5 var(--body); display: block; }
.kg-ag-chat .chat-wrapper-details-inner-chat-contents-para img { display: block; max-width: 100%; height: auto; margin-top: 6px; border-radius: 12px; }
.kg-ag-chat .chat-wrapper-details-inner-chat-contents a { color: inherit; text-decoration: underline; }
.kg-ag-chat .chat-wrapper-details-inner-chat-contents-time { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12px; }
.kg-ag-chat .chat-reply .chat-wrapper-details-inner-chat-contents-time { color: #cfe0ee; }

.kg-ag-chat .chat-wrapper-details-footer { padding: 12px; border-top: 1px solid var(--line); margin: 0; }
.kg-ag-chat .chat-wrapper-details-footer.d-none { display: none !important; }
.kg-ag-chat .chat-wrapper-details-footer-form { display: grid; gap: 12px; padding: 0; border: 0; background: transparent; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.kg-ag-chat .chat-wrapper-details-footer-form form { margin: 0; width: 100%; min-width: 0; }
.kg-ag-chat .chat-wrapper-details-footer-form textarea { display: block; width: 100% !important; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line) !important; border-radius: 24px; background: #fff; color: var(--ink); font: 400 15px/1.45 var(--body); resize: vertical; }
.kg-ag-chat .chat-wrapper-details-footer-btn { align-items: center; gap: 12px; justify-content: flex-end !important; flex-wrap: wrap; }
.kg-ag-chat .chat-wrapper-details-footer-btn > .position-relative { position: relative; display: inline-flex; align-items: center; min-height: 40px; }
.kg-ag-chat .dropMedia__file { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font: 600 14px/1 var(--body); }
.kg-ag-chat .dropMedia__file .ic { width: 18px; height: 18px; }
.kg-ag-chat .show_uploaded_file { margin-right: 8px; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.kg-ag-chat .photo-uploaded-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

@media (max-width: 900px) {
  .kg-ag-chat .chat-wrapper-flex { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .kg-ag-chat .chat-wrapper-contact-list { max-height: 230px; }
  .kg-ag-chat .chat-wrapper-details-inner { min-height: 260px; max-height: 60vh; padding: 14px; }
  .kg-ag-chat .chat-wrapper-details-inner-chat-flex { max-width: 94%; }
}
/* Blase des Entwurfs statt der zwei Farbflächen der bisherigen Nachrichten (Text im Span, Absatz und Zeit) */
.kg-ag-chat .chat-wrapper-details-inner-chat-contents-para-span,
.kg-ag-chat .chat-reply .chat-wrapper-details-inner-chat-contents-para-span { display: inline; padding: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; word-break: normal; overflow-wrap: anywhere; }
.kg-ag-chat .chat-wrapper-details-inner-chat-contents.bg-danger { background-color: #fdeceb !important; color: var(--ink) !important; }
.kg-ag-chat .chat-wrapper-details-inner-chat:not(:last-child) { margin-bottom: 0; }
.kg-ag-chat .chat-wrapper-details-inner-chat.chat-reply .chat-wrapper-details-inner-chat-contents-time { text-align: left; }
/* Eingabe wie im Entwurf: breites rundes Feld, daneben Anhängen und Senden (auf dem Handy untereinander) */
@media (max-width: 700px) {
  .kg-ag-chat .chat-wrapper-details-footer-form { grid-template-columns: minmax(0, 1fr); }
  .kg-ag-chat .chat-wrapper-details-footer-btn { justify-content: space-between !important; }
}
.kg-ag-chat .chat-wrapper-details-footer-form.massege-box-wraper { display: grid !important; width: 100%; }

/* Uebersicht Auftragnehmer (Schritt 7c): Kennzahlen des Monats mit Erlaeuterung, Termine als Leiste mit Links */
.kg-strip__sub { display: block; margin-top: 1px; color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.kg-rail__item b a { color: inherit; text-decoration: none; }
.kg-rail__item b a:hover { text-decoration: underline; }
.b-match .kg-jl, .b-offers .list { margin-top: 2px; }


/* ---------- Schritt 6d: Auftraggeber-Restseiten (Adresse hinzufuegen, Rechnungsadresse, innere Karten der Einstellungen) ---------- */
.kg-ag-adr-form .kg-adr-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 18px; }
.kg-ag-adr-form .kg-adr-top .field--choice { flex: 1 1 320px; max-width: 520px; }
.kg-ag-adr-form .kg-adr-top .choice { grid-template-columns: repeat(2, 1fr); }
.kg-ag-adr-form .kg-adr-map { margin: 0; }
.kg-ag-adr-form .form > .kg-full, .kg-ag-bill .form > .kg-full { flex: 1 1 100%; }
/* Adresse bearbeiten (Kartenmodus): die Karte fuellt die Formularbreite, weisse Karte mit Radius wie die uebrigen Klarglas-Karten, Suchfeld in voller Breite. */
.kg-ag-adr-form .form > .kg-map { flex: 1 1 100%; min-width: 0; }
.kg-ag-adr-form .kg-map__frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #fff; }
.kg-ag-adr-form .kg-map__canvas { height: 480px; width: 100%; }
.kg-ag-adr-form #pac-input { width: 100%; max-width: 420px; margin: 10px 0 0 10px; border: 1.5px solid var(--line-2); padding: 10px 16px; font-size: 16px; }
.kg-ag-bill .b-form { margin-bottom: 18px; }
.kg-ag-bill .form > .field--select, .kg-ag-adr-form .form > .field--select { flex: 1 1 max(min(250px, 100%), 30%); }
.kg-ag-konto .page-body > .b-head { margin: 28px 0 4px; }
.kg-card { margin-top: 14px; }
.kg-card .b-note { margin: 4px 0 12px; }
.kg-card__note { margin: 0 0 14px; }
.kg-card__aside { margin: 12px 0 0; }
.kg-card .list { margin: 12px 0; }
.kg-push .av-push-state { margin: 0 0 12px; font-weight: 600; }
.kg-push .av-push-msg { margin: 10px 0 0; font-size: 14.5px; }
.kg-push .av-push-msg.is-ok { color: #1a6b3a; }
.kg-push .av-push-msg.is-error { color: #b42318; }
.kg-card .table .text-nowrap { white-space: nowrap; }
/* select2 (global script of the client area) on the selects state / city / area / language: drawn like the draft input */
.b-form .select2-container { width: 100% !important; }
.b-form .select2-container .select2-selection--single { height: 48px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; }
.b-form .select2-container .select2-selection--single .select2-selection__rendered { line-height: 45px; padding: 0 40px 0 16px; color: var(--ink); font-size: 16px; }
.b-form .select2-container .select2-selection--single .select2-selection__arrow { height: 45px; right: 10px; }
.b-form .select2-container--focus .select2-selection--single, .b-form .select2-container--open .select2-selection--single { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(11, 92, 150, .16); }

/* ---------- Admin-Bereich (Schritt 8) ---------- */
.kg-adm .chip .count { margin-left: 8px; }
.kg-adm-decide { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 240px; margin: 0; }
.kg-adm-decide details { width: 100%; }
.kg-adm-decide summary { display: inline-flex; list-style: none; cursor: pointer; }
.kg-adm-decide summary::-webkit-details-marker { display: none; }
.kg-adm-decide details[open] summary { margin-bottom: 8px; }
.kg-adm-decide textarea { margin-bottom: 8px; }
.kg-adm-dev .av-panel { background: rgba(255, 255, 255, .72); }

/* ---------- Admin: Nutzerliste (Schritt 8d) ---------- */
.kg-adm-users .filter .btn { align-self: center; }
.kg-useract { white-space: normal; }
.kg-useract > .cell-link, .kg-useract__form { display: inline-flex; margin: 0 14px 6px 0; vertical-align: middle; }
.kg-useract__form .cell-link { cursor: pointer; font: inherit; font-weight: 600; }
.kg-rowmenu { display: inline-block; vertical-align: middle; margin: 0 0 6px; }
.kg-rowmenu > summary { list-style: none; cursor: pointer; min-height: 40px; padding: 4px 14px; font-size: 14px; }
.kg-rowmenu > summary::-webkit-details-marker { display: none; }
.kg-rowmenu[open] > summary { background: rgba(14, 65, 105, .1); }
.kg-rowmenu__pop { position: fixed; z-index: 60; display: grid; gap: 2px; min-width: 230px; max-width: calc(100vw - 24px); padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .96); border: 1px solid var(--edge); box-shadow: var(--sh-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: kg-drop .16s ease-out; }
.kg-rowmenu__form { display: contents; }
.kg-rowmenu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: 600 14.5px/1.2 var(--body); text-align: left; cursor: pointer; }
.kg-rowmenu__item:hover, .kg-rowmenu__item:focus-visible { background: rgba(14, 65, 105, .08); }
.kg-rowmenu__item .ic { flex: none; width: 17px; height: 17px; color: var(--blue-2); }
.kg-rowmenu__item--warn .ic { color: #8a5a00; }
.kg-rowmenu__item--danger, .kg-rowmenu__item--danger .ic { color: #a02020; }
.kg-adm-users .pill { white-space: nowrap; }

/* ---------- Admin: Fenster der Nutzerliste (Schritt 8f) ---------- */
/* Das Bootstrap-Gerüst (modal / modal-dialog / modal-content) bleibt, weil user-js die Fenster mit .modal('hide') schließt; Aussehen wie die Glaskarten des Entwurfs. */
.kg-dlg-modal { z-index: 1080; }
.modal-backdrop.show { background: rgba(14, 65, 105, .38); opacity: 1; }
.kg-dlg-modal .modal-dialog { max-width: 560px; margin: 16px auto; padding: 0 12px; }
.kg-dlg-modal .modal-dialog.modal-xl { max-width: 1040px; }
.kg-dlg { border: 1px solid var(--edge); border-radius: var(--r-xl); background: rgba(255, 255, 255, .96); box-shadow: var(--sh-2); color: var(--ink); overflow: hidden; }
.kg-dlg__form { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.kg-dlg__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px 22px; border-bottom: 1px solid var(--line); }
.kg-dlg__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.kg-dlg__ic .ic { width: 20px; height: 20px; }
.kg-dlg__title { flex: 1 1 auto; margin: 0; font: 600 20px/1.2 var(--head); color: var(--ink); }
.kg-dlg__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .84); color: var(--blue); cursor: pointer; }
.kg-dlg__x:hover { background: #fff; border-color: var(--blue-2); }
.kg-dlg__x .ic { width: 18px; height: 18px; }
.kg-dlg__body { padding: 20px 22px; }
.kg-dlg .form > .field { flex: 1 1 100%; }
.kg-dlg .form .email_send_message { flex: 1 1 100%; margin: 0; font-size: 14px; }
.kg-dlg .field .input { width: 100%; }
.kg-dlg .field__hint:empty { display: none; }
.kg-dlg__pw { position: relative; }
.kg-dlg__pw .input { padding-right: 54px; }
.kg-dlg__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--blue-2); cursor: pointer; }
.kg-dlg__eye:hover { background: var(--blue-faint); }
.kg-dlg__eye .ic { width: 20px; height: 20px; }
.kg-dlg__note { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 100%; margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--blue-faint); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.kg-dlg__note .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--blue-2); }
.kg-dlg__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 0; padding: 14px 22px 18px; border-top: 1px solid var(--line); background: rgba(238, 245, 251, .6); }
.kg-dlg__foot > * { margin: 0; }
.kg-dlg__warn { color: #8a5a00; border-color: rgba(138, 90, 0, .4); }
/* Identitätsprüfung: Inhalt kommt per Ajax aus dem bisherigen Vergleichsbaustein; hier nur gestaltet (zwei Karten, Beschriftungen, Dokumentbilder) */
.kg-dlg__compare .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.kg-dlg__compare .row > * { width: auto; max-width: none; padding: 0; margin: 0; }
.kg-dlg__compare .userProfileDetails { height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .8); }
.kg-dlg__compare .userProfileDetails__title { margin: 0; font: 600 17px/1.25 var(--head); color: var(--ink); }
.kg-dlg__compare .userProfile__details { margin-top: 12px; }
.kg-dlg__compare .userDetails__wrapper__item { margin: 0 0 8px; color: var(--ink); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.kg-dlg__compare .userDetails__wrapper__item strong { color: var(--ink-2); font-weight: 600; }
.kg-dlg__compare .userProfile__details__thumb { flex-wrap: wrap; }
.kg-dlg__compare .userProfile__details__thumb img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.kg-dlg__compare .document-preview img { max-width: 100%; max-height: 220px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.kg-dlg__compare .userProfileDetails__noInfo__title { margin: 0; color: var(--ink-2); font: 600 15px/1.4 var(--body); }
@media (max-width: 760px) {
    .kg-dlg-modal .modal-dialog { margin: 8px auto; padding: 0 8px; }
    .kg-dlg__head { padding: 14px 12px 12px 16px; }
    .kg-dlg__title { font-size: 18px; }
    .kg-dlg__body { padding: 16px; }
    .kg-dlg__foot { padding: 12px 16px 16px; }
    .kg-dlg__foot .btn { flex: 1 1 100%; justify-content: center; }
    .kg-dlg__compare .row { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Admin-Bereich, Folgeseiten (Schritt 8b) ---------- */
.kg-adm .kg-adm-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.kg-adm .kg-adm-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.kg-adm .kg-adm-tools .bulk-delete-wrapper { margin: 0; }
.kg-adm .kg-adm-tools .btn-wrapper { margin: 0; }
.kg-adm .kg-rowact { white-space: nowrap; }
.kg-adm .kg-rowact > * { vertical-align: middle; }
.kg-adm .kg-adm-pagination { display: flex; justify-content: flex-end; margin-top: 16px; }
.kg-adm details.kg-adm-decide { min-width: 260px; }
.kg-adm .form .field { margin-bottom: 12px; }

/* ---------- Admin-Bereich, Detailseite Support-Ticket (Schritt 8c) ---------- */
.kg-tk .chat { display: block; min-height: 0; }
.kg-tk .chat__msgs { max-height: 460px; overflow-y: auto; margin: 0; }
.kg-tk .msg { max-width: min(88%, 620px); }
.kg-tk .msg p { overflow-wrap: anywhere; }
.kg-tk .kg-msg__who { display: block; margin-bottom: 2px; font: 600 13.5px/1.3 var(--body); }
.kg-tk .kg-msg__file { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--blue); }
.kg-tk .msg--me .kg-msg__file { color: #fff; }
.kg-tk .kg-msg__file .ic { width: 16px; height: 16px; }
.kg-tk .msg p, .kg-tk .msg .kg-msg__who { color: var(--ink); }
.kg-tk .msg--me p, .kg-tk .msg--me .kg-msg__who { color: #fff; }
.kg-tk .msg time { color: var(--ink-2); }
.kg-tk .msg--me time { color: #cfe0ee; }
.kg-tk .facts dd { color: var(--ink); }
.kg-tk .prose p, .kg-tk .timeline__item b { color: var(--ink); }
.kg-tk .facts dt { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
@media (max-width: 600px) { .kg-tk .facts__row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.kg-tk .check span { color: var(--ink); }
.kg-tk .field__label { color: var(--ink); }
.kg-tk .field__hint { color: var(--ink-2); }
.kg-tk .kg-tk-take-form { display: none; }
.kg-tk .b-form--aside .form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kg-tk .field--file .input { padding: 12px 16px; }
.kg-tk .kg-tk-take { margin-top: 10px; }
.kg-tk .page-actions .btn_5, .kg-tk .page-actions .cmnBtn { display: inline-flex; align-items: center; gap: 6px; }
.kg-tk .facts .cell-sub { display: block; }
.kg-tk .b-form--aside .form { gap: 10px; }
.kg-tk .b-timeline { margin-top: 22px; }

/* ---------- Admin-Bereich, weitere Detailseiten: Abbruch-Fall, Auftrag, Verlauf (Schritt 8e) ---------- */
.kg-cc .kg-cc-hint, .kg-cc .kg-cc-statutory { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.kg-cc .kg-cc-hint strong { color: var(--ink); }
.kg-cc .b-form .form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kg-cc .field__label { color: var(--ink); }
.kg-cc .prose p, .kg-ord .prose li, .kg-cc .timeline__item b, .kg-ord .timeline__item b { color: var(--ink); overflow-wrap: anywhere; }
.kg-cc .facts dt, .kg-ord .facts dt { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.kg-cc .facts dd, .kg-ord .facts dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.kg-cc .facts .cell-sub, .kg-ord .facts .cell-sub { display: block; }
.kg-cc .b-timeline, .kg-ord .b-timeline { margin-top: 22px; }
.kg-cc .page-actions .btn, .kg-ord .page-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.kg-ord .page-lead a { color: var(--blue); font-weight: 600; }
.kg-ord .table th[scope="row"] { width: 36%; font-weight: 600; color: var(--ink); }
.kg-ord .b-table + .b-table, .kg-ord .kg-stack > .b-note { margin-top: 0; }
.kg-history .b-head { align-items: center; justify-content: space-between; }
.kg-history__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-history__acts .btn { display: inline-flex; align-items: center; gap: 6px; }
.kg-history .timeline__item p { margin: 2px 0 0; overflow-wrap: anywhere; }
.kg-history .pill { margin-left: 6px; vertical-align: middle; }
.kg-history__dl { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr); gap: 2px 12px; margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.kg-history__dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 600px) { .kg-cc .facts__row, .kg-ord .facts__row { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kg-history__dl { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Auftragsdetail (Auftraggeber und Auftragnehmer, Entwurf bestaetigt 12.11.2026) ---------- */
/* In den Bereichen kommt der Seitenrand vom Inhaltsbereich (nicht doppelt wie bei den Gast-Seiten) */
.kg-area-client .kg-detail, .kg-area-provider .kg-detail { width: auto; }
.notice__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-ag-detail .page-actions form, .kg-an-detail .page-actions form { margin: 0; }
.kg-ag-detail .kg-stack--tight, .kg-an-detail .kg-stack--tight { display: grid; gap: 10px; }
.kg-ag-detail .b-note, .kg-an-detail .b-note { margin: 0 6px; }
.kg-ag-detail .facts dd .pill + .pill, .kg-an-detail .facts dd .pill + .pill { margin-left: 6px; }
.kg-team .kg-team__form { margin-top: 14px; }
.kg-team .kg-rowact form { display: inline; margin: 0; }
.kg-team .kg-rowact .cell-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.kg-ag-detail .star-rating .star, .kg-dlg .star-rating .star { font-size: 24px; margin-right: 4px; }
.kg-ag-detail .kg-legacy .cmn-btn, .kg-an-detail .kg-legacy .cmn-btn { border-radius: 999px; }

/* ---------- Nachrichten-Seite /nachrichten (Auftraggeber und Auftragnehmer) nach dem Entwurf #ag-nachrichten / #an-nachrichten ----------
   Das Skript av-chat.js und das Markup (nx-*, av-chat*) bleiben unveraendert; hier nur das Aussehen: eine Karte mit Liste links und Verlauf rechts,
   gruene Eigenblase, runde Filter und Reiter. Auf dem Handy erst die Liste, nach der Wahl nur der Verlauf (Regeln dafuer stehen in av-chat.css). */
.kg-chat-page .kg-chat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-chat-page .kg-chat-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px/1 var(--body); text-decoration: none; }
.kg-chat-page .kg-chat-tabs a[aria-current="page"] { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.kg-chat-page .kg-chat-tabs a:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.kg-chat-page .av-chat-count { color: inherit; opacity: .8; font-variant-numeric: tabular-nums; }
.kg-chat-page .nx { margin-top: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 3px rgba(14, 65, 105, .08); }
.kg-chat-page .nx-side { border-right: 1px solid var(--line); }
.kg-chat-page .nx-search { gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.kg-chat-page .nx-search input { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 400 15px/1.2 var(--body); }
.kg-chat-page .nx-search input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(11, 92, 150, .2); }
.kg-chat-page .nx-chip { min-height: 36px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 600 13.5px/1 var(--body); }
.kg-chat-page .nx-chip[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.kg-chat-page .nx-msgsearch { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.kg-chat-page .nx-msgsearch input[type="search"] { height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 400 15px/1.2 var(--body); }
.kg-chat-page .nx-msgsearch input[type="search"]:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(11, 92, 150, .2); }
.kg-chat-page .nx-hits { border: 1px solid var(--line); border-radius: var(--r-sm); }
.kg-chat-page .nx-hits > li + li { border-top: 1px solid var(--line); }
.kg-chat-page .nx-hit { color: var(--ink); }
.kg-chat-page .nx-hit:hover { background: var(--blue-faint); }
.kg-chat-page .nx-hit:focus-visible { outline: 3px solid var(--blue-2); outline-offset: -3px; }
.kg-chat-page .nx-hit small, .kg-chat-page .nx-hit span { color: var(--ink-2); }
.kg-chat-page .nx-list > li + li { border-top: 1px solid var(--line); }
.kg-chat-page .nx-item { grid-template-columns: 40px minmax(0, 1fr) 64px; gap: 3px 12px; min-height: 72px; padding: 8px 14px; color: var(--ink); }
.kg-chat-page .nx-item:hover { background: var(--blue-faint); }
.kg-chat-page .nx-item[aria-current="true"] { background: var(--green-soft); box-shadow: none; }
.kg-chat-page .nx-item:focus-visible, .kg-chat-page .nx-btn:focus-visible, .kg-chat-page .nx-msgs:focus-visible { outline: 3px solid var(--blue-2); outline-offset: -3px; }
.kg-chat-page .nx-avatar { background: var(--blue-soft); color: var(--blue); font: 700 15px/1 var(--head); }
.kg-chat-page .nx-item b { font: 600 14px/20px var(--body); }
.kg-chat-page .nx-item.is-unread b { font-weight: 800; }
.kg-chat-page .nx-item small { color: var(--ink-2); font-size: 12.5px; }
.kg-chat-page .nx-time { color: var(--ink-2); }
.kg-chat-page .nx-dot { background: var(--green); }
.kg-chat-page .nx-none, .kg-chat-page .nx-empty { color: var(--ink-2); }
.kg-chat-page .nx-empty strong { color: var(--ink); }
.kg-chat-page .nx-headbar { min-height: 64px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kg-chat-page .nx-headbar b { color: var(--ink); font: 600 15px/22px var(--body); }
.kg-chat-page .nx-headbar small { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.kg-chat-page .nx-back { color: var(--blue); }
.kg-chat-page .nx-msgs { gap: 10px; padding: 16px; background: var(--blue-faint); }
.kg-chat-page .nx-msg { border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: #fff; color: var(--ink); font: 400 14.5px/1.5 var(--body); }
.kg-chat-page .nx-msg time { color: var(--ink-2); }
.kg-chat-page .nx-msg.is-me { border-color: rgba(23, 136, 59, .35); border-radius: 14px 14px 4px 14px; background: var(--green-soft); color: var(--ink); }
.kg-chat-page .nx-msg.is-me time { color: var(--ink-2); }
.kg-chat-page .nx-msg .nx-state { color: var(--ink-2); }
.kg-chat-page .nx-msg .nx-state.is-read { color: var(--green-ink, #11692e); }
.kg-chat-page .nx-sys { color: var(--ink-2); }
.kg-chat-page .nx-form { padding: 12px 16px; border-top: 1px solid var(--line); }
.kg-chat-page .nx-form textarea { border: 1.5px solid var(--line-2); border-radius: 16px; color: var(--ink); font: 400 14.5px/1.4 var(--body); }
.kg-chat-page .nx-form textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(11, 92, 150, .2); }
.kg-chat-page .nx-btn { border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 600 14px/1 var(--body); }
.kg-chat-page .nx-btn--primary { border-color: var(--green-btn); background: var(--green-btn); color: #fff; }
.kg-chat-page .nx-btn--primary:disabled { opacity: .5; }
.kg-chat-page .nx-error { border-top: 1px solid var(--line); background: #fdeceb; color: #8a1c14; }
.kg-chat-page .nx-emojis { border: 1px solid var(--line); border-radius: var(--r-sm); }
.kg-chat-page .kg-chat-note { margin-top: 12px; }
@media (max-width: 760px) {
  .kg-chat-page .nx { border-radius: var(--r-md); }
  .kg-chat-page .nx-side { border-right: 0; }
  .kg-chat-page .nx-msgs { padding: 12px; }
  .kg-chat-page .nx-msg { max-width: 88%; }
  .kg-chat-page .nx-form { padding: 10px 12px; }
}
/* ---------- Auftragnehmer-Kalender und Plantafel (Entwurf an-kalender / an-plantafel) ---------- */
.kg-cal-bar { display: grid; gap: 12px; }
.kg-cal-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.kg-cal-bar__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.kg-cal-bar__title .b-title { margin: 0; }
.kg-cal-bar__sum { color: var(--ink-2); font-size: 14px; }
.kg-cal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-cal-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass, #fff); }
.kg-cal-tab { padding: 8px 16px; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.kg-cal-tab.is-on { background: var(--blue); color: #fff; }
.kg-cal-note { margin: 4px 6px; color: var(--ink-2); font-size: 14px; }
.kg-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-lg, 16px); overflow: hidden; background: var(--glass, #fff); }
.kg-cal-wd { padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(14,65,105,.05); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kg-cal-day { min-width: 0; min-height: 118px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kg-cal-grid.is-week .kg-cal-day { min-height: 280px; }
.kg-cal-day.is-out { background: rgba(14,65,105,.03); color: var(--ink-2); }
.kg-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--blue); }
.kg-cal-day__num { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; }
.kg-cal-hol { margin-top: 4px; color: #8a5a00; font-size: 12.5px; }
.kg-cal-ev { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 8px; border-left: 4px solid var(--blue); background: rgba(14,65,105,.07); color: var(--ink); font-size: 12.5px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.kg-cal-ev--warn { border-left-color: #c58a12; background: #fff7e3; }
.kg-cal-ev--ok { border-left-color: var(--green); background: var(--green-soft); }
.kg-cal-ev--done { border-left-color: #8aa195; background: #f1f3f0; }
.kg-cal-ev__t { display: block; font-weight: 700; }
.kg-cal-ev__m, .kg-cal-ev__w { display: block; color: var(--ink-2); }
.kg-cal-list { display: none; }
.kg-cal-list__day { padding: 10px 0; border-top: 1px solid var(--line); }
.kg-cal-list__day h3 { margin: 0 0 4px; font-size: 16px; }
.kg-cal-empty { margin: 8px 0; color: var(--ink-2); }
.kg-cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 4px 0; color: var(--ink-2); font-size: 13px; }
.kg-cal-key::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -2px; border: 1px solid var(--line); background: var(--k, #fff); }
.kg-cal-key--warn { --k: #c58a12; } .kg-cal-key--ok { --k: var(--green); } .kg-cal-key--done { --k: #8aa195; }
.kg-cal-key--avail { --k: #eaf6ee; } .kg-cal-key--off { --k: repeating-linear-gradient(135deg, #fafbf8 0 3px, #e1e5df 3px 6px); }
.kg-cal-key--conflict { --k: #fff; } .kg-cal-key--conflict::before { box-shadow: inset 0 0 0 2px #b4471f; }
.kg-cal-key--several { --k: #fff; } .kg-cal-key--several::before { box-shadow: inset 0 0 0 2px #c58a12; }
.kg-cal-swipe { display: none; margin: 0 0 8px; color: var(--ink-2); font-size: 13px; }
.kg-board-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); background: var(--glass, #fff); -webkit-overflow-scrolling: touch; }
.kg-board-table { width: 100%; min-width: 1040px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.kg-board-table th, .kg-board-table td { padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.kg-board-table tr > *:last-child { border-right: 0; } .kg-board-table tbody tr:last-child > * { border-bottom: 0; }
.kg-board-table thead th { background: rgba(14,65,105,.05); font-weight: 700; }
.kg-board-table thead th.today { box-shadow: inset 0 -3px 0 var(--blue); }
.kg-board-table .av { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 500; }
.kg-board-table .who { width: 170px; position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 700; overflow-wrap: anywhere; }
.kg-board-table thead .who { background: #eef2f6; z-index: 2; }
.kg-board-table .who small { display: block; color: var(--ink-2); font-weight: 500; }
.kg-board-table td { height: 64px; }
.kg-board-table td.avail { background: #f1f8f4; }
.kg-board-table td.off { background: repeating-linear-gradient(135deg, #fafbf8 0 6px, #f1f3ef 6px 12px); }
.kg-board-table td.absent { background: #eef0f6; }
.kg-board-table td.conflict { box-shadow: inset 0 0 0 2px #b4471f; }
.kg-board-table td.several { box-shadow: inset 0 0 0 2px #c58a12; }
.kg-board-table tr.unassigned .who, .kg-board-table tr.unassigned td { background: #fffaf0; }
.kg-board-table .flag { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.kg-board-table .flag.absent { background: #e3e7f3; color: #2f3a63; }
.kg-board-table .flag.conflict { background: #fbe7df; color: #8a3415; }
.kg-board-table .flag.several { background: #fff3d6; color: #7a5508; }
.kg-board-table .kg-cal-ev:first-child { margin-top: 0; }
.kg-cal-assign { margin-top: 4px; font-size: 12px; }
.kg-cal-assign summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.kg-cal-assign form { display: grid; gap: 6px; margin-top: 6px; }
.kg-cal-abs { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kg-cal-abs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.kg-cal-abs form { margin: 0; }
@media (max-width: 860px) { .kg-cal-grid { display: none; } .kg-cal-list { display: block; } .kg-cal-tabs { width: 100%; } .kg-cal-tab { flex: 1; text-align: center; padding: 8px 6px; } }
@media (max-width: 1140px) { .kg-cal-swipe { display: block; } }
/* Sibs-Zeile: negative Raender (style.css, mobil) ragten 12 px ueber den Rand; Nav schneidet seitlich ab (clip, kein Scrollcontainer). */
@media (max-width: 1099px) { .kg-sibs { overflow-x: clip; } }

/* ---------- Admin-Bereich, Meldungen, System, Protokoll, Funktionen (Schritt 8g) ---------- */
.kg-adm td .kg-adm-decide { min-width: 0; margin: 0 0 6px; }
.kg-adm .kg-adm-objection { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line, rgba(0, 0, 0, .12)); }
.kg-adm .kg-adm-toplist { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.kg-adm .kg-adm-toplist li { display: flex; justify-content: space-between; gap: 12px; }
.kg-adm .check { display: inline-flex; align-items: center; gap: 8px; align-self: center; }
.kg-adm .b-chart .av-panel + .av-panel { margin-top: 16px; }
/* Rechnungsportal Statistik (Klarglas): Kacheln, Balken, Tabellen der Seite billing.stats. */
.kg-stat .ks-filter { display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end }
.kg-stat .ks-filter label { display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:650 }
.kg-stat .ks-filter select, .kg-stat .ks-filter input { font:inherit;padding:8px 10px;border:1px solid var(--line,#d6dde3);border-radius:9px;background:#fff;min-width:0 }
.kg-stat .ks-filter select[multiple] { min-width:220px;max-width:100% }
.kg-stat .ks-kpis { display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;list-style:none;margin:16px 0 0;padding:0 }
.kg-stat .ks-kpi { background:#fff;border:1px solid var(--line,#d6dde3);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:3px;min-width:0 }
.kg-stat .ks-kpi b { font-size:24px;line-height:1.15;font-variant-numeric:tabular-nums }
.kg-stat .ks-kpi span { font-size:13px;color:var(--muted,#5b6770) }
.kg-stat .ks-kpi small { font-size:12.5px;color:var(--muted,#5b6770) }
.kg-stat .ks-bars { display:flex;align-items:flex-end;gap:6px;height:190px;margin-top:14px }
.kg-stat .ks-bar { flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;height:100%;align-items:center }
.kg-stat .ks-bar i { display:block;width:100%;max-width:34px;background:var(--green,#17883b);border-radius:5px 5px 0 0;min-height:2px }
.kg-stat .ks-bar.is-now i { background:#1f3a5f }
.kg-stat .ks-bar i.neg { background:#b3261e }
.kg-stat .ks-bar-v { font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted,#5b6770);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100% }
.kg-stat .ks-bar-l { display:flex;gap:6px;margin-top:6px }
.kg-stat .ks-bar-l span { flex:1 1 0;text-align:center;font-size:12px;color:var(--muted,#5b6770);min-width:0 }
.kg-stat .ks-two { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,420px),1fr)); gap: 18px; margin-top: 18px; }
.kg-stat .ks-two>* { min-width:0 }
.kg-stat .ks-hbar { display:grid;grid-template-columns:minmax(110px,170px) minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line,#e3e8ec);font-size:14px }
.kg-stat .ks-hbar:first-child { border-top:0 }
.kg-stat .ks-hbar .n { overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.kg-stat .ks-hbar small { display:block;color:var(--muted,#5b6770);font-size:12px }
.kg-stat .ks-track { height:12px;background:#eef2f5;border-radius:7px;overflow:hidden }
.kg-stat .ks-track span { display:block;height:100%;background:var(--green,#17883b);border-radius:7px }
.kg-stat .ks-track span.ext { background:#1f3a5f }
.kg-stat .ks-age { display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:12px 0 }
.kg-stat .ks-age div { border:1px solid var(--line,#d6dde3);border-radius:11px;padding:9px 11px;background:#f8fafb }
.kg-stat .ks-age dt { font-size:12px;font-weight:750;color:var(--muted,#5b6770);text-transform:uppercase;letter-spacing:.03em }
.kg-stat .ks-age dd { margin:3px 0 0;font-weight:800;font-variant-numeric:tabular-nums }
.kg-stat .ks-age .bad { border-color:#e0a8a8;background:#fff0f0 }
.kg-stat .ks-num { text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap }
.kg-stat .ks-late { color:#b3261e;font-weight:700 }
.kg-stat .ks-note { font-size:13px;color:var(--muted,#5b6770);margin:8px 0 0 }
.kg-stat .ks-sub { display:block;font-size:12px;color:var(--muted,#5b6770) }
.kg-stat .ks-table { width:100%;min-width:0;border-collapse:collapse }
.kg-stat .ks-table th, .kg-stat .ks-table td { padding:9px 10px;border-top:1px solid var(--line,#e3e8ec);text-align:left;vertical-align:top;font-size:14px }
.kg-stat .ks-table th { font-size:12px;background:transparent }
.kg-stat .ks-table tfoot td { font-weight:800 }
.kg-stat .ks-scroll { overflow-x:auto }
.kg-stat .ks-stack { display:flex;gap:2px;height:20px;border-radius:6px;overflow:hidden;background:#eef2f5;margin:8px 0 }
.kg-stat .ks-stack span { display:block;height:100% }
.kg-stat .ks-legend { list-style:none;margin:6px 0 0;padding:0;font-size:13.5px }
.kg-stat .ks-legend li { display:flex;gap:8px;align-items:center;padding:3px 0 }
.kg-stat .ks-legend b { margin-left:auto;font-variant-numeric:tabular-nums }
.kg-stat .ks-sw { width:12px;height:12px;border-radius:3px;flex:none;display:inline-block }

    @media (max-width:720px) {
.kg-stat .ks-hbar {grid-template-columns:minmax(0,1fr) auto}
.kg-stat .ks-hbar .ks-track {grid-column:1/-1;grid-row:2}
.kg-stat .ks-filter label, .kg-stat .ks-filter select[multiple] {width:100%}
.kg-stat .ks-bar-l {gap:2px}
.kg-stat .ks-bar-l span {font-size:12px;overflow:hidden;text-overflow:clip}
}

.kg-stat .ks-kpi, .kg-stat .b { background: rgba(255,255,255,.72); border: 1px solid var(--line, #d6dde3); border-radius: var(--r-lg, 18px); }
.kg-stat .b { padding: 20px; margin-top: 18px; }
.kg-stat .ks-two > .b { margin-top: 0; }
.kg-stat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Klarglas Admin Einstellungen (Design, Navigation, Admins): Formular und Knoepfe in Karten/Tabellen. */
.kg-adm .b-cards .card .form { margin-top: 12px; }
.kg-adm .b-cards .card__actions { margin-top: 8px; }
.kg-adm .b-list ul { margin: 0; padding-left: 20px; }
.kg-adm .kg-rowact .cmnBtn, .kg-adm .kg-rowact form { display: inline-block; margin-right: 6px; }
/* ---------- Auftragnehmer: Zeiten und Nachtraege (Eigenviews) ---------- */
.kg-times .clock__actions form, .kg-changes .kg-change .form__actions { margin: 0; }
.kg-times .clock__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-changes .kg-change { padding: 14px 0; border-top: 1px solid var(--line, rgba(0,0,0,.08)); display: grid; gap: 10px; }
.kg-changes .kg-change:first-of-type { border-top: 0; }
.kg-changes .kg-change__cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kg-changes .kg-change__cmp > div { border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; }
.kg-changes .kg-change__cmp h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.kg-changes .kg-change__cmp p { margin: 4px 0 0; }
.kg-changes .kg-changed { box-shadow: inset 0 0 0 2px #e6b84a; border-radius: 4px; }
.kg-changes .kg-change__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.kg-changes .kg-change__more summary { cursor: pointer; font-weight: 600; }
.kg-changes .kg-change__more .form, .kg-changes .kg-change__more .timeline { margin-top: 10px; }
.kg-changes .field--choice { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 640px) { .kg-changes .kg-change__cmp { grid-template-columns: minmax(0, 1fr); } }
/* Rechnungsportal des Auftragnehmers (Eigenviews): Reiter umbrechen, Kartenaktionen mit eigenen Formularen, Hinweise und Bild. */
.kg-an-billing .page-tabs { flex-wrap: wrap; }
.kg-an-billing .card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kg-an-billing .card__actions form { margin: 0; }
.kg-an-billing .card__badges:empty { display: none; }
.kg-an-billing .b-note + .b-note { margin-top: 6px; }
.kg-an-billing .b-filter .chips { margin-bottom: 12px; }
.kg-an-billing .logo-preview { border: 1px solid var(--line, #d9e0dc); border-radius: 8px; padding: 6px; background: #fff; }

/* Rauchtest 2 (390 px): Einstellungs-Eintrag im Admin: Kopfzeile darf nicht breiter als der Bildschirm werden (Auswahl-Feld, Titel und Markierung brechen um). */
.kg-live-admin .av-set-entry-head > * { min-width: 0; max-width: 100%; }

/* ===== Barrierefreiheit Klarglas-CSS (barrierefreiheit-6): Fokus-Sichtbarkeit, Hochkontrast, reduzierte Bewegung =====
   Eigener, abgesetzter Block am Dateiende. Nur zusätzliche Eigenschaften, keine vorhandenen Werte und keine Farbtokens geändert;
   sichtbar wird davon nur etwas bei Tastaturfokus, im Windows-Hochkontrast und bei „Bewegung reduzieren“. */

/* 1. Eingabefelder, deren Fokus bisher nur über Rahmenfarbe und halbtransparenten Schatten gezeigt wurde (outline:none):
   zusätzlich ein durchgehender Ring (mindestens 3:1 gegen den Hintergrund). Im Hochkontrastmodus verschwindet der Schatten,
   der Ring bleibt (Systemfarbe Highlight). */
.input:focus,
.kg-offer .custom-input:focus, .kg-offer .custom-select:focus,
.kg-ag-new .field--legacy .custom-input:focus, .kg-ag-new .field--legacy .custom-select:focus,
.kg-modal .kg-gwf .custom_input:focus,
.kg-chat-page .nx-search input:focus,
.kg-chat-page .nx-msgsearch input[type="search"]:focus,
.kg-chat-page .nx-form textarea:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }

/* 2. Umrahmungen, die den Fokus ihres (unsichtbar gemachten) Eingabefelds über :focus-within zeigen. */
.filter__search:focus-within, .kg-sb__f:focus-within, .kg-search__f:focus-within, .kg-find__field:focus-within { outline: 2px solid var(--blue-2); outline-offset: 2px; }

@media (forced-colors: active) {
    .input:focus,
    .kg-offer .custom-input:focus, .kg-offer .custom-select:focus,
    .kg-ag-new .field--legacy .custom-input:focus, .kg-ag-new .field--legacy .custom-select:focus,
    .kg-modal .kg-gwf .custom_input:focus,
    .kg-chat-page .nx-search input:focus,
    .kg-chat-page .nx-msgsearch input[type="search"]:focus,
    .kg-chat-page .nx-form textarea:focus,
    .filter__search:focus-within, .kg-sb__f:focus-within, .kg-search__f:focus-within, .kg-find__field:focus-within,
    :focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* 3. Reduzierte Bewegung: gilt für alle Klarglas-Stile (Bausteine, Seiten, Extras, Live), nicht nur für style.css. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 4. Mindestschrift 12 px für Text. Die Entwurfsdateien (style/bausteine/seiten/extras) bleiben Byte-Kopien des Entwurfs; die wenigen
   kleineren Werte (11,5 px) werden hier überlagert, mit denselben Selektoren und denselben Bedingungen. */
.kg-sb__lab em { font-size: 12px; }
.slot small, .slot em { font-size: 12px; }
.board__kw { font-size: 12px; }
@media (max-width: 760px) {
    .chart__val { font-size: 12px; }
    .chart__label { font-size: 12px; }
    .board__who small { font-size: 12px; }
}

/* Plantafel: sichtbarer Fokus (Tastatur). Rahmenfarbe --blue-2 (#0b5c96): mindestens 3:1 auf Weiss und auf den Chip-Hintergruenden. */
.kg-cal-ev:focus-visible, .kg-cal-assign summary:focus-visible, .kg-board-scroll:focus-visible, .kg-cal-abs .btn:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.kg-board-scroll:focus-visible { outline-offset: -3px; }
[data-kg-key] { scroll-margin-left: 190px; } /* the first column (staff member) is sticky and must not cover the focused order */

/* Bewertungsdialog: Sterne als Radiogruppe (Schalter design.klarglas_a11y_sterne). Die Radios sind unsichtbar, aber fokussierbar; der Fokus liegt sichtbar auf dem Stern. */
.kg-stars { margin: 0; padding: 0; border: 0; min-width: 0; }
.kg-stars .field__label { display: block; margin-bottom: 6px; padding: 0; }
.kg-stars__row { position: relative; display: flex; gap: 4px; }
.kg-stars__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.kg-stars__label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 24px; color: #c7ced6; cursor: pointer; border-radius: 8px; }
.kg-stars__label.is-on { color: #f1c40f; }
.kg-stars__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kg-stars__input:focus-visible + .kg-stars__label { outline: 3px solid var(--blue-2); outline-offset: 2px; }
/* Sprunglink: echter Link (funktioniert auch ohne Skript), gleiche Optik wie zuvor als Button */
a.kg-skip{display:inline-flex;align-items:center;text-decoration:none}

/* Ersatz für Inline-Styles in den Klarglas-Views (Optik unverändert): Passwort-Hinweise, Löschformular in der Adressliste, Signaturbild, Karte der Anbieterseite. */
.kg-pw-hint { margin-left: 8px; }
.kg-pw-hint--ok { color: green; }
.kg-pw-hint--bad { color: red; }
.kg-inline-form { display: inline; }
.kg-an-billing .logo-preview--sig { max-width: 220px; max-height: 90px; }
.kg-map-canvas { height: 360px; }

/* ---------- Umschalter für den Super Admin (Schalter design.admin_umschalter) ---------- */
.kg-um { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 6px var(--gut); background: var(--ink, #102a43); color: #fff; font-size: 14px; line-height: 1.4; }
.kg-um__nav { min-width: 0; max-width: 100%; overflow-x: auto; padding: 5px 4px; margin: -5px -4px; }
.kg-um__nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.kg-um form { margin: 0; }
.kg-um a, .kg-um button { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.kg-um a:hover, .kg-um button:hover { background: rgba(255, 255, 255, .16); }
.kg-um a:focus-visible, .kg-um button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kg-um [aria-current="page"] { background: #fff; color: var(--ink, #102a43); font-weight: 700; }
.kg-um__off { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px; color: rgba(255, 255, 255, .72); cursor: not-allowed; }
.kg-um .kg-um__hint { min-height: 0; padding: 0; border-radius: 0; font-size: 12px; text-decoration: underline; }
.kg-um .kg-um__hint:hover { background: transparent; }
.kg-um__state { margin: 0; font-size: 13px; }
/* Kopfleiste: Hauptlogo und Schriftzug Auftragsvermittlung.de um 15 % groessere Darstellung (Betreiber 14.11.2026) */
.kg-brand img{width:50.6px;height:49.5px}
.kg-brand__name{font-size:20.7px}
@media (max-width:1099px){
  .kg-brand img{width:48.3px;height:47.2px}
}

/* Stundenzettel (werkzeuge/stundenzettel): Fehlerdarstellung in den Farben von notice--bad, Tabellenfelder, Live-Summe. */
.kg-sz .field__error, .kg-sz .sz-table .field__error { margin: 4px 0 0; color: #b42318; font-size: 13.5px; font-weight: 600; }
.kg-sz [aria-invalid="true"] { border-color: #b42318; background: #fdeceb; }
.kg-sz [aria-invalid="true"]:focus-visible { outline-color: #b42318; }
.kg-sz .sz-table input { width: 100%; min-width: 7rem; }
.kg-sz .sz-sum { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 700; }
.kg-sz .sz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 720px) { .kg-sz .sz-grid { grid-template-columns: 1fr; } }

/* Zwei-Faktor-Einrichtung (QR-Code und Schluessel zum Abtippen): weisse Flaeche mit Abstand, Schluessel in Marineblau, Monospace, hellblau hinterlegt. */
.av-2fa-qr { margin: 14px 0 18px; }
.av-2fa-qr svg { display: block; width: 220px; max-width: 100%; height: auto; padding: 12px; box-sizing: content-box; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--sh-2); }
.av-2fa-key { display: inline-block; max-width: 100%; padding: 6px 12px; border-radius: 10px; background: var(--blue-faint); color: var(--ink); font: 600 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; }

/* Zeiterfassung Z1: Zeiten-Seiten */
.kg-times .table tr.is-void td { opacity: .6; text-decoration: line-through; }
.kg-times .table tr.is-void td small { text-decoration: none; }
.kg-times .table tr[data-kg-row] { cursor: pointer; }
/* Zeiterfassung Z2: Summenzeile der Stundenübersicht (eine normale Zeile, auf dem Telefon wie die anderen als Karte) und Abstand der Knöpfe darunter */
.kg-times .table tr.is-total td { font-weight: 700; border-top: 2px solid var(--line, currentColor); }
.kg-times .kg-hours-actions { margin: 16px 0 28px; }
.kg-times .check.kg-pick { min-height: 44px; align-items: center; padding: 0; }
.kg-times .table tr[data-kg-row] td { vertical-align: middle; }
.kg-times details > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
/* ---------- Gemeinsamer Baustein: aufklappbarer Bereich (x-kg.fold) ---------- */
.kg-fold { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin: 10px 0; }
.kg-fold > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; color: var(--ink); list-style: none; }
.kg-fold > summary::-webkit-details-marker { display: none; }
.kg-fold > summary::before { content: "▸"; color: var(--ink-2); }
.kg-fold[open] > summary::before { content: "▾"; }
.kg-fold > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.kg-fold__body { padding: 0 16px 14px; }
