/* Amperatec · Grundlage des Design-Systems (Fassung 28.09.2026, nach dem Vorbild joinspine.ai)
   Setzt tokens.css voraus. Farben, Radien, Schatten, Schriftgrößen und Bewegungszeiten kommen nur aus den Variablen dort.
   Abstände aus der Skala über var(--space-N); Einzelwerte außerhalb der Skala nur, wo die Spezifikation sie gemessen
   vorgibt (Spezifikation design/amperatec/spezifikation/spine-spec.md, 4.3), mit Verweis im Kommentar.
   Klassen deutsch, BEM-artig: .block, .block__teil, .block--variante, Zustände .is-…
   Inhalte von Hero-Bühne und App-Fenstern stylen die jeweiligen Bausteine mit eigenem Präfix. */


/* ==========================================================================
   1 Symbole als Masken (eigene Zeichnungen im Stil von Phosphor Bold, 24er Raster)
   ========================================================================== */

:root {
  --symbol-haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.75l4.75 4.75L19.5 7.25'/%3E%3C/svg%3E");
  --symbol-kreuz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.75' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
  --symbol-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
  --symbol-pfeil-unten: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.25l6 6 6-6'/%3E%3C/svg%3E");
  --symbol-pfeil-rechts: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.25 6l6 6-6 6'/%3E%3C/svg%3E");
  --symbol-menue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  --symbol-nochmal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 4.8v5.4h5.4'/%3E%3Cpath d='M4.76 10.06A7.5 7.5 0 1 1 5.86 16.3'/%3E%3C/svg%3E");
  --symbol-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8.5 5.5v13M15.5 5.5v13'/%3E%3C/svg%3E");
  --symbol-abspielen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M8 5.2v13.6a.6.6 0 0 0 .9.5l10.6-6.8a.6.6 0 0 0 0-1L8.9 4.7a.6.6 0 0 0-.9.5z'/%3E%3C/svg%3E");
  /* öffnet in neuem Tab: Kasten mit Pfeil nach rechts oben (29.09.2026, vorher nur in der Rechenhilfe der Website) */
  --symbol-extern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.75 4.5h5.75v5.75M19.5 4.5l-8 8M17.5 14v4a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18V8A1.5 1.5 0 0 1 6 6.5h4'/%3E%3C/svg%3E");
}


/* ==========================================================================
   2 Basis: Reset, Seite, Links, Fokus (spine-spec.md 3.1, 7.2, 7.3)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; }
img, svg, video, canvas { max-width: 100%; }
img, video { display: block; height: auto; }
table { border-collapse: collapse; }
button, input, select, textarea { font: inherit; color: inherit; }
button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* Links im Fließtext (7.2): Links ohne eigene Klasse */
a { color: inherit; }
a:not([class]) {
  color: var(--ink);
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:not([class]):hover { color: var(--accent); }

/* Fokus (7.3): sichtbarer Ring, folgt dem Radius */
:where(a, button, summary, [role="tab"], [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-a15);
}

/* Nur für Vorleseprogramme */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Sichtbarkeit je Breite: mobil = unter 1024 px (Telefon und Tablet) */
@media (min-width: 1024px) { .nur-mobil { display: none !important; } }
@media (max-width: 1023.98px) { .nur-desktop { display: none !important; } }

.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* Reduzierte Bewegung (9.4). Weiches Scrollen erst, wenn die Seite geladen ist (grundlage.js setzt html.ist-geladen):
   Chrome scrollt sonst auch beim Laden mit Anker (./#geraete) sichtbar durch die ganze Seite (Prüfung TEL-05). */
@media (prefers-reduced-motion: no-preference) {
  html.ist-geladen { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}


/* ==========================================================================
   3 Schrift-Rollen: Farbe und Satz zu den Stilen aus tokens.css (3.2)
   ========================================================================== */

.display, .display-2, .h2, .h2-s { color: var(--ink); text-wrap: balance; }
.lead-xl, .lead-l, .lead, .body { text-wrap: pretty; }
.lead-xl { color: var(--muted); max-width: 520px; }                 /* 3.2: max. 520 */
.lead-xl strong, .lead-xl b { color: var(--ink); font-weight: 700; }
.lead-l { color: var(--muted); max-width: 560px; }                  /* 3.2: max. 560 */
.lead { color: var(--muted); max-width: var(--measure); }
.body { color: var(--ink-2); max-width: var(--measure-wide); }

/* Zweizeiliger Titel: Zeile 1 in ink, Zeile 2 in accent (Größe über .display, .display-2, .h2 oder .h2-s) */
.titel { color: var(--ink); text-wrap: balance; }
.titel > span { display: block; }
.titel__akzent { color: var(--accent); }
.titel--fliessend > span { display: inline; }

/* Augenbraue über großen Titeln (8.1, verwandt) */
.augenbraue {
  font-size: var(--text-eyebrow);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ==========================================================================
   4 Layout: Breite, Abschnitte, Stapel (4.2)
   ========================================================================== */

.wrap { max-width: var(--wrap); margin-inline: auto; }

.abschnitt { padding: var(--section-y) var(--gutter); }
.abschnitt--weiss { background: var(--surface); }

/* Mehrere Karten in einem Abschnitt: jeder Kartenabstand = 2 × section-y (112 / 88 / 64) */
.stapel { display: flex; flex-direction: column; gap: calc(2 * var(--section-y)); }
.stapel > * { width: 100%; }


/* ==========================================================================
   5 Karten (5.1, 5.2)
   ========================================================================== */

.karte {
  --karte-py: var(--space-28);
  --karte-px: var(--space-16);
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--karte-py) var(--karte-px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 640px) {
  .karte { --karte-py: var(--space-56); --karte-px: var(--space-40); border-radius: var(--radius-card); }
}
@media (min-width: 1024px) {
  .karte { --karte-px: var(--space-48); }
}

/* Randlose Trennlinie innerhalb einer Karte */
.karte__trenner {
  height: 0;
  margin-inline: calc(-1 * var(--karte-px));
  border: 0;
  border-top: 1px solid var(--line);
}

/* Dunkle Karte, flach (Kennwerte-Band) */
.karte--dunkel {
  background: var(--surface-dark);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-card-dark);
  color: var(--on-ink);
}
@media (min-width: 640px) {
  .karte--dunkel { padding: var(--space-48) var(--space-40) var(--space-44) var(--space-40); }
}
@media (min-width: 1024px) {
  .karte--dunkel { padding: var(--space-56); }
}

/* Dunkle Karte mit Verlauf („Wieso Amperatec“) */
.karte--verlauf {
  background: var(--surface-dark-gradient);
  border: 0;
  box-shadow: var(--shadow-card-dark);
  color: var(--on-ink);
}
@media (min-width: 640px) {
  .karte--verlauf { padding: var(--space-48) var(--space-40); }
}
@media (min-width: 1024px) {
  .karte--verlauf { padding: var(--space-64) var(--space-56) var(--space-56); }
}

/* Auf dunklem Grund: Farben und Fokusring (7.3) */
:where(.karte--dunkel, .karte--verlauf, .fuss__karte, .auf-dunkel) :where(a, button, summary, [role="tab"], [tabindex]):focus-visible {
  outline-color: var(--accent-on-ink);
}
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) :is(.titel, .display, .display-2, .h2, .h2-s) { color: var(--on-ink); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .titel__akzent { color: var(--accent-on-ink); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) :is(.lead, .lead-l, .lead-dunkel, .body) { color: var(--on-ink-muted); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .augenbraue { color: var(--accent-on-ink); letter-spacing: .18em; }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) a:not([class]) { color: var(--on-ink); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) a:not([class]):hover { color: var(--accent-on-ink); }


/* ==========================================================================
   6 Kopfzeile: schwebende Pille (6.1 bis 6.7)
   Zustände: .kopf.is-scrolled (scrollY > 90), .kopf.is-open (Telefon-Menü offen), html.is-locked (Scrollsperre)
   ========================================================================== */

.kopf {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  z-index: 50;
  pointer-events: none;
}
.kopf__innen {
  position: relative;
  z-index: 2;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--space-24) var(--gutter) 0;
}
.kopf__leiste {
  position: relative;
  isolation: isolate;
  height: var(--header-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: 0 var(--space-12) 0 var(--space-20);
  pointer-events: auto;
}
@media (min-width: 640px) { .kopf__leiste { padding-left: var(--space-28); } }

.kopf__grund {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-pill);
  background: var(--glass-solid);        /* auch ab 1024 px: glass (55 %) über dem dunklen Band nur 2,7:1 für die Menüschrift */
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-header);
  opacity: 0;
  transition: opacity var(--dur-header) var(--ease-out);
}
.kopf.is-scrolled .kopf__grund,
.kopf.is-open .kopf__grund { opacity: 1; }

.kopf__logo { display: flex; align-items: center; flex: none; padding-block: 7px; margin-block: -7px; border-radius: var(--radius-sm); }   /* Tippfläche ≥ 40 px (10), Logo bleibt 26 / 30 / 32 */
.kopf__logo img, .kopf__logo svg { display: block; width: auto; height: 26px; }               /* 6.3: 26 / 30 / 32 */
@media (min-width: 640px) { .kopf__logo img, .kopf__logo svg { height: 30px; } }
@media (min-width: 1024px) { .kopf__logo img, .kopf__logo svg { height: 32px; } }

/* Menü ab 1024 px, mittig in der Pille */
.kopf__menue { display: none; }
@media (min-width: 1024px) {
  .kopf__menue {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    display: flex;
    gap: var(--space-4);
  }
}
.kopf__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-8) var(--space-14);
  border-radius: var(--radius-pill);
  font-size: var(--text-nav);
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-ui) var(--ease-standard), background-color var(--dur-ui) var(--ease-standard), box-shadow var(--dur-ui) var(--ease-standard);
}
.kopf__link:hover, .kopf__link[aria-current] { color: var(--ink); background: var(--ink-a07); }

