

:root {
  /* colour — light (only theme for this concept) */
  --paper: #F4F3EE;          /* page background */
  --paper-2: #ECEAE4;        /* alternating section tint */
  --surface: #FFFFFF;        /* panels, map, cards */
  --ink: #15191E;            /* primary text, strong rules */
  --ink-muted: #4A525B;      /* secondary text  (7.1:1 on paper) */
  --rule: #CFCBC0;           /* hairlines (decorative) */
  --rule-strong: #807A6E;    /* control borders (≥3:1) */
  --signal: #176F5B;         /* = logo green; links, data marks, primary CTA (5.5:1 on paper) */
  --signal-ink: #0F5546;     /* hover / pressed */
  --signal-tint: #E1ECE6;    /* active row highlight */
  --on-signal: #FFFFFF;
  --alert: #B42318;          /* Notruf 112 only (5.9:1 on paper) */
  --night: #121619;          /* instrument band + footer */
  --night-line: #2B3238;
  --night-text: #ECEAE3;
  --night-muted: #A9B0B6;    /* 8.3:1 on night */
  --night-signal: #7FD1B6;   /* 10.1:1 on night */
  --focus: #15191E;

  /* type */
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-label: 0.875rem;      /* 14 */
  --fs-small: 0.9375rem;     /* 15 */
  --fs-body: 1.0625rem;      /* 17 → 18 on desktop */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h1: clamp(2.125rem, 1.05rem + 4.3vw, 4.875rem);

  /* space — 8px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-pad: clamp(56px, 6vw, 88px);
  --col-gap: clamp(16px, 2vw, 32px);
  --header-h: 72px;

  --radius: 2px;
  --dur: 160ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; text-wrap: balance; hyphens: manual; }
h3, h4 { hyphens: auto; -webkit-hyphens: auto; }
a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--signal-ink); text-decoration-thickness: 2px; }
strong { font-weight: 600; }
address { font-style: normal; }
time { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: var(--s-4); top: -120px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 600 1.0625rem/1.2 var(--font-sans);
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { background: var(--signal-ink); color: var(--on-signal); }
.btn-primary:active { background: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--signal-ink); color: var(--on-signal); }
.btn-ghost { background: transparent; color: var(--signal); text-decoration: underline; text-underline-offset: 0.2em; padding-inline: var(--s-3); }
.btn-ghost:hover { color: var(--signal-ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.btn .i { width: 20px; height: 20px; }

.more {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  font-weight: 600; color: var(--signal);
}
.more .i, .linklist .i, .ind-arrow, .reg-more .i { transition: transform var(--dur) var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .more:hover .i, .linklist a:hover .i, .reg-more:hover .i, .ind:hover .ind-arrow { transform: translateX(3px); }
}

.mono-tag, .fig-no, .sec-no {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-in { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3) var(--s-5); min-height: var(--header-h); padding-block: var(--s-2); position: relative; }
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 48px; width: auto; }
.brand-text { font-size: 0.8125rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.005em; white-space: nowrap; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); width: 100%; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 1rem;
  color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav-list a:hover { color: var(--signal-ink); border-bottom-color: var(--signal); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 14px;
  font: 600 1rem/1 var(--font-sans); color: var(--ink);
  background: transparent; border: 2px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle:hover { background: var(--ink); color: var(--paper); }

/* JS-enhanced mobile menu (without JS the nav simply wraps under the logo) */
@media (max-width: 1179px) {
  .js .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: var(--s-2) var(--gutter) var(--s-5);
    box-shadow: 0 24px 24px -24px rgba(21, 25, 30, 0.35);
  }
  .js .nav.is-open { display: block; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { min-height: 56px; width: 100%; font-size: 1.125rem; border-bottom: 1px solid var(--rule); }
  .js .nav-cta { margin-top: var(--s-5); width: 100%; min-height: 52px; }
}
@media (min-width: 1280px) { .hero-index { grid-column: 9 / span 4; } }
@media (min-width: 1180px) {
  :root { --header-h: 84px; }
  .header-in { flex-wrap: nowrap; }
  .brand-logo { height: 58px; }
  .brand-text { font-size: 0.875rem; }
  .nav { width: auto; flex-wrap: nowrap; gap: var(--s-6); }
  .nav-list { flex-wrap: nowrap; gap: 26px; }
  .nav-toggle, .nav-toggle[hidden] { display: none !important; }
}

/* ---------- section scaffold (Swiss 12-col) ---------- */
.sec { padding-block: var(--sec-pad); }
.sec-tint { background: var(--paper-2); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4) var(--col-gap); }
.sec-grid::before { content: ""; display: block; height: 2px; background: var(--ink); grid-column: 1 / -1; margin-bottom: var(--s-2); }
.sec-label {
  display: flex; align-items: baseline; gap: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  color: var(--ink-muted); letter-spacing: 0.02em;
}
.sec-no { color: var(--signal); font-size: var(--fs-label); }
.sec-body { min-width: 0; }
.sec-body > h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; max-width: 24ch; }
.intro { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.55; max-width: 62ch; color: var(--ink); }
@media (min-width: 960px) {
  body { font-size: 1.125rem; }
  .sec-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sec-label { grid-column: 1 / span 3; padding-top: 0.6em; }
  .sec-body { grid-column: 4 / span 9; }
}

