/* Abnahme – Leuchttisch und Fettstift. Siehe DESIGN.md */

@font-face { font-family: "Anybody"; src: url("../fonts/anybody.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

@view-transition { navigation: auto; }

@property --draw { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  color-scheme: light dark;
  --table: light-dark(#eef1f3, #111214);
  --sheet: light-dark(#ffffff, #1a1c1f);
  --sheet-2: light-dark(#f6f8f9, #202327);
  --ink: light-dark(#16191d, #e9ecef);
  --ink-2: light-dark(#4f5862, #a9b0b8);
  --rule: light-dark(#c7cdd3, #33373c);
  --film: light-dark(#0d0e10, #000000);
  --edge: #d6a840;
  --red: light-dark(#c8241a, #ff6f61);
  --blue: light-dark(#2142c4, #8ea2ff);
  --green: light-dark(#0b7443, #4fcf8e);
  --rust: light-dark(#a2470c, #f29a5b);
  --pink: light-dark(#b8125a, #ff7bb0);
  --pen: var(--ink);

  --f-head: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Literata", Georgia, "Times New Roman", serif;
  --f-code: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: 0.8125rem; --fs-s: 0.9375rem; --fs-m: 1.125rem; --fs-l: 1.3125rem; --fs-xl: 1.625rem;
  --fs-2xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.25rem); --fs-3xl: clamp(2.3rem, 1.5rem + 3.2vw, 3.25rem);
  --fs-4xl: clamp(2.6rem, 1.4rem + 5vw, 4.5rem); --fs-5xl: clamp(3rem, 0.8rem + 9vw, 6.5rem);

  --gap: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  --page: min(100% - 2 * var(--gap), 80rem);
  --measure: 68ch;
}
body.area-warum { --pen: var(--red); --chart: light-dark(#c8241a, #e5483b); }
body.area-ncc { --pen: var(--blue); --chart: light-dark(#2142c4, #5c7cf0); }
body.area-halle77drive { --pen: var(--green); --chart: light-dark(#0b7443, #2fae6b); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem;
  @media (prefers-reduced-motion: no-preference) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--table); color: var(--ink); font: 400 var(--fs-m)/1.62 var(--f-text);
  min-height: 100dvh; display: flex; flex-direction: column; font-optical-sizing: auto; }
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 0.18em;
  &:hover { text-decoration-thickness: 3px; } }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; line-height: 1.02; text-wrap: balance; font-weight: 800; hyphens: auto; overflow-wrap: break-word; }
main { overflow-wrap: break-word; }
@media (width < 30rem) { h1 { font-stretch: 112%; } h2 { font-stretch: 108%; } h3 { font-stretch: 100%; } }
h1, .proof h3 { hyphens: manual; }

h1 { font-size: var(--fs-4xl); font-stretch: 135%; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); font-stretch: 125%; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-l); font-stretch: 110%; font-weight: 750; line-height: 1.15; }
h4 { font-size: var(--fs-m); font-stretch: 100%; font-weight: 700; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
ul, ol { margin: 0; }
code, pre { font-family: var(--f-code); font-size: 0.86em; }
pre { background: var(--film); color: #e7e9ea; padding: 1rem 1.2rem; border-radius: 6px; overflow-x: auto;
  line-height: 1.5; max-width: 100%; white-space: pre-wrap; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: var(--table);
  padding: 0.6rem 1rem; border-radius: 6px; &:focus { top: 1rem; } }

.wrap { width: var(--page); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section + .section { border-top: 1px solid var(--rule); }
.lede { font-size: var(--fs-l); line-height: 1.5; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-s); }
.num { font-family: var(--f-head); font-variant-numeric: tabular-nums; }
.placeholder { border: 1.5px dashed var(--ink-2); padding: 0.05em 0.45em; border-radius: 4px; font-style: italic; color: var(--ink-2); }
.kicker { font-family: var(--f-head); font-weight: 650; font-stretch: 100%; font-size: var(--fs-s); color: var(--pen); }

/* ---------- Kopf ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--table) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); view-transition-name: top; }
.top-bar { width: var(--page); margin-inline: auto; display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 3.6rem; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; margin-right: auto; font-family: var(--f-head);
  & .brand-name { font-weight: 900; font-stretch: 150%; font-size: 1.15rem; letter-spacing: -0.01em; }
  & .brand-sub { font-size: var(--fs-s); font-stretch: 90%; color: var(--ink-2); font-weight: 600; } }
.areas ul { list-style: none; padding: 0; display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.areas a { font-family: var(--f-head); font-weight: 650; font-size: var(--fs-s); text-decoration: none; padding: 0.3rem 0; position: relative;
  &[data-area="warum"] { --c: var(--red); } &[data-area="ncc"] { --c: var(--blue); } &[data-area="halle77drive"] { --c: var(--green); }
  &::after { content: ""; position: absolute; inset: auto 0 -2px 0; height: 3px; border-radius: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
  &:hover::after, &[aria-current]::after { transform: scaleX(1); } }
.lang { font-family: var(--f-head); font-weight: 650; font-size: var(--fs-s); text-decoration: none; border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 0.25rem 0.8rem; &:hover { background: var(--ink); color: var(--table); } }
@media (width < 40rem) { .areas { order: 3; width: 100%; padding-bottom: 0.5rem; } .areas ul { gap: 0.25rem 1rem; } }

.subnav { width: var(--page); margin-inline: auto; overflow-x: auto; scrollbar-width: thin;
  & ul { list-style: none; padding: 0; display: flex; gap: 0.35rem; }
  & a { display: block; white-space: nowrap; font-family: var(--f-head); font-size: var(--fs-s); font-weight: 600; text-decoration: none;
    padding: 0.45rem 0.85rem 0.55rem; border: 1px solid var(--rule); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--sheet-2); color: var(--ink-2);
    &:hover { color: var(--ink); }
    &[aria-current="page"] { background: var(--sheet); color: var(--ink); box-shadow: inset 0 3px 0 var(--pen); } } }

.progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { display: block; position: absolute; inset: auto 0 -1px 0; height: 3px; background: var(--pen); transform-origin: 0 50%;
      animation: grow linear both; animation-timeline: scroll(root); }
  }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

main { flex: 1; &:focus { outline: none; } }

/* ---------- Fettstift-Markierungen ---------- */
.mark { position: absolute; pointer-events: none; overflow: visible;
  & path { fill: none; stroke: var(--pen); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
    vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
  --draw: 1; }
.mark-circle { inset: -18% -8%; width: 116%; height: 136%; }
.mark-underline { left: 0; right: 0; bottom: -0.35em; height: 0.5em; width: 100%; }
.mark-tick { width: 1.3em; height: 1.15em; position: static; vertical-align: -0.15em; }
.mark-strike { inset: 30% 0 auto 0; height: 40%; width: 100%; & path { stroke-width: 3.6; } }
.marked { position: relative; display: inline-block; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mark { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes draw { from { --draw: 0; } to { --draw: 1; } }

/* ---------- Startseite: Kontaktbogen + Lupe ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; background: var(--film); color: #f2f3f4; }
.hero-sheet { position: relative; max-width: 120rem; margin-inline: auto;
  & img { width: 100%; height: auto; opacity: 0.86; }
  & canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
  &.lens-on canvas { opacity: 1; } }
.hero-text { position: absolute; inset: auto 0 0 0; padding: clamp(1.25rem, 4vw, 3.5rem) 0;
  background: linear-gradient(to top, rgb(13 14 16 / 0.96) 30%, rgb(13 14 16 / 0.72) 70%, transparent); }
.hero-text .wrap { display: grid; gap: 1rem; }
.hero h1 { font-size: var(--fs-5xl); font-stretch: 150%; font-weight: 900; letter-spacing: -0.03em; line-height: 0.9; --pen: #ff5a4a; }
.hero .lede { color: #e8eaec; max-width: 54ch; }
.hero h1 .mark-underline { bottom: -0.5em; height: 0.35em; & path { stroke-width: 5; } }
.hero .by { font-family: var(--f-head); font-size: var(--fs-s); color: #b8bec4; }
@media (width < 52rem) {
  .hero-text { position: static; background: var(--film); }
}
@media (width < 40rem) { .hero .hero-text h1 { font-size: 11.2vw; font-stretch: 100%; } }

/* ---------- Prüfbögen der Projekte ---------- */
/* Lose Bögen auf dem Leuchttisch: oben ein großes Bild im Filmrahmen, darunter drei kleine Felder
   wie auf einem Kontaktbogen, dann Titel, Text und Stand. Zwei Spalten ab mittlerer Breite. */
.proofs { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem;
  @media (width >= 62rem) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof { --pen: var(--c); --c: var(--ink); container: proof / inline-size; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 2px 0 var(--rule); position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  &[data-p="warum"] { --c: var(--red); } &[data-p="ncc"] { --c: var(--blue); } &[data-p="halle77drive"] { --c: var(--green); }
  &[data-p="jenseits-des-systems"] { --c: var(--rust); } &[data-p="alarm-im-darm"] { --c: var(--pink); }
  &:has(.proof-link:hover, .proof-link:focus-visible) { border-color: var(--c); box-shadow: 0 4px 0 var(--c); transform: translateY(-2px); }
  & .proof-in { display: grid; grid-template-rows: auto 1fr; gap: 1.25rem; height: 100%; box-sizing: border-box; padding: clamp(0.9rem, 3cqi, 1.5rem); }
  /* Filmstreifen: erstes Bild groß, drei kleine darunter */
  & .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--film); padding: 18px 6px; border-radius: 2px;
    background-image: radial-gradient(circle at 50% 50%, var(--table) 3px, transparent 3.5px), radial-gradient(circle at 50% 50%, var(--table) 3px, transparent 3.5px);
    background-size: 18px 18px, 18px 18px; background-position: 0 -3px, 0 calc(100% + 3px); background-repeat: repeat-x;
    & > :first-child { grid-column: 1 / -1; }
    & img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; width: 100%; display: block; transition: filter 0.3s ease; } }
  &:has(.proof-link:hover) .strip img { filter: saturate(1.15) contrast(1.05); }
  /* Halle 77 Drive hat keine Bilder, sondern Plaketten: 2 × 2 */
  &[data-p="halle77drive"] .strip { grid-template-columns: repeat(2, minmax(0, 1fr));
    & .plate { aspect-ratio: 16 / 9; grid-column: auto; } & .plate b { font-size: clamp(1.1rem, 0.6rem + 3cqi, 1.6rem); } }
  & .proof-text { display: flex; flex-direction: column; gap: 0.7rem; & > dl { margin-top: auto; } }
  & .kicker { font-family: var(--f-head); font-weight: 750; font-size: var(--fs-s); }
  & h3 { font-size: clamp(1.8rem, 1rem + 4.5cqi, 2.8rem); font-stretch: 130%; font-weight: 850; line-height: 0.95; }
  & .proof-link { text-decoration: none; &::after { content: ""; position: absolute; inset: 0; } }
  & dl { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 0; padding-top: 0.9rem; border-top: 1px solid var(--rule); }
  & dt { font-size: var(--fs-xs); color: var(--ink-2); font-family: var(--f-head); }
  & dd { margin: 0; font-family: var(--f-head); font-weight: 750; font-size: var(--fs-m, 1.15rem); font-stretch: 110%; }
  & .go { font-family: var(--f-head); font-weight: 700; color: var(--c); &:not(.soon-note)::after { content: " →"; transition: margin 0.2s; } }
  &:has(.proof-link:hover) .go::after { margin-left: 0.3em; }
}
@media (prefers-reduced-motion: reduce) { .proof, .proof .strip img { transition: none; } .proof:has(.proof-link:hover) { transform: none; } }

/* Steckbrief als Etikett */
.label { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); position: relative;
  & dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 0; }
  & dt { font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2); padding-top: 0.15em; }
  & dd { margin: 0; } }
.about { display: grid; gap: 2rem; margin-top: 2rem;
  @media (width >= 60rem) { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }

/* ---------- Bereichskopf ---------- */
.area-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 3vw, 3rem); }
.area-hero h1 { margin-top: 0.6rem; max-width: 16ch; }
.area-hero .lede { margin-top: 1.25rem; }
.area-hero .meta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-family: var(--f-head); font-size: var(--fs-s); }
.status { display: inline-flex; align-items: center; gap: 0.5rem;
  &::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--pen); }
  &[data-st="offen"]::before, &[data-st="open"]::before { background: transparent; border: 2px solid var(--ink-2); } }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2);
  & li + li::before { content: "/"; margin-right: 0.35rem; color: var(--rule); } }

.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-s);
  text-decoration: none; padding: 0.75rem 1.1rem; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--sheet);
  &:hover { background: var(--ink); color: var(--table); }
  &.primary { background: var(--pen); border-color: var(--pen); color: light-dark(#fff, #111214);
    &:hover { background: var(--ink); border-color: var(--ink); color: var(--table); } } }
.ext { width: 0.8em; height: 0.8em; margin-left: 0.3em; vertical-align: -0.05em; }

/* Kennzahlen */
.kpis { container: kpis / inline-size; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  border: 1.5px solid var(--ink); border-radius: 4px; background: var(--sheet); margin-top: 2rem;
  & > div { padding: 1rem 1.2rem 1.15rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.3rem; margin-right: -1px; margin-bottom: -1px; }
  & dt { font-size: var(--fs-s); color: var(--ink-2); line-height: 1.35; }
  & dd { margin: 0; font-family: var(--f-head); font-weight: 800; font-stretch: 120%; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
  & dd small { font-size: 0.45em; font-weight: 650; margin-left: 0.2em; color: var(--ink-2); font-stretch: 100%; } }
.kpis + .note, .note { margin-top: 0.75rem; font-size: var(--fs-s); color: var(--ink-2); }

/* Filmrahmen um Bilder */
.film { margin: 0; background: var(--film); padding: 4px 4px 0; border-radius: 2px; color: #d9dcdf;
  & img, & video { width: 100%; border-radius: 1px; background: #000; }
  & figcaption { font-family: var(--f-head); font-size: var(--fs-xs); font-stretch: 75%; letter-spacing: 0.02em; padding: 0.35rem 0.3rem 0.45rem; color: var(--edge); display: flex; justify-content: space-between; gap: 0.75rem; }
  & figcaption span + span { color: #c8ccd0; font-stretch: 100%; letter-spacing: 0; text-align: right; } }
figure.film { position: relative; }
.film.rejected { & img { filter: grayscale(0.4); } }

.grid { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 16rem)), 1fr)); }
.grid.dense { --min: 11rem; gap: 6px; }

.cols { display: grid; gap: 2rem; @media (width >= 60rem) { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.cols.wide-left { @media (width >= 60rem) { grid-template-columns: 1.4fr 1fr; } }
.prose { display: grid; gap: 1rem; }
.prose h3 { margin-top: 0.75rem; }
.prose ul { padding-left: 1.2em; display: grid; gap: 0.4rem; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-s); font-variant-numeric: tabular-nums;
  & th, & td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--rule); }
  & thead th { font-family: var(--f-head); font-weight: 700; background: var(--sheet-2); position: sticky; top: 0; }
  & tbody tr:last-child td, & tbody tr:last-child th { border-bottom: 0; }
  & .r { text-align: right; } }
details.more { margin-top: 1rem; & summary { cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-s); } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; }
.chip { font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 650; padding: 0.15rem 0.55rem; border-radius: 999px;
  border: 1.5px solid var(--rule); text-decoration: none; background: var(--sheet); white-space: nowrap;
  &[href]:hover { border-color: var(--pen); }
  &.on { border-color: var(--pen); color: var(--pen); }
  &.ok { border-color: var(--green); color: var(--green); }
  &.alt { border-color: color-mix(in oklab, var(--ink-2) 70%, transparent); }
  &.miss { border-style: dashed; color: var(--ink-2); }
  &.est { border-style: dotted; } }

/* ---------- Warum ---------- */
.eye { position: relative; margin-top: 2rem;
  & img { filter: grayscale(1) contrast(1.05); }
  @media (prefers-reduced-motion: no-preference) {
    & img { animation: color-back 3.2s 0.6s ease-out forwards; }
  } }
@keyframes color-back { to { filter: grayscale(0) contrast(1); } }
.phases { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 2rem; border-top: 1.5px solid var(--ink);
  & li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.25rem 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); position: relative;
    @media (width >= 48rem) { grid-template-columns: 2rem 16rem 8rem 1fr; align-items: baseline; } }
  & .ph-n { font-family: var(--f-head); font-weight: 750; }
  & .ph-st { font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2); }
  & li[data-st="läuft"] .ph-st, & li[data-st="in progress"] .ph-st { color: var(--pen); font-weight: 700; }
  & .ph-st, & .ph-d { grid-column: 2; @media (width >= 48rem) { grid-column: auto; } }
  & .ph-d { color: var(--ink-2); }
  & .ph-i { width: 1.6rem; height: 1.4rem; position: relative; --pen: var(--ink); }
  & .ph-i .mark { position: static; width: 1.5rem; height: 1.3rem; } }
