/* Aivis-Werkbank · interface styles (UX round 3, 16.11.2026: Apple HIG pass; review in wissen/ux_review_apple.md).
   Corporate design 27.11.2026 (briefing of the website chat, Norbert): brand colours and fonts, dark only (no light mode, no switcher).
   Fonts are served from this origin (statisch/schrift/), no external requests. Structure: fonts, tokens, base, layout, components, screens. */

/* ------------------------------------------------------------ fonts (SIL Open Font License, copied from the website) */
@font-face { font-family: "Manrope"; src: url("../schrift/manrope-var-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../schrift/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------ tokens (dark, the only version) */
:root {
  color-scheme: dark;
  /* surfaces: brand dark grey #1b1a19 with warm steps */
  --grund: #121110; --flaeche: #1b1a19; --flaeche-2: #2a2826; --flaeche-3: #3a3836; --kopf: rgba(18, 17, 16, .82);
  --fuell: rgba(168, 163, 156, .16); --fuell-stark: rgba(168, 163, 156, .26);
  /* text: every pair on --flaeche, --flaeche-2 and --grund is at least 4.5 : 1 */
  --text: #f4f2ef; --text-2: #a8a39c; --text-3: #97928b;
  --linie: #3a3836; --linie-fein: #2a2826;
  /* accent = signal yellow (text, links, rings, active states, the main button); text on yellow is dark */
  --akzent: #ffff00; --akzent-fuell: #ffff00; --auf-akzent: #161514; --akzent-tint: rgba(255, 255, 0, .12); --akzent-tint-stark: rgba(255, 255, 0, .2);
  /* second colour = violet (done steps, secondary accent); --zweit is text-safe on dark, --zweit-fuell carries white text */
  --zweit: #a493f5; --zweit-fuell: #5a3fd0; --zweit-tint: rgba(90, 63, 208, .24);
  /* states carry meaning, not brand: unchanged from the former dark version */
  --gut: #30d158; --gut-fuell: #248a3d; --gut-tint: rgba(48, 209, 88, .2);
  --warn: #ffb340; --warn-tint: rgba(255, 159, 10, .2);
  --schlecht: #ff6961; --schlecht-fuell: #d70015; --schlecht-tint: rgba(255, 69, 58, .2);
  /* provenance classes */
  --k-page: #4cc77c; --k-config: #64a8ff; --k-rule: #b79cf0; --k-model: #f0a742; --k-inventory: #7fb8b8; --k-unclassified: #ff6961;
  --schatten: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 0, 0, .28);
  --schatten-hoch: 0 10px 40px rgba(0, 0, 0, .6);
  --ring: 0 0 0 3px rgba(255, 255, 0, .55);
  --marke-zeichen: #fff;
  --segment: #4a4744;             /* selected segment: a raised warm grey (the card colour would vanish on the dark track) */

  /* type: Manrope for everything that is operated, read or counted; Instrument Serif only for the one big title of a view (h1) */
  --schrift: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-titel: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-gross: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Consolas, Menlo, monospace;
  --t-gross: 30px; --t-titel: 21px; --t-kopf: 17px; --t-text: 15px; --t-fuss: 13px; --t-klein: 12px;

  /* 4-pt spacing grid */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;
  --r-klein: 8px; --r: 12px; --r-gross: 16px;
  --ziel: 36px;                   /* control height with a mouse; 44 px on touch and phone (below) */
  --dauer: 180ms; --kurve: cubic-bezier(.25, .1, .25, 1);
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: var(--t-text)/1.47 var(--schrift); letter-spacing: -.005em;
       background: var(--grund); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { font-family: var(--schrift-titel); color: var(--text); text-wrap: balance; }
h1 { font-family: var(--schrift-gross); font-size: calc(var(--t-gross) + 4px); line-height: 1.1; font-weight: 400; letter-spacing: -.005em; margin: 0; }
h2 { font-size: var(--t-titel); line-height: 1.25; font-weight: 650; letter-spacing: -.015em; margin: 0 0 var(--s2); }
h3 { font-size: var(--t-kopf); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin: var(--s5) 0 var(--s2); }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }
a { color: var(--akzent); text-decoration: none; border-radius: 4px; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
b, strong { font-weight: 600; }
.leise { color: var(--text-2); } .klein { font-size: var(--t-fuss); } .winzig { font-size: var(--t-klein); }
.mono, pre, code { font-family: var(--mono); font-size: 12.5px; }
.umbruch { overflow-wrap: anywhere; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.17em; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); }
a:focus-visible { box-shadow: var(--ring); text-decoration: none; }
main:focus, h1:focus { box-shadow: none; }
[hidden] { display: none !important; }
::selection { background: var(--akzent-tint-stark); }

/* skip link: visible only with the keyboard */
.sprung { position: fixed; left: var(--s3); top: -60px; z-index: 50; background: var(--akzent-fuell); color: var(--auf-akzent); padding: var(--s2) var(--s4);
          border-radius: var(--r-klein); font-weight: 600; transition: top var(--dauer) var(--kurve); }
.sprung:focus { top: var(--s3); text-decoration: none; }

/* ------------------------------------------------------------ header */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--kopf); border-bottom: 1px solid var(--linie-fein);
        -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.kopf-zeile { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s6); min-height: 52px; }
.marke { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 650; color: var(--text); letter-spacing: -.01em; white-space: nowrap; padding: var(--s1); margin-left: calc(-1 * var(--s1)); }
.marke:hover { text-decoration: none; }
.marke-zeichen { width: 24px; height: 24px; color: var(--akzent-fuell); vertical-align: 0; }
#pfad { display: flex; align-items: center; min-width: 0; flex: 1; font-size: 14px; color: var(--text-2); }
#pfad ol { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; min-width: 0; }
#pfad li { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
#pfad li:last-child { overflow: hidden; }
#pfad li:last-child span { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 500; }
#pfad a { color: var(--text-2); padding: var(--s1) 2px; }
#pfad a:hover { color: var(--text); text-decoration: none; }
#pfad svg.i { width: 14px; height: 14px; margin: 0 var(--s1); color: var(--text-3); }
.umgebung { font-size: var(--t-klein); font-weight: 600; padding: 2px var(--s2); border-radius: 999px; background: var(--fuell); color: var(--text-2); white-space: nowrap; }
.umgebung.online { background: var(--gut-tint); color: var(--gut); }
.umgebung:empty { display: none; }
#benutzer { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-fuss); color: var(--text-2); white-space: nowrap; }
#benutzer:empty { display: none; }
.kosten { font-size: var(--t-klein); color: var(--text-2); white-space: nowrap; }
@media (max-width: 960px) { .kosten { display: none !important; } }
.kosten:empty { display: none; }
/* progress bar under the header while a page loads (shown after a short delay, see app.js) */
.fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0; transition: opacity var(--dauer); }
.fortschritt::before { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--akzent-fuell); border-radius: 2px; animation: gleiten 1.1s var(--kurve) infinite; }
body.laedt .fortschritt { opacity: 1; }
body.laedt main { opacity: .55; transition: opacity var(--dauer) var(--kurve); }
@keyframes gleiten { from { left: -30%; } to { left: 100%; } }

/* ------------------------------------------------------------ layout */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--s7) var(--s6) var(--s8); transition: opacity var(--dauer) var(--kurve); }
.seitenkopf { margin: 0 0 var(--s6); display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3) var(--s4); }
.seitenkopf > div:first-child { flex: 1 1 320px; min-width: 0; }
.seitenkopf .ueber { font-size: var(--t-fuss); font-weight: 600; color: var(--text-2); margin: 0 0 var(--s1); letter-spacing: 0; }
.seitenkopf .ueber a { color: var(--text-2); }
.seitenkopf h1 { overflow-wrap: anywhere; }
.seitenkopf .einleitung { margin: var(--s2) 0 0; }
.einleitung { max-width: 680px; color: var(--text-2); font-size: var(--t-text); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s4); }
.raster-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.abschnitt { margin: var(--s7) 0 0; }
.abschnitt > h2 { margin-bottom: var(--s3); }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.abschnitt-kopf h2 { margin: 0; }
footer.fuss { max-width: 1200px; width: 100%; margin: 0 auto; padding: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
              align-items: center; justify-content: space-between; font-size: var(--t-klein); color: var(--text-2); border-top: 1px solid var(--linie-fein); }