.kopf__aktionen { display: flex; align-items: center; gap: var(--space-8); flex: none; }
.kopf__lang { display: none; }
@media (min-width: 640px) { .kopf__lang { display: inline; } .kopf__kurz { display: none; } }
/* 6.6: unter 375 px nur Menüsymbol. Selektor mit zwei Klassen, weil .knopf (weiter unten) sonst display: inline-flex setzt. */
@media (max-width: 374.98px) { .kopf__aktionen > .kopf__knopf { display: none; } }

.kopf__menueknopf {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -4px;
  border-radius: var(--radius-pill);
  color: var(--ink);
}
.kopf__menueknopf .symbol--kreuz { display: none; }
.kopf__menueknopf[aria-expanded="true"] .symbol--menue { display: none; }
.kopf__menueknopf[aria-expanded="true"] .symbol--kreuz { display: block; }
@media (min-width: 1024px) { .kopf__menueknopf { display: none; } }
/* Ohne Skript hat das Menüsymbol keine Funktion: ausblenden. Die Abschnitte bleiben über Seite und Footer erreichbar. */
html:not(.js) .kopf__menueknopf { display: none; }

/* Geringe Fensterhöhe (Telefon quer, 400 % Zoom: 256 px): Die Pille (88 px) verdeckte ein Drittel der Höhe. Dort steht sie
   oben auf der Seite und scrollt mit (29.09.2026, Prüfung TEC2-14); das Telefon-Menü bleibt eine Vollfläche. */
@media (max-height: 500px) {
  .kopf { position: absolute; }
  html { scroll-padding-top: var(--space-16); }
}
/* Druck und „Als PDF sichern“: Die schwebende Pille stünde sonst oben auf jeder Seite über dem Inhalt (Prüfung TEC2-03). */
@media print {
  .kopf { display: none !important; }
}

/* Telefon- und Tablet-Menü: weiße Vollfläche unter der Pille */
.kopf-menue {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  padding: calc(var(--header-h) + var(--space-8)) var(--space-20) var(--space-48);   /* Pillen-Unterkante + 20 */
  background: var(--surface);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-ui) var(--ease-standard), visibility 0s linear var(--dur-ui);
}
.kopf.is-open .kopf-menue { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 1024px) { .kopf-menue { display: none; } }
.kopf-menue__liste { list-style: none; }
.kopf-menue__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--ink-a10);
  font-size: var(--text-nav-menu);
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.kopf-menue__link::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--muted);
  -webkit-mask: var(--symbol-pfeil-rechts) center / contain no-repeat;
  mask: var(--symbol-pfeil-rechts) center / contain no-repeat;
}
.kopf-menue__knopf { margin-top: var(--space-32); }
.kopf-menue .knopf { width: 100%; padding: var(--space-16) var(--space-32); font-size: var(--text-button-l); }

html.is-locked, html.is-locked body { overflow: hidden; }


/* ==========================================================================
   7 Knöpfe (7.1)
   ========================================================================== */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-16);                /* M am Telefon: 10 / 16 */
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-button);
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-standard), box-shadow var(--dur-ui) var(--ease-standard), color var(--dur-ui) var(--ease-standard), scale var(--dur-ui) var(--ease-standard);
}
@media (min-width: 640px) { .knopf { padding: var(--space-10) 18px; } }   /* M: 10 / 18 (gemessen) */

.knopf--s { padding: var(--space-8) var(--space-14); font-size: var(--text-nav); }
.knopf--l { padding: var(--space-14) var(--space-28); font-size: var(--text-button-l); }
@media (min-width: 640px) { .knopf--l { padding: 18px 30px; } }          /* L: 18 / 30 (gemessen) */
.knopf--voll { width: 100%; }
@media (max-width: 639.98px) { .knopf--l { width: 100%; } }               /* L am Telefon volle Breite */

.knopf--navy { background: var(--ink); color: var(--on-ink); }
.knopf--navy:hover { background: var(--ink-hover); }
.knopf--akzent { background: var(--accent); color: var(--on-accent); }
.knopf--akzent:hover { background: var(--accent-hover); }
.knopf--umriss { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-a15); }
.knopf--umriss:hover { background: var(--ink-a07); }
.knopf--geist { background: transparent; color: var(--ink-2); }
.knopf--geist:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-a15); }

.knopf .symbol { transition: translate var(--dur-ui) var(--ease-standard); }
.knopf--l .symbol { --symbol: 18px; }
.knopf:hover .symbol--pfeil { translate: 2px 0; }
.knopf:hover .symbol--extern { translate: 1px -1px; }

.knopf:disabled, .knopf[aria-disabled="true"] {
  background: var(--surface-3);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .knopf:not(:disabled):not([aria-disabled="true"]):hover { scale: 1.03; }
}

/* Knöpfe nebeneinander; am Telefon untereinander in voller Breite */
.knopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
@media (max-width: 639.98px) {
  .knopfzeile { flex-direction: column; align-items: stretch; }
  .knopfzeile > .knopf { width: 100%; }
}


/* ==========================================================================
   8 Plakette (8.1)
   ========================================================================== */

