:root {
  color-scheme: light dark;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --header-height: 3.5rem;
  --nav-width: 16rem;
  --nav-rail-width: 4.5rem;
  --side-panel-width: 22.5rem;
  --form-max-width: 45rem;
  --text-max-width: 80ch;
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-full: 9999px;
  --border-width: 1px;
  --border-width-strong: 2px;
  --border-width-indicator: 3px;
  --z-sticky: 10;
  --z-frame: 100;
  --z-overlay: 2000;
  --z-toast: 3000;
  --z-tooltip: 3100;
  --color-bg-canvas: #FAFBFC;
  --color-bg-surface: #FFFFFF;
  --color-bg-subtle: #F3F3F3;
  --color-bg-selected: #F1E8FF;
  --color-bg-brand: #4F0580;
  --color-bg-brand-hover: #37005B;
  --color-bg-overlay: #FFFFFF;
  --color-bg-overlay-subtle: #F3F3F3;
  --color-bg-backdrop: #1E003680;
  --color-border-subtle: #EAEAEA;
  --color-border-control: #80807F;
  --color-text-default: #181817;
  --color-text-secondary: #575756;
  --color-text-heading: #4F0580;
  --color-text-link: #4F0580;
  --color-text-link-hover: #8539C7;
  --color-text-on-brand: #FFFFFF;
  --color-text-accent-on-brand: #FFEB00;
  --color-action-primary: #4F0580;
  --color-action-primary-hover: #37005B;
  --color-action-on-primary: #FFFFFF;
  --color-action-secondary-border: #4F0580;
  --color-action-secondary-hover-bg: #F9F5FF;
  --color-action-quiet-border: #80807F;
  --color-action-danger: #AF3D36;
  --color-action-danger-hover: #892A25;
  --color-action-on-danger: #FFFFFF;
  --color-accent: #FFEB00;
  --color-accent-on: #4F0580;
  --color-focus-ring: #4F0580;
  --color-focus-ring-on-brand: #FFEB00;
  --color-text-disabled: #ABABA9;
  --color-bg-disabled: #F3F3F3;
  --color-success-text: #09611A;
  --color-success-bg: #EFFBEF;
  --color-success-border: #8ED690;
  --color-success-icon: #1B7E2A;
  --color-warning-text: #764002;
  --color-warning-bg: #FEF5EE;
  --color-warning-border: #FAAE6E;
  --color-warning-icon: #9A5505;
  --color-danger-text: #892A25;
  --color-danger-bg: #FFF4F2;
  --color-danger-border: #FEA69C;
  --color-danger-icon: #AF3D36;
  --color-info-text: #0F4F95;
  --color-info-bg: #F1F7FF;
  --color-info-border: #97C4FE;
  --color-info-icon: #1F68BC;
  --shadow-raised: 0 1px 2px rgba(30, 0, 54, 0.08);
  --shadow-overlay: 0 4px 12px rgba(30, 0, 54, 0.12), 0 1px 3px rgba(30, 0, 54, 0.08);
  --shadow-modal: 0 16px 40px rgba(30, 0, 54, 0.2), 0 2px 6px rgba(30, 0, 54, 0.08);
}
@media (min-width: 1240px) {
  :root {
    --text-max-width: 100ch;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-canvas: #110B17;
    --color-bg-surface: #1B1523;
    --color-bg-subtle: #27212F;
    --color-bg-selected: #37005B;
    --color-bg-brand: #37005B;
    --color-bg-brand-hover: #4F0580;
    --color-bg-overlay: #27212F;
    --color-bg-overlay-subtle: #1B1523;
    --color-bg-backdrop: #000000A6;
    --color-border-subtle: #383240;
    --color-border-control: #8F8996;
    --color-text-default: #FFFFFF;
    --color-text-secondary: #B3AEBB;
    --color-text-heading: #E4D1FF;
    --color-text-link: #D2AEFF;
    --color-text-link-hover: #E4D1FF;
    --color-text-on-brand: #FFFFFF;
    --color-text-accent-on-brand: #FFEB00;
    --color-action-primary: #FFEB00;
    --color-action-primary-hover: #F4D40F;
    --color-action-on-primary: #37005B;
    --color-action-secondary-border: #D2AEFF;
    --color-action-secondary-hover-bg: #1E0036;
    --color-action-quiet-border: #8F8996;
    --color-action-danger: #F47C70;
    --color-action-danger-hover: #FEA69C;
    --color-action-on-danger: #290605;
    --color-accent: #FFEB00;
    --color-accent-on: #37005B;
    --color-focus-ring: #FFEB00;
    --color-focus-ring-on-brand: #FFEB00;
    --color-text-disabled: #6C6673;
    --color-bg-disabled: #27212F;
    --color-success-text: #8ED690;
    --color-success-bg: #132714;
    --color-success-border: #09611A;
    --color-success-icon: #61BD67;
    --color-warning-text: #FAAE6E;
    --color-warning-bg: #311C09;
    --color-warning-border: #764002;
    --color-warning-icon: #E78B30;
    --color-danger-text: #FEA69C;
    --color-danger-bg: #341916;
    --color-danger-border: #892A25;
    --color-danger-icon: #F47C70;
    --color-info-text: #97C4FE;
    --color-info-bg: #122237;
    --color-info-border: #0F4F95;
    --color-info-icon: #60A7FF;
    --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-overlay: 0 4px 16px rgba(0, 0, 0, 0.55);
    --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.65);
  }
}
/* Schriften (TYPOGRAPHY.md 3.7): selbst gehostet, nur WOFF2, eine Familie je Schrift. */

