/*§9100 skillomat Zentrale 2.1.0 (Kern 9.1.0, OP-432, AP5) · Bereich Gestaltung (Eingaben, Animationen) */
/*§9100 Zusammengeführt aus gui116.css, bewegung116.css in Ladereihenfolge (index.html) – Wortlaut unverändert, jeder Teil wie bisher mit eigenem Rahmen. */
/*§9100 Teil gui116.css */
/* skillomat Zentrale 1.16.0 · GUI- und Usability-Durchsicht (Bausteine des Designsystems, nur Tokens aus app.css):
   Seite Updates (Zusammenfassung, Abschnitte, Archiv, Pakete nach Versionsreihe), Feldbreiten nach Inhalt, Einheiten an Zahlenfeldern,
   Prüfung beim Verlassen eines Feldes, Suchfelder breit genug für ihren Platzhalter, sichtbarer Fokus an Eingaben (WCAG 2.2: 2.4.7, 1.4.11),
   leere Zustände mit Handlungsaufruf. Hell und dunkel, 390 px ohne seitliches Scrollen, Trefferflächen 44 px. Bewegung nur, wenn erlaubt. */

/* ---------- Fokus und Kontrast an Eingaben ---------- */
:is(input, select, textarea):focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: var(--faint-text); opacity: 1; }
summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--r-sm); }

/* ---------- Suchfelder: breit genug für den Platzhalter, am Telefon volle Breite ---------- */
.toolbar .search { flex: 1 1 240px; min-width: min(100%, 240px); max-width: 360px; }
.toolbar .search input, .toolbar .search input[type="search"] { width: 100%; max-width: none; }

/* ---------- Feldbreiten nach erwartetem Inhalt (gui116.js setzt die Klassen) ---------- */
.row > .field.fw116-num { flex: 0 1 auto; min-width: 9rem; }
.field.fw116-num > :is(input, .unit116) { max-width: 12rem; }
.row > .field.fw116-s { flex: 0 1 13rem; }
.row > .field.fw116-m { flex: 0 1 18rem; }
.row > .field.fw116-l { flex: 2 1 280px; }
:is(main, dialog) input:is([type="number"], [inputmode="numeric"]):not([type="checkbox"]) { text-align: right; font-variant-numeric: tabular-nums; }
.unit116 { position: relative; display: flex; align-items: center; width: 100%; }
.unit116 > input { width: 100%; padding-right: calc(14px + var(--u116w, 3.2em)); }
.unit116 > .u116 { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; white-space: nowrap; }
/* Prüfung beim Verlassen eines Feldes: Meldung direkt unter dem Feld (nicht nur Farbe: Zeichen und Text) */
.fe116 { display: flex; gap: 6px; align-items: flex-start; margin: -2px 0 0; font-size: 13px; color: var(--bad); }
.fe116::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--bad); color: var(--card); font-size: 11px; font-weight: 700; }
.fe116[hidden] { display: none; }
.ok116 { font-size: 13px; color: var(--muted); }

/* ---------- Leere Zustände ---------- */
.empty116 { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 20px; margin: 0; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface2); color: var(--ink); }
.empty116 p { margin: 0; }
.empty116 .btn { margin-top: 8px; }

/* ---------- Seite Updates: Zusammenfassung ---------- */
.upsum116 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 4px 0 12px; }
.kpi116 { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 92px; min-width: 0; padding: 14px 16px; text-align: left;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font: inherit; cursor: pointer; }
.kpi116:hover { border-color: var(--line-strong); }
.kpi116 .lab116 { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi116 .val116 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi116 .sub116 { margin-top: auto; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kpi116.on { border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.kpi116.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.kpi116.bad::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bad); }
.kpi116.bad .val116 { color: var(--bad); }
:root:not([data-motion="off"]) .kpi116 { transition: transform var(--t-press) var(--ease-out), border-color 150ms var(--ease-out); }
:root:not([data-motion="off"]) .kpi116:active { transform: scale(.98); }

/* Abschnitte als Sprungleiste (bewusst nicht klebend: verdeckt beim Scrollen und Ziehen keine Inhalte, WCAG 2.4.11) */
.upnav116 { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 4px; padding: 6px;
  border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--glass-line); }