.plakette {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: var(--space-6) var(--space-14);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-plakette);
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.plakette__zusatz { margin-left: var(--space-4); color: var(--muted); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .plakette { background: var(--accent-cell-on-ink); color: var(--accent-on-ink); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .plakette__zusatz { color: var(--on-ink-muted); }


/* ==========================================================================
   9 Textblock der Karten (8.2, gemeinsamer Textblock)
   Plakette ↓28 Titel ↓14 Einleitung ↓36 Unterteilung ↓24 Chips. Unter 1024 px mittig, Listen links.
   ========================================================================== */

.textblock { min-width: 0; text-align: center; }
.textblock > .plakette, .textblock > .augenbraue, .textblock > .lead, .textblock > .body { margin-inline: auto; }
.textblock > .plakette + * { margin-top: var(--space-28); }
.textblock > .augenbraue + * { margin-top: var(--space-16); }
.textblock > .titel + * { margin-top: var(--space-14); }
.textblock > :is(.lead, .body) + * { margin-top: var(--space-36); }
.textblock > :is(.checkliste, .chipgruppe, .knopfzeile) + * { margin-top: var(--space-24); }
.textblock .checkliste, .textblock .fragen { text-align: left; }
.textblock .knopfzeile, .textblock .chips { justify-content: center; }
@media (min-width: 1024px) {
  .textblock { text-align: left; }
  .textblock > .plakette, .textblock > .augenbraue, .textblock > .lead, .textblock > .body { margin-inline: 0; }
  .textblock .knopfzeile, .textblock .chips { justify-content: flex-start; }
}
.textblock--links { text-align: left; }
.textblock--links > .plakette, .textblock--links > .augenbraue, .textblock--links > .lead, .textblock--links > .body { margin-inline: 0; }
.textblock--links .knopfzeile, .textblock--links .chips { justify-content: flex-start; }


/* ==========================================================================
   10 Schrittkarte (8.2): Aufbau A (Text links), B (gestapelt), C (Fenster links)
   ========================================================================== */

.schrittkarte { display: grid; gap: var(--space-56); }
.schrittkarte__text { min-width: 0; }
.schrittkarte__bild { min-width: 0; }
.schrittkarte--b { gap: var(--space-32); }

@media (min-width: 1024px) {
  .schrittkarte--a {
    grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
    gap: clamp(var(--space-40), 5vw, var(--space-72));
    align-items: stretch;
  }
  .schrittkarte--c {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: clamp(var(--space-32), 4vw, var(--space-56));
    align-items: stretch;
  }
  .schrittkarte--a .schrittkarte__text, .schrittkarte--c .schrittkarte__text { align-self: center; }
  .schrittkarte--c .schrittkarte__bild { order: -1; }
  /* Das Fenster füllt die Bildspalte bis unten, damit es mit der Textspalte bündig abschließt (8.2 Aufbau A: stretch;
     Prüfung GES-14). Der Inhalt wächst, Titelleiste und Fuß bleiben gleich hoch. */
  :is(.schrittkarte--a, .schrittkarte--c) .schrittkarte__bild { display: flex; flex-direction: column; }
  :is(.schrittkarte--a, .schrittkarte--c) .schrittkarte__bild > .fenster { flex: 1 1 auto; display: flex; flex-direction: column; }
  :is(.schrittkarte--a, .schrittkarte--c) .schrittkarte__bild > .fenster > .fenster__inhalt { flex: 1 1 auto; }
}
/* Ab 1280 px bekommt die Textspalte mindestens 572 px, damit Titel wie „Jedes Gerät spricht anders.“ (44 px: 572 px breit)
   zweizeilig bleiben (8.2: zwei Titelzeilen; Kapitel 11: keine zu schmale Textspalte). Von 1024 bis 1279 px dürfen die
   Titel drei oder vier Zeilen haben (Prüfung GES-02, bewusste Abweichung). */
@media (min-width: 1280px) {
  .schrittkarte--a { grid-template-columns: minmax(572px, .95fr) minmax(0, 1.05fr); }
  .schrittkarte--c { grid-template-columns: minmax(0, 1.05fr) minmax(572px, .95fr); }
}

/* Fußzeile der Karte: randlose Linie, darunter eine zentrierte Zeile (Schnittstellen, Vorlagen, Export) */
.schrittkarte__fuss {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8) var(--space-12);
  margin-inline: calc(-1 * var(--karte-px));
  padding: var(--space-28) var(--karte-px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--muted);
}
.schrittkarte__fuss-label { font-size: var(--text-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }


/* ==========================================================================
   11 Checkliste (8.3): senkrecht und als Dreierleiste
   ========================================================================== */

.checkliste {
  list-style: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-inner);
  text-align: left;
}
.checkliste > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: var(--space-10);
  padding: var(--space-16) var(--space-20);
}
@media (min-width: 640px) { .checkliste > li { padding: var(--space-16) var(--space-24); } }
.checkliste > li + li { border-top: 1px solid var(--line-2); }
.checkliste > li::before {
  content: "";
  grid-row: 1 / span 2;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  background: var(--accent);
  -webkit-mask: var(--symbol-haken) center / contain no-repeat;
  mask: var(--symbol-haken) center / contain no-repeat;
}
.checkliste__titel { grid-column: 2; font-size: var(--text-title-s); line-height: 1.5; font-weight: 700; color: var(--ink); }
.checkliste__text { grid-column: 2; margin-top: var(--space-2); font-size: var(--text-small); line-height: 1.45; color: var(--muted); }

/* Dreierleiste: ab 640 drei Spalten mit Teilern, am Telefon untereinander ohne Linien */
.checkliste--quer { display: grid; gap: var(--space-20); padding: var(--space-20); }
.checkliste--quer > li { padding: 0; }
.checkliste--quer > li + li { border-top: 0; }
@media (min-width: 640px) {
  .checkliste--quer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0 var(--space-24); }
  .checkliste--quer > li { padding: var(--space-20) var(--space-24); }
  .checkliste--quer > li:first-child { padding-left: 0; }
  .checkliste--quer > li:last-child { padding-right: 0; }
  .checkliste--quer > li + li { border-left: 1px solid var(--line-2); }
}


/* ==========================================================================
   12 App-Fenster: Rahmen nach dem gemeinsamen Vertrag (8.4.1), Schrittleiste, Kennzeichnung
   ========================================================================== */

.fenster {
  container: fenster / inline-size;
  position: relative;
  min-width: 0;
  background: var(--surface-inset);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.fenster--breit { box-shadow: var(--shadow-window-lg); }

.fenster__leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6) var(--space-14);
  min-height: 48px;
  padding: var(--space-12) var(--space-16);
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}
@media (min-width: 640px) { .fenster__leiste { padding: 15px var(--space-20); } }            /* 15 / 20 (gemessen) */
@media (min-width: 640px) { .fenster--breit .fenster__leiste { padding: 11px var(--space-20); } } /* 11 / 20 (gemessen) */

.fenster__punkte { display: flex; gap: 7px; flex: none; }                                   /* Abstand 7 (gemessen) */
.fenster__punkte i { display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--subtle); }

.fenster__titel {
  flex: 1 1 12em;
  min-width: 0;
  font-size: var(--text-ui-window);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted);
}
@media (max-width: 639.98px) {
  .fenster--breit .fenster__punkte { display: none; }
  .fenster--breit .fenster__titel { font-size: var(--text-ui-row); font-weight: 800; letter-spacing: 0; color: var(--ink); }
}

.fenster__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  flex: none;
  max-width: 100%;
  padding: 5px 11px;                                                                         /* 5 / 11 (gemessen) */
  border-radius: var(--radius-pill);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: var(--text-ui-sub);
  line-height: 1.4;
  font-weight: 600;
}
.fenster__leiste > .fenster__status { margin-left: auto; }
/* Passt die Pille nicht mehr neben den Titel, steht eine Kopie im Fensterfuß (.fenster__status--fuss) statt einer zweiten
   Zeile in der Titelleiste (8.4.1: Titelleiste einzeilig). Umgeschaltet wird je Fenster mit
   @container fenster (max-width: …) { … .fenster__leiste > .fenster__status { display: none } … .fenster__status--fuss
   { display: inline-flex } }; es ist immer nur eine der beiden sichtbar. Im Fenstertitel stehen geschützte Leerzeichen
   in Wortgruppen („Prüfplatz&nbsp;2“), damit er nur nach „·“ umbricht (Prüfung GES-06). */
.fenster__status--fuss { display: none; }
.fenster__status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fenster__status--aktiv { background: var(--accent-soft); color: var(--accent); }
.fenster__status--warnung { background: var(--alert-soft); color: var(--alert); }
.fenster__status--neutral { background: var(--surface-3); color: var(--muted); }

.fenster__inhalt { position: relative; min-width: 0; }

.fenster__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8) var(--space-16);
  padding: var(--space-12) var(--space-16);
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  font-size: var(--text-ui-sub);
  line-height: 1.4;
  color: var(--muted);
}
@media (min-width: 640px) { .fenster__fuss { padding: var(--space-12) var(--space-20); } }

/* Optionaler Streifen für die Schrittleiste direkt unter der Titelleiste */
.fenster__schritte {
  padding: var(--space-10) var(--space-16);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .fenster__schritte { padding: var(--space-10) var(--space-20); } }

/* Schrittleiste: drei Felder, aktiv / erledigt / offen (8.13, Leo 28.09.)
   Vertrag: <ol class="schrittleiste"><li class="is-erledigt">01 · Geräte integrieren</li><li class="is-aktiv" aria-current="step">…</li><li>…</li></ol>
   Optional mit <span class="schrittleiste__nr">01</span><span class="schrittleiste__wort">&nbsp;· Geräte integrieren</span>:
   dann zeigen offene und erledigte Felder in schmalen Leisten (unter 440 px) nur die Nummer. */
