/*
 * Mercevia – Website (mercevia.de)
 * Farben und Schriften nach docs/marke.md. Keine Farben außerhalb dieser Tokens,
 * Signalfarben nur für Befunde. Keine Inline-Styles und keine Skripte (Content-Security-Policy in _headers).
 * Gestaltung: ruhig wie ein sauber gesetztes Datenblatt – feine Linien statt Kästen, echte Daten statt Deko.
 */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f7fb; /* Wolkenweiß */
  --band: #ffffff; /* jeder zweite Abschnitt */
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --sheet-head: #eef2f8;
  --ink: #0b1426; /* Nachtblau */
  --heading: #0e3a8a; /* Tiefblau */
  --muted: #55627a;
  --line: #dce3ee;
  --line-strong: #b8c4d6;
  --accent: #1e6bff; /* Mercevia-Blau */
  --accent-hover: #0e3a8a;
  --accent-ink: #ffffff;
  --accent-soft: #e7efff;
  /* Text-Links und kleine Etiketten: etwas dunkler, damit sie auf Wolkenweiß 4,5:1 schaffen */
  --link: #1b61e8;
  --high-ink: #ab5411;
  --med-ink: #88680b;
  --night: #0b1426;
  --night-ink: #e8eef7;
  --night-muted: #aab7cc;
  --night-line: rgba(232, 238, 247, 0.16);
  --turkis: #22e0d1;
  --kopf-bg: #f4f7fb;
  --shadow: 0 1px 0 rgba(11, 20, 38, 0.04), 0 24px 48px -28px rgba(11, 20, 38, 0.35);
  --shadow-klein: 0 1px 2px rgba(11, 20, 38, 0.05), 0 14px 28px -20px rgba(11, 20, 38, 0.3);
  --crit: #c2372b;
  --crit-soft: #fbe9e6;
  --high: #b85a12;
  --high-soft: #fcefe0;
  --med: #8f6d0c;
  --med-soft: #f7efd6;
  --low: #2f6a98;
  --low-soft: #e4eef6;
  --font-display: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 72rem;
  --gutter: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #0b1426;
    --band: #0f1a2f;
    --surface: #111d33;
    --surface-2: #16243d;
    --sheet-head: #16243d;
    --ink: #e8eef7;
    --heading: #e8eef7;
    --muted: #9aa8bf;
    --line: #22324d;
    --line-strong: #37496a;
    --accent: #4d8dff;
    --accent-hover: #7aa9ff;
    --accent-ink: #06112a;
    --accent-soft: #14295a;
    --link: #4d8dff;
    --high-ink: #f0a25c;
    --med-ink: #e2c35e;
    --night: #111d33;
    --kopf-bg: #0b1426;
    --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
    --shadow-klein: 0 14px 28px -20px rgba(0, 0, 0, 0.6);
    --crit: #f27d6e;
    --crit-soft: #3a1e1a;
    --high: #f0a25c;
    --high-soft: #392816;
    --med: #e2c35e;
    --med-soft: #332c14;
    --low: #82b6e0;
    --low-soft: #172b3b;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0b1426;
  --band: #0f1a2f;
  --surface: #111d33;
  --surface-2: #16243d;
  --sheet-head: #16243d;
  --ink: #e8eef7;
  --heading: #e8eef7;
  --muted: #9aa8bf;
  --line: #22324d;
  --line-strong: #37496a;
  --accent: #4d8dff;
  --accent-hover: #7aa9ff;
  --accent-ink: #06112a;
  --accent-soft: #14295a;
  --link: #4d8dff;
  --high-ink: #f0a25c;
  --med-ink: #e2c35e;
  --night: #111d33;
  --kopf-bg: #0b1426;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
  --shadow-klein: 0 14px 28px -20px rgba(0, 0, 0, 0.6);
  --crit: #f27d6e;
  --crit-soft: #3a1e1a;
  --high: #f0a25c;
  --high-soft: #392816;
  --med: #e2c35e;
  --med-soft: #332c14;
  --low: #82b6e0;
  --low-soft: #172b3b;
}

