/* quik Sites: Verwaltung des Systemadministrators (public/js/admin.js) und Hinweis im Support-Zugriff */
.adm-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; color: var(--accent-ink); }

/* Kennzahlen: zugleich Abkürzung zum passenden Reiter */
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.adm-kpi { display: grid; gap: 2px; text-align: left; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.adm-kpi:hover { border-color: var(--line); box-shadow: 0 10px 28px -20px var(--shadow-c, rgba(0, 0, 0, .5)); transform: translateY(-1px); }
.adm-kpi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-kpi-l { font-size: var(--fs-sm); color: var(--ink-soft); }
.adm-kpi b { font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }

.adm-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 16px; } /* Reiter (.tabs) über die volle Breite, darunter die Suche */
.adm-tools > .tabs { align-self: stretch; }
.adm-search[hidden] { display: none; }
.adm-search { width: min(320px, 100%); }
.adm-pill { margin-left: 8px; vertical-align: 1px; }
.adm-row { flex-wrap: wrap; }
.adm-row > .grow { min-width: 200px; }
.adm-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
/* Zeilen der Verwaltung (admin.js, .adm-li): eine Zeile ohne Umbruch, Aktionen rechts, nie verwaist auf eigener Zeile */
.adm-row.adm-li { flex-wrap: nowrap; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.adm-row.adm-li > .grow { min-width: 0; }
.adm-row.adm-li > .grow > b { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-row.adm-li > .grow > b > .adm-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.adm-row.adm-li > .grow > b > :is(.bdg, .pill) { margin-left: 0; flex: none; }
.adm-row.adm-li > .adm-acts { flex: none; flex-wrap: nowrap; }
.adm-row.adm-li > .av { width: 34px; height: 34px; }

@media (max-width: 900px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .adm-kpi { padding: 12px 14px; }
  .adm-kpi b { font-size: 22px; }
  .adm-row > .adm-acts { width: 100%; margin-left: 42px; }
  .adm-search { width: 100%; }
}

/* Support-Zugriff: schmale Leiste ganz oben, die ihren Platz einnimmt statt etwas zu überdecken.
   App und Editor rücken um --sup-h nach unten; fest positionierte Bereiche (Seitenleisten im Editor, Beitragseditor,
   offene Punkte) beginnen entsprechend tiefer. Dialoge liegen weiterhin darüber. */
html.in-support { --sup-h: 34px; }
html.in-support body { padding-top: var(--sup-h); }
html.in-support :is(.app, .ed) { height: calc(100vh - var(--sup-h)); height: calc(100dvh - var(--sup-h)); }
html.in-support :is(.ed-left, .ed-right-p, .ed-scrim, .bx) { top: calc(54px + var(--sup-h)); }
html.in-support .pe { top: var(--sup-h); }
html.in-support .og { top: calc(66px + var(--sup-h)); }
.sup-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: var(--sup-h, 34px); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; background: var(--fg, #18202e); color: var(--on-fg, #fff); font-size: var(--fs-xs); line-height: 1.3; animation: supIn .35s var(--ease, ease) both; }
:root[data-theme="dark"] .sup-bar { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 -1px 0 var(--line-soft); }
:root[data-theme="dark"] .sup-end { background: color-mix(in srgb, var(--ink) 10%, transparent); }
:root[data-theme="dark"] .sup-end:hover { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.sup-bar > .ic { flex: none; opacity: .8; }
.sup-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-bar b { font-weight: 650; }
.sup-short { display: none; }
.sup-end { flex: none; font: inherit; font-weight: 600; height: 24px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer; background: color-mix(in srgb, var(--on-fg, #fff) 16%, transparent); color: inherit; transition: background .15s; }
.sup-end:hover { background: color-mix(in srgb, var(--on-fg, #fff) 26%, transparent); }
.sup-end:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes supIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sup-bar { animation: none; } }
@media (max-width: 640px) {
  html.in-support { --sup-h: 40px; }
  html.in-support .og { top: var(--sup-h); }
  .sup-bar { justify-content: space-between; padding: 0 6px 0 14px; }
  .sup-long { display: none; }
  .sup-short { display: inline; }
  .sup-end { height: 30px; padding: 0 14px; }
}

/* „Ansehen als“ (public/js/main.js viewAsBar): Der Systemadministrator sieht die App als eine andere Person. Dieselbe Leiste
   in Signalfarbe, damit der Modus nicht übersehen wird. Editor (.qe liegt fest über der Seite), Meldungen und
   Zugangsseiten rücken mit nach unten. */
html.in-support :is(.qe, .qe-fail) { top: var(--sup-h); }
html.in-support #toasts { top: calc(16px + var(--sup-h)); }
html.in-support .gate { min-height: 0; height: calc(100vh - var(--sup-h)); height: calc(100dvh - var(--sup-h)); }
.sup-bar.sup-as, :root[data-theme="dark"] .sup-bar.sup-as { background: var(--orange); color: var(--on-orange); box-shadow: none; }
.sup-as > .ic { opacity: 1; }
.sup-as .sup-end, :root[data-theme="dark"] .sup-as .sup-end { background: color-mix(in srgb, currentColor 18%, transparent); }
.sup-as .sup-end:hover, :root[data-theme="dark"] .sup-as .sup-end:hover { background: color-mix(in srgb, currentColor 30%, transparent); }
.sup-as .sup-end:focus-visible { outline-color: currentColor; outline-offset: 1px; }
.sup-bar > .sup-time { flex: none; opacity: .82; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  html.in-support :is(.qe-left, .qe-right), html.in-support .qe-body > .qe-scrim { top: calc(54px + var(--sup-h)); }
  .sup-bar > .sup-time { display: none; }
}

/* Zugangsseiten mit Marke und Einladungen (public/js/auth.js): neutrales Motiv statt der Beispiel-Website, ohne
   Firmennamen. Feste helle Töne (Darstellung einer Website), die Akzentfarbe der Marke nur an Zeichen und Knopf. */
.gx-view.gx-neutral { display: flex; flex-direction: column; gap: 28px; padding: 22px 28px 28px; background: var(--paper); }
.gx-neutral i { display: block; border-radius: 99px; background: var(--paper-3); }
.gx-neutral .gxn-nav, .gx-neutral .gxn-btns { display: flex; align-items: center; gap: 16px; }
.gx-neutral .gxn-logo { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); margin-right: auto; }
.gx-neutral .gxn-bar { width: 52px; height: 8px; }
.gx-neutral .gxn-pill { width: 88px; height: 28px; background: var(--paper); border: 1px solid var(--paper-3); }
.gx-neutral .gxn-pill.on { background: var(--accent); border-color: transparent; }
.gx-neutral .gxn-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.gx-neutral .gxn-copy { display: flex; flex-direction: column; gap: 12px; }
.gx-neutral .gxn-kick { width: 96px; height: 7px; background: color-mix(in srgb, var(--accent) 35%, var(--paper)); }
.gx-neutral .gxn-h { width: 94%; height: 22px; border-radius: 7px; background: var(--paper-ink); }
.gx-neutral .gxn-h.s { width: 68%; }
.gx-neutral .gxn-line { width: 100%; height: 8px; margin-top: 4px; }
.gx-neutral .gxn-line.s { width: 78%; margin-top: 0; }
.gx-neutral .gxn-btns { gap: 10px; margin-top: 8px; }
.gx-neutral .gxn-img { height: 170px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--paper-2)), var(--paper-3)); }
.gx-neutral .gxn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gx-neutral .gxn-card { height: 96px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--paper-3); }
.gx-neutral .gxn-foot { flex: 1 0 40px; margin: 0 -28px -28px; border-radius: 0; background: var(--paper-2); }

/* Marke (public/js/marke.js): „Bevor Sie Kunden einladen“, Hinweis zum Absender, Protokoll */
.mk-ready-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mk-ready-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.mk-ready-row:first-child { border-top: 0; }
.mk-ready-row > .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mk-ready-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; border: 1.5px solid var(--line-strong); color: var(--green-ink); }
.mk-ready-row.is-ok .mk-ready-ic { border-color: transparent; background: color-mix(in srgb, var(--green-mix) 14%, transparent); }
.mk-ready-row > .link-btn { flex: none; }
.mk-sender { margin: 4px 0 0; }
.mk-log .card-h > .btn-row { gap: 8px; flex-wrap: nowrap; flex: none; }
@media (max-width: 640px) { .mk-log .card-h { flex-wrap: wrap; } .mk-log .card-h > .btn-row { flex-wrap: wrap; } }
.lg-muster { margin: 14px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.lg-muster p { margin: 0; }

/* Live-Check (public/js/live-check.js): Status als Badge in eigener Spalte, nie auf die Spaltenbreite gestreckt */
.lc-sum > .lc-st { flex: none; width: 108px; display: flex; justify-content: flex-start; }
.lc-sum > .lc-st > .bdg { justify-self: start; }
.lc-mini-d .lc-sum > .lc-st { width: 76px; }
@media (max-width: 640px) { .lc-sum > .lc-st { width: auto; order: -1; flex-basis: 100%; } }

/* Website anschließen (public/js/anschliessen.js): Aufklappen mit Chevron wie sonst in der App, kein Dreieck in Akzentfarbe */
.an-zugang > summary, .an-hw > summary, .an-codebox > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.an-zugang > summary::-webkit-details-marker, .an-hw > summary::-webkit-details-marker, .an-codebox > summary::-webkit-details-marker { display: none; }
.an-zugang > summary > .ic, .an-hw > summary > .ic, .an-codebox > summary > .ic { flex: none; color: var(--ink-faint); transition: transform .15s var(--ease); }
.an-zugang[open] > summary > .ic, .an-hw[open] > summary > .ic, .an-codebox[open] > summary > .ic { transform: rotate(90deg); }
.an-zugang > summary:hover, .an-hw > summary:hover, .an-codebox > summary:hover { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .an-zugang > summary > .ic, .an-hw > summary > .ic, .an-codebox > summary > .ic { transition: none; } }

/* Dateien und Code (public/js/dateien.js): Website-Auswahl und „Datei hochladen“ in einer Zeile */
.df-acts { flex-wrap: nowrap; }
.df-acts > * { flex: none; }
@media (max-width: 640px) { .df-acts { flex-wrap: wrap; } }

/* Personen (public/js/team.js): Spaltenköpfe „Zugang“ und „Rolle“ im Raster der Zeile (.tm-acc-line), „Rolle“ über dem Text der Auswahl */
.tm-thead > .tm-th2 { display: grid; }
.tm-thead > .tm-th2 > span:last-child { padding-left: 12px; }

/* Hilfe (public/js/hilfe.js): Beschreibung in der Liste zweizeilig, Ansprechpartner der Kunden oben */
.hp-li-x { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp > .page-h + .hp-contact-slot:not(:empty) { margin: 0 0 32px; }

/* Verwaltung → System */
.sys-check { align-items: flex-start; }
.sys-dot { flex: none; width: 10px; height: 10px; margin: 6px 4px 0 2px; border-radius: 999px; background: var(--green-dot); }
.sys-dot.warn { background: var(--orange-dot); }
.sys-dot.err { background: var(--red-dot); }
/* Zustand als ruhiges Wort neben dem Punkt (ein Signal je Zeile): In Ordnung tritt zurück, Fehler ist rot */
.sys-word { flex: none; padding-top: 3px; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-faint); white-space: nowrap; }
.sys-word.warn { color: var(--ink-soft); }
.sys-word.err { color: var(--red-ink); }
.sys-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; padding: 4px 0 8px; }
.sys-fact { display: grid; gap: 1px; min-width: 0; }
.sys-fact b { letter-spacing: 0; font-variant-numeric: tabular-nums; font: 600 24px/1.25 var(--font-d); }
.sys-brand { color: inherit; text-decoration: none; }
.sys-brand:hover b { text-decoration: underline; text-underline-offset: 3px; }
.sys-todo { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--orange-ink); }
.sys-when { margin-left: auto; text-align: right; }
.sys-err { overflow-wrap: anywhere; }
@media (max-width: 860px) { .sys-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sys-when { margin-left: 0; text-align: left; flex-basis: 100%; padding-left: 44px; } }

/* =====================================================================
   Feinschliff Verwaltung, Marke, Konto, KI verbinden, Übertragungen:
   Symbol-Quadrate, Kartenköpfe mit Symbol, Metazeilen mit Symbolen, Info-Symbol statt Erklärtext
   ===================================================================== */
.adm-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); }
.adm-ic.t-green { background: color-mix(in srgb, var(--green-mix) 13%, transparent); color: var(--green-ink); }
.adm-ic.t-orange { background: color-mix(in srgb, var(--orange-mix) 13%, transparent); color: var(--orange-ink); }
.adm-ic.t-red { background: color-mix(in srgb, var(--red-mix) 12%, transparent); color: var(--red-ink); }
.adm-ic.t-accent { background: var(--accent-soft); color: var(--accent-ink); }
h2.adm-h { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
h2.adm-h > .bdg, h2.adm-h > .tab-n { margin-left: -4px; vertical-align: 0; }
.card-h:has(> h2.adm-h) { min-height: 36px; margin-bottom: 12px; }
.card-h > .adm-h-r { display: inline-flex; align-items: center; gap: 8px; flex: none; }
/* Info-Symbol mit Tooltip (title) statt längerer Erklärung */
.adm-info { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; color: var(--ink-faint); cursor: help; flex: none; }
.adm-info:hover, .adm-info:focus-visible { color: var(--fg); background: var(--hover); } /* Fokusring: app.css, Regel für alle Info-Symbole */
/* Einstellungszeile mit Symbol links (setRow + .adm-ic) */
.srow > .adm-ic { margin-right: -4px; }
.srow.adm-srow { min-height: 56px; }
/* Metazeile einer Liste: Symbol + Wert, einzeilig, kürzt am Ende */
.adm-meta { display: flex; align-items: center; gap: 14px; min-width: 0; margin-top: 2px; overflow: hidden; white-space: nowrap; font-size: var(--fs-sm); color: var(--ink-faint); }
.adm-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: none; }
.adm-meta > span:last-child { flex: 0 1 auto; }
.adm-meta > span > span { overflow: hidden; text-overflow: ellipsis; }
.adm-meta > span > .ic { flex: none; opacity: .85; }
.adm-meta > span.is-live { color: var(--green-ink); }
.adm-meta > span.is-warn { color: var(--orange-ink); }
/* Suchfeld mit Lupe (Verwaltung) */
.adm-search-w { position: relative; display: inline-flex; align-items: center; }
.adm-search-w > .ic { position: absolute; left: 14px; color: var(--ink-faint); pointer-events: none; }
.adm-sub .adm-search-w > .adm-search { padding-left: 38px; }
/* Unterzeile der Verwaltung: Segment links, Suche rechts, auf einer Höhe */
.adm-sub { align-items: center; }
.adm-sub > .subnav-wrap:has(.sub-lead), .adm-sub:has(.sub-lead) > .adm-search-w { align-self: flex-start; }

