/* ==========================================================================
   NICERU Corporate Design - Design-Tokens, Basis-Styles & Komponenten
   Grundlage: NICERU Corporate Design Guide, Version 1.2 · Oktober 2026
   Light + Dark Mode · Schrift lokal eingebunden (DSGVO)

   Einbindung:  <link rel="stylesheet" href="/assets/css/niceru-design.css">
   Erwartete Struktur:  /assets/css/  /assets/fonts/  /assets/logo/

   Regel: In Komponenten immer die Rollen-Tokens (--surface, --ink, --primary …)
   verwenden, nie die Palette (--navy-700, --sky-500 …) direkt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schrift - Manrope (Variable Font, SIL OFL), lokal gehostet
   Verwendet werden nur die Gewichte 400-800.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  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;
}

/* --------------------------------------------------------------------------
   2. Basis-Tokens (theme-unabhängig)
   -------------------------------------------------------------------------- */
:root {
  /* Markenpalette - Signet-Tief trägt die Marke, Signet-Blau ist der Zweitton
     für Hover und Diagramme, Sky setzt Akzente. Graphit und Papier sind die
     neutrale Bühne (70 % Neutral, 20 % Signet-Tief, 10 % Sky) */
  --navy-900: #151a4a;        /* Navy 900 */
  --navy-700: #222b77;        /* Signet-Tief - Leitfarbe der Marke */
  --navy-500: #2937b5;        /* Signet-Blau - Zweitton für Hover und Diagramme */
  --navy-100: #ebecf5;        /* Navy 100 */
  --sky-500: #70c3f6;         /* Sky - Akzent, sparsam eingesetzt */
  --sky-300: #a9dbfa;         /* Sky 300 */
  --signet-end: #1714a4;      /* Signet-Ende - nur im Logo (Verlaufsende) */
  --blue-500: #4468cc;        /* Verlaufsmitte - nur im Verlauf */
  --graphit: #16171b;         /* Graphit - Text und dunkle Flächen */
  --papier: #f6f6f3;          /* Papier - heller Grund */
  --white: #ffffff;

  /* Verlauf - gehört dem Signet, höchstens eine Verlaufsfläche pro Seite.
     Immer 135°: links oben hell, rechts unten dunkel. Keine eigenen Verläufe. */
  --gradient-brand: linear-gradient(135deg, #70c3f6 0%, #4468cc 50%, #1714a4 100%);

  /* Typografie */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Schriftskala: Größe / Zeilenhöhe · Gewicht */
  --fs-display: 3.5rem;   --lh-display: 3.75rem;   /* 56 / 60 · 800 */
  --fs-h1: 2.5rem;        --lh-h1: 3rem;           /* 40 / 48 · 700 */
  --fs-h2: 1.75rem;       --lh-h2: 2.25rem;        /* 28 / 36 · 700 */
  --fs-h3: 1.25rem;       --lh-h3: 1.75rem;        /* 20 / 28 · 600 */
  --fs-body-lg: 1.125rem; --lh-body-lg: 1.75rem;   /* 18 / 28 · 400 */
  --fs-body: 1rem;        --lh-body: 1.5rem;       /* 16 / 24 · 400 */
  --fs-small: 0.875rem;   --lh-small: 1.25rem;     /* 14 / 20 · 500 */
  --fs-caption: 0.75rem;  --lh-caption: 1rem;      /* 12 / 16 · 600, Versalien */
  --ls-caption: 0.08em;

  /* Abstände - 4-px-Raster */
  --space-1: 0.25rem;  /*  4 */
  --space-2: 0.5rem;   /*  8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-6: 1.5rem;   /* 24 - Karten-Padding */
  --space-8: 2rem;     /* 32 */
  --space-12: 3rem;    /* 48 - Sektionsabstand mobil */
  --space-16: 4rem;    /* 64 - Sektionsabstand */
  --space-section: var(--space-12);

  /* Layout */
  --container: 1200px;
  --container-wide: 1440px;
  --container-text: 68ch;
  --gutter: var(--space-4);

  /* Radien */
  --radius-sm: 6px;     /* Badges, Checkboxen, Tags */
  --radius-md: 12px;    /* Eingabefelder, Dropdowns */
  --radius-lg: 20px;    /* Karten, Dialoge, Bildflächen */
  --radius-pill: 999px; /* Buttons, Pills, Tags, Avatare */

  /* Logo (Wortbildmarke) */
  --logo-size: 32px;    /* Signethöhe; Mindestgröße 24px */

  /* Bewegung */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;

  /* Ebenen */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

@media (min-width: 768px) {
  :root {
    --space-section: var(--space-16);
    --gutter: var(--space-8);
    --logo-size: 36px;
  }
}

/* --------------------------------------------------------------------------
   3. Farbrollen - LIGHT (Standard)
   -------------------------------------------------------------------------- */
:root,
.theme-light {
  color-scheme: light;

  --surface: var(--papier);           /* Seitenhintergrund - neutral, minimal warm */
  --surface-raised: #ffffff;          /* Karten, Menüs, Dialoge - liegt auf surface */
  --surface-inverse: var(--navy-700); /* Markenfläche für Hero-Bereiche und Banner */
  --on-inverse: #ffffff;              /* Text und Icons auf surface-inverse */
  --line: #e3e3df;                    /* Haarlinien und Trenner */
  --line-strong: #8b8d94;             /* Rahmen von Eingabefeldern und Controls */
  --ink: var(--graphit);              /* Primärer Text */
  --ink-muted: #5c5e66;               /* Sekundärtext, Metadaten, Hilfetexte */
  --primary: var(--navy-700);         /* Primäre Aktionen, aktive Zustände, Links */
  --primary-hover: var(--navy-500);   /* Hover/Pressed von primary-Flächen */
  --on-primary: #ffffff;              /* Text und Icons auf primary */
  --primary-soft: var(--navy-100);    /* Getönter Hintergrund hinter primary-Text */
  --accent: var(--sky-500);           /* Sparsamer Akzent - nie großflächig */
  --on-accent: var(--navy-900);       /* Text auf accent */
  --link: var(--primary);             /* Alias von primary */
  --focus: var(--navy-700);           /* Fokusring */
  --success: #2e7d4f;
  --warning: #9a5a06;
  --danger: #b3261e;

  /* Diagramme: Signet-Tief für die wichtige Reihe, Signet-Blau als Zweitton,
     Sky als Signal (--accent), Rest neutral */
  --chart-1: var(--navy-700);
  --chart-2: var(--navy-500);
  --chart-3: #8b8d94;

  /* Schatten - neutral, nie farbig */
  --shadow-sm: 0 1px 2px rgb(22 23 27 / 0.06), 0 1px 3px rgb(22 23 27 / 0.08);
  --shadow-md: 0 12px 32px -8px rgb(22 23 27 / 0.16), 0 2px 6px rgb(22 23 27 / 0.06);
}

/* --------------------------------------------------------------------------
   4. Farbrollen - DARK
   primary wird Sky (dunkles Blau hat auf Graphit zu wenig Kontrast). Flächen
   bleiben neutral, nie blau eingefärbt; surface-inverse bleibt Signet-Tief.
   Greift bei System-Einstellung "dunkel" (außer data-theme="light"),
   bei data-theme="dark" auf <html> und für Sektionen mit .theme-dark.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --surface: #111214;
    --surface-raised: #1a1b1f;
    --surface-inverse: var(--navy-700);
    --on-inverse: #ffffff;
    --line: #2a2c31;
    --line-strong: #686b74;
    --ink: #ededea;
    --ink-muted: #a0a2a9;
    --primary: var(--sky-500);
    --primary-hover: var(--sky-300);
    --on-primary: #111214;
    --primary-soft: #15232e;
    --accent: var(--sky-500);
    --on-accent: var(--navy-900);
    --link: var(--primary);
    --focus: var(--sky-500);
    --success: #6cc490;
    --warning: #e0a54a;
    --danger: #f08a80;

    --chart-1: var(--sky-500);
    --chart-2: var(--navy-100);
    --chart-3: #686b74;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 12px 32px -8px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
  }
}

:root[data-theme="dark"],
.theme-dark {
  color-scheme: dark;

  --surface: #111214;
  --surface-raised: #1a1b1f;
  --surface-inverse: var(--navy-700);
  --on-inverse: #ffffff;
  --line: #2a2c31;
  --line-strong: #686b74;
  --ink: #ededea;
  --ink-muted: #a0a2a9;
  --primary: var(--sky-500);
  --primary-hover: var(--sky-300);
  --on-primary: #111214;
  --primary-soft: #15232e;
  --accent: var(--sky-500);
  --on-accent: var(--navy-900);
  --link: var(--primary);
  --focus: var(--sky-500);
  --success: #6cc490;
  --warning: #e0a54a;
  --danger: #f08a80;

  --chart-1: var(--sky-500);
  --chart-2: var(--navy-100);
  --chart-3: #686b74;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 12px 32px -8px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
}

/* Inverse Markenfläche (Hero, Banner): in beiden Modi Signet-Tief mit Weiß (on-inverse).
   Innerhalb werden die Rollen so umgelegt, dass alle Komponenten lesbar bleiben. */
.theme-inverse {
  background: var(--surface-inverse);
  color: var(--on-inverse);
  --surface: var(--surface-inverse);
  --surface-raised: var(--surface-inverse);
  --ink: var(--on-inverse);
  --ink-muted: var(--navy-100);
  --line: rgb(255 255 255 / 0.2);
  --line-strong: rgb(255 255 255 / 0.5);
  --primary: var(--on-inverse);
  --primary-hover: var(--navy-100);
  --on-primary: var(--navy-700);
  --primary-soft: rgb(255 255 255 / 0.14);
  --link: var(--on-inverse);
  --focus: var(--on-inverse);
}

/* --------------------------------------------------------------------------
   5. Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.theme-dark,
.theme-light {
  background: var(--surface);
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: var(--fw-bold); }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-bold); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); }
h4, h5, h6 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-bold); }

p, ul, ol, dl, blockquote, figure {
  margin: 0 0 var(--space-4);
}
p { text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }

strong, b { font-weight: var(--fw-bold); }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-12) 0;
}

::selection {
  background: var(--primary-soft);
  color: var(--ink);
}

/* Fokusring: 2px solid in focus mit 2px Abstand */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   6. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.container--text { max-width: calc(var(--container-text) + 2 * var(--gutter)); }

/* Abstand zwischen Sektionen: space-16 (mobil space-12) */
.section { padding-block: var(--space-section); }
.section--raised { background: var(--surface-raised); }

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.stack > * + * { margin-top: var(--space-4); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-modal);
  padding: var(--space-2) var(--space-4);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--space-4); }

