.site-header[data-astro-cid-nen7h5rs] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--border);
  z-index: 50;
}

.site-header__inner[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block: var(--space-s);
}

.site-header__brand[data-astro-cid-nen7h5rs] {
  font-weight: 800;
  font-size: var(--text-l);
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -.04em;
}

.site-header__dot[data-astro-cid-nen7h5rs] {
  color: var(--text);
}

.site-nav__list[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link[data-astro-cid-nen7h5rs] {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-s);
  font-weight: 500;
  padding-block: var(--space-2xs);
  border-bottom: 2px solid #0000;
}

.site-nav__link[data-astro-cid-nen7h5rs]:hover, .site-nav__link--active[data-astro-cid-nen7h5rs] {
  color: var(--primary);
}

.site-nav__link--active[data-astro-cid-nen7h5rs] {
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.site-header__toggle[data-astro-cid-nen7h5rs] {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: var(--space-2xs);
}

.mobile-nav[data-astro-cid-nen7h5rs] {
  border-top: var(--border);
  background: var(--surface);
  padding: var(--space-m) var(--gutter);
}

.mobile-nav__list[data-astro-cid-nen7h5rs] {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-s);
}

.mobile-nav__link[data-astro-cid-nen7h5rs] {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding-block: var(--space-2xs);
}

@media (width <= 48rem) {
  .site-nav[data-astro-cid-nen7h5rs] {
    display: none;
  }

  .site-header__toggle[data-astro-cid-nen7h5rs] {
    display: inline-flex;
  }
}
.site-footer[data-astro-cid-jo6i4kqk] {
  border-top: var(--divider);
  padding-block: var(--space-l);
  background: var(--surface-lowest);
}

.site-footer__inner[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
}

.site-footer__brand[data-astro-cid-jo6i4kqk] {
  font-weight: 800;
  font-size: var(--text-m);
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -.03em;
}

.site-footer__brand[data-astro-cid-jo6i4kqk] span[data-astro-cid-jo6i4kqk] {
  color: var(--text);
}

.site-footer__copy[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-xs);
  margin: 0;
}

.site-footer__mail-group[data-astro-cid-jo6i4kqk] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-footer__sep[data-astro-cid-jo6i4kqk] {
  color: var(--outline-variant);
}

@media (width <= 30rem) {
  .site-footer__sep[data-astro-cid-jo6i4kqk] {
    display: none;
  }
}