/* Verwaltung: Status einer Website als Auswahl rechts, auf dem Handy unter dem Text (gleiche Zeile wie „⋯“) */
@media (max-width: 640px) {
  .adm-sub .adm-search-w { width: 100%; }
  .adm-row.adm-li { padding-left: 12px; padding-right: 8px; gap: 10px; }
  .adm-row.adm-li .row-acts { display: none; }
  .adm-row.adm-li > .grow > b { flex-wrap: wrap; row-gap: 2px; } /* langer Stand rutscht unter den Namen statt ihn zu kürzen */
  .adm-row.adm-li > .grow > b > .adm-t { max-width: 100%; }
  .adm-row.adm-li > .adm-acts { width: auto; margin-left: auto; }
  .adm-row.adm-li.adm-site { flex-wrap: wrap; row-gap: 8px; }
  .adm-row.adm-li.adm-site > .grow { flex: 1 1 calc(100% - 50px); }
  .adm-row.adm-li.adm-site > .adm-acts { flex: 1 1 100%; margin-left: 44px; justify-content: space-between; }
  .adm-row.adm-li.adm-site > .adm-acts .qsel { flex: 0 1 200px; width: 200px !important; }
  /* Einstellungszeile mit Symbol: Symbol und Text in einer Zeile, Schalter rechts daneben, Knöpfe darunter unter dem Text */
  .srow.adm-srow { gap: 12px; }
  .srow.adm-srow > .adm-ic { margin-right: 0; }
  .srow.adm-srow > .srow-t { flex: 1 1 0; min-width: 0; }
  .srow.adm-srow:not(.is-sw) > .srow-t { flex-basis: calc(100% - 44px); }
  .srow.adm-srow:not(.is-sw) > .srow-c { width: calc(100% - 44px); margin-left: 44px; flex-wrap: wrap; }
  /* Metazeile: auf dem Handy nur die ersten zwei Angaben, die zweite kürzt am Ende */
  .adm-meta { gap: 10px; }
  .adm-meta > span:nth-child(n+3) { display: none; }
  .adm-meta > span:nth-child(2) { flex: 0 1 auto; }
}

