/* IBM Plex, self-hosted (SIL Open Font License, assets/fonts/OFL.txt): no requests to Google.
   Sans is a variable font (400-600), Mono comes in 400 and 500. Subsets: latin, latin-ext. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.55; }
.rs-pad { padding: var(--space-8); box-sizing: border-box; }
.rs-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Button: gerade Kante, radius-sm */
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 26px; border-radius: var(--radius-sm); font: 500 17px/1 var(--font-sans); text-decoration: none; cursor: pointer; box-sizing: border-box; border: var(--border-hairline) solid transparent; }
.rs-btn--primary { background: var(--ink); color: var(--on-ink); }
.rs-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.rs-btn--compact { min-height: 44px; padding: 0 20px; font-size: 15px; }
.rs-btn:hover { opacity: .85; }
.rs-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Eyebrow + Headline */
.rs-eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rs-section-head { display: flex; flex-direction: column; gap: var(--space-3); }
.rs-section-head h2 { margin: 0; font-size: 44px; line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }

/* Card */
.rs-card { background: var(--surface); border: var(--border-hairline) solid var(--line); border-radius: var(--radius-md); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-14); box-sizing: border-box; }
.rs-card__top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--accent); }
.rs-card__index { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.rs-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; font-weight: 500; }
.rs-card p { margin: 0; color: var(--muted); }

/* Panel: große Fläche, radius-lg */
.rs-panel { border-radius: var(--radius-lg); padding: var(--space-14); box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-10); }
.rs-panel--surface { background: var(--surface); border: var(--border-hairline) solid var(--line); }
.rs-panel--outline { border: var(--border-hairline) solid var(--ink); }
.rs-panel--stage { background: var(--stage); color: var(--on-stage); }
.rs-panel--stage .rs-eyebrow { color: var(--on-stage-muted); }

/* Spalten mit geraden Teilern */
.rs-columns { display: flex; flex-wrap: wrap; border-top: var(--border-hairline) solid var(--line); }
.rs-columns > * { flex: 1 1 220px; padding: var(--space-7) var(--space-7) 0; }
.rs-columns > * + * { border-left: var(--border-hairline) solid var(--line); }
.rs-columns > *:first-child { padding-left: 0; }

/* StatRow */
.rs-stats { display: flex; flex-wrap: wrap; row-gap: var(--space-4); border-top: var(--border-hairline) solid var(--line); padding-top: var(--space-5); }
.rs-stat { flex: 1 1 120px; padding: 0 var(--space-5); }
.rs-stat:first-child { padding-left: 0; }
.rs-stat + .rs-stat { border-left: var(--border-hairline) solid var(--line); }
.rs-stat__value { font-family: var(--font-mono); font-size: 26px; font-weight: 500; line-height: 1.2; }
.rs-stat__label { font-size: 14px; color: var(--muted); }

/* SpecPlate (Typenschild) */
.rs-plate { background: var(--plate); border-radius: var(--radius-md); padding: 36px 40px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.rs-plate__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); }
.rs-plate__rule { height: var(--border-rule); background: var(--ink); }
.rs-plate dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); }
.rs-plate dl > div { padding: 14px 0; border-bottom: var(--border-hairline) solid var(--line); }
.rs-plate dt { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rs-plate dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 18px; font-weight: 500; }
.rs-plate__foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* CurveMotif: Filterkurve aus Logo V5 */
.rs-curve { display: block; width: 100%; height: auto; }

/* Value list (auf stage) */
.rs-list { display: flex; flex-direction: column; border-top: var(--border-hairline) solid var(--stage-line); }
.rs-list > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 14px 0; border-bottom: var(--border-hairline) solid var(--stage-line); }
.rs-list b { font: 400 17px var(--font-mono); color: var(--on-stage-value); }

/* Theme-abhängige Bilder (Logo, Kurve): beide Varianten einbinden, CSS blendet um */
.rs-on-dark { display: none !important; }
[data-theme="dark"] .rs-on-light { display: none !important; }
[data-theme="dark"] .rs-on-dark { display: block !important; }
