/* KIPPPUNKT – Grundlagen des Design-Systems (Phase 0). Komponenten folgen in Phase 4. */

:root {
  /* Palette laut Konzept 10.2 */
  --ocean: #14365C;
  --forest: #2E6B50;
  --wheat: #C99A2E;
  --map-grey: #E8EDEB;
  --paper: #FBFCFB;
  --signal: #B3261E;

  /* Rollen */
  --bg: var(--map-grey);
  --surface: var(--paper);
  --text: var(--ocean);
  --text-muted: #3F5560;
  --border: #C9D3D0;
  --positive: var(--forest);
  --negative: var(--signal);
  --accent: var(--wheat);
  --focus: #1F6FB2;

  /* Klimastreifen: divergierende Skala */
  --stripe-cold: #08306B;
  --stripe-neutral: #F7F7F7;
  --stripe-hot: #67000D;
  --stripe-empty: #D5DCDA;

  --font-text: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-head: 'Bricolage Grotesque', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --radius: 10px;
  --wrap: 72rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1A25;
    --surface: #152434;
    --text: #E4EBE9;
    --text-muted: #A9BAC1;
    --border: #2B3F52;
    --positive: #6DB592;
    --negative: #F08A82;
    --accent: #E2B85A;
    --focus: #7FB4E8;
    --stripe-empty: #2B3A47;
  }
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 4vw + 1rem, 3rem);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: var(--ocean);
  color: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.lead {
  font-size: 1.2rem;
  max-width: 40rem;
}

.note {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Klimastreifen */
.stripes {
  display: flex;
  height: 4.5rem;
  margin: 2rem 0 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.stripe {
  flex: 1;
  background: var(--stripe-empty);
}

.stripe--demo-1 { background: #2B5C8A; }
.stripe--demo-2 { background: #6A9BC3; }
.stripe--demo-3 { background: #C6DBEF; }
.stripe--demo-4 { background: var(--stripe-neutral); }
.stripe--demo-5 { background: #FCBBA1; }
.stripe--demo-6 { background: #FB6A4A; }
.stripe--demo-7 { background: #CB181D; }

/* Systemprüfung */
.checks {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.check {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.check:first-child {
  border-top: 0;
}

.check__icon {
  font-weight: 700;
}

.check--ok .check__icon,
.check--ok .check__status {
  color: var(--positive);
}

.check--fehler .check__icon,
.check--fehler .check__status {
  color: var(--negative);
}

.check__status {
  font-weight: 700;
}

.check__hint {
  grid-column: 2 / -1;
  color: var(--text-muted);
}

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