/* =========================================================================
   dgl.css — the subject layer of Gewöhnliche Differentialgleichungen
   (Root-D161, Root-D208, DGL-D4).

   The one layer after tokens → base → components, chosen from the mockups
   I, P and Q (Plan 39, mockups/EINORDNUNG.md) and fused with the site. On
   :root it sets five role colours, three colours without a role (DGL-D6)
   and the link hover; Grünspan is the signature. On the subject's own surfaces — cards, boxes, the actor tiles,
   „Was du siehst" — it sets the room tone by redefining the surface tokens
   on those elements only, so components.css draws them unchanged: page
   ground, top bar, source box, pager, footer and terminal stay the site's
   (Root-D208). Fonts, radii and spacing come from tokens.css.

   What each role colour means on a DGL page: public/mathe/DGL/CLAUDE.md.
   Contrasts (computed, Plan 39/E3): every role ≥ 6,3 : 1 on --c-bg-0 … -2
   and on the room tone, ≥ 5,4 : 1 on either hover tone, ≥ 4,4 : 1 against
   either --c-line-2. Text tones on the room tone 15,2 / 10,2 / 6,3 : 1 (Kohle:
   15,3 / 10,3 / 6,4). The foxes left Numerik's Zinnober: ΔE2000 10,7, the
   mockups' orange stood at 5,7. Never navy, turquoise or violet (Complex
   Analysis), never Zinnober (Numerik).
   ========================================================================= */

:root {
  /* ---- Role colours (meaning: DGL/CLAUDE.md) -------------------------- *
   * --c-sing and --c-warn stay the site's; neither has a role in a DGL
   * picture yet (DGL/CLAUDE.md, Fallen).                                 */
  --c-z:    #8fc4a2;   /* Grünspan  — the solution: trace, handle; link  */
  --c-w:    #9db8d9;   /* Taubenblau — the model drawn next to it        */
  --c-zero: #f3e3c3;   /* Creme     — first quantity y1: prey, hares     */
  --c-path: #df8670;   /* Terrakotta — second quantity y2: predator, foxes */
  --c-vec:  #d6b46a;   /* Messing   — no role in a picture yet          */

  --c-z-dim:    rgba(143, 196, 162, 0.16);
  --c-w-dim:    rgba(157, 184, 217, 0.16);
  --c-zero-dim: rgba(243, 227, 195, 0.16);
  --c-path-dim: rgba(223, 134, 112, 0.16);
  --c-vec-dim:  rgba(214, 180, 106, 0.16);

  /* Text links take --c-z from tokens.css; one step lighter on hover. */
  --c-link-hover: #b3dbc0;

  /* ---- The stage (DGL-D5) ------------------------------------------------ *
   * A screen sits darker in the room tone (mockup #0b0705; every role
   * 7,4–15,8 : 1 on it, Plan 39/E3); a map lies on warm paper. Canvases
   * read both from :root.                                                  */
  --c-schirm: #0b0705;
  --c-karte:  #20160f;

  /* ---- Colours without a role (DGL-D6) ----------------------------------- *
   * Phosphor: what a screen draws without a role — family, grid, cursor —
   * a warm white as in Q, never the hares' Creme: ΔE2000 10,8, as far as
   * the foxes from Numerik's Zinnober (Q's own #f1e6dc stood at 8,1, beside
   * it). Rost and Kupfer: the world of a map — banks, fields, hedges, the
   * compass — never on a screen and never for a quantity; from the foxes
   * ΔE2000 17,0 and 11,8, from Numerik's Zinnober 17,0 and 10,8 (computed). */
  --c-phosphor: #f1e9e5;
  --c-rost:     #a65f3c;
  --c-kupfer:   #c98b5a;
  --schirm-h: clamp(300px, 34vw, 520px);
  --schirm-h-unten: clamp(200px, 16vw, 280px);
}