/* ---------- figures ---------- */
.fig figcaption, .scale figcaption, .map figcaption {
  display: flex; gap: var(--s-3); align-items: baseline;
  margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.45;
}
.fig-no { color: var(--ink); font-size: var(--fs-label); white-space: nowrap; }
.fig-photo img { width: 100%; border: 1px solid var(--rule); filter: saturate(0.4) contrast(1.04); }
.fig-wide { margin-top: var(--s-6); }
.fig-wide img { aspect-ratio: 5 / 2; object-fit: cover; object-position: 50% 28%; }
@media (max-width: 719px) { .fig-wide img { aspect-ratio: 16 / 10; object-position: 40% 30%; } }
.fig-q { margin-top: var(--s-6); }
.fig-q img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(32px, 5vw, 72px); }
.hero-head { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--col-gap); }
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; color: var(--ink-muted);
  letter-spacing: 0.01em;
}
.eyebrow-dot { width: 10px; height: 10px; background: var(--signal); flex: none; }
.hero h1 {
  margin-top: var(--s-5);
  font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.025em; font-weight: 600;
  max-width: 21ch;
}
@media (max-width: 719px) { .hero h1 { hyphens: auto; -webkit-hyphens: auto; } }
.h1-a, .h1-b { display: block; }
.h1-b { color: var(--signal); }
.lead { margin-top: 0; font-size: var(--fs-lead); line-height: 1.55; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: block; margin-top: var(--s-7); padding-top: var(--s-3); border-top: 1px solid var(--rule); max-width: 40rem; }
  .toc-title { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; color: var(--ink-muted); }
  .toc-list { list-style: none; margin-top: var(--s-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
  .toc-list a { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; border-bottom: 1px solid var(--rule); }
  .toc-list .n { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--signal); }
  .toc-list a:hover { color: var(--signal-ink); border-bottom-color: var(--signal); }
}
@media (min-width: 1280px) { .toc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hero-index {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.panel-head { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.panel-head .mono-tag { color: var(--signal); font-size: var(--fs-label); }
.index-list {
  list-style: none; margin-top: var(--s-4);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4);
  border-top: 1px solid var(--rule);
}
.index-list a {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding-block: 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; line-height: 1.25;
}
@media (min-width: 640px) and (max-width: 1023px) { .index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.index-list .n { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); min-width: 2.2ch; }
.index-list a:hover { color: var(--signal-ink); }
.index-list a:hover .n { color: var(--signal); }
.index-note {
  display: flex; gap: var(--s-2); align-items: flex-start;
  margin-top: var(--s-4); font-size: var(--fs-small); line-height: 1.45; color: var(--ink);
}
.index-note .i { color: var(--alert); margin-top: 2px; width: 18px; height: 18px; }

.facts { margin-top: clamp(48px, 6vw, 80px); border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.facts-title { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; color: var(--ink-muted); letter-spacing: 0.02em; }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--s-3); }
.fact { padding: var(--s-3) 0 var(--s-4); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; }
.fact dt { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-muted); padding-top: 0.2em; }
.fact dd { font-weight: 500; line-height: 1.4; }
@media (min-width: 720px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; row-gap: var(--s-6); }
  .hero-head { grid-column: 1 / -1; }
  .hero h1 { max-width: none; }
  .hero-main { grid-column: 1 / span 7; padding-top: var(--s-2); }
  .hero-index { grid-column: 8 / span 5; }
  .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hero + .sec { padding-top: clamp(40px, 5vw, 72px); }
