/* ==========================================================================
   Hochrhein Bau · Ratgeber
   Extends site.css (same tokens, same grid, radius 0). Adds long-form reading,
   the topic mosaic, tools, charts, the regional maps and search.
   Hand-written, like site.css; nothing generates this file.
   ========================================================================== */

:root {
  --measure: 68ch;
  --side: 15.5rem;
  --e-display: cubic-bezier(.16, 1, .3, 1);
  --e-body: cubic-bezier(.25, .46, .45, .94);
  --e-ui: cubic-bezier(.4, 0, .2, 1);
  /* chart series, validated with the dataviz checker (light, surface #edefee) */
  --s1: #b8402a;
  --s2: #1f6fa0;
  --s3: #9a7b1c;
  --mark: color-mix(in srgb, var(--accent) 20%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root { --s1: #e2643f; --s2: #4a93c4; --s3: #b08c28; }
}

html { scrollbar-color: color-mix(in srgb, var(--ink) 38%, transparent) transparent; }
body.rg { font-variant-numeric: normal; }
input, select, textarea, button { font: inherit; color: inherit; caret-color: var(--accent); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: square; flex: none; }

/* --- reading progress ----------------------------------------------------- */
/* Echo of the wordmark rule: a hairline of red oxide that fills as you read. */
.rg-progress {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none;
}
.rg-progress span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--p, 0));
}

.btn-search { gap: 8px; }
.btn-search .ico { width: 16px; height: 16px; }
.topnav a[aria-current="page"]::after { transform: scaleX(1); }

/* --- breadcrumbs ---------------------------------------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none;
  font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ==========================================================================
   Search
   ========================================================================== */
.srch { position: relative; display: grid; gap: 10px; }
.srch-l { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); }
.srch-row { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink);
  transition: border-color .2s var(--e-ui); }
.srch-row:focus-within { border-color: var(--accent); }
.srch-row .ico { width: 22px; height: 22px; color: var(--ink-2); }
.srch input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; outline: 0;
  font-size: 1.15rem; letter-spacing: -.01em; }
.srch.is-big input { height: 68px; font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
.srch input::placeholder { color: color-mix(in srgb, var(--ink-2) 80%, transparent); }
.srch input::-webkit-search-cancel-button { filter: grayscale(1); }
.srch kbd { font-family: var(--f-mono); font-size: .75rem; padding: 2px 8px;
  border: 1px solid var(--line); color: var(--ink-2); }
.srch-row:focus-within kbd { display: none; }

.srch-res:empty { display: none; }
.srch-res { display: grid; gap: 0; }
.srch-res ol { list-style: none; margin: 0; padding: 0; }
.srch-res li + li { border-top: 1px solid var(--line-soft); }
.sr { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; }
.sr:hover .sr-t, .sr.is-sel .sr-t { color: var(--accent); }
.sr.is-sel { background: linear-gradient(to right, var(--paper-2), transparent 80%); }
.sr-r { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); }
.sr-t { font-size: 1.125rem; font-weight: 600; font-variation-settings: 'wdth' 102;
  letter-spacing: -.012em; line-height: 1.25; transition: color .15s linear; }
.sr-s { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.sr-h { color: var(--ink); font-weight: 500; }
mark { background: var(--mark); color: inherit; padding: 0 1px; }
.srch-meta { padding: 10px 0 0; font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.srch-empty { padding: 18px 0; color: var(--ink-2); }
.srch-empty a { color: var(--ink); }

.srch-page { max-width: 62rem; margin-inline: auto; padding: clamp(40px, 6vw, 88px) var(--gut) clamp(64px, 8vw, 120px); }
.srch-page h1 { margin: 18px 0 clamp(24px, 3vw, 40px); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-variation-settings: 'wdth' 104; letter-spacing: -.032em; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); background: transparent;
  font-size: .875rem; cursor: pointer; transition: background-color .15s linear, border-color .15s linear; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ==========================================================================
   Hub
   ========================================================================== */
.hub-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 110px);
  align-items: start; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(48px, 8vh, 110px) var(--gut) clamp(48px, 7vh, 90px);
}
.hub-hero h1 { font-size: clamp(2.5rem, min(6.4vw, 10vh), 5.9rem); font-variation-settings: 'wdth' 104;
  line-height: .93; letter-spacing: -.038em; max-width: 12ch; }
.hub-hero h1 span { display: block; color: var(--ink-2); font-weight: 400; }
.hub-hero .lead { margin: clamp(22px, 3vw, 34px) 0 clamp(30px, 4vw, 48px); color: var(--ink-2); max-width: 52ch; }

