/* NANS — Not A News Site
   No external fonts, no JavaScript. System font stacks; light and dark. */

/* Self-hosted fonts (SIL OFL 1.1, fonts/*-OFL.txt), built by ops/brand/fonts.py:
   Figtree for headlines, Inter for the interface, Source Serif 4 for the reading
   column. Latin only; anything else falls back to the system font of the stack. */
@font-face {
    font-family: "Figtree"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/figtree-2.002-efe2a251.woff2") format("woff2");
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/inter-4.001-045ff847.woff2") format("woff2");
}
@font-face {
    font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/sourceserif-4.004-fc5721c7.woff2") format("woff2");
}
@font-face {
    font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
    src: url("../fonts/sourceserif-italic-4.004-bc397ab6.woff2") format("woff2");
}

/* Colour scheme: docs/gestaltung.md. Components use only the semantic
   tokens below the palette; the palette itself is the single source of hex values. */
:root {
    /* Palette: violet is the one accent colour of NANS */
    --violet-200: #cdbfff;
    --violet-400: #a48cff;
    --violet-600: #5a2dff;
    --violet-850: #241d3d;
    --violet-950: #120d24;
    /* Ink: cool dark neutrals */
    --ink-50: #ecebf1;
    --ink-300: #a4a2ae;
    --ink-700: #2e2c36;
    --ink-800: #1a1920;
    --ink-925: #121116;
    --ink-950: #0e0d12;
    --black: #000000;
    /* Signal colours, each with one meaning */
    --green-300: #6fd3a0;
    --green-950: #12291d;
    --amber-300: #f2b65a;
    --amber-950: #2d2010;
    --red-300: #ff8a80;
    --red-950: #321615;
    --yellow-300: #ffd84d;
    --yellow-500: #f4c400;
    --yellow-950: #2b2300;

    /* Page. NANS has one appearance and it is dark: the mosaic, the banner and
       the footer were always night surfaces, so a light scheme only ever dressed
       the space around them. There is no prefers-color-scheme branch - if a value
       belongs to the page, it is written here, once. */
    --paper: var(--ink-925);
    --paper-raised: var(--ink-800);
    --ink: var(--ink-50);
    --muted: var(--ink-300);
    --line: var(--ink-700);
    --accent: var(--violet-400);
    --accent-soft: var(--violet-850);
    --on-accent: var(--violet-950);
    --ok: var(--green-300);
    --ok-soft: var(--green-950);
    --warn: var(--amber-300);
    --warn-soft: var(--amber-950);
    --bad: var(--red-300);
    --bad-soft: var(--red-950);
    --test: var(--yellow-300);
    --test-stripe: var(--yellow-500);
    --test-ink: var(--yellow-950);
    /* Carbon: the diagonal hatch as a faint black texture (cards) */
    --carbon: color-mix(in srgb, var(--black) 32%, transparent);

    /* Night surfaces: the mosaic tiles and the footer, one step below the page */
    --night: var(--ink-950);
    --night-text: var(--ink-50);
    --night-muted: var(--ink-300);
    --night-line: var(--ink-700);
    --night-accent: var(--violet-400);
    --on-night-accent: var(--violet-950);
    --night-carbon: color-mix(in srgb, var(--black) 50%, transparent);

    /* Project banner: from violet black to a deep violet (the logo violet darkened) */
    --promo-from: var(--violet-950);
    --promo-via: color-mix(in oklch, var(--violet-600) 35%, var(--violet-950));
    --promo-to: color-mix(in oklch, var(--violet-400) 62%, var(--violet-950));
    --promo-eyebrow: var(--violet-200);

    /* The reading column. The fallbacks only cover the moment before the web
       font arrives: Charter and Georgia are the closest in width of what is
       installed anyway, so the line does not jump when it swaps. */
    --serif: "Source Serif 4", Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Bold, modern sans for the start page headlines */
    --display: Figtree, "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
    /* Narrow cut of the same character for the persona monograms */
    --condensed: "Avenir Next Condensed", Bahnschrift, "Roboto Condensed", "Ubuntu Sans", "Arial Narrow", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Cascadia Mono", monospace;

    /* Type scale (docs/gestaltung.md). Every size on a page comes from this
       ladder: a component picks a step, it never invents a number. Each step is
       a size only - the line height belongs to the component, because the same
       size sits tighter in a heading than in a reading column. */
    --text-display: clamp(2rem, 4.6vw, 3rem);   /* article title */
    --text-title: clamp(1.7rem, 2.4vw, 2.375rem); /* page title, lead tile */
    --text-section: 1.5rem;   /* section head, subheads in an article */
    --text-card: 1.2rem;      /* teaser and card titles, h3 */
    --text-card-sm: 1.125rem; /* titles of the small cards: compact teaser, side tile */
    --text-lead: 1.3rem;      /* lead paragraph (serif) */
    --text-body: 1.125rem;    /* reading column (serif) */
    --text-ui: var(--nav-size); /* navigation, links with an arrow, buttons */
    --text-small: .92rem;     /* teaser summary, caption, sources */
    --text-meta: .8rem;       /* mono: ressort, timestamps, data lines */
    --text-label: .72rem;     /* mono caps: chips and markers */

    /* Spacing scale: six steps, nothing between them. An article page uses only
       these, which is what makes its rhythm readable as one. */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1.5rem;
    --space-5: 2.5rem;
    --space-6: 3.5rem;

    --radius: 6px;
    /* One container for header, start page and footer: the full window width with a small margin */
    --gutter: clamp(1.25rem, 2.5vw, 2.75rem);
    --narrow: 44rem;
    /* Header sizes, here so the start page can fit the mosaic below the header into the window */
    --logo-h: clamp(2.3rem, 3.5vw, 4rem);
    --name-size: clamp(1rem, 1.3vw, 1.45rem);
    --nav-size: clamp(.9rem, .9vw, 1rem);
    /* A navigation link is 1.8em plus its 2 px bar high */
    --navbar-h: max(clamp(2.5rem, 2.5vw, 2.75rem), calc(var(--nav-size) * 1.8 + 2px + var(--gutter) * .35));
    /* Brand bar (logo or two-line claim, whichever is taller) and navigation bar */
    --header-h: calc(var(--gutter) * 1.6 + max(var(--logo-h), var(--name-size) * 2.24) + var(--navbar-h));
    /* Gap between the navigation and the start page mosaic, as below the brand bar */
    --front-gap: calc(var(--gutter) * .6);
    /* Seam between the tiles of the start page mosaic: the mosaic background
       showing through */
    --tile-seam: 2px;
    /* A mid grey, not the darkest value: the pictures have both near-black and
       bright areas, and only a tone from the middle of the range stands out
       against either of them. */
    --tile-seam-color: var(--night-line);
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    /* the wide lead image must never cause sideways scrolling */
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font: 1.0625rem/1.65 var(--sans);
    overflow-wrap: break-word;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

code, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--accent-soft); padding: .05em .35em; border-radius: 4px; }

/* Every heading of the theme is set in the display face; the components below
   only change size and weight. Before, these three fell back to the serif,
   which is why the subheads inside an article were the only headings on the
   whole site not set in Figtree. */
h1, h2, h3 { font-family: var(--display); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--text-section); margin: var(--space-5) 0 var(--space-3); }
h3 { font-size: var(--text-card); margin: var(--space-4) 0 var(--space-2); }

.wrap { margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) - 2rem + 2 * var(--gutter)); }
/* Same measure as the title block of an article, so switching between the
   article and its provenance tab keeps the header in place. */
.wrap--article { max-width: calc(64rem + 2 * var(--gutter)); }