/* Grundlage */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Sprungziele nicht unter der festen Kopfzeile verstecken */
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--heading);
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}
p {
  margin: 0;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sprung {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.sprung:focus {
  top: 1rem;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.daten {
  font-family: var(--font-mono);
}

/* Intro beim ersten Aufruf der Startseite. intro.js setzt .ohne-intro nach Neuladen, Zurück/Vor und
   Wechseln innerhalb der Website – ohne etwas im Browser zu speichern. Ohne Skript läuft es bei jedem
   Aufruf. Nie bei reduzierter Bewegung oder wenn die Adresse ein Sprungziel hat (#…). */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #0b1426;
  pointer-events: none;
  animation: intro-aus 420ms cubic-bezier(0.4, 0, 0.2, 1) 1850ms forwards;
}
.intro-buehne {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: min(76vw, 24rem);
  animation: intro-buehne-aus 280ms ease-in 1650ms forwards;
}
.intro-logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.intro-zeichen,
.intro-schrift {
  opacity: 0;
  transform-box: fill-box;
}
.intro-zeichen {
  transform-origin: 0% 100%;
  transform: translate(-10px, 10px) scale(0.94);
  animation: intro-zeichen 650ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms forwards;
}
.intro-schrift {
  transform: translateX(-14px);
  animation: intro-schrift 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 550ms forwards;
}
.intro-claim {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.6875rem, 0.6rem + 0.4vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #aab7cc;
  opacity: 0;
  animation: intro-claim 600ms ease-out 1000ms forwards;
}
@keyframes intro-zeichen {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes intro-schrift {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes intro-claim {
  to {
    opacity: 1;
    letter-spacing: 0.28em;
  }
}
@keyframes intro-aus {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes intro-buehne-aus {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }
}
html:has(:target) .intro,
.ohne-intro .intro {
  display: none;
}

/* Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.625rem 1.375rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.knopf:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}
.knopf-zweit {
  background: transparent;
  color: var(--link);
}
.knopf-zweit:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--link);
}
.knopf-klein {
  min-height: 2.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.9375rem;
}

/* Kopfzeile: bleibt beim Scrollen sichtbar */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.875rem 0;
  background: var(--kopf-bg);
  border-bottom: 1px solid var(--line);
}
.kopf-innen {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.marke {
  display: block;
  flex: none;
}
.kopf .marke {
  margin-right: auto;
}
.marke img {
  display: block;
  height: 2rem;
  width: auto;
}
/* Logo für hellen oder dunklen Grund */
.marke .logo-dunkel {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .marke .logo-hell {
    display: none;
  }
  :root:not([data-theme='light']) .marke .logo-dunkel {
    display: block;
  }
}
:root[data-theme='dark'] .marke .logo-hell {
  display: none;
}
:root[data-theme='dark'] .marke .logo-dunkel {
  display: block;
}
.navi {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.navi a {
  color: var(--ink);
  text-decoration: none;
}
.navi a:hover {
  color: var(--link);
}
@media (max-width: 64rem) {
  .navi {
    display: none;
  }
}

/* Einstieg mit Tabellenausschnitt */

.held {
  padding: clamp(2.25rem, 1.25rem + 4vw, 4.75rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
}
.held-raster {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: 4rem;
  align-items: start;
}
.held-text {
  padding-top: 0.75rem;
}
.lead {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 30em;
}
.knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}
.textlink {
  font-weight: 600;
}
/* Der Test auf einen Blick: Zeilen wie in einem Datenblatt */
.steckbrief,
.inhalt-liste {
  margin: 0;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.steckbrief {
  margin-top: 2.5rem;
  max-width: 34rem;
}
.steckbrief > div,
.inhalt-liste > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--line);
}
.steckbrief dt,
.inhalt-liste dt {
  color: var(--muted);
}
.steckbrief dd,
.inhalt-liste dd {
  margin: 0;
}
.steckbrief dd {
  font-weight: 500;
}

.blatt {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.blatt-titel {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.blatt-titel .daten {
  color: var(--ink);
  font-weight: 500;
}
.formelzeile {
  display: grid;
  grid-template-columns: 3.25rem 2.5rem 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}
.formelzeile > span {
  padding: 0.375rem 0.625rem;
  white-space: nowrap;
}
.formelzeile .bezug {
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: center;
}
.formelzeile .fx {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  border-right: 1px solid var(--line);
}
.formelzeile .formel {
  font-family: var(--font-mono);
}

.tabelle {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.875rem;
}
.tabelle col.c-zeile {
  width: 2.75rem;
}
.tabelle col.c-j {
  width: 28%;
}
.tabelle col.c-y {
  width: 34%;
}
.tabelle th,
.tabelle td {
  height: 2.375rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}
.tabelle tr > :first-child {
  border-left: 0;
}
.tabelle tr > :last-child {
  border-right: 0;
}
.tabelle .spalte,
.tabelle .zeile {
  background: var(--sheet-head);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}
.tabelle .spalte {
  height: 1.75rem;
  border-top: 0;
}
.tabelle .kopfzeile td {
  background: var(--surface-2);
  font-weight: 600;
}
.tabelle td.daten {
  font-size: 0.8125rem;
}

/* Markierte Zellen: Ecke wie ein Kommentar in der Tabellenkalkulation */
.kritisch {
  --sev: var(--crit);
  --sev-soft: var(--crit-soft);
}
.hoch {
  --sev: var(--high);
  --sev-soft: var(--high-soft);
  --sev-ink: var(--high-ink);
}
.mittel {
  --sev: var(--med);
  --sev-soft: var(--med-soft);
  --sev-ink: var(--med-ink);
}
.niedrig {
  --sev: var(--low);
  --sev-soft: var(--low-soft);
}
.tabelle td.markiert {
  position: relative;
  background: var(--sev-soft);
  box-shadow: inset 0 0 0 1.5px var(--sev);
}
.tabelle td.markiert::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 11px 11px 0;
  border-color: transparent var(--sev) transparent transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .tabelle td.markiert {
    animation: markieren 420ms ease-out both;
  }
  .tabelle td.markiert::after {
    animation: ecke 320ms ease-out both;
  }
  .tabelle td[data-reihenfolge='1'],
  .tabelle td[data-reihenfolge='1']::after {
    animation-delay: 450ms;
  }
  .tabelle td[data-reihenfolge='2'],
  .tabelle td[data-reihenfolge='2']::after {
    animation-delay: 650ms;
  }
  .tabelle td[data-reihenfolge='3'],
  .tabelle td[data-reihenfolge='3']::after {
    animation-delay: 850ms;
  }
  .tabelle td[data-reihenfolge='4'],
  .tabelle td[data-reihenfolge='4']::after {
    animation-delay: 1050ms;
  }
  .tabelle td[data-reihenfolge='5'],
  .tabelle td[data-reihenfolge='5']::after {
    animation-delay: 1250ms;
  }
}
@keyframes markieren {
  from {
    background-color: var(--surface);
    box-shadow: inset 0 0 0 1.5px transparent;
  }
}
@keyframes ecke {
  from {
    opacity: 0;
    transform: scale(0);
    transform-origin: 100% 0;
  }
}

.befunde {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.befund {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0 0.625rem;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.befund .zelle {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--sev);
  text-align: center;
  padding-top: 0.1rem;
}
.schwere {
  display: inline-block;
  margin-right: 0.375rem;
  padding: 0 0.5rem;
  border-radius: 99px;
  background: var(--sev-soft);
  color: var(--sev-ink, var(--sev));
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: 0.1em;
}
.befund .vorschlag {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.befund .vorschlag strong {
  color: var(--link);
  font-weight: 600;
}
.blatt figcaption {
  padding: 0.75rem 1rem 0.875rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 60rem) {
  .held-raster {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .held-text {
    padding-top: 0.25rem;
  }
}

/* Abschnitte: eine feine Linie trennt sie wie in einem Dokument */

.abschnitt {
  padding: 0 0 clamp(3.5rem, 2rem + 4vw, 5.5rem);
}
.abschnitt > .wrap {
  position: relative;
  padding-top: clamp(2.75rem, 1.75rem + 3vw, 4.5rem);
}
.abschnitt > .wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line-strong);
}
.einleitung {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 36em;
}
.hinweis {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 44em;
}
/* Überschrift links, Einleitung rechts */
.abschnitt-kopf {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.75rem 4rem;
  align-items: start;
}
.abschnitt-kopf .einleitung {
  margin-top: 0.3rem;
}

/* Ein Produkt, sechs Befunde: Datenblatt mit Randnotizen */

.akte-raster {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.randbemerkung {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 30em;
}
.randbemerkung strong {
  color: var(--ink);
  font-weight: 600;
}
.akte {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.akte-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.875rem;
}
.akte-kopf .daten {
  font-weight: 500;
}
.akte-score {
  color: var(--muted);
}
.akte-score [data-akte-score] {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--med);
}
.akte-felder {
  margin: 0;
}
.feld {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0.375rem 1.25rem;
  align-items: baseline;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.feld dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.feld dd {
  margin: 0;
}
.feld .wert {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.feld .wert.daten {
  font-size: 0.8125rem;
}
.leer-feld {
  justify-self: start;
  padding: 0 0.5rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.notiz {
  padding-left: 0.875rem;
  border-left: 2px solid var(--sev);
  font-size: 0.875rem;
  line-height: 1.45;
}
.notiz strong {
  font-weight: 600;
}
.abzug {
  display: inline-block;
  min-width: 2.25rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--sev);
}
.akte figcaption {
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (max-width: 60rem) {
  .akte-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 40rem) {
  .feld {
    grid-template-columns: 6rem minmax(0, 1fr);
    padding: 0.875rem 1rem;
  }
  .notiz {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }
  .akte-kopf,
  .akte figcaption {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Ablauf: sechs Schritte, wer was macht */

.schritte {
  list-style: none;
  counter-reset: schritt;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2.5rem;
  margin: 2.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.schritte > li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.125rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.schritte > li::before {
  content: counter(schritt);
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}
.schritte p {
  font-size: 0.9375rem;
}
.schritte strong {
  font-weight: 600;
}
@media (max-width: 60rem) {
  .schritte {
    grid-template-columns: minmax(0, 1fr);
  }
}

.zwei-spalten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
  align-items: start;
  margin-top: 4rem;
}
.zwei-spalten h3 {
  margin-bottom: 0.875rem;
}

/* Aufklappbare Zeilen: Export-Anleitung und Fragen */

.export details,
.fragen details {
  border-bottom: 1px solid var(--line);
}
.export details:first-of-type,
.fragen details:first-of-type {
  border-top: 1px solid var(--line-strong);
}
.export summary,
.fragen summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.export summary::-webkit-details-marker,
.fragen summary::-webkit-details-marker {
  display: none;
}
.export summary::after,
.fragen summary::after {
  content: '+';
  flex: none;
  width: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--accent);
}
.export details[open] > summary::after,
.fragen details[open] > summary::after {
  content: '–';
}
@media (hover: hover) {
  .export summary:hover,
  .fragen summary:hover {
    color: var(--link);
  }
}
.export details p,
.fragen details p {
  padding: 0 2rem 1.125rem 0;
  font-size: 0.9375rem;
  max-width: 40em;
}
.pfad {
  font-weight: 500;
}

/* Was mit deiner Datei passiert */

.datei ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.datei li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
@media (max-width: 60rem) {
  .zwei-spalten {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 3rem;
  }
}

/* Beispielbericht: Seiten links, Text rechts */

.bericht-raster {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem 4.5rem;
  align-items: center;
}
.inhalt-liste {
  margin-top: 1.75rem;
}
.inhalt-liste > div {
  grid-template-columns: 5.5rem minmax(0, 1fr);
}
.bericht-text .knopf {
  margin-top: 2rem;
}
.seiten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 2vw, 1.75rem);
  margin: 0;
}
.seiten img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.seiten img:first-child {
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.seiten img:last-child {
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
}
@media (max-width: 60rem) {
  .bericht-raster {
    grid-template-columns: minmax(0, 1fr);
  }
  .bericht-text {
    order: -1;
  }
}

/* Nichts erfunden: zwei Befunde untereinander, ohne Kästen */

.grundsatz-raster,
.praxis-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.beispiele {
  border-top: 1px solid var(--line-strong);
}
.beispiel {
  padding: 1.375rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.beispiel .produkt {
  margin-top: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.beispiel .meldung {
  margin-top: 0.125rem;
}
.angaben {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.angaben dt {
  color: var(--muted);
}
.angaben dd {
  margin: 0;
}
.angaben .wert {
  color: var(--link);
  font-weight: 600;
}
.angaben .beleg {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 0.125rem 0.375rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.angaben .leer {
  display: inline-block;
  min-width: 9rem;
  padding: 0 0.5rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (max-width: 60rem) {
  .grundsatz-raster,
  .praxis-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 40rem) {
  .angaben {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem;
  }
  .angaben dd + dt {
    margin-top: 0.5rem;
  }
}

/* Praxistest: drei Shops, 30 nachgeprüfte Befunde */

.praxis-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.praxis-tabelle th,
.praxis-tabelle td {
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.praxis-tabelle thead th {
  border-bottom-color: var(--line-strong);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.praxis-tabelle td,
.praxis-tabelle thead th + th {
  padding-left: 1rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.treffer {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
  max-width: 28rem;
  margin-top: 2.25rem;
}
.treffer span {
  height: 1.75rem;
  border-radius: 2px;
  background: var(--accent);
}
.treffer .t-teil {
  background: linear-gradient(to top, var(--accent) 50%, var(--line) 50%);
}
.treffer-text {
  margin-top: 0.75rem;
}
.treffer-text + .hinweis {
  margin-top: 1.25rem;
}

/* 24 Regeln, 100 Punkte: Breite der Spalten = Anteil an den Punkten */

.bereiche {
  display: grid;
  grid-template-columns: 25fr 20fr 20fr 20fr 15fr;
  gap: 0 4px;
  margin-top: 2.5rem;
}
.bereich {
  min-width: 0;
}
@media (min-width: 60.0625rem) {
  .bereich {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-content: start;
  }
}
.anteil {
  height: 10px;
  background: var(--accent);
}
.bereich:first-child .anteil {
  border-radius: 5px 0 0 5px;
}
.bereich:last-child .anteil {
  border-radius: 0 5px 5px 0;
}
.bereich-kopf {
  padding: 1.25rem 1rem 0 0;
}
.bereich h3 {
  font-size: 1rem;
}
.punkte {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--link);
}
.regeln {
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.regeln li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}
.nur {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.regelwerke {
  margin-top: 2.5rem;
}
@media (max-width: 60rem) {
  .bereiche {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }
  .bereich:first-child .anteil,
  .bereich:last-child .anteil,
  .anteil {
    border-radius: 5px;
    background: linear-gradient(to right, var(--accent) 0 var(--anteil), var(--line) var(--anteil) 100%);
  }
  .anteil-25 {
    --anteil: 25%;
  }
  .anteil-20 {
    --anteil: 20%;
  }
  .anteil-15 {
    --anteil: 15%;
  }
  .regeln {
    padding: 0;
  }
}
@media (max-width: 36rem) {
  .bereiche {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .nur {
    display: inline;
    margin: 0 0 0 0.25rem;
  }
  .nur::before {
    content: '(';
  }
  .nur::after {
    content: ')';
  }
}

/* Über mich */

.ueber-raster,
.fragen-raster {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.25rem 4rem;
  align-items: start;
}
.ueber-text p {
  max-width: 36em;
  font-size: 1.125rem;
  line-height: 1.6;
}
.ueber-text p + p {
  margin-top: 1rem;
}
.ueber-text .gruss {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
}
@media (max-width: 60rem) {
  .ueber-raster,
  .fragen-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kontakt */

.kontakt {
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(4rem, 2rem + 6vw, 6.5rem) 0;
}
.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 4rem;
  align-items: center;
}
.kontakt h2 {
  color: #ffffff;
}
.kontakt p {
  color: var(--night-muted);
  max-width: 36em;
}
.kontakt .einleitung {
  color: var(--night-ink);
}
.kontakt-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.kontakt .knopf {
  background: var(--turkis);
  border-color: var(--turkis);
  color: #0b1426;
}
.kontakt .knopf:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b1426;
}
.kontakt .adresse {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--night-ink);
}
.kontakt .kleingedruckt {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}
/* Die E-Mail-Vorlage hinter dem Knopf */
.mail-probe {
  margin: 0;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: rgba(232, 238, 247, 0.04);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.mail-kopf {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-ink);
}
.mail-kopf span:first-child {
  color: var(--night-muted);
}
.kontakt .mail-zeile {
  padding: 0.625rem 1.125rem;
  border-bottom: 1px dashed var(--night-line);
  color: var(--night-ink);
}
.mail-probe figcaption {
  padding: 0.875rem 1.125rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--night-muted);
}
@media (max-width: 60rem) {
  .kontakt-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fußzeile */

.fuss {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.fuss-raster {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}
.fuss .marke img {
  height: 1.5rem;
}
.fuss-navi {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
/* größere Fläche zum Antippen */
.fuss-navi a {
  padding: 0.375rem 0;
}
.fuss p + p {
  margin-top: 0.5rem;
}
@media (max-width: 40rem) {
  .fuss-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Rechtliche Seiten */

.recht {
  max-width: 46rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.recht h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}
.recht h2 {
  margin-top: 2.25rem;
  font-size: 1.3125rem;
  letter-spacing: 0;
}
.recht p,
.recht ul {
  margin-top: 0.75rem;
}
.recht ul {
  padding-left: 1.25rem;
}
.recht li + li {
  margin-top: 0.375rem;
}
.platzhalter {
  background: var(--high-soft);
  color: var(--high);
  border-radius: 3px;
  padding: 0 0.25rem;
}
.entwurf {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--high);
  border-radius: 8px;
  background: var(--high-soft);
  color: var(--ink);
  font-size: 0.9375rem;
}
.stand {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 40rem) {
  :root {
    --gutter: 1rem;
  }
  body {
    font-size: 1rem;
  }
  .lead {
    font-size: 1.125rem;
  }
  .einleitung,
  .ueber-text p {
    font-size: 1.0625rem;
  }
  .kopf-innen {
    gap: 1rem;
  }
  .marke img {
    height: 1.625rem;
  }
  .abschnitt-kopf {
    grid-template-columns: minmax(0, 1fr);
  }
  .tabelle col.c-zeile {
    width: 2.25rem;
  }
  .tabelle th,
  .tabelle td {
    padding: 0.25rem 0.4rem;
    font-size: 0.8125rem;
  }
  .tabelle td.daten {
    font-size: 0.75rem;
  }
  .befund {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    padding-right: 0.75rem;
  }
  .knoepfe .knopf {
    flex: 1 1 100%;
  }
  .knoepfe .textlink {
    padding: 0.25rem 0;
  }
  .steckbrief > div {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
}
@media (max-width: 60rem) and (min-width: 40.0625rem) {
  .abschnitt-kopf {
    grid-template-columns: minmax(0, 1fr);
  }
}