/* ---- Room tone (Root-D208) ---------------------------------------------- *
 * Rostbraun of the mockups, laid on the lightness steps of the site: a
 * card stands off the page ground as Kohle does (1,14 against 1,13 : 1), so
 * edges and spacing read as everywhere and only the hue differs. Set on the
 * elements themselves; whatever sits inside inherits the tone.            */
:is(.box, .card, .darsteller__karte, .siehst, .steckbrief, .buehne) {
  --c-bg-1: #1c130e;   /* quiet box: Beispiel, Bemerkung, Beweisidee */
  --c-bg-2: #251a12;   /* card, box, „Was du siehst" */
  --c-bg-3: #33241a;   /* hover */
  --c-line: #33241a;
  --c-line-2: #45311f;
}

/* =======================================================================
   „Was du siehst" (DGL-D2): two or three sentences under a picture, for
   everyone. On the axis in box width like a box, but without number and
   title — it is our text, not the script's.
   ======================================================================= */
.siehst {
  max-width: calc(var(--measure) + 2 * var(--box-pad-x));
  margin: var(--sp-6) 0;
  padding: 20px var(--box-pad-x) 22px;
  border-radius: var(--r-lg);
  background: var(--c-bg-2);
}
.siehst__titel {
  margin: 0 0 var(--sp-3);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.siehst p:not(.siehst__titel) { margin: 0; color: var(--c-text-0); }
.siehst p:not(.siehst__titel) + p { margin-top: var(--sp-3); }
/* A displayed formula may use the inner padding, as in a box (Root-D136):
   the Lotka-Volterra system ran 18 px past the text at 390 (Plan 43/E2). */
.siehst .katex-display { margin-inline: calc(-1 * var(--box-pad-x)); }

/* =======================================================================
   The profile (Plan 44/E6, DGL-D18): one line after „Das Modell" that sorts
   the equation by Def. 2.1 — scalar or system, explicit, autonomous or not,
   order — each term with the reason under it, as Bsp. 2.3 does for the
   models of chapter 1. Head like a box head (title, place in the script),
   four cells in a row, two by two under 560 px. Quiet surface, so it does
   not compete with „Was du siehst".
   ======================================================================= */
.steckbrief {
  max-width: calc(var(--measure) + 2 * var(--box-pad-x));
  margin: var(--sp-6) 0;
  padding: 14px var(--box-pad-x) 16px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-lg);
  background: var(--c-bg-1);
}
.steckbrief__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-3);
  margin: 0 0 var(--sp-3);
}
.steckbrief__titel {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.steckbrief__ref {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-text-2);
}
.steckbrief__felder {
  display: grid;
  /* Columns as wide as their reason, so „höchste Ableitung y′" keeps its
     formula on its line; the space left over goes between them. */
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-4);
  margin: 0;
}
.steckbrief__felder > div { min-width: 0; }
.steckbrief__felder dt { font-weight: 700; color: var(--c-text-0); }
.steckbrief__felder dd {
  margin: 2px 0 0;
  font-size: var(--fs-small);
  color: var(--c-text-1);
}
.steckbrief__fuss {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}
@media (max-width: 560px) {
  .steckbrief__felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =======================================================================
   The big picture of the subject page (Plan 44/E8, DGL-D19): lines on a
   dark ground, not a coloured field as on the CA hub — at the half
   opacity of `.hero__field canvas` they faded into the ground, so the
   scene sets its own brightness. A new class, `.hero__field` stays as
   components.css has it.
   ======================================================================= */
.hero__strom canvas { opacity: 1; }
/* The script's name is long: wrapped at 390 it stood flush left over two
   lines under the centred sentence. */
.hero__strom ~ .hero__inner .hero__meta > span { text-align: center; }

/* =======================================================================
   The visualisations (DGL-D10): one tile each, its place in the script,
   its name, the equations of its model; built from chapters.js and
   darsteller.js (leiste.js). A link and its hover only where the tile
   leads somewhere, a small screen only where its model brings one (below).
   ======================================================================= */
.darsteller {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}
/* One or three in a row (Plan 43/E1): three visualisations side by side as
   in ENDBILD.md, never two and one alone; a fourth starts the next row. */
@media (min-width: 860px) { .darsteller { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.darsteller__karte {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--c-bg-2);
}
/* At the bottom of the tile (ENDBILD.md): name and screen first, so the
   screens of a row stand on one line even where a reference wraps. */
.darsteller__ref {
  margin-top: auto;
  padding-top: var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--c-z);
}
.darsteller__name { margin: 0; }
.darsteller__gl {
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}
.darsteller__zusatz {
  margin-right: var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  color: var(--c-text-2);
}

/* Built by leiste.js (Plan 39/E4, Plan 43/E1). A tile whose page is done
   links there with its name; the link covers the whole tile and the hover
   is its surface (Root-D183). The small screen (P) comes with the model's
   stage; without one the tile stays as it is. */
.darsteller__karte { position: relative; }
.darsteller__link { color: inherit; text-decoration: none; background: none; }
/* Where the tile leads, in Grünspan as in Q (DGL-D6); on its own page the
   word „hier“ instead (DGL-D10). */
.darsteller__pfeil { margin-left: 0.3em; font-weight: 500; color: var(--c-z); }
.darsteller__hier,
.darsteller__wip {
  margin-left: var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-z);
}
/* The next visualisation (Root-D179): pale by its tone and the word, not by
   opacity, as on the subject cards. */