/* short laptop windows (e.g. 1430×717): keep H1, lead and CTAs inside the first screen */
@media (min-width: 1024px) and (max-height: 800px) {
  .hero { padding-top: 28px; }
  .hero h1 { margin-top: var(--s-4); font-size: clamp(2.5rem, 1rem + 3.6vw, 4rem); }
  .hero-grid { row-gap: var(--s-5); }
  .lead { font-size: 1.1875rem; }
  .cta-row { margin-top: var(--s-5); }
}

/* ---------- 01 definition ---------- */
.def-text { margin-top: var(--s-5); max-width: 46rem; }
.def-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-7); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--rule); }
.def {
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); line-height: 1.5; letter-spacing: -0.005em;
  padding-left: var(--s-5); border-left: 4px solid var(--signal);
}
.def-text .more { margin-top: var(--s-4); margin-left: var(--s-5); }
@media (min-width: 1100px) {
  .def-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.distinct { min-width: 0; }
.distinct h3 { font-size: var(--fs-h3); }
.scale { margin-top: var(--s-5); }
.scale-track {
  position: relative; height: 64px;
  border-bottom: 2px solid var(--ink); border-right: 1px solid var(--ink);
  background:
    linear-gradient(to right, var(--ink) 1px, transparent 1px) 0 100% / 25% 22px repeat-x,
    linear-gradient(to right, var(--rule-strong) 1px, transparent 1px) 0 100% / 5% 10px repeat-x;
}
.scale-normo { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink-muted); }
.scale-band {
  position: absolute; left: 25%; right: 0; top: 6px; bottom: 26px;
  background: var(--signal); color: var(--on-signal);
  display: flex; align-items: center; padding-left: var(--s-3);
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label);
}
.scale-ticks { list-style: none; position: relative; height: 28px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); }
.scale-ticks li { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.scale-ticks .t-normo { left: 0; transform: none; }
.scale-ticks .t-15 { left: 25%; color: var(--ink); font-weight: 500; }
.scale-ticks .t-20 { left: 50%; }
.scale-ticks .t-25 { left: 75%; }
.scale-ticks .t-30 { left: 100%; transform: translateX(-100%); color: var(--ink); font-weight: 500; }
@media (max-width: 559px) { .scale-ticks .unit { display: none; } }

.vs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.vs-col { padding-top: var(--s-4); border-top: 4px solid var(--signal); }
.vs-no { border-top-color: var(--ink-muted); border-top-style: dashed; }
.vs-tag { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 1.0625rem; margin-bottom: var(--s-2); }
.vs-yes .vs-tag .i { color: var(--signal); stroke-width: 2.5; }
.vs-no .vs-tag .i { color: var(--ink-muted); stroke-width: 2.5; }
.vs-col p:not(.vs-tag) { max-width: 46ch; }
@media (min-width: 720px) { .vs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); } }

/* ---------- 02 routes ---------- */
.routes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-6); }
.route { display: flex; flex-direction: column; }
.route-key { font-family: var(--font-mono); font-size: 2rem; line-height: 1; color: var(--signal); font-weight: 500; }
.route h3 { margin-top: var(--s-3); font-size: 1.375rem; }
.route > p:not(.route-key) { margin-top: var(--s-3); color: var(--ink-muted); }
.linklist { list-style: none; margin-top: var(--s-4); }
.route .linklist { margin-top: auto; padding-top: var(--s-4); }
.linklist li { border-top: 1px solid var(--rule); }
.linklist li:last-child { border-bottom: 1px solid var(--rule); }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 48px; padding-block: 6px;
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.linklist a .i { color: var(--signal); width: 18px; height: 18px; }
.linklist a:hover { color: var(--signal-ink); }
.linklist-inline { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }
.linklist-inline li, .linklist-inline li:last-child { border: 0; }
.linklist-inline a { justify-content: flex-start; color: var(--signal); font-weight: 600; }
@media (min-width: 960px) {
  .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .route { padding-inline: var(--s-5); border-left: 1px solid var(--rule); }
  .route:first-child { padding-left: 0; border-left: 0; }
  .route:last-child { padding-right: 0; }
}