footer.fuss p { margin: 0; }

/* ------------------------------------------------------------ cards */
.karte { background: var(--flaeche); border-radius: var(--r-gross); padding: var(--s5); margin: 0 0 var(--s4); box-shadow: var(--schatten);
         border: 1px solid var(--linie-fein); min-width: 0; }
.karte > h2:first-child, .karte > .abschnitt-kopf:first-child { margin-top: 0; }
.karte > :last-child { margin-bottom: 0; }
.karte.abschnitt { margin-top: var(--s7); }
.karte.ohne-rand { padding: 0; overflow: hidden; }
.karte.hervor { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent), var(--schatten); }
.karte.halt { border-color: var(--schlecht); box-shadow: 0 0 0 1px var(--schlecht), var(--schatten); }

/* disclosure (details) */
details.karte { padding: 0; }
details.karte > summary { list-style: none; display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); min-height: 56px;
                          cursor: pointer; font-weight: 600; font-size: var(--t-kopf); border-radius: var(--r-gross); }
details.karte > summary::-webkit-details-marker { display: none; }
details.karte > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
                                 transform: rotate(-45deg); transition: transform var(--dauer) var(--kurve); flex: none; }
details.karte[open] > summary::after { transform: rotate(45deg); }
details.karte > summary .leise { font-weight: 400; font-size: var(--t-fuss); }
details.karte > .inhalt { padding: 0 var(--s5) var(--s5); }
details.klein-auf > summary { cursor: pointer; color: var(--akzent); font-size: var(--t-fuss); font-weight: 500; padding: var(--s1) 0; width: fit-content; border-radius: 4px; }

/* ------------------------------------------------------------ buttons */
button, .knopf { -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.005em;
                 display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--ziel); padding: 0 var(--s4);
                 border-radius: 980px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2;
                 background: var(--akzent-fuell); color: var(--auf-akzent);
                 transition: background-color var(--dauer) var(--kurve), opacity var(--dauer), transform 80ms var(--kurve), box-shadow var(--dauer); }
button:hover, .knopf:hover { text-decoration: none; filter: brightness(1.08); }
button:active, .knopf:active { transform: scale(.97); }
button.zweit, .knopf.zweit { background: var(--akzent-tint); color: var(--akzent); }
button.zweit:hover, .knopf.zweit:hover { background: var(--akzent-tint-stark); filter: none; }
button.schlicht, .knopf.schlicht { background: transparent; color: var(--akzent); padding: 0 var(--s2); }
button.schlicht:hover, .knopf.schlicht:hover { background: var(--fuell); filter: none; }
button.gefahr, .knopf.gefahr { background: var(--schlecht-fuell); color: #fff; }
button.gefahr.zweit { background: var(--schlecht-tint); color: var(--schlecht); }
button.klein, .knopf.klein { font-size: 13px; min-height: 30px; padding: 0 var(--s3); }
button:disabled, .knopf[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; filter: none; }
button.arbeitet { pointer-events: none; }
button.arbeitet::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
                          animation: drehen .7s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.knoepfe { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.zeile { display: flex; gap: var(--s2) var(--s3); align-items: center; flex-wrap: wrap; margin: var(--s3) 0; }
.zeile:first-child { margin-top: 0; } .zeile:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ form controls */
input, select, textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie);
                          border-radius: var(--r-klein); min-height: var(--ziel); padding: 0 var(--s3); max-width: 100%;
                          transition: border-color var(--dauer), box-shadow var(--dauer); }
input:focus-visible, select:focus-visible, textarea:focus-visible, input:focus, select:focus, textarea:focus { border-color: var(--akzent); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:disabled, textarea:disabled, select:disabled { opacity: .6; }
textarea { width: 100%; padding: var(--s2) var(--s3); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; resize: vertical; }
select { padding-right: var(--s7); -webkit-appearance: none; appearance: none;
         background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
         background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--akzent-fuell); flex: none; }
label { display: block; }
.feld { display: flex; flex-direction: column; gap: 6px; margin: 0 0 var(--s4); font-size: var(--t-fuss); font-weight: 500; color: var(--text); }
.feld > span.hinweis, .hinweis { font-weight: 400; color: var(--text-2); font-size: var(--t-klein); }
.feld input:not([type]), .feld input[type="text"], .feld input[type="password"], .feld select { width: 100%; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 var(--s4); }
label.inline { display: inline-flex; gap: var(--s2); align-items: center; margin-right: var(--s4); }
/* consent row: the checkbox that unlocks an action with cost or effect outside */
label.freigabe { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--warn-tint);
                 color: var(--text); font-size: var(--t-fuss); cursor: pointer; margin: var(--s3) 0; min-height: 44px; }
label.freigabe input { margin-top: 1px; }
/* file drop zone around a native file input */
.ablage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); text-align: center;
          padding: var(--s6) var(--s4); border: 1.5px dashed var(--linie); border-radius: var(--r); background: var(--flaeche-2); color: var(--text-2);
          font-size: var(--t-fuss); transition: border-color var(--dauer), background-color var(--dauer); cursor: pointer; }
.ablage svg.i { width: 28px; height: 28px; color: var(--akzent); }
.ablage b { color: var(--text); font-size: 15px; }
.ablage input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; min-height: 0; }
.ablage:hover, .ablage.ueber { border-color: var(--akzent); background: var(--akzent-tint); }
.ablage:focus-within { border-color: var(--akzent); box-shadow: var(--ring); }
.ablage.gewaehlt { border-style: solid; border-color: var(--gut); background: var(--gut-tint); }
.ablage.gewaehlt svg.i { color: var(--gut); }
.ablage.klein-ablage { padding: var(--s4); flex-direction: row; gap: var(--s2); }
.ablage.klein-ablage svg.i { width: 20px; height: 20px; }

/* ------------------------------------------------------------ badges, chips, messages */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px var(--s2) 2px 7px; border-radius: 999px; font-size: var(--t-klein); font-weight: 600;
         line-height: 18px; white-space: nowrap; background: var(--fuell); color: var(--text-2); vertical-align: 1px; }
.badge svg.i { width: 12px; height: 12px; vertical-align: 0; }
.badge.gut { background: var(--gut-tint); color: var(--gut); }
.badge.schlecht { background: var(--schlecht-tint); color: var(--schlecht); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.laeuft { background: var(--akzent-tint); color: var(--akzent); }
.badge.laeuft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulsieren 1.4s ease-in-out infinite; }
.badge.ohne { padding-left: var(--s2); }
@keyframes pulsieren { 50% { opacity: .3; } }
.chip { display: inline-block; padding: 1px var(--s2); margin: 2px 0; border-radius: 6px; font-size: var(--t-klein); line-height: 18px; background: var(--fuell); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.meldung { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r); margin: var(--s3) 0;
           background: var(--fuell); color: var(--text); font-size: var(--t-fuss); }
.meldung > svg.i { width: 20px; height: 20px; margin-top: 0; flex: none; }
.meldung > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.meldung b { display: block; font-size: 14px; }
.meldung.fehler { background: var(--schlecht-tint); } .meldung.fehler > svg.i { color: var(--schlecht); }
.meldung.gut { background: var(--gut-tint); } .meldung.gut > svg.i { color: var(--gut); }
.meldung.info > svg.i { color: var(--akzent); }
.meldung.warn { background: var(--warn-tint); } .meldung.warn > svg.i { color: var(--warn); }
.meldung.gross { padding: var(--s5); }
.meldung .knoepfe { margin-top: var(--s3); }
.leer { text-align: center; color: var(--text-2); padding: var(--s7) var(--s4); }
.leer b { display: block; color: var(--text); font-size: var(--t-kopf); margin-bottom: var(--s1); }
.skelett { display: block; height: 14px; border-radius: 7px; background: var(--fuell); margin: var(--s2) 0; width: 55%; animation: pulsieren 1.6s ease-in-out infinite; }
.skelett.breit { width: 85%; height: 28px; border-radius: 8px; margin-bottom: var(--s5); }
.laden-platz { padding: var(--s2) 0; }