.hub-pop { padding-top: clamp(8px, 1.5vw, 22px); }
.hub-pop h2 { font-size: var(--t-h3); font-weight: 600; font-variation-settings: 'wdth' 104;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.hub-pop ol { list-style: none; margin: 0; padding: 0; }
.hub-pop li { border-bottom: 1px solid var(--line); }
.hub-pop a { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0; text-decoration: none; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.hub-pop a .ico { color: var(--ink-2); transition: transform .35s var(--e-display), color .2s linear; }
.hub-pop a:hover { color: var(--accent); }
.hub-pop a:hover .ico { transform: translateX(6px); color: var(--accent); }

.hub-band { position: relative; margin: 0; isolation: isolate; min-height: min(62vh, 620px);
  display: grid; align-content: end; padding: var(--gut); color: #f2f3f2; overflow: hidden; }
.hub-band picture, .hub-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hub-band::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(8 10 11 / .82), rgb(8 10 11 / .35) 45%, rgb(8 10 11 / .05) 80%); }
.hub-band figcaption { max-width: var(--wrap); margin-inline: auto; width: 100%; }
.hub-band p { max-width: 26ch; font-size: var(--t-h2); font-variation-settings: 'wdth' 103; font-weight: 500;
  line-height: 1.07; letter-spacing: -.026em; }
.hub-band span { display: block; margin-top: 18px; font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: #cfd3d2; }
.hub-band span a { color: inherit; }

.hub-sec { max-width: var(--wrap); margin-inline: auto; padding: clamp(64px, 9vw, 128px) var(--gut) 0; }
.hub-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 110px);
  align-items: end; margin-bottom: clamp(32px, 4.5vw, 64px); }
.hub-head h2 { font-size: var(--t-h2); font-variation-settings: 'wdth' 103; line-height: 1.02; letter-spacing: -.028em; }
.hub-head p { color: var(--ink-2); max-width: 46ch; }

/* topic mosaic: four rows of three with shifting widths, like the Gewerke grid */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.tile { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.t-a, .t-f, .t-g, .t-l { grid-column: span 5; }
.t-b, .t-e, .t-i, .t-j { grid-column: span 4; }
.t-c, .t-d, .t-h, .t-k { grid-column: span 3; }
.t-e { grid-column: span 5; } .t-f { grid-column: span 4; }
.t-i { grid-column: span 5; } .t-g { grid-column: span 4; }
.tile-link { position: relative; display: grid; align-content: end; min-height: clamp(15rem, 24vw, 23rem);
  padding: clamp(16px, 1.8vw, 26px); overflow: hidden; isolation: isolate; color: #f3f4f3; text-decoration: none;
  background: var(--ink); }
.tile-link picture, .tile-link img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile-link img { transition: transform 1.1s var(--e-display), filter .6s linear; }
.tile-link:hover img { transform: scale(1.045); }
.tile-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(8 10 11 / .86), rgb(8 10 11 / .28) 55%, rgb(8 10 11 / 0) 85%); }
.tile-txt { display: grid; gap: 8px; }
.tile-n { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: #d4d8d6; }
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); font-variation-settings: 'wdth' 104; letter-spacing: -.022em;
  line-height: 1.06; max-width: 16ch; }
.tile h3::after { content: ''; display: block; width: 100%; height: 2px; margin-top: 14px; background: var(--accent);
  transform-origin: left; transform: scaleX(.2); transition: transform .5s var(--e-display); }
.tile-link:hover h3::after { transform: scaleX(1); }
.tile-more { list-style: none; margin: 0; padding: 12px 0 0; font-size: .9375rem; }
.tile-more li { border-bottom: 1px solid var(--line-soft); }
.tile-more a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-2);
  transition: color .15s linear, translate .35s var(--e-display); }
.tile-more a:hover { color: var(--ink); translate: 6px 0; }
.tile-more li:last-child a { color: var(--ink); font-weight: 500; }

/* tools */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tools a { display: grid; grid-template-rows: auto auto 1fr; gap: 8px; height: 100%; padding: clamp(20px, 2vw, 30px);
  background: var(--paper); text-decoration: none; transition: background-color .2s linear; }
.tools a:hover { background: var(--paper-2); }
.tool-ico { width: 48px; height: 48px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.tool-ico .acc { stroke: var(--accent); stroke-width: 2.4; }
.tool-ico .acc-f { fill: var(--accent); stroke: none; }
.tool-ico > * { stroke-dasharray: 120; stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--e-display); }
.tools a:hover .tool-ico > * { animation: draw .9s var(--e-display); }
@keyframes draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.tl-t { font-weight: 600; font-variation-settings: 'wdth' 104; letter-spacing: -.012em; font-size: 1.0625rem; }
.tl-d { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }

/* orte */
.orte { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.orte-map { margin: 0; }
.orte-list { list-style: none; margin: 0; padding: 0; columns: 1; }
.orte-list li { border-bottom: 1px solid var(--line); }
.orte-list a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; text-decoration: none; font-weight: 500;
  transition: color .15s linear, translate .35s var(--e-display); }
.ol-n { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .1em; color: var(--ink-2); min-width: 2.2em; }
.orte-list a:hover, .orte-list a.is-hot { color: var(--accent); translate: 6px 0; }

.hub-note { max-width: var(--wrap); margin: clamp(72px, 10vw, 140px) auto 0; padding: clamp(28px, 3vw, 40px) var(--gut) clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 6vw, 110px);
  color: var(--ink-2); font-size: .9375rem; }
.hub-note strong { color: var(--ink); }

/* ==========================================================================
   Maps
   ========================================================================== */
