/* LIXplorer – Gestaltung nach dem Schaeffler-Erscheinungsbild (Grün #00893D, Grautöne, Roboto).
   Keine externen Schriften oder Bibliotheken (DSGVO): Roboto liegt unter static/kern/fonts (SIL OFL 1.1). */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-latin-400-normal.4279528ce0e7.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-latin-500-normal.55cfeb5304f0.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-latin-700-normal.10a07810f28f.woff2") format("woff2"); }
:root {
  --bg: #f6f7f8; --flaeche: #ffffff; --flaeche-2: #f0f2f3; --text: #2c2c2c; --gedaempft: #646464;
  --linie: #dde3e6; --linie-stark: #ced5da; --akzent: #00893d; --akzent-text: #ffffff; --akzent-hell: #e3f2e9;
  --akzent-dunkel: #006e31;
  --ok: #00793a; --ok-bg: #e3f2e9; --warn: #8a5a00; --warn-bg: #fdf1d8; --fehler: #b42318; --fehler-bg: #fdecea;
  --schatten: 0 1px 2px rgba(0,0,0,.05);
  --dev: #2a6ebb; --test: #b45309; --prod: #b42318; --sonst: #646464;
  --v-lesen: #2a6ebb; --v-anlegen: #00793a; --v-aendern: #a15c00; --v-archiv: #6d4fb3; --v-loeschen: #b42318; --v-sonst: #646464;
  --radius: 4px; --schrift: "Roboto", "Noto Sans", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141718; --flaeche: #1d2123; --flaeche-2: #24292b; --text: #e8ebec; --gedaempft: #a3abb0;
    --linie: #33393c; --linie-stark: #454c50; --akzent: #3fb56f; --akzent-text: #07140c; --akzent-hell: #15301f;
    --akzent-dunkel: #5cc98a;
    --ok: #5cc98a; --ok-bg: #15301f; --warn: #f2c063; --warn-bg: #3a2d10; --fehler: #ff8a80; --fehler-bg: #3b1714;
    --schatten: 0 1px 2px rgba(0,0,0,.4);
    --dev: #6fa8ea; --test: #f59e0b; --prod: #f87171; --sonst: #a3abb0;
    --v-lesen: #7fb0ff; --v-anlegen: #5cc98a; --v-aendern: #f2c063; --v-archiv: #b9a2ff; --v-loeschen: #ff8a80; --v-sonst: #a3abb0;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--schrift); -webkit-font-smoothing: antialiased; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h2.gross { font-size: 1.45rem; margin: 0; }
h3 { font-size: 1rem; margin: 0 0 .6rem; }
h4 { font-size: .92rem; margin: 1.2rem 0 .5rem; }
code { font-family: var(--mono); font-size: .86em; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 4px; padding: 0 .3em; }
.klein { font-size: .82rem; }
code.klein { font-size: .76rem; }
.gedaempft { color: var(--gedaempft); }
.fehlertext { color: var(--fehler); }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.25rem; padding: .6rem 1.5rem;
  background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: 1.15rem; letter-spacing: .01em; }
.marke:hover { text-decoration: none; }
.marke b { color: var(--akzent); font-weight: 700; }
.ws-wahl { display: flex; gap: .4rem; flex-wrap: wrap; }
.ws-chip { padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--linie); color: var(--text); font-size: .85rem; font-weight: 500; }
.ws-chip:hover { text-decoration: none; border-color: var(--linie-stark); }
.ws-chip.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.kopf-link { color: var(--text); font-weight: 500; }
.menue { position: relative; }
.menue summary { cursor: pointer; list-style: none; padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--linie); font-size: .9rem; }
.menue summary::-webkit-details-marker { display: none; }
.menue-inhalt { position: absolute; right: 0; top: calc(100% + .35rem); background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 8px; box-shadow: var(--schatten); min-width: 11rem; padding: .35rem; display: grid; }
.menue-inhalt a, .menue-inhalt button { display: block; text-align: left; padding: .45rem .6rem; border-radius: 6px; color: var(--text);
  background: none; border: 0; font: inherit; cursor: pointer; }
.menue-inhalt a:hover, .menue-inhalt button:hover { background: var(--flaeche-2); text-decoration: none; }

.haupt { max-width: 1440px; margin: 0 auto; padding: 1.5rem; }