@font-face {
  font-family: "Cy";
  src: url("fonts/Cy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3VF-Upright.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3VF-Italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Basis: Schriftfamilien, Typo-Skala (TYPOGRAPHY.md 3.2), Textsatz (3.5), Links, Fokus (COLOUR.md 2.6). */

:root {
  --font-display: "Cy", "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-code: "Source Code Pro", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --motion-fast: 100ms;
  /* Papierkante (Karten, Fuß): Zackenhöhe und -breite. */
  --paper-edge: 0.375rem;
  --paper-tooth: 1rem;
  /* Masken nutzen nur die Deckkraft ihrer Bilder; „black" darin ist keine Farbe der Seite. */
  --mask-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 1 0-7 0M15 6.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 1 0-7 0M15 17.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 1 0-7 0m-6.232-3.743 6.464 2.486m-6.553-5.21 6.643-3.066'/%3E%3C/svg%3E");
  --mask-solid: linear-gradient(black, black);
  --mask-paper-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 6' preserveAspectRatio='none'%3E%3Cpath d='M0 0h16L8 6z'/%3E%3C/svg%3E");
  --mask-paper-edge-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 6' preserveAspectRatio='none'%3E%3Cpath d='M0 6 8 0l8 6z'/%3E%3C/svg%3E");
}

/* Das hidden-Attribut gewinnt gegen display-Regeln von Layout-Klassen (z. B. .l-stack). */
[hidden] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg-canvas);
  color: var(--color-text-default);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Abstände setzt das umgebende Layout (LAYOUT.md 4.1), nicht das Element selbst. */
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, blockquote, figure, pre, table {
  margin: 0;
}

/* Überschriften: Cy nur Gewicht 700, ohne kontextuelle Alternativen („2026" statt „2□26"). */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  text-wrap: balance;
}

h1, h2, h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-ligatures: no-contextual;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.display {
  font-size: 1.75rem;
  line-height: 1.15;
}

@media (min-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .display {
    font-size: 2.25rem;
  }
}

/* Fließtext */
p, li, dt, dd, blockquote, figcaption, td, th {
  hyphens: auto;
}

ul, ol {
  padding-inline-start: var(--space-6);
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 0.8125rem;
}

blockquote {
  padding-inline-start: var(--space-4);
  border-inline-start: var(--border-width-indicator) solid var(--color-border-subtle);
}

hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: var(--border-width) solid var(--color-border-subtle);
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Codes wie BR-DE-15 in Source Code Pro; es gibt nur den Schnitt 400. */
code, kbd, samp, pre {
  font-family: var(--font-code);
  font-size: 0.875em;
  font-synthesis: none;
}

:not(pre) > code {
  padding: 0.0625em 0.25em;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
}

/* Kurze Codes wie BT-119 oder BR-TMP-7 nicht am Bindestrich umbrechen. */
.code--id,
:is(td, th) > code {
  white-space: nowrap;
}

:is(h1, h2, h3, h4) > code {
  padding: 0;
  background: none;
  font-size: 0.9em;
}

pre {
  padding: var(--space-3) var(--space-4);
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}

/* Links sind unterstrichen; sonst ist nichts unterstrichen (TYPOGRAPHY.md 3.5). */
a {
  color: var(--color-text-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--motion-fast) linear;
}

a:hover {
  color: var(--color-text-link-hover);
  text-decoration-thickness: 2px;
}