/* Neuer Kunde, Neue Website: Kurzname mit fester Vorsilbe, Start als Kacheln mit Symbol */
.ns-slug { display: flex; align-items: stretch; min-width: 0; min-height: var(--h); border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ns-slug:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.ns-slug > span { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--ink-faint); white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.ns-slug > .input { border: 0; box-shadow: none; border-radius: 0; min-width: 0; flex: 1; background: transparent; padding-left: 0; min-height: 0; }
.ns-slug > .input:focus { box-shadow: none; outline: none; }
.ns-slug > .ns-slug-end { background: transparent; border: 0; padding: 0 12px 0 0; }
.ns-slug:has(.input.err) { border-color: var(--red); }
.ns-tiles .ns-opt { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 12px; }
.ns-tiles .ns-opt > .adm-ic { width: 30px; height: 30px; border-radius: 9px; }
.ns-tiles .ns-opt.on > .adm-ic { background: var(--fg); color: var(--on-fg); }
.ns-tiles .ns-opt b { display: block; font-weight: 600; color: var(--fg); font-size: var(--fs-sm); }
.ns-tiles .ns-opt small { display: block; margin-top: 1px; font-size: var(--fs-xs); color: var(--ink-faint); font-weight: 400; }
@media (max-width: 560px) { .ns-tiles .ns-opt { flex-direction: row; align-items: center; } }
.adm-dlg-rows { display: flex; flex-direction: column; margin: 4px 0 2px; }
.adm-dlg-rows > .srow:first-child { border-top: 1px solid var(--line-soft); }
.adm-dlg-rows + .fld, .fld + .adm-dlg-rows { margin-top: 4px; }
.adm-dlg-rows > .fld { margin: 0 0 12px 44px; }
.adm-dlg-rows > .srow:last-child { padding-bottom: 0; }
/* Website übernehmen: drei Wege mit Symbol */
.tk-weg { align-items: center; justify-content: flex-start; gap: 12px; }
.tk-weg > .tk-weg-t { flex: 1; }

/* Marke: Kopf der Vorschau, Hinweis mit Symbol, Kontakt mit Vorschau und Foto rechts */
.mk-note.mk-note-ic { display: flex; align-items: center; gap: 8px; }
.mk-note.mk-note-ic > .ic { flex: none; color: var(--ink-faint); }
.mk-ct-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-ct-side > .mk-slot { border-top: 1px solid var(--line-soft); padding: 12px 0 0; }
.mk-tech .srow { min-height: 60px; }
.mk-log .li > .av.adm-ic { border-radius: 10px; }

/* Dialog „Passwort & Sicherheit“: „Passwort ändern“ wie eine Einstellungszeile (Symbol links, Pfeil rechts) */
.acc-pw > summary { gap: 12px; min-height: 56px; padding: 10px 0; font-size: var(--fs-base); font-weight: 550; color: var(--fg); }
.acc-pw > summary::before { order: 3; margin: 0 6px 0 auto; }
.acc-pw > summary > .adm-ic { order: 1; }
.acc-pw > summary > span:not(.adm-ic) { order: 2; }
/* Konto: „Abmelden“ bleibt auch auf dem Handy neben dem Titel (Nebenknopf, nicht über die volle Breite) */
@media (max-width: 640px) {
  .acc > .page-h { display: flex; flex-wrap: nowrap; align-items: center; }
  .acc > .page-h > .btn { width: auto; flex: none; }
}
/* Konto: Firmen kompakt */
.acc .li > .adm-ic { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.acc .li { min-height: 52px; }

/* KI verbinden: Beispielauftrag mit Kopieren, verbundene Assistenten */
.cl-ex { display: flex; align-items: center; gap: 8px; }
.cl-ex > pre.cmd { flex: 1; min-width: 0; margin: 0; white-space: pre-wrap; }
.cl-card > .cl-ex { margin: 8px 0 0; }
/* KI verbinden: Beispielaufträge nach Phase */
.cl-phasen { margin-top: 2px; max-width: 100%; overflow-x: auto; }
.cl-exs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cl-exs .cl-start { margin: 0; }
.cl-exs .cl-start { word-break: normal; overflow-wrap: break-word; }
@media (max-width: 640px) { .cl-card .seg.cl-phasen { display: grid; grid-template-columns: 1fr 1fr; width: 100%; overflow: visible; border-radius: 14px; } .cl-card .seg.cl-phasen > button { border-radius: 10px; } .cl-card .seg.cl-phasen > button { justify-content: center; min-height: 40px; } }
.cl-card > p.cl-after { margin: 10px 0 0; }
.cl-card .cl-steps { margin-bottom: 4px; }
.cl-card .cl-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.cl-card .empty.sm { padding: 16px 10px 20px; }
@media (max-width: 640px) {
  .cl-card .card-h { flex-wrap: nowrap; }
  .cl-card .cl-badge > span { display: none; } /* Text als Tooltip, das Schloss bleibt */
  .cl-card .cl-badge { padding: 6px; }
  .cl-card .seg { display: flex; flex-wrap: nowrap; width: 100%; }
  .cl-card .seg > button { flex: 1 1 auto; padding-inline: 6px; min-height: 40px; }
}

/* Übertragungen (public/js/uebertragung.js): Kartenköpfe mit Symbol */
.ub-page .card-h:has(> h2.adm-h) { align-items: center; }
.ub-seiten-l { display: inline-flex; align-items: center; gap: 4px; }
.ub-seiten-l > .ic { color: var(--ink-faint); }

/* >>> Bild vor Text (public/js/bild.js): leere Zustände mit Illustration, Info-Symbol, Kennzahl mit Bild */
.empty.has-illu { gap: 8px; padding: 40px 24px; }
.empty.has-illu > .illu { margin-bottom: 6px; }
.empty.has-illu.sm { padding: 20px 16px; }
.empty.has-illu.sm > .illu { margin-bottom: 2px; }
.bi-info { width: 24px; height: 24px; vertical-align: middle; }
.bi-kz { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bi-kz-t { display: grid; min-width: 0; line-height: 1.25; }
.bi-kz-t b { font-size: var(--fs-lg); font-weight: 650; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-kz-t small { font-size: var(--fs-xs); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-kz > .bi-kz-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); flex: none; }
.bi-kzs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 20px; }
/* <<< Bild vor Text */

/* >>> Verwaltung, System: Auffälliges als Zeile, Rest als Chips; Zahlen mit Bild (Agent K) */
.sys-oks { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 4px; }
.sys-ok { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--line); border-radius: 99px; font-size: var(--fs-xs); color: var(--ink-soft); background: var(--surface); cursor: help; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sys-ok > .ic { color: var(--green-dot); flex: none; }
.sys-kzs { padding: 4px 0 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .sys-kzs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sys-stand { white-space: nowrap; }
/* <<< */

/* >>> Sichtbarkeit: Verlauf je Kennzahl als Linie (public/js/module.js verlauf; Agent K) */
.md-verlauf { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px; }
.md-vl { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.md-vl-t { display: grid; min-width: 0; }
.md-vl-t small { font-size: var(--fs-xs); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-vl-t b { font-size: var(--fs-xl); font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.md-seit:empty { display: none; }
.card-h h2 > .bi-info, .lg-h > .bi-info { margin-left: 4px; }
/* <<< */

/* >>> Mediathek: Speicher als Ring; Personen: Kürzel-Stapel im Kopf (Agent K) */
.md-storage-r { display: flex; align-items: center; gap: 12px; padding: 4px 2px 0; }
.tm-lede { display: flex; align-items: center; gap: 10px; }
.tm-lede:empty { display: none; }
/* <<< */

/* >>> Übergabe-Dialog: Stand als Ring, Erledigtes einzeilig (Agent K) */
.ug-sum.ug-sum-r { flex-direction: row; align-items: center; gap: 14px; }
.ug-sum-r .ug-sum-t { flex-direction: column; align-items: flex-start; gap: 0; }
.ug-it { min-height: 48px; }
/* <<< */

/* >>> Runde 4, Feinschliff Marke, Team, Verwaltung (Agent r4c) */
/* Marke: Linie der Reiter endet mit den Karten (860 px), nicht am Fensterrand */
.page-narrow.mk2 > .set-tabs { max-width: 860px; }
/* Marke, Team: gerade Haarlinie zwischen den Personen (vorher bog die Linie mit dem Radius der Zeile ab) */
.mk2-tm { border-bottom: 0; position: relative; }
.mk2-tm + .mk2-tm::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 1px; background: var(--line-soft); }
.mk2-tm:hover::before, .mk2-tm:hover + .mk2-tm::before { background: transparent; }
/* Marke: Info-Symbol direkt am Feldnamen statt am rechten Rand des Feldes */
:is(.mk, #mk-mail-f, #mk-dom-f) .fld > label { justify-content: flex-start; gap: 2px; }
/* … und ohne den Feldnamen höher zu machen (sonst stehen Felder nebeneinander verschieden hoch) */
:is(.mk, #mk-mail-f, #mk-dom-f) .fld > label > .bi-info { margin-block: -5px; }
/* Marke: Formularkarten enden mit dem gleichen Polster wie alle Karten (letzte Feldzeile ohne Außenabstand) */
.mk form.set-card > .fld:has(+ button[hidden]), .mk form.set-card > .mk-two:has(+ button[hidden]) > .fld:last-child { margin-bottom: 0; }
@media (min-width: 701px) { .mk form.set-card > .mk-two:has(+ button[hidden]) > .fld { margin-bottom: 0; } }
/* Marke, Adresse: Adresse der Anmeldeseite als ruhige Unterzeile wie in den Zeilen darunter */
.mk-tech .srow-t small .mk-mono { font-weight: 500; color: var(--ink-soft); }
/* Marke, Kontingent: Werte fluchten mit der rechten Kante der Karte */
.mk-quota .qt-list { max-width: none; }
.mk-quota .qt-val { font-variant-numeric: tabular-nums; }
.mk-quota .qt-label { display: inline-flex; align-items: center; gap: 8px; }
.mk-quota .qt-label > .ic { color: var(--ink-faint); flex: none; }
/* Marke, Team am Handy: Kürzel-Stapel im Kopf weg (die Personen stehen direkt darunter), Knopf in normaler Höhe */
@media (max-width: 640px) {
  .mk-team2 .card-h .avstack { display: none; }
}
/* Verwaltung, Plattform: Schalter über die ganze Kartenbreite wie die Felder, mit Luft zu den Nachbarn */
.lg-platform .tg { max-width: none; margin: 4px 0 14px; }
.lg-platform .card-h h2.adm-h > .bi-info { margin-left: -6px; }
/* Marke, „Wo es erscheint“: langer Name kürzt in der Kachel „Anmeldeseite“ statt den Kasten zu sprengen */
.mk-wo-gate { min-width: 0; max-width: 100%; overflow: hidden; }
.mk-wo-gate > * { max-width: 100%; min-width: 0; }
/* Marke, Ansprechpartner: rechte Spalte endet ohne Außenabstand (gleiches Polster unten wie oben) */
.mk-ct-side > .fld:last-child { margin-bottom: 0; }
/* Verträge verwalten (Marke, Plattform): Link, Papierkorb und Knopf auf einer Höhe */
:is(.lg-brand, .lg-platform) .lg-kind > .lg-row { align-items: center; }
/* Rollenwahl: „Empfohlen“ als ruhiger Stempel (auf der Markentönung lag der Kontrast unter 4,5 : 1) */
.tm-rec { background: var(--surface-2); color: var(--ink-soft); }
/* Einladungen am Handy: „Zurückziehen“ (×) oben rechts in der Zeile statt allein in einer eigenen Zeile */
@media (max-width: 640px) {
  .tm-row.tm-inv { grid-template-columns: 36px minmax(0, 1fr) 36px; grid-template-areas: "av who x" ". acts acts"; }
  .tm-row.tm-inv > .tm-inv-acts { display: contents; }
  .tm-inv-acts > .btn { grid-area: acts; justify-self: start; }
  .tm-inv-acts > .tm-revoke { grid-area: x; align-self: start; justify-self: end; }
}
/* Kontingent (Systemadministrator): Felder über die Kartenbreite wie die Werte darüber */
.mk-quota.set-card .qt-fields { max-width: none; }
/* Verwaltung, Kopf: „⋯“ mittig zum Primärknopf (stand 4 px zu hoch) */
.adm-page .page-h > .btn-row { align-items: center; }
/* KI verbinden, Zustimmung: Hinweis zum Protokoll abgesetzt unter den Listen (klebte an der letzten Zeile) */
.cx-box p.cx-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--g-line); font-size: var(--fs-sm); line-height: 1.5; }
/* Verträge: Link „PDF“ mit Symbol auf einer Linie, am Handy alle Aktionen in einer Zeile unter dem Titel */
.lg-dl { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
@media (max-width: 640px) { .lg-kind > .lg-row > .grow { flex-basis: 100%; } .lg-kind > .lg-row > .btn { margin-left: auto; } }
/* KI verbinden, verbundene Assistenten am Handy: Knopf unter dem Text statt über Stempel und Unterzeile */
@media (max-width: 640px) {
  .cl-conn { flex-wrap: wrap; row-gap: 8px; }
  .cl-conn > .grow { flex: 1 1 calc(100% - 48px); min-width: 0; }
  .cl-conn > .btn { margin-left: 44px; }
  .cl-conn .cl-row { flex-wrap: wrap; gap: 4px 8px; }
  .cl-conn .sm.ellip { white-space: normal; }
}
/* Verwaltung am Handy: zweite Angabe der Metazeile bleibt lesbar (vorher blieb bei langer E-Mail nur ein Buchstabe) */
@media (max-width: 640px) {
  .adm-meta > span:first-child { flex: 0 1 auto; }
  .adm-meta > span:nth-child(2) { flex: 0 1 auto; min-width: 72px; }
}
/* <<< Runde 4 */
/* Kürzel-Stapel bei Personen und im Team der Marke: zweiter Buchstabe wurde vom nächsten Kreis verdeckt (wie kunden.css .kx-pers) */
.tm-lede .avstack .av, .mk-team2 .avstack .av { margin-left: -6px; font-size: 9px; letter-spacing: -.02em; }
.tm-lede .avstack .av:first-child, .mk-team2 .avstack .av:first-child { margin-left: 0; }

/* >>> Ruhig statt überladen (Audit 25.11.2026, Bereich U4: Agentur, Marke, Team, Pakete, Katalog, Datenschutz, Verwaltung)
   docs/GESTALTUNG.md Abschnitt 17. Auswahl in Zeilen als Pille, Checkliste als ein Knopf, Einstellungen hinter dem Zahnrad. */
/* Auswahl in einer Zeile als Pille (Rolle im Team, Rolle der Personen eines Kunden): Text mit Pfeil, Rahmen beim Überfahren */
.qsel.u4-pill { width: auto; max-width: 220px; height: 30px; min-height: 30px; padding: 0 8px 0 10px; gap: 6px; border-color: transparent; background: transparent; box-shadow: none; border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-soft); }
.qsel.u4-pill:hover:not(:disabled) { border-color: var(--line); background: var(--surface); color: var(--ink); }
.qsel.u4-pill.open, .qsel.u4-pill:focus-visible { border-color: var(--accent); background: var(--surface); color: var(--ink); }
.qsel.u4-pill > .ic:last-child { margin-left: 0; }
.tm-acc-line .tm-role-w { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.tm-acc-line .tm-role-w .qsel.u4-pill { width: auto; }
@media (max-width: 640px) { .tm-acc-line .tm-role-w .qsel.u4-pill { height: 36px; margin-left: -10px; } .mk2-meta .qsel.u4-pill { margin-left: -10px; } }
/* Marke, Kopf: „n offen“ mit kleinem Ring (Menü „Bevor Sie Kunden einladen“) */
.mk-todo[hidden] { display: none; }
.mk-offen { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-sm); font-weight: 560; cursor: pointer; white-space: nowrap; }
.mk-offen:hover { border-color: var(--line-strong); }
.mk-offen:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mk-offen > .ic:last-child { color: var(--ink-faint); }
.mk-offen .ringv b { display: none; }
/* Team der Marke: Zwei-Faktor nur als Zeichen */
.mk2-2fa { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--green-dot); }
/* „Wo es erscheint“ eingeklappt unter den Logos */
.mk-wo-auf { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
/* Anrede der Kunden: eine Zeile mit Segment */
.mk-anrede .srow { border-bottom: 0; }
.mk-anrede .srow-t small { font-style: normal; }
@media (max-width: 640px) { .mk-anrede .srow { flex-wrap: wrap; row-gap: 8px; } .mk-anrede .srow-c { margin-left: 0; } }
/* Leere graue Zeile (ruhig.js leerZeile) in einer Liste: bündig mit dem Text der Zeilen (.list rückt um 10 px aus) */
.card > .list > .ru-leer, .card-h + .list > .ru-leer { padding-left: 10px; padding-right: 10px; }
/* Kontingent ohne Grenzen: eine Zeile mit Symbol und Wert statt vier Balkenzeilen */
.qt-kompakt { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 2px 0 4px; }
.qt-k { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-soft); white-space: nowrap; }
.qt-k b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.qt-k > .ic, .qt-k > svg { color: var(--ink-faint); }
/* <<< Ruhig U4 */