.schrittleiste {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
}
.schrittleiste > li {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px var(--space-10);                                                              /* ergibt 26 hoch */
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--text-schritt);
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--dur-state) var(--ease-standard), color var(--dur-state) var(--ease-standard);
}
.schrittleiste > li.is-aktiv { background: var(--accent-soft); color: var(--accent); }
.schrittleiste > li.is-erledigt { color: var(--ink-2); }
.schrittleiste > li.is-erledigt::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: var(--space-6);
  background: currentColor;
  -webkit-mask: var(--symbol-haken) center / contain no-repeat;
  mask: var(--symbol-haken) center / contain no-repeat;
}
@container (max-width: 440px) {
  .schrittleiste > li:not(.is-aktiv) .schrittleiste__wort { display: none; }
}
.schrittleiste--mitte { justify-content: center; }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .schrittleiste > li { background: var(--surface-dark-2); color: var(--on-ink-muted); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .schrittleiste > li.is-aktiv { background: var(--accent-cell-on-ink); color: var(--accent-on-ink); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .schrittleiste > li.is-erledigt { color: var(--on-ink-2); }

/* „Darstellung mit Beispieldaten.“ unter jeder Nachbildung */
.kennzeichnung {
  margin-top: var(--space-12);
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--muted);
}
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .kennzeichnung { color: var(--on-ink-muted); }


/* ==========================================================================
   13 Registerkarten (8.5): Segmentleiste, Dach-Reiter, Reiterleiste im Fenster
   ========================================================================== */

/* Segmentleiste: role="tablist", Knöpfe role="tab" mit aria-selected */
.segmente {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  contain: inline-size;                       /* breite Reihe sprengt keine Spalte, sie scrollt */
  padding: 3px;                               /* Platz für den Fokusring */
  margin: -3px;
}
.segmente::-webkit-scrollbar { display: none; }
.segmente__knopf {
  flex: 0 0 104px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-small);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  transition: background-color var(--dur-ui) var(--ease-standard), color var(--dur-ui) var(--ease-standard);
}
.segmente__knopf:hover { background: var(--accent-soft-hover); }
.segmente__knopf[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
@media (min-width: 1024px) {
  .segmente { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-12); overflow: visible; }
  .segmente__knopf { flex: none; }
}

/* Dach-Reiter unter dem breiten Fenster (8.5.2), nur ab 1024 px */
.dachreiter { display: none; }
@media (min-width: 1024px) {
  .dachreiter { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-8); }
}
.dachreiter__knopf {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  min-height: 104px;
  padding: 42px var(--space-16) 18px;                                    /* 42 / 16 / 18 (gemessen) */
  text-align: left;
  color: var(--ink);
}
/* Aktive Fläche als flaches Dach: Körper ab 22 px mit Radius 14, Giebel mittig bis 0 (eigene Konstruktion) */
.dachreiter__knopf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface-2);
  clip-path: polygon(
    0 36px, 1.07px 30.64px, 4.1px 26.1px, 8.64px 23.07px, 14px 22px,
    calc(50% - 12px) 1.4px, calc(50% - 4px) .2px, calc(50% + 4px) .2px, calc(50% + 12px) 1.4px,
    calc(100% - 14px) 22px, calc(100% - 8.64px) 23.07px, calc(100% - 4.1px) 26.1px, calc(100% - 1.07px) 30.64px, 100% 36px,
    100% calc(100% - 14px), calc(100% - 1.07px) calc(100% - 8.64px), calc(100% - 4.1px) calc(100% - 4.1px), calc(100% - 8.64px) calc(100% - 1.07px), calc(100% - 14px) 100%,
    14px 100%, 8.64px calc(100% - 1.07px), 4.1px calc(100% - 4.1px), 1.07px calc(100% - 8.64px), 0 calc(100% - 14px)
  );
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-standard);
}
.dachreiter__knopf:hover::before, .dachreiter__knopf[aria-selected="true"]::before { opacity: 1; }
.dachreiter__scheibe {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background-color var(--dur-ui) var(--ease-standard), color var(--dur-ui) var(--ease-standard);
}
.dachreiter__scheibe::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: currentColor;
  -webkit-mask: var(--symbol-haken) center / contain no-repeat;
  mask: var(--symbol-haken) center / contain no-repeat;
}
.dachreiter__knopf[aria-selected="true"] .dachreiter__scheibe { background: var(--accent); color: var(--on-accent); }
.dachreiter__titel { display: block; font-size: var(--text-title); line-height: 1.5; font-weight: 700; color: var(--ink); }
.dachreiter__text { display: block; margin-top: 3px; font-size: var(--text-small); line-height: 1.45; color: var(--muted); }

/* Reiterleiste unten im Fenster (unter 1024 px statt der Dach-Reiter) */
.reiterleiste { display: flex; border-top: 1px solid var(--line-2); background: var(--surface); }
.reiterleiste__knopf {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 58px;
  padding: var(--space-10) var(--space-12);
  color: var(--muted);
  font-size: var(--text-ui-label);
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  transition: color var(--dur-ui) var(--ease-standard);
}
.reiterleiste__knopf .symbol { --symbol: 19px; }
.reiterleiste__knopf[aria-selected="true"] { color: var(--accent); font-weight: 700; }


/* ==========================================================================
   14 Chips (8.6)
   ========================================================================== */

.chipgruppe { min-width: 0; }
.chipgruppe__label {
  margin-bottom: var(--space-12);
  font-size: var(--text-label);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.chipgruppe--symbol .chipgruppe__label { margin-bottom: var(--space-20); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); list-style: none; }
.chips--symbol { gap: var(--space-10); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: var(--space-6) var(--space-12);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--text-small);
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
}
.chip--symbol {
  align-items: flex-start;
  gap: var(--space-8);
  min-height: 43px;
  padding: var(--space-10) var(--space-16);
  border-color: var(--line-2);
  border-radius: 21.5px;                                                /* = Pille bei 43 px; bricht der Text um, ein Kasten statt einer Kapsel (GES-10) */
  font-size: var(--text-ui-row);
  font-weight: 600;
}
.chip--symbol .symbol { --symbol: 17px; margin-top: 1.5px; color: var(--accent); }   /* mittig zur ersten Zeile (20 px) */
.chip--symbol .chip__text { text-wrap: balance; }
.chip__zusatz { margin-left: var(--space-4); font-weight: 400; color: var(--muted); }
.chip__text { min-width: 0; }                                          /* Text und Zusatz in einem Kasten, bricht als Fließtext um */
.chip--symbol .chip__zusatz { margin-left: 0; }


/* ==========================================================================
   15 Kennwerte-Band (8.7, angepasst nach Leo 28.09.: vier Kennwerte, darunter Logozeile der Hochschulen)
   Auf der dunklen Karte: <div class="karte karte--dunkel band">. Standard ist 2 × 2 mit Kreuzlinien auf allen Breiten,
   damit Wortwerte wie „Freigabe“ überall in --text-kpi (64 px am Desktop) stehen; in vier Spalten wären es bei 1280 px
   nur 48 px, und die Größe spränge beim Umschalten (Prüfung GES-11). Mit .band--vier stehen kurze Zahlenwerte ab 1100 px
   Bandbreite in vier Spalten (8.7). Alle Kennwerte haben dieselbe Größe: höchstens --text-kpi, sonst so groß, dass der
   längste Wert (--band-wort, Breite in em) in die schmalste Spalte passt.
   ========================================================================== */

.band { container: band / inline-size; --band-wort: 4.25; }
.band__werte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}
.band__wert { min-width: 0; padding: var(--space-24) var(--space-6); text-align: center; }
.band__wert:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.band__wert:nth-child(-n+2) { padding-top: 0; border-bottom: 1px solid var(--line-dark); }
.band__wert:nth-child(n+3) { padding-bottom: 0; }