/* Fokus: 2 px in focus.ring, 2 px außerhalb des Elements. */
:focus-visible {
  outline: var(--border-width-strong) solid var(--color-focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.prose {
  max-width: var(--text-max-width);
}

.prose > * + * {
  margin-block-start: var(--space-4);
}

.prose > h2 {
  margin-block-start: var(--space-10);
}

.prose > :is(h3, h4) {
  margin-block-start: var(--space-8);
}

.prose > :is(h2, h3, h4) + * {
  margin-block-start: var(--space-3);
}

.prose li + li {
  margin-block-start: var(--space-1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* Seitenrahmen und Layout-Primitive (LAYOUT.md 4.2, 4.5). */

:root {
  --page-margin: var(--space-4);
  --content-max-width: 75rem;
}

@media (min-width: 600px) {
  :root {
    --page-margin: var(--space-6);
  }
}

@media (min-width: 1240px) {
  :root {
    --page-margin: var(--space-8);
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: calc(var(--content-max-width) + 2 * var(--page-margin));
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

/* <main> ist selbst ein .container; ein .container darin braucht keinen zweiten Rand. */
.container .container {
  max-width: none;
  padding-inline: 0;
}

.site-main {
  flex: 1 0 auto;
  padding-top: var(--space-8);
}

/* Layout-Primitive: Abstand je über --gap (ein Wert der Abstandsskala). Die Variablen
   vererben sich nicht, damit verschachtelte Primitive nicht den Abstand der äußeren erben. */
@property --gap {
  syntax: "*";
  inherits: false;
}

@property --min {
  syntax: "*";
  inherits: false;
}

@property --side {
  syntax: "*";
  inherits: false;
}

.l-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, var(--space-4));
}

.l-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--space-2));
}

ul.l-cluster,
ul.l-stack,
ul.l-grid {
  padding: 0;
  list-style: none;
}

.l-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 18rem)), 1fr));
  gap: var(--gap, var(--space-6));
}

.l-split {
  display: grid;
  gap: var(--gap, var(--space-8));
}

@media (min-width: 960px) {
  .l-split {
    grid-template-columns: minmax(0, 1fr) var(--side, 20rem);
  }
}

/* Sprunglink */
.skip-link {
  position: absolute;
  z-index: calc(var(--z-frame) + 1);
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-action-primary);
  color: var(--color-action-on-primary);
  font-weight: 600;
  transform: translateY(calc(-100% - var(--space-4)));
}

.skip-link:focus {
  transform: none;
}

/* Kopf: sticky, Höhe --header-height (LAYOUT.md 4.3).
   Die Aufteilung richtet sich nach der Breite des Kopfs in rem (Container-Abfragen), nicht nach
   Pixeln: Wer eine größere Schrift eingestellt hat, bekommt früher die schmalere Aufteilung.
   Unter 22.5rem steht „Menü" nur als Icon, ab 37.5rem steht der Button im Kopf, ab 60rem die
   Navigation als Zeile (bei 16 px: 360, 600 und 960 px). Reicht der Platz trotzdem nicht
   (Textabstände nach WCAG 1.4.12, Ersatzschrift), kürzt sich der Name mit „…" statt
   die Seite zu verbreitern. */
.site-header {
  container: site-header / inline-size;
  position: sticky;
  top: 0;
  z-index: var(--z-frame);
  height: var(--header-height);
  border-bottom: var(--border-width) solid var(--color-border-subtle);
  background: var(--color-bg-surface);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
}

/* Schutzraum (FOUNDATION.md 1.2): waagrecht so groß wie das gelbe Quadrat (1.5rem). */
.site-logo {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
  color: var(--color-text-heading);
  text-decoration: none;
}

.site-logo picture,
.site-logo img {
  display: block;
  flex: none;
}

.site-logo img {
  width: auto;
  height: 1.5rem;
}

/* Wortmarke: „E-Rechnungen" in Cy (nie unter 18 px, TYPOGRAPHY.md 3.1), die Endung „.info"
   leiser in der Code-Schrift, wie eine Adresse. Deren Zeichen laufen breiter, daher 0.66em. */
.site-logo__name {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-variant-ligatures: no-contextual;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-logo__tld {
  margin-inline-start: 0.06em;
  font-family: var(--font-code);
  font-size: max(0.75rem, 0.66em);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text-secondary);
}

@media (min-width: 960px) {
  .site-logo__name {
    padding-inline-start: var(--space-3);
    border-inline-start: var(--border-width) solid var(--color-border-subtle);
    font-size: 1.25rem;
  }
}

.site-nav {
  flex: none;
  margin-inline-start: auto;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li > a {
  color: var(--color-text-link);
  font-weight: 600;
  white-space: nowrap;
  text-decoration-line: none;
  text-decoration-color: var(--color-border-control);
  text-decoration-thickness: var(--border-width-indicator);
  text-underline-offset: 0.4em;
}

.site-nav li > a:hover {
  color: var(--color-text-link-hover);
  text-decoration-line: underline;
}

/* Aktiver Bereich (FOUNDATION.md 1.6): 3 px gelb unterstrichen, dazu fett als zweites
   Merkmal, weil Gelb auf hellem Grund keinen ausreichenden Kontrast hat. */
.site-nav li > a[aria-current] {
  color: var(--color-text-heading);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--color-accent);
}

@media (forced-colors: active) {
  .site-nav li > a[aria-current] {
    forced-color-adjust: none;
    color: LinkText;
    text-decoration-color: Highlight;
  }
}