.upnav116::-webkit-scrollbar { display: none; }
.upnav116 .chip { flex: none; height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.upnav116 .chip .n { min-width: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--chip); text-align: center; font-size: 12px; }
#ro, #pk116, #wv116, #grp, #f, .arch116 { scroll-margin-top: calc(var(--zhead115, 0px) + 12px); }

/* Abgeschlossen, Archiv */
.sub116 { margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.arch116 { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface2); }
.arch116 > summary, .pkgg116 > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 48px; padding: 6px 14px; cursor: pointer; list-style: none; }
.arch116 > summary::-webkit-details-marker, .pkgg116 > summary::-webkit-details-marker { display: none; }
.chev116 { width: 18px; height: 18px; flex: none; color: var(--muted); }
:root:not([data-motion="off"]) .chev116 { transition: transform 180ms var(--ease-out); }
details[open] > summary .chev116 { transform: rotate(90deg); }
.arch116[open] > summary { border-bottom: 1px solid var(--line); }
.arch116-bar { padding: 12px 14px 0; margin-bottom: 8px; }
.arch116-list { padding: 0 14px; }
.arch116-foot { padding: 6px 14px 14px; }
.a116-out, .a116-cut { display: none !important; }

/* Pakete nach Versionsreihe */
.pkg116 > .toolbar { margin-bottom: 8px; }
.pkgg116 { border-top: 1px solid var(--line); }
.pkgg116:first-of-type { border-top: 0; }
.pkgg116 > summary { padding: 4px 4px; }
.pkgg116 > .list { margin: 0 0 8px; }
.pkg116 .list li, #pk116 .list li { gap: 12px; }
.ell116 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
#pk116 .list li > .grow { min-width: 0; }

/* Zeitstrahl am Telefon: lesbar (seitlich im Rahmen scrollen statt verkleinern) */
@media (max-width: 760px) { .rtwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .rtwrap svg.rtl { width: 760px; min-width: 760px; } }