.band__zahl {
  display: block;
  font-size: min(var(--text-kpi), calc((50cqi - 2 * var(--space-6)) / var(--band-wort)));
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-on-ink);
  white-space: nowrap;
}
.band__text {
  max-width: 280px;
  margin-top: var(--space-10);
  margin-inline: auto;
  font-size: var(--text-kennwert-text);
  line-height: 1.4;
  font-weight: 500;
  color: var(--on-ink-muted);
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .band__wert { padding: var(--space-28) var(--space-36); text-align: left; }
  .band__wert:nth-child(odd) { padding-left: 0; }
  .band__wert:nth-child(even) { padding-right: 0; }
  .band__wert:nth-child(-n+2) { padding-top: 0; }
  .band__zahl { font-size: min(var(--text-kpi), calc((50cqi - var(--space-36)) / var(--band-wort))); }
  .band__text { margin-top: var(--space-16); margin-inline: 0; }
}
@media (min-width: 1024px) {
  .band__text { margin-top: 18px; }                                     /* 18 (gemessen) */
}
@container band (min-width: 1100px) {
  .band--vier .band__werte { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .band--vier .band__wert, .band--vier .band__wert:nth-child(n) { padding: 0 var(--space-36); border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .band--vier .band__wert:first-child { padding-left: 0; }
  .band--vier .band__wert:last-child { padding-right: 0; border-right: 0; }
  .band--vier .band__zahl { font-size: min(var(--text-kpi), calc((25cqi - 2 * var(--space-36)) / var(--band-wort))); }
}

/* Logozeile unter der Querlinie: Beschriftung und die Logos der Hochschulen (weiße Fassungen, keine Links) */
.band__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
  margin-top: var(--space-28);
  padding-top: var(--space-24);
  border-top: 1px solid var(--line-dark);
}
.band__logos-label {
  font-size: var(--text-label);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  text-align: center;
}
.band__logoliste { display: flex; align-items: center; justify-content: center; gap: var(--space-40); list-style: none; }
.band__logo { display: block; width: auto; height: 32px; }
.band__logo--tum { height: 28px; }                                     /* Vollfläche, wirkt schwerer */
.band__logo--hec { height: 36px; }                                     /* feine Linien, etwas größer */
@media (min-width: 640px) {
  .band__logos { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-20) var(--space-40); margin-top: 52px; padding-top: var(--space-40); }  /* 52 (gemessen) */
  .band__logos-label { font-size: var(--text-eyebrow); letter-spacing: .18em; }
  .band__logoliste { gap: var(--space-56); }
}


/* ==========================================================================
   16 Vergleich „Wieso Amperatec“ (8.8): Tabelle ab 1024 px, gestapelte Karten darunter
   ========================================================================== */

.vergleich__kopf {
  display: grid;
  gap: var(--space-28);
  margin-bottom: var(--space-40);
  text-align: center;
}
.vergleich__kopf .plakette, .vergleich__kopf .augenbraue { margin-inline: auto; }
.vergleich__kopf .plakette + .titel { margin-top: var(--space-28); }
.vergleich__kopf .augenbraue + .titel { margin-top: var(--space-16); }
.vergleich__einleitung {
  max-width: var(--measure);
  margin-inline: auto;
  font-size: var(--text-lead-dunkel);
  line-height: 1.55;
  color: var(--on-ink-muted);
  text-wrap: pretty;
}
/* Zweispaltig erst ab 1024 px (8.8: ab 768). Bei 768 px stünde die Einleitung in einer 240 px breiten Spalte, rund 28 Zeichen
   statt 45 bis 50 (Prüfung GES-09, bewusste Abweichung). */
@media (min-width: 1024px) {
  .vergleich__kopf { grid-template-columns: 1.2fr .8fr; gap: var(--space-40); align-items: end; margin-bottom: var(--space-44); text-align: left; }
  .vergleich__kopf .plakette, .vergleich__kopf .augenbraue, .vergleich__einleitung { margin-inline: 0; }
}

/* Tabelle */
.vergleich__tabelle { display: none; }
@media (min-width: 1024px) {
  .vergleich__tabelle {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-table);
    overflow: hidden;
  }
}
.vergleich__tabelle col:nth-child(1) { width: 23.88%; }      /* 0.8fr  */
.vergleich__tabelle col:nth-child(2) { width: 35.82%; }      /* 1.2fr  */
.vergleich__tabelle col:nth-child(3) { width: 40.30%; }      /* 1.35fr */
.vergleich__tabelle :where(th, td) { vertical-align: top; text-align: left; font-weight: 400; }
.vergleich__tabelle tr > * + * { border-left: 1px solid var(--line-dark); }
.vergleich__tabelle tbody tr > * { border-top: 1px solid var(--line-dark); }

.vergleich__kopfzelle { padding: 22px var(--space-24); background: var(--surface-dark-2); vertical-align: middle; }  /* 22 / 24 (gemessen) */
.vergleich__tabelle thead tr > :first-child { padding-left: var(--space-28); background: var(--surface-dark-2); }
.vergleich__name { display: block; font-size: var(--text-h3); line-height: 1.4; font-weight: 800; color: var(--on-ink-2); }
.vergleich__unterzeile { display: block; margin-top: var(--space-2); font-size: var(--text-ui-sub); line-height: 1.4; font-weight: 400; color: var(--on-ink-muted); }
.vergleich__kopfzelle--amperatec { position: relative; isolation: isolate; background: var(--surface-dark-2); }
.vergleich__kopfzelle--amperatec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--accent), var(--accent-hover));
  transition: opacity var(--dur-reveal) var(--ease-out);
}
.vergleich__kopfzelle--amperatec .vergleich__name { color: var(--on-accent); }
.vergleich__kopfzelle--amperatec .vergleich__unterzeile { margin-top: var(--space-6); color: var(--on-accent); }
.vergleich__marke { display: block; width: auto; height: 20px; }

.vergleich__merkmal {
  padding: var(--space-24) 22px;                                                  /* 24 / 22 (gemessen) */
  background: var(--surface-dark-2);
  vertical-align: middle;
  font-size: var(--text-ui-row);
  line-height: 1.4;
  font-weight: 700;
  color: var(--on-ink-2);
}
.vergleich__merkmal .symbol { --symbol: 20px; margin-right: 11px; vertical-align: -5px; color: var(--accent-on-ink); }

/* Zellen: Marke per Pseudo-Element, Inhalt bleibt reiner Text */
.vergleich__heute, .vergleich__amperatec {
  position: relative;
  font-size: var(--text-ui-row);
  line-height: 1.4;
}
.vergleich__heute { padding: var(--space-24) var(--space-24) var(--space-24) calc(var(--space-24) + 18px + var(--space-10)); color: var(--on-ink-muted); font-weight: 400; }
.vergleich__heute::before, .vergleich__heute::after,
.vergleich__amperatec::before, .vergleich__amperatec::after { content: ""; position: absolute; }
.vergleich__heute::before { left: var(--space-24); top: 25px; width: 18px; height: 18px; border: 1.5px solid var(--line-dark-strong); border-radius: 50%; }
.vergleich__heute::after {
  left: calc(var(--space-24) + 4px); top: 29px; width: 10px; height: 10px;
  background: var(--on-ink-muted);
  -webkit-mask: var(--symbol-kreuz) center / contain no-repeat;
  mask: var(--symbol-kreuz) center / contain no-repeat;
}
.vergleich__amperatec {
  padding: var(--space-24) 26px var(--space-24) calc(26px + 20px + var(--space-10));  /* 24 / 26 (gemessen) */
  background: var(--accent-cell-on-ink);
  color: var(--on-accent-cell);
  font-weight: 600;
  transition: background-color var(--dur-reveal) var(--ease-standard), color var(--dur-reveal) var(--ease-standard);
}
.vergleich__amperatec::before {
  left: 26px; top: 24px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  transition: background-color var(--dur-reveal) var(--ease-standard), box-shadow var(--dur-reveal) var(--ease-standard);
}
.vergleich__amperatec::after {
  left: calc(26px + 4.5px); top: 28.5px; width: 11px; height: 11px;
  background: var(--on-accent);
  -webkit-mask: var(--symbol-haken) center / contain no-repeat;
  mask: var(--symbol-haken) center / contain no-repeat;
  transition: background-color var(--dur-reveal) var(--ease-standard);
}