.site-nav li > a:focus-visible {
  outline-offset: -2px;
}

.site-nav__bar {
  display: none;
}

.site-nav__bar a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: var(--space-2);
  border-radius: var(--radius-md);
}

/* Unterhalb der Zeilen-Navigation: Menü als <details>, funktioniert ohne JavaScript. */
.nav-disclosure > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding-inline: var(--space-3) var(--space-4);
  border: var(--border-width-strong) solid var(--color-action-secondary-border);
  border-radius: var(--radius-md);
  color: var(--color-action-secondary-border);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-disclosure > summary::-webkit-details-marker {
  display: none;
}

.nav-disclosure > summary:hover {
  background: var(--color-action-secondary-hover-bg);
}

@media (pointer: coarse) {
  .nav-disclosure > summary {
    min-height: 2.75rem;
  }
}

/* Icon „menu" im geschlossenen, „close" im offenen Zustand. */
.nav-disclosure > summary .icon:nth-of-type(2),
.nav-disclosure[open] > summary .icon:nth-of-type(1) {
  display: none;
}

.nav-disclosure[open] > summary .icon:nth-of-type(2) {
  display: inline-block;
}

.nav-disclosure__panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: var(--space-2) var(--page-margin) var(--space-6);
  border-bottom: var(--border-width) solid var(--color-border-subtle);
  background: var(--color-bg-overlay);
  box-shadow: var(--shadow-overlay);
}

/* Innenabstand für den nach innen gezeichneten Fokusring, Text bleibt bündig. */
.nav-disclosure__list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin-inline: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  border-bottom: var(--border-width) solid var(--color-border-subtle);
  font-size: 1.125rem;
}

/* Der Button „papierlos testen" steht im Kopf, wenn Platz ist, sonst im Menü.
   Doppelte Klasse, weil .button (components.css) später kommt und display setzt. */
.button.nav-disclosure__cta {
  width: 100%;
  margin-top: var(--space-6);
}

.button.site-header__cta {
  display: none;
  flex: none;
  white-space: nowrap;
}

@container site-header (width < 22.5rem) {
  .nav-disclosure > summary {
    justify-content: center;
    min-width: 2.5rem;
    padding-inline: var(--space-2);
  }

  .nav-disclosure__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@container site-header (width >= 37.5rem) {
  .button.site-header__cta {
    display: inline-flex;
  }

  .button.nav-disclosure__cta {
    display: none;
  }
}

@container site-header (width >= 60rem) {
  .site-nav__bar {
    display: flex;
  }

  .nav-disclosure {
    display: none;
  }
}

@container site-header (width >= 77.5rem) {
  .site-nav__bar {
    gap: var(--space-1);
  }

  .site-nav__bar a {
    padding-inline: var(--space-3);
  }
}

/* Fuß: ein Blatt Papier, oben abgerissen wie die Karten unten (Papierkante). */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--space-16) + var(--paper-edge));
  padding-block: var(--space-10) var(--space-8);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.43;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-mask: var(--mask-paper-edge-up) 0 0 / var(--paper-tooth) var(--paper-edge) repeat-x, var(--mask-solid) 0 100% / 100% calc(100% - var(--paper-edge) + 1px) no-repeat;
  mask: var(--mask-paper-edge-up) 0 0 / var(--paper-tooth) var(--paper-edge) repeat-x, var(--mask-solid) 0 100% / 100% calc(100% - var(--paper-edge) + 1px) no-repeat;
}

.site-footer::before {
  top: calc(-1 * var(--paper-edge) - var(--border-width));
  background: var(--color-border-subtle);
}

.site-footer::after {
  top: calc(-1 * var(--paper-edge));
  background: var(--color-bg-surface);
}

@media (forced-colors: active) {
  .site-footer {
    border-top: var(--border-width) solid CanvasText;
  }

  .site-footer::before,
  .site-footer::after {
    display: none;
  }
}

.site-footer__inner {
  display: grid;
  gap: var(--space-6);
}

/* Logo und Absender, darunter ein kurzer Absatz über papierlos. */
.site-footer__brand {
  display: grid;
  gap: var(--space-4);
}

.site-footer__brand p {
  margin: 0;
}

/* Schutzraum neben dem Logo wie im Kopf: 1.5rem. */
.site-footer__by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  color: var(--color-text-default);
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer__about {
  max-width: 40em;
  line-height: 1.55;
}

.site-footer__brand img {
  display: block;
  width: auto;
  height: 1.5rem;
}

.site-footer__links {
  --gap: var(--space-2) var(--space-6);
}

.site-footer__links a {
  color: var(--color-text-link);
  font-weight: 600;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--color-border-subtle);
  font-size: 0.8125rem;
}

@media (min-width: 960px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: var(--space-12);
  }

  .site-footer__meta {
    grid-column: 1 / -1;
  }
}
/* Komponenten: Icons, Buttons, Karten, Markenfläche, Marker, Badges, Hinweise, Tabellen. */