.site-footer__mail[data-astro-cid-jo6i4kqk] {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  text-transform: none;
  letter-spacing: .02em;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__mail[data-astro-cid-jo6i4kqk]:hover, .site-footer__mail[data-astro-cid-jo6i4kqk]:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.site-footer__nav[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.site-footer__link[data-astro-cid-jo6i4kqk] {
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__link[data-astro-cid-jo6i4kqk]:hover {
  color: var(--primary);
}

.site-footer__link[data-astro-cid-jo6i4kqk] {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.site-footer__legal[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--outline-variant);
}
/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-wght-normal.DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-ext-wght-normal.DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-wght-normal.CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-vietnamese-wght-normal.CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-ext-wght-normal.DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-wght-normal.Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* Technical Noir + ACSS Fluid Scale Tokens – abdalrahman.dev */
:root {
  color-scheme: dark;
  --root-font-size: 100%;

  /* Technical Noir Surface & Brand Palette */
  --bg: #131313;
  --surface-lowest: #0e0e0e;
  --surface-low: #1c1b1b;
  --surface: #201f1f;
  --surface-high: #2a2a2a;
  --surface-highest: #353534;
  --surface-bright: #393939;

  --primary: #dab9ff;
  --primary-container: #bb86fc;
  --primary-deep: #7743b5;
  --primary-hover: #eedbff;
  --primary-ultra-light: rgba(218, 185, 255, 0.12);
  --primary-a04: rgba(218, 185, 255, 0.04);
  --primary-a08: rgba(218, 185, 255, 0.08);
  --primary-a32: rgba(218, 185, 255, 0.32);
  --on-primary: #2a0053;
  --secondary: #cfbdff;
  --tertiary: #c9bfff;

  --text: #e5e2e1;
  --text-muted: #cdc3d4;
  --outline: #978d9d;
  --outline-variant: #4b4452;

  --success: #7ee787;
  --success-a08: rgba(126, 231, 135, 0.08);
  --danger: #ffb4ab;
  --danger-a08: rgba(255, 180, 171, 0.08);

  /* Kopfleiste: --bg mit Alpha, damit der Inhalt beim Scrollen durchscheint. */
  --header-bg: rgba(19, 19, 19, 0.82);

  /* Glassmorphism & Gradients */
  --glass-bg: rgba(32, 31, 31, 0.65);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  /* Button-Verlauf: dunkler Stop bewusst heller als --primary-deep.
     Mit --primary-deep (#7743b5) und der dunklen Beschriftung --on-primary
     (#2a0053) ergibt der linke Rand nur 2.66:1 — unter dem AA-Minimum von
     4.5:1. #a86cf0 schafft 4.96:1, der helle Stop 6.48:1. */
  --primary-gradient: linear-gradient(135deg, #a86cf0 0%, var(--primary-container) 100%);
  --glow-primary: 0 0 30px rgba(187, 134, 252, 0.18);
  --glow-btn: 0 0 24px rgba(187, 134, 252, 0.4);
  --text-glow: 0 0 16px rgba(187, 134, 252, 0.35);

  /* Layout & Container */
  /* 80rem bei 1440px, wächst auf 92rem ab ~1638px. Darunter unverändert,
     weil --content-width-safe per min() die Gutter-Grenze zieht. */
  --content-width: clamp(80rem, 90vw, 92rem);
  --prose-width: 68ch;
  --gutter: clamp(1rem, calc(4vw + 0.25rem), 3rem);
  --content-width-safe: min(var(--content-width), calc(100% - var(--gutter) * 2));
  --header-height: clamp(4.25rem, 0.8vw + 3.65rem, 5.25rem);

  /* Typography (Self-Hosted Inter Variable) */
  --text-font-family: "Inter Variable", system-ui, -apple-system, sans-serif;
  --heading-font-family: "Inter Variable", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-line-height: 1.6;
  --heading-line-height: 1.15;
  --heading-font-weight: 700;

  /* Fluid Type Scale */
  --text-xs: clamp(0.75rem, 0.1vw + 0.72rem, 0.8125rem);
  --text-s: clamp(0.875rem, 0.12vw + 0.85rem, 0.95rem);
  --text-m: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
  --text-l: clamp(1.15rem, 0.45vw + 1.05rem, 1.4rem);
  --text-xl: clamp(1.5rem, 1.1vw + 1.25rem, 2.1rem);

  /* Fluid Heading Scale */
  --h6: var(--text-xs);
  --h5: var(--text-s);
  --h4: clamp(1.125rem, 0.25vw + 1.06rem, 1.3rem);
  --h3: clamp(1.4rem, 0.65vw + 1.25rem, 1.85rem);
  --h2: clamp(1.9rem, 1.4vw + 1.55rem, 2.75rem);
  --h1: clamp(2.4rem, 2.8vw + 1.75rem, 4rem);

  /* Fluid Spacing Scale */
  --space-3xs: clamp(0.25rem, 0.05vw + 0.23rem, 0.375rem);
  --space-2xs: clamp(0.45rem, 0.1vw + 0.42rem, 0.6rem);
  --space-xs: clamp(0.75rem, 0.15vw + 0.7rem, 0.9rem);
  --space-s: clamp(1rem, 0.3vw + 0.9rem, 1.35rem);
  --space-m: clamp(1.6rem, 0.7vw + 1.4rem, 2.15rem);
  --space-l: clamp(2.2rem, 1.5vw + 1.8rem, 3.4rem);
  --space-xl: clamp(3rem, 3vw + 2.2rem, 5.25rem);

  --section-space-s: clamp(2.75rem, 3vw + 1.9rem, 4.5rem);
  --section-space-m: clamp(4rem, 5vw + 2.6rem, 7rem);
  --section-space-l: clamp(5.5rem, 7.5vw + 3.2rem, 10rem);

  --content-gap: var(--space-m);
  --grid-gap: var(--space-m);

  /* Auto Grids */
  --grid-auto-2: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  --grid-auto-3: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  --grid-auto-4: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));

  /* Borders, Radii & Transitions
     Ein Basisradius für alle Flächen (Cards, Buttons, Felder, Bilder).
     Nur Pills bleiben voll gerundet. */
  --radius-base: clamp(0.65rem, 0.3vw + 0.5rem, 1rem);
  --radius-s: var(--radius-base);
  --radius: var(--radius-base);
  --radius-m: var(--radius-base);
  --radius-l: var(--radius-base);
  --radius-pill: 9999px;

  --border: 1px solid rgba(151, 141, 157, 0.2);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --border-primary: 1px solid rgba(218, 185, 255, 0.4);
  --divider: 1px solid rgba(151, 141, 157, 0.16);

  /* Gestrichelter Rahmen fuer zitierte und hervorgehobene Bloecke.
     Alpha 0.45 ist noetig, damit der Rahmen auf --surface 3:1 erreicht
     (WCAG 1.4.11 fuer Flaechenbegrenzungen); mit 0.28 waren es nur 2:1.
     Gestrichelt statt durchgezogen, weil der Rahmen hier Gliederung zeigt
     und nicht Abgrenzung wie bei Karten. */
  --dashed-width: 1px;
  --dashed-style: dashed;
  --dashed-accent: rgba(218, 185, 255, 0.45);
  --dashed-muted: rgba(151, 141, 157, 0.5);
  --dashed-danger: rgba(255, 180, 171, 0.55);
  --dashed-success: rgba(126, 231, 135, 0.5);

  /* Flaeche fuer Zitat- und Hinweisbloecke: eine Stufe unter der Karte,
     damit sie sich von .card unterscheiden, ohne zu konkurrieren. */
  --quote-bg: rgba(32, 31, 31, 0.55);

  --focus-color: var(--primary);
  --focus-width: 2px;
  --focus-offset: 2px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.15s cubic-bezier(0.22, 1, 0.36, 1);

  /* Card Tokens */
  --card-padding: var(--space-m);
  --card-radius: var(--radius-base);
  --card-background: var(--glass-bg);
  --card-border-color: rgba(255, 255, 255, 0.08);
  --card-heading-color: var(--text);
  --card-text-color: var(--text-muted);
  --card-text-size: var(--text-s);
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* Einspaltige Raster bekommen eine schrumpfbare Spur.
   Ohne eigene Spaltenangabe bemisst der Browser die Spur nach der
   min-content-Breite des breitesten Inhalts. Lange deutsche Komposita wie
   "Suchmaschinenoptimierung" oder "Windows-Aufgabenplanung" reißen sie dann
   auf, und der Text wird rechts abgeschnitten.
   Das war bis 03.12. von `overflow-x: hidden` auf `body` verdeckt: bei 320 px
   fehlten dadurch bis zu 166 px Inhalt, ohne sichtbare Scrollleiste.
   Raster mit eigener Spaltenangabe (.card-grid, .consent, .contact-form …)
   überschreiben diese Vorgabe über ihre Klasse. */
* {
  grid-template-columns: minmax(0, 1fr);
}

html {
  font-family: var(--text-font-family);
  font-size: var(--root-font-size);
  color: var(--text);
  background-color: var(--bg);
  line-height: var(--text-line-height);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: var(--text-m);
  /* Lange Wörter umbrechen, statt den Container zu sprengen.
     `break-word` allein senkt die min-content-Breite nicht — dafür sorgt die
     Rasterregel oben. Beides zusammen verhindert abgeschnittenen Text. */
  overflow-wrap: break-word;
}

main {
  flex: 1;
  padding-top: var(--header-height);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font-family);
  color: var(--text);
  line-height: var(--heading-line-height);
  font-weight: var(--heading-font-weight);
  letter-spacing: -0.025em;
  /* Abstände kommen von den Containern (gap), nicht von den Elementen. */
  margin: 0;
}

/* Deutsche Trennstellen an Überschriften und Fließtext.
   `hyphens: auto` nutzt die Sprachangabe (lang="de") und setzt einen
   Trennstrich; `overflow-wrap` greift nur, wenn keine Trennstelle passt. */
h1, h2, h3, h4, h5, h6, p, li, blockquote, dd, figcaption {
  hyphens: auto;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p {
  /* Abstände kommen von den Containern (gap), nicht von den Elementen. */
  margin: 0;
  max-width: var(--prose-width);
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-underline-offset: 0.25em;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Titel-Link in Karten einheitlich: erbt die Überschriftfarbe und wird erst
   bei Hover und Tastaturfokus als Link erkennbar. Unterstreichung statt nur
   Farbe, damit die Klickbarkeit nicht allein an der Farbe hängt (WCAG 1.4.1).
   Vorher stand dieselbe Regel fünfmal in fünf Komponenten. */
:where(.card h2, .card h3, .card h4) a {
  color: inherit;
  text-decoration: none;
}

:where(.card h2, .card h3, .card h4) a:hover,
:where(.card h2, .card h3, .card h4) a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Fokusring. Bewusst OHNE `border-radius`: das würde das Element selbst
   verändern. Ein Feld mit nur einer Unterkante bekam dadurch eine gerundete
   Unterkante, und der Ring folgte dieser Rundung. Der Ring soll der Form des
   Elements folgen — Karten sind rund, Felder eckig. */
:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.container {
  width: var(--content-width-safe);
  margin-inline: auto;
}

/* Vertikaler Fluss über gap statt margin.
   Kinder eines .stack haben keinen eigenen Abstand; die Luft kommt aus dem
   Raster. Über --stack-gap lässt sich der Abstand je Bereich setzen. */
.stack {
  display: grid;
  align-content: start;
  gap: var(--stack-gap, var(--space-s));
}

/* Seiten-Sektion: einheitlicher vertikaler Rhythmus auf allen Seiten */
.page-section {
  padding-block: var(--section-space-m);
}

/* Kopf und Inhaltsblöcke einer Seite: großer Abstand aus dem Raster. */
.page-section > .container.stack,
.page-section.stack {
  --stack-gap: var(--space-l);
}

/* Alleinstehender Call-to-Action: Abstand über padding, nicht margin. */
.cta-wrap {
  padding-block: var(--space-xl);
}

/* Dezentes Punkte-Raster für Hero-Flächen (Startseite, Seitenköpfe, 404) */
.dot-grid {
  position: relative;
}

.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
  background-image: radial-gradient(var(--primary-container) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Karten-Raster: ein Grid für alle Kartenlisten.
   Spaltenbreite über --card-grid-min steuerbar. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-grid-min, 20rem)), 1fr));
  gap: var(--grid-gap);
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-grid--compact {
  --card-grid-min: 18rem;
}

/* Technical Noir Reusable Primitives */
/* Zitat- und Hinweisblock — ein Primitiv für alles, was zitiert oder
   hervorgehoben wird: Problemstellung, Zitat im Artikel, Merksatz, Hinweis.
   Gestrichelter Rahmen rundum statt Balken links: der Balken war an vier
   Stellen unterschiedlich breit (2, 3, 4 px) und markierte einmal eine
   Warnung, einmal ein Zitat, einmal eine Werteliste. Ein Rahmen sagt
   dasselbe, ohne die Bedeutung allein an der Farbe zu tragen.
   BEM: .callout, .callout__label, .callout__title, .callout__text,
   .callout__source, Modifier --quote, --warn, --success, --bare. */
.callout {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding: var(--space-m);
  background: var(--quote-bg);
  border: var(--dashed-width) var(--dashed-style) var(--dashed-muted);
  border-radius: var(--card-radius);
}

/* Zitat: Rahmen in der Akzentfarbe, weil hier eine hervorgehobene Stimme
   spricht. */
.callout--quote {
  border-color: var(--dashed-accent);
}

.callout--warn {
  border-color: var(--dashed-danger);
}

.callout--success {
  border-color: var(--dashed-success);
}

/* Ohne Fläche, nur Rahmen: für Blöcke, die schon auf einer Karte liegen. */
.callout--bare {
  background: none;
}

/* Auszeichnung über dem Text. Bewusst nicht .mono-label: das ist für
   Metadaten reserviert und steht in Großbuchstaben. */
.callout__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Eine Stufe über dem Fließtext. Mit --text-m war die Überschrift exakt so
   groß wie der Absatz darunter und trug die Gliederung nicht. */
.callout__title {
  font-size: var(--text-l);
  color: var(--text);
}

/* Inhalt des Blocks: direkte Kinder, nicht ein Wrapper dazwischen. Ein
   <div> in einem <blockquote> wäre zulässig, würde aber die Semantik
   verwässern. */
.callout > :where(p, ul, ol, dl) {
  margin: 0;
  max-width: var(--prose-width);
  color: var(--text-muted);
}

.callout > :where(p, ul, ol) :where(p, li) {
  color: inherit;
}

.callout > * + * {
  margin-block-start: var(--space-2xs);
}

/* Ein Zitat nennt seine Quelle: kleiner und gedämpft, aber nicht unsichtbar. */
.callout__source {
  font-size: var(--text-xs);
  color: var(--outline);
  font-style: normal;
}

.callout__source::before {
  content: '— ';
}

/* Karten-Link-Muster: eine Karte, ein Link, die ganze Fläche klickbar.
   Das ist der etablierte Weg („card link pattern"). Eine unsichtbare Fläche
   über der Karte macht jeden Punkt klickbar, ohne einen zweiten Tab-Stopp zu
   erzeugen.
   Vorher hatten vier Kartentypen zwei Links auf dasselbe Ziel — Titel und
   „Mehr erfahren". Das sind zwei Tab-Stopps für eine Aktion, und
   Screenreader lesen das Ziel zweimal vor.
   BEM: `.card--linked` am Block, `.card__anchor` am einzigen Link. */
.card--linked {
  position: relative;
}

.card--linked .card__anchor::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  /* über allen Inhalten der Karte, aber unter dem Fokusring */
  z-index: 1;
}

