/* Constari Consulting, Stylesheet der Website.
   Richtung "Sachlich modern": ein Raster, eine Schrift, eine Farbe.
   Mobil zuerst. Stufen ab 30rem (480 px), 47.5rem (760 px), 62rem (992 px), 68.75rem (1100 px)
   und 75rem (1200 px). Das Verzeichnis im Auftakt richtet sich über eine Container-Abfrage
   nach der Breite seiner Spalte. Wo die Spalte für die Schrift zu schmal wird (vergrößerte
   Schrift, starker Zoom am Telefon), greift die Stufe am Dateiende. Das Design-System steht in
   DESIGN.md. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Ersatz für die Zeit, bis Geist geladen ist: Arial, auf die Laufweite von Geist gebracht
   (Geist läuft in 400 und 700 rund 2 % breiter). So bleiben die Zeilenumbrüche beim Wechsel
   stehen. Wo Arial fehlt, greift die nächste Schrift der Liste. */
@font-face {
  font-family: "Geist Ersatz";
  src: local("Arial");
  font-weight: 400;
  size-adjust: 102%;
  ascent-override: 98.5%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Ersatz";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700;
  size-adjust: 102%;
  ascent-override: 98.5%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}

:root {
  --paper: #ffffff;
  --ink: #0b0e14;
  --azure: #2f6bed;
  --azure-dark: #1942a0;
  --muted: #49505e;
  --line: #b1bccb;
  --line-soft: #d2dae4;

  --font: "Geist", "Geist Ersatz", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Ein rem, das nie größer wird als ein Zwanzigstel der Fensterbreite. Bei üblicher Schriftgröße
     ist das ab 320 px genau 1rem. Wo das Fenster schmaler ist als 20 Schriftgrößen, wachsen
     Rand, Kopfzeile, Pillen und die großen Überschriften nicht weiter mit der Schrift, sondern
     bleiben im Verhältnis zum Fenster so, wie sie bei 320 px gesetzt sind. */
  --u: min(1rem, 5vw);

  --gutter: clamp(calc(1.25 * var(--u)), 4.45vw, 4rem);
  --gap: clamp(1rem, 2.2vw, 2rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --wrap: 90rem;
  /* Lesebreite für Fließtext in der Grundgröße: rund 70 Zeichen je Zeile. */
  --measure: 34rem;
  --header: calc(4 * var(--u));

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 47.5rem) {
  :root { --header: 4.75rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  scrollbar-color: var(--line) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Ein Wort, das allein nicht in seine Zeile passt, wird umbrochen statt abgeschnitten. */
  overflow-wrap: break-word;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
.nw { white-space: nowrap; }
/* Paarausgleich in großen Überschriften (rt, ft, tw), siehe kern() in site.py. Die eigene Spanne
   hebt das Unterschneiden des Paars auf, der Rand öffnet es zusätzlich leicht. */
.k { margin-left: 0.01em; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
svg { display: block; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* hidden gilt auch dort, wo eine Regel display setzt (Formular, Meldungen). */
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

::selection { background: var(--azure); color: #fff; }

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* Container für die Stufe "Wenig Breite für die Schrift" am Dateiende. */
  container: wrap / inline-size;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 30;
  padding: 0.75rem 1.125rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------------------------------------------------------------- Typografie */
.h2 {
  font-size: clamp(calc(2.25 * var(--u)), 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.3125rem, 1.875vw, 1.6875rem);
  line-height: 1.38;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ Aktionen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.625 * var(--u));
  min-height: calc(3 * var(--u));
  padding: calc(0.75 * var(--u)) calc(1.375 * var(--u));
  border: 0;
  border-radius: 999px;
  font-size: var(--u);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(0.25rem); }
.btn:active { transform: translateY(1px); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--azure); }
.btn--azure { background: var(--azure); color: #fff; }
.btn--azure:hover { background: var(--azure-dark); }

.btn--large {
  min-height: calc(3.75 * var(--u));
  padding: var(--u) calc(1.75 * var(--u));
  font-size: calc(1.25 * var(--u));
}
.btn--compact { min-height: calc(2.75 * var(--u)); padding: calc(0.625 * var(--u)) calc(1.25 * var(--u)); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: calc(2.75 * var(--u));
  font-weight: 600;
}
.more .icon { transition: transform 0.35s var(--ease); }
.more:hover { color: var(--azure); }
.more:hover .icon { transform: translateX(0.25rem); }

/* ----------------------------------------------------------------- Kopfzeile */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-line linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 6rem;
  }
}
@keyframes header-line {
  from { border-bottom-color: transparent; }
  to { border-bottom-color: var(--line-soft); }
}

/* Logo und Aktion stehen in einer Zeile. Reicht die Breite dafür nicht (Textskalierung mobiler
   Browser), rückt die Aktion in eine zweite Zeile, statt aus dem Fenster zu laufen. */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.25rem;
  min-height: var(--header);
  padding-block: 0.25rem;
}
.site-header__cta { margin-left: auto; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: calc(0.625 * var(--u));
  min-height: calc(2.75 * var(--u));
  font-size: calc(1.375 * var(--u));
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo svg { width: calc(1.625 * var(--u)); height: calc(1.625 * var(--u)); }

.nav { font-weight: 500; }
.nav a { text-decoration: none; transition: color 0.2s ease-out; }
.nav a:hover { color: var(--azure); }
.nav--bar { display: none; }
.nav--below {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding-inline: var(--gutter);
  font-size: 0.9375rem;
}
.nav--below a { padding-block: calc(0.875 * var(--u)); }
.label-wide { display: none; }

@media (min-width: 47.5rem) {
  .logo { font-size: 1.5625rem; }
  .logo svg { width: 1.75rem; height: 1.75rem; }
  .nav--bar { display: flex; gap: 2.25rem; margin-left: auto; }
  .nav--bar a { padding-block: 0.5rem; }
  .nav--below { display: none; }
  .site-header__cta { margin-left: 2.25rem; }
}

@media (min-width: 62rem) {
  .label-wide { display: inline; }
  .label-narrow { display: none; }
}

/* -------------------------------------------------------------------- Auftakt */
.hero { overflow-x: clip; }
.hero__inner { padding-top: 0.75rem; }

/* Der Slogan füllt die Breite. Seine Größe folgt deshalb allein dem Fenster und nicht der
   eingestellten Schriftgröße, auch nicht der Textskalierung mobiler Browser. */
.hero__title {
  margin-left: -0.035em;
  font-size: min(15.6vw, 7.25rem);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.hero__title em { font-style: normal; color: var(--azure); }

.hero__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.75rem;
  margin-top: 1.75rem;
}

.hero__pitch .btn { margin-top: 1.5rem; }
.hero__note { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }

.hero__index { container-type: inline-size; }
.index__head {
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--ink);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.index__row {
  display: grid;
  grid-template-columns: minmax(2.75rem, auto) minmax(0, 1fr);
  gap: 0.125rem 0.875rem;
  align-items: baseline;
  padding: 0.875rem 0 0.8125rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s ease-out;
}
.index__code,
.index__dur {
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.index__name {
  font-size: 1.125rem;
  font-size: clamp(1.125rem, 10cqi - 0.5rem, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  hyphens: auto;
  transition: color 0.2s ease-out;
}
.index__dur { grid-column: 2; }
.index__row:hover { border-bottom-color: var(--ink); }
.index__row:hover .index__name { color: var(--azure); }

.hero__field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 21rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 1.25rem var(--gutter) 1.5rem;
  overflow: hidden;
  background: var(--azure);
  color: #fff;
}
.hero__field ::selection { background: #fff; color: var(--azure-dark); }
.hero__arc {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: min(22rem, 68%);
  height: auto;
  stroke: rgb(255 255 255 / 0.14);
  pointer-events: none;
}
.hero__placeholder {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
/* Die Zeile zum Gründer steht unten im Feld, auch wenn darüber nichts steht (Landingpage). */
.hero__field figcaption {
  position: relative;
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
}
.hero__field b { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.hero__field figcaption > span { line-height: 1.4; text-wrap: balance; }

/* Ab dieser Spaltenbreite steht die Dauer rechts neben dem Namen. Die Schriftgröße ist so
   gerechnet, dass der längste Name in eine Zeile passt. */
@container (min-width: 21rem) {
  .index__row { grid-template-columns: minmax(2.75rem, auto) minmax(0, 1fr) auto; }
  .index__dur { grid-column: auto; }
  .index__name { font-size: clamp(1rem, 10cqi - 1.125rem, var(--index-max, 1.375rem)); }
}

@media (min-width: 47.5rem) {
  .br-narrow { display: none; }
  .hero__title {
    font-size: min(12.5vw, 11.75rem);
    line-height: 0.87;
    white-space: nowrap;
  }
  .hero__cols {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    margin-top: clamp(2rem, 3.75vw, 3.375rem);
  }
  .hero__pitch { grid-column: 1 / span 6; }
  .hero__index { grid-column: 7 / span 6; }
  .hero__field { grid-column: 1 / -1; min-height: 20rem; }
}

@media (min-width: 75rem) {
  .hero__inner {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: min(100svh - var(--header), 51.5rem);
    padding-top: 1rem;
  }
  .hero__pitch { grid-column: 1 / span 4; padding-bottom: 3rem; }
  .hero__index { grid-column: 5 / span 4; padding-bottom: 3rem; }
  .hero__field {
    grid-column: 9 / span 4;
    min-height: 26rem;
    margin-inline: 0 calc(-1 * (var(--gutter) + max(0px, (100vw - var(--wrap)) / 2)));
    padding: 1.5rem;
  }
  .hero__index { --index-max: 1.5rem; }
  .hero__title { font-size: clamp(min(5.5rem, 12.5vw), min(12.5vw, 21svh), 11.75rem); }
}

/* Niedrige Bildschirme: Der erste Blick bleibt vollständig. */
@media (min-width: 75rem) and (max-height: 50rem) {
  .hero__cols { margin-top: 2rem; }
  .hero__pitch, .hero__index { padding-bottom: 1rem; }
  .index__row { padding-block: 0.625rem 0.5625rem; }
  .hero__field { min-height: 0; }
}

/* Der einzige gesetzte Auftritt: Das Schlusswort färbt sich, das Feld fährt von rechts ein. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title em { animation: tint 0.9s var(--ease) 0.5s both; }
  .hero__field { animation: field-in 1.1s var(--ease) 0.15s both; }
}
@keyframes tint {
  from { color: var(--ink); }
}
@keyframes field-in {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------------------------------------------------------------- Abschnitte */
.block { padding-block: var(--section); }
.block--tight { padding-top: 0; }

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.25rem;
  margin-bottom: clamp(2.25rem, 5vw, 4.5rem);
}
.head__sub {
  max-width: 30rem;
  color: var(--muted);
}

@media (min-width: 68.75rem) {
  .head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .head > .h2 { grid-column: 1 / span 8; }
  .head__sub { grid-column: 9 / span 4; padding-bottom: 0.375rem; }
}

/* Kästen im Bauplan */
.boxes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.boxes li {
  padding: 0.3125rem 0.75rem;
  border: 1px solid currentColor;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Zeilen mit Bezeichnung links und Wert rechts */
.facts { border-top: 3px solid var(--ink); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(6.25rem, auto) minmax(0, 1fr);
  column-gap: 1rem;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.9375rem; line-height: 1.7; color: var(--muted); }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 30rem) {
  .facts > div { grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr); }
}

/* ------------------------------------------------------------------- Zusagen */
/* Die Kernaussagen der Landingpage als Zeilen: links die Aussage, rechts ein Absatz dazu. */
.pledges { border-top: 3px solid var(--ink); }
.pledge {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.875rem;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}
.pledge p { max-width: var(--measure); color: var(--muted); }

@media (min-width: 68.75rem) {
  .pledge {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: baseline;
    padding: 2rem 0 2.25rem;
  }
  .pledge .h3 { grid-column: 1 / span 7; }
  .pledge p { grid-column: 9 / span 4; }
}

/* ------------------------------------------------------------------- Prinzip */
.principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.75rem;
}
.principle__copy p {
  max-width: 32rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.45;
}
.principle__copy .principle__rule {
  margin-top: 2rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.schema { border-top: 3px solid var(--ink); }
.schema__row {
  display: grid;
  grid-template-columns: minmax(5.75rem, auto) minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.schema__label { font-size: 0.9375rem; font-weight: 700; line-height: 1.7; }
.schema__row--human {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  border-bottom-color: var(--azure);
  background: var(--azure);
  color: #fff;
}
.schema__row--human ::selection { background: #fff; color: var(--azure-dark); }
.schema figcaption {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.ask__q {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ask__a { margin-top: 0.75rem; }
.ask__src {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 47.5rem) {
  .schema__row { grid-template-columns: minmax(8rem, auto) minmax(0, 1fr); column-gap: 1.5rem; }
  .schema__row--human { margin-inline: -1.25rem; padding-inline: 1.25rem; }
}

@media (min-width: 68.75rem) {
  .principle {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .principle__copy { grid-column: 1 / span 5; }
  .principle > .schema { grid-column: 7 / span 6; }
}

/* -------------------------------------------------------------------- Bilder */
/* Je Linie eine Architekturaufnahme in Schwarzweiß: eckig, ohne Rahmen, ohne Schatten. Die
   Dateien sind 3:2. Wo das Feld flacher ist, bestimmt object-position, was stehen bleibt
   (bei der Treppe der Austritt mit einem Streifen Himmel, beim Sheddach die Dachlinie mit Wand
   darunter und wenig Himmel darüber, beim Vordach das Dach mit der offenen Tür darunter). Wo es
   schmaler ist, steht das Vordach mittig, es liegt im Bild leicht rechts der Mitte. */
.pic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--line-soft);
}
.pic--e { object-position: 50% 35%; }
.pic--i { object-position: 50% 35%; }
.pic--a { object-position: 56% 60%; }

/* ------------------------------------------------------------------- Katalog */
.line { border-top: 3px solid var(--ink); }
.line + .line { margin-top: clamp(3rem, 6vw, 5.5rem); }

.line__head { padding: 1.25rem 0 1.5rem; }
.line__head h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.line__claim {
  margin-top: 0.875rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.line__text {
  max-width: 24rem;
  margin-top: 0.5rem;
  color: var(--muted);
}
.line__pic { margin-top: 1.5rem; }
.line__rows { border-top: 1px solid var(--line); }

.row {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header) + 1rem);
}
.row summary {
  display: grid;
  grid-template-columns: minmax(2.75rem, auto) minmax(0, 1fr) 1.5rem;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  align-items: baseline;
  padding: 1.25rem 0 1.125rem;
  cursor: pointer;
  list-style: none;
}
.row summary::-webkit-details-marker { display: none; }
.row__code {
  margin-bottom: -0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
/* Der Produktname ist eine Überschrift und steht deshalb direkt im summary, die Kurzzeile
   in der Zeile darunter. Der negative Rand zieht sie auf 0.375rem an den Namen heran. Kennung,
   Dauer und Format stehen auf der Grundlinie des Namens; ihr negativer Rand unten sorgt dafür,
   dass allein der Name die Höhe der ersten Zeile bestimmt. */
.row__name {
  grid-column: 2;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  hyphens: auto;
  transition: color 0.2s ease-out;
}
.row__tag {
  grid-column: 2;
  margin-top: -0.125rem;
  line-height: 1.4;
  color: var(--muted);
}
.row__meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.row__icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 0.125rem;
  transition: transform 0.35s var(--ease), color 0.2s ease-out;
}
.row summary:hover .row__name,
.row[open] .row__name { color: var(--azure); }
.row summary:hover .row__icon { color: var(--azure); }
.row[open] .row__icon { transform: rotate(45deg); }

.row__body {
  display: grid;
  gap: 1.5rem;
  max-width: 46rem;
  padding: 0.25rem 0 2rem;
}
.row__body > p { max-width: var(--measure); }
.row__label { margin-bottom: 0.625rem; font-size: 0.9375rem; font-weight: 700; }
.variants { border-top: 1px solid var(--line-soft); }
.variants > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.125rem 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.variants dt { font-weight: 600; }
.variants dd { grid-column: 1 / -1; color: var(--muted); }
.variants .variants__dur {
  grid-column: 2;
  grid-row: 1;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.row__price { width: 100%; font-variant-numeric: tabular-nums; }

@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .row::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
    }
    .row[open]::details-content { block-size: auto; }
  }
}

.note {
  max-width: 30rem;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.note + .note { margin-top: 0.5rem; }

/* Text und Aufnahme der Linie stehen nebeneinander, sobald die Breite für zwei Spalten reicht
   und bis die Linie ab 68.75rem ihr eigenes Raster hat. Darunter folgt die Aufnahme dem Text. */
@media (min-width: 36rem) {
  .line__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }
  .line__pic { margin-top: 0.25rem; }
}

@media (min-width: 47.5rem) {
  .row summary {
    grid-template-columns: 3.25rem minmax(0, 1fr) 7.5rem 10.5rem 1.5rem;
    column-gap: 1rem;
    padding: 1.5rem 0 1.375rem;
  }
  .row__meta { display: contents; }
  /* Die Kurzzeile läuft unter Dauer und Format weiter, sonst bricht sie nach wenigen Wörtern. */
  .row__tag { grid-column: 2 / 5; max-width: 37rem; }
  .row__dur { grid-column: 3; grid-row: 1; margin-bottom: -0.25rem; }
  .row__fmt { grid-column: 4; grid-row: 1; margin-bottom: -0.25rem; }
  .row__icon { grid-column: 5; margin-top: 0.25rem; }
  .row__body { padding-left: 4.25rem; }
  .variants > div { grid-template-columns: 13rem minmax(0, 1fr) auto; }
  .variants dd { grid-column: 2; }
  .variants .variants__dur { grid-column: 3; min-width: 6.5rem; text-align: right; }
  .row__price { width: auto; margin-right: auto; }
}

@media (min-width: 68.75rem) {
  /* Kopfzeile: links das Verb, rechts Leitsatz und Text. Darunter links die Aufnahme, rechts die
     Zeilen. Kopf und Textblock lösen sich dafür im Raster der Linie auf. Aufnahme und Zeilen
     stehen oben und unten auf einer Linie: Jede Zeile ist mindestens halb so hoch wie die
     Aufnahme (zwei Produkte je Linie). Die Höhe der Aufnahme ergibt sich aus der Breite der
     Zeilenspalte, deshalb ist diese ein Container; bis 78rem ist die Aufnahme 5:4, damit auch
     eine zweizeilige Zeile hineinpasst. Offen behält die Zeile die Höhe, nichts springt. Sind
     die geschlossenen Zeilen doch höher, streckt sich die Aufnahme um diese wenigen Pixel,
     höchstens um 0.75rem (--pic-w ist ihre Breite: vier von zwölf Spalten des Abschnitts). */
  .line {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    column-gap: var(--gap);
  }
  .line__head,
  .line__copy { display: contents; }
  .line__head h3 { grid-column: 1 / span 4; grid-row: 1; align-self: baseline; padding-top: 1.25rem; }
  .line__claim { grid-column: 5 / span 8; grid-row: 1; align-self: baseline; margin-top: 0; }
  .line__text { grid-column: 5 / span 8; grid-row: 2; max-width: var(--measure); }
  .line__pic {
    grid-column: 1 / span 4;
    --pic-w: calc((100cqw - 2 * var(--gap)) / 3);
    grid-row: 3;
    align-self: stretch;
    max-height: calc(var(--pic-w) * 4 / 5 + 0.75rem);
    margin-top: 1.25rem;
    aspect-ratio: 5 / 4;
  }
  .line:has(.row[open]) .line__pic { align-self: start; }
  .line__rows {
    grid-column: 5 / span 8;
    grid-row: 3;
    margin-top: 1.25rem;
    container-type: inline-size;
  }
  /* Breite der Aufnahme: (100cqw - Spaltenabstand) / 2. Abgezogen sind die Linien der Zeilen. */
  .line__rows .row summary {
    min-height: calc((100cqw - var(--gap)) / 5 - 1.5px);
    align-content: center;
  }
  .note { margin-left: calc((100% + var(--gap)) / 3); }
}

@media (min-width: 78rem) {
  .line__pic { max-height: calc(var(--pic-w) * 2 / 3 + 0.75rem); aspect-ratio: 3 / 2; }
  .line__rows .row summary { min-height: calc((100cqw - var(--gap)) / 6 - 1.5px); }
}

/* ------------------------------------------------------------------ Vorgehen */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem var(--gap);
}
.step { padding-top: 1.125rem; border-top: 3px solid var(--ink); }
.step h3 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.step__no { color: var(--muted); font-variant-numeric: tabular-nums; }
.step p { max-width: 22rem; margin-top: 0.75rem; color: var(--muted); }

.process__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.process__close p {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

@media (min-width: 47.5rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 68.75rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    row-gap: 0;
  }
  .step { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
}

/* -------------------------------------------------------------------- Praxis */
.cases { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
.case { border-top: 3px solid var(--ink); }
.case h3 {
  padding: 1.125rem 0 1.5rem;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.case__part { padding: 0.875rem 0 1.125rem; border-top: 1px solid var(--line); }
.case__part h4 { font-size: 0.9375rem; line-height: 1.5; }
.case__part p { max-width: 34rem; margin-top: 0.125rem; }
.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.case__tags a { display: inline-flex; align-items: center; min-height: calc(2.75 * var(--u)); }
.case__tags a:hover { color: var(--azure); }

@media (min-width: 68.75rem) {
  .cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    gap: 0 var(--gap);
  }
  .case {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
}

/* ------------------------------------------------------------- Über Constari */
.about__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.75rem;
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
}
.about__text p { max-width: 40rem; }
.about__text p + p { max-width: var(--measure); margin-top: 1.25rem; }

@media (min-width: 68.75rem) {
  .about__cols {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .about__text { grid-column: 1 / span 7; }
  .about__cols > .facts { grid-column: 9 / span 4; }
}

/* ------------------------------------------------------- Schluss und Kontakt */
.close {
  padding-block: var(--section);
  background: var(--azure);
  color: #fff;
  scroll-margin-top: var(--header);
}
.close ::selection { background: #fff; color: var(--azure-dark); }
.close :focus-visible { outline-color: #fff; }

.close__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.75rem;
}
.close__copy p {
  max-width: 28rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.45;
}
.address { display: grid; gap: 0.125rem; margin-top: 2.5rem; }

.form { display: grid; gap: 1.125rem; }
.field { display: grid; gap: 0.375rem; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.field__req { font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8125rem 0.875rem;
  border: 0;
  border-radius: 0;
  background-color: #fff;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  caret-color: var(--azure);
}
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("chevron.svg");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 0;
}
/* Fehler: ein Balken in Tinte unter dem Feld, daran die Meldung. Der Rahmen bleibt dem Fokus
   vorbehalten. Innenabstand und Balken ergeben zusammen die Höhe des Feldes in Ruhe. */
.field input:user-invalid,
.field [aria-invalid="true"] {
  padding-bottom: calc(0.8125rem - 4px);
  border-bottom: 4px solid var(--ink);
}
.field__error {
  margin-top: -0.375rem;
  padding: 0.4375rem 0.875rem 0.5625rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.field__hint { font-size: 0.9375rem; line-height: 1.4; }
/* Falle für Programme, die Formulare automatisch ausfüllen (kontakt.php verwirft Anfragen, in
   denen das Feld gefüllt ist). Es steht im Dokument, Menschen sehen und erreichen es nicht. */
.field--leer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__alert {
  padding: 1rem 1.125rem 1.125rem;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.45;
}
.form__alert b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.form__alert a { overflow-wrap: anywhere; }
/* Die Statuszeile steht immer im Dokument, damit ein Screenreader ihren Text ansagt, sobald
   er erscheint. Leer nimmt sie keinen Platz ein. */
.form__send {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.5rem;
}
.form__status { font-size: 0.9375rem; font-weight: 600; }
.form__status span { display: block; margin-top: 0.75rem; }
.close .btn--ink:hover { background: #fff; color: var(--ink); }
.form .btn:disabled,
.form .btn:disabled:hover {
  background: rgb(11 14 20 / 0.4);
  color: #fff;
  cursor: not-allowed;
}
.form .btn:disabled .icon { transform: none; }
.form__pending { max-width: 30rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.form__note { max-width: 30rem; font-size: 0.9375rem; line-height: 1.45; }

/* Bestätigung nach dem Versand, an der Stelle des Formulars */
.form-done:focus-visible { outline: 0; }
.form-done p { max-width: 30rem; margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.45; }
.form-done__mail { overflow-wrap: anywhere; }

@media (min-width: 68.75rem) {
  .close__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .close__copy { grid-column: 1 / span 6; }
  .form, .form-done { grid-column: 8 / span 5; }
  .close--cta .close__inner { align-items: end; }
  .close--cta .close__copy { grid-column: 1 / span 8; }
  .close__action { grid-column: 9 / span 4; justify-self: end; }
}

/* ------------------------------------------------------------------ Fußzeile */
.site-footer { padding-block: 3rem 2.5rem; font-size: 0.9375rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2rem;
}
.site-footer__brand p {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  font-weight: 500;
}
.site-footer__nav a { padding-block: 0.75rem; text-decoration: none; }
.site-footer__nav a:hover { color: var(--azure); }
.site-footer__legal {
  display: grid;
  gap: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 68.75rem) {
  .site-footer__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .site-footer__brand { grid-column: 1 / span 4; }
  .site-footer__nav { grid-column: 5 / span 8; align-content: start; justify-content: flex-end; }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------- Produktseite */
/* Die Einträge im Pfad sind 44 px hoch, damit die Verweise gut zu treffen sind. --lift ist ihr
   Überstand über die Textzeile nach oben und unten; um ihn rücken Abstand und Titel heran, damit
   der Text steht, wo er ohne die größere Fläche stünde. */
.crumbs {
  --lift: max(0px, (2.75 * var(--u) - 1.55em) / 2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  margin-bottom: calc(-1 * var(--lift));
  padding-top: calc(1.5rem - var(--lift));
  font-size: 0.9375rem;
  color: var(--muted);
}
.crumbs > * { display: inline-flex; align-items: center; min-height: calc(2.75 * var(--u)); }
.crumbs a:hover { color: var(--azure); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page-title {
  margin: 1.25rem 0 0 -0.035em;
  font-size: clamp(calc(2.25 * var(--u)), 10.4vw, 9.375rem);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.product-hero__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.75rem;
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
}
.product-hero__pitch .lead { max-width: 36rem; }
.product-hero__pitch .btn { margin-top: 1.75rem; }

/* Aufnahme der Linie im Kopf des Lieferumfangs, an der Stelle des erläuternden Satzes. Sie steht
   unter dem Bauplan und bleibt klein, damit der Bauplan die Seite führt: schmal unter der
   Überschrift, ab 30rem als flaches Feld, ab 68.75rem in den vier Spalten rechts. */
.head__pic { margin-top: 0.5rem; }

.stations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 3px solid var(--ink);
}
.station {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: baseline;
  padding: 1rem 0 1.125rem;
  border-bottom: 1px solid var(--line);
}
.station__no { font-size: 0.9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.station__name { font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.02em; hyphens: auto; }
.station p {
  grid-column: 2 / -1;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}
.station__role { grid-column: 3; grid-row: 1; font-size: 0.9375rem; font-weight: 600; }
.station--human {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  border-bottom-color: var(--azure);
  background: var(--azure);
  color: #fff;
}
.station--human p { color: #fff; }
.station--human ::selection { background: #fff; color: var(--azure-dark); }

.deliverables {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gap);
  border-top: 3px solid var(--ink);
}
.deliverable { padding: 1.125rem 0 1.375rem; border-bottom: 1px solid var(--line); }
.deliverable h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.deliverable p { max-width: 34rem; margin-top: 0.375rem; color: var(--muted); }

.weeks { border-top: 3px solid var(--ink); }
.week {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem var(--gap);
  padding: 1.125rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.week__label { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.week h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.week p { max-width: 34rem; color: var(--muted); }

.fit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem var(--gap); }
.rule-list { margin-top: 1.5rem; border-top: 3px solid var(--ink); }
/* Die Linie läuft über die ganze Spalte, der Text endet an der Lesebreite. */
.rule-list li {
  padding: 0.9375rem max(0px, 100% - var(--measure)) 0.9375rem 0;
  border-bottom: 1px solid var(--line);
}

.related-list { margin-top: 1.5rem; border-top: 3px solid var(--ink); }
.related {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1.125rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.related__label { font-size: 0.9375rem; color: var(--muted); }
.related__name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease-out;
}
.related__text { color: var(--muted); }
.related > span { grid-column: 1; }
.related .icon {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  transition: transform 0.35s var(--ease);
}
.related:hover .related__name { color: var(--azure); }
.related:hover .icon { transform: translateX(0.25rem); }

@media (min-width: 47.5rem) {
  .stations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .station {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 12.5rem;
    margin-inline: 0;
    padding: 1rem 1rem 1.125rem;
    border-right: 1px solid var(--line);
  }
  .station:nth-child(3n) { border-right: 0; }
  .station p { margin-top: 0; }
  .station__role { margin-top: auto; }
  .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .week__label { grid-column: 1 / span 3; }
  .week h3 { grid-column: 4 / span 4; }
  .week p { grid-column: 8 / span 5; }
  .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: 5rem 17rem minmax(0, 1fr) 1.25rem; }
  .related > span { grid-column: auto; }
  .related .icon { grid-column: 4; grid-row: 1; }
}

@media (min-width: 30rem) {
  .head__pic { aspect-ratio: 3 / 1; }
}

@media (min-width: 68.75rem) {
  .head__pic { grid-column: 9 / span 4; margin-top: 0; aspect-ratio: 3 / 2; }
  .product-hero__cols {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .product-hero__pitch { grid-column: 1 / span 7; }
  .product-hero__cols > .facts { grid-column: 9 / span 4; }
  .stations { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .station:nth-child(3n) { border-right: 1px solid var(--line); }
  .station:last-child { border-right: 0; }
  .station--human { border-right-color: var(--azure); }
}

/* --------------------------------------------------------- Rechtliche Seiten */
.legal { padding-bottom: var(--section); }
.legal__title { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.legal__body {
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
  border-top: 3px solid var(--ink);
}
.legal__block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.375rem var(--gap);
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal__block h2 { font-size: 1.0625rem; line-height: 1.55; }
.legal__block p { max-width: var(--measure); font-variant-numeric: tabular-nums; }
.legal__block p + p { margin-top: 0.75rem; }

@media (min-width: 47.5rem) {
  .legal__block { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .legal__block h2 { grid-column: 1 / span 4; }
  .legal__block > div { grid-column: 5 / span 8; }
}

/* ------------------------------------------------- Seiten nach dem Absenden */
/* Ziel des Formulars, wenn der Browser es ohne Skript sendet: eine Auskunft, ein Weg zurück. */
.status { padding-bottom: var(--section); }
.status .h2 { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.status .lead { max-width: 40rem; margin-top: 1.5rem; }
.status .btn { margin-top: 2rem; }

/* ------------------------------------------------ Wenig Breite für die Schrift */
/* Greift, wo die Spalte schmaler ist als 16 Schriftgrößen: bei stark vergrößerter Schrift in
   einem schmalen Fenster oder bei starkem Zoom am Telefon. Bei üblicher Schriftgröße liegt die
   Grenze unter 300 px Fensterbreite. Anders als in Media Queries folgt rem hier der eingestellten
   Schriftgröße. Bezeichnung und Wert stehen dann untereinander, Wörter werden getrennt. */
/* Schon etwas früher wird die Wertspalte der Fakten eng: Ein langes Wort wird dort getrennt,
   statt in den Rand zu ragen. Bei üblicher Schriftgröße gilt das erst unter 320 px Spaltenbreite
   plus Rand, also zum Beispiel bei 320 px Fensterbreite mit sichtbarer Bildlaufleiste. */
@container wrap (max-width: 17.49rem) {
  .facts dd { hyphens: auto; hyphenate-limit-chars: 12 5 5; }
}

@container wrap (max-width: 16rem) {
  .wrap > * { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  h1, h2, h3, h4, .index__name, .related__name { hyphenate-limit-chars: auto; }
  .nw { white-space: normal; }

  .index__row,
  .schema__row,
  .facts > div,
  .variants > div { grid-template-columns: minmax(0, 1fr); }
  .schema__row { row-gap: 0.5rem; }
  .index__dur { grid-column: auto; }
  .variants .variants__dur { grid-column: auto; grid-row: auto; white-space: normal; }

  .row summary { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .row__name,
  .row__tag,
  .row__meta { grid-column: 1; }
  .row__icon { grid-column: 2; }

  .station { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .station__role { grid-column: 2; grid-row: auto; margin-top: 0.5rem; }
}

/* ---------------------------------------------------------- Erzwungene Farben */
/* Im Kontrastmodus des Systems entfallen alle Flächenfarben. Was seine Form nur über den
   Hintergrund hat, bekommt dort einen Rahmen in der Systemfarbe. */
@media (forced-colors: active) {
  .btn,
  .skip,
  .hero__field,
  .form__alert,
  .field__error,
  .field input,
  .field select,
  .field textarea { border: 1px solid; }
  .btn:disabled { border-color: GrayText; }
  .field select { appearance: auto; padding-right: 0.875rem; background-image: none; }
  .schema__row--human,
  .station--human { outline: 2px solid; outline-offset: -2px; }
  .close { border-top: 3px solid; }
}

/* ------------------------------------------------------------ Ruhige Bewegung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