.rgmap { width: 100%; height: auto; overflow: hidden; }
.rgmap .map-rhein { stroke-width: 3; }
.rg-dots circle { fill: var(--ink-2); opacity: .55; }
.rg-dots .hit { fill: transparent; opacity: 1; }
.rg-dots.is-bg circle { opacity: .28; }
.rg-dot { cursor: default; outline: none; }
.rg-dot.is-on circle:not(.hit) { fill: var(--accent); opacity: 1; stroke: var(--paper); stroke-width: 1.5; }
.rg-dot:hover circle:not(.hit), .rg-dot:focus-visible circle:not(.hit) { opacity: 1; fill: var(--ink); }
.rg-dot.is-on:hover circle:not(.hit), .rg-dot.is-on:focus-visible circle:not(.hit) { fill: var(--ink); }
.rg-labels text, .map-town-ref text { font-family: var(--f-sans); font-size: 12px; font-weight: 500; fill: var(--ink); }
.rg-labels text { paint-order: stroke; stroke: var(--paper-2); stroke-width: 3px; stroke-linejoin: round; }
.rg-zones text { font-family: var(--f-sans); font-size: 13px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.rg-zones tspan + tspan { font-weight: 400; fill: var(--ink-2); }
.map-town-ref circle { fill: var(--ink); }
.map-town-ref text { fill: var(--ink-2); font-size: 11px; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.map-town-ref .is-region { opacity: .7; }
.map-wrap { position: relative; }
.map-tip { position: absolute; z-index: 5; pointer-events: none; padding: 7px 10px; background: var(--ink); color: var(--paper);
  font-size: .8125rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }

.rg-ort { text-decoration: none; }
.rg-ort .hit { fill: transparent; }
.rg-ort .pin { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; transition: fill .2s linear; transform-box: fill-box;
  transform-origin: center; transition: transform .45s var(--e-display), fill .2s linear; }
.rg-ort .pair { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .6; }
.rg-ort text { font-family: var(--f-sans); font-size: 14px; font-weight: 600; fill: var(--ink);
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.rg-ort:hover .pin, .rg-ort:focus-visible .pin, .rg-ort.is-hot .pin, .rg-ort.is-active .pin { fill: var(--accent); transform: scale(1.45); }
.rg-ort:hover text, .rg-ort.is-hot text { fill: var(--accent); }
.rgmap-orte.is-compact .rg-ort .pin { stroke-width: 2; }
.rgmap-orte.is-compact .rg-ort text { font-size: 22px; }
.rgmap-orte.is-compact .rg-ort:not(.is-active) .pin { fill: var(--ink-2); }
.rgmap-orte.is-compact .map-grid { display: none; }

.js .reveal-map .map-rhein { stroke-dasharray: var(--len, 2600); stroke-dashoffset: var(--len, 2600); }
.js .reveal-map.is-in .map-rhein { transition: stroke-dashoffset 2s var(--e-display); stroke-dashoffset: 0; }
.js .reveal-map .rg-orte a, .js .reveal-map .rg-dots .rg-dot.is-on { opacity: 0; transition: opacity .5s linear; }
.js .reveal-map.is-in .rg-orte a, .js .reveal-map.is-in .rg-dots .rg-dot.is-on { opacity: 1; transition-delay: calc(.6s + var(--i, 0) * 45ms); }

/* ==========================================================================
   Rubric
   ========================================================================== */
.rub-hero { position: relative; isolation: isolate; min-height: min(66vh, 640px); display: grid; align-content: end;
  padding: var(--gut); color: #f2f3f2; overflow: hidden; }
.rub-hero > picture, .rub-hero > picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.rub-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(8 10 11 / .85), rgb(8 10 11 / .42) 50%, rgb(8 10 11 / .12) 85%),
              linear-gradient(to right, rgb(8 10 11 / .45), transparent 70%); }
.rub-hero-in { max-width: var(--wrap); width: 100%; margin-inline: auto; }
.rub-hero .crumbs ol { color: #cfd3d2; }
.rub-hero h1 { margin-top: 18px; font-size: clamp(2.5rem, min(6.6vw, 10vh), 6rem); font-variation-settings: 'wdth' 104;
  line-height: .93; letter-spacing: -.036em; max-width: 14ch; }
.rub-count { margin-top: clamp(16px, 2vw, 24px); font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; color: #d5d9d7; }
.rub-credit { position: absolute; right: var(--gut); bottom: 14px; font-family: var(--f-mono); font-size: .6875rem;
  letter-spacing: .06em; color: #b9bebc; }
.rub-credit a { color: inherit; }
.rub-body { max-width: var(--wrap); margin-inline: auto; padding: clamp(48px, 7vw, 100px) var(--gut) clamp(64px, 9vw, 130px); }
.rub-intro { max-width: var(--measure); margin-bottom: clamp(40px, 5vw, 72px); }
.rub-intro > p:first-child { font-size: var(--t-lead); line-height: 1.45; letter-spacing: -.011em; color: var(--ink); }

.rub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rub-list li { border-bottom: 1px solid var(--line); }
.rub-list a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 5rem 28px; gap: 6px clamp(16px, 2.5vw, 40px);
  align-items: baseline; padding: clamp(20px, 2.4vw, 30px) 0; text-decoration: none; transition: background-color .2s linear; }
.rl-n { grid-row: span 2; font-family: var(--f-mono); font-size: .9375rem; font-weight: 500; color: var(--ink-2); padding-left: 4px; }
.rl-t { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 500; font-variation-settings: 'wdth' 103; letter-spacing: -.02em; line-height: 1.15; }
.rl-d { grid-column: 2; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; max-width: 72ch; }
.rl-m { grid-column: 3; grid-row: 1; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .1em; color: var(--ink-2); text-align: right; }
.rub-list .ico { grid-column: 4; grid-row: 1; color: var(--ink-2); transition: transform .4s var(--e-display), color .2s linear; }
.rub-list a:hover { background: var(--paper-2); }
.rub-list a:hover .rl-t { color: var(--accent); }
.rub-list a:hover .ico { transform: translateX(6px); color: var(--accent); }
.rub-epi { margin-top: clamp(56px, 7vw, 100px); max-width: 64rem !important; }
.rub-epi .epi > h2:first-child { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.026em; }
.rub-epi .epi > h2:not(:first-child) { margin-top: 1.8em; font-size: 1.1875rem; font-weight: 600; font-variation-settings: 'wdth' 104; letter-spacing: -.012em; }
@media (min-width: 900px) { .rub-epi .epi.is-check .checklist { columns: 2; column-gap: 40px; } .rub-epi .epi.is-check .checklist li { break-inside: avoid; } }
.orte-map + .rub-list { margin-top: clamp(40px, 5vw, 64px); }
.rub-body > .orte-map { max-width: 60rem; }

/* ==========================================================================
   Article
   ========================================================================== */
.art-head { max-width: var(--wrap); margin-inline: auto; padding: clamp(36px, 5.5vw, 76px) var(--gut) clamp(28px, 3.4vw, 44px); }
.art-head h1 { margin-top: clamp(18px, 2vw, 26px); font-size: clamp(2.05rem, 4.3vw, 3.9rem); font-variation-settings: 'wdth' 103;
  line-height: 1.01; letter-spacing: -.032em; max-width: 21ch; hyphens: auto; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: clamp(18px, 2vw, 26px); font-family: var(--f-mono);
  font-size: .8125rem; letter-spacing: .04em; color: var(--ink-2); }
.art-meta span + span::before { content: ''; display: inline-block; width: 18px; height: 1px; margin: 0 12px;
  vertical-align: middle; background: var(--line); }
.art-meta span:first-child { color: var(--ink); font-weight: 500; }

.art-photo { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.art-photo picture, .art-photo img { display: block; width: 100%; aspect-ratio: 21 / 7; object-fit: cover; }
.art-photo.is-local img { aspect-ratio: 21 / 9; }
.art-photo figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; color: var(--ink-2); }
.art-photo figcaption a { color: inherit; }

.art-grid { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px);
  max-width: var(--wrap); margin-inline: auto; padding: clamp(40px, 5vw, 72px) var(--gut) 0; }
.art-side { position: relative; }
.toc { position: sticky; top: calc(var(--bar) + 28px); max-height: calc(100vh - var(--bar) - 56px); overflow: auto;
  scrollbar-width: thin; padding-right: 6px; }
.toc-h { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
button.toc-h { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { position: relative; display: block; padding: 7px 0 7px 16px; font-size: .875rem; line-height: 1.35; text-decoration: none;
  color: var(--ink-2); transition: color .2s linear; }
.toc a::before { content: ''; position: absolute; left: 0; top: .95em; width: 6px; height: 6px; background: var(--line);
  transition: background-color .2s linear, transform .35s var(--e-display); }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); font-weight: 500; }
.toc a.is-on::before { background: var(--accent); transform: scale(1.35); }
.locator { margin: 0 0 32px; padding: 14px; background: var(--paper-2); }
.locator figcaption { margin-top: 6px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); }

/* prose */
.prose { min-width: 0; max-width: var(--measure); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.05em; }
.prose > p:first-child { font-size: var(--t-lead); line-height: 1.45; letter-spacing: -.011em; }
.prose h2 { margin-top: 2.4em; font-size: clamp(1.45rem, 2.2vw, 1.95rem); font-weight: 500; font-variation-settings: 'wdth' 103;
  letter-spacing: -.022em; line-height: 1.15; scroll-margin-top: calc(var(--bar) + 24px); }
.prose h2 + * { margin-top: .8em; }
.prose h3 { margin-top: 1.9em; font-size: 1.1875rem; font-weight: 600; font-variation-settings: 'wdth' 104;
  letter-spacing: -.012em; line-height: 1.3; scroll-margin-top: calc(var(--bar) + 24px); }
.prose h4 { margin-top: 1.6em; font-size: 1rem; font-weight: 600; }
.prose h3 + *, .prose h4 + * { margin-top: .55em; }
.prose strong { font-weight: 600; }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose a.xref { text-decoration-style: dotted; text-decoration-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.prose a.xref:hover { text-decoration-style: solid; text-decoration-color: var(--accent); }
.prose a.url { font-family: var(--f-mono); font-size: .875em; word-break: break-all; }
.prose ul, .prose ol { padding-left: 1.45em; }
.prose li + li { margin-top: .35em; }
.prose li > ul, .prose li > ol { margin-top: .35em; }
.prose ul > li { list-style: none; position: relative; }
.prose ul.legend, .prose ul.checks { padding-left: 0; }
.prose ul.legend > li::before, .prose ul.checks > li::before { display: none; }
.prose ul > li::before { content: ''; position: absolute; left: -1.1em; top: .82em; width: .55em; height: 1px; background: var(--ink-2); }
.prose ol > li::marker { font-family: var(--f-mono); font-size: .875em; color: var(--ink-2); }
.prose .lead-in { margin-top: 1.4em; font-size: 1.125rem; }
.prose .lead-in + * { margin-top: .5em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.6em 0; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); padding: 1px 5px; }
.prose p:has(> a[href^="/ratgeber/"]:only-child) { font-weight: 500; }

blockquote { margin: 1.5em 0; padding: 0; }
blockquote.pull { position: relative; padding-left: 1.2em; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.35;
  font-weight: 500; font-variation-settings: 'wdth' 102; letter-spacing: -.016em; }
blockquote.pull::before { content: ''; position: absolute; left: 0; top: .3em; bottom: .3em; width: 1px; background: var(--ink); }
blockquote.quote { padding: 1em 1.2em; background: var(--paper-2); }
blockquote > * + * { margin-top: .7em; }

/* "Die kurze Antwort", "Merksatz", "Fazit": the one ink field in the column */
.callout { margin: 2.2em 0; padding: clamp(22px, 2.6vw, 34px); background: var(--ink); color: var(--paper); }
.callout h2 { margin: 0 0 .9em; font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.callout > * + * { margin-top: .9em; }
.callout a { color: inherit; }
.callout ul > li::before { background: currentColor; }
.callout ol > li::marker { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.callout > p:nth-of-type(1) { font-size: 1.1875rem; line-height: 1.5; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 1.6em 0; border-block: 1px solid var(--ink); outline-offset: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.tbl thead th { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody th { font-weight: 600; }
.tbl .r { text-align: right; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl.is-form td { height: 2.6em; border-left: 1px solid var(--line-soft); }

/* checklists: they work, and they remember */
.checklist { list-style: none; padding: 0 !important; margin-top: 1.2em; }
.checklist li::before { display: none; }
.checklist li + li { margin-top: 0; border-top: 1px solid var(--line-soft); }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.checklist input { appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1.5px solid var(--ink);
  background: var(--paper); display: grid; place-content: center; cursor: pointer; transition: background-color .15s linear, border-color .15s linear; }
.checklist input::after { content: ''; width: 11px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--e-display); }
.checklist input:checked { background: var(--accent); border-color: var(--accent); }
.checklist input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checklist input:checked + span { color: var(--ink-2); }
.check-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 1.4em;
  font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.check-meta button { border: 0; background: none; padding: 6px 0; font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.check-meta button:hover { color: var(--accent); }
.check-bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.check-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--v, 0));
  transition: transform .45s var(--e-display); }

/* sources */
.ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ref-host { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); }
.sources { margin-top: 3.2em; padding-top: 1.4em; border-top: 1px solid var(--ink); }
.sources h2 { margin: 0 0 1em; font-size: 1.1875rem; font-weight: 600; font-variation-settings: 'wdth' 104; letter-spacing: -.012em; }
.sources ol { list-style: none; padding: 0; margin: 0; counter-reset: q; font-size: .9375rem; line-height: 1.45; }
.sources li { counter-increment: q; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 2px 0; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); }
.sources li::before { content: counter(q, decimal-leading-zero); grid-row: span 2; font-family: var(--f-mono); font-size: .75rem;
  color: var(--ink-2); padding-top: .15em; }
.sources li .ref-host { grid-column: 2; }
.sources li.src-g { display: block; counter-increment: none; padding-top: 1.2em; font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border: 0; }
.sources li.src-g::before { display: none; }
.sources a { text-decoration: none; }
.sources a:hover { color: var(--accent); text-decoration: underline; }

.disclaimer { margin-top: 3em !important; padding: 18px 20px; background: var(--paper-2); font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.disclaimer strong { color: var(--ink); }

/* end of article */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: var(--wrap); margin: clamp(56px, 7vw, 100px) auto 0;
  padding: 0 var(--gut); }
.pager > * { background: var(--paper); }
.nx { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-content: start; padding: clamp(22px, 2.6vw, 36px) 0;
  border-top: 1px solid var(--ink); text-decoration: none; }
.pager .nx:nth-child(2) { padding-left: clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--line); }
.nx-l { grid-column: 1; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.nx-t { grid-column: 1; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; font-variation-settings: 'wdth' 103; letter-spacing: -.018em; line-height: 1.2; }
.nx .ico { grid-column: 2; grid-row: 1 / span 2; align-self: center; transition: transform .4s var(--e-display), color .2s linear; }
.nx:hover .nx-t, .nx:hover .ico { color: var(--accent); }
.nx:hover .ico { transform: translateX(6px); }

.related { max-width: var(--wrap); margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gut) clamp(72px, 9vw, 130px); }
.related h2 { font-size: var(--t-h3); font-weight: 600; font-variation-settings: 'wdth' 104; margin-bottom: 14px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.related a { display: grid; gap: 8px; height: 100%; padding: 20px clamp(16px, 2vw, 26px) 24px 0; background: var(--paper);
  text-decoration: none; font-weight: 500; line-height: 1.3; transition: color .15s linear; }
.related li + li a { padding-left: clamp(16px, 2vw, 26px); }
.related a:hover { color: var(--accent); }
.rel-r { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* rubric epilogue: the quick check is a worksheet */
.epi { margin-top: 3em; }
.epi.is-check { padding: clamp(22px, 3vw, 40px); background: var(--paper-2); }
.epi.is-check h2:first-child { margin-top: 0; }
.epi.is-check .checklist input { background: var(--paper); }
.epi h3 { margin-top: 1.6em; }

/* ==========================================================================
   Tools and charts
   ========================================================================== */
.tool { margin: 2.4em 0 !important; padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--ink); background: var(--paper);
  width: min(100% + clamp(0px, 10vw, 180px), calc(100vw - 2 * var(--gut) - var(--side) - 96px));
  max-width: none; scroll-margin-top: calc(var(--bar) + 24px); }
.tool-head { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); }
.tool-name { font-size: 1.125rem; font-weight: 600; font-variation-settings: 'wdth' 104; letter-spacing: -.012em; line-height: 1.25; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 16px 20px; align-items: end; }
.tf { display: grid; gap: 6px; }
.tf-l { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
.tf-in { display: flex; align-items: center; height: 48px; border-bottom: 1.5px solid var(--ink); background: var(--paper-2); padding: 0 12px;
  transition: border-color .15s linear; }
.tf-in:focus-within { border-color: var(--accent); }
.tf-in input, .tf-in select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0;
  font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.tf-in select { appearance: none; cursor: pointer; padding-right: 20px;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px top 50% / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 top 50% / 6px 6px no-repeat; }
.tf-in select option { background: var(--paper); color: var(--ink); }
.tf-u { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.tf.is-off { opacity: .4; pointer-events: none; }
.tf-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
.tf-wide .tf-l { grid-column: 1 / -1; }
.tf-wide output { font-family: var(--f-mono); font-size: 1rem; font-weight: 500; min-width: 6.5em; text-align: right;
  font-variant-numeric: tabular-nums; }

input[type="range"] { appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--accent);
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--accent); transition: transform .2s var(--e-ui); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--accent); border: 3px solid var(--paper); border-radius: 0;
  box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.tool-out { margin-top: 26px; display: grid; gap: 14px; }
.tool-two { grid-template-columns: 1fr 1fr; gap: 24px; }
.tool-big { font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 500; font-variation-settings: 'wdth' 100; letter-spacing: -.03em;
  line-height: 1; font-variant-numeric: tabular-nums; }
.tool-big span { font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.tool-sub { font-size: .875rem; color: var(--ink-2); line-height: 1.45; margin-top: 8px; }
.tool-verdict { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; max-width: 62ch; }
.tool-verdict::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; background: var(--ink);
  mask: var(--ic) center / contain no-repeat; -webkit-mask: var(--ic) center / contain no-repeat;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }
.tool-verdict[data-state="bad"]::before { background: var(--accent);
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 4l10 10M14 4L4 14' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }
.tool-verdict[data-state="info"]::before {
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 8v6M9 4v2' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }
.tool-read { font-size: .9375rem; line-height: 1.55; font-variant-numeric: tabular-nums; margin-top: 12px; }
.tool-read b { font-weight: 600; }
.tool-note { margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .8125rem;
  line-height: 1.5; color: var(--ink-2); }

.meter { position: relative; height: 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.meter-bar { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--v));
  transition: transform .5s var(--e-display), background-color .2s linear; }
.meter.is-over .meter-bar { background: var(--accent); }
.meter-lim { position: absolute; top: -6px; bottom: -6px; left: calc(var(--l) * 100%); width: 2px; background: var(--accent); }
.meter-lim i { position: absolute; top: -18px; left: 6px; font-style: normal; font-family: var(--f-mono); font-size: .6875rem;
  color: var(--ink-2); white-space: nowrap; }

.tool-draw { width: min(100%, 360px); height: auto; margin-top: 6px; fill: none; stroke: var(--ink); }
.tool-draw .gnd { stroke-width: 1; stroke: var(--ink-2); }
.tool-draw .body, .tool-draw .wall { stroke-width: 2; fill: var(--paper-2); transition: d .4s var(--e-display); }
.tool-draw .wall { fill: var(--ink); }
.tool-draw .zone { fill: var(--accent); stroke: none; opacity: .85; }
.tool-draw .bound { stroke-dasharray: 5 4; stroke-width: 1.2; }
.tool-draw .dim { stroke-width: 1; stroke: var(--ink-2); }
.tool-draw text { fill: var(--ink); stroke: none; font-family: var(--f-mono); font-size: 11px; }
.tool-draw .lbl { fill: var(--ink-2); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.checks b { width: 18px; height: 18px; align-self: center; background: var(--ink);
  mask: var(--ic) center / contain no-repeat; -webkit-mask: var(--ic) center / contain no-repeat;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }
.checks li.is-bad b { background: var(--accent);
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 4l10 10M14 4L4 14' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }
.checks li.is-bad span { color: var(--accent); }
.checks em { font-style: normal; font-family: var(--f-mono); font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.strip { position: relative; height: 26px; margin-top: 22px; background: var(--paper-2); }
.strip-ex, .strip-new { position: absolute; top: 5px; bottom: 5px; left: 0; width: 100%; transform-origin: left;
  transform: translateX(calc(var(--a) * 100%)) scaleX(calc(var(--b) - var(--a))); transition: transform .45s var(--e-display); }
.strip-ex { background: repeating-linear-gradient(135deg, var(--ink-2) 0 2px, transparent 2px 6px); }
.strip-new { background: var(--ink); }
.strip.is-over .strip-new { background: var(--accent); }
.strip-m { position: absolute; top: -6px; bottom: -6px; left: calc(var(--m) * 100% - 1px); width: 1px; background: var(--ink); }
.strip-m i { position: absolute; top: 100%; left: 0; transform: translateX(-50%); margin-top: 4px; font-style: normal;
  font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-2); }

.chart-wrap { position: relative; margin: 0 -4px; }
.chart { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.ch-grid line { stroke: var(--line-soft); stroke-width: 1; }
.ch-grid line:first-child { stroke: var(--line); }
.ch-ax, .ch-unit { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-2); }
.ch-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-line.s1 { stroke: var(--s1); } .ch-line.s2 { stroke: var(--s2); } .ch-line.s3 { stroke: var(--s3); }
.ch-lab { font-family: var(--f-sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.ch-pt circle { fill: var(--paper); stroke: var(--s1); stroke-width: 2.2; }
.ch-pt text { font-family: var(--f-sans); font-size: 12.5px; font-weight: 500; fill: var(--ink);
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.ch-cross-v { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.ch-cross-p { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.ch-cross-p.s1 { fill: var(--s1); } .ch-cross-p.s2 { fill: var(--s2); } .ch-cross-p.s3 { fill: var(--s3); }
.js .chart .ch-line { stroke-dasharray: var(--len, 1400); stroke-dashoffset: 0; }
.js .tool.pre .chart .ch-line { stroke-dashoffset: var(--len, 1400); }
.js .tool .chart .ch-line { transition: stroke-dashoffset 1.6s var(--e-display); }
.js .tool .chart .ch-line.s3 { transition-delay: .15s; } .js .tool .chart .ch-line.s1 { transition-delay: .3s; }

.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem;
  font-variant-numeric: tabular-nums; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 18px; height: 3px; background: var(--ink-2); flex: none; }
.legend .s1 i { background: var(--s1); } .legend .s2 i { background: var(--s2); } .legend .s3 i { background: var(--s3); }
.legend b { margin-left: auto; font-weight: 600; font-family: var(--f-mono); font-size: 1rem; }
.legend-map i { width: 10px; height: 10px; }
.legend-map .is-on i { background: var(--accent); }
.legend-map li:not(.is-on) i { width: 6px; height: 6px; margin: 0 2px; opacity: .6; }

/* Bauantrag timeline */
.gantt { --lab: 17rem; display: grid; gap: 2px; font-size: .875rem; }
.gantt-scale { position: relative; height: 22px; margin-left: var(--lab); border-bottom: 1px solid var(--line); }
.gantt-scale span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); font-family: var(--f-mono);
  font-size: .6875rem; color: var(--ink-2); }
.gantt-scale span:first-child { transform: none; }
.gantt-scale span:last-child { transform: translateX(-100%); white-space: nowrap; }
.gantt-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; min-height: 44px;
  border-bottom: 1px solid var(--line-soft); }
.gantt-l { padding-right: 16px; line-height: 1.3; }
.gantt-t { position: relative; height: 44px; }
.gantt-t i { position: absolute; top: 12px; height: 8px; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%);
  background: var(--ink); }
.gantt-t .g-b2 { background: var(--accent); }
.gantt-t .g-b3 { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 6px); border: 1px solid var(--ink); }
.gantt-t .g-pt { width: 11px; height: 11px; top: 10px; transform: translateX(-5px) rotate(45deg); background: var(--accent); }
.gantt-t .g-gap { width: 40px; height: 0; top: 16px; background: none; border-top: 1.5px dashed var(--ink-2); }
.gantt-t em { position: absolute; top: 24px; left: calc(var(--a) * 100%); font-style: normal; font-family: var(--f-mono);
  font-size: .6875rem; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.js .tool.pre .gantt-t i:not(.g-pt) { transform: scaleX(0); }
.js .tool .gantt-t i:not(.g-pt) { transform-origin: left; transition: transform .9s var(--e-display); transition-delay: calc(var(--a) * 1.4s); }

/* ==========================================================================
   Motion: one authored moment per page, then quiet.
   Article: the photo opens like a shutter while the title settles.
   ========================================================================== */
.js .art-head h1, .js .art-head .art-meta { translate: 0 14px; opacity: 0;
  transition: translate .9s var(--e-display), opacity .7s linear; }
.js .art-photo picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--e-display) .12s; }
.js.is-ready .art-head h1, .js.is-ready .art-head .art-meta { translate: 0 0; opacity: 1; }
.js.is-ready .art-head .art-meta { transition-delay: .12s; }
.js.is-ready .art-photo picture { clip-path: inset(0 0 0 0); }
.js .rub-hero > picture img { scale: 1.06; transition: scale 2.4s var(--e-display); }
.js.is-ready .rub-hero > picture img { scale: 1; }
.js .hub-hero h1 > span, .js .hub-hero h1 { }
.js .rv { translate: 0 22px; opacity: 0; transition: translate .8s var(--e-body), opacity .6s linear; transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.is-in { translate: 0 0; opacity: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .t-a, .t-b, .t-c, .t-d, .t-e, .t-f, .t-g, .t-h, .t-i, .t-j, .t-k, .t-l { grid-column: span 6; }
  .t-a, .t-l { grid-column: span 12; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool { width: 100%; }
}
@media (max-width: 1000px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .art-side { margin-bottom: 28px; }
  .locator { display: none; }
  .toc { position: static; max-height: none; overflow: visible; border-block: 1px solid var(--ink); padding: 0; }
  .toc .toc-h:not(button) { display: none; }
  button.toc-h { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 52px; margin: 0; padding: 0;
    border: 0; background: none; cursor: pointer; }
  button.toc-h::after { content: ''; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--e-ui); }
  .toc.is-open button.toc-h::after { transform: rotate(-135deg) translateY(-3px); }
  .js .toc:not(.is-open) ol { display: none; }
  .toc ol { padding-bottom: 12px; }
  .prose { max-width: none; }
  .hub-hero, .hub-head, .orte, .hub-note { grid-template-columns: minmax(0, 1fr); }
  .hub-hero { align-items: start; }
  .related ul { grid-template-columns: minmax(0, 1fr); }
  .related li + li a { padding-left: 0; }
}
@media (max-width: 700px) {
  .t-a, .t-b, .t-c, .t-d, .t-e, .t-f, .t-g, .t-h, .t-i, .t-j, .t-k, .t-l { grid-column: span 12; }
  .tile-link { min-height: 12rem; }
  .tile-more { display: none; }
  .tiles { gap: 10px; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tools a { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; }
  .tool-ico { grid-row: span 2; margin: 0; }
  .art-photo { padding: 0; }
  .art-photo img, .art-photo.is-local img { aspect-ratio: 4 / 3; }
  .art-photo figcaption { padding: 0 var(--gut); }
  .rub-list a { grid-template-columns: 3rem minmax(0, 1fr) 24px; }
  .rl-m { display: none; }
  .rub-list .ico { grid-column: 3; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .nx:nth-child(2) { padding-left: 0; border-left: 0; }
  .pager > span:empty { display: none; }
  .tool { padding: 18px 16px; margin-inline: calc(-1 * var(--gut) + 8px) !important; width: auto; }
  .tool-two { grid-template-columns: minmax(0, 1fr); }
  .tool-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tool-form .tf:has(select) { grid-column: 1 / -1; }
  .gantt { --lab: 0; }
  .gantt-scale { margin-left: 0; }
  .gantt-row { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .gantt-l { font-weight: 500; }
  .rub-credit { position: static; margin-top: 18px; }
  .rub-hero { min-height: min(72vh, 560px); }
  .ch-pt text { font-size: 17px; }
  .ch-ax, .ch-unit { font-size: 15px; }
  .ch-lab { font-size: 17px; }
  .rg-labels text { font-size: 15px; }
  .hub-band p { max-width: 18ch; }
  .srch kbd { display: none; }
  .btn-search span { display: none; }
  .btn-search { padding: 0 12px; }
}
@media (max-width: 560px) {
  .topbar .btn-search { grid-area: action; }
}

@media (prefers-reduced-motion: reduce) {
  .js .art-head h1, .js .art-head .art-meta, .js .rv { translate: none; opacity: 1; }
  .js .art-photo picture { clip-path: none; }
  .js .rub-hero > picture img { scale: 1; }
  .js .tool.pre .chart .ch-line { stroke-dashoffset: 0; }
  .js .tool.pre .gantt-t i { transform: none; }
  .js .reveal-map .map-rhein { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .reveal-map .rg-orte a, .js .reveal-map .rg-dots .rg-dot.is-on { opacity: 1; }
  .rg-progress { display: none; }
}
@media print {
  .rg-progress, .art-side, .pager, .related, .btn-search, .srch, .tool-form { display: none; }
  .art-grid { grid-template-columns: 1fr; }
  .callout { background: none; color: #000; border: 1px solid #000; }
}