.muted { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

/* AI chips */
/* Carbon hatch: the same diagonal stripes as the section mark, as a texture.
   An element sets --hatch-color; a mask turns it into a gradient. */
.tile__body::before, .persona::before, .promo::before {
    background: repeating-linear-gradient(-60deg, var(--hatch-color) 0 6px, transparent 6px 10px);
    /* Strongest at the bottom, gone at the top */
    mask-image: linear-gradient(to top, var(--black) 0%, transparent 100%);
}
.ai-chip {
    display: inline-block; font: 700 var(--text-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
    background: var(--accent); color: var(--on-accent); padding: .3em .55em; border-radius: 2px; margin-right: .45rem; vertical-align: .1em;
}
.ai-tag { font: 700 .62rem/1 var(--mono); letter-spacing: .06em; color: var(--accent); border: 1px solid currentColor; border-radius: 2px; padding: .12em .3em; vertical-align: .15em; }
.ai-chip--title { font-size: .45em; vertical-align: .35em; margin-left: .2rem; }
/* The byline name runs in the text face of its line, only heavier and in the accent. */
.author-chip { font-family: inherit; font-size: inherit; font-weight: 600; color: var(--accent); text-decoration: none; }
.author-chip:hover { text-decoration: underline; }
.ressort { font: 700 var(--text-label)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.ressort + .ressort::before { content: "·"; margin: 0 .45rem 0 .25rem; }
.author-page__ressorts { color: var(--muted); }
.genre-chip { display: inline-block; font: 700 var(--text-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; padding: .25em .45em; border-radius: 2px; vertical-align: .1em; }
.test-chip { font: 700 var(--text-label)/1 var(--mono); text-transform: uppercase; background: var(--test); color: var(--test-ink); padding: .25em .45em; border-radius: 2px; }

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 700 .8rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
    padding: .9em 1.3em; border: 2px solid transparent; border-radius: 2px; transition: background-color .15s, color .15s;
}
.button--outline { border-color: var(--accent); color: var(--accent); }
.button--outline:hover { background: var(--accent); color: var(--on-accent); }
.button--accent { background: var(--accent); color: var(--on-accent); }
.button--accent:hover { background: var(--ink); color: var(--paper); }
/* White on the violet banner, after the button pattern of docs/gestaltung.md:
   Inter, no capitals, 1 px frame, transparent; filled on hover */
.button--white {
    font: 600 var(--nav-size)/1 var(--sans); letter-spacing: 0; text-transform: none;
    padding: .85em 1.2em; border: 1px solid #fff; border-radius: 0; color: #fff;
}
.button--white:hover { background: #fff; color: var(--ink-950); }

/* Header: a brand bar (big logo with subtitle on its baseline, two-line claim),
   a rule across the full width, then the navigation with the search field. */
.site-header { background: var(--paper); }
/* The rule below the brand bar stops at the gutter, flush with the content */
.site-header__brandbar {
    background: linear-gradient(var(--line), var(--line)) bottom center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.site-header__brandbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
    padding-block: var(--gutter) calc(var(--gutter) * .6);
}
/* Logo: generated SVG (ops/brand/wordmark.py), letters in the text colour, bars in the accent */
.logo { display: block; height: 1em; width: auto; overflow: visible; }
.logo__bar { fill: var(--accent); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand__logo { height: 2.45rem; }
.brand:hover { color: var(--ink); }
.site-header .brand { align-items: flex-end; gap: clamp(.9rem, 1.4vw, 1.6rem); }
.site-header .brand__logo { height: var(--logo-h); }
/* The subtitle sits on the baseline of the letters: the logo reaches 24 % of its
   height below the baseline, the line box about 0.2 em. */
.brand__name { font: 400 var(--name-size)/1 var(--sans); color: var(--ink); white-space: nowrap; margin-bottom: calc(var(--logo-h) * .24 - var(--name-size) * .2); }
/* Decorative "////", drawn instead of typed so it never becomes part of the text.
   The strokes run from edge to edge and are cut flat there, like the top and the
   baseline of a capital. */
.slashes {
    display: inline-block; flex: none; width: 2em; height: .85em; color: var(--muted); background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 14'%3E%3Cpath d='M.88 14.8 7.17-.8M8.88 14.8l6.29-15.6M16.88 14.8l6.29-15.6M24.88 14.8l6.29-15.6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.site-header__claim { display: flex; align-items: flex-start; gap: .55em; margin: 0; text-align: right; font: 400 clamp(1rem, 1.3vw, 1.45rem)/1.12 var(--sans); color: var(--ink); }
/* Flush with the capitals of the first line (Inter: cap height .7275em; at line-height
   1.12 the cap top lies .1962em below the top of the line; browsers render the glyphs
   about .03em higher, measured at three sizes). */
.site-header__claim .slashes { width: 1.663em; height: .7275em; margin-top: .166em; margin-right: -2px; }
.site-header__claim-text > span { display: block; white-space: nowrap; }
.site-header__claim-accent { color: var(--accent); }

/* Three columns of equal outer width, so the search field sits in the exact centre */
.site-header__navbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 2rem; min-height: var(--navbar-h); padding-top: calc(var(--gutter) * .35); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(1.2rem, 2.6vw, 2.8rem); font: 400 var(--nav-size)/1 var(--sans); }
.site-nav a { padding-block: .45em .35em; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"]:hover { color: var(--ink); }
/* Magnifier in front of the field, the underline only below the field: no visible box */
/* Up to 29rem wide, narrower as long as the navigation on the left needs the room */
.site-search { display: flex; align-items: center; gap: .6rem; width: clamp(14rem, 100vw - 62rem, 29rem); min-width: 0; }
/* Same size and box as a navigation link (.45em above, .35em plus the 2 px bar below,
   here 1 px line plus 1 px padding), so baselines and bottom lines meet */
.site-search__input {
    flex: 1; min-width: 0; padding: .45em 0 calc(.35em + 1px); border: 0; border-bottom: 1px solid var(--muted); border-radius: 0;
    background: none; outline: 0; transition: border-color .15s;
    -webkit-appearance: none; appearance: none;
    font: 400 var(--nav-size)/1 var(--sans); color: var(--ink);
}
.site-search__input:focus { border-bottom-color: var(--accent); }
.site-search__input::placeholder { color: var(--muted); opacity: 1; }
.site-search__input::-webkit-search-decoration { -webkit-appearance: none; }
.site-search__button {
    display: grid; place-items: center; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer;
}
.site-search__button:hover, .site-search:focus-within .site-search__button { color: var(--accent); }
.site-search__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-search__button svg { display: block; width: 1.2rem; height: auto; }
/* AI disclosure at the right end of the bar: outlined "100 % KI" chip, then the link
   text in the size and colour of the navigation */
.site-header__ai {
    justify-self: end; display: flex; align-items: center; gap: .8rem;
    font: 400 var(--nav-size)/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-header__ai .ai-chip {
    margin: 0; padding: .4em .6em; font-size: .8rem;
    background: none; color: var(--ink); border: 1px solid var(--accent);
}
.site-header__ai:hover .site-header__ai-more { color: var(--accent); }
.site-header__ai:hover .ai-chip { background: var(--accent); color: var(--on-accent); }
@media (max-width: 1100px) {
    .site-header__ai-more { display: none; }
}
@media (max-width: 560px) {
    .brand__name { display: none; }
    /* Navigation on its own row, below it the search left and the AI label right */
    .site-header__navbar { grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-bottom: .4rem; }
    .site-nav { grid-column: 1 / -1; }
    /* Wraps on very narrow screens instead of cutting off the last item */
    .site-nav { gap: 0 .9rem; font-size: .95rem; }
    /* Only the button remains; submitted empty it opens the search page */
    .site-search { width: auto; }
    .site-search__input { display: none; }
}

/* Test banner */
.test-banner {
    background: repeating-linear-gradient(-45deg, var(--test), var(--test) 14px, var(--test-stripe) 14px, var(--test-stripe) 28px);
    color: var(--test-ink); padding: .8rem 0; font-weight: 500;
}
.test-banner .wrap { background: var(--test); padding-block: .35rem; border-radius: var(--radius); }
.test-inline { background: var(--test); color: var(--test-ink); padding: .6rem .8rem; border-radius: var(--radius); }

/* Experiment notice (partials/experiment-note.html.twig): a night surface that
   sticks to the bottom edge and slides up once. Sticky, not fixed - as the last
   element in the body it is pinned while there is page left to scroll and then
   comes to rest in the flow, so it never covers the end of the footer.
   Dismissing it is a form post that sets a cookie (narb.php), so the notice is
   simply not rendered afterwards - nothing here hides it. */
.experiment-note {
    position: sticky; bottom: 0; z-index: 20;
    background: var(--night); color: var(--night-text);
    border-top: 2px solid var(--night-accent);
    box-shadow: 0 -1rem 2.5rem color-mix(in srgb, var(--black) 45%, transparent);
    animation: experiment-note-up .45s .35s ease-out both;
}
@keyframes experiment-note-up { from { transform: translateY(100%); } to { transform: none; } }
.experiment-note__inner {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2.5rem; padding-block: 1.1rem;
}
.experiment-note__text { flex: 1 1 30rem; max-width: 76ch; }
.experiment-note__text p { margin: 0; color: var(--night-muted); }
.experiment-note__title { margin: 0 0 .3rem !important; color: var(--night-text) !important; font: 600 1.25rem/1.25 var(--display); }
.experiment-note__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
/* A <button>, so the browser default font and cursor have to be reset. */
.experiment-note__done { cursor: pointer; appearance: none; }
.experiment-note__done:focus-visible { outline: 2px solid var(--night-text); outline-offset: 3px; }

.site-main { padding: 2rem 0 4rem; min-height: 55vh; }
.page-start .site-main { padding-top: 0; }

/* Section head, the pattern of "Aus der KI-Redaktion": hatch, title, a rule up to
   the optional "more" link. Hatch and rule are drawn, so the markup is only the
   heading and the link. Headings in running text (.prose h2) get the same look. */
.section-head, .prose h2 { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 var(--space-3); }
.section-head::before, .prose h2::before {
    content: ""; flex: none; width: 3rem; height: 1.25rem; opacity: .85;
    background: repeating-linear-gradient(-60deg, currentColor 0 2px, transparent 2px 7px);
}
.section-head::after, .prose h2::after { content: ""; order: 1; flex: 1 0 1.5rem; height: 1px; background: var(--line); margin-left: .3rem; }
.section-head__title, .prose h2 { margin: 0; font: 600 var(--text-section)/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.prose h2 { margin: var(--space-5) 0 var(--space-3); }
/* In running content (author page, project page) a head keeps distance from what precedes it */
* + .section-head { margin-top: var(--space-5); }
.section-head__more { order: 2; flex: none; margin-left: .65rem; font: 400 var(--text-ui)/1 var(--sans); color: var(--accent); text-decoration: none; white-space: nowrap; }
.section-head__more:hover { text-decoration: underline; }
/* Without the rule, e.g. the footer columns */
.section-head--plain::after { display: none; }
.section-head--small { gap: .9rem; }
.section-head--small::before { width: 2.2rem; height: 1rem; }
.section-head--small .section-head__title { font-size: var(--text-card); }
@media (max-width: 560px) {
    .section-head { flex-wrap: wrap; row-gap: .4rem; }
    .section-head::after { display: none; }
    .section-head__more { margin-left: auto; }
}
.hero__eyebrow { font: 600 var(--text-meta)/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 .7rem; }
.page-title { font-size: var(--text-title); margin: 0 0 var(--space-4); }
.page-intro { color: var(--muted); max-width: 44rem; margin-top: -.4rem; margin-bottom: 2rem; }

/* Teasers: one partial for every list (archive, search, author page, start page
   below the mosaic). Picture 16:9, meta line in mono, title in Figtree, summary,
   author with the check as link to the provenance tab. Variants: card (default),
   compact (square picture, no summary), opinion (no picture). The big one in the
   ressort sections is the main tile of the mosaic. */
.teaser { position: relative; display: flex; flex-direction: column; min-width: 0; }
.teaser__image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: .9rem; background: var(--line); }
.teaser__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.teaser:hover .teaser__image img { transform: scale(1.03); }
/* Every picture is AI-made: labelled in lists, too (the article page names model and motif). */
.teaser__ai {
    position: absolute; left: .5rem; bottom: .5rem; padding: .3em .45em; border-radius: 2px;
    font: 700 .62rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
    background: color-mix(in srgb, var(--night) 78%, transparent); color: var(--night-text);
}
.teaser--compact .teaser__ai { left: .25rem; bottom: .25rem; font-size: .52rem; }
/* Without a picture: the wordmark as a watermark, oversized and cropped at the
   right edge on the hatch - the device of a tile without a picture, in the colours
   of the page. The width is relative, so the mark scales from the card down to the
   compact thumbnail without a breakpoint. It is kept stronger than in the tile
   (10 %): these boxes are a fraction of its area, and a mark that faint would read
   as dirt instead of as a mark. */
.teaser__image--none {
    background: repeating-linear-gradient(-60deg, var(--carbon) 0 6px, transparent 6px 10px), var(--paper-raised);
}
.teaser__mark {
    position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 92%;
    color: color-mix(in srgb, var(--ink) 20%, transparent);
    pointer-events: none; user-select: none;
}
.teaser__mark .logo { width: 100%; height: auto; }
.teaser__mark .logo__bar { fill: currentColor; }
.teaser--test .teaser__image { outline: 2px dashed var(--test); outline-offset: 3px; }
.teaser__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 0; margin: 0 0 var(--space-1); font: 400 var(--text-meta)/1.4 var(--mono); color: var(--muted); }
.teaser__ressort { text-transform: uppercase; }
.teaser__ressort::after { content: "·"; margin-inline: .6em; }
.teaser__meta .genre-chip, .teaser__meta .test-chip { margin-left: .7em; }
.teaser__title { margin: 0 0 var(--space-2); font: 700 var(--text-card)/1.12 var(--display); letter-spacing: 0; text-wrap: balance; hyphens: manual; }
.teaser__title a { color: var(--ink); text-decoration: none; }
.teaser__title a:hover { color: var(--accent); }
.teaser__summary {
    margin: 0 0 var(--space-3); font: 400 var(--text-small)/1.5 var(--sans); color: var(--muted);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.teaser__by { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: 0; font: 400 var(--text-meta)/1.45 var(--mono); }
.teaser__author { color: var(--accent); text-decoration: none; white-space: nowrap; }
.teaser__author .ai-tag { font-size: .85em; }
.teaser__check { color: var(--ok); text-decoration: none; white-space: nowrap; }
.teaser__author:hover, .teaser__check:hover { text-decoration: underline; }

/* Compact: square picture left, no summary */
.teaser--compact { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.teaser--compact .teaser__image { margin: 0; aspect-ratio: 1 / 1; }
.teaser--compact .teaser__title { font-size: var(--text-card-sm); line-height: 1.15; margin-bottom: var(--space-1); }

/* Opinion: no picture, the chip marks the genre */
.teaser--opinion .teaser__title { font-size: var(--text-lead); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 2.4rem 1.5rem; }
/* One row on the start page: up to four columns */
.card-grid--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* Start page: date bar and mosaic of the eight newest articles.
   One dark surface: the tiles are divided by a seam of the mosaic background,
   no borders, shadows or radii between them. The lead tile is the entry point
   through its size; the side tiles are turned down to support that, which the
   pictures themselves only half allow (see below).
   Text sits on the pictures in the night colours. */
.front { container-type: inline-size; padding-top: var(--front-gap); }

.mosaic {
    /* Height: 45 % of the container width (the proportions of the layout), at most
       the window below the header and the gap above the mosaic, so the whole mosaic
       is in view; long titles may make the row taller, never clipped. All columns
       stretch to it. */
    display: grid; grid-template-rows: minmax(max(34rem, min(45cqw, 100svh - var(--header-h) - var(--front-gap))), auto);
    grid-template-columns: minmax(0, 24.3fr) minmax(0, 48.5fr) minmax(0, 27.2fr);
    gap: var(--tile-seam);
    background: var(--tile-seam-color);
}
.mosaic > .tile--lead { grid-column: 2; grid-row: 1; }
.mosaic__col--left { grid-column: 1; grid-row: 1; }
.mosaic__col--right { grid-column: 3; grid-row: 1; }
.mosaic--no-right { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: minmax(max(30rem, min(48cqw, 100svh - var(--header-h) - var(--front-gap))), auto); }
.mosaic--single { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(max(26rem, min(42cqw, 100svh - var(--header-h) - var(--front-gap))), auto); }
.mosaic--single > .tile--lead { grid-column: 1; }
.mosaic__col { display: flex; flex-direction: column; gap: var(--tile-seam); min-width: 0; }
/* The newer tile of a column is a little taller. */
.mosaic__col--left > :nth-child(1) { flex: 36 1 0; }
.mosaic__col--left > :nth-child(2) { flex: 34 1 0; }
.mosaic__col--left > :nth-child(3) { flex: 30 1 0; }
.mosaic__col--right > * { flex: 24 1 0; }
.mosaic__col--right > :first-child { flex-grow: 28; }

/* overflow: clip, not hidden: a tile never gets smaller than its text. */
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; overflow: clip; color: var(--night-text); background: var(--night); }
.tile__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.tile:hover .tile__image { transform: scale(1.03); }
/* The smaller tiles show a slightly closer crop: centred horizontally, a little
   above the middle vertically, where the generated motifs usually have their heads.
   They also carry less light, so they stay behind the lead tile.
   One factor for all of them cannot do that: brightness() multiplies, so a bright
   picture stays bright, and the image model spreads its pictures over a far wider
   range than any single step covers: over the 74 pictures published so far the
   brightest is 3.3 times the darkest (0.84 against 0.25 of full light).
   The backend therefore measures every picture (App\Images\ToneCalculator) and the
   tile carries the result as one of six steps. The factors pull all of them into
   0.19-0.25, which is below 0.25 - the darkest picture in the archive - so the lead
   tile stays the brightest thing on the page whichever picture it got.
   A tile without a measurement keeps the flat step this had before.
   Pointer or keyboard brings the picture back to full strength. */
.mosaic__col .tile { --tone: .78; }
.mosaic__col .tile--tone-1 { --tone: .8; }
.mosaic__col .tile--tone-2 { --tone: .62; }
.mosaic__col .tile--tone-3 { --tone: .5; }
.mosaic__col .tile--tone-4 { --tone: .41; }
.mosaic__col .tile--tone-5 { --tone: .34; }
.mosaic__col .tile--tone-6 { --tone: .28; }
.mosaic__col .tile__image { transform: scale(1.15); transform-origin: 50% 35%; filter: brightness(var(--tone)); }
.mosaic__col .tile:hover .tile__image,
.mosaic__col .tile:focus-within .tile__image { transform: scale(1.18); filter: none; }
/* Without a picture: the hatch stays as a quiet texture - at the angle of the
   section mark, like every other carbon hatch - and the wordmark takes
   the place of the motif, oversized and cropped at the right edge, the device of
   the project banner. It sits centred, where a tile without a picture is empty,
   not down with the text. */
.tile--no-image { background: repeating-linear-gradient(-60deg, color-mix(in srgb, var(--night-accent) 6%, transparent) 0 12px, transparent 12px 20px), var(--night); }
.tile__deco {
    position: absolute; z-index: -1; right: -2.5%; top: 50%; transform: translateY(-50%); width: 62%;
    color: color-mix(in srgb, var(--night-text) 10%, transparent);
    pointer-events: none; user-select: none;
}
.tile__deco .logo { width: 100%; height: auto; }
.tile__deco .logo__bar { fill: currentColor; }
/* The gradient belongs to the text: it darkens only behind it and grows with it.
   The top padding (--fade) is a long, eased fade into the picture; the negative
   margin lets it reach over the picture without making the tile taller, so the
   text only reserves --space above it. */
.tile__body {
    --fade: 6.5rem;
    --space: 2.2rem;
    margin-top: calc(var(--space) - var(--fade));
    padding: var(--fade) 1.4rem .95rem;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--night) 82%, transparent) 0%,
        color-mix(in srgb, var(--night) 58%, transparent) calc(100% - var(--fade)),
        color-mix(in srgb, var(--night) 34%, transparent) calc(100% - var(--fade) * .62),
        color-mix(in srgb, var(--night) 14%, transparent) calc(100% - var(--fade) * .3),
        transparent 100%);
}
.tile--no-image .tile__body { background: none; }
/* Carbon over the lower part of the picture, fading upwards. z-index on the flex
   item (not position) keeps the tile as containing block for the hatch and the
   title link, and paints the hatch above the gradient but below the text. */
.tile__body { z-index: 1; }
.tile__body::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; --hatch-color: var(--night-carbon);
    mask-image: linear-gradient(to top, color-mix(in srgb, var(--black) 55%, transparent) 0%, color-mix(in srgb, var(--black) 18%, transparent) 25%, transparent 50%);
}
.tile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 0; margin: 0 0 .25rem; font: 400 .8rem/1.35 var(--mono); color: color-mix(in srgb, var(--night-text) 90%, transparent); }
.tile__ressort { text-transform: uppercase; }
.tile__ressort::after { content: "·"; margin-inline: .6em; }
.tile__meta .test-chip { margin-left: .6em; }
.tile__title { margin: 0 0 .25rem; font: 700 clamp(1.05rem, 1.2vw, 1.2rem)/1.12 var(--display); letter-spacing: 0; text-wrap: balance; hyphens: manual; }
.mosaic__col--right .tile__title { font-size: clamp(1rem, 1.13vw, 1.125rem); }
.tile__link { color: inherit; text-decoration: none; }
/* The title link covers the whole tile; the author link stays clickable above it. */
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__link:hover { color: inherit; }
.tile__link:focus-visible { outline: none; }
.tile__link:focus-visible::after { outline: 3px solid var(--night-accent); outline-offset: -3px; }
.tile__teaser { margin: .7rem 0 0; max-width: 33em; font: 400 var(--text-body)/1.4 var(--sans); color: color-mix(in srgb, var(--night-text) 88%, transparent); }
.tile__author { margin: .2rem 0 0; font: 400 .8rem/1.45 var(--mono); }
.tile__author a {
    position: relative; z-index: 2; color: var(--night-accent); text-decoration: none;
    /* The line itself is 15 px high; a touch target needs 24 px (WCAG 2.5.8).
       The padding enlarges the target, the negative margin keeps the line box
       where it was, so nothing in the tile moves. */
    display: inline-block; padding-block: .3rem; margin-block: -.3rem;
}
.tile__author a:hover { text-decoration: underline; }
.tile__author a:focus-visible { outline-color: var(--night-accent); }
/* The AI label of the start page: legible, it carries the disclosure there */
.tile__author .ai-tag { color: inherit; font-size: .85em; }

.tile--lead .tile__body { --fade: 10rem; padding-inline: 2.4rem; padding-bottom: 1.3rem; }
.tile--lead .tile__meta { font-size: .9rem; margin-bottom: .4rem; }
.tile--lead .tile__title { max-width: 14em; font-weight: 800; font-size: var(--text-title); line-height: .98; letter-spacing: 0; }
.tile--lead .tile__author { margin-top: .7rem; font-size: .875rem; }

/* Tablet: main story on top, the two columns side by side below. */
@media (max-width: 1023px) {
    .mosaic, .mosaic--no-right, .mosaic--single { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mosaic > .tile--lead { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
    .mosaic__col--left, .mosaic__col--right { grid-row: 2; }
    .mosaic__col--left { grid-column: 1; }
    .mosaic__col--right { grid-column: 2; }
    .mosaic--no-right .mosaic__col--left { grid-column: 1 / -1; }
    .mosaic__col .tile__body { --space: 6rem; }
    .tile__title, .mosaic__col--right .tile__title { font-size: 1.125rem; }
}
/* Phone: one column, newest first. */
@media (max-width: 639px) {
    .mosaic, .mosaic--no-right { grid-template-columns: minmax(0, 1fr); }
    .mosaic__col--left, .mosaic__col--right { grid-column: 1; grid-row: auto; }
    .mosaic > .tile--lead { aspect-ratio: 4 / 5; }
    .mosaic__col > * { flex: none; aspect-ratio: 16 / 11; }
    .mosaic__col .tile__body { --space: 2.6rem; }
    .tile__body, .tile--lead .tile__body { padding-inline: 1rem; padding-bottom: .9rem; }
    .tile--lead .tile__title { font-size: 1.7rem; }
    .tile--lead .tile__teaser { font-size: 1rem; }
}

/* Start page: the personas with their newest article */
.newsroom { margin-top: 1.75rem; }
.personas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .875rem; }
.persona { position: relative; isolation: isolate; display: flex; gap: 1.5rem; align-items: flex-start; padding: .75rem; background: var(--paper-raised); }
.persona::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; --hatch-color: var(--carbon);
}
.persona__mark {
    flex: none; display: grid; place-items: center; width: 5.4rem; height: 5.5rem; padding-bottom: .1em;
    background: var(--paper); border: 1px solid var(--line); color: var(--accent);
    font: 700 3.2rem/1 var(--condensed); font-stretch: condensed; letter-spacing: -.02em;
}
.persona__body { min-width: 0; }
.persona__name { margin: 0 0 .15rem; font: 600 1.2rem/1.25 var(--sans); }
.persona__name a { color: var(--accent); text-decoration: none; }
.persona__name a:hover { text-decoration: underline; }
.persona__ressorts { margin: 0; font: 400 .875rem/1.4 var(--mono); color: var(--muted); }
.persona__when { margin: .5rem 0 .1rem; font: 400 .82rem/1.4 var(--mono); color: var(--muted); }
.persona__latest { margin: 0; font: 700 1.2rem/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.persona__latest a { text-decoration: none; }
.persona__latest a:hover { color: var(--accent); }
@media (max-width: 560px) {
    .persona { gap: 1rem; }
    .persona__mark { width: 4.2rem; height: 4.3rem; font-size: 2.4rem; }
}

/* Search */
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; max-width: 40rem; }
.search-form__input {
    flex: 1 1 16rem; min-width: 0; padding: .7rem .9rem; font: inherit; color: var(--ink);
    background: var(--paper-raised); border: 1px solid var(--line); border-radius: 2px;
}
.search-form__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-form .button { border: 0; cursor: pointer; }
.search-form .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search__count { color: var(--muted); margin: 0 0 1.6rem; }

/* Start page: opinion row, three teasers without pictures between rules */
.opinions { margin-top: 3.5rem; }
.opinions__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); border-block: 1px solid var(--line); }
.opinions__row .teaser { padding: 1.4rem 1.5rem 1.5rem; }
.opinions__row .teaser:first-child { padding-left: 0; }
.opinions__row .teaser + .teaser { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
    .opinions__row .teaser { padding-inline: 0; }
    .opinions__row .teaser + .teaser { border-left: 0; border-top: 1px solid var(--line); }
}

