/* bonn.biz — generated from tokens.json */
:root, [data-theme="light"] {
  --rhein: #1d5fa6; /* Primary brand blue (Rhein-Blau). Buttons, links, selected states. White text on it: 6.5:1. On Papier as text: 6.1:1. */
  --rhein-deep: #123f73; /* Deep blue. Headlines, utility bar, footer and CTA bands, focus ring. White text on it: 10.6:1. */
  --marine: #0b2545; /* Marine navy, the serious anchor. Headlines, utility bar, footer and the dark end of the data ramp. White on it: 15.4:1. On paper 14.5:1. */
  --rhein-tint: #e6f0fa; /* Soft blue surface for chips and info bands. Text on it: ink 13.3:1, rhein 5.6:1. */
  --kirsch: #b8386b; /* Cherry-blossom accent, slightly muted for a more sober tone. Warmth and local identity, used sparingly (no more than about 5% of a page). Fills with white text (5.5:1) or decoration. */
  --kirsch-deep: #9b2a55; /* Text shade of the accent. On kirsch-tint 6.1:1, on paper 6.9:1. */
  --kirsch-tint: #fbe3ec; /* Soft blossom surface for tags and chips. Pair with kirsch-deep text. */
  --honig: #f2b33d; /* Honey highlight. The call-to-action fill on dark bands, always with ink text (8.2:1). Never as text on light grounds. */
  --honig-deep: #7a4b00; /* Text shade of honey. On honig-tint 6.6:1. */
  --honig-tint: #fdf0d2; /* Soft honey surface for notices and chips. Pair with honig-deep text. */
  --aue: #2a7f62; /* Meadow green. Climate, nature, positive confirmations. White text on it: 4.9:1. */
  --aue-deep: #1f6b50; /* Text shade of green. On aue-tint 5.5:1, on paper 6.1:1. */
  --aue-tint: #dff1e9; /* Soft green surface for confirmations. Pair with aue-deep text. */
  --paper: #fbf8f3; /* Default page background. Warm instead of pure white. Ink on it: 14.5:1. */
  --sand: #f1eadf; /* Alternating section background and neutral tile fill. Ink on it: 12.8:1. */
  --white: #ffffff; /* Cards, inputs and text on dark fills. */
  --line: #e3dacb; /* Hairline borders of cards and dividers. Decorative only, not for control borders. */
  --ink: #14263b; /* Body and heading text. Softer than pure black. 14.5:1 on paper. */
  --slate: #4a5a6b; /* Secondary text, captions and input borders. 6.7:1 on paper, 5.9:1 on sand. */
  --data-1: #e6f0fa; /* Data ramp, lowest step. Chart and budget-map fill. Label in ink. */
  --data-2: #b7d3ee; /* Data ramp, step 2. Label in ink (9.9:1). */
  --data-3: #6fa3d6; /* Data ramp, step 3. Label in ink (5.8:1). */
  --data-4: #2f70b5; /* Data ramp, step 4. Label in white (5.1:1). */
  --data-5: #0b2545; /* Data ramp, highest step. Label in white (15.4:1). */
  --text-heading: var(--marine); /* Semantic: headlines and the page title. Navy gives them authority. */
  --bg-dark: var(--marine); /* Semantic: utility bar, footer and CTA bands. White text. */
  --bg-page: var(--paper); /* Semantic: page background. */
  --bg-section: var(--sand); /* Semantic: alternating section background. */
  --bg-card: var(--white); /* Semantic: card and input background. */
  --bg-info: var(--rhein-tint); /* Semantic: informational band or chip. */
  --text-primary: var(--ink); /* Semantic: default text. */
  --text-secondary: var(--slate); /* Semantic: supporting text and captions. */
  --text-link: var(--rhein); /* Semantic: links on light grounds. */
  --text-on-dark: var(--white); /* Semantic: text on rhein, rhein-deep, kirsch, aue. */
  --action-primary: var(--rhein); /* Semantic: primary button fill. White label. */
  --action-highlight: var(--honig); /* Semantic: highlighted call-to-action on dark bands. Ink label. */
  --border-control: var(--slate); /* Semantic: borders of inputs and outlined buttons (3:1 or more). */
  --focus-ring: var(--marine); /* Semantic: 3px focus outline with 2px offset. */
  --status-success: var(--aue-deep); /* Semantic: success text. Always with an icon or label, never colour alone. */
  --status-notice: var(--honig-deep); /* Semantic: notice text. Always with an icon or label, never colour alone. */
  --shadow-none: none; /* Default for cards, tiles, inputs, buttons and the header. Use the 1px line border instead. */
  --shadow-raised: 0 2px 6px rgba(11, 37, 69, 0.10); /* Hover and keyboard-focus lift of clickable cards, and the sticky header once the page scrolls. Pair with a rhein border on hover. */
  --shadow-overlay: 0 12px 32px rgba(11, 37, 69, 0.18); /* Things that float over the page: dropdown menus, dialogs, date pickers, toasts. Dialogs also get a marine scrim at 40% opacity. */
}
:root {
  --space-1: 4px; /* Tight gaps inside chips. */
  --space-2: 8px; /* Gaps between small controls. */
  --space-3: 12px; /* Gaps in text stacks. */
  --space-4: 16px; /* Standard gap and input padding. */
  --space-5: 24px; /* Gaps between cards. */
  --space-6: 32px; /* Card padding, section inner gaps. */
  --space-7: 48px; /* Gaps between large blocks. */
  --space-8: 72px; /* Vertical padding of page sections. */
  --radius-sm: 10px; /* Small tiles and treemap cells. */
  --radius-md: 12px; /* Buttons and inputs. Slightly tighter than before for a more composed look. */
  --radius-lg: 16px; /* Cards and large panels. */
  --radius-pill: 999px; /* Chips and tags. */
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --text-display: 700 56px/60px var(--font-display); /* Hero headline in Playfair Display Bold. Display sizes only (32px and up). Marine. */
  --text-h2: 700 38px/44px var(--font-display); /* Section headings. Marine. */
  --text-h3: 700 24px/30px var(--font-sans); /* Card titles. Set in the text face, bold, because the display serif has hairlines that get faint below about 32px. Ink. */
  --text-body-lg: 400 21px/32px var(--font-sans); /* Introductions below headlines. */
  --text-body: 400 18px/28px var(--font-sans); /* Default text. 18px is the minimum for running text. */
  --text-label: 700 18px/24px var(--font-sans); /* Buttons, nav links and form labels. */
  --text-small: 400 16px/24px var(--font-sans); /* Chips, legends and helper text. */
  --text-caption: 400 15px/22px var(--font-sans); /* Sources and footnotes. Smallest size allowed. */
}
.display {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 60px;
  font-weight: 700;
  letter-spacing: 0;
}
.h2 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: 0;
}
.h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: 0;
}
.body-lg {
  font-family: var(--font-sans);
  font-size: 21px;
  line-height: 32px;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

/* SPDX-FileCopyrightText: © 2026 Christoph Görn <goern@b4mad.net> */
/* SPDX-License-Identifier: AGPL-3.0-or-later */

/* wechsler's shared theme: fonts, the extra tokens bonn.biz does not define (dark
 * theme, status colours, pixel map, base map), and the page frame (notice bar,
 * header, footer, steps) that apps/web and apps/core both draw.
 *
 * Load order: tokens.css (copied from bonn.biz, never edited here), then this file,
 * then the app's own stylesheet. The apps' CSS reads custom properties only; no
 * colour literal outside this file and tokens.css. design/README.md says where
 * everything comes from; scripts/check_contrast.py measures the pairs below.
 *
 * The dark theme is wechsler's own: bonn.biz defines light only. It keeps the
 * brand hues (marine ground, rhein blue, honig highlight) and lifts the text
 * tones. Status red and the pixel colours are wechsler's too (bonn.biz has no red). */

/* ---- Fonts: self-hosted Latin subsets (SIL OFL 1.1, LICENSES/OFL-1.1.txt) ---- */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/atkinson-hyperlegible-latin-400-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/atkinson-hyperlegible-latin-700-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: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/playfair-display-latin-700-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;
}