/* Icons (ICONOGRAPHY.md 6.2): Linienstärke bleibt 1,5 px, Farbe = currentColor. */
.icon {
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.icon * {
  vector-effect: non-scaling-stroke;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--xl {
  width: 3rem;
  height: 3rem;
}

/* Externer Link: Icon „external" (share-link) hinter dem Text; der Text dazu ist visuell versteckt. */
.link--external::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-inline-start: 0.25em;
  vertical-align: -0.05em;
  background-color: currentColor;
  -webkit-mask: var(--mask-external) center / contain no-repeat;
  mask: var(--mask-external) center / contain no-repeat;
}

/* Buttons (components/BUTTONS.md): Höhe 2.5rem, auf Touch-Geräten 44 px. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding: var(--space-1) var(--space-5);
  border: var(--border-width-strong) solid var(--color-action-primary);
  border-radius: var(--radius-md);
  background: var(--color-action-primary);
  color: var(--color-action-on-primary);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) linear,
    border-color var(--motion-fast) linear,
    color var(--motion-fast) linear;
}

.button:hover {
  border-color: var(--color-action-primary-hover);
  background: var(--color-action-primary-hover);
  color: var(--color-action-on-primary);
}

.button--secondary {
  border-color: var(--color-action-secondary-border);
  background: transparent;
  color: var(--color-action-secondary-border);
}

.button--secondary:hover {
  border-color: var(--color-action-secondary-border);
  background: var(--color-action-secondary-hover-bg);
  color: var(--color-action-secondary-border);
}

/* Auf der Markenfläche: gelb umrandet, gelbe Schrift; beim Überfahren gelb gefüllt. */
.button--on-brand {
  border-color: var(--color-accent);
  background: transparent;
  color: var(--color-text-accent-on-brand);
}

.button--on-brand:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-on);
}

@media (pointer: coarse) {
  .button {
    min-height: 2.75rem;
  }
}

/* Karten: weiße Fläche, 1 px Rand, weicher Schatten (Website-Motiv, FOUNDATION.md 1.6). */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-raised);
}

/* Icons der Website sind lila (FOUNDATION.md 1.4). */
.card > .icon {
  color: var(--color-text-heading);
}

/* Papierkante: Die Karte endet unten in einer abgerissenen Zackenkante wie ein Kassenbon.
   ::before zeichnet den Rand, ::after die Fläche; beide tragen dieselbe Maske. */
.card--paper {
  isolation: isolate;
  padding-bottom: calc(var(--space-6) + var(--paper-edge));
  border: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(var(--shadow-raised));
}

.card--paper::before,
.card--paper::after {
  content: "";
  position: absolute;
  z-index: -1;
  -webkit-mask: var(--mask-solid) 0 0 / 100% calc(100% - var(--paper-edge) + 1px) no-repeat, var(--mask-paper-edge) 0 100% / var(--paper-tooth) var(--paper-edge) repeat-x;
  mask: var(--mask-solid) 0 0 / 100% calc(100% - var(--paper-edge) + 1px) no-repeat, var(--mask-paper-edge) 0 100% / var(--paper-tooth) var(--paper-edge) repeat-x;
}

.card--paper::before {
  inset: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-border-subtle);
}

.card--paper::after {
  inset: var(--border-width) var(--border-width) calc(var(--border-width) * 1.5);
  border-radius: calc(var(--radius-lg) - var(--border-width)) calc(var(--radius-lg) - var(--border-width)) 0 0;
  background: var(--color-bg-surface);
  -webkit-mask-position: 0 0, calc(-1 * var(--border-width)) 100%;
  mask-position: 0 0, calc(-1 * var(--border-width)) 100%;
}

/* Markenfläche: Lila mit „P"-Elementen aus dem Logo-Zeichen (FOUNDATION.md 1.5).
   Ein großes P rechts unten, ein kleines gelbes P sitzt in seiner Aussparung. Der Inhalt
   hält Abstand zum gelben P: unter 600 px über den unteren Innenabstand, ab 600 px über den
   Innenabstand rechts (Breite des gelben P plus Abstand). Das große lila P darf hinter dem
   Inhalt liegen, weißer und gelber Text bleiben darauf lesbar. */
.brand-area {
  --p-large: 13rem;
  --p-small: 3.5rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-8) var(--space-6) calc(var(--p-small) + var(--space-8));
  border-radius: var(--radius-lg);
  background: var(--color-bg-brand);
  color: var(--color-text-on-brand);
}

.brand-area > * {
  max-width: 42rem;
}

.brand-area :is(h1, h2, h3, h4) {
  color: var(--color-text-on-brand);
}

.brand-area a:not(.button) {
  color: var(--color-text-on-brand);
}