/* --------------------------------------------------------------------------
   7. Typografie-Klassen (Schriftskala)
   -------------------------------------------------------------------------- */
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-extrabold);
}
.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); font-weight: var(--fw-regular); }
.body    { font-size: var(--fs-body);    line-height: var(--lh-body);    font-weight: var(--fw-regular); }
.small, small { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-medium); }
.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
}

/* Overline über Überschriften (z. B. „PROJEKT“) - caption in primary */
.overline {
  display: block;
  margin: 0 0 var(--space-1);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--primary);
}

.muted { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   8. Buttons - runde Enden (radius-pill)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* Primär: gefüllt in primary */
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn--primary:hover,
.btn--primary:active { background: var(--primary-hover); color: var(--on-primary); }

/* Sekundär: Kontur in primary (z. B. „Entwurf“) */
.btn--secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--secondary:hover,
.btn--secondary:active { background: var(--primary-soft); color: var(--primary); }

/* Textbutton */
.btn--ghost { background: transparent; color: var(--primary); padding-inline: var(--space-3); }
.btn--ghost:hover { background: var(--primary-soft); }

/* Destruktive Aktion */
.btn--danger { background: var(--danger); color: var(--surface-raised); }

.btn--sm { min-height: 36px; padding: var(--space-2) var(--space-4); font-size: var(--fs-small); line-height: var(--lh-small); }
.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-8); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }

.btn .icon-arrow, .link-arrow .icon-arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .icon-arrow, .link-arrow:hover .icon-arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. Karten, Tags, Badges, Status
   Oberflächen bleiben flach - keine Verläufe in Komponenten.
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card > :last-child { margin-bottom: 0; }
.card--interactive:hover { box-shadow: var(--shadow-md); }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
}

/* Tag / Pill - z. B. „Ausgewählt“ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: var(--fw-semibold);
}

/* Badge - kleine Kennzeichnung, radius-sm */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
}

/* Status - nie nur Farbe: immer mit Wort und Icon/Zeichen (✓, !) */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: var(--fw-semibold);
}
.status--success { color: var(--success); }
.status--warning { color: var(--warning); }
.status--danger  { color: var(--danger); }

/* --------------------------------------------------------------------------
   10. Formulare - Eingabefelder radius-md
   -------------------------------------------------------------------------- */
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }

.field label,
.label {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

.input,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font: inherit;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
::placeholder { color: var(--ink-muted); opacity: 1; }
.input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--primary); }
.input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.field__hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted); }
.field__error { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--danger); font-weight: var(--fw-semibold); }
.field--invalid input,
.field--invalid textarea,
.field--invalid select { border-color: var(--danger); }

input[type="checkbox"],
input[type="radio"] { accent-color: var(--primary); width: 1.15em; height: 1.15em; }