/* ------------------------------------------------------------ lists (Apple inset grouped list) */
ul.liste { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border-radius: var(--r-gross); border: 1px solid var(--linie-fein);
           box-shadow: var(--schatten); overflow: hidden; }
.karte ul.liste { border: 0; box-shadow: none; border-radius: var(--r); background: transparent; margin: 0 calc(-1 * var(--s3)); }
ul.liste > li { position: relative; }
ul.liste > li + li::before { content: ""; position: absolute; top: 0; left: var(--s4); right: 0; border-top: 1px solid var(--linie-fein); }
.listen-zeile { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 56px; color: var(--text); }
a.listen-zeile:hover { background: var(--flaeche-2); text-decoration: none; }
a.listen-zeile:active { background: var(--flaeche-3); }
a.listen-zeile:focus-visible { box-shadow: inset var(--ring); border-radius: var(--r); }
.listen-zeile .haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.listen-zeile .titel { font-weight: 500; overflow-wrap: anywhere; }
.listen-zeile .unter { font-size: var(--t-fuss); color: var(--text-2); overflow-wrap: anywhere; }
.listen-zeile .rechts { display: flex; align-items: center; gap: var(--s2); flex: none; color: var(--text-2); font-size: var(--t-fuss); font-variant-numeric: tabular-nums; }
.listen-zeile > svg.i.chevron { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.listen-zeile .chips { margin-top: 2px; }

/* ------------------------------------------------------------ segmented control (tabs, filters, theme) */
.tabs, .segment { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fuell); max-width: 100%; overflow-x: auto;
                  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar, .segment::-webkit-scrollbar { display: none; }
.tabs { margin: 0 0 var(--s6); }
.tabs a, .segment button, .segment label { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px;
                                           padding: 0 var(--s4); border-radius: 8px; color: var(--text); font-size: 13.5px; font-weight: 500;
                                           background: transparent; white-space: nowrap; transition: background-color var(--dauer) var(--kurve); }
.tabs a:hover, .segment button:hover, .segment label:hover { text-decoration: none; background: var(--fuell); filter: none; }
.tabs a[aria-current="page"], .segment button[aria-checked="true"], .segment label:has(input:checked) { background: var(--flaeche); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.segment button { min-height: 28px; color: var(--text); }
.segment button:active { transform: none; }
.segment label { cursor: pointer; position: relative; }
.segment label input { position: absolute; opacity: 0; pointer-events: none; }
.segment label:has(input:focus-visible) { box-shadow: var(--ring); }
.segment .zahl { color: var(--text-2); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ figures */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s2); margin: var(--s4) 0; }
.kennzahlen > div { display: flex; flex-direction: column; gap: 2px; padding: var(--s3); border-radius: var(--r); background: var(--flaeche-2); min-width: 0; }
.kennzahlen b { font-family: var(--schrift-titel); font-size: 26px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
                display: flex; align-items: center; gap: 6px; }
.kennzahlen b svg.i { width: 22px; height: 22px; }
.kennzahlen b.gut { color: var(--gut); } .kennzahlen b.aus { color: var(--text-3); }
.kennzahlen span { font-size: var(--t-klein); color: var(--text-2); }
.kennzahlen.gross { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin: 0 0 var(--s4); }
.kennzahlen.gross > div { background: var(--flaeche); border: 1px solid var(--linie-fein); box-shadow: var(--schatten); border-radius: var(--r-gross); padding: var(--s4) var(--s5); }
.kennzahlen.gross b { font-size: 34px; }
.balken { height: 6px; background: var(--fuell); border-radius: 3px; overflow: hidden; margin-top: var(--s3); }
.balken > div { height: 100%; background: var(--akzent-fuell); border-radius: 3px; transition: width .4s var(--kurve); }

/* ------------------------------------------------------------ tables */
.tabelle { overflow-x: auto; margin: 0 calc(-1 * var(--s1)); padding: 0 var(--s1); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--linie-fein); vertical-align: top; }
tr:last-child > td { border-bottom: 0; }
th { color: var(--text-2); font-weight: 600; font-size: var(--t-klein); text-transform: none; border-bottom-color: var(--linie); white-space: nowrap; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
td.knoepfe-zelle { white-space: nowrap; text-align: right; }
.phase td { background: var(--flaeche-2); font-weight: 600; font-size: var(--t-klein); color: var(--text-2); padding-top: var(--s2); }

/* ------------------------------------------------------------ code and logs */
pre { background: var(--flaeche-2); border-radius: var(--r); padding: var(--s3) var(--s4); overflow: auto; max-height: 520px; white-space: pre-wrap;
      word-break: break-word; margin: 0; line-height: 1.5; color: var(--text); tab-size: 2; }
pre.konsole { background: #0c0b0a; color: #e8e6e2; max-height: 60vh; }
.code-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 0 var(--s2); }

/* ------------------------------------------------------------ provenance */
.k-page { --k: var(--k-page); } .k-config { --k: var(--k-config); } .k-rule { --k: var(--k-rule); } .k-model { --k: var(--k-model); }
.k-inventory { --k: var(--k-inventory); } .k-unclassified { --k: var(--k-unclassified); }
.anteile { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: var(--s4) 0 var(--s3); background: var(--fuell); gap: 2px; }
.anteile > div { background: var(--k); min-width: 3px; }
.legende { display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; font-size: var(--t-fuss); color: var(--text-2); margin: 0 0 var(--s3); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.legende b { color: var(--text); font-variant-numeric: tabular-nums; }
.chip[class*="k-"] { background: color-mix(in srgb, var(--k) 14%, transparent); color: var(--k); font-weight: 600; }
table.herkunft td { font-size: 13px; }
table.herkunft td:nth-child(2) { overflow-wrap: anywhere; }
table.herkunft td:last-child { overflow-wrap: anywhere; width: 38%; }
table.herkunft td:first-child { white-space: nowrap; }

/* ------------------------------------------------------------ start page: domain cards */
.karte.domain { display: flex; flex-direction: column; margin: 0; transition: box-shadow var(--dauer) var(--kurve), transform var(--dauer) var(--kurve); }
.karte.domain:hover { box-shadow: var(--schatten-hoch); }
.karte.domain .domain-kopf { display: flex; align-items: flex-start; gap: var(--s3); }
.karte.domain .domain-kopf > div { flex: 1; min-width: 0; }
.karte.domain h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.karte.domain h2 a { color: var(--text); }
.karte.domain .web { font-size: var(--t-fuss); color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.karte.domain .web svg.i { width: 12px; height: 12px; }
.karte.domain .stand { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-fuss); color: var(--text-2); margin: 0 0 var(--s4); }
.karte.domain .knoepfe { margin-top: auto; }
.karte.domain p.text { font-size: 14px; color: var(--text-2); margin: var(--s4) 0; }

/* ------------------------------------------------------------ job page: guided flow (vertical timeline) */
ol.ablauf { list-style: none; padding: 0; margin: 0 0 var(--s6); position: relative; }
ol.ablauf li { position: relative; display: flex; gap: var(--s4); padding: 0 0 var(--s4); }
ol.ablauf li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--linie); }
ol.ablauf li.erledigt:not(:last-child)::before { background: var(--gut); opacity: .5; }
ol.ablauf .punkt { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 14px;
                   background: var(--flaeche); border: 2px solid var(--linie); color: var(--text-2); position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
ol.ablauf .punkt svg.i { width: 16px; height: 16px; }
ol.ablauf li.erledigt .punkt { background: var(--zweit-fuell); border-color: var(--zweit-fuell); color: #fff; }
ol.ablauf li.naechster .punkt { background: var(--akzent-fuell); border-color: var(--akzent-fuell); color: var(--auf-akzent); box-shadow: 0 0 0 5px var(--akzent-tint); }
ol.ablauf .schritt { flex: 1; min-width: 0; background: var(--flaeche); border: 1px solid var(--linie-fein); border-radius: var(--r-gross); padding: var(--s4) var(--s5);
                     box-shadow: var(--schatten); }
ol.ablauf li.naechster .schritt { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent), var(--schatten); }
ol.ablauf li.entfaellt .schritt { background: transparent; box-shadow: none; border-style: dashed; }
ol.ablauf .schritt h2 { font-size: var(--t-kopf); margin: 4px 0 var(--s1); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
ol.ablauf .schritt p { color: var(--text-2); font-size: 14px; margin: 0; }
ol.ablauf .schritt .zeile { margin: var(--s3) 0 0; }
ol.ablauf .schritt .zeile:empty { display: none; }

/* ------------------------------------------------------------ result page: page rows */
.seiten-liste { list-style: none; margin: 0; padding: 0; }
.seiten-liste > li { border-top: 1px solid var(--linie-fein); padding: var(--s4) 0; }
.seiten-liste > li:first-child { border-top: 0; padding-top: 0; }
.seiten-liste .seite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: start; }
.seiten-liste .seite-titel { font-weight: 600; overflow-wrap: anywhere; }
.seiten-liste .seite-url { font-size: var(--t-fuss); overflow-wrap: anywhere; display: inline-block; margin: 2px 0 var(--s2); }
.seiten-liste .seite-rechts { display: flex; align-items: center; gap: var(--s2); }
.seiten-liste .groesse { font-size: var(--t-klein); color: var(--text-2); font-variant-numeric: tabular-nums; margin-right: var(--s1); white-space: nowrap; }
.seiten-liste .aufklapp { margin-top: var(--s3); padding: var(--s4); border-radius: var(--r); background: var(--flaeche-2); animation: einblenden var(--dauer) var(--kurve); }
.seiten-liste .aufklapp pre { background: var(--flaeche); max-height: 480px; }
.seiten-liste .aufklapp .tabelle { background: var(--flaeche); border-radius: var(--r-klein); margin: 0; padding: 0 var(--s2); }
@keyframes einblenden { from { transform: translateY(-4px); } }
.paket { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; padding: var(--s4); border-radius: var(--r); background: var(--flaeche-2); margin: var(--s3) 0; }
.paket > svg.i { width: 36px; height: 36px; color: var(--akzent); }
.paket .haupt { flex: 1 1 200px; min-width: 0; }
.paket .haupt b { display: block; overflow-wrap: anywhere; }
.paket .haupt span { font-size: var(--t-fuss); color: var(--text-2); }

/* ------------------------------------------------------------ question dialog */
.frage { border-left: 4px solid var(--linie); }
.frage.e-regel { border-left-color: var(--warn); } .frage.e-domain_entscheid { border-left-color: var(--akzent); }
.frage.e-website { border-left-color: var(--text-3); } .frage.e-fehlalarm { border-left-color: var(--gut); }
.frage .frage-text { font-size: var(--t-kopf); font-weight: 500; margin: var(--s3) 0 var(--s2); }
.frage .vorschlag { background: var(--flaeche-2); border-radius: var(--r-klein); padding: var(--s3); font-size: 14px; margin: var(--s3) 0; }
.optionen { display: flex; flex-direction: column; gap: var(--s1); margin: var(--s3) 0; }
.optionen label { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); min-height: 44px; border-radius: var(--r-klein);
                  border: 1px solid var(--linie-fein); cursor: pointer; transition: background-color var(--dauer), border-color var(--dauer); }