.brand-area a:not(.button):hover {
  color: var(--color-text-accent-on-brand);
}

.brand-area :focus-visible {
  outline-color: var(--color-focus-ring-on-brand);
}

/* Karten (z. B. ein Formular) auf der Markenfläche behalten ihre eigenen Farben. */
.brand-area .card {
  color: var(--color-text-default);
}

.brand-area .card :is(h1, h2, h3, h4) {
  color: var(--color-text-heading);
}

.brand-area .card a:not(.button) {
  color: var(--color-text-link);
}

.brand-area .card a:not(.button):hover {
  color: var(--color-text-link-hover);
}

.brand-area .card :focus-visible {
  outline-color: var(--color-focus-ring);
}

.brand-area::before,
.brand-area::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 13.2303 / 19.6883;
  pointer-events: none;
  -webkit-mask: url("img/p-element.svg") 0 0 / 100% 100% no-repeat;
  mask: url("img/p-element.svg") 0 0 / 100% 100% no-repeat;
}

.brand-area::before {
  right: calc(-0.12 * var(--p-large));
  bottom: var(--space-4);
  height: var(--p-large);
  background: var(--color-bg-brand-hover);
}

.brand-area::after {
  right: var(--space-2);
  bottom: var(--space-2);
  height: var(--p-small);
  background: var(--color-accent);
}

@media (min-width: 600px) {
  .brand-area {
    --p-large: 20rem;
    --p-small: 5.5rem;
    padding: var(--space-10) var(--space-12);
    /* rechter Rand des gelben P + seine Breite (Seitenverhältnis des P) + Abstand */
    padding-inline-end: calc(var(--space-8) + 0.1 * var(--p-large) + 0.672 * var(--p-small) + var(--space-6));
  }

  .brand-area::before {
    right: var(--space-8);
    bottom: var(--space-6);
  }

  .brand-area::after {
    right: calc(var(--space-8) + 0.1 * var(--p-large));
    bottom: var(--space-4);
  }
}

/* Marker: dicke gelbe Unterstreichung unter dem Wort; der Text bleibt in seiner Farbe. */
.marker {
  color: var(--color-text-heading);
  text-decoration-line: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.brand-area .marker {
  color: inherit;
}

/* Badges (components/BADGES.md): radius.full, 0.75rem/600, Text plus Farbe. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.0625rem var(--space-2);
  border: var(--border-width) solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  color: var(--color-text-default);
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.33;
  white-space: nowrap;
  vertical-align: middle;
}

.badge .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.badge--own {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-on);
}

.badge--error {
  border-color: var(--color-danger-border);
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.badge--warning {
  border-color: var(--color-warning-border);
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.badge--info {
  border-color: var(--color-info-border);
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

/* Hinweise (components/ALERTS.md): Icon und Farbe sagen dasselbe, der Text sagt es ganz. */
.notice {
  --notice-text: var(--color-info-text);
  --notice-bg: var(--color-info-bg);
  --notice-border: var(--color-info-border);
  --notice-icon: var(--color-info-icon);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-width) solid var(--notice-border);
  border-radius: var(--radius-lg);
  background: var(--notice-bg);
  color: var(--notice-text);
}

.notice > .icon {
  margin-top: 0.125rem;
  color: var(--notice-icon);
}

.notice a {
  color: inherit;
}

.notice--success {
  --notice-text: var(--color-success-text);
  --notice-bg: var(--color-success-bg);
  --notice-border: var(--color-success-border);
  --notice-icon: var(--color-success-icon);
}

.notice--warning {
  --notice-text: var(--color-warning-text);
  --notice-bg: var(--color-warning-bg);
  --notice-border: var(--color-warning-border);
  --notice-icon: var(--color-warning-icon);
}

.notice--danger {
  --notice-text: var(--color-danger-text);
  --notice-bg: var(--color-danger-bg);
  --notice-border: var(--color-danger-border);
  --notice-icon: var(--color-danger-icon);
}

/* Tabellen (components/TABLES.md): kompakt, nur waagrechte Linien; breite Tabellen scrollen im Container. */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: var(--border-width) solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
}

.table,
.table-scroll > table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-surface);
  font-size: 0.875rem;
  line-height: 1.43;
  font-variant-numeric: tabular-nums;
}

:is(.table, .table-scroll > table) :is(th, td) {
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--border-width) solid var(--color-border-subtle);
  text-align: start;
  vertical-align: top;
}

:is(.table, .table-scroll > table) thead th {
  background: var(--color-bg-subtle);
  font-weight: 600;
}

.table-scroll > table tbody tr:last-child > * {
  border-bottom: 0;
}

:is(.table, .table-scroll > table) caption {
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  text-align: start;
}