/* Gestapelte Karten unter 1024 px: „heute“ zuerst, Amperatec zuletzt und dauerhaft hervorgehoben */
.vergleich__stapel { display: grid; gap: var(--space-16); }
@media (min-width: 1024px) { .vergleich__stapel { display: none; } }
.vergleich__karte {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-inner);
  background: var(--surface-dark-2);
  overflow: hidden;
}
@media (min-width: 640px) { .vergleich__karte { border-radius: var(--radius-card-sm); } }
.vergleich__karte-kopf { padding: var(--space-16); border-bottom: 1px solid var(--line-dark); text-align: center; }
@media (min-width: 640px) { .vergleich__karte-kopf { padding: var(--space-20) var(--space-24); } }
.vergleich__karte .vergleich__name { font-size: var(--text-lead-dunkel); color: var(--on-ink); }
.vergleich__karte .vergleich__unterzeile { margin-top: var(--space-4); }
.vergleich__karte--amperatec { border-color: var(--accent); background: var(--accent-cell-on-ink); }
.vergleich__karte--amperatec .vergleich__karte-kopf { background: linear-gradient(to bottom, var(--accent), var(--accent-hover)); border-bottom-color: var(--accent); }
.vergleich__karte--amperatec .vergleich__name, .vergleich__karte--amperatec .vergleich__unterzeile { color: var(--on-accent); }

.vergleich__liste { list-style: none; padding: 0 var(--space-16); }
@media (min-width: 640px) { .vergleich__liste { padding: 0 var(--space-20); } }
.vergleich__eintrag {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: var(--space-12);
  padding: var(--space-14) 0;
}
@media (min-width: 640px) { .vergleich__eintrag { padding: var(--space-16) 0; } }
.vergleich__eintrag + .vergleich__eintrag { border-top: 1px solid var(--line-dark); }
.vergleich__eintrag::before, .vergleich__eintrag::after { content: ""; grid-column: 1; grid-row: 1 / span 2; align-self: start; justify-self: center; }
.vergleich__eintrag::before { width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--line-dark-strong); border-radius: 50%; }
.vergleich__eintrag::after {
  width: 10px; height: 10px; margin-top: 5px;
  background: var(--on-ink-muted);
  -webkit-mask: var(--symbol-kreuz) center / contain no-repeat;
  mask: var(--symbol-kreuz) center / contain no-repeat;
}
.vergleich__karte--amperatec .vergleich__eintrag::before { width: 20px; height: 20px; margin-top: 0; border: 0; background: var(--accent); }
.vergleich__karte--amperatec .vergleich__eintrag::after { width: 11px; height: 11px; margin-top: 4.5px; background: var(--on-accent); -webkit-mask-image: var(--symbol-haken); mask-image: var(--symbol-haken); }
.vergleich__eintrag-label {
  grid-column: 2;
  font-size: var(--text-label);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.vergleich__eintrag-wert { grid-column: 2; margin-top: var(--space-2); font-size: var(--text-ui-row); line-height: 1.375; color: var(--on-ink-muted); }
.vergleich__karte--amperatec .vergleich__eintrag-wert { color: var(--on-accent-cell); font-weight: 600; }
.vergleich__karte--amperatec .vergleich__eintrag-label { color: var(--on-accent-cell); }


/* ==========================================================================
   17 Zweigeteilte Karte und Stat-Zeile (8.9)
   ========================================================================== */

.karte--geteilt { display: grid; padding: 0; box-shadow: var(--shadow-card-geteilt); }
.geteilt__haupt, .geteilt__neben { min-width: 0; padding: var(--space-24); text-align: center; }
.geteilt__neben { background: var(--bg); }
.geteilt__haupt > .augenbraue + * { margin-top: var(--space-16); }
.geteilt__haupt > .plakette + * { margin-top: var(--space-28); }
.geteilt__haupt > .titel + * { margin-top: var(--space-20); }
.geteilt__haupt > :is(.lead, .body) + * { margin-top: var(--space-28); }
.geteilt__haupt > :is(.plakette, .augenbraue, .lead, .body) { margin-inline: auto; }
.geteilt__haupt .lead { line-height: 1.6; }
.geteilt__neben .chips { justify-content: center; }
.geteilt__neben > * + * { margin-top: var(--space-28); }
@media (min-width: 640px) {
  .geteilt__haupt, .geteilt__neben { padding: var(--space-48); }
}
/* Nebeneinander erst ab 1024 px (8.9: ab 768). Bei 768 px wäre die Chip-Hälfte innen nur 222 px breit und sechs von acht
   Chips brächen zwei- bis dreizeilig um (Prüfung GES-10, bewusste Abweichung). */
@media (min-width: 1024px) {
  .karte--geteilt { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .geteilt__haupt, .geteilt__neben { padding: 52px; text-align: left; }   /* 52 (gemessen) */
  .geteilt__haupt > :is(.plakette, .augenbraue, .lead, .body) { margin-inline: 0; }
  .geteilt__neben { border-left: 1px solid var(--line); }
  .geteilt__neben .chips { justify-content: flex-start; }
}
.karte--geteilt > .statzeile { grid-column: 1 / -1; }

.statzeile { display: grid; list-style: none; border-top: 1px solid var(--line); }
.statzeile__zelle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-4) var(--space-10);
  padding: var(--space-24) var(--space-16);
  text-align: center;
}
.statzeile__zelle + .statzeile__zelle { border-top: 1px solid var(--line); }
.statzeile__zahl {
  flex: none;
  font-size: var(--text-stat);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.statzeile__zelle > .symbol { --symbol: 19px; align-self: center; color: var(--accent); }
.statzeile__text { font-size: var(--text-mittel); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
@media (min-width: 1024px) {
  .statzeile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statzeile__zelle { flex-wrap: nowrap; justify-content: flex-start; padding: var(--space-28) var(--space-32); text-align: left; }
  .statzeile__zelle + .statzeile__zelle { border-top: 0; border-left: 1px solid var(--line); }
}


/* ==========================================================================
   18 Häufige Fragen als <details> im Kartenstil
   ========================================================================== */

.fragen { display: grid; gap: var(--space-12); list-style: none; }
.frage {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-inner);
  background: var(--surface);
  transition: border-color var(--dur-ui) var(--ease-standard);
}
.frage:hover, .frage[open] { border-color: var(--line-strong); }
.frage__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-inner);
  list-style: none;
  cursor: pointer;
  font-size: var(--text-lead-l);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  text-align: left;
}
@media (min-width: 640px) { .frage__kopf { padding: var(--space-20) var(--space-24); } }
.frage__kopf::-webkit-details-marker { display: none; }
.frage__kopf::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--muted);
  -webkit-mask: var(--symbol-pfeil-unten) center / contain no-repeat;
  mask: var(--symbol-pfeil-unten) center / contain no-repeat;
  transition: rotate var(--dur-state) var(--ease-standard), background-color var(--dur-ui) var(--ease-standard);
}
.frage__kopf:hover::after { background: var(--ink); }
.frage[open] > .frage__kopf::after { rotate: 180deg; }
.frage__antwort {
  padding: 0 var(--space-20) var(--space-20);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.frage__antwort > * { max-width: var(--measure-wide); }
.frage__antwort > * + * { margin-top: var(--space-12); }
@media (min-width: 640px) { .frage__antwort { padding: 0 var(--space-24) var(--space-24); } }

/* Aufklappen weich, wo der Browser es kann */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .frage::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size var(--dur-state) var(--ease-out), content-visibility var(--dur-state) allow-discrete;
    }
    .frage[open]::details-content { block-size: auto; }
  }
}

/* Raster für den Fragen-Abschnitt: Titel links, Fragen rechts (ab 1024 px) */
.fragen-raster { display: grid; gap: var(--space-40); }
@media (min-width: 1024px) {
  .fragen-raster { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr); gap: clamp(var(--space-40), 5vw, var(--space-72)); align-items: start; }
}


/* ==========================================================================
   19 Hero-Rahmen und Bühne (8.13; Inhalt der Bühne stylt der Hero-Baustein)
   ========================================================================== */