.darsteller__wip { color: var(--c-text-2); }
.darsteller__karte--blass .darsteller__name { color: var(--c-text-1); }
/* Above the formulas: KaTeX positions its spans, which would take the tap
   from the link (measured on the probe: 65 % of the tile without it). */
.darsteller__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-xl); }
.darsteller__link:focus-visible { outline: none; }
.darsteller__karte--link:has(.darsteller__link:focus-visible) { outline: 2px solid var(--c-w); outline-offset: 3px; }
.darsteller__karte--link:hover { background: var(--c-bg-3); }
.darsteller__schirm {
  position: relative;
  height: 96px;
  margin: var(--sp-1) 0;
  border-radius: var(--r-sm);
  background: var(--c-schirm);
  overflow: hidden;
}
.darsteller__schirm canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The strip at the end of a visualisation, before the pager (DGL-D10): its
   own small title, then the tiles in the column of the page. */
.leiste { margin-top: var(--sp-7); }
.leiste__titel {
  margin: 0 0 var(--sp-4);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-text-2);
}
.leiste .darsteller { margin-top: 0; }

/* =======================================================================
   A visualisation on its own page (DGL-D10): under the head
   the stage wide around the axis (Plan 39/E4), then „Was du siehst" and
   the boxes on the axis.
   ======================================================================= */
.auftritt {
  padding-block: var(--sp-2) var(--sp-6);
  scroll-margin-top: calc(var(--kopf-h) + var(--sp-4));
}

/* =======================================================================
   The stage (DGL-D5, buehne.js): one card in the room tone, wider than the
   text and symmetric around the axis like a playground of Complex Analysis
   (Root-D153) — the screen and its legend on the left, map and counters on
   the right, below them the bar with ▶, time and sliders in Grünspan. Under
   1100 px the side column goes under the screen, under 720 px all of it
   stands in one column.
   ======================================================================= */
.buehne-rahmen { max-width: var(--page-wide); }
.buehne {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: var(--sp-6) max(0px, (100% - var(--page-max) + 2 * var(--page-pad)) / 4);
  padding: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--c-bg-2);
}
/* The screen takes the height of map and counters beside it, never lower
   than --schirm-h; the legend lies under the screen, its marks in a row.
   In one column map, counters and legend stood 830 to 880 px tall, and with
   the bar the stage outgrew the 849 px a 1080p window leaves under the top
   bar (Plan 44/E7). The side column only groups the markup here. */
