/* buergertisch.org: one stylesheet, no web fonts, no scripts.
   Sizes are in rem so the page follows the browser's text size. */

:root {
  --bg: #fbfaf7;
  --surface: #f1efe8;
  --text: #1d1d1b;
  --muted: #4a4a45;
  --line: #d6d3c8;
  --accent: #0b5d4b;
  --accent-text: #ffffff;
  --accent-soft: #e2efe9;
  --focus: #b3470a;
  --pass: #0b5d4b;
  --fail: #8a2c0d;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131513;
    --surface: #1d201d;
    --text: #ecebe6;
    --muted: #c3c2bb;
    --line: #3a3d38;
    --accent: #86d4bd;
    --accent-text: #0d1f1a;
    --accent-soft: #1f3a32;
    --focus: #ffb37d;
    --pass: #86d4bd;
    --fail: #ffa585;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  hyphens: auto;
}

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
main { display: block; max-width: 62rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
main:focus { outline: none; }
.prose { max-width: 42rem; }

h1, h2, h3 { line-height: 1.25; margin: 2rem 0 0.75rem; }
h1 { font-size: 2.25rem; margin-top: 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
li + li { margin-top: 0.35rem; }

a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }
a:focus-visible, .button:focus-visible, main:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
.skip:focus { top: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { fill: var(--accent); flex: none; }
.brand-name { font-weight: 800; font-size: 1.3rem; }
.brand-place { color: var(--muted); font-size: 1.1rem; }
.lang-switch { font-weight: 600; }

.site-nav ul, .site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav li + li, .site-footer li + li { margin-top: 0; }
.site-nav { padding-bottom: 0.6rem; }
.site-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.footer-note { color: var(--muted); }

/* Lead block */
.lead { font-size: 1.3rem; max-width: 42rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin: 1.5rem 0; }
.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.4rem;
  border: 2px solid var(--accent);
}
.button:hover { text-decoration: underline; }

/* Key figures */
.figures {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}
.figures li { margin: 0; padding: 1rem; background: var(--surface); border-radius: 0.4rem; }
.figure-value { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--accent); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; max-width: 46rem; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 3.25rem;
  margin: 0 0 1.25rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.steps p { margin: 0; }

/* Cards: two stages, further reading */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.cards > li, .card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--bg);
}
.card h3, .cards h3 { margin-top: 0; }
.kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* Tables */
.table-wrap { overflow-x: auto; max-width: 46rem; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--text); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pass { color: var(--pass); font-weight: 700; }
.fail { color: var(--fail); font-weight: 700; }

/* Feature list with examples */
.features { list-style: none; padding: 0; max-width: 46rem; }
.features > li { margin: 0 0 1.25rem; padding-left: 1rem; border-left: 4px solid var(--accent-soft); }
.features strong { display: block; }
.example { color: var(--muted); margin: 0.2rem 0 0; }

.note {
  max-width: 42rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}

.placeholder {
  max-width: 42rem;
  padding: 1rem 1.25rem;
  border: 3px dashed var(--fail);
  font-weight: 700;
}

.timeline { list-style: none; padding: 0; max-width: 46rem; }
.timeline > li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; margin: 0 0 1rem; }
.timeline .year { font-weight: 800; color: var(--accent); }

.faq h2 { font-size: 1.3rem; }

.sources li { margin-bottom: 0.5rem; }

.next { margin-top: 2.5rem; font-weight: 700; }

@media (max-width: 30rem) {
  h1 { font-size: 1.85rem; }
  .lead { font-size: 1.2rem; }
  .timeline > li { grid-template-columns: 1fr; gap: 0; }
}

@media print {
  .skip, .site-nav, .lang-switch, .actions { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
  .site-footer { background: none; }
}
