/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { cursor: pointer; font: inherit; background: none; border: none; }

/* ── KfW Design Tokens (design-tokens v0.1.1) ──────────────────────────── */
:root {
  /* Blue scale */
  --kfw-900: #001022;
  --kfw-800: #001a35;
  --kfw-700: #00375b;
  --kfw-600: #005a8c;
  --kfw-500: #007abc;
  --kfw-400: #54b3e2;
  --kfw-100: #e9f5fb;

  /* Green scale */
  --kfw-g-acc: #b7f9aa;  /* headline green */
  --kfw-g-sft: #94eb90;
  --kfw-g-drk: #398357;

  /* Status */
  --kfw-red: #c80538;
  --kfw-yel: #eac80b;

  /* Data group colours */
  --c-hb: #60a5fa;  /* HZG / BzA  — bright blue   */
  --c-hg: #f59e0b;  /* HZG / gBzA — amber         */
  --c-bb: #34d399;  /* BEG / BzA  — emerald       */
  --c-bg: #a78bfa;  /* BEG / gBzA — violet        */

  /* Surfaces & borders */
  --text:   rgba(255, 255, 255, 0.92);
  --muted:  rgba(255, 255, 255, 0.55);
  --faint:  rgba(255, 255, 255, 0.40);
  --surf:   rgba(255, 255, 255, 0.055);
  --surf-h: rgba(255, 255, 255, 0.09);
  --bdr:    rgba(255, 255, 255, 0.09);
  --bdr-b:  rgba(255, 255, 255, 0.18);

  /* Typography & shape */
  --font:   'Inter', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --r:      10px;
  --r-sm:   6px;
  --r-pill: 999px;

  /* Layout dimensions */
  --hdr-h: 56px;
  --ftr-h: 42px;
  --pan-w: 318px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  background: linear-gradient(145deg, var(--kfw-900) 0%, var(--kfw-800) 45%, var(--kfw-700) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soft crossfade on reload / navigation (Chromium View Transitions API).
   No fade-to-black: old and new page snapshots overlap briefly.
   Requires same-origin — works over http(s)://; file:// falls back to a hard cut. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

/* Subtle grain texture — rendered as a fixed SVG overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23f)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}