/* Der Fokusring gehört der Karte, nicht dem Link darin. Ein Ring um den
   Titeltext wäre bei einer 300 px breiten Karte ein 40 px kleines Ziel für
   das Auge. `:has(:focus-visible)` statt `:focus-within`, damit ein Klick mit
   der Maus keinen Ring hinterlässt — `:focus-within` würde das. */
.card--linked:has(:focus-visible) {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* Den Ring des Links selbst unterdrücken: er liegt innen und würde doppelt
   wirken. Nur innerhalb von `.card--linked` — Karten mit mehreren Links auf
   verschiedene Ziele (Projektkarten) behalten ihre eigenen Ringe. */
.card--linked .card__anchor:focus-visible {
  outline: none;
}

/* Sichtbare Handlungsaufforderung ohne eigenen Tab-Stopp. Sie ist Text, kein
   Link — angeklickt wird über die Fläche. */
.card__cta {
  color: var(--primary);
  font-size: var(--text-s);
  font-weight: 600;
}

/* Ein Card-Primitive für alle Karten im Projekt:
   gleiche Fläche, gleicher Radius, gleicher Hover. */
.card,
.glass-card {
  /* Innenabstand am Primitiv, nicht in elf Komponenten. Vorher setzten neun
     Stellen `padding: var(--card-padding)` selbst, und eine neue Karte ohne
     diese Zeile hatte dann gar keinen Abstand. */
  padding: var(--card-padding);
  background: var(--card-background);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border-color);
  border-radius: var(--card-radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover,
.glass-card:hover {
  border-color: var(--primary-container);
  box-shadow: var(--glow-primary);
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-s) var(--space-l);
  font-size: var(--text-s);
  font-weight: 700;
  text-decoration: none;
  background: var(--primary-gradient);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn--primary:hover {
  color: var(--on-primary);
  box-shadow: var(--glow-btn);
  transform: translateY(-2px);
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-s) var(--space-l);
  font-size: var(--text-s);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--primary);
  border: var(--border-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.btn--outline:hover {
  background: var(--primary-a08);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--outline);
}

.text-glow {
  color: var(--primary);
  text-shadow: var(--text-glow);
}

/* Code in Artikeln: Inline-Code hebt sich leicht ab, Blöcke bekommen eine
   eigene Fläche mit horizontalem Scroll statt Umbruch. */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-high);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-s);
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Vergleichstabellen im Fliesstext.
   Ohne Regel greifen die Browser-Defaults: zentrierte Kopfzeile, 2px-Zellen-
   abstand, kein Abstand zum Text. Gelesen wird von links, also linksbündig.
   Die Trennlinien kommen aus den Abstands-Tokens, nicht aus Rahmen um jede
   Zelle. */