.optionen label:hover { background: var(--flaeche-2); }
.optionen label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-tint); }
.optionen label:has(input:disabled) { cursor: default; }
.aktionsleiste { position: sticky; bottom: var(--s3); z-index: 5; background: var(--kopf); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
                 box-shadow: var(--schatten-hoch); }

/* ------------------------------------------------------------ misc screens */
iframe { width: 100%; height: 75vh; border: 0; border-radius: var(--r); background: #fff; display: block; }
.karte.rahmen { padding: var(--s2); }
form.anmelden { max-width: 400px; margin: 8vh auto var(--s8); padding: var(--s7) var(--s6); text-align: center; }
form.anmelden .marke-gross { width: 56px; height: 56px; color: var(--akzent-fuell); margin: 0 auto var(--s4); display: block; }
form.anmelden h1 { font-size: 26px; margin-bottom: var(--s2); }
form.anmelden .feld, form.anmelden .meldung { text-align: left; }
form.anmelden .feld { margin-top: var(--s4); }
form.anmelden input { width: 100%; min-height: 44px; font-size: 16px; }
form.anmelden button { width: 100%; margin-top: var(--s4); min-height: 44px; font-size: 16px; }

/* alert dialog */
dialog.dialog { border: 0; padding: 0; border-radius: 14px; width: min(92vw, 380px); background: var(--flaeche); color: var(--text); box-shadow: var(--schatten-hoch); }
dialog.dialog::backdrop { background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
dialog.dialog[open] { animation: dialog-auf 200ms var(--kurve); }
dialog.dialog form { padding: var(--s6) var(--s5) var(--s5); text-align: center; }
dialog.dialog h2 { font-size: var(--t-kopf); margin: 0 0 var(--s2); }
dialog.dialog p { font-size: 14px; color: var(--text-2); margin: 0 0 var(--s5); }
.dialog-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.dialog-knoepfe button { min-height: 44px; }
@keyframes dialog-auf { from { transform: scale(1.04); } }

/* ------------------------------------------------------------ touch and phone */
@media (pointer: coarse) { :root { --ziel: 44px; } button.klein, .knopf.klein { min-height: 40px; } .tabs a, .segment label { min-height: 40px; } }
@media (max-width: 900px) {
  .raster-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --ziel: 44px; --t-gross: 26px; --t-titel: 19px; }
  .kopf-zeile { padding: var(--s2) var(--s4); gap: var(--s2); flex-wrap: wrap; }
  .marke span { display: none; }
  #pfad { order: 3; flex-basis: 100%; font-size: 13px; }
  .umgebung { margin-left: auto; }
  .kosten { display: none; }
  main { padding: var(--s5) var(--s4) var(--s7); }
  .karte { padding: var(--s4); border-radius: var(--r); }
  details.karte > summary { padding: var(--s3) var(--s4); }
  details.karte > .inhalt { padding: 0 var(--s4) var(--s4); }
  footer.fuss { padding: var(--s4); }
  input, select, textarea { font-size: 16px; }            /* no zoom on focus in iOS Safari */
  button.klein, .knopf.klein { min-height: 40px; font-size: 14px; }
  .tabs { display: flex; margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); border-radius: 0; padding: 2px var(--s4); background: transparent; }
  .tabs a { background: var(--fuell); min-height: 44px; }
  .segment label { min-height: 44px; }
  .tabs a[aria-current="page"] { background: var(--akzent-fuell); color: var(--auf-akzent); box-shadow: none; }
  .seiten-liste .seite { grid-template-columns: minmax(0, 1fr); }
  .seiten-liste .seite-rechts { justify-content: flex-start; }
  .seiten-liste .seite-rechts button { flex: 1; }
  .seiten-liste .aufklapp { padding: var(--s3); margin-left: calc(-1 * var(--s2)); margin-right: calc(-1 * var(--s2)); }
  /* provenance table becomes stacked rows on a phone */
  table.herkunft tr:first-child { display: none; }
  table.herkunft tr, table.herkunft td { display: block; width: 100%; border: 0; padding: 2px 0; max-width: none; }
  table.herkunft tr { border-top: 1px solid var(--linie-fein); padding: var(--s2) 0; }
  .karte { overflow-wrap: anywhere; }
  .listen-zeile { padding: var(--s3); }
  .paket .knoepfe { width: 100%; }
  .paket .knoepfe > * { flex: 1; }
  .aktionsleiste { bottom: 0; border-radius: var(--r) var(--r) 0 0; margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); }
}