/* Start page: project banner, the one violet gradient. It lies on the grid
   of the mosaic and keeps the inner distances of its tiles, so eyebrow, title
   and text start on the same edges as the tile texts above. */
.promo {
    position: relative; isolation: isolate; overflow: hidden; margin-block: 3.5rem 1rem;
    display: grid; grid-template-columns: minmax(0, 24.3fr) minmax(0, 48.5fr) minmax(0, 27.2fr); align-items: start;
    column-gap: var(--tile-seam);
    padding-block: clamp(2.2rem, 4vw, 3.5rem) clamp(2.4rem, 4.4vw, 3.8rem);
    color: #fff;
    background: linear-gradient(105deg, var(--promo-from) 0%, var(--promo-from) 22%, var(--promo-via) 55%, var(--promo-to) 100%);
}
/* Carbon from the bottom, fading out halfway up */
.promo::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; --hatch-color: var(--night-carbon);
    mask-image: linear-gradient(to top, color-mix(in srgb, var(--black) 40%, transparent) 0%, color-mix(in srgb, var(--black) 12%, transparent) 25%, transparent 55%);
}
.promo__head { grid-column: 1; padding-inline: 1.4rem; }
.promo__body { grid-column: 2; padding-inline: 2.4rem; }
.promo__deco {
    position: absolute; right: -.05em; bottom: -.22em; z-index: -1; font-size: clamp(6rem, 19vw, 14rem); line-height: 1;
    color: rgba(255, 255, 255, .08); pointer-events: none; user-select: none;
}
.promo__deco .logo { height: .9em; }
.promo__deco .logo__bar { fill: currentColor; }
.promo__eyebrow {
    display: flex; align-items: center; gap: .7em; margin: 0 0 1rem;
    font: 700 var(--text-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--promo-eyebrow);
}
.promo__eyebrow .slashes { width: 2.4em; height: 1em; color: inherit; }
.promo__title { margin: 0; font: 800 var(--text-title)/.98 var(--display); letter-spacing: 0; text-wrap: balance; }
/* The text starts on the cap height of the title */
.promo__text { max-width: 40em; padding-top: 1.65rem; font: 400 1.1rem/1.55 var(--sans); color: rgba(255, 255, 255, .88); }
.promo__text p { margin: 0 0 1em; }
.promo__text p:last-child { margin-bottom: 0; }
.promo__text a { color: #fff; }
.promo__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.promo a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* The archive banner at the end of the start page: the same gradient, mirrored */
.promo--archive {
    margin-block: 3.5rem 0;
    background: linear-gradient(285deg, var(--promo-from) 0%, var(--promo-from) 22%, var(--promo-via) 55%, var(--promo-to) 100%);
}
/* Tablet: eyebrow and title above the text */
@media (max-width: 1023px) {
    .promo { grid-template-columns: minmax(0, 1fr); }
    .promo__head, .promo__body { grid-column: 1; padding-inline: 2.4rem; }
    .promo__text { padding-top: 1.1rem; }
}
@media (max-width: 639px) {
    .promo__head, .promo__body { padding-inline: 1rem; }
    .promo__text { font-size: 1rem; }
}

/* Page head, for every page but the start page and articles: eyebrow, title, intro */
.page-head { margin: 0 0 3.5rem; max-width: 52rem; }
.page-head__eyebrow { margin: 0 0 .6rem; font: 700 var(--text-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.page-head__title { margin: 0; font: 800 var(--text-title)/.98 var(--display); letter-spacing: 0; text-wrap: balance; }
.page-head__intro { margin: 1rem 0 0; max-width: 40em; font: 400 1.15rem/1.5 var(--sans); color: var(--muted); }

/* Text page (project, Impressum, Datenschutz): the page head over the full
   width, below it the table of contents in the meta column of the article
   grid (24.3 %, the left column of the mosaic) and the text in a reading
   column beside it. The contents stay in view while the text scrolls; on a
   narrow window they become a short list above the text. */
.text-page {
    display: grid; align-items: start;
    grid-template-columns: minmax(0, 24.3fr) minmax(0, 75.7fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
}
.text-page > .page-head { grid-column: 1 / -1; }
.text-page__body { grid-column: 2; min-width: 0; max-width: calc(var(--narrow) - 2rem); }
/* The jump target sits below the top edge, not against it. */
.text-page__body h2 { scroll-margin-top: 1.5rem; }
/* The first heading of the text starts on the line of the contents beside it. */
.text-page__body > h2:first-child, .text-page__body > :first-child > h2:first-child { margin-top: 0; }
.page-toc { grid-column: 1; position: sticky; top: 1.5rem; margin: 0; }
.page-toc__title { margin: 0 0 var(--space-3); font: 700 var(--text-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.page-toc__list { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; font: 400 var(--text-meta)/1.35 var(--mono); }
.page-toc__list a { color: var(--muted); text-decoration: none; }
.page-toc__list a:hover { color: var(--accent); }
@media (max-width: 860px) {
    .text-page { grid-template-columns: minmax(0, 1fr); }
    .text-page__body, .page-toc { grid-column: 1; }
    .page-toc { position: static; margin: 0 0 2.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
    .page-toc__list { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.4rem; }
}

/* Topic page: the articles of a story on a timeline, newest first;
   square marks on a 1 px line */
.story-timeline { list-style: none; margin: 0; padding: 0; max-width: 52rem; border-left: 1px solid var(--line); }
.story-timeline__entry { position: relative; padding: 0 0 2rem 1.75rem; }
.story-timeline__entry::before { content: ""; position: absolute; left: -5px; top: .35rem; width: 9px; height: 9px; background: var(--accent); }
.story-timeline__entry:last-child { padding-bottom: 0; }
.story-timeline__new { margin: .7rem 0 0; font: 400 var(--text-small)/1.5 var(--sans); color: var(--muted); }
.story-timeline__label { margin-right: .5em; font: 700 var(--text-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* List of topic pages */
.topic-list { list-style: none; margin: 0; padding: 0; max-width: 52rem; border-top: 1px solid var(--line); }
.topic-list__item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.topic-list__name { font: 700 var(--text-card)/1.12 var(--display); color: var(--ink); text-decoration: none; }
.topic-list__name:hover { color: var(--accent); }
.topic-list__meta { font: 400 var(--text-meta)/1.4 var(--mono); color: var(--muted); }
/* The ressort overview adds what the ressort covers, on its own row. */
.topic-list__about { flex: 0 0 100%; margin: .35rem 0 0; max-width: 46em; line-height: 1.55; color: var(--muted); }

/* Licence and attribution of a source (article page), the release note (provenance tab) */
.sources__rights { display: block; font: 400 var(--text-meta)/1.4 var(--mono); color: var(--muted); }
.prov-rights-note { max-width: 52rem; color: var(--muted); }
.prov-rights-note--open { color: var(--ink); }

/* Project page: the feeds and their rights */
/* The source register in groups (projekt.html.twig): one status per <details>,
   so the entries NANS does not use fold away. The summary carries the status
   chip and the size of the group; the triangle is drawn in text, not an asset. */
.source-group { border-top: 1px solid var(--line); }
.source-group:last-of-type { border-bottom: 1px solid var(--line); }
/* The summary sticks: inside a long group it is the only thing that says
   which status these entries have, so it may not scroll away. That is also
   why the entries themselves no longer repeat the status. */
.source-group__summary {
    position: sticky; top: 0; z-index: 5; background: var(--paper);
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 0; cursor: pointer; list-style: none;
    border-bottom: 1px solid var(--line);
}
.source-group__summary::-webkit-details-marker { display: none; }
.source-group__summary::before {
    content: '\25b8'; display: inline-block; color: var(--muted);
    transition: transform .15s;
}
.source-group[open] > .source-group__summary::before { transform: rotate(90deg); }
.source-group__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.source-group__count { font: 400 var(--text-meta)/1 var(--mono); color: var(--muted); }
/* Inside a group the list brings its own frame; the group already has one. */
.source-group .source-rights { margin-top: 0; border-top: 0; }
.source-group .source-rights dt { font-size: 1.02rem; }
.source-group .source-rights dd:last-of-type { border-bottom: 0; padding-bottom: 1.25rem; }

.source-rights { margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.source-rights dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; padding-top: 1rem; font: 600 1rem/1.3 var(--sans); }
.source-rights dd { margin: .35rem 0 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font: 400 var(--text-small)/1.5 var(--sans); color: var(--muted); }
.source-rights__status { font: 700 var(--text-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .25em .45em; border: 1px solid currentColor; border-radius: 2px; }
.source-rights__status--freigegeben { color: var(--ok); }
.source-rights__status--nur_intern, .source-rights__status--pruefung_erforderlich, .source-rights__status--zurueckgestellt { color: var(--warn); }
.source-rights__status--ausgeschlossen { color: var(--bad); }
.source-rights__license { display: block; margin-bottom: .25rem; font: 600 .85rem/1.4 var(--sans); color: var(--ink); }
.source-rights__meta { display: block; margin-top: .3rem; font: 400 var(--text-meta)/1.4 var(--mono); }

/* Article page: the other articles of the same story */
.story { margin-top: var(--space-6); }
.story__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.1rem 1.5rem; }

/* Start page: ressort sections on the grid of the mosaic. The newest article is
   the main tile of the mosaic over the first two columns, the compact teasers
   take the right column and start where the texts of the right tiles start.
   The tile is 2 : 1 so that the five teasers beside it fit: their height is in
   rem (6.5rem picture plus 1.1rem + 1.1rem of separator each), the tile's grows
   with the window, and at the wide reference width the two end level. In a
   narrower window the teaser column is the taller one and stretches the tile
   past 2 : 1; that is the same fallback the section had before. */
.fsection { margin-top: 3.5rem; }
.spotlight { display: grid; grid-template-columns: minmax(0, 72.8fr) minmax(0, 27.2fr); }
.spotlight > .tile--lead { grid-column: 1; aspect-ratio: 2 / 1; }
.spotlight__more { grid-column: 2; display: grid; align-content: start; padding-left: 1.4rem; }
.spotlight__more > * + * { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.spotlight__more .teaser--compact { grid-template-columns: 6.5rem minmax(0, 1fr); }
/* A ressort with a single article: the tile over the full width */
.spotlight--single > .tile--lead { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
@media (max-width: 1023px) {
    .spotlight { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .spotlight > .tile--lead, .spotlight--single > .tile--lead { aspect-ratio: 3 / 2; }
    .spotlight__more { grid-column: 1; padding-left: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.1rem 1.5rem; }
    .spotlight__more > * + * { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (max-width: 639px) {
    .spotlight > .tile--lead, .spotlight--single > .tile--lead { aspect-ratio: 4 / 5; }
}


.pagination { display: flex; gap: 1rem; justify-content: center; margin-top: var(--space-5); font-size: var(--text-small); }

/* Article */
/* Head: kicker, title, byline, tabs - one left-aligned stack, nothing boxed. */
.article-head__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) .35rem; margin: 0 0 var(--space-3); }
.article-head__kicker .ressort { color: var(--ink); margin-right: 0; }
/* The slash is the one accent of the kicker; ressort lists elsewhere keep their middle dot. */
.article-head__kicker .ressort + .ressort::before { content: "/"; color: var(--accent); margin: 0 .35rem 0 0; }
.article-head__title { font-size: var(--text-display); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 var(--space-3); }

/* Byline: author, date, length - one line, middle dots between the parts. */
.article-head__byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) 0; font: 400 var(--text-small)/1.5 var(--sans); color: var(--muted); margin: 0 0 var(--space-4); }
/* The dot trails its part rather than leading the next one: where the line
   wraps on a narrow screen, no line starts with a dot. */
.article-head__byline > *:not(:last-child)::after { content: "·"; margin: 0 .5rem; }
/* The length is a fact about the text itself, so it carries the reading colour. */
.article-head__words { color: var(--ink); font-weight: 600; }

/* Tabs: labels on a hairline, the active one underlined in the accent. */
/* The hairline is an inset shadow, not a border: the strip scrolls sideways on
   narrow screens, so a tab that overlapped it with a negative margin would be
   clipped away. Painted on the strip itself, the active underline covers it. */
.tabs { display: flex; gap: var(--space-3); box-shadow: inset 0 -1px 0 var(--line); margin: 0 0 var(--space-4) -.2rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs__tab { padding: 0 .4rem var(--space-3); text-decoration: none; white-space: nowrap; font-size: var(--text-ui); color: var(--muted); border-bottom: 2px solid transparent; }
/* Same font weight for every tab: switching between article and provenance tab moves nothing. */
.tabs__tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs__tab:hover { color: var(--accent); }
/* Lead image: wider than the text column (centred on it), caption aligned with the text. */
/* Title block and lead image share a wide measure, centred on the text column. */
.article { --wide: min(64rem, 100vw - 2.5rem); }
.article-wide, .article-image { width: var(--wide); margin-left: calc((100% - var(--wide)) / 2); }
.article-image { margin-top: 0; margin-bottom: var(--space-4); }
.article-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.article-image figcaption { max-width: calc(var(--narrow) - 2rem); margin: var(--space-2) auto 0; font-size: var(--text-small); color: var(--muted); }
.article-image figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; }
/* The picture credit as a tooltip of its own: no title= (appears late, cannot
   be styled, never shows on touch) and no JavaScript. The trigger takes focus,
   so the bubble opens by keyboard as well; aria-describedby reads it out
   regardless of whether it is visible. */
.ai-note { position: relative; display: inline-flex; align-items: center; cursor: help; }
.ai-note .ai-chip { margin-right: 0; }
.ai-note__tip {
    position: absolute; bottom: calc(100% + .55rem); left: 0; z-index: 5;
    width: max-content; max-width: min(30rem, calc(100vw - 2.5rem));
    padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 2px;
    background: var(--paper-raised); color: var(--ink); font-size: var(--text-small); line-height: 1.5;
    box-shadow: 0 .5rem 1.6rem var(--carbon);
    opacity: 0; visibility: hidden; transition: opacity .12s ease;
}
.ai-note:hover .ai-note__tip, .ai-note:focus .ai-note__tip, .ai-note:focus-within .ai-note__tip { opacity: 1; visibility: visible; }
.ai-note__more { color: var(--accent); text-decoration: none; }
.ai-note__more:hover { text-decoration: underline; }
@media (max-width: 560px) { .article-image { --wide: 100vw; } .article-image figcaption { padding-inline: 1rem; } }
/* Lead and body are the two steps of the reading column; the subheads inside it
   take the section step, like every other heading of the page. */
.article-lead { font: 400 var(--text-lead)/1.55 var(--serif); margin-bottom: var(--space-4); }
.article-lead p { margin: 0 0 var(--space-2); }
.article-body { font: 400 var(--text-body)/1.75 var(--serif); }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: var(--space-1); }
.article-body blockquote { margin: var(--space-4) 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }

/* Corrections and withdrawal */
.article-corrections { margin: 0 0 var(--space-4); padding: var(--space-3); border-left: 3px solid var(--warn); background: var(--warn-soft); font-size: var(--text-small); }
.article-corrections p { margin: 0; }
.article-corrections p + p { margin-top: var(--space-2); }
.withdrawn { padding-block: 2rem 1rem; }
.withdrawn__title { font: italic var(--text-lead)/1.5 var(--serif); color: var(--muted); }
.withdrawn__note { padding: var(--space-3); border-left: 3px solid var(--bad); background: var(--bad-soft); }

sup.cite { font: 600 .68em/0 var(--mono); }
sup.cite a { text-decoration: none; color: var(--accent); }
.cite-missing { color: var(--bad); }

.sources { margin-top: var(--space-6); }
.sources__list { padding-left: 1.6rem; font-size: var(--text-small); }
.sources__list li { margin-bottom: var(--space-3); }
.sources__list li:target { background: var(--accent-soft); }
.sources__title { font-weight: 600; }
/* Site and dates on one line, so an entry is a title and a line under it.
   Everything the fetch knows beyond that stands in the provenance tab. */
.sources__meta { display: block; color: var(--muted); font: 400 var(--text-meta)/1.4 var(--mono); }

.article-foot { margin-top: var(--space-6); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.tag { font: 400 var(--text-meta)/1 var(--mono); border: 1px solid var(--line); border-radius: 2px; padding: .35em .7em; color: var(--muted); }

/* The transparency block that closes an article. It carries the same section
   head as "Quellen" and "Mehr zum Thema" - three closing sections, one heading
   pattern - and its prose stays in the reading serif at the body step: it
   belongs to the article, so it is read, not skipped as a footer. It had its
   own eyebrow and a serif title of its own size before, which made the last
   screen of every article look like a different page. */
.transparency { margin-top: var(--space-6); }
.transparency__byline, .transparency__text, .transparency__more { font: 400 var(--text-body)/1.6 var(--serif); }
.transparency__byline { margin: 0; color: var(--muted); }
/* The name links to the author page, like the byline at the top, and like it
   wears no rule: here it reads as a credit line, not as a call to click. */
.transparency__byline a { text-decoration: none; }
.transparency__byline a:hover { text-decoration: underline; }
.transparency__text { margin: var(--space-3) 0 0; max-width: 34rem; }
.transparency__more { margin: var(--space-3) 0 0; }
.transparency__more a { color: var(--accent); }
/* Label and value side by side, each pair on its own line, in the interface
   face: these are data about the article, not part of its text. The labels are
   not aligned into a column - there are two of them at most, and a column of
   empty space between question and answer would pull them apart. */
.transparency__facts { margin: var(--space-4) 0 0; font: 400 var(--text-small)/1.5 var(--sans); }
.transparency__fact { margin: 0 0 var(--space-2); }
.transparency__fact:last-child { margin-bottom: 0; }
.transparency__fact-label { color: var(--muted); margin-right: .35rem; }
.transparency__fact-why { color: var(--muted); }
.transparency__facts a { color: var(--accent); }

/* Provenance tab */
.provenance-intro { max-width: 52rem; color: var(--muted); }
.prov-section { margin-top: var(--space-6); }
.facts { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .45rem 1.2rem; margin: 0; }
.facts dt { color: var(--muted); font-size: var(--text-small); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 .9rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline time { display: block; font: 400 var(--text-meta)/1.3 var(--mono); color: var(--muted); }
.timeline span { display: block; color: var(--muted); }

.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .45rem; }
.rationale { margin: 1rem 0; padding: .8rem 1rem; background: var(--paper-raised); border-left: 3px solid var(--accent); font-family: var(--serif); }
.rationale p { margin: 0; }
details { margin: 1rem 0; }
summary { cursor: pointer; font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-small); }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
th { background: var(--paper-raised); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr.is-muted td { color: var(--muted); }

.checks { list-style: none; padding: 0; }
.checks__item { padding: .45rem .7rem; border-radius: var(--radius); margin-bottom: .4rem; background: var(--paper-raised); border-left: 3px solid var(--line); }
.checks__item--passed { border-left-color: var(--ok); }
.checks__item--warning { border-left-color: var(--warn); }
.checks__item--failed, .checks__item--error { border-left-color: var(--bad); }

.claims { padding-left: 1.5rem; }
.claim { margin-bottom: 1.2rem; padding: .2rem .2rem .2rem .3rem; }
.claim:target { background: var(--accent-soft); border-radius: var(--radius); }
.claim__sentence { font-family: var(--serif); margin: 0 0 .3rem; }
.claim__verdict, .claim__explanation { margin: 0 0 var(--space-1); font-size: var(--text-small); }
.claim__evidence { margin: var(--space-2) 0; padding: .4rem .8rem; border-left: 3px solid var(--ok); background: var(--paper-raised); font-size: var(--text-small); }
.claim__evidence.is-missing { border-left-color: var(--bad); }
.claim__evidence p { margin: 0 0 .2rem; }
.claim__evidence footer { font: 400 var(--text-meta)/1.3 var(--mono); color: var(--muted); }
.verdict { font: 700 var(--text-label)/1 var(--mono); text-transform: uppercase; padding: .25em .5em; border-radius: 2px; }
.verdict--supported { background: var(--ok-soft); color: var(--ok); }
.verdict--partially_supported, .verdict--unsupported, .verdict--not_checkable { background: var(--warn-soft); color: var(--warn); }
.verdict--contradicted { background: var(--bad-soft); color: var(--bad); }

.revisions { padding-left: 1.3rem; }
.revisions li { margin-bottom: .8rem; }

/* Authors, project */
.author-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.author-card { display: flex; gap: 1rem; align-items: center; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.author-card__mark { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 800 .95rem/1 var(--mono); }
.author-card__name { margin: 0; font-size: var(--text-card); }
.author-card__tagline { margin: .2rem 0 0; color: var(--muted); }
.author-page__tagline { font: italic var(--text-lead)/1.5 var(--serif); color: var(--muted); margin-top: -.6rem; }
.author-page__notice { background: var(--accent-soft); padding: .7rem .9rem; border-radius: var(--radius); }
.prompt-block { white-space: pre-wrap; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; line-height: 1.55; }

.prose { font: 400 var(--text-body)/1.75 var(--serif); }

.integration-list { list-style: none; padding: 0; }
.integration { display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; padding: .55rem .8rem; border-left: 3px solid var(--line); background: var(--paper-raised); margin-bottom: .4rem; border-radius: var(--radius); }
.integration--configured { border-left-color: var(--ok); }
.integration--unconfigured { border-left-color: var(--warn); }
.integration--test { border-left-color: var(--test); }
.integration__status { font: 600 var(--text-meta)/1 var(--mono); text-transform: uppercase; }
.integration--unconfigured .integration__status { color: var(--warn); }
.integration--configured .integration__status { color: var(--ok); }
.rules { padding-left: 1.2rem; }
.rules li { margin-bottom: .45rem; }

/* Footer: dark in both colour schemes */
.site-footer { background: var(--night); color: var(--night-muted); font-size: .92rem; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: var(--night-accent); }
.site-footer a:focus-visible { outline-color: var(--night-accent); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2.2rem 2.6rem; padding-block: 3.5rem 2.6rem; }
/* With the ressort column the footer carries four lists instead of three. */
.site-footer__grid--wide { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
.site-footer .brand, .site-footer .brand:hover { color: var(--night-text); }
.site-footer .logo__bar { fill: var(--night-accent); }
.site-footer__about p { max-width: 26rem; margin: 1.1rem 0 0; line-height: 1.6; }
.site-footer__about p a { text-decoration: underline; text-decoration-color: var(--night-accent); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.site-footer__col p { margin: 0 0 .4rem; line-height: 1.55; }
.site-footer .section-head { color: var(--night-text); margin-bottom: .5rem; }
/* The ressort heading is the way to the overview; it reads like the others. */
.site-footer .section-head__title a { color: inherit; text-decoration: none; }
.site-footer .section-head__title a:hover { color: var(--night-accent); }
.site-footer .button--accent { background: var(--night-accent); color: var(--on-night-accent); }
.site-footer .button--accent:hover { background: var(--night-text); color: var(--on-night-accent); }
/* Drei Plätze: Anspruch links, Stand in der Mitte, Marke rechts. Ein Raster
   mit 1fr auto 1fr hält die Mitte wirklich mittig -- mit space-between läge der
   Stand nur irgendwo zwischen zwei ungleich breiten Nachbarn. Die Spalten sind
   fest zugewiesen, damit die Marke auch dann rechts steht, wenn kein Stand
   gesetzt ist und die mittlere Spalte leer bleibt. */
.site-footer__bottom {
    margin: 0 auto; padding-block: 1.1rem 1.4rem; border-top: 1px solid var(--night-line);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: .35rem 1.5rem;
    font: .8rem/1.4 var(--mono);
}
.site-footer__bottom p { margin: 0; }
.site-footer__claim { grid-column: 1; justify-self: start; }
.site-footer__mark { grid-column: 3; justify-self: end; color: var(--night-muted); }
/* Welcher Stand läuft: klein und zurückhaltend, in einer Zeile. */
.site-footer__build { grid-column: 2; justify-self: center; font-size: 0.8em; opacity: 0.8; white-space: nowrap; }
/* Nebeneinander brauchen die drei rund 640 px: Die beiden äußeren Spalten sind
   gleich breit, also gibt der längere Anspruch das Maß vor. Darunter zwei
   Reihen -- Anspruch und Marke behalten ihre Seiten, der Stand rückt darunter
   und bleibt über die ganze Breite mittig. Alles untereinander zu zentrieren
   wäre einfacher gewesen und hätte genau das aufgegeben, worum es hier geht. */
@media (max-width: 640px) {
    .site-footer__bottom { grid-template-columns: 1fr auto; }
    .site-footer__claim { grid-area: 1 / 1; }
    .site-footer__mark { grid-area: 1 / 2; }
    .site-footer__build { grid-area: 2 / 1 / auto / -1; }
}
/* Four lists beside the description get tight before the two-column
   breakpoint: the description moves onto its own row first. */
@media (max-width: 1150px) {
    .site-footer__grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .site-footer__grid--wide .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) {
    /* The ladder steps down once, here; no component carries a size of its own. */
    :root { --text-section: 1.3rem; --text-lead: 1.15rem; --text-body: 1.0625rem; }
    body { font-size: 1rem; }
    .brand__logo { height: 1.8rem; }
}

@media print {
    .site-nav, .tabs, .site-search, .site-footer__grid, .experiment-note { display: none; }
    body { background: #fff; color: #000; }
    /* A folded group is a reading aid, not a cut: on paper the register is
       complete. Both rules are needed - engines hide the closed content either
       on the children or on ::details-content. */
    .source-group__summary::before { display: none; }
    details > summary ~ * { display: block; }
    ::details-content { content-visibility: visible !important; }
}

/* Whoever asks for less motion gets none: the notice is simply there instead of
   sliding up, and a tile brightens without the extra zoom. The base scale(1.15)
   stays - that one crops the picture to the tile and is not motion. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .mosaic__col .tile:hover .tile__image,
    .mosaic__col .tile:focus-within .tile__image { transform: scale(1.15); }
}