.hero { padding: calc(var(--header-h) + var(--space-24)) var(--gutter) var(--space-56); }
.hero__raster { max-width: var(--wrap); margin-inline: auto; display: grid; gap: var(--space-40); }
.hero__text { min-width: 0; text-align: center; }
.hero__text > :is(.plakette, .augenbraue, .lead-xl) { margin-inline: auto; }
.hero__text > :is(.plakette, .augenbraue) + * { margin-top: var(--space-16); }
.hero__text > .titel + * { margin-top: var(--space-24); }
.hero__text > .lead-xl + * { margin-top: var(--space-36); }
.hero__text .knopfzeile { justify-content: center; }
@media (min-width: 640px) {
  .hero__raster { gap: var(--space-48); }
  .hero__buehne { width: 100%; max-width: 640px; margin-inline: auto; }
}
@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; min-height: 100svh; padding-top: calc(var(--header-h) + var(--space-32)); }
  .hero__raster { width: 100%; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--space-64); align-items: center; }
  .hero__text { text-align: left; }
  .hero__text > :is(.plakette, .augenbraue, .lead-xl) { margin-inline: 0; }
  .hero__text .knopfzeile { justify-content: flex-start; }
  .hero__buehne { max-width: none; }
}

.buehne {
  position: relative;
  padding: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 640px) { .buehne { padding: var(--space-24); border-radius: var(--radius-card); } }


/* ==========================================================================
   20 Abschluss-Aufruf (8.10)
   ========================================================================== */

.abschluss { background: var(--surface); padding: var(--space-72) var(--gutter) var(--space-64); }
.abschluss__innen { max-width: 760px; margin-inline: auto; padding-inline: var(--space-24); text-align: center; }   /* max. 760 */
.abschluss__innen > .titel + * { margin-top: var(--space-24); }
.abschluss__innen > .lead-l { margin-inline: auto; }
.abschluss__innen > .lead-l + * { margin-top: var(--space-36); }
.abschluss__innen .knopfzeile { justify-content: center; }
.abschluss__zeile { margin-top: var(--space-24); font-size: var(--text-mittel); line-height: 1.5; color: var(--muted); }
.abschluss__zeile a[href^="tel:"], .abschluss__zeile a[href^="mailto:"] { white-space: nowrap; }
/* Tippfläche ≥ 40 px (10) ohne sichtbare Änderung: Innenabstand, der vom Außenabstand wieder aufgehoben wird */
.abschluss__zeile a { display: inline-block; padding-block: 9px; margin-block: -9px; line-height: 22px; }   /* 22 + 2 × 9 = 40 */
@media (max-width: 639.98px) { .abschluss__zeile { line-height: 40px; } }
@media (max-width: 639.98px) { .abschluss__innen { padding-inline: 0; } }
@media (min-width: 640px) { .abschluss { padding-top: 110px; padding-bottom: 96px; } }                  /* 110 / 96 (gemessen) */
@media (min-width: 1024px) { .abschluss { padding-top: var(--space-120); padding-bottom: var(--space-120); } }


/* ==========================================================================
   21 Footer (8.11): dunkle Lasche auf Weiß, oben gerundet
   ========================================================================== */

.fuss { background: var(--surface); padding-inline: var(--gutter); }
.fuss__karte {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 36px var(--space-16) var(--space-32);                         /* 36 / 16 / 32 (gemessen) */
  background: var(--surface-dark);
  border-radius: var(--radius-footer) var(--radius-footer) 0 0;
  container: fuss / inline-size;
  color: var(--on-ink-muted);
}
@media (min-width: 640px) { .fuss__karte { padding: var(--space-56) var(--space-32) var(--space-32); } }
@media (min-width: 1024px) { .fuss__karte { padding: var(--space-64) var(--space-56) 36px; } }       /* 64 / 56 / 36 / 56 */

.fuss__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-32) var(--space-20); }
.fuss__marke { grid-column: 1 / -1; text-align: center; }
.fuss__logo { display: inline-block; border-radius: var(--radius-sm); }
.fuss__logo img, .fuss__logo svg { display: block; width: auto; height: 40px; }
.fuss__beschreibung { max-width: 360px; margin: var(--space-20) auto 0; font-size: var(--text-mittel); line-height: 1.375; font-weight: 500; color: var(--on-ink-muted); }
@media (min-width: 640px) {
  .fuss__raster { gap: var(--space-40) var(--space-32); }
  .fuss__marke { text-align: left; }
  .fuss__logo img, .fuss__logo svg { height: 48px; }
  .fuss__beschreibung { margin-inline: 0; }
}
@media (min-width: 768px) {
  .fuss__raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-48) var(--space-40); }
}
/* Marke links neben den Spalten erst, wenn die Karte breit genug ist (etwa ab 1280 px Fenster);
   bei 1024 px brächen die Links in 137 px breiten Spalten um */
@container fuss (min-width: 1100px) {
  .fuss__raster { grid-template-columns: 2.3fr repeat(3, minmax(0, 1fr)); }
  .fuss__marke { grid-column: auto; }
}