.buehne__haupt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: 'schirm karte' 'schirm zahlen' 'zeichen zahlen';
  gap: var(--sp-4);
  align-items: stretch;
}
.buehne__seite { display: contents; }
.buehne__haupt > .schirm { grid-area: schirm; }
.buehne__seite > .karte { grid-area: karte; }
.buehne__seite > .buehne__zahlen { grid-area: zahlen; align-self: start; }
.buehne__seite > .zeichen { grid-area: zeichen; }
.buehne__seite > .zeichen .zeichen__liste { display: flex; flex-wrap: wrap; gap: 6px var(--sp-5); }
/* A mark keeps its words on one line and takes a line of its own when the
   row is full; only one longer than the screen breaks. */
.buehne__seite > .zeichen .zeichen__liste li { flex: none; max-width: 100%; }

/* The screen (J): darker than the card, the status line on top. */
.schirm {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(var(--schirm-h) + 40px);
  border-radius: var(--r-md);
  background: var(--c-schirm);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
/* More screens stand under the bar, each across the whole stage — the time
   course under the phase plane, as in P and Q (Plan 39/E8); the main row
   keeps one screen beside the side column. */
.buehne__unten { display: grid; gap: var(--sp-4); }
.buehne__unten .schirm { min-height: calc(var(--schirm-h-unten) + 40px); }
.buehne__unten .schirm__bild { min-height: var(--schirm-h-unten); }
.schirm__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 0;
  font-family: var(--f-mono);
  font-size: 0.75rem;
}
.schirm__chip {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--c-bg-1);
  color: var(--c-text-1);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.schirm__chip[data-ton='z'] { color: var(--c-z); }
.schirm__chip[data-ton='w'] { color: var(--c-w); }
.schirm__chip[data-ton='zero'] { color: var(--c-zero); }
.schirm__chip[data-ton='path'] { color: var(--c-path); }
.schirm__luecke { flex: 1 1 0; }
/* RUN / STOP only shows the state; ▶ in the bar runs it. */
.schirm__chip--lauf { font-weight: 600; letter-spacing: 0.1em; background: var(--c-line-2); color: var(--c-text-0); }
.schirm__chip--lauf.is-an { background: var(--c-z); color: var(--c-bg-0); }
.schirm__bild { position: relative; flex: 1 1 auto; min-height: var(--schirm-h); }
.tafel__leinwand { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* A finger on the handle drags it, anywhere else it scrolls (buehne.js). */
.schirm .tafel__leinwand { touch-action: pan-y pinch-zoom; }
.schirm .tafel__leinwand[data-ueber='zeit'] { cursor: ew-resize; }
.schirm .tafel__leinwand[data-ueber='griff'] { cursor: grab; }
.schirm .tafel__leinwand.is-ziehen { cursor: grabbing; }

/* The map (I): title and time on top, sheet and scale below. */
.karte {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-md);
  background: var(--c-bg-1);
  overflow: hidden;
}
.karte__kopf,
.karte__fuss {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 8px 12px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-text-2);
}
.karte__titel { letter-spacing: 0.14em; text-transform: uppercase; }
.karte__zeit { color: var(--c-text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.karte__bild { position: relative; aspect-ratio: 4 / 3; background: var(--c-karte); }

/* Counters: the value large in the site's text font with figures of one
   width, coloured by its role — Host Grotesk instead of --f-mess, Johannes'
   choice of 2026-11-04; the rows of the Messfeld below as well. */
.buehne__zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
}
.buehne__zahlen:empty { display: none; }
/* The value at the foot of its box: a name that breaks onto a second line
   (the meteor's „Eiszapfen-Modell“) leaves the values of a row level. */
.zaehler { display: flex; flex-direction: column; padding: 10px 14px 12px; border-radius: var(--r-md); background: var(--c-bg-1); }
.zaehler__name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--fs-micro);
  color: var(--c-text-2);
}
.zaehler__zeichen { color: var(--k, var(--c-text-1)); }
.zaehler__wert {
  margin-top: auto;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 2rem;
  /* The line stays 2.3rem high in both sizes, so no counter changes its
     height when a value turns long. */
  line-height: 2.3rem;
  white-space: nowrap;
  color: var(--k, var(--c-text-0));
  font-variant-numeric: tabular-nums;
}
/* A long value, up to „−9,9 · 10¹⁴“ (about 4.8em), steps down a size and
   fits the 125 px a counter has at 1100 px and on a phone. */
