/* OMNISON · Projektseite. Flächiges Signalgelb, Schwarz für alles andere. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --gelb: #f6ee0a; --schwarz: #111111;
  /* Zwei Rollen tragen alles: Grund und Farbe. Standard = Schwarz auf Gelb. */
  --grund: #f6ee0a; --farbe: #111111; --aus: #e2da08; --rand: #d9d207; --leise: #3d3a05;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
/* Invers = Gelb auf Schwarz */
:root[data-modus="invers"] { --grund: #111111; --farbe: #f6ee0a; --aus: #262503; --rand: #2b2a05; --leise: #c9c35a; color-scheme: dark; }
/* Gegenfläche: immer die jeweils andere Fassung (Kontaktkasten, Exportkasten) */
.gegen { --grund: #111111; --farbe: #f6ee0a; --aus: #262503; --rand: #2b2a05; --leise: #c9c35a; }
:root[data-modus="invers"] .gegen { --grund: #f6ee0a; --farbe: #111111; --aus: #e2da08; --rand: #d9d207; --leise: #3d3a05; }

html { background: var(--grund); }
body { margin: 0; background: var(--grund); color: var(--farbe); font-family: var(--sans); font-size: 16px; line-height: 1.55; transition: background-color .18s, color .18s; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--farbe); color: var(--grund); text-decoration: none; }
:focus-visible { outline: 3px solid var(--farbe); outline-offset: 3px; }
svg circle, svg rect { transition: fill .18s; }
@media (prefers-reduced-motion: reduce) { body, svg circle, svg rect, .schalter .knauf { transition: none !important; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.seite { max-width: 1120px; margin: 0 auto; padding: 20px 20px 56px; }
.leiste { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.leiste .rechts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* Schalter für die Fassung: ein Punkt, der auf einer Schiene wandert */
.schalter { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; font: 500 13px var(--mono); color: var(--farbe); }
.schalter .schiene { width: 46px; height: 24px; border: 2px solid var(--farbe); border-radius: 12px; position: relative; flex: none; }
.schalter .knauf { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--farbe); transition: transform .18s; }
.schalter[aria-checked="true"] .knauf { transform: translateX(22px); }
.schalter:focus-visible { outline: 3px solid var(--farbe); outline-offset: 4px; }
.schalter:hover .schiene { background: var(--aus); }
.kopf { display: grid; grid-template-columns: minmax(96px, 168px) 1fr; gap: 28px; align-items: center; padding: 36px 0 30px; border-bottom: 3px solid var(--farbe); }
.kopf .zeichen svg, .kopf .wort svg { display: block; width: 100%; height: auto; }
.kopf .wort { min-width: 0; max-width: 620px; }
.kopf .akronym { font-family: var(--mono); font-size: 14px; margin-top: 14px; }
.kopf .akronym b { font-weight: 600; }

.spalten { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; padding-top: 36px; }
.haupt { display: grid; gap: 44px; min-width: 0; }
.abschnitt { display: grid; gap: 18px; }
.punktschrift svg { display: block; height: 22px; width: auto; max-width: 100%; }
.einstieg { font-size: 21px; line-height: 1.4; font-weight: 500; max-width: 34em; text-wrap: pretty; }
.fliess { max-width: 40em; display: grid; gap: 12px; }

.kette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.kette li { display: grid; gap: 6px; font-size: 13px; line-height: 1.3; }
.kette svg { display: block; width: 100%; height: auto; }
.kette .nr { font-family: var(--mono); font-size: 12px; }
.kette b { font-weight: 600; display: block; font-size: 14px; }

.teile { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--farbe); }
.teil { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 2px solid var(--farbe); }
.teil .sym svg { display: block; width: 76px; height: auto; }
.teil h3 { font-size: 18px; font-weight: 600; }
.teil p { font-size: 14.5px; color: var(--leise); max-width: 38em; }
.teil .links { font-family: var(--mono); font-size: 13px; margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.marke-status { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--farbe); padding: 3px 9px; white-space: nowrap; }
.marke-status.an { background: var(--farbe); color: var(--grund); }

.seitenspalte { display: grid; gap: 18px; position: sticky; top: 20px; }
.kasten { background: var(--grund); color: var(--farbe); padding: 22px; display: grid; gap: 18px; }
.kasten dl { display: grid; gap: 16px; }
.kasten dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.kasten dd { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.kasten dd b { font-weight: 600; font-size: 17px; display: block; }
.kasten .punktschrift svg { height: 18px; }
.rahmen { border: 3px solid var(--farbe); padding: 18px 22px; display: grid; gap: 8px; font-size: 14.5px; }
.rahmen b { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

.fuss { margin-top: 56px; padding-top: 18px; border-top: 3px solid var(--farbe); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }

.knopf { font: 500 14px var(--mono); letter-spacing: .04em; background: var(--farbe); color: var(--grund); border: 2px solid var(--farbe); padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.knopf:hover { background: var(--grund); color: var(--farbe); }
.knopf.hohl { background: transparent; color: var(--farbe); }
.knopf.hohl:hover { background: var(--farbe); color: var(--grund); }
.knopf[aria-pressed="true"] { background: var(--farbe); color: var(--grund); }
.knopf:disabled { opacity: .35; cursor: default; }

@media (max-width: 860px) {
  .spalten { grid-template-columns: 1fr; }
  .seitenspalte { position: static; }
  .kette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .kopf { grid-template-columns: 1fr; gap: 16px; } .kopf .zeichen { max-width: 110px; }
  .teil { grid-template-columns: 56px minmax(0, 1fr); } .teil .sym svg { width: 56px; } .teil .marke-status { grid-column: 2; justify-self: start; }
  .einstieg { font-size: 18px; }
}

/* Schrift OMNISON Matrix: Regular = gesetzte Punkte, Bold = zusätzlich das Raster, durchscheinend.
   Das Raster ist eine Palettenfarbe der Schrift und wird hier je Fassung passend eingefärbt. */
@font-face { font-family: "OMNISON Matrix"; font-weight: 400; font-display: swap; src: url("schrift/OMNISONMatrix-Regular.woff?v=2") format("woff"); }
@font-face { font-family: "OMNISON Matrix"; font-weight: 700; font-display: swap; src: url("schrift/OMNISONMatrix-Bold.woff?v=2") format("woff"); }
@font-palette-values --om-hell { font-family: "OMNISON Matrix"; override-colors: 0 rgba(17, 17, 17, .11); }
@font-palette-values --om-dunkel { font-family: "OMNISON Matrix"; override-colors: 0 rgba(246, 238, 10, .13); }
:root { font-palette: --om-hell; }
:root[data-modus="invers"], .gegen { font-palette: --om-dunkel; }
:root[data-modus="invers"] .gegen { font-palette: --om-hell; }
.matrixschrift { font-family: "OMNISON Matrix", var(--mono); font-weight: 400; line-height: 1.15; }
.matrixschrift.raster { font-weight: 700; }