.fuss__kopf { font-size: var(--text-footer-head); line-height: 1.5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-on-ink); }
.fuss__liste { list-style: none; margin-top: var(--space-6); }         /* 12 bis zum ersten Link, 6 davon trägt der Link */
.fuss__link {
  display: inline-block;
  padding: var(--space-8) 0;
  border-radius: var(--radius-xs);
  font-size: var(--text-mittel);
  line-height: 1.5;
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
@media (min-width: 640px) { .fuss__link { padding: var(--space-6) 0; } }
.fuss__link:hover { color: var(--on-ink); }

.fuss__schluss {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
  margin-top: var(--space-40);
  padding-top: var(--space-24);
  border-top: 1px solid var(--line-dark);
  text-align: center;
  font-size: var(--text-title-s);
  line-height: 1.5;
  color: var(--on-ink-muted);
}
.fuss__rechtlich { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8) var(--space-28); list-style: none; }
.fuss__rechtlich a { font-weight: 500; color: var(--on-ink-muted); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
.fuss__rechtlich a:hover { color: var(--on-ink); }
@media (min-width: 768px) {
  .fuss__schluss { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: var(--space-28); margin-top: var(--space-64); padding-top: var(--space-28); text-align: left; }
  .fuss__schluss > :last-child { text-align: right; }
}


/* ==========================================================================
   22 Diagramm-Grundlagen (8.4.3): Plotfläche, Referenzband, gedämpfte Kurven, eine Kurve in accent, Marker
   Klassen gelten für Elemente im Inline-SVG. Striche mit vector-effect, damit sie beim Skalieren gleich dick bleiben.
   ========================================================================== */

.plot { position: relative; background: var(--surface-2); border-radius: var(--radius-sm); }
.plot > svg { display: block; width: 100%; height: auto; overflow: visible; }

.plot__gitter { fill: none; stroke: var(--plot-grid); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.plot__achse { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot__beschriftung { font-family: var(--font-mono); font-size: var(--text-axis); fill: var(--muted); font-variant-numeric: tabular-nums; }
.plot__titel { font-family: var(--font-sans); font-size: var(--text-ui-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }

.plot__band { fill: var(--accent-soft); }
.plot__band-rand { fill: none; stroke: var(--accent-line); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.plot__band-label { font-family: var(--font-sans); font-size: var(--text-micro); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; fill: var(--accent); }
/* Graues Referenzband (website-text: Band aus früheren Läufen in Grau, damit die Akzentkurve heraussticht) */
.plot__band--grau { fill: var(--line); }
.plot__band-rand--grau { stroke: var(--line-strong); }
.plot__band-label--grau { fill: var(--muted); }

.plot__kurve { fill: none; stroke: var(--trace-1); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plot__kurve--gedaempft { stroke: var(--ink); stroke-opacity: .25; }
.plot__kurve--akzent { stroke: var(--accent); stroke-width: 2; }
.plot__kurve--vergleich { stroke: var(--trace-2); stroke-dasharray: 6 4; }

.plot__marker { fill: var(--surface); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.plot__marker-hof { fill: var(--accent); fill-opacity: .2; }
.plot__marker-label { font-family: var(--font-sans); font-size: var(--text-ui-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--accent); }
.plot__marker-text { font-family: var(--font-sans); font-size: var(--text-ui-sub); fill: var(--muted); }

/* Notiz zum Marker als HTML über dem Diagramm (position: absolute, left/top setzt der Baustein) */
.plot__notiz {
  position: absolute;
  max-width: 240px;
  padding: var(--space-8) var(--space-10);
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-window);
}
.plot__notiz-kopf { display: block; font-size: var(--text-ui-label); line-height: 1.5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.plot__notiz-text { display: block; margin-top: var(--space-2); font-size: var(--text-ui-sub); line-height: 1.4; color: var(--muted); }

/* Legende unter dem Diagramm */
.plot-legende { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-16); list-style: none; font-size: var(--text-ui-sub); line-height: 1.4; color: var(--muted); }
.plot-legende > li { display: inline-flex; align-items: center; gap: var(--space-6); }
.plot-legende > li::before { content: ""; flex: none; width: 16px; height: 0; border-top: 2px solid var(--ink); opacity: .25; }
.plot-legende__akzent::before { border-top-color: var(--accent) !important; opacity: 1 !important; }
.plot-legende__band::before { height: 8px !important; border: 1px dashed var(--accent-line) !important; background: var(--accent-soft); opacity: 1 !important; }
.plot-legende__band--grau::before { border-color: var(--line-strong) !important; background: var(--line) !important; }


/* ==========================================================================
   23 Einblenden (9.2): [data-reveal] bekommt per IntersectionObserver einmalig .is-visible
   Versteckt wird nur, wenn das Skript läuft (html.js) und keine reduzierte Bewegung gewünscht ist.
   Werte: "" oder "fenster" (Fenster), "pop" (Chips, Häkchen), "zahl" (Kennwerte), "text" (Zeilen), "blende" (nur Deckkraft),
   "aufleuchten" (Vergleichstabelle: nichts verstecken, Amperatec-Spalte leuchtet auf). Versatz über style="--i: 2".
   "pop-gruppe" an einer Liste: Die Kinder erscheinen gemeinsam, sobald die Liste ins Bild kommt, gestaffelt über ihr --i
   (29.09.2026; einzeln beobachtete Chips ließen am Telefon eine leere Fläche stehen, Prüfung TEC2-22).
   ========================================================================== */

/* Nur am Bildschirm: Wer druckt oder als PDF sichert, bekommt alle Endzustände (Prüfung TEL-10, TEC-01). */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition-property: opacity, transform;
    transition-duration: var(--dur-reveal);
    transition-timing-function: var(--ease-reveal);
    transition-delay: calc(var(--i, 0) * var(--reveal-versatz, 0ms));
  }
  .js :is([data-reveal=""], [data-reveal="fenster"]):not(.is-visible) { opacity: 0; transform: translateY(22px) scale(.97); }

  .js [data-reveal="pop"] { transition-duration: var(--dur-pop); transition-timing-function: var(--ease-pop); --reveal-versatz: var(--stagger-chip); }
  .js [data-reveal="pop"]:not(.is-visible) { opacity: 0; transform: scale(.6); }

  .js [data-reveal="pop-gruppe"] > * {
    transition: opacity var(--dur-pop) var(--ease-pop), transform var(--dur-pop) var(--ease-pop);
    transition-delay: calc(var(--i, 0) * var(--stagger-chip));
  }
  .js [data-reveal="pop-gruppe"]:not(.is-visible) > * { opacity: 0; transform: scale(.6); }

  .js [data-reveal="zahl"] { transition-duration: var(--dur-pop); transition-timing-function: var(--ease-pop); --reveal-versatz: var(--stagger-num); }
  .js [data-reveal="zahl"]:not(.is-visible) { opacity: 0; transform: scale(.4); }

  .js [data-reveal="text"] { transition-duration: var(--dur-item); transition-timing-function: var(--ease-item); --reveal-versatz: var(--stagger-step); }
  .js [data-reveal="text"]:not(.is-visible) { opacity: 0; transform: translateY(6px); }

  .js [data-reveal="blende"] { transition-duration: var(--dur-state); transition-timing-function: var(--ease-standard); }
  .js [data-reveal="blende"]:not(.is-visible) { opacity: 0; }

  .js [data-reveal="aufleuchten"] { transition: none; }

  /* Kurven zeichnen: Pfad mit pathLength="1" und Klasse plot__kurve--zeichnen, Vorfahr mit data-reveal */
  .js .plot__kurve--zeichnen { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-draw) var(--ease-out); }
  .js [data-reveal]:not(.is-visible) .plot__kurve--zeichnen { stroke-dashoffset: 1; }
  .js .plot__marker-gruppe { transition: opacity var(--dur-pop) var(--ease-pop) var(--dur-draw), transform var(--dur-pop) var(--ease-pop) var(--dur-draw); transform-box: fill-box; transform-origin: center; }
  .js [data-reveal]:not(.is-visible) .plot__marker-gruppe { opacity: 0; transform: scale(.5); }
}

/* Übersprungen (schnelles Scrollen, Anker, Laden mit Anker): grundlage.js setzt .is-visible zusammen mit .is-sofort und
   nimmt .is-sofort zwei Bilder später wieder weg. So steht der Endzustand sofort, ohne Übergang (K1). */
.js [data-reveal].is-sofort, .js [data-reveal].is-sofort *, .js [data-reveal].is-sofort *::before, .js [data-reveal].is-sofort *::after {
  transition: none !important;
}

/* Vergleich ab 1024 px: Amperatec-Spalte startet grau wie „heute“ und leuchtet einmal auf (9.2) */
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .js .vergleich[data-reveal]:not(.is-visible) .vergleich__kopfzelle--amperatec::before { opacity: 0; }
  .js .vergleich[data-reveal]:not(.is-visible) .vergleich__kopfzelle--amperatec :is(.vergleich__name, .vergleich__unterzeile) { color: var(--on-ink-2); }
  .js .vergleich[data-reveal]:not(.is-visible) .vergleich__amperatec { background-color: transparent; color: var(--on-ink-muted); font-weight: 400; }
  .js .vergleich[data-reveal]:not(.is-visible) .vergleich__amperatec::before { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--line-dark-strong); }
  .js .vergleich[data-reveal]:not(.is-visible) .vergleich__amperatec::after { background-color: var(--on-ink-muted); }
}


/* ==========================================================================
   24 Symbole (8.12): Größen und eingebaute Masken
   <svg class="symbol symbol--20">…</svg> für eigene Inline-SVGs (fill="currentColor"),
   <i class="symbol symbol--15 symbol--haken" aria-hidden="true"></i> für die eingebauten Formen.
   ========================================================================== */

.symbol {
  display: inline-block;
  flex: none;
  width: var(--symbol, 1em);
  height: var(--symbol, 1em);
  vertical-align: -.125em;
}
.symbol--10 { --symbol: 10px; }
.symbol--11 { --symbol: 11px; }
.symbol--12 { --symbol: 12px; }
.symbol--13 { --symbol: 13px; }
.symbol--14 { --symbol: 14px; }
.symbol--15 { --symbol: 15px; }
.symbol--17 { --symbol: 17px; }
.symbol--18 { --symbol: 18px; }
.symbol--19 { --symbol: 19px; }
.symbol--20 { --symbol: 20px; }
.symbol--22 { --symbol: 22px; }
.symbol--24 { --symbol: 24px; }
.symbol--26 { --symbol: 26px; }

.symbol--duoton { color: var(--accent); }
:where(.karte--dunkel, .karte--verlauf, .auf-dunkel) .symbol--duoton { color: var(--accent-on-ink); }

:is(.symbol--haken, .symbol--kreuz, .symbol--pfeil, .symbol--pfeil-unten, .symbol--pfeil-rechts, .symbol--menue, .symbol--nochmal, .symbol--pause, .symbol--abspielen, .symbol--extern) {
  background: currentColor;
  -webkit-mask: var(--symbol-maske) center / contain no-repeat;
  mask: var(--symbol-maske) center / contain no-repeat;
}
.symbol--haken { --symbol-maske: var(--symbol-haken); }
.symbol--kreuz { --symbol-maske: var(--symbol-kreuz); }
.symbol--pfeil { --symbol-maske: var(--symbol-pfeil); }
.symbol--pfeil-unten { --symbol-maske: var(--symbol-pfeil-unten); }
.symbol--pfeil-rechts { --symbol-maske: var(--symbol-pfeil-rechts); }
.symbol--menue { --symbol-maske: var(--symbol-menue); }
.symbol--nochmal { --symbol-maske: var(--symbol-nochmal); }
.symbol--pause { --symbol-maske: var(--symbol-pause); }
.symbol--abspielen { --symbol-maske: var(--symbol-abspielen); }
.symbol--extern { --symbol-maske: var(--symbol-extern); }