/* Meldungen */
.meldungen { display: grid; gap: .5rem; margin-bottom: 1rem; }
.meldung { padding: .65rem .9rem; border-radius: 8px; border: 1px solid transparent; }
.meldung-success { background: var(--ok-bg); color: var(--ok); }
.meldung-warning { background: var(--warn-bg); color: var(--warn); }
.meldung-error { background: var(--fehler-bg); color: var(--fehler); }
.meldung-info { background: var(--akzent-hell); color: var(--akzent); }
.hinweise { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: .4rem .9rem; margin-bottom: 1rem; font-size: .88rem; }
.hinweise p { margin: .3rem 0; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 8px; border: 1px solid var(--linie-stark);
  background: var(--flaeche); color: var(--text); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.knopf:hover { text-decoration: none; background: var(--flaeche-2); }
.knopf.klein { padding: .25rem .55rem; font-size: .8rem; }
.knopf-primaer { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf-primaer:hover { background: var(--akzent); filter: brightness(1.08); }
.knopf-gefahr { border-color: var(--fehler); color: var(--fehler); }
.knopf-breit { width: 100%; justify-content: center; padding: .65rem; }
.knopf[disabled] { opacity: .65; cursor: progress; }
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.knopfreihe form { margin: 0; }

/* Workspace-Kopf und Reiter */
.ws-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ws-kopf h1 { margin: 0; }
.ueberzeile { margin: 0 0 .2rem; color: var(--gedaempft); font-size: .88rem; display: flex; gap: .5rem; align-items: center; }
.ws-stand { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.stand { font-size: .85rem; color: var(--gedaempft); }
.stand-alt { color: var(--warn); font-weight: 600; }
.stand-leer { color: var(--warn); }
.abruf-form { margin: 0; }
.reiter { display: flex; gap: .2rem; border-bottom: 1px solid var(--linie); margin-bottom: 1.25rem; overflow-x: auto; }
.reiter a { padding: .6rem .9rem; color: var(--gedaempft); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.reiter a:hover { color: var(--text); text-decoration: none; }
.reiter a.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }
.brotkrumen { font-size: .85rem; color: var(--gedaempft); margin: 0 0 .75rem; }

.umgebung { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: .1rem .45rem; border-radius: 4px; color: #fff; }
.umgebung.ws-dev { background: var(--dev); } .umgebung.ws-test { background: var(--test); } .umgebung.ws-prod { background: var(--prod); } .umgebung.ws-sonst { background: var(--sonst); }
@media (prefers-color-scheme: dark) { .umgebung { color: #0b1220; } }
.marke-grau { font-size: .72rem; padding: .05rem .4rem; border-radius: 4px; background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--gedaempft); }

/* Kästen, Karten, Kennzahlen */
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--schatten); }
.kasten.schmal { max-width: 640px; }
.kasten-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.kasten-kopf h2, .kasten-kopf h3 { margin: 0; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.zweispaltig > .kasten { margin-bottom: 0; }
@media (max-width: 1000px) { .zweispaltig { grid-template-columns: 1fr; } }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.karte { display: block; position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem;
  color: var(--text); box-shadow: var(--schatten); transition: border-color .15s, transform .15s; overflow: hidden; }
.karte:hover { text-decoration: none; border-color: var(--akzent); transform: translateY(-1px); }
.karte h2 { margin: .4rem 0 .1rem; font-size: 1.05rem; }
.karte p { margin: 0 0 .5rem; }
.karte.inaktiv { opacity: .6; }
.karte-kopf { display: flex; gap: .4rem; }
.typ-balken { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.typ-karte { padding-left: 1.3rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kennzahl { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--text); box-shadow: var(--schatten); }
a.kennzahl:hover { text-decoration: none; border-color: var(--akzent); }
.kennzahl .zahl { font-size: 1.8rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kennzahl .text { color: var(--gedaempft); font-size: .85rem; }
.kennzahlen-klein { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .6rem 0 .2rem; }
.kennzahlen-klein.drei { grid-template-columns: repeat(3, 1fr); }
.kennzahlen-klein dt { font-size: .72rem; color: var(--gedaempft); text-transform: uppercase; letter-spacing: .04em; }
.kennzahlen-klein dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.leer { text-align: center; padding: 3rem 1rem; background: var(--flaeche); border: 1px dashed var(--linie-stark); border-radius: var(--radius); }
.leer p { color: var(--gedaempft); max-width: 560px; margin: .5rem auto 0; }

/* Tabellen */
.tabellen-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gedaempft); font-weight: 600;
  padding: .5rem .6rem; border-bottom: 1px solid var(--linie-stark); white-space: nowrap; position: sticky; top: 0; background: var(--flaeche); }
.tabelle td { padding: .5rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tbody tr:hover td { background: var(--flaeche-2); }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle tr.inaktiv td { opacity: .6; }
.tabelle tr.unterzeile td { border-top: 0; padding-top: 0; }
.matrix th:not(:first-child), .matrix td:not(:first-child) { text-align: center; }
.matrix td:not(:first-child) { white-space: nowrap; }
.farbpunkt { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .45rem; vertical-align: baseline; }
.datentyp { font-family: var(--mono); font-size: .76rem; color: var(--gedaempft); }

.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { font-size: .8rem; padding: .08rem .5rem; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.chip.klein { font-size: .74rem; }

.verb { display: inline-block; font-size: .72rem; font-weight: 650; padding: .08rem .38rem; border-radius: 4px; margin: .08rem .12rem; border: 1px solid currentColor; line-height: 1.35; }
.v-lesen { color: var(--v-lesen); } .v-anlegen { color: var(--v-anlegen); } .v-aendern { color: var(--v-aendern); }
.v-archiv { color: var(--v-archiv); } .v-loeschen { color: var(--v-loeschen); } .v-sonst { color: var(--v-sonst); }
.v-verbot { color: var(--fehler); text-decoration: line-through; }
.legende { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }

.status { display: inline-block; font-size: .74rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-teilweise { background: var(--warn-bg); color: var(--warn); }
.status-fehler { background: var(--fehler-bg); color: var(--fehler); }
.status-laeuft { background: var(--akzent-hell); color: var(--akzent); }
.liste-abrufe { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; font-size: .9rem; }

.werkzeugleiste { display: flex; gap: .75rem; margin-bottom: 1rem; }
input[type=search], input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], input[type=date], select, textarea {
  font: inherit; font-size: .92rem; padding: .5rem .65rem; border-radius: 8px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: var(--akzent); }
.filter { width: min(420px, 100%); }
.pre, pre { margin: 0; }
pre.json, pre.protokoll { font-family: var(--mono); font-size: .8rem; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px;
  padding: .8rem 1rem; overflow: auto; max-height: 75vh; white-space: pre; }
pre.protokoll { max-height: 50vh; white-space: pre-wrap; }
.fundstellen { margin-top: 1rem; }
.fundstellen summary { cursor: pointer; font-size: .85rem; color: var(--gedaempft); }

/* Formulare */
.formular { display: grid; gap: .9rem; }
.formular label { font-weight: 550; font-size: .88rem; display: block; margin-bottom: .25rem; }
.feld input:not([type=checkbox]), .feld select, .feld textarea { width: 100%; }
.feld-haken label { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.hilfe { font-size: .8rem; color: var(--gedaempft); margin: .25rem 0 0; }
.pflicht { color: var(--fehler); }
.feld-fehler input, .feld-fehler select { border-color: var(--fehler); }
.breit-schmal { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

/* Anmeldung */
.anmelde-haupt { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.anmeldeseite { background: radial-gradient(1200px 600px at 20% -10%, var(--akzent-hell), transparent), var(--bg); }
.anmelde-karte { width: min(400px, 100%); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 2rem; box-shadow: 0 10px 30px rgba(16,24,40,.08); }
.anmelde-marke { display: flex; align-items: center; gap: .6rem; font-size: 1.6rem; }
.anmelde-marke b { color: var(--akzent); }
.anmelde-unter { color: var(--gedaempft); margin: .4rem 0 1.5rem; font-size: .9rem; }

/* Typ-Detail */
.typ-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.typ-kopf > div { flex: 1; }
.typ-kopf p { margin: .15rem 0 0; }
.typ-quadrat { width: 2.6rem; height: 2.6rem; border-radius: 9px; }

/* Metamodell */
.mm-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .75rem; font-size: .88rem; }
.mm-leiste label { display: flex; align-items: center; gap: .4rem; }
.mm-leiste select, .mm-leiste input[type=search] { padding: .35rem .55rem; }
.leiste-luecke { flex: 1; }
.mm-rahmen { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1rem; height: calc(100vh - 290px); min-height: 520px; }
@media (max-width: 1000px) { .mm-rahmen { grid-template-columns: 1fr; height: auto; } .mm-graph { height: 70vh; } }
.mm-graph { position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); min-height: 0; }
.mm-seite { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; overflow: auto; box-shadow: var(--schatten); }
.mm-info h3 { margin-bottom: .2rem; }
.mm-info ul { padding-left: 1.1rem; margin: .3rem 0 .8rem; }
.mm-info li { margin: .1rem 0; }
.mm-legende { display: grid; gap: .3rem; margin-top: 1rem; font-size: .85rem; }
.mm-legende span { display: flex; align-items: center; gap: .45rem; }
.mm-legende i { width: .85rem; height: .85rem; border-radius: 3px; display: inline-block; }
.mm-attribute { max-height: 40vh; overflow: auto; border: 1px solid var(--linie); border-radius: 6px; padding: .3rem .6rem; }
.mm-attribute div { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; padding: .12rem 0; border-bottom: 1px dotted var(--linie); }
.mm-attribute div:last-child { border-bottom: 0; }

@media (max-width: 700px) {
  .kopf { flex-wrap: wrap; padding: .6rem 1rem; }
  .haupt { padding: 1rem; }
}

/* Zugriffsstufen (Rollen-Matrix): aufsteigende Intensität einer Farbe */
:root { --stufe-1: #e3f2e9; --stufe-1-t: #00592a; --stufe-2: #b3dcc4; --stufe-2-t: #004a22; --stufe-3: #3fa36a; --stufe-3-t: #ffffff; --stufe-4: #00602b; --stufe-4-t: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root { --stufe-1: #15301f; --stufe-1-t: #9fdcb5; --stufe-2: #1f4a30; --stufe-2-t: #d6f0e0; --stufe-3: #2f8a55; --stufe-3-t: #ffffff; --stufe-4: #5cc98a; --stufe-4-t: #07140c; }
}
.stufe { display: inline-block; min-width: 4.4rem; text-align: center; font-size: .74rem; font-weight: 600; padding: .18rem .35rem; border-radius: 5px; line-height: 1.3; }
a.stufe:hover { text-decoration: none; outline: 2px solid var(--akzent); outline-offset: 1px; }
.stufe-0 { color: var(--gedaempft); background: transparent; font-weight: 400; }
.stufe-1 { background: var(--stufe-1); color: var(--stufe-1-t); }
.stufe-2 { background: var(--stufe-2); color: var(--stufe-2-t); }
.stufe-3 { background: var(--stufe-3); color: var(--stufe-3-t); }
.stufe-4 { background: var(--stufe-4); color: var(--stufe-4-t); }
.stufen-legende { display: flex; gap: .3rem; flex-wrap: wrap; }
.stufen-legende .stufe { min-width: 0; padding: .15rem .55rem; }
.matrix-rahmen { max-height: 75vh; overflow: auto; border: 1px solid var(--linie); border-radius: 8px; }
.rollenmatrix { font-size: .85rem; }
.rollenmatrix th, .rollenmatrix td { border-bottom: 1px solid var(--linie); }
.rollenmatrix thead th { position: sticky; top: 0; z-index: 2; background: var(--flaeche); vertical-align: bottom; }
.rollenmatrix .spalte-rolle { position: sticky; left: 0; z-index: 1; background: var(--flaeche); min-width: 14rem; max-width: 20rem; }
.rollenmatrix thead .spalte-rolle { z-index: 3; }
.rollenmatrix tbody tr:hover .spalte-rolle { background: var(--flaeche-2); }
.rollenmatrix .spalte-typ { padding: .5rem .2rem; text-align: center; text-transform: none; letter-spacing: 0; }
.rollenmatrix .spalte-typ a { color: var(--text); display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; }
.senkrecht { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 11rem; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; font-weight: 600; }
.typ-strich { width: 1.4rem; height: 4px; border-radius: 2px; }
.zelle-stufe { text-align: center; padding: .25rem .2rem !important; }
.haken-tabelle .haken-spalte { text-align: center; width: 1%; white-space: nowrap; }
.haken { color: var(--ok); font-weight: 700; }
tr.ohne-zugriff td { color: var(--gedaempft); }
tr.ohne-zugriff td a { color: var(--gedaempft); }
.gruppenzeile td { background: var(--flaeche-2); font-weight: 650; font-size: .8rem; color: var(--gedaempft); text-transform: uppercase; letter-spacing: .03em; }
.tabelle tbody tr.gruppenzeile:hover td { background: var(--flaeche-2); }
.sprungleiste { display: flex; gap: 1rem; margin: -.5rem 0 1rem; font-size: .85rem; }
.inline-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; }
.inline-form select { padding: .35rem .5rem; }
.inline-form .filter { width: 220px; }
.mm-gruppe { border-top: 1px solid var(--linie); padding: .35rem 0; }
.mm-gruppe summary { cursor: pointer; font-size: .9rem; }
.mm-gruppe ul { margin: .3rem 0 .2rem; font-size: .85rem; }
.mm-info h4 { margin: 1rem 0 .4rem; }
.mm-leiste .knopf[hidden] { display: none; }
.stufe-5 { background: transparent; color: var(--v-archiv); border: 1px dashed var(--v-archiv); }

/* Sprachumschalter */
.sprachwahl { display: inline-flex; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; margin: 0; }
.sprachwahl button { font: inherit; font-size: .75rem; font-weight: 650; letter-spacing: .04em; padding: .28rem .55rem; border: 0;
  background: var(--flaeche); color: var(--gedaempft); cursor: pointer; }
.sprachwahl button + button { border-left: 1px solid var(--linie); }
.sprachwahl button:hover { color: var(--text); background: var(--flaeche-2); }
.sprachwahl button.aktiv { background: var(--akzent); color: var(--akzent-text); }
.anmelde-kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* Änderungen & Vergleich */
.art { display: inline-block; font-size: .72rem; font-weight: 650; padding: .05rem .45rem; border-radius: 999px; white-space: nowrap; }
.art-neu { background: var(--ok-bg); color: var(--ok); }
.art-entfernt { background: var(--fehler-bg); color: var(--fehler); }
.art-geaendert { background: var(--warn-bg); color: var(--warn); }
.art-zaehler { display: flex; gap: .35rem; flex-wrap: wrap; }
.zaehler { font-size: .75rem; font-weight: 600; color: var(--gedaempft); background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 999px; padding: 0 .45rem; vertical-align: middle; }
.delta { font-size: .72rem; font-weight: 650; margin-left: .25rem; }
.delta.plus { color: var(--ok); } .delta.minus { color: var(--fehler); }
.nowrap { white-space: nowrap; }
.abstand-oben { margin-top: 1.5rem; }
.schmal-breit { grid-template-columns: minmax(220px, 1fr) minmax(0, 3.2fr); }
@media (max-width: 1000px) { .schmal-breit { grid-template-columns: 1fr; } }
.zeitachse { position: sticky; top: 4.5rem; max-height: calc(100vh - 6rem); overflow: auto; }
.zeitachse-liste { list-style: none; margin: 0; padding: 0 0 0 .6rem; border-left: 2px solid var(--linie); }
.zeitachse-liste li { position: relative; padding: .35rem 0 .35rem .8rem; }
.zeitachse-liste li::before { content: ""; position: absolute; left: -1.05rem; top: .8rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--flaeche); border: 2px solid var(--linie-stark); }
.zeitachse-liste li.aktiv::before { background: var(--akzent); border-color: var(--akzent); }
.zeitachse-liste a, .zeitachse-liste span { display: block; color: var(--text); }
.zeitachse-liste li.aktiv .zeit { color: var(--akzent); font-weight: 650; }
.zeitachse-liste .zeit { font-size: .88rem; }
.filterleiste { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin: .75rem 0; font-size: .85rem; }
.filterleiste label { display: flex; flex-direction: column; gap: .2rem; font-weight: 550; }
.filterleiste select, .filterleiste input { padding: .38rem .5rem; font-size: .88rem; }
.unterschied-details > summary { cursor: pointer; font-size: .85rem; color: var(--gedaempft); margin-bottom: .5rem; width: fit-content; }
.unterschied-details > summary:hover { color: var(--text); }
.unterschied-details > summary .wenn-auf, .unterschied-details[open] > summary .wenn-zu { display: none; }
.unterschied-details[open] > summary .wenn-auf { display: inline; }
.unterschied-tabelle td { vertical-align: top; }
.vergleich-wahl select { min-width: 20rem; max-width: 100%; }
.vergleich-wahl label { flex-direction: row; align-items: center; gap: .5rem; }
.seite { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 6px; font-weight: 700; color: #fff; font-size: .85rem; }
.seite-a { background: #6d4fb3; } .seite-b { background: #0f766e; }
.vergleich-kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.vergleich-kopf .kasten { margin: 0; }
.vergleich-filter { margin-bottom: 1rem; }
td.hervorgehoben { font-weight: 700; }
.art-zusatz { background: var(--akzent-hell); color: var(--akzent); }
.pfeil { align-self: center; font-size: 1.2rem; color: var(--gedaempft); padding-bottom: .3rem; }
.schalter-zeile { flex-direction: row !important; align-items: center; gap: .35rem !important; font-weight: 500 !important; padding-bottom: .45rem; }
.stufen-3 { grid-template-columns: 1fr 1fr 1fr; }
.transport-zelle div { margin-top: .2rem; }
.transport-zelle.ist-erledigt { background: var(--flaeche-2); }
.transport-zelle.ist-erledigt .art { opacity: .45; text-decoration: line-through; }
.erledigt-haken { display: inline-flex; gap: .3rem; align-items: center; margin-top: .3rem; font-size: .78rem; color: var(--gedaempft); cursor: pointer; }
.kennzahlen-klein.vier { grid-template-columns: repeat(4, 1fr); margin-bottom: 1rem; }
@media (max-width: 700px) { .kennzahlen-klein.vier { grid-template-columns: 1fr 1fr; } }

/* Statistik-Diagramme (Farben aus der validierten Referenzpalette, Slots 1–3) */
:root { --serie-1: #2a78d6; --serie-2: #eb6834; --serie-3: #1baf7a; }
@media (prefers-color-scheme: dark) { :root { --serie-1: #3987e5; --serie-2: #d95926; --serie-3: #199e70; } }
.diagramm { width: 100%; min-height: 220px; }
.viz-svg { display: block; overflow: visible; }
.viz-gitter { stroke: var(--linie); stroke-width: 1; shape-rendering: crispEdges; }
.viz-achse { fill: var(--gedaempft); font-size: 11px; font-family: var(--schrift); }
.viz-wert { fill: var(--text); font-size: 12px; font-weight: 600; font-family: var(--schrift); }
.viz-linie { fill: none; stroke: var(--serie-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-linie.duenn { stroke-width: 1.5; }
.viz-punkt { fill: var(--serie-1); stroke: var(--flaeche); stroke-width: 2; }
.viz-kreuz { stroke: var(--linie-stark); stroke-width: 1; }
.viz-marke { fill: var(--serie-1); stroke: var(--flaeche); stroke-width: 2; }
.viz-serie-1 { fill: var(--serie-1); } .viz-serie-2 { fill: var(--serie-2); } .viz-serie-3 { fill: var(--serie-3); }
.viz-hg-1 { background: var(--serie-1); } .viz-hg-2 { background: var(--serie-2); } .viz-hg-3 { background: var(--serie-3); }
.viz-tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--flaeche); color: var(--text); border: 1px solid var(--linie-stark);
  border-radius: 8px; padding: .45rem .6rem; font-size: .8rem; line-height: 1.45; box-shadow: 0 6px 18px rgba(16,24,40,.14); max-width: 320px; }
.viz-tooltip span { color: var(--gedaempft); }
.tip-schluessel { display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; margin-right: .35rem; }
.legende-viz { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .8rem; color: var(--gedaempft); }
.legende-viz span { display: inline-flex; align-items: center; gap: .35rem; }
.legende-viz i { width: .75rem; height: .75rem; border-radius: 3px; display: inline-block; }
.kleine-vielfache { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.vielfach { border: 1px solid var(--linie); border-radius: 8px; padding: .55rem .7rem .4rem; }
.vielfach-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.vielfach-name { font-size: .82rem; color: var(--gedaempft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vielfach-wert { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vielfach-linie { margin-top: .3rem; }
.tabellen-ansicht { margin-top: .75rem; }
.tabellen-ansicht summary { cursor: pointer; font-size: .82rem; color: var(--gedaempft); }
.zweispaltig.gleich { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .zweispaltig.gleich { grid-template-columns: 1fr; } }
fieldset.gruppe { border: 1px solid var(--linie); border-radius: 8px; padding: .8rem 1rem 1rem; margin: 0; display: grid; gap: .9rem; }
fieldset.gruppe legend { font-weight: 650; padding: 0 .35rem; }
.feldreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }
.feld-mehrfach > div { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.feld-mehrfach > div > div label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; margin: 0; }
.status-liste { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.status-liste dt { color: var(--gedaempft); }
.status-liste dd { margin: 0; }

/* Subtypen */
.ut-weg { display: none !important; }
.ut-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .05rem .4rem; border-radius: 999px;
  background: color-mix(in srgb, var(--akzent) 14%, transparent); color: var(--akzent); white-space: normal; }
.ut-badge-andere { background: var(--flaeche-2); color: var(--gedaempft); }
.subtyp-zeile { cursor: pointer; }
.subtyp-zeile:hover td { background: var(--flaeche-2); }
.subtyp-zeile.aktiv td { background: color-mix(in srgb, var(--akzent) 12%, transparent); font-weight: 600; }
.subtyp-stand { font-weight: 600; color: var(--text); }
.mm-subtyp { display: grid; gap: .35rem; margin: .6rem 0 .2rem; font-size: .85rem; }
.mm-subtyp select { width: 100%; }

/* Einrichtung / Datenbank */
.einrichtung-karte { width: min(640px, 100%); }
.einrichtung-titel { font-size: 1.3rem; margin: 1.25rem 0 .75rem; }
fieldset[hidden] { display: none; }

/* --- Schaeffler-Erscheinungsbild: flache Flächen, Pillen-Knöpfe, grüne Akzente --- */
body { font-size: 15px; }
h1, h2, h3 { font-weight: 500; color: var(--text); }
h1 { font-size: 1.75rem; letter-spacing: 0; }
.kopf { border-bottom: 1px solid var(--linie); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.marke { font-weight: 400; }
.marke b { color: var(--akzent); font-weight: 700; }
.knopf { border-radius: 999px; padding: .45rem 1rem; }
.knopf.klein { padding: .25rem .7rem; }
.knopf-primaer:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); filter: none; }
.knopf:not(.knopf-primaer):hover { border-color: var(--akzent); color: var(--akzent); background: var(--flaeche); }
.menue summary { border-radius: 999px; }
.kasten, .karte, .kennzahl, .mm-graph, .mm-seite { box-shadow: none; }
.anmelde-karte { border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-top: 4px solid var(--akzent); }
.anmeldeseite { background: var(--bg); }
.reiter a { font-weight: 500; }
.reiter a.aktiv { border-bottom-width: 3px; }
.meldung, .hinweise, fieldset.gruppe, .vielfach, .matrix-rahmen, pre.json, pre.protokoll { border-radius: var(--radius); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.tabelle th { color: var(--gedaempft); }
.pruefsumme { word-break: break-all; white-space: normal; }

/* Instanz-Kennung und Fußzeile */
.instanz { font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: .1rem .5rem; border-radius: 4px; color: #fff; background: var(--sonst); }
.instanz-dev { background: var(--dev); } .instanz-test { background: var(--test); } .instanz-prod { background: var(--prod); }
.fuss { max-width: 1440px; margin: 0 auto; padding: .5rem 1.5rem 1.5rem; font-size: .78rem; color: var(--gedaempft); }
.anmeldeseite .fuss { text-align: center; }
.versionsliste { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }

/* --- Konto: Registrierung, Passwort vergessen, Benutzerrollen ------------------- */
.anmelde-karte-breit { width: min(520px, 100%); }
.anmelde-titel { font-size: 1.25rem; margin: 1rem 0 .25rem; }
.anmelde-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.1rem 0 0; font-size: .88rem; }
.anmelde-karte .meldung { margin: .75rem 0 0; }
.anmelde-karte .feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.abstand-minus { margin-top: -.6rem; }
.nicht-ausfuellen { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.zaehler-marke { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; margin-left: -.35rem; border-radius: 999px; background: var(--akzent); color: #fff; font-size: .72rem; font-weight: 700; text-decoration: none; }
.zaehler-marke:hover { color: #fff; text-decoration: none; }
.rechte-matrix th.dreh { font-weight: 500; font-size: .74rem; white-space: normal; min-width: 5.5rem; max-width: 7.5rem; text-align: center; vertical-align: bottom; }
.rechte-matrix td:first-child { min-width: 260px; }
.rechte-matrix td.haken { text-align: center; color: var(--akzent); font-weight: 700; }
.rechte-matrix td.haken.nein { color: var(--linie-stark); font-weight: 400; }
.marke-wartet { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; background: #fff3cd; color: #7a5a00; border: 1px solid #f0d58a; }
.marke-rolle { display: inline-block; padding: .05rem .5rem; margin: 0 .25rem .2rem 0; border-radius: 999px; font-size: .75rem; background: var(--akzent-hell); color: var(--text); border: 1px solid var(--linie); }
.freigabe-kasten { border-left: 4px solid #f0b400; }
.auswahl-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem .9rem; }
.auswahl-gitter label { font-weight: 400; display: flex; gap: .45rem; align-items: flex-start; margin: 0; }
.auswahl-gitter label small { display: block; color: var(--gedaempft); font-size: .78rem; }
@media (prefers-color-scheme: dark) {
  .marke-wartet { background: #3d3112; color: #f3d27a; border-color: #6b5520; }
}
.klein-titel { font-size: .95rem; margin: .9rem 0 .2rem; }
.liste-schlicht { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.benutzer-rollen { max-width: 260px; }

/* --- Attribut übertragen ------------------------------------------------------- */
.wert-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .05rem .55rem; margin: 0 .3rem .3rem 0; border-radius: 999px; font-size: .8rem; border: 1px solid var(--linie); background: var(--flaeche); }
.wert-chip[data-wertfarbe]::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--chip, transparent); border: 1px solid rgba(0,0,0,.15); }
tr.ausgewaehlt td { background: var(--akzent-hell); }
.json-feld { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.35; }
.json-feld[readonly] { background: var(--bg); color: var(--gedaempft); }
.schritte { padding-left: 1.2rem; margin: 0; display: grid; gap: .4rem; }
.verlauf-eintrag { border-top: 1px solid var(--linie); padding: .55rem 0; }
.verlauf-eintrag:first-of-type { border-top: 0; }
.verlauf-eintrag p { margin: .25rem 0 0; }
form.inline { display: inline; }
.art-gleich { background: var(--akzent-hell); color: var(--akzent); }
.knopf-migration { white-space: nowrap; }

/* --- Vergleich: Übersicht je Fact-Sheet-Typ, Gruppen ------------------------------- */
.typ-uebersicht td, .typ-uebersicht th { vertical-align: top; }
.typ-uebersicht tr.ohne-unterschied td { color: var(--gedaempft); }
.typ-uebersicht .art { margin-right: .15rem; }
.filter-kasten { position: sticky; top: 0; z-index: 5; }
.filter-kasten .filterleiste { margin-bottom: .25rem; }
.filter-suche { flex: 1 1 220px; }
.filter-suche input { width: 100%; }
details.typ-gruppe { padding: 0; }
details.typ-gruppe > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: .9rem 1.25rem; }
details.typ-gruppe > summary::-webkit-details-marker { display: none; }
details.typ-gruppe > summary::before { content: "▸"; color: var(--gedaempft); transition: transform .15s; }
details.typ-gruppe[open] > summary::before { transform: rotate(90deg); }
.typ-gruppe-titel { font-weight: 650; font-size: 1.05rem; }
details.typ-gruppe[open] > summary { border-bottom: 1px solid var(--linie); }
.kat-block { padding: .75rem 1.25rem 1rem; }
.kat-block + .kat-block { border-top: 1px dashed var(--linie); }
.kat-titel { font-size: .95rem; margin: 0 0 .5rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.kat-titel .art { margin-right: .2rem; }
.knopf-migration { margin-top: .35rem; }

/* --- Rollenkonzept, Öffentlich & Einbettung -------------------------------------- */
.rechte-matrix tr.gruppen-kopf th { text-align: center; font-size: .72rem; letter-spacing: .04em; border-bottom: 2px solid var(--linie); }
.rechte-matrix th.gruppe-bearbeiten, .rechte-matrix tr.gruppen-kopf th.gruppe-bearbeiten { background: var(--akzent-hell); }
.rechte-matrix th.gruppe-verwaltung, .rechte-matrix tr.gruppen-kopf th.gruppe-verwaltung { background: var(--flaeche-2); }
.marke-oeffentlich { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; border: 1px dashed var(--akzent); color: var(--akzent); }
.einbettung { border-top: 1px solid var(--linie); padding: .8rem 0; }
.einbettung-kopf { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.einbettung-kopf form { display: inline; }
.einbettung-code { display: block; margin-top: .5rem; padding: .45rem .6rem; background: var(--bg); border: 1px solid var(--linie); border-radius: var(--radius); word-break: break-all; color: var(--gedaempft); }
.einbettung-seite { background: var(--flaeche); margin: 0; }
.einbettung-haupt { padding: .75rem; }
.einbettung-haupt .mm-rahmen { height: calc(100vh - 7.5rem); min-height: 420px; }
.einbettung-fuss { margin: .4rem 0 0; font-size: .75rem; color: var(--gedaempft); text-align: right; }
.einbettung-fuss b { color: var(--akzent); }
.kopf-anmelden { margin-left: .5rem; }

/* 1.4.0: Anmeldung mit Microsoft, Konto-Links, LeanIX-Suche */
.knopf-microsoft { gap: .55rem; font-weight: 600; border-color: var(--linie-stark); }
.knopf-microsoft svg { flex: none; }
.anmelde-oder { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0 .4rem; color: var(--gedaempft); font-size: .82rem; }
.anmelde-oder::before, .anmelde-oder::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.suchzeile { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.suchzeile input[type=search] { flex: 1 1 18rem; }
.link-kasten { font-family: var(--mono); font-size: .82rem; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px;
  padding: .7rem .8rem; white-space: pre-wrap; word-break: break-all; margin: .75rem 0; }
.schmal-kasten { max-width: 46rem; }
.umbruch { word-break: break-all; white-space: normal; }
.ereignis-liste { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.ereignis-liste li { padding: .35rem 0; border-bottom: 1px solid var(--linie); }
.ereignis-liste li:last-child { border-bottom: 0; }
.ereignis-liste time { display: block; color: var(--gedaempft); font-size: .78rem; }
.stand-tabelle td, .stand-tabelle th { white-space: normal; }

/* 1.5.0: Queue der Attribut-Übertragungen */
.reiter .zaehler { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; font-size: .72rem;
  line-height: 1.3rem; text-align: center; background: var(--akzent); color: var(--akzent-text); }
.status-grau { background: var(--flaeche-2); color: var(--gedaempft); border: 1px solid var(--linie); }
.ziel-prod { border-left: 4px solid var(--fehler); }
.bestaetigung-kasten { border-left: 4px solid var(--akzent); }
.tabelle tr.inaktiv td { opacity: .75; }

/* 1.6.0: Data Sync */
.haken-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .2rem 1rem; }
.sync-kasten { border-left: 4px solid var(--fehler); }
.liste-kompakt { margin: .2rem 0 .6rem; padding-left: 1.1rem; }
.liste-kompakt li { margin: .1rem 0; }
.protokoll-fehler { color: var(--fehler); }
.protokoll-warnung { color: var(--warn); }
pre.protokoll-detail { font-family: var(--mono); font-size: .75rem; white-space: pre-wrap; word-break: break-word; margin: .3rem 0 0; padding: .5rem; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 6px; color: var(--text); max-height: 40vh; overflow: auto; }
a.status { text-decoration: none; }
.tabelle .zahl { text-align: right; }

/* 1.6.1: Neuigkeiten */
.punkt-neu { display: inline-block; width: .5rem; height: .5rem; margin-left: .4rem; border-radius: 50%; background: var(--akzent); vertical-align: middle; }
.marke-neu { display: inline-block; font-size: .7rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); vertical-align: middle; }
.version-neu { border-left: 4px solid var(--akzent); }
.version-kasten p { margin: .3rem 0 0; }

/* 1.7.0: Wer hat geändert */
.wer-zeile { color: var(--akzent); }

/* 1.8.0: Monitoring */
.zaehler-warnung { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 999px; font-size: .7rem; line-height: 1.2rem;
  text-align: center; background: var(--fehler); color: #fff; margin-left: .2rem; }
.warnung-kasten { border-left: 4px solid var(--fehler); }
.fs-gruppe td { vertical-align: top; }
.fs-kopf td { background: var(--flaeche-2); font-weight: 600; }
.wert-alt { color: var(--fehler); }
.wert-neu { color: var(--ok); }
.ist-zurueck { opacity: .55; }
.fs-inhalt summary { cursor: pointer; }
.fs-inhalt dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .2rem .8rem; margin: .4rem 0 .2rem; color: var(--text); }
.fs-inhalt dt { color: var(--gedaempft); }
.fs-inhalt dd { margin: 0; word-break: break-word; }
a.extern { text-decoration: none; white-space: nowrap; }
.log-text { word-break: break-word; }
.log-text summary { cursor: pointer; }
.wert-alt, .wert-neu { word-break: break-word; }