/* ---------- 03 register + map ---------- */
.register-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--col-gap); margin-top: var(--s-6); }
.map { background: var(--surface); border: 1px solid var(--rule); padding: var(--s-4); align-self: start; }
.map-svg { display: block; width: 100%; height: auto; max-height: 62vh; margin-inline: auto; }
.grat path { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grat-l text { font: 500 14px var(--font-mono); fill: var(--ink-muted); }
.de { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pin circle { fill: var(--signal); stroke: var(--surface); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform var(--dur) var(--ease-out), fill var(--dur) var(--ease-out); }
.pin text { font: 500 16px var(--font-mono); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.js .pin { cursor: pointer; }
.pin.is-active circle { fill: var(--ink); transform: scale(1.45); }
.pin.is-active text { fill: var(--signal-ink); font-weight: 600; }
@media (max-width: 639px) {
  .pin text { font-size: 23px; stroke-width: 6px; }
  .grat-l { display: none; }
  .map { padding: var(--s-3); }
}

.reg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-4); }
.reg-tools[hidden] { display: none; }
.reg-status { flex-basis: 100%; font-size: var(--fs-small); font-weight: 500; min-height: 0; }
.reg-status:empty { display: none; }
.reg-status.is-error { color: var(--alert); }
.reg-hint { flex-basis: 100%; font-size: var(--fs-label); color: var(--ink-muted); }
#geo-btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }

.reg-list { list-style: none; border-top: 2px solid var(--ink); }
.reg-item {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 var(--s-3);
  padding: var(--s-5) var(--s-3);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.reg-item.is-active, .reg-item:target { background: var(--signal-tint); box-shadow: inset 4px 0 0 var(--signal); }
.reg-num { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--signal); font-weight: 500; padding-top: 0.45em; }
.reg-city { font-size: 1.375rem; letter-spacing: -0.01em; }
.reg-land { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-muted); margin-top: 2px; }
.reg-dist { color: var(--signal-ink); font-weight: 500; }
.reg-dist:not(:empty)::before { content: " · "; color: var(--ink-muted); font-weight: 400; }
.reg-name { margin-top: var(--s-3); font-weight: 500; line-height: 1.4; }
.reg-addr { color: var(--ink-muted); line-height: 1.45; margin-top: 2px; }
.reg-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); }
.reg-tel {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 14px;
  font: 500 1rem/1 var(--font-mono); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.reg-tel .i { color: var(--signal); width: 18px; height: 18px; }
.reg-tel:hover { border-color: var(--ink); color: var(--ink); }
.reg-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; white-space: nowrap; }
.reg-more .i { width: 18px; height: 18px; }
.register > .more { margin-top: var(--s-4); }
@media (min-width: 720px) {
  .reg-item { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .reg-actions { grid-column: 3; grid-row: 1; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: var(--s-1); margin-top: 0; }
}
@media (min-width: 1024px) {
  .register-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .map { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 24px); }
  .register { grid-column: 6 / span 7; }
  .map-svg { max-height: calc(100vh - var(--header-h) - 140px); }
}

/* ---------- 04 indications ---------- */
.ind-list { list-style: none; margin-top: var(--s-6); border-top: 2px solid var(--ink); }
.ind {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3);
  align-items: baseline;
  padding: var(--s-5) var(--s-3);
  border-bottom: 1px solid var(--rule);
  transition: background-color var(--dur) var(--ease-out);
}
.ind-no { grid-column: 1; grid-row: 1; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--signal); font-weight: 500; }
.ind h3 { grid-column: 1; grid-row: 2; font-size: var(--fs-h3); line-height: 1.3; }
.ind h3 a { color: var(--ink); text-decoration: none; }
.ind h3 a::after { content: ""; position: absolute; inset: 0; }
.ind h3 a:focus-visible { outline: none; }
.ind h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.ind p { grid-column: 1; grid-row: 3; color: var(--ink-muted); }
.ind-arrow { grid-column: 2; grid-row: 2; align-self: center; color: var(--signal); width: 22px; height: 22px; }
.ind:hover { background: var(--surface); }
.ind:hover h3 a { color: var(--signal-ink); }
@media (min-width: 1024px) {
  .ind { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr) 2rem; align-items: baseline; }
  .ind h3 { grid-column: 2; grid-row: 1; }
  .ind p { grid-column: 3; grid-row: 1; }
  .ind-arrow { grid-column: 4; grid-row: 1; }
}
.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center;
  margin-top: var(--s-5); padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--alert);
}
.notice-num { font-family: var(--font-mono); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 500; line-height: 1; color: var(--alert); letter-spacing: -0.02em; }
.notice-text { font-size: 1.0625rem; line-height: 1.5; max-width: 60ch; }
.notice-text strong { font-weight: 500; }