.ring { width: 1rem; height: 1rem; border: 2px solid var(--ink-2); border-radius: 50%; display: inline-block; margin-top: 0.3rem; }
.ring.half { background: conic-gradient(var(--pen) 0 50%, transparent 0); border-color: var(--pen); }

.songbar { display: flex; width: 100%; margin-top: 1.25rem; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--sheet);
  & span { flex: var(--d) 1 0; min-width: 0; font-family: var(--f-head); font-size: 0.68rem; font-stretch: 70%; padding: 0.4rem 0.2rem; text-align: center;
    border-right: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  & span:last-child { border-right: 0; }
  & span[data-sung] { background: color-mix(in oklab, var(--pen) 14%, var(--sheet)); } }
.notes { margin-top: 1.5rem; display: grid; gap: 0.25rem 1.5rem; @media (width >= 48rem) { grid-template-columns: max-content 1fr; }
  & dt { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-s); padding-top: 0.6rem; }
  & dd { margin: 0; color: var(--ink-2); padding-top: 0.55rem; @media (width >= 48rem) { border-top: 1px solid var(--rule); } }
  & dt { @media (width >= 48rem) { border-top: 1px solid var(--rule); } } }

/* Figuren */
.figs { display: grid; gap: clamp(1.25rem, 2vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); margin-top: 2rem; }
.fig { container: fig / inline-size; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 0.75rem 0.75rem 1.25rem;
  & h2 { font-size: var(--fs-2xl); font-stretch: 135%; margin-top: 0.9rem; }
  & .fig-kind { font-family: var(--f-head); color: var(--pen); font-weight: 650; font-size: var(--fs-s); }
  & dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.75rem 0; font-size: var(--fs-s); }
  & dt { color: var(--ink-2); font-family: var(--f-head); } & dd { margin: 0; }
  & p { font-size: var(--fs-s); }
  & .chips { margin-top: 0.9rem; } }