.zaehler__wert.is-breit { font-size: 1.375rem; }
.zaehler[data-ton='z'] { --k: var(--c-z); }
.zaehler[data-ton='w'] { --k: var(--c-w); }
.zaehler[data-ton='zero'] { --k: var(--c-zero); }
.zaehler[data-ton='path'] { --k: var(--c-path); }

/* Rows of measured values (P's Messfeld) under the counters, across the
   column: the mark of what a row belongs to, its name, formula and value. */
.messfeld {
  grid-column: 1 / -1;
  padding: 10px 14px 12px;
  border-radius: var(--r-md);
  background: var(--c-bg-1);
}
.messfeld__titel {
  margin: 0 0 var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.messfeld__liste { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.messfeld__zeile {
  display: grid;
  grid-template-columns: 1.1em minmax(0, 1fr) 5.2em 6em;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-micro);
  color: var(--c-text-1);
}
.messfeld__zeichen { color: var(--k, var(--c-text-1)); }
.messfeld__name { min-width: 0; }
.messfeld__formel { white-space: nowrap; }
/* The value in the tone of its row, as P's Messung (DGL-D6), in the font of
   the counters. */
.messfeld__wert {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.0625rem;
  /* A fixed line, lower than the row's name, so the name alone sets the
     height: with `normal` Host Grotesk stands 29 px high at 1.0625rem, 22 px
     in the smaller size — every row grew when the meteor landed and its
     values turned to „–“, and the strip below moved under the pointer. */
  line-height: 1.125rem;
  color: var(--k, var(--c-text-0));
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* A power of ten, „3,0 · 10¹³“, fits the column a size smaller. */
.messfeld__wert.is-breit { font-size: 0.8125rem; }
.messfeld__zeile[data-ton='z'] { --k: var(--c-z); }
.messfeld__zeile[data-ton='w'] { --k: var(--c-w); }
.messfeld__zeile[data-ton='zero'] { --k: var(--c-zero); }
.messfeld__zeile[data-ton='path'] { --k: var(--c-path); }

/* The legend, as on a map: a sample of each line or mark, its words. */
.zeichen__titel {
  margin: 0 0 var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.zeichen__liste {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-micro);
  color: var(--c-text-1);
}
.zeichen__liste li { display: flex; align-items: center; gap: 10px; }
.zeichen__muster { --k: var(--c-text-1); position: relative; flex: none; width: 24px; height: 14px; }
.zeichen__muster--spur { background: linear-gradient(var(--k), var(--k)) center / 100% 3px no-repeat; }
.zeichen__muster--strich { background: repeating-linear-gradient(90deg, var(--k) 0 4px, transparent 4px 9px) center / 100% 1.5px no-repeat; }
.zeichen__muster--linie { background: linear-gradient(var(--k), var(--k)) center / 100% 1px no-repeat; }
/* Dotted, as the other branches of a formula on the screen (Plan 44/E5). */
.zeichen__muster--punkte { background: repeating-linear-gradient(90deg, var(--k) 0 2px, transparent 2px 6px) center / 100% 1.5px no-repeat; }
/* The family as on the screen: a bright line with its glow (DGL-D6). */
.zeichen__muster--schar {
  background: linear-gradient(var(--k), var(--k)) center / 100% 1.5px no-repeat;
  filter: drop-shadow(0 0 3px var(--k));
}
/* Two strips of an area, the shades of a strip pair (Plan 44/E4). */
.zeichen__muster--flaeche {
  background: linear-gradient(90deg, color-mix(in srgb, var(--k) 60%, transparent) 0 12px, color-mix(in srgb, var(--k) 30%, transparent) 12px 24px) center / 100% 10px no-repeat;
}
.zeichen__muster--zeiger { background: linear-gradient(var(--k), var(--k)) center / 1px 100% no-repeat; }
/* The direction field as on the screen: short slanted lines, faint. */
.zeichen__muster--feld::before,
.zeichen__muster--feld::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 8px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--k);
  opacity: 0.7;
  transform: rotate(-35deg);
}
.zeichen__muster--feld::before { left: 2px; }
.zeichen__muster--feld::after { left: 14px; }
.zeichen__muster--punkt::before,
.zeichen__muster--ring::before {
  content: '';
  position: absolute;
  top: 2px; left: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.zeichen__muster--punkt::before { background: var(--k); box-shadow: 0 0 6px var(--k); }
.zeichen__muster--ring::before { border: 2px solid var(--k); }

/* The bar: ▶ and time first, then the scene's own sliders; ▶, track and
   thumb in Grünspan (EINORDNUNG), every target 44 px (N-05). */
.buehne__leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-3) var(--sp-5);
  padding: 0 var(--sp-2) var(--sp-1);
}
.buehne__transport { display: flex; align-items: flex-end; gap: var(--sp-4); flex: 2 1 320px; min-width: 0; }
.buehne__leiste .ctrl { flex: 1 1 180px; min-width: 0; }
/* Three sliders of its own or more: ▶ and the time take the first row, the
   sliders share the second — four beside the time left 186 px each at 1440,
   and every label broke onto two lines (Plan 39/E8). Where the bar is wide
   enough for four at 210 px, as at 1920, they stay beside the time: the
   second row pushed the bar of Lotka-Volterra out of a 1080p window
   (Plan 44/E7). */