/* ---------- 05 night band: Ablauf ---------- */
.sec-night { background: var(--night); color: var(--night-text); --focus: var(--night-signal); }
.sec-night .sec-grid::before { background: var(--night-text); }
.sec-night .sec-label { color: var(--night-muted); }
.sec-night .sec-no { color: var(--night-signal); }
.sec-night .intro { color: var(--night-muted); }
.curve { margin-top: var(--s-7); }
.curve-svg { display: block; width: 100%; height: auto; overflow: visible; }
.curve-grid path { stroke: var(--night-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve-base { stroke: var(--night-muted); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.curve-band { stroke: var(--night-signal); stroke-width: 1.5; stroke-dasharray: 2 6; opacity: 0.6; vector-effect: non-scaling-stroke; }
.curve-ax { font: 500 15px var(--font-mono); fill: var(--night-muted); }
.curve-line { fill: none; stroke: var(--night-signal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.curve-pt circle { fill: var(--night); stroke: var(--night-signal); stroke-width: 3; }
.curve-pt text { font: 600 17px var(--font-mono); fill: var(--night-text); text-anchor: middle; }
@media (max-width: 719px) {
  .curve-ax, .curve-pt text { display: none; }
  .curve-pt circle { r: 22px; stroke-width: 5; }
  .curve-line { stroke-width: 7; }
}
.steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--s-5); }
.step { position: relative; padding: var(--s-4) 0 var(--s-4) 3.25rem; border-top: 1px solid var(--night-line); }
.step-no {
  position: absolute; left: 0; top: var(--s-4);
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 2px solid var(--night-signal); border-radius: 50%;
  font: 600 1rem/1 var(--font-mono); color: var(--night-text);
}
.step h3 { font-size: 1.1875rem; line-height: 1.3; hyphens: manual; }
.step p { margin-top: var(--s-2); color: var(--night-muted); max-width: 34ch; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding: var(--s-4) var(--s-5) 0 var(--s-4); border-top: 0; border-left: 1px solid var(--night-line); }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step-no { position: static; margin-bottom: var(--s-3); width: 2rem; height: 2rem; font-size: 0.9375rem; }
}
.ablauf-figs {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-5);
  margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--night-line);
}
.ablauf-figs img { width: 100%; height: auto; object-fit: cover; }
.fig-a img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
.fig-b img { aspect-ratio: 16 / 10; object-position: 30% 50%; }
.fig-c img { aspect-ratio: 16 / 10; object-position: 45% 50%; }
.ablauf-links { margin-top: 0; }
.sec-night .fig-photo img { border-color: var(--night-line); }
.sec-night figcaption { color: var(--night-muted); }
.sec-night .fig-no { color: var(--night-text); }
.linklist-night li { border-color: var(--night-line) !important; }
.linklist-night a { color: var(--night-text); min-height: 56px; font-size: 1.0625rem; }
.linklist-night a .i { color: var(--night-signal); }
.linklist-night a:hover { color: var(--night-signal); }
@media (min-width: 720px) and (max-width: 1099px) {
  .ablauf-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .fig-a img, .fig-b img, .fig-c img { aspect-ratio: 4 / 3; }
}
@media (min-width: 1100px) {
  /* equal image heights: widths 3 : 6.4 : 6.4 with ratios 3/4, 16/10, 16/10 */
  .ablauf-figs { grid-template-columns: minmax(0, 3fr) minmax(0, 6.4fr) minmax(0, 6.4fr); align-items: start; }
  .fig-a img { aspect-ratio: 3 / 4; }
  .ablauf-links { grid-column: 1 / -1; max-width: 46rem; }
}