/* ---- Light theme: extra tokens ---- */
:root {
  color-scheme: light dark;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --on-action: var(--white); /* label on --action-primary */
  --rule: var(--marine); /* the 2px rules between sections */
  --accent: var(--honig); /* the one highlight: step numbers, the current page */
  --bg-bar: var(--marine); /* notice bar */
  --text-on-bar: var(--white);
  --focus-on-bar: var(--honig); /* focus ring on dark bars; the supplied marine ring is invisible there */
  --status-danger: #a1271d; /* text: failing, blocked. Always with a word. */
  --lane-result: var(--aue-deep); /* the rule and numeral of the "enriched" lane */

  /* Pixel map of /status/: clearly red, yellow, green, blue. Each square is a fill with a
     2px --px-edge border; light yellow stands out only through its dark border, so the
     edge is ink here (scripts/check_contrast.py checks that fill or edge reaches 3:1). */
  --px-ok: #2f8f3a;
  --px-failing: #d3302b;
  --px-warn: #f2b33d;
  --px-off: #2f70b5;
  --px-edge: var(--ink);

  /* Base map and outlines (apps/web). Quiet ground, the outlines carry the colour. */
  --map-bg: var(--sand);
  --map-land: var(--sand);
  --map-water: var(--data-2);
  --map-green: #d4e8dd;
  --map-building: #e3dacb;
  --map-road-minor: var(--white);
  --map-road-major: var(--white);
  --map-rail: #a99f8e;
  --map-fill: var(--rhein);
  --map-line: var(--rhein-deep);
  --map-sel: var(--kirsch);
  /* Bonn's Stadtbezirke and Ortsteile: the Bezirk line is the outline blue, the Ortsteil line a green
     that is told apart from it by hue, not only by width. */
  --map-bezirk: var(--rhein-deep);
  --map-ortsteil: #17695a;
}