/* Windows-Kontrastmodus (COLOUR.md 2.7): sichtbare Grenzen, primärer Button invertiert. */
@media (forced-colors: active) {
  .button {
    border-color: ButtonText;
  }

  .button:not(.button--secondary, .button--on-brand) {
    forced-color-adjust: none;
    background: ButtonText;
    color: ButtonFace;
  }

  .button:not(.button--secondary, .button--on-brand):focus-visible {
    outline-color: Highlight;
  }

  .card,
  .card--paper {
    border: var(--border-width) solid CanvasText;
  }

  .card--paper::before,
  .card--paper::after,
  .brand-area::before,
  .brand-area::after {
    display: none;
  }

  .brand-area,
  .notice,
  .table-scroll {
    border: var(--border-width) solid CanvasText;
  }

  .badge {
    border-color: CanvasText;
  }

  /* Icons nehmen die Farbe ihres Texts an. */
  .card > .icon,
  .notice > .icon {
    color: inherit;
  }

  .link--external::after {
    forced-color-adjust: none;
    background-color: LinkText;
  }
}
/* Seitenspezifische Muster (Inhaltsseiten) */

.breadcrumbs {
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: var(--space-2);
}

.stand {
  color: var(--color-text-secondary);
}

.toc {
  max-width: var(--text-max-width);
}

.toc__title {
  margin-block-end: var(--space-2);
  font-weight: 700;
}

.toc__list,
.toc__list ol {
  padding-inline-start: var(--space-5);
}

.toc__list ol {
  margin-block-start: var(--space-1);
}

.toc__list li + li {
  margin-block-start: var(--space-1);
}

.sources ul {
  padding: 0;
  list-style: none;
}

/* News */
.pagination {
  padding: 0;
  list-style: none;
  --gap: var(--space-4);
}

.pagination a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text-default);
}

/* FAQ und Glossar */
.faq__topics,
.glossary__letters {
  padding: 0;
  list-style: none;
  --gap: var(--space-2);
}

.faq__topic,
.glossary__letters a {
  display: inline-block;
  min-width: 2rem;
  min-height: 2rem;
  padding: var(--space-1) var(--space-3);
  border: var(--border-width) solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
}

.faq__entry {
  max-width: var(--text-max-width);
}

.faq__more,
.glossary__see {
  color: var(--color-text-secondary);
}

.glossary__list {
  margin: 0;
}

.glossary__entry {
  padding-block: var(--space-4);
  border-block-start: var(--border-width) solid var(--color-border-subtle);
  scroll-margin-top: var(--space-6);
}

.glossary__entry dt {
  font-weight: 700;
  font-size: 1.125rem;
}

.glossary__entry dd {
  margin: var(--space-2) 0 0;
}

/* Anbietervergleich: erste Spalte bleibt beim horizontalen Scrollen sichtbar. */
.providers__table {
  width: max-content;
  min-width: 100%;
}

.providers__table tbody tr {
  scroll-margin-top: var(--space-6);
}

.providers__table :is(th, td) {
  min-width: 7rem;
}

.providers__table :is(th, td):first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 7.5rem;
  background: var(--color-bg-surface);
  box-shadow: inset calc(-1 * var(--border-width)) 0 0 var(--color-border-subtle);
  text-align: start;
}

.providers__table thead th:first-child {
  z-index: 2;
  background: var(--color-bg-subtle);
}

.providers__table tbody th {
  font-weight: 600;
}

.providers__table tbody tr:target > * {
  background: var(--color-bg-subtle);
}

.provider-value--none,
.provider-value__plan {
  color: var(--color-text-secondary);
}

.provider-value__plan {
  font-size: 0.75rem;
}

/* Fehlercodes */
.rules__filter label {
  font-weight: 600;
}

.rules__search {
  width: 100%;
  max-width: 28rem;
  min-height: 2.5rem;
  padding: var(--space-1) var(--space-3);
  border: var(--border-width-strong) solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  color: var(--color-text-default);
  font: inherit;
}

@media (pointer: coarse) {
  .rules__search {
    min-height: 2.75rem;
  }
}

.rules__status {
  color: var(--color-text-secondary);
}

.rules__list {
  padding: 0;
  list-style: none;
}

.rules__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border: var(--border-width) solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  color: inherit;
  text-decoration: none;
}

.rules__link:hover {
  background: var(--color-bg-subtle);
}

.rules__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.rules__title {
  display: block;
  margin-top: var(--space-1);
  font-weight: 600;
}

.rule__quote {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-inline-start: var(--border-width-strong) solid var(--color-border-subtle);
  background: var(--color-bg-subtle);
}

.rule__nav ul {
  padding: 0;
  list-style: none;
  justify-content: space-between;
}

/* Startseite */
.home-hero .countdown {
  margin: 0;
  color: var(--color-text-accent-on-brand);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-ligatures: no-contextual;
  line-height: 1.3;
}