/* Tagebuch */
.diary { list-style: none; padding: 0; margin-top: 2.5rem; position: relative; display: grid; gap: clamp(2.5rem, 4vw, 4rem); }
.diary::before { content: ""; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0; width: 2px; background: var(--rule);
  @media (width >= 60rem) { left: 10.45rem; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .diary::after { content: ""; position: absolute; left: 0.45rem; top: 0.5rem; width: 2px; height: calc(100% - 0.5rem); background: var(--pen);
      transform-origin: top; animation: grow-y linear both; animation-timeline: view(); animation-range: cover 0% cover 100%;
      @media (width >= 60rem) { left: 10.45rem; } }
  }
}
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.entry { position: relative; padding-left: 2rem; display: grid; gap: 1rem;
  @media (width >= 60rem) { grid-template-columns: 9rem 1fr; padding-left: 0; column-gap: 3rem; }
  &::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--table); border: 2.5px solid var(--pen); z-index: 1;
    @media (width >= 60rem) { left: 10rem; } }
  &[data-c="wip"]::before { background: var(--pen); }
  & .when { font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2); line-height: 1.3;
    & b { display: block; color: var(--ink); font-size: var(--fs-m); } }
  & .body { display: grid; gap: 1rem; min-width: 0; }
  & h2 { font-size: var(--fs-xl); font-stretch: 110%; font-weight: 750; line-height: 1.15; }
  & .wip { font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 700; color: var(--pen); border: 1.5px solid var(--pen); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.5rem; vertical-align: 0.2em; } }