/* ---- Dark theme ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0d1b2e;
    --bg-section: #112339;
    --bg-card: #142840;
    --bg-info: #183456;
    --bg-dark: #06111f;
    --text-primary: #e8edf3;
    --text-secondary: #b3c1d0;
    --text-heading: #f6f1e7;
    --text-link: #93c1f2;
    --text-on-dark: #ffffff;
    --action-primary: #93c1f2;
    --border-control: #8fa4ba;
    --line: #2a4260;
    --focus-ring: #f2b33d;
    --status-success: #6fd0a0;
    --status-notice: #f2b33d;
    --shadow-raised: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.55);

    --on-action: #0d1b2e;
    --rule: #6f86a0;
    --bg-bar: #06111f;
    --text-on-bar: #e8edf3;
    --status-danger: #ff9188;
    --lane-result: #6fd0a0;

    --px-ok: #3fbf6a;
    --px-failing: #f0605a;
    --px-warn: #f2b33d;
    --px-off: #5fa4f5;
    --px-edge: #0d1b2e;

    --map-bg: #0f2238;
    --map-land: #0f2238;
    --map-water: #1a416b;
    --map-green: #14392f;
    --map-building: #183049;
    --map-road-minor: #28455f;
    --map-road-major: #34567a;
    --map-rail: #4a6784;
    --map-fill: #6fa3d6;
    --map-line: #9cc8f5;
    --map-sel: #f2b33d;
    --map-bezirk: #9cc8f5;
    --map-ortsteil: #8fd6c4;
  }
}

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

html {
  font-size: 112.5%; /* 18px: the brand's smallest running text */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: var(--text-body);
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: var(--space-6) 0 var(--space-4);
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2rem);
  line-height: 1.2;
  margin: var(--space-7) 0 var(--space-3);
  padding-top: var(--space-4);
  border-top: 2px solid var(--rule);
}
/* The display serif has hairlines that go faint below about 32px: smaller headings use the text face. */
h3,
h4 {
  font: var(--text-h3);
  color: var(--text-heading);
  margin: var(--space-5) 0 var(--space-2);
}
h4 {
  font-size: 1.1rem;
  line-height: 1.4;
}

a {
  color: var(--text-link);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.muted {
  color: var(--text-secondary);
  font-size: 1rem;
}
.lede,
.lead {
  max-width: 48rem;
  font: var(--text-body-lg);
  color: var(--text-secondary);
}
.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---- Skip link, notice bar, header, footer ---- */
.skip {
  position: absolute;
  left: var(--space-4);
  top: -6rem;
  z-index: 20;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--focus-ring);
  border-radius: var(--radius-md);
  font: var(--text-label);
}
.skip:focus {
  top: var(--space-2);
}


header.site {
  background: var(--bg-page);
  border-bottom: 2px solid var(--rule);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-heading);
  text-decoration: none;
  font: 700 1.6rem/1 var(--font-display);
}
.brand svg {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
}
.brand .mark {
  display: inline-flex;
}
.brand .mark-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .brand .mark-light {
    display: none;
  }
  .brand .mark-dark {
    display: inline-flex;
  }
}
nav.main {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
}
nav.main a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  line-height: 28px;
  color: var(--text-primary);
  text-decoration: none;
  font: var(--text-label);
  border-bottom: 3px solid transparent;
}
nav.main a:hover {
  border-bottom-color: var(--line);
}
nav.main a[aria-current='page'] {
  border-bottom-color: var(--rule);
  background: var(--bg-section);
}

footer.site {
  margin-top: var(--space-8);
  border-top: 2px solid var(--rule);
  padding: var(--space-5) 0 var(--space-7);
  color: var(--text-secondary);
  font: var(--text-small);
}
footer.site p {
  margin: 0 0 var(--space-2);
}

/* ---- Numbered steps in a grid (after the rally-coach tour): 2px rule, big numeral ---- */
.steps {
  list-style: none;
  margin: var(--space-5) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  border-top: 2px solid var(--rule);
  padding-top: var(--space-3);
}
.steps > li::before {
  content: counter(step);
  display: inline-block;
  min-width: 2.4rem;
  margin-bottom: var(--space-2);
  padding: 0 var(--space-3);
  border-bottom: 4px solid var(--accent);
  font: 700 2rem/1.3 var(--font-display);
  color: var(--text-heading);
}
.steps h3 {
  margin-top: 0;
}
.steps p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