/* Zitat im Fließtext. Gleiche Sprache wie .callout, damit ein Zitat im
   Artikel und eine Problemstellung auf der Leistungsseite zusammenpassen.
   Semantik entscheidet der Autor: <blockquote> für fremde Aussagen mit
   <cite>, <figure>+<figcaption>, wenn die Quelle sichtbar sein soll. */
.prose blockquote {
  margin: 0;
  padding: var(--space-m);
  background: var(--quote-bg);
  border: var(--dashed-width) var(--dashed-style) var(--dashed-accent);
  border-radius: var(--card-radius);
  color: var(--text);
  font-size: var(--text-l);
  line-height: 1.45;
}

/* Im Zitat gilt der Rhythmus des Blocks, nicht der des Fließtexts. */
.prose blockquote > :where(p, ul, ol) {
  margin: 0;
  max-width: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

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

.prose blockquote cite,
.prose blockquote footer {
  display: block;
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--outline);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-s);
  line-height: 1.45;
  /* Enge Viewports: die Tabelle scrollt waagerecht, statt das Layout zu
     sprengen. Kein overflow-x: hidden — sonst fehlen ganze Spalten.
     Wichtig: eine scrollbare Region braucht einen Tab-Stopp, sonst ist sie
     per Tastatur nicht erreichbar (WCAG 2.1.1, axe: scrollable-region-
     focusable). Das erledigt `scripts/format-dist.mjs` im Build. */
  display: block;
  overflow-x: auto;
  scrollbar-width: thin;
}