.clips { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
video { width: 100%; background: #000; }

/* Vorher/Nachher */
.compare { --x: 50%; position: relative; margin: 0; background: var(--film); padding: 4px; border-radius: 2px;
  & .cmp-box { position: relative; overflow: hidden; }
  & .cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
  & .cmp-after img { width: 100%; height: 100%; object-fit: cover; }
  & .tag { position: absolute; top: 0.5rem; font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 3px; background: rgb(0 0 0 / 0.7); color: #fff; z-index: 2; }
  & .tag-l { left: 0.5rem; } & .tag-r { right: 0.5rem; }
  & input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
  & .line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; translate: -50% 0; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4); }
  &:has(input:focus-visible) .line { background: var(--pen); width: 5px; }
  & figcaption { color: #d9dcdf; padding: 0.6rem 0.3rem 0.4rem; font-size: var(--fs-s); } }
html:not(.js) .compare { & .cmp-after { position: static; clip-path: none; margin-top: 4px; } & input, & .line { display: none; } & .tag-r { top: auto; bottom: 0.5rem; } }

/* Shots (Kontaktbogen) */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; margin-top: 1.5rem;
  & fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
  & legend { float: left; font-family: var(--f-head); font-size: var(--fs-s); font-weight: 700; margin-right: 0.5rem; }
  & label { font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 650; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1.5px solid var(--rule); cursor: pointer; background: var(--sheet); }
  & input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  & label:has(input:checked) { border-color: var(--pen); background: var(--pen); color: light-dark(#fff, #111214); }
  & label:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 2px; } }
.sheet { background: var(--film); padding: 10px; border-radius: 2px; margin-top: 1.25rem; container: sheet / inline-size; }
.shotgrid { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.shot { & a { display: block; text-decoration: none; color: #d9dcdf; }
  & img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #222; }
  & .edge { display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--f-head); font-stretch: 70%; font-size: var(--fs-xs); padding: 0.25rem 0.1rem; color: var(--edge); }
  & .t { display: block; font-family: var(--f-head); font-size: var(--fs-xs); color: #c9cdd1; padding: 0 0.1rem 0.35rem; line-height: 1.3; }
  & a:hover .t, & a:focus-visible .t { color: #fff; text-decoration: underline; }
  & .black { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; color: #bbb; font-size: var(--fs-xs); text-align: center; padding: 0.5rem; } }
.shotgrid-count { margin-top: 0.75rem; font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2); }
/* Filter ohne JavaScript per :has() */
.shots-page:has(#look-doku:checked) .shot:not([data-look="doku"]),
.shots-page:has(#look-story:checked) .shot:not([data-look="story"]),
.shots-page:has(#look-mem:checked) .shot:not([data-look="mem"]),
.shots-page:has(#look-perf:checked) .shot:not([data-look="perf"]),
.shots-page:has(#look-hope:checked) .shot:not([data-look="hope"]),
.shots-page:has(#look-black:checked) .shot:not([data-look="black"]),
.shots-page:has(#fig-sammy:checked) .shot:not([data-fig~="sammy"]),
.shots-page:has(#fig-mia:checked) .shot:not([data-fig~="mia"]),
.shots-page:has(#fig-flocke:checked) .shot:not([data-fig~="flocke"]),
.shots-page:has(#fig-keks:checked) .shot:not([data-fig~="keks"]),
.shots-page:has(#fig-kruemmel:checked) .shot:not([data-fig~="kruemmel"]),
.shots-page:has(#lip-ja:checked) .shot:not([data-lip="1"]) { display: none; }

/* Shot-Detail */
.shot-head { display: grid; gap: 1.5rem; @media (width >= 64rem) { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.shot-data { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.25rem; margin: 0; font-size: var(--fs-s);
  & dt { font-family: var(--f-head); color: var(--ink-2); } & dd { margin: 0; } }
.lyric { font-style: italic; font-size: var(--fs-l); line-height: 1.45; border-left: 4px solid var(--pen); padding-left: 1rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap;
  & a { font-family: var(--f-head); font-weight: 700; text-decoration: none; padding: 0.6rem 0.9rem; border: 1.5px solid var(--rule); border-radius: 6px; background: var(--sheet);
    &:hover { border-color: var(--pen); } }
  & span { font-size: var(--fs-xs); color: var(--ink-2); display: block; font-weight: 600; } }

/* Rohschnitt */
.cutroom { background: var(--film); color: #e7e9ea; border-radius: 3px; padding: clamp(0.5rem, 1.5vw, 1rem); margin-top: 2rem; }
.cutroom video { border-radius: 2px; }
.wave { position: relative; margin-top: 0.75rem; height: 72px; cursor: pointer; touch-action: none;
  & svg { width: 100%; height: 100%; display: block; }
  & .w-bg { fill: #3a3f45; } & .w-played { fill: var(--edge); }
  & .head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; left: 0; pointer-events: none; } }
.now { display: grid; gap: 0.25rem 1.5rem; margin-top: 0.9rem; font-family: var(--f-head); font-size: var(--fs-s);
  @media (width >= 48rem) { grid-template-columns: 7rem 1fr 2fr; }
  & .now-tc { color: var(--edge); font-variant-numeric: tabular-nums; }
  & .now-l { font-family: var(--f-text); font-style: italic; color: #c8ccd0; } }
.cut-list { margin-top: 2rem; }

/* Aufwand */
.dots { margin-top: 1.5rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(0.75rem, 2vw, 1.5rem);
  & svg { width: 100%; height: auto; overflow: visible; }
  & .gl line { stroke: var(--rule); } & .ax text { fill: var(--ink-2); font: 11px var(--f-head); }
  & .d-c { fill: var(--c1); } & .d-w { fill: var(--c2); } & .d-a { fill: var(--c3); } & .d-b { fill: var(--c4); }
  & .med line { stroke-width: 2; stroke-dasharray: 5 4; } & .med .m-c { stroke: var(--c1); } & .med .m-w { stroke: var(--c2); }
  & .med text { font: 600 11px var(--f-head); fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; }
  & .hit { fill: transparent; } & g.pt:hover :is(circle:not(.hit), rect, path) { stroke: var(--ink); stroke-width: 2; } }
.dots, .legend { --c1: light-dark(#2f6fc7, #4a86e8); --c2: light-dark(#b8571a, #d8762f); --c3: light-dark(#1d8a57, #3cc283); --c4: light-dark(#8a3fc9, #b07cf0); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--f-head); font-size: var(--fs-s); list-style: none; padding: 0; margin-top: 1rem;
  & li { display: flex; align-items: center; gap: 0.45rem; }
  & i { width: 0.8rem; height: 0.8rem; border-radius: 50%; display: inline-block; }
  & i.sq { border-radius: 2px; transform: rotate(45deg) scale(0.85); }
  & i.tri { border-radius: 0; clip-path: polygon(50% 0, 100% 90%, 0 90%); }
  & i.box { border-radius: 1px; transform: scale(0.85); } }
.bars { display: grid; gap: 0.6rem; margin-top: 1.25rem; list-style: none; padding: 0;
  & li { display: grid; gap: 0.25rem 0.75rem; grid-template-columns: minmax(5.5rem, 38%) 1fr 3.5rem; align-items: center; }
  & .bar { height: 14px; background: var(--sheet-2); border-radius: 3px; overflow: hidden; position: relative; }
  & .bar i { position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--chart, var(--pen)); border-radius: 0 3px 3px 0; }
  & .v { font-family: var(--f-head); font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bars .bar i { animation: fill-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes fill-in { from { width: 0; } }
.tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: var(--ink); color: var(--table);
  font: 600 var(--fs-xs)/1.35 var(--f-head); padding: 0.4rem 0.6rem; border-radius: 4px; white-space: nowrap; z-index: 5; &[hidden] { display: none; } }
.plot { position: relative; }

/* Benchmark-Diagramme in Beiträgen (Balken und Punktstreifen in HTML, damit sie auf dem Handy lesbar bleiben).
   Farben: Referenzpalette des dataviz-Skills, Slots 1–4, hell und dunkel mit dem Validator geprüft. */
.bench-card { margin: 2rem 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(0.9rem, 2.5vw, 1.5rem); font-family: var(--f-head);
  & .bench-title { margin: 0; font-weight: 800; font-size: var(--fs-m); }
  & .bench-sub { margin: 0.2rem 0 0; color: var(--ink-2); font-size: var(--fs-xs); } }
.bench-card, .bench-legend {
  & .s0 { --s: light-dark(#a3abb3, #5f666e); } & .s1 { --s: light-dark(#eb6834, #d95926); } & .s2 { --s: light-dark(#2a78d6, #3987e5); }
  & .s3 { --s: light-dark(#1baf7a, #199e70); } & .s4 { --s: light-dark(#eda100, #c98500); } }
.bench-card .bench-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: var(--fs-xs);
  & li { display: flex; align-items: center; gap: 0.45rem; margin: 0; } & li::before { content: none; } & i { background: var(--s); } }
.bench-card .bench { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.45rem; font-size: var(--fs-s);
  & .grp { font-weight: 750; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
  & .grp:first-child { margin-top: 0; }
  & .row { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr 5.5rem; gap: 0.2rem 0.75rem; align-items: center; }
  & .lab { color: var(--ink); line-height: 1.2; hyphens: manual; }
  & .v { font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; & small { font-weight: 500; color: var(--ink-2); } }
  & .track { height: 18px; position: relative; background: var(--sheet-2); border-radius: 0 4px 4px 0; }
  & .track i { position: absolute; top: 0; bottom: 0; left: var(--from, 0%); width: var(--w); background: var(--s); border-radius: 0 4px 4px 0; }
  & .track i.range { border-radius: 4px; }
  & .row[data-tip]:hover .track i { outline: 2px solid var(--ink); outline-offset: 1px; }
  & .mine .lab { font-weight: 750; } }
.bench.strips {
  & .strip { height: 30px; position: relative; border-bottom: 1px solid var(--rule); }
  & .strip b { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
  & .strip em { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--ink); }
  & .dot { position: absolute; top: calc(50% + var(--dy, 0px)); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--s); box-shadow: 0 0 0 2px var(--sheet); }
  & .dot::before { content: ""; position: absolute; inset: -6px; }
  & .dot.first { background: var(--sheet); border: 2px solid var(--s); box-shadow: none; }
  & .dot:hover { box-shadow: 0 0 0 2px var(--ink); z-index: 2; }
  & .axis .ticks { position: relative; height: 1.2rem; color: var(--ink-2); font-size: var(--fs-xs); }
  & .axis .ticks span { position: absolute; transform: translateX(-50%); } }
@media (max-width: 40rem) {
  .bench-card .bench .row { grid-template-columns: 1fr auto; & .lab { grid-column: 1 / -1; } }
  .bench-card .bench .axis .lab { display: none; }
}

.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin-top: 1.5rem;
  & > div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 1.25rem; display: grid; gap: 0.5rem; align-content: start; }
  & img { height: 3.25rem; width: auto; background: #111; padding: 0.4rem 0.6rem; border-radius: 3px; }
  & .role { font-family: var(--f-head); font-size: var(--fs-s); color: var(--pen); font-weight: 700; } }
.tools { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 1.5rem; border-top: 1.5px solid var(--ink);
  & li { display: grid; gap: 0.15rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); @media (width >= 48rem) { grid-template-columns: 12rem 1fr; } }
  & strong { font-family: var(--f-head); } & span { color: var(--ink-2); } }

/* ---------- Halle 77 Drive ---------- */
.notice { margin-top: 1.75rem; padding: 1rem 1.25rem; border: 1.5px solid var(--ink); border-left: 6px solid var(--pen); background: var(--sheet); border-radius: 3px; max-width: 72ch;
  & strong { font-family: var(--f-head); } }
.dyno { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); margin-top: 1.5rem; counter-reset: rank;
  & li { counter-increment: rank; border-bottom: 1px solid var(--rule); }
  & a { display: grid; grid-template-columns: 2.25rem 1fr auto; gap: 0.25rem 1rem; align-items: baseline; padding: 0.7rem 0; text-decoration: none;
    &::before { content: counter(rank); font-family: var(--f-head); font-weight: 800; color: var(--ink-2); }
    &:hover .dy-n { text-decoration: underline; text-decoration-color: var(--pen); } }
  & .dy-n { font-family: var(--f-head); font-weight: 700; }
  & .dy-s { grid-column: 2; color: var(--ink-2); font-size: var(--fs-s); }
  & .dy-v { grid-row: 1 / span 2; grid-column: 3; font-family: var(--f-head); font-weight: 850; font-stretch: 120%; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
  & .dy-v small { font-size: 0.5em; color: var(--ink-2); } }
.idea { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 1.5rem;
  & > div { border-top: 3px solid var(--pen); padding-top: 0.9rem; display: grid; gap: 0.4rem; align-content: start; }
  & p { color: var(--ink-2); } }

/* Fuhrpark */
.fp-filters { display: grid; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.fp-search { display: grid; gap: 0.35rem; font-family: var(--f-head); font-size: var(--fs-s); font-weight: 700;
  & input { font: inherit; font-family: var(--f-text); font-weight: 400; font-size: var(--fs-m); padding: 0.55rem 0.75rem; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--table); color: var(--ink); max-width: 30rem; } }
html:not(.js) .fp-search { display: none; }
.fp-count { font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2); margin-top: 1rem; }
.fp-list { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.car { container: car / inline-size; & > a { display: grid; height: 100%; text-decoration: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden;
    &:hover, &:focus-visible { border-color: var(--pen); } }
  & .car-in { padding: 0.75rem 0.9rem 0.9rem; display: grid; gap: 0.3rem; align-content: start; }
  & .car-mk { font-family: var(--f-head); font-size: var(--fs-xs); color: var(--ink-2); display: flex; justify-content: space-between; gap: 0.5rem; }
  & .car-n { font-family: var(--f-head); font-weight: 750; font-size: var(--fs-m); line-height: 1.2; }
  & .car-d { font-size: var(--fs-s); color: var(--ink-2); }
  & .chips { margin-top: 0.35rem; }
  &[hidden] { display: none; } }
.plate { aspect-ratio: 3 / 2; display: grid; align-content: space-between; padding: 0.7rem 0.8rem; background: var(--film); color: #d9dcdf;
  font-family: var(--f-head); position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.04) 0 1px, transparent 1px 24px), repeating-linear-gradient(0deg, rgb(255 255 255 / 0.04) 0 1px, transparent 1px 24px);
  & b { font-size: 1.15rem; font-stretch: 120%; font-weight: 800; line-height: 1.05; color: #fff; hyphens: auto; overflow-wrap: anywhere; }
  min-width: 0;
  & .pl-m { font-size: var(--fs-xs); color: var(--edge); }
  & .pl-f { font-size: var(--fs-xs); color: #9aa1a8; font-stretch: 80%; }
  & img.logo { position: absolute; right: 0.8rem; bottom: 0.8rem; width: 3.25rem; height: 3.25rem; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: 0.55; } }
@container car (inline-size < 15rem) { .plate b { font-size: 1rem; } }
.fp-wrap:has(#mod-vorhanden:checked) .car:not([data-mod="vorhanden"]),
.fp-wrap:has(#mod-alternative:checked) .car:not([data-mod="alternative"]),
.fp-wrap:has(#mod-gesucht:checked) .car:not([data-mod="gesucht"]),
.fp-wrap:has(#st-bestand:checked) .car:not([data-st="bestand"]),
.fp-wrap:has(#st-weg:checked) .car:not([data-st="weg"]),
.fp-wrap:has(#st-unklar:checked) .car:not([data-st="unklar"]),
.fp-wrap:has(#pr-ja:checked) .car:not([data-pr="1"]) { display: none; }

/* Fahrzeug-Datenblatt */
.vehicle { display: grid; gap: 2rem; margin-top: 1.5rem; @media (width >= 60rem) { grid-template-columns: 1fr 1fr; } }
.plates { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); & .plate { aspect-ratio: 3 / 2; } }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1.5px solid var(--ink);
  & dt, & dd { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  & dt { font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2); padding-right: 1.5rem; }
  & dd { margin: 0; }
  & .hint { display: block; font-size: var(--fs-xs); color: var(--ink-2); } }
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; display: grid; gap: 0.75rem; align-content: start; }

/* Hersteller */
.brands { list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); margin-top: 1.5rem;
  & a { display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 0.9rem; align-items: center; padding: 0.8rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; text-decoration: none;
    &:hover { border-color: var(--pen); } }
  & img { width: 3rem; height: 3rem; object-fit: contain; grid-row: span 2; }
  & b { font-family: var(--f-head); }
  & span { font-size: var(--fs-s); color: var(--ink-2); } }
.brand-logo { width: 5rem; height: 5rem; object-fit: contain; background: #fff; border-radius: 6px; padding: 0.4rem; }

/* Roadmap & Meilensteine */
.checks { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin-top: 1.5rem;
  & li { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1.1rem; display: grid; gap: 0.5rem; align-content: start; position: relative; }
  & li[data-st="geklaert"] { border-color: var(--pen); }
  & h3 { font-size: var(--fs-m); padding-right: 5rem; }
  & .st { position: absolute; top: 1rem; right: 1rem; }
  & p { font-size: var(--fs-s); color: var(--ink-2); } }
.miles { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0; border-top: 1.5px solid var(--ink);
  & li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.2rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  & .mi { font-family: var(--f-head); font-weight: 850; font-size: var(--fs-xl); color: var(--ink-2); line-height: 1; position: relative; }
  & li[data-st="erreicht"] .mi { color: var(--pen); }
  & .md { font-family: var(--f-head); font-size: var(--fs-s); color: var(--ink-2); }
  & h3 { font-size: var(--fs-m); }
  & p { grid-column: 2; color: var(--ink-2); font-size: var(--fs-s); } }

/* Statistik */
.statgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); margin-top: 1.5rem;
  & > section { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; min-width: 0; }
  & h3 { font-size: var(--fs-m); } & .sub { font-size: var(--fs-s); color: var(--ink-2); margin-top: 0.25rem; } }
.stack-bar { display: flex; height: 22px; border-radius: 3px; overflow: hidden; margin-top: 1rem; gap: 2px;
  & i { display: block; height: 100%; } & .s1 { background: var(--chart); } & .s2 { background: color-mix(in oklab, var(--chart) 45%, var(--sheet-2)); }
  & .s3 { background: repeating-linear-gradient(135deg, var(--sheet-2) 0 4px, var(--rule) 4px 6px); } }

/* Beitrag */
.article { max-width: 46rem; display: grid; gap: 1.1rem; margin-top: 1.5rem;
  & h2 { font-size: var(--fs-2xl); margin-top: 1rem; }
  & ul { padding-left: 1.2em; display: grid; gap: 0.5rem; } }
.download { display: inline-flex; gap: 0.75rem; align-items: center; padding: 0.9rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none; background: var(--sheet); font-family: var(--f-head); font-weight: 700;
  & small { font-weight: 500; color: var(--ink-2); } &:hover { border-color: var(--pen); } }

/* Launcher-Entwurf */
.mock { background: #16181b; color: #e6e8ea; border-radius: 6px; padding: 1rem; margin-top: 1.25rem; font-family: var(--f-head); border: 1px solid #2c3035; }
.mock-bar { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); color: #9aa1a8; padding-bottom: 0.75rem; border-bottom: 1px solid #2c3035;
  & b { color: #fff; font-stretch: 150%; font-weight: 900; font-size: var(--fs-m); } }
.mock-l { display: grid; gap: 1rem; margin-top: 1rem; @media (width >= 56rem) { grid-template-columns: 1fr 1.3fr 1fr; } }
.mock-col { display: grid; gap: 0.4rem; align-content: start; & > span { font-size: var(--fs-xs); color: #9aa1a8; } }
.mock-col label { display: block; padding: 0.5rem 0.65rem; border: 1px solid #2c3035; border-radius: 4px; cursor: pointer; font-size: var(--fs-s);
  & small { display: block; color: #9aa1a8; font-size: var(--fs-xs); }
  &:has(input:checked) { border-color: var(--green); background: rgb(79 207 142 / 0.12); }
  &:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
  & input { position: absolute; opacity: 0; width: 1px; height: 1px; } }
.mock-car { display: none; gap: 0.6rem; align-content: start; & .mc-n { font-family: var(--f-head); font-weight: 700; margin: 0; font-size: var(--fs-xl); font-stretch: 120%; }
  & .mv { display: flex; gap: 1.5rem; flex-wrap: wrap; } & .mv b { font-size: var(--fs-2xl); display: block; } & .mv span { font-size: var(--fs-xs); color: #9aa1a8; } }
.mock-l:has(#m-car-0:checked) .mock-car[data-i="0"], .mock-l:has(#m-car-1:checked) .mock-car[data-i="1"], .mock-l:has(#m-car-2:checked) .mock-car[data-i="2"],
.mock-l:has(#m-car-3:checked) .mock-car[data-i="3"], .mock-l:has(#m-car-4:checked) .mock-car[data-i="4"], .mock-l:has(#m-car-5:checked) .mock-car[data-i="5"] { display: grid; }
.mock-go { justify-self: start; background: #4fcf8e; color: #0b1a12; padding: 0.55rem 1rem; border-radius: 4px; font-weight: 800; margin-top: 0.5rem; }
.mock-info { display: grid; gap: 1rem; margin-top: 1rem; @media (width >= 56rem) { grid-template-columns: 1.3fr 1fr; } }
.mock-video { border: 1.5px dashed #4a5057; border-radius: 4px; display: grid; place-items: center; min-height: 6rem; color: #9aa1a8; font-size: var(--fs-s); padding: 1rem; text-align: center; }

/* Quellen */
.srcs { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 1rem; border-top: 1px solid var(--rule);
  & li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.15rem; }
  & span { color: var(--ink-2); font-size: var(--fs-s); } }
.cols3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin-top: 1.5rem; }

/* ---------- NCC ---------- */
.screens { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  & .wide { grid-column: 1 / -1; } }
.phone-row { display: grid; gap: 1.5rem; align-items: center; margin-top: 1.25rem; @media (width >= 48rem) { grid-template-columns: auto 1fr; }
  & .film { width: 14rem; padding: 6px; border-radius: 18px; & img { border-radius: 12px; } } }
.arch { display: grid; gap: 0.75rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  & > div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem; display: grid; gap: 0.5rem; align-content: start; }
  & > div.core { border: 2px solid var(--pen); }
  & p { font-size: var(--fs-s); color: var(--ink-2); } }
.flow { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; list-style: none; padding: 0; font-family: var(--f-head); font-size: var(--fs-s);
  & li { padding: 0.3rem 0.6rem; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--sheet); }
  & li + li::before { content: "→"; margin-right: 0.55rem; margin-left: -0.15rem; color: var(--pen); font-weight: 800; } }
.flow li + li { margin-left: 0; }
.feats { list-style: none; padding: 0; display: grid; gap: 1.5rem 2.5rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  & li { display: grid; gap: 0.4rem; align-content: start; }
  & h3 { font-size: var(--fs-m); display: flex; gap: 0.5rem; align-items: baseline; }
  & p { color: var(--ink-2); font-size: var(--fs-s); } }
.versions { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0; border-top: 1.5px solid var(--ink);
  & li { display: grid; gap: 0.15rem 1.25rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); @media (width >= 48rem) { grid-template-columns: 8rem 9rem 1fr; } }
  & time { font-family: var(--f-head); color: var(--ink-2); font-size: var(--fs-s); }
  & b { font-family: var(--f-head); } & p { color: var(--ink-2); font-size: var(--fs-s); } }

/* Lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; color: #fff;
  &::backdrop { background: rgb(8 9 10 / 0.9); }
  & img { max-height: 84vh; width: auto; margin-inline: auto; }
  & p { margin-top: 0.6rem; font-family: var(--f-head); font-size: var(--fs-s); }
  & button { position: absolute; top: 0.5rem; right: 0.5rem; font: 700 var(--fs-s) var(--f-head); background: #fff; color: #111; border: 0; border-radius: 4px; padding: 0.45rem 0.8rem; cursor: pointer; } }
body:has(dialog[open]) { overflow: hidden; }

/* Renderzeit-Diagramm, interaktiv */
.rt-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1rem; &[hidden] { display: none; }
  & .rt-btns { display: flex; gap: 0.35rem; }
  & button { font: 700 var(--fs-s) var(--f-head); min-width: 2.4rem; padding: 0.35rem 0.7rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); color: var(--ink); cursor: pointer;
    &:hover:not(:disabled) { border-color: var(--ink-2); } &:disabled { opacity: 0.45; cursor: default; } }
  & [data-z="in"], & [data-z="out"] { font: 600 1.15rem/1 system-ui, sans-serif; }
  & .rt-hint { font-size: var(--fs-s); color: var(--ink-2); margin: 0; } }
.legend button { display: flex; align-items: center; gap: 0.45rem; font: inherit; color: inherit; background: none; border: 0; padding: 0.15rem 0; cursor: pointer;
  &[aria-pressed="false"] { opacity: 0.4; text-decoration: line-through; } }
.rplot.js { & svg { touch-action: pan-y; user-select: none; } &.zoomed svg { cursor: grab; } &.zoomed svg:active { cursor: grabbing; }
  & g.pt { cursor: pointer; outline: none; }
  & g.pt.on :is(circle:not(.hit), rect, path), & g.pt:focus-visible :is(circle:not(.hit), rect, path) { stroke: var(--ink); stroke-width: 2.5; } }
.rcard { position: absolute; z-index: 6; width: 15.5rem; transform: translateX(-50%); pointer-events: none; display: grid; gap: 0.15rem;
  background: var(--ink); color: var(--table); border-radius: 6px; padding: 0.5rem; font: 500 var(--fs-xs)/1.35 var(--f-head); box-shadow: 0 6px 24px rgb(0 0 0 / 0.3);
  &[hidden] { display: none; }
  & img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; margin-bottom: 0.3rem; background: #222; }
  & b { font-weight: 800; font-size: var(--fs-s); } & .t { font-weight: 850; font-size: var(--fs-m, 1.05rem); font-variant-numeric: tabular-nums; }
  & .ok { color: light-dark(#7fe0ad, #1d8a57); font-weight: 700; } & .go { margin-top: 0.25rem; font-weight: 700; } & .muted { opacity: 0.75; margin-top: 0.25rem; } }
dialog.rclip { width: min(96vw, 1100px);
  & video { width: 100%; height: auto; max-height: 80vh; background: #000; display: block; }
  & a { color: #fff; } }

/* ---------- Fuß ---------- */
.foot { border-top: 1.5px solid var(--ink); margin-top: 3rem; background: var(--sheet); }
.foot-in { display: grid; gap: 0.75rem; padding-block: 2rem; font-size: var(--fs-s);
  & ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-family: var(--f-head); }
  & .foot-note { color: var(--ink-2); } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eye img { filter: none; }
}
@media (forced-colors: active) { .mark path { stroke: CanvasText; } .bars .bar i { background: CanvasText; } }
@media print { .top, .hero canvas, .progress, .subnav { display: none; } }

/* Projekt „bald“: ausgegraut, nicht verlinkt */
.proofs .proof.is-soon { --c: var(--ink-2); box-shadow: none; border-style: dashed;
  & .strip { filter: grayscale(1); opacity: 0.55; }
  & .proof-text > :not(.soon-note) { opacity: 0.6; }
  & .soon-note { justify-self: start; align-self: flex-start; border: 2px solid currentColor; border-radius: 2px; padding: 0.2rem 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-xs); transform: rotate(-2deg); }
}