/* ---------- 06 quality ---------- */
.q-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-8); margin-top: var(--s-5); }
.q-text > p { font-size: var(--fs-lead); line-height: 1.6; max-width: 62ch; }
.q-text .linklist-inline { margin-top: var(--s-4); }
.bignum { font-size: clamp(4rem, 2.6rem + 5vw, 7.5rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.045em; color: var(--signal); font-variant-numeric: tabular-nums; }
.bignum-cap { margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-muted); max-width: 32ch; }
.q-list-title { margin-top: var(--s-6); font-size: var(--fs-h3); }
.checks { list-style: none; margin-top: var(--s-3); }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks .i { color: var(--signal); stroke-width: 2.5; width: 22px; height: 22px; margin-top: 2px; }
@media (min-width: 1100px) { .q-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- 07 FAQ ---------- */
.faq { margin-top: var(--s-6); border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 60px; padding: var(--s-4) 0;
  font-size: 1.1875rem; font-weight: 600; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--rule-strong); border-radius: 50%;
  font: 500 1.25rem/1 var(--font-mono); color: var(--signal);
}
.faq details[open] summary::after { content: "−"; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq summary:hover { color: var(--signal-ink); }
.faq details p { padding: 0 0 var(--s-5); max-width: 68ch; }

/* ---------- 08 news ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--s-8); margin-top: var(--s-6); }
.col-title { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; color: var(--ink-muted); letter-spacing: 0.02em; padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.news-item { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.date { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-muted); }
.news-item h4 { margin-top: var(--s-2); font-size: var(--fs-h3); line-height: 1.3; }
.news-item h4 a { color: var(--ink); text-decoration: none; }
.news-item h4 a:hover { color: var(--signal-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.news-item > p:not(.date):not(.source) { margin-top: var(--s-2); color: var(--ink-muted); max-width: 65ch; }
.source { margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-muted); }
.source a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 500; }
.source .i { width: 15px; height: 15px; }
.news > .more, .events > .more { margin-top: var(--s-3); }
.event-list { list-style: none; }
.event { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.event .date { color: var(--signal); font-weight: 500; font-size: var(--fs-small); }
.event-title { margin-top: 2px; font-weight: 600; line-height: 1.4; }
.event-place { color: var(--ink-muted); font-size: var(--fs-small); }
@media (min-width: 960px) { .news-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- 09 contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-7); margin-top: var(--s-5); align-items: start; }
.contact-lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 44ch; margin-bottom: var(--s-5); }
.contact-card { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--signal); padding: var(--s-5); }
.contact-card p + p { margin-top: var(--s-3); }
.contact-org { font-weight: 600; }
.contact-links { display: flex; flex-direction: column; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 1.0625rem/1.2 var(--font-mono); }
.contact-links .i { width: 18px; height: 18px; }
.contact-112 { padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--fs-small); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding: var(--s-8) 0 var(--s-6); --focus: var(--night-signal); }
.site-footer a { color: var(--night-text); }
.site-footer a:hover { color: var(--night-signal); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--col-gap); }
.footer-grid::before { content: ""; grid-column: 1 / -1; height: 2px; background: var(--night-text); margin-bottom: calc(var(--s-1) - var(--s-6) + var(--s-5)); }
.footer-logo { width: 94px; height: 72px; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: var(--s-4); font-size: var(--fs-small); line-height: 1.55; color: var(--night-muted); }
.footer-brand p a { display: inline-block; padding-block: 6px; font-family: var(--font-mono); }
.footer-nav ul, .footer-legal { list-style: none; }
.footer-nav a, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.footer-nav a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-meta { font-size: var(--fs-small); color: var(--night-muted); }
.footer-meta p { margin-top: var(--s-2); }
.footer-legal { display: flex; gap: var(--s-5); margin-bottom: var(--s-2); }
.stand { font-family: var(--font-mono); font-size: var(--fs-label); }
.footer-credits { grid-column: 1 / -1; border-top: 1px solid var(--night-line); padding-top: var(--s-4); font-size: var(--fs-label); line-height: 1.5; color: var(--night-muted); }
.credits-title { font-family: var(--font-mono); font-weight: 500; color: var(--night-text); }
.credits-list { list-style: none; margin-top: var(--s-2); display: grid; gap: 2px; }
.credits-list a { color: var(--night-muted); text-decoration: underline; }
.credits-list a:hover { color: var(--night-signal); }
.credits-note { margin-top: var(--s-2); }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / span 5; }
  .footer-nav { grid-column: 6 / span 4; }
  .footer-meta { grid-column: 10 / span 3; }
}

/* ---------- small screens ---------- */
@media (max-width: 379px) {
  .brand-text { display: none; }
}
@media (max-width: 479px) {
  .brand-logo { height: 42px; }
  .brand-text { font-size: 0.75rem; }
  .cta-row .btn { width: 100%; }
  .notice { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .def { padding-left: var(--s-4); }
  .def-text .more { margin-left: var(--s-4); }
}

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

@media print {
  .site-header, .reg-tools, .nav-toggle { display: none !important; }
  .sec-night, .site-footer { background: none; color: #000; }
}