.prose th,
.prose td {
  text-align: start;
  vertical-align: top;
  padding-block: var(--space-2xs);
  padding-inline: 0 var(--space-s);
  border-bottom: var(--divider);
}

.prose th:last-child,
.prose td:last-child {
  padding-inline-end: 0;
}

.prose th {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--outline-variant);
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

/* Inline-Code in Überschriften. Der helle Kasten aus dem Fliesstext wirkt in
   grosser Schrift wie ein Button und zieht den Blick vom Satz ab. In
   Überschriften bleibt nur Monospace und die Akzentfarbe.
   `.prose` muss davor stehen: `:where()` allein hat Spezifität 0 und verliert
   gegen `.prose code`. */
.prose :where(h2, h3, h4) code {
  background: none;
  padding: 0;
  color: var(--primary);
  font-size: 0.82em;
}

.prose pre {
  font-family: var(--font-mono);
  font-size: var(--text-s);
  line-height: 1.55;
  border: 1px solid var(--outline-variant);
  border-radius: var(--card-radius);
  padding: var(--space-s);
  overflow-x: auto;
  scrollbar-width: thin;
}

.prose pre code {
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
  color: var(--text);
}

/* Nur für Screenreader: sichtbar versteckt, aber vorgelesen.
   Nicht display:none — sonst wird der Text auch nicht vorgelesen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Wer Bewegung reduziert haben will, bekommt keine. Betrifft den
   pulsierenden Statuspunkt im Hero und alle Übergänge. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.skip-link[data-astro-cid-z4jru4n3] {
  position: absolute;
  top: -100%;
  left: var(--space-s);
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-s);
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}

.skip-link[data-astro-cid-z4jru4n3]:focus {
  top: var(--space-s);
}