@media (max-width: 1100px) { .upsum116 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .upsum116 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi116 { min-height: 80px; padding: 12px; }
  .kpi116 .val116 { font-size: 20px; }
  .upnav116 { border-radius: var(--r-sm); }
  .row > .field:is(.fw116-num, .fw116-s, .fw116-m, .fw116-l) { flex: 1 1 100%; }
  .toolbar .search { flex: 1 1 100%; max-width: none; }
  .arch116-list, .arch116-bar, .arch116-foot { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .kpi116, .chev116 { transition: none !important; } .kpi116:active { transform: none; } }

/* Datums- und Zeithilfen, Versionslisten, Hinweisleiste */
.dt116 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip.sm116 { height: 32px; padding: 0 12px; font-size: 12.5px; }
.vl116 { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
#mfaHint > span:first-child { flex: 1 1 380px; min-width: 0; }
#mfaHint > .spacer { display: none; }
#pk116 { min-width: 0; }
.envpick116 { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface2); padding: 10px 12px 4px; margin-bottom: 14px; }
.envpick116 > .toolbar { margin-bottom: 8px; }
.envpick116 .ep116-box { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.envpick116 fieldset { margin: 0 0 8px; }
.envpick116 .ep116-none { margin: 4px 0 10px; }
.rdone116:not(.rx116) > .rstages { display: none; }
.rdone116 > .row .rx116btn { margin-left: auto; }
/*§9100 Teil bewegung116.css */
/* =====================================================================
   skillomat Zentrale 1.16.0 · Bewegung: Schalter „Animationen“, kleine Hilfen und erklärende Figuren
   Schalter: <html data-motion="on|off"> (ui/skal-bewegung.js = frontend/shared/bewegung81000.js, im Kopf ohne defer).
   „off“ beendet jede Animation und jeden Übergang sofort im Endzustand; „Bewegung reduzieren“ des Geräts schaltet immer ab.
   Tokens: app.css (--mo-*, Aliasse der vorhandenen --ease-out/--t-ui). Nur transform/opacity, 120–320 ms, als Übergang.
   Figuren-Stil gleich der Hauptanwendung (frontend/bewegung81000.css › .fg81000).
   ===================================================================== */
html[data-motion="off"]:not(#mo116), html[data-motion="off"]:not(#mo116) *,
html[data-motion="off"]:not(#mo116) *::before, html[data-motion="off"]:not(#mo116) *::after {
  animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
/* Hilfen (BEWEGUNG81000.enter/check/fresh) */
.mo81000-enter { opacity: 0 !important; transform: translateY(6px) !important; }
.mo81000-fresh { opacity: 0; transform: translateY(4px); }
.mo81000-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-start: 6px; vertical-align: -3px; color: var(--ok); opacity: 0; transform: scale(.9); pointer-events: none; }
.mo81000-ok path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mo81000-ok.on { opacity: 1; transform: none; }
.mo81000-ok.on path { stroke-dashoffset: 0; }
:root:not([data-motion="off"]) .mo81000-ok { transition: opacity var(--mo-t-exit) var(--mo-ease-out), transform var(--mo-t-ui) var(--mo-ease-out); }
:root:not([data-motion="off"]) .mo81000-ok path { transition: stroke-dashoffset 220ms var(--mo-ease-out) 40ms; }
/* Profilmenü: Punkt „Animationen“ mit Zustand */
.pop3-item.mo116-item[aria-pressed="true"] .mo116-st::before { content: "✓ "; color: var(--ok); }
.pop3-item.mo116-item .mo116-st { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.pop3-item.mo116-item:disabled { opacity: .6; }
/* Schalter in Darstellung & Menü und Einstellungen */
.mo116-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; min-height: 44px; }
.mo116-row > span { display: grid; gap: 2px; min-width: 0; }
.mo116-row small { color: var(--muted); }
.mo116-sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface2); cursor: pointer; }
.mo116-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform var(--mo-t-ui) var(--mo-ease-out), background-color var(--mo-t-ui) ease; }
.mo116-sw:checked { background: var(--primary); border-color: var(--primary); }
.mo116-sw:checked::after { transform: translateX(18px); background: var(--primary-ink); }
.mo116-sw:focus-visible { outline: 2px solid var(--a11y-accent-text, var(--primary)); outline-offset: 2px; }
.mo116-sw:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- erklärende Figuren (frontend/figur81000-*.js) ---------- */
.fg81000 { margin: 12px 0 0; padding: 14px 16px 12px; border: 1px solid var(--line, rgba(0, 0, 70, .1)); border-radius: var(--r-lg, 22px); background: color-mix(in srgb, var(--surface2, #f4f6fa) 70%, transparent); width: 100%; max-width: 640px; min-width: 0; box-sizing: border-box; }
.fg81000-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fg81000-head b { color: var(--ink, inherit); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg81000 svg { display: block; width: 100%; height: auto; max-height: 280px; margin: 6px auto 4px; touch-action: manipulation; }
.fg81000-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.fg81000-foot output { color: var(--ink, inherit); font-weight: 600; font-variant-numeric: tabular-nums; }
.fg81000-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.fg81000-ctl button { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong, rgba(0, 0, 70, .2)); background: var(--surface, #fff); color: var(--ink, inherit); font: inherit; font-size: 14px; cursor: pointer; }
.fg81000-ctl button[aria-pressed="true"] { background: var(--primary, #2446d8); border-color: var(--primary, #2446d8); color: var(--primary-ink, #fff); }
.fg81000-ctl button:focus-visible { outline: 2px solid var(--a11y-accent-text, #006a96); outline-offset: 2px; }
.fg81000-cap { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* Zeichnung: vier Töne je Fläche (oben hell, links mittel, rechts dunkel, Linie Tinte); hell und dunkel */
.fg81000 { --fg-ink: #1b1f4a; --fg-top: #ffffff; --fg-l: #e4e8f4; --fg-r: #c9d0e6; --fg-lo: #b3bbd6; --fg-acc: #00a6e6; --fg-acc2: #ad00ff; --fg-warn: #d97b00; --fg-bad: #e00000; --fg-shadow: rgba(36, 70, 216, .12); }
[data-theme="dark"] .fg81000 { --fg-ink: #dfe3ff; --fg-top: #2a2f7c; --fg-l: #1c2066; --fg-r: #13174f; --fg-lo: #0c0f3e; --fg-acc: #33c7ff; --fg-acc2: #c766ff; --fg-warn: #ffb547; --fg-bad: #ff6b6b; --fg-shadow: rgba(0, 185, 255, .14); }
.fg81000 .t { fill: var(--fg-top); } .fg81000 .l { fill: var(--fg-l); } .fg81000 .r { fill: var(--fg-r); } .fg81000 .lo { fill: var(--fg-lo); }
.fg81000 .ink { fill: none; stroke: var(--fg-ink); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.fg81000 .ink2 { fill: none; stroke: var(--fg-ink); stroke-width: .6; opacity: .55; stroke-linecap: round; }
.fg81000 .dot { fill: var(--fg-ink); }
.fg81000 .acc { fill: var(--fg-acc); } .fg81000 .acc2 { fill: var(--fg-acc2); } .fg81000 .warn { fill: var(--fg-warn); } .fg81000 .bad { fill: var(--fg-bad); }
.fg81000 .sh { fill: var(--fg-shadow); }
.fg81000 .lbl { fill: var(--fg-ink); font: 600 8px/1 var(--font, system-ui), sans-serif; letter-spacing: .06em; }
.fg81000 .mv { transform-box: view-box; }
:root:not([data-motion="off"]) .fg81000 .mv { transition: transform var(--mo-t-max) var(--mo-ease-out); }
:root:not([data-motion="off"]) .fg81000 .fd { transition: opacity var(--mo-t-ui) var(--mo-ease-out); }
@media (max-width: 520px) { .fg81000 { padding: 12px; } .fg81000-foot { font-size: 12.5px; } }

.fg81000 { --fg-ok: #0f8a5f; } [data-theme="dark"] .fg81000 { --fg-ok: #3ddc97; }
.fg81000 .ok81000 { fill: var(--fg-ok); }
.fg81000 [data-desk], .fg81000 .fg-col { cursor: pointer; outline: none; }
.fg81000 [data-desk][aria-disabled="true"] { cursor: not-allowed; }
.fg81000 [data-desk]:focus-visible .t, .fg81000 svg:focus-visible { outline: none; }
.fg81000 [data-desk]:focus-visible > g:nth-child(5) .ink { stroke: var(--fg-acc); stroke-width: 2.4; }
.fg81000 svg:focus-visible { box-shadow: 0 0 0 2px var(--a11y-accent-text, #006a96); border-radius: 12px; }
.fg81000 .fg-col.sel .ink { stroke-width: 1.5; }
@media (hover: hover) and (pointer: fine) { .fg81000 [data-desk]:not([aria-disabled="true"]):hover > g:nth-child(5) .ink { stroke: var(--fg-acc); stroke-width: 2; } }
/* Hilfe-Dialog: der Inhalt kann breiter als der Dialog sein (Zeile „Auf dieser Seite“) – die Figur bleibt im sichtbaren Bereich */
dialog.help .fg81000 { max-width: min(640px, calc(100vw - 48px)); }
/* Behoben (1.16.0): Der Hilfe-Dialog trägt die Klasse „help“ – die Regel des kleinen Hilfe-Knopfs (.help: 20 px hoch, inline-grid,
   Trefferfläche ::before) machte ihn zu einem schmalen Streifen; Inhalt (und die Figur) waren nur durch Scrollen im Streifen sichtbar. */
dialog.zdlg.help { height: auto; display: block; place-items: normal; font: inherit; color: var(--ink); cursor: auto; }
dialog.zdlg.help::before { content: none; }