.buehne__leiste { container-type: inline-size; }
.buehne__leiste:has(> .ctrl ~ .ctrl ~ .ctrl) .buehne__transport { flex-basis: 100%; }
@container (min-width: 1300px) {
  .buehne__leiste:not(:has(> .ctrl ~ .ctrl ~ .ctrl ~ .ctrl ~ .ctrl)) .buehne__transport { flex-basis: 320px; }
}
.buehne__transport .buehne__zeit { flex: 1 1 auto; }
.buehne__play {
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--c-z);
  color: var(--c-bg-0);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.buehne__play:hover { background: var(--c-link-hover); }
.buehne input[type='range'] { height: 44px; }
/* A switch of the scene (the model whose field and family the screen
   shows): chips of the site, the chosen one in Grünspan, 44 px tall. */
.buehne__leiste .chip { min-height: 44px; min-width: 44px; }
/* A text of one setting of the stage hides with the others (DGL-D13);
   held here, so a display set later on `.siehst` or `.box` cannot beat
   `hidden`. */
[data-einstellung][hidden] { display: none; }
.buehne input[type='range']::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--c-z) var(--fill, 0%), var(--c-bg-3) var(--fill, 0%));
}
.buehne input[type='range']::-webkit-slider-thumb { background: var(--c-z); }
.buehne input[type='range']::-moz-range-progress { background: var(--c-z); }
.buehne input[type='range']::-moz-range-thumb { background: var(--c-z); }

@media (max-width: 1100px) {
  .buehne__haupt { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; }
  /* As specific as the areas above, or they win and stack the parts. */
  .buehne__haupt > .schirm,
  .buehne__seite > :is(.karte, .buehne__zahlen, .zeichen) { grid-area: auto; }
  .buehne__seite > .zeichen .zeichen__liste { display: grid; }
  .buehne__seite {
    display: grid;
    gap: var(--sp-4);
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .buehne__seite > .karte { grid-row: span 2; }
  /* Three panels on one screen (Plan 44/E4, DGL-D16): taller wherever the
     stage stacks, or the field of the solution keeps 150 px. */
  .buehne[data-scene='dgl03-getrennt'] { --schirm-h: 440px; }
}
@media (max-width: 720px) {
  :root { --schirm-h: 300px; }
  .buehne { padding: var(--sp-3); }
  .buehne__seite { grid-template-columns: minmax(0, 1fr); }
  .buehne__seite > .karte { grid-row: auto; }
  .schirm__status { font-size: 0.6875rem; }
}