/* ------------------------------------------------------------ calm motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .fortschritt::before { left: 0; width: 100%; opacity: .6; }
  button:active, .knopf:active { transform: none; }
}

/* ------------------------------------------------------------ second pass (16.11.2026): quieter, fewer repeated accents */
#pfad.einzeln { visibility: hidden; }
button.grau, .knopf.grau { background: var(--fuell); color: var(--text); }
button.grau:hover, .knopf.grau:hover { background: var(--fuell-stark); filter: none; }
.karte.domain .wert { display: flex; align-items: baseline; gap: var(--s2); margin: var(--s5) 0 var(--s1); }
.karte.domain .wert b { font-family: var(--schrift-titel); font-size: 40px; line-height: 1; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.karte.domain .wert span { color: var(--text-2); font-size: 14px; }
.karte.domain p.text { margin: var(--s5) 0 var(--s2); }
.karte.domain .stand { margin-bottom: var(--s5); }
ol.ablauf li.entfaellt .punkt { background: transparent; border-style: dashed; color: var(--text-3); }
ol.ablauf li.entfaellt .schritt h2 { color: var(--text-2); }
.suche { display: flex; align-items: center; gap: var(--s3); margin: var(--s3) 0 var(--s4); }
.suche input { flex: 1; min-width: 0; max-width: 420px; border-radius: 10px; background: var(--fuell); border-color: transparent; }
.suche input:focus { background: var(--flaeche); }
.seiten-liste { margin-top: var(--s4); }
.seiten-liste .chip { font-size: 11.5px; line-height: 17px; }
@media (max-width: 720px) { .suche input { max-width: none; } #pfad.einzeln { display: none; } }
.tabs a[aria-current="page"], .segment button[aria-checked="true"], .segment label:has(input:checked) { background: var(--segment); }
@media (max-width: 720px) { .tabs a[aria-current="page"] { background: var(--akzent-fuell); } }
@media (max-width: 720px), (pointer: coarse) { .segment button { min-height: 44px; } }

/* ------------------------------------------------------------ UX round 4 (16.11.2026): the living machine
   Live displays (wissen/plan_ux_lebendige_maschine.md). Bars show real counts; motion only glides between two real values.
   An indeterminate bar (.unbestimmt) means: working, no measure exists. */
.marke-name { display: inline-flex; flex-direction: column; line-height: 1.15; }
.marke-name small { font-size: 10.5px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.uhr, .maschine-zahl, .arbeit-zahl, .fenster .werte, .fenster .nr { font-variant-numeric: tabular-nums; }

/* bars */
.balken { position: relative; }
.balken > div { transition: width .6s var(--kurve); min-width: 0; }
.balken.gross { height: 10px; border-radius: 5px; }
.balken.gross > div { border-radius: 5px; }
.balken.voll > div, .balken.fertig > div { background: var(--gut-fuell); }
.balken.halt > div { background: var(--schlecht-fuell); }
.balken.aktiv:not(.unbestimmt) > div { position: relative; overflow: hidden; }
.balken.aktiv:not(.unbestimmt) > div::after { content: ""; position: absolute; inset: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: glanz 2.2s linear infinite; }
.balken.unbestimmt > div { width: 28% !important; position: absolute; top: 0; bottom: 0; opacity: .75; animation: pendeln 1.6s ease-in-out infinite alternate; transition: none; }
@keyframes glanz { from { transform: translateX(-60px); } to { transform: translateX(1200px); } }
@keyframes pendeln { from { left: 0; } to { left: 72%; } }

/* ring on a domain card */
.ring { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; }
.ring svg { width: 40px; height: 40px; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring .spur { stroke: var(--fuell-stark); }
.ring .wert { stroke: var(--akzent-fuell); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 18px 18px; transition: stroke-dashoffset .6s var(--kurve); }
.ring.unbestimmt svg { animation: drehen 1.4s linear infinite; }
.ring b { position: absolute; font-size: 11px; font-weight: 650; color: var(--text); }
.ring-platz:empty { display: none; }

/* the machine card: big percentage, state, bar, chapters */
.maschine-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3) var(--s4); flex-wrap: wrap; }
.maschine-stand { display: flex; align-items: center; gap: var(--s4); min-width: 0; flex: 1 1 280px; }
.maschine-zahl { font-family: var(--schrift-titel); font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--text); min-width: 2ch; white-space: nowrap; flex: none; }
.maschine-zahl > span { font-size: 22px; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin-left: 2px; }
.maschine-zahl.leer { display: grid; place-items: center; min-width: 64px; height: 52px; }
.maschine-text { min-width: 0; }
.maschine-text .zeile { margin: 0 0 2px; }
.maschine-text b { font-size: var(--t-kopf); font-family: var(--schrift-titel); }
.maschine-text p { margin: 0; }
.maschine .balken { margin-top: var(--s4); }
ol.phasen { list-style: none; display: flex; gap: 3px; padding: 0; margin: var(--s4) 0 0; }
ol.phasen li { flex: 1 1 0; min-width: 6px; display: flex; flex-direction: column; gap: 4px; }
ol.phasen .spur { height: 4px; border-radius: 2px; background: var(--fuell-stark); overflow: hidden; }
ol.phasen .spur i { display: block; height: 100%; background: var(--akzent-fuell); border-radius: 2px; transition: width .6s var(--kurve); }
ol.phasen li.fertig .spur i { background: var(--gut-fuell); }
ol.phasen li.halt .spur { background: var(--schlecht-fuell); }
ol.phasen .name { font-size: 10.5px; line-height: 1.2; color: var(--text-3); white-space: nowrap; overflow: hidden; min-height: 13px; }
ol.phasen li.laeuft .name { color: var(--akzent); font-weight: 600; }
ol.phasen li.fertig .name { color: var(--text-2); }
.kapitel { margin: var(--s2) 0 0; }
.kapitel:empty { display: none; }

/* the panel of what runs now, and the windows into the logic */
.karte.jetzt { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent-tint-stark), var(--schatten); }
.jetzt-kopf { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; }
.jetzt-titel { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.jetzt h3 { margin: var(--s4) 0 2px; font-size: var(--t-text); }
.jetzt .abschnitt-kopf h2 { font-size: var(--t-text); }
.art { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--fuell); color: var(--text-2); vertical-align: 1px; white-space: nowrap; }
.art-P { background: var(--gut-tint); color: var(--gut); }
.art-X { background: var(--akzent-tint); color: var(--akzent); }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; display: inline-block; }
.punkt.gut { background: var(--gut-fuell); } .punkt.warn { background: #f59e0b; } .punkt.schlecht { background: var(--schlecht-fuell); }
ul.fenster { list-style: none; margin: var(--s2) 0 0; padding: 0; }
ul.fenster:empty { display: none; }
ul.fenster li { display: flex; align-items: baseline; gap: var(--s2) var(--s3); padding: 7px 0; border-top: 1px solid var(--linie-fein); font-size: var(--t-fuss); min-width: 0; }
ul.fenster li:first-child { border-top: 0; }
ul.fenster li > .punkt { align-self: center; }
ul.fenster .nr { color: var(--text-3); min-width: 2.5ch; text-align: right; flex: none; }
ul.fenster .name { flex: 1 1 40%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
ul.fenster .name .unter { display: block; color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.fenster .werte { flex: 0 1 auto; color: var(--text-2); text-align: right; white-space: nowrap; }
ul.fenster.roh li > .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
ul.fenster.roh li:first-child > .mono { color: var(--text); }
ul.fenster li:nth-child(n+7) { opacity: .7; } ul.fenster li:nth-child(n+10) { opacity: .45; }
ul.fenster li.neu { animation: hereingleiten .35s var(--kurve); }
@keyframes hereingleiten { from { transform: translateY(-8px); background: var(--akzent-tint); } to { transform: none; background: transparent; } }

/* a running task as a row (overview strip, job page) */
a.arbeit { display: block; color: var(--text); padding: var(--s3) 0; border-top: 1px solid var(--linie-fein); border-radius: 0; }
a.arbeit:first-of-type { border-top: 0; padding-top: var(--s1); } a.arbeit:last-child { padding-bottom: 0; }
a.arbeit:hover { text-decoration: none; }
a.arbeit:hover b { color: var(--akzent); }
.arbeit-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.arbeit-kopf .haupt { display: flex; flex-direction: column; min-width: 0; }
.arbeit-kopf .haupt b { overflow-wrap: anywhere; }
.arbeit-zahl { font-family: var(--schrift-titel); font-size: 28px; line-height: 1; font-weight: 650; letter-spacing: -.03em; flex: none; }
.arbeit-zahl > span:not(.punkte) { font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.punkte { display: inline-flex; gap: 5px; align-items: center; }
.punkte i { width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); animation: pulsieren 1.2s ease-in-out infinite; }
.punkte i:nth-child(2) { animation-delay: .2s; } .punkte i:nth-child(3) { animation-delay: .4s; }
#arbeit { margin: 0 0 var(--s4); }
#arbeit:empty { display: none; }
.bereit { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: var(--t-fuss); color: var(--text-2); margin: 0; }
.bereit b { color: var(--text); }
#jl:empty { display: none; }
#jl .meldung { margin-bottom: var(--s4); }

/* preview of a domain on its card */
.karte.domain { overflow: hidden; }
.vorschau { --marke: var(--flaeche-3); --marke-text: var(--text); display: flex; align-items: stretch; gap: var(--s4); height: 128px; padding: var(--s4) var(--s5);
  margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); background: var(--marke); color: var(--marke-text); border-radius: 0; overflow: hidden; }
.vorschau:hover { text-decoration: none; }
.vorschau.bild { padding: 0; }
.vorschau.bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.v-name { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-titel { font-family: var(--schrift-titel); font-size: 17px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v-seite { flex: none; width: 78px; align-self: flex-end; height: 112px; margin-bottom: calc(-1 * var(--s4)); padding: 8px 8px 0; border-radius: 6px 6px 0 0; display: flex; flex-direction: column; gap: 5px;
  background: color-mix(in srgb, var(--marke-text) 14%, transparent); }
.v-seite i { display: block; height: 4px; border-radius: 2px; background: currentColor; opacity: .45; }
.v-seite i.v-kopf { height: 14px; width: 100%; opacity: .28; margin-bottom: 3px; }
.vorschau.monogramm { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; }
.vorschau.monogramm b { font-family: var(--schrift-titel); font-size: 44px; line-height: 1; font-weight: 700; opacity: .85; }
.vorschau.monogramm span { font-size: var(--t-klein); opacity: .75; }
.karte.domain .domain-kopf { align-items: center; }

/* fresh measurements appear one after the other (real values, staggered) */
details.frisch tbody tr { animation: einblenden .4s var(--kurve) both; animation-delay: calc(var(--n, 0) * 45ms); }

@media (max-width: 720px) {
  .maschine-zahl { font-size: 40px; }
  .maschine-stand { gap: var(--s3); }
  ol.phasen .name { display: none; }
  .vorschau { margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s4); padding: var(--s3) var(--s4); height: 112px; }
  .v-seite { height: 100px; margin-bottom: calc(-1 * var(--s3)); }
  ul.fenster li { flex-wrap: wrap; }
  ul.fenster .name { flex-basis: 60%; }
  ul.fenster .werte { flex-basis: 100%; text-align: left; white-space: normal; padding-left: calc(8px + var(--s3)); }
}
@media (prefers-reduced-motion: reduce) {
  .balken.unbestimmt > div { left: 0; width: 100% !important; opacity: .35; }
  .balken.aktiv > div::after { display: none; }
  .ring.unbestimmt svg { animation: none; }
}
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ UX round 5 (17.11.2026): softer dark, dashboard rings, micro-animations
   Review of the online screenshots by Norbert. Motion stays bound to real values and is switched off by prefers-reduced-motion
   (rule above: every animation and transition lasts 1 ms). */


/* rings: larger sizes, tones, centre content */
.ring.gross { width: 64px; height: 64px; }
.ring.gross svg { width: 64px; height: 64px; }
.ring.gross b { font-size: 15px; font-family: var(--schrift-titel); letter-spacing: -.02em; }
.ring.gross b small { font-size: 10px; font-weight: 600; color: var(--text-2); margin-left: 1px; }
.ring.gross circle { stroke-width: 3; }
.ring.gut .wert, .ring.voll .wert { stroke: var(--gut-fuell); }
.ring.warn .wert { stroke: #f59e0b; }
.ring.stand { width: 44px; height: 44px; }
.ring.stand svg { width: 44px; height: 44px; }
.ring.stand b { font-size: 11.5px; }
.ring b svg.i { width: 16px; height: 16px; color: var(--gut); vertical-align: 0; }
.ring.gross b svg.i { width: 24px; height: 24px; }
.ring.voll b svg.i { animation: knall .5s var(--kurve) .45s both; }
.ring .wert { transition: stroke-dashoffset .9s cubic-bezier(.2, .7, .2, 1); }
.seitenkopf .knoepfe .ring.gross { margin-left: var(--s2); }

/* key figures over all domains */
.gesamtstand { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.gs { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-gross); background: var(--flaeche); border: 1px solid var(--linie-fein);
  box-shadow: var(--schatten); min-width: 0; animation: aufsteigen .5s var(--kurve) both; }
.gs:nth-child(2) { animation-delay: 60ms; } .gs:nth-child(3) { animation-delay: 120ms; }
.gs > div { display: flex; flex-direction: column; min-width: 0; }
.gs b { font-family: var(--schrift-titel); font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.gs span { font-size: var(--t-fuss); color: var(--text-2); }
.gs-kreis { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--akzent-tint); color: var(--akzent); flex: none; }
.gs-kreis svg.i { width: 28px; height: 28px; }

/* donut of shares */
.herkunft-bild { display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap; margin: var(--s4) 0; }
.donut { position: relative; display: inline-grid; place-items: center; width: 168px; height: 168px; flex: none; }
.donut svg { width: 168px; height: 168px; transform: rotate(-90deg); animation: eindrehen .9s cubic-bezier(.2, .7, .2, 1) both; }
.donut circle { fill: none; stroke-width: 5; }
.donut .spur { stroke: var(--fuell); }
.donut .seg { stroke: var(--k); stroke-linecap: butt; animation: segment 1s cubic-bezier(.2, .7, .2, 1) both; }
.donut-mitte { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.donut-mitte b { font-family: var(--schrift-titel); font-size: 26px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.donut-mitte span { font-size: var(--t-klein); color: var(--text-2); }
.donut-legende { list-style: none; margin: 0; padding: 0; flex: 1 1 240px; max-width: 420px; }
.donut-legende li { display: grid; grid-template-columns: 12px 1fr auto 64px; align-items: center; gap: var(--s3); padding: 6px 0; border-top: 1px solid var(--linie-fein); font-size: var(--t-fuss); }
.donut-legende li:first-child { border-top: 0; }
.donut-legende i { width: 12px; height: 12px; border-radius: 50%; background: var(--k); }
.donut-legende b { font-variant-numeric: tabular-nums; }
.donut-legende em { font-style: normal; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
@keyframes segment { from { stroke-dasharray: 0 100; } }
@keyframes eindrehen { from { transform: rotate(-200deg); opacity: 0; } }

/* failure in plain words */
.meldung .ursache { display: block; margin-top: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-klein); background: var(--fuell); color: var(--text-2); }
.meldung.gross { margin-bottom: var(--s4); }

/* micro-animations */
@keyframes aufsteigen { from { opacity: 0; transform: translateY(10px); } }
@keyframes knall { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: none; } }
@keyframes hof { 0%, 100% { box-shadow: 0 0 0 5px var(--akzent-tint); } 50% { box-shadow: 0 0 0 10px var(--akzent-tint); } }
.raster.gestaffelt > * { animation: aufsteigen .5s var(--kurve) both; }
.raster.gestaffelt > :nth-child(1) { animation-delay: 80ms; } .raster.gestaffelt > :nth-child(2) { animation-delay: 130ms; }
.raster.gestaffelt > :nth-child(3) { animation-delay: 180ms; } .raster.gestaffelt > :nth-child(4) { animation-delay: 230ms; }
.raster.gestaffelt > :nth-child(5) { animation-delay: 280ms; } .raster.gestaffelt > :nth-child(6) { animation-delay: 330ms; }
.raster.gestaffelt > :nth-child(n+7) { animation-delay: 380ms; }
.seitenkopf { animation: aufsteigen .35s var(--kurve) both; }
.karte.domain { transition: box-shadow var(--dauer) var(--kurve), transform var(--dauer) var(--kurve), border-color var(--dauer); }
.karte.domain:hover { transform: translateY(-3px); }
.vorschau.bild img { transition: transform .6s var(--kurve); }
.karte.domain:hover .vorschau.bild img { transform: scale(1.04); }
.v-seite { transition: transform .4s var(--kurve); }
.karte.domain:hover .v-seite { transform: translateY(-6px); }
.listen-zeile .chevron { transition: transform var(--dauer) var(--kurve); }
a.listen-zeile:hover .chevron { transform: translateX(3px); }
ol.ablauf li.erledigt .punkt svg.i { animation: knall .45s var(--kurve) both; }
ol.ablauf li.naechster .punkt { animation: hof 2s ease-out infinite; }
.badge.gut svg.i { animation: knall .4s var(--kurve) both; }
.meldung { animation: aufsteigen .3s var(--kurve) both; }
details.karte[open] > .inhalt { animation: aufsteigen .3s var(--kurve) both; }
.kennzahlen.gross > div { animation: aufsteigen .45s var(--kurve) both; }
.kennzahlen.gross > div:nth-child(2) { animation-delay: 60ms; } .kennzahlen.gross > div:nth-child(3) { animation-delay: 120ms; }
ol.ablauf > li { animation: aufsteigen .4s var(--kurve) both; }
ol.ablauf > li:nth-child(2) { animation-delay: 50ms; } ol.ablauf > li:nth-child(3) { animation-delay: 100ms; } ol.ablauf > li:nth-child(4) { animation-delay: 150ms; }
ol.ablauf > li:nth-child(5) { animation-delay: 200ms; } ol.ablauf > li:nth-child(n+6) { animation-delay: 250ms; }
ul.liste > li { animation: aufsteigen .35s var(--kurve) both; }
ul.liste > li:nth-child(2) { animation-delay: 30ms; } ul.liste > li:nth-child(3) { animation-delay: 60ms; } ul.liste > li:nth-child(n+4) { animation-delay: 90ms; }
.tabs a, .segment button { transition: background-color var(--dauer) var(--kurve), color var(--dauer), box-shadow var(--dauer); }
label.freigabe { transition: background-color var(--dauer), box-shadow var(--dauer); }
label.freigabe:has(input:checked) { background: var(--gut-tint); }
input[type="checkbox"] { transition: transform 120ms var(--kurve); }
input[type="checkbox"]:checked { animation: knall .3s var(--kurve); }

@media (max-width: 720px) {
  .gesamtstand { grid-template-columns: 1fr; gap: var(--s2); }
  .gs { padding: var(--s3) var(--s4); }
  .gs b { font-size: 22px; }
  .herkunft-bild { justify-content: center; gap: var(--s4); }
  .donut-legende { max-width: none; }
}
.ring b { inset: 0; display: grid; place-items: center; line-height: 1; }
.ring b small { align-self: center; }
.ring.gross b { display: flex; align-items: baseline; justify-content: center; top: 50%; bottom: auto; transform: translateY(-50%); }

/* ------------------------------------------------------------ UX round 6 (17.11.2026): the guided way
   wissen/plan_ux_gefuehrter_weg.md. Guided view by default; .nur-experte shows only in the expert view (body.experte). */
.nur-experte { display: none !important; }
body.experte .nur-experte { display: revert !important; }
body.experte a.knopf.nur-experte, body.experte .knoepfe .nur-experte { display: inline-flex !important; }
body.experte div.nur-experte, body.experte details.nur-experte { display: block !important; }

/* switch «Experte» in the header */
.schalter { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; padding: 0 var(--s2) 0 var(--s1); background: transparent; color: var(--text-2);
  font-size: var(--t-klein); font-weight: 600; border-radius: 999px; white-space: nowrap; }
.schalter:hover { background: var(--fuell); filter: none; }
.schalter-knopf { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--fuell-stark); transition: background-color var(--dauer) var(--kurve); flex: none; }
.schalter-knopf::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform var(--dauer) var(--kurve); }
.schalter[aria-pressed="true"] { color: var(--text); }
.schalter[aria-pressed="true"] .schalter-knopf { background: var(--akzent-fuell); }
.schalter[aria-pressed="true"] .schalter-knopf::after { transform: translateX(12px); }

/* sheet «Website hinzufügen» */
dialog.dialog.blatt { width: min(94vw, 520px); }
dialog.dialog.blatt form { text-align: left; padding: var(--s6); }
dialog.dialog.blatt h2 { font-size: var(--t-titel); }
dialog.dialog.blatt p { margin-bottom: var(--s4); }
dialog.dialog.blatt .dialog-knoepfe { margin-top: var(--s4); grid-template-columns: auto 1fr; }
.seitenkopf .knoepfe > button svg.i { margin-right: 6px; }

/* content that lives inside a step of the way */
ol.ablauf .schritt .zeile > .im-schritt { flex: 1 1 100%; min-width: 0; }
.frage-blatt { padding: var(--s4); border-radius: var(--r); background: var(--flaeche-2); animation: aufsteigen .3s var(--kurve) both; }
.frage-kopf { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s3); }
.frage-kopf > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.frage-kopf .frage-text { font-size: var(--t-kopf); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.frage-blatt .vorschlag { background: var(--flaeche); border-radius: var(--r-klein); padding: var(--s3); font-size: 14px; margin: var(--s3) 0; }
.frage-blatt fieldset.optionen { border: 0; padding: 0; }
.frage-blatt .optionen label { background: var(--flaeche); }
.frage-blatt ul.fenster { background: var(--flaeche); border-radius: var(--r-klein); padding: 0 var(--s3); margin: var(--s3) 0; }
.frage-blatt ul.fenster .name { white-space: normal; }
.frage-knoepfe { margin-top: var(--s4); }
.frage-knoepfe #falle { margin-left: auto; }
.bau-maschine { padding: var(--s4); border-radius: var(--r); background: var(--flaeche-2); }
.bau-jetzt { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-klein); background: var(--flaeche); border: 1px solid var(--akzent); }
.bau-jetzt h3 { margin: var(--s4) 0 2px; font-size: var(--t-text); }
.bau-maschine > p:last-child { margin: var(--s3) 0 0; }
ol.ablauf .schritt .zeile label.freigabe { margin: 0; }

@media (max-width: 720px) {
  .schalter { font-size: 0; gap: 0; padding: 0 var(--s1); min-height: 44px; }
  .frage-blatt, .bau-maschine { padding: var(--s3); }
  .frage-knoepfe #falle { margin-left: 0; }
  dialog.dialog.blatt form { padding: var(--s5) var(--s4); }
}

/* ------------------------------------------------------------ UX round 7 (18.11.2026): native history table, gate halt in the step */
.tabelle.verlauf td.zahl, .tabelle.verlauf th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle.verlauf td.neubau { color: var(--akzent); font-weight: 600; }
.tabelle.verlauf td.ref { color: var(--text-2); }
.tabelle.verlauf td.ref svg.i { width: 13px; height: 13px; color: var(--gut); }
.tabelle.verlauf tbody tr { animation: aufsteigen .35s var(--kurve) both; }
.tabelle.verlauf tbody tr:hover { background: var(--flaeche-2); }
.verlauf-kopf b.schlecht { color: var(--schlecht); }
.badge.schlecht.ohne, .badge.gut.ohne { font-size: 11.5px; }
.bau-halt { padding: var(--s4); border-radius: var(--r); background: var(--warn-tint); animation: aufsteigen .3s var(--kurve) both; }
.bau-halt .halt-schritt { margin: var(--s3) 0 var(--s2); font-weight: 600; overflow-wrap: anywhere; }
.bau-halt .ursache { display: block; padding: var(--s2) var(--s3); border-radius: var(--r-klein); background: var(--flaeche); color: var(--text-2); margin: 0 0 var(--s3); }
.bau-halt .knoepfe { margin: var(--s3) 0; }
.bau-halt input { background: var(--flaeche); }
@media (max-width: 720px) { .ziel-wort { display: none; } .bau-halt { padding: var(--s3); } }

/* notice: a newer interface is on the server (after a deploy) */
.neuer-stand { display: flex; align-items: center; justify-content: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s2) var(--s4); background: var(--akzent-tint);
  color: var(--text); font-size: var(--t-fuss); animation: aufsteigen .3s var(--kurve) both; }
.neuer-stand svg.i { color: var(--akzent); }

.bau-halt #bh-klar:empty { display: none; }
.bau-halt #bh-klar .meldung { margin: var(--s3) 0; background: var(--flaeche); }

/* ------------------------------------------------------------ logo (18.11.2026): the Aivis-OS mark as image; round, on a transparent ground, fits light and dark */
img.marke-zeichen { width: 28px; height: 28px; border-radius: 50%; display: block; flex: none; }
form.anmelden img.marke-gross { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--s4); display: block; }
.maschine-kopf .knoepfe #bab { margin-left: auto; }