/* --------------------------------------------------------------------------
   11. Logo - Wortbildmarke
   Signet + „NICERU“ in Manrope ExtraBold, Versalien, rechts vom Signet.
   Signethöhe ≈ 1,6 × Versalhöhe (Manrope-Versalhöhe = 0,72 em → Schriftgröße
   = Signethöhe / 1,152), Abstand ½ Signetbreite, Schutzzone ¼ Signetbreite.
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--logo-size) / 2);
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo__signet {
  width: var(--logo-size);
  height: var(--logo-size);
  flex: none;
}
.logo__word {
  font-family: var(--font-sans);
  font-size: calc(var(--logo-size) / 1.152);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Header & Footer
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 72px;
}

.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav__link {
  position: relative;
  color: var(--ink-muted);
  font-weight: var(--fw-medium);
  text-decoration: none;
  padding-block: var(--space-2);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--primary); text-decoration: none; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-footer {
  padding-block: var(--space-16) var(--space-8);
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--ink-muted);
}
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. Markenfläche mit Verlauf - höchstens eine pro Seite
   Markenmoment, keine Dekoration: Titel, Cover, einzelne Key-Visuals.
   Nie in Buttons, Karten oder Hintergründen der Oberfläche.
   Text darauf nur weiß, ab 24px, in der dunkleren Hälfte (rechts unten).
   Kein Signet auf dem Markenverlauf.
   -------------------------------------------------------------------------- */
.brand-panel {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   14. Markenmotiv - die Diagonale: Bänder mit runden Enden (aus dem Signet)
   45° wie die Signet-Striche. Nur dekorativ im Hero, max. 3 Bänder,
   aria-hidden="true", nie hinter Fließtext. Eine Gruppe .niceru-bands zählt
   als die eine Verlaufsfläche der Seite. Sky-Bänder nur schmal und sparsam.
   Der Verlauf läuft entlang des gedrehten Bands (90° im Band = 135° am Bildschirm).
   -------------------------------------------------------------------------- */
.niceru-bands {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.niceru-band {
  position: absolute;
  width: 140%;
  height: clamp(64px, 9vw, 144px);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #70c3f6 0%, #4468cc 50%, #1714a4 100%);
  transform: rotate(45deg);
  transform-origin: center;
}
.niceru-band--navy { background: var(--navy-700); }  /* Signet-Tief */
.niceru-band--sky  { background: var(--sky-500); }
.has-bands { position: relative; isolation: isolate; }
.has-bands > :not(.niceru-bands) { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   15. Barrierefreiheit & Bewegung
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