/* Platz für die Countdown-Zeile reservieren, damit der Inhalt beim Einblenden nicht springt.
   Gemessen (Zeile = 1.25rem × 1.3 = 1.625rem): bis 24em vier Zeilen, bis 28em drei, bis 37.5em
   zwei (Reserve 3.25rem gilt ab 28em), ab 56.25em eine. Schwellen in em, damit sie bei größerer
   Schrift mitwandern. */
.home-hero__countdown {
  min-height: 6.5rem;
}

@media (min-width: 24em) {
  .home-hero__countdown {
    min-height: 4.875rem;
  }
}

@media (min-width: 28em) {
  .home-hero__countdown {
    min-height: 3.25rem;
  }
}

@media (min-width: 56.25em) {
  .home-hero__countdown {
    min-height: 1.625rem;
  }
}

.deadlines {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.deadlines__item {
  display: grid;
  gap: var(--space-1);
  padding-inline-start: var(--space-4);
  border-inline-start: var(--border-width-indicator) solid var(--color-bg-brand-hover);
}

.deadlines__item.is-next {
  border-inline-start-color: var(--color-accent);
}

.deadlines__date {
  font-weight: 700;
}

.deadlines__item.is-next .deadlines__date {
  color: var(--color-text-accent-on-brand);
}

@media (min-width: 600px) {
  .deadlines__item {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--space-4);
  }
}

/* Einleitung unter dem Lila-Block: links der Einstieg etwas größer, rechts leiser die
   Nebeninformation, abgesetzt mit dem gelben Strich wie bei den Fristen im Lila-Block. */
.home-intro {
  display: grid;
  gap: var(--space-6);
}

.home-intro p {
  margin: 0;
}

.home-intro__lead {
  max-width: 36em;
  color: var(--color-text-heading);
  font-size: 1.125rem;
  line-height: 1.5;
}

.home-intro__aside {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding-inline-start: var(--space-5);
  border-inline-start: var(--border-width-indicator) solid var(--color-accent);
  color: var(--color-text-secondary);
}

@media (min-width: 600px) {
  .home-intro__lead {
    font-size: 1.25rem;
    line-height: 1.45;
  }
}

@media (min-width: 960px) {
  .home-intro {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-12);
  }
}

.home-card h3 {
  font-size: 1.25rem;
}

.home-card p {
  margin: 0;
}

/* Die ganze Karte ist klickbar, der Link steht in der Überschrift. */
.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible::after {
  outline: var(--border-width-strong) solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

.home-card:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.2em;
}

/* Fristen-Check */
.fristen-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fristen-form legend {
  margin-bottom: var(--space-3);
  padding: 0;
  font-weight: 700;
}

.fristen-form__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.fristen-form__option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 1.75rem;
}

.fristen-form__option input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  /* Lila im hellen, Gelb im dunklen Thema: Gelb wäre auf hellem Grund ein Rand ohne Kontrast (COLOUR.md 2.6). */
  accent-color: var(--color-action-primary);
}

.fristen-form__option label {
  padding-block: var(--space-1);
}

@media (pointer: coarse) {
  .fristen-form__option {
    min-height: 2.75rem;
  }
}

/* Ergebnis: Randbalken in der Aktionsfarbe (hell Lila, dunkel Gelb; Gelb nie als Rand auf hellem Grund,
   COLOUR.md 2.6), dazu Fläche und fette Bezeichnungen als zweites Merkmal. */
.fristen-result:not(:empty) {
  padding: var(--space-4);
  border-inline-start: var(--border-width-indicator) solid var(--color-action-primary);
  background: var(--color-bg-subtle);
}

.fristen-result p,
.fristen-result ul {
  margin-block: 0 var(--space-2);
}

.fristen-result > :last-child {
  margin-bottom: 0;
}

.fristen-result [data-line] {
  font-size: 1.125rem;
}

.tool-card__title {
  font-size: 1.25rem;
}

/* Der leere Live-Bereich bleibt im DOM, soll aber keinen Abstand erzeugen. */
.fristen-result:empty {
  margin-top: calc(-1 * var(--gap));
}

/* Leitweg-ID-Prüfer */
.leitweg-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.leitweg-form label {
  font-weight: 700;
}

.leitweg-form input {
  width: 100%;
  max-width: 32rem;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: var(--border-width) solid var(--color-border-control);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  color: var(--color-text-default);
  font: inherit;
  font-family: var(--font-code);
}

.leitweg-form__hint {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.leitweg-parts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-1) var(--space-4);
  margin: 0;
}

.leitweg-parts dt {
  font-weight: 700;
}

.leitweg-parts dd {
  margin: 0;
  overflow-wrap: break-word;
}

.leitweg-result:empty {
  margin-top: calc(-1 * var(--gap));
}

@media (max-width: 30rem) {
  .leitweg-parts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .leitweg-parts dd {
    margin-bottom: var(--space-2);
  }
}