/* ------------------------------------------------------------ health score «Auf der Website» (W-75, 18.11.2026) */
.ring.schlecht .wert { stroke: var(--schlecht-fuell); }
.ring.gesund b { font-size: 13px; font-family: var(--schrift-titel); letter-spacing: -.02em; }
.pfeil { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-klein); font-weight: 650; padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfeil.auf { background: var(--gut-tint); color: var(--gut); }
.pfeil.ab { background: var(--schlecht-tint); color: var(--schlecht); }
.pfeil.gleich { background: var(--fuell); color: var(--text-2); }
.karte.domain .web-stand { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text); }
.karte.domain .web-stand b { font-variant-numeric: tabular-nums; }
#web:empty { display: none; }
.web-karte { margin-bottom: var(--s6); }
.web-karte h3 { margin: var(--s5) 0 var(--s3); }
.web-kopf { display: flex; align-items: center; gap: var(--s5) var(--s6); flex-wrap: wrap; }
.web-kopf > .knoepfe { margin: 0 0 0 auto; align-self: flex-start; }
.web-donut .donut, .web-donut .donut svg { width: 148px; height: 148px; }
.web-donut .donut-mitte b { font-size: 34px; }
.web-donut .donut-mitte b small { font-size: 14px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.seg.g-gruen { --k: var(--gut-fuell); } .seg.g-gelb { --k: #f59e0b; } .seg.g-rot { --k: var(--schlecht-fuell); }
.web-zahlen { flex: 1 1 260px; min-width: 0; }
.web-satz { font-size: var(--t-titel-3, 19px); margin: 0 0 var(--s3); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.web-farben { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; gap: var(--s2) var(--s5); flex-wrap: wrap; font-size: var(--t-fuss); }
.web-farben li { display: inline-flex; align-items: center; gap: 6px; }
.web-farben i { width: 11px; height: 11px; border-radius: 50%; background: var(--k); flex: none; }
.web-farben b { font-variant-numeric: tabular-nums; }
.web-zahlen p.klein { margin: 0; }
.web-laeuft { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }
.web-aufgaben { display: grid; gap: var(--s2); }
details.web-aufgabe { border: 1px solid var(--linie-fein); border-radius: var(--r); background: var(--flaeche-2); }
details.web-aufgabe > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--s2) var(--s3); padding: var(--s3) var(--s4); cursor: pointer; min-height: 56px; }
details.web-aufgabe > summary::-webkit-details-marker { display: none; }
details.web-aufgabe.bewusst { background: transparent; border-style: dashed; }          /* noindex: neutral, not a fault */
details.web-aufgabe.bewusst .punkt { background: var(--text-3); }
details.web-aufgabe > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(-45deg); transition: transform .2s var(--kurve); flex: none; margin-left: var(--s2); }
details.web-aufgabe[open] > summary::after { transform: rotate(45deg); }
.wa-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.wa-text .klein { color: var(--text-2); }
.wa-knopf { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; flex: none; }
.wa-knopf:empty { display: none; }
ul.web-seiten { list-style: none; margin: 0; padding: 0 var(--s4) var(--s3); max-height: 340px; overflow: auto; }
ul.web-seiten li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--linie-fein); font-size: var(--t-fuss); }
ul.web-seiten a { overflow-wrap: anywhere; }
ul.web-seiten a svg.i { width: 12px; height: 12px; margin-left: 4px; }
.web-linie { margin: 0; }
.web-linie svg { width: 100%; height: auto; display: block; overflow: visible; }
.web-linie .hilfe { stroke: var(--linie-fein); stroke-width: 1; }
.web-linie .linie { fill: none; stroke: var(--akzent-fuell); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; animation: linie-zeichnen 1s var(--kurve) both; }
.web-linie .flaeche { fill: var(--akzent-tint); stroke: none; animation: einblenden .8s ease both; }
.web-linie circle { fill: var(--flaeche); stroke: var(--akzent-fuell); stroke-width: 2; }
.web-linie circle.letzter { fill: var(--akzent-fuell); }
.web-linie .aus { stroke: var(--schlecht-fuell); stroke-width: 2; }
.web-linie figcaption { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s2); }
@keyframes linie-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) {
  .web-kopf > .knoepfe { margin-left: 0; width: 100%; }
  details.web-aufgabe > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  details.web-aufgabe > summary::after { grid-column: 3; grid-row: 1; }
  .wa-knopf { grid-column: 2 / 4; grid-row: 2; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .web-linie .linie, .web-linie .flaeche { animation: none; } }
/* P8 (W-85): Nachtrag way on the card «Auf der Website»: choice per page, live steps, stop, built package */
ul.nt-seiten li.nt-mit { flex-direction: column; align-items: stretch; }
ul.nt-seiten li.nt-aus { opacity: .75; }
.nt-wahl-zeile { display: inline-flex; align-items: center; gap: var(--s2); overflow-wrap: anywhere; cursor: pointer; }
.nt-wahl-zeile input { width: 18px; height: 18px; accent-color: var(--akzent-fuell); flex: none; }
.nt-zustand { display: flex; flex-direction: column; gap: 4px; padding: var(--s2) var(--s3); border-radius: var(--r); background: var(--flaeche); }
.nt-zustand.nt-bereit { background: var(--gut-tint); }
.nt-zustand .knoepfe, .nt-halt .knoepfe { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: 4px; }
.nt-halt > div { display: flex; flex-direction: column; gap: 4px; }
ol.nt-phasen { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
ol.nt-phasen li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  background: var(--fuell); color: var(--text-2); border: 0; }
ol.nt-phasen li.fertig { background: var(--gut-tint); color: var(--gut); }
ol.nt-phasen li.laeuft { background: var(--akzent-tint); color: var(--akzent); font-weight: 600; }
ol.nt-phasen li.halt { background: var(--warn-tint); color: var(--warn); font-weight: 600; }
ol.nt-phasen li.nicht_noetig { opacity: .7; }
ol.nt-phasen li svg.i { width: 12px; height: 12px; }
.nt-dreh { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: nt-dreh 1s linear infinite; }
@keyframes nt-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nt-dreh { animation: none; } }
.nt-fehler { color: var(--schlecht); }
