/* Schriften: erzeugt von build.py aus data/fonts.json */
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/inter-cyrillic-ext.woff2?v=fccca918fe) format("woff2"); unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/inter-cyrillic.woff2?v=aebf2ab4a4) format("woff2"); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/inter-greek-ext.woff2?v=a2e2c783ca) format("woff2"); unicode-range:U+1F00-1FFF; }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/inter-greek.woff2?v=46dd4cdca5) format("woff2"); unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/inter-vietnamese.woff2?v=8db00ff46c) format("woff2"); unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/inter-latin-ext.woff2?v=a28eb6d3cc) format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/inter-latin.woff2?v=c940764593) format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/IBMPlexMono-Regular-Cyrillic.woff2?v=82d7706f6a) format("woff2"); unicode-range:U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/IBMPlexMono-Regular-Latin1.woff2?v=10d3c7fa7e) format("woff2"); unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/IBMPlexMono-Regular-Latin2.woff2?v=151a2b0dfb) format("woff2"); unicode-range:U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/IBMPlexMono-Regular-Latin3.woff2?v=93e30b5743) format("woff2"); unicode-range:U+0102-0103, U+01CD-01DC, U+1EA0-1EF9, U+20AB; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/IBMPlexMono-Regular-Pi.woff2?v=8bb259a213) format("woff2"); unicode-range:U+03C0, U+0E3F, U+2000-200D, U+2028-2029, U+202F, U+2032-2033, U+205F, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+2500-259F, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+3000, U+FEFF, U+FFFD; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/IBMPlexMono-Medium-Cyrillic.woff2?v=f898b6510d) format("woff2"); unicode-range:U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/IBMPlexMono-Medium-Latin1.woff2?v=5a04b514a7) format("woff2"); unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/IBMPlexMono-Medium-Latin2.woff2?v=feb89294be) format("woff2"); unicode-range:U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/IBMPlexMono-Medium-Latin3.woff2?v=cdbba1a90a) format("woff2"); unicode-range:U+0102-0103, U+01CD-01DC, U+1EA0-1EF9, U+20AB; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/IBMPlexMono-Medium-Pi.woff2?v=aa5ffb4cf9) format("woff2"); unicode-range:U+03C0, U+0E3F, U+2000-200D, U+2028-2029, U+202F, U+2032-2033, U+205F, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+2500-259F, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+3000, U+FEFF, U+FFFD; }
/* Bildsprache – Seitenstil nach Designsprache „Swiss / International Typographic Style“:
   eine neutrale Grotesk, Schwarz und Weiß, Rot als einzige Signalfarbe, Radius 0, keine Schatten,
   Trennung nur über 1px-Linien und 3px-Balken. Die Farbe auf der Seite kommt aus den Bildern.
   --f-mono heißt aus Gewohnheit noch so und trägt Mikrotypografie; Prompttext steht in --f-code.
   Die @font-face-Regeln für Inter und IBM Plex Mono setzt build.py aus data/fonts.json vor diese Datei. */
:root {
  --maxw:1460px;
  --f-disp:"Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body:var(--f-disp);
  --f-mono:var(--f-disp);
  --f-code:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
html { color-scheme:light dark; -webkit-text-size-adjust:100%; scroll-padding-top:var(--bar-h, 0px); }
body { margin:0; background:var(--ground); color:var(--ink); font-family:var(--f-body);
  font-size:16.5px; line-height:1.6; -webkit-font-smoothing:antialiased; }
img { max-width:100%; display:block; }
.wrap { max-width:var(--maxw); margin:0 auto; padding-inline:clamp(16px,3vw,40px); }
h1,h2,h3,h4 { font-family:var(--f-disp); font-weight:700; letter-spacing:-.02em; text-wrap:balance; margin:0; }
p { margin:0; }
a { color:var(--accent); text-underline-offset:3px; }
:where(button,select,input,a,summary,[tabindex]):focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:0; }
.eyebrow { font-family:var(--f-mono); font-size:11px; font-weight:500; letter-spacing:.14em;
  text-transform:uppercase; color:var(--brass); }
.mono { font-family:var(--f-mono); font-variant-numeric:tabular-nums; }
.muted { color:var(--ink-2); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip { position:absolute; left:8px; top:-60px; z-index:100; background:var(--accent); color:var(--accent-ink);
  padding:10px 14px; font-family:var(--f-mono); font-size:13px; }
.skip:focus { top:8px; }

/* ---------- Kopfleiste ---------- */
.topbar { border-bottom:1px solid var(--ink); background:var(--surface); }
.topbar-in { display:flex; align-items:center; gap:6px 18px; padding-block:6px; flex-wrap:wrap;
  font-family:var(--f-mono); font-size:12px; }
.tb-brand { font-weight:700; color:var(--ink); text-decoration:none; letter-spacing:.04em;
  text-transform:uppercase; display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.tb-brand svg { width:20px; height:20px; }
.tb-nav { display:flex; flex-wrap:wrap; gap:2px; }
.tb-nav a { display:inline-flex; align-items:center; min-height:44px; padding:0 9px; color:var(--ink-2);
  text-decoration:none; border-bottom:2px solid transparent; }
.tb-nav a:hover { color:var(--ink); }
.tb-nav a[aria-current="page"] { color:var(--ink); border-bottom-color:var(--accent); }
.tb-end { margin-left:auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.tb-lang a { display:inline-flex; align-items:center; min-height:44px; padding:0 10px; color:var(--ink-3);
  text-decoration:none; border:1px solid var(--rule); border-radius:0; }
.tb-lang a:hover { color:var(--ink); border-color:var(--ink-3); }
.theme-switch { display:flex; border:1px solid var(--rule); background:var(--surface); }
.theme-switch button { min-height:44px; padding:0 11px; border:0; background:transparent; color:var(--ink);
  font:500 12px var(--f-mono); cursor:pointer; }
.theme-switch button[aria-pressed="true"] { background:var(--accent); color:var(--accent-ink); }
@media (max-width:760px) {
  .tb-nav { order:3; width:100%; }
  .tb-nav a { padding:0 7px; }
}
@media (max-width:600px) {
  .topbar-in { gap:2px 10px; padding-block:4px; }
  .tb-brand, .tb-nav a, .tb-lang a, .theme-switch button { min-height:36px; }
  .theme-switch button { padding:0 8px; }
}
/* #49: Schalter sofort zeigen, wenn JS läuft (Klasse setzt das Theme-Skript im head) */
.js .theme-switch[hidden] { display:flex !important; }

/* ---------- Kopf einer Seite ---------- */
.mast { border-bottom:1px solid var(--ink); padding:clamp(28px,5vw,60px) 0 0; }
.mast-in { display:grid; grid-template-columns:minmax(0,1fr); gap:22px; padding-bottom:clamp(24px,4vw,40px); }
@media (min-width:960px) { .mast-in { grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(32px,5vw,72px); align-items:end; } }
.mast h1 { font-size:clamp(36px,7.2vw,82px); line-height:.95; letter-spacing:-.045em; font-weight:700; margin-top:10px;
  hyphens:auto; overflow-wrap:break-word; }
.mast h1 em { font-style:normal; font-weight:400; color:var(--ink-3); }
.lede { font-size:clamp(17px,1.5vw,20px); line-height:1.55; color:var(--ink-2); max-width:60ch; margin-top:18px; }
.lede strong { color:var(--ink); font-weight:500; }
.facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--ink); }
@media (min-width:560px) { .facts { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.facts div { padding:14px 12px; border-right:1px solid var(--rule-soft); min-width:0; }
.facts div:first-child { padding-left:0; }
@media (max-width:559px) { .facts div:nth-child(2n) { border-right:0; } .facts div:nth-child(2n+1) { padding-left:0; } }
.facts div:last-child { border-right:0; }
.facts b { display:block; font-family:var(--f-disp); font-size:28px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1.1;
  overflow-wrap:anywhere; hyphens:auto; }
.facts b.t { font-size:19px; line-height:1.25; text-wrap:balance; }
.facts span { display:block; font-family:var(--f-mono); font-size:10.5px; line-height:1.4; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); margin-top:3px; }
.crumbs { font-family:var(--f-mono); font-size:12px; color:var(--ink-3); }
.crumbs a { color:var(--ink-3); }

/* ---------- Abschnitte ---------- */
.sec { padding:clamp(36px,5vw,64px) 0 0; }
.sec:last-of-type { padding-bottom:clamp(40px,6vw,80px); }
.sec-head { display:grid; gap:8px; padding:14px 0 0; border-top:3px solid var(--ink); margin-bottom:28px; }
@media (min-width:900px) { .sec-head { grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:8px clamp(24px,4vw,60px); align-items:start; } }
.sec-head h2 { font-size:clamp(26px,3.2vw,40px); letter-spacing:-.035em; line-height:1.05; }
.sec-head p { color:var(--ink-2); max-width:66ch; }
.prose { max-width:70ch; }
.prose p + p { margin-top:12px; }
.prose h2, .prose h3 { font-size:21px; margin:28px 0 8px; }
.prose ul { padding-left:20px; margin:10px 0; }

/* ---------- Knöpfe, Chips ---------- */
.btn { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:7px 12px; border:1px solid var(--ink);
  border-radius:0; background:var(--surface); color:var(--ink); font:500 12.5px var(--f-mono); cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--ink); color:var(--ground); }
.btn.primary { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.btn[data-copied] { border-color:var(--accent); }
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { font-family:var(--f-mono); font-size:12.5px; padding:6px 10px; min-height:36px; border:1px solid var(--rule);
  background:transparent; color:var(--ink-2); cursor:pointer; border-radius:0; }
.chip:hover { border-color:var(--ink); color:var(--ink); }
.chip[aria-pressed="true"] { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.chip small { margin-left:4px; }
.chip:not([aria-pressed="true"]) small { color:var(--ink-3); }
.bar { position:sticky; top:0; z-index:30; background:var(--ground); border-bottom:1px solid var(--ink);
  padding-block:10px; margin-bottom:22px; display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; }
@media (max-width:600px) { .bar .chips { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; padding:5px; margin:-5px; } .bar .chip { flex:0 0 auto; } }
.bar input[type="search"], .bar select { font:12.5px var(--f-mono); color:var(--ink); background:var(--surface-2);
  border:1px solid var(--ink-3); border-radius:0; padding:8px 10px; min-height:40px; }
.bar label.ctl-label { font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); }
.bar input[type="search"] { width:min(260px,100%); }
.tally { font-family:var(--f-mono); font-size:11.5px; color:var(--ink-3); }

/* ---------- Bildraster ---------- */
.grid { display:grid; gap:clamp(24px,2.4vw,36px) clamp(12px,1.6vw,22px); grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); }
/* Gemischte Formate: einheitlicher quadratischer Ausschnitt, das ganze Bild zeigt die Lightbox */
.grid.mixed .card img, .row .card img { aspect-ratio:1/1; }
.grid.wide { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); }
.card { margin:0; display:flex; flex-direction:column; }
.card > button, .card > a.cimg { all:unset; display:block; cursor:zoom-in; position:relative; background:var(--surface-2); }
.card > button:focus-visible, .card > a.cimg:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.card img { width:100%; height:auto; aspect-ratio:var(--ar,3/2); object-fit:cover; }
.card figcaption { padding:9px 0 10px; display:grid; gap:2px; border-top:1px solid var(--ink); margin-top:8px; }
.card figcaption b { font-family:var(--f-disp); font-weight:700; font-size:15px; line-height:1.25; letter-spacing:-.01em; }
.card figcaption b a { color:inherit; text-decoration:none; }
.card figcaption b a:hover { color:var(--accent); text-decoration:underline; }
.card figcaption span { font-family:var(--f-mono); font-size:11px; color:var(--ink-3); letter-spacing:.02em; }
.card.base figcaption { border-top-style:dashed; }
.card .flag, .lx-ex .flag { position:absolute; left:8px; top:8px; font:700 10.5px var(--f-mono); letter-spacing:.08em; text-transform:uppercase;
  background:var(--ink); color:var(--ground); padding:3px 6px; }
.card .flag.warn, .lx-ex .flag.warn { background:var(--accent); color:var(--accent-ink); }
.ar-landscape { --ar:3/2; } .ar-portrait { --ar:2/3; } .ar-square { --ar:1/1; }

/* Reihe eines Stils über alle Motive (horizontal scrollbar) */
.row { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(200px,240px); gap:12px; overflow-x:auto;
  padding:5px 5px 12px; margin:-5px; scroll-snap-type:x proximity; scrollbar-width:thin; }
/* #51 Leitstil-Reihen auf der Startseite */
.flag-rows { display:grid; grid-template-columns:minmax(0,1fr); gap:30px; }
.flag-row { min-width:0; }
.flag-row h3 { font-size:19px; margin-bottom:10px; }
.flag-row h3 .mono { font-size:12px; font-weight:400; }
.row > * { scroll-snap-align:start; }

/* ---------- Motivkarten ---------- */
.motifs { display:grid; gap:40px 18px; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); }
.mcard { display:block; color:inherit; text-decoration:none; }
.mcard:hover h3 { color:var(--accent); }
.mcard .mos { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); grid-template-rows:repeat(2,minmax(0,1fr)); gap:2px;
  aspect-ratio:3/2; overflow:hidden; background:var(--ground); }
.mcard .mos img { width:100%; height:100%; min-height:0; object-fit:cover; }
.mcard .mos img:first-child { grid-row:span 2; }
.mcard .mos.wide { grid-template-columns:repeat(2,minmax(0,1fr)); }
.mcard .mos.wide img:first-child { grid-row:auto; }
.mcard .mt { padding:10px 0 0; border-top:1px solid var(--ink); margin-top:8px; }
.mcard h3 { font-size:22px; letter-spacing:-.03em; }
.mcard p { font-size:14.5px; color:var(--ink-2); margin-top:3px; }
.mcard .tier { font-family:var(--f-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); }

/* ---------- Vergleichsregler (vorher / nachher) ---------- */
.cmp { position:relative; overflow:hidden; background:var(--surface-2); --pos:50%; }
.cmp img { width:100%; height:auto; display:block; aspect-ratio:var(--ar,3/2); object-fit:cover; }
.cmp .cmp-top { position:absolute; inset:0; clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
.cmp .cmp-top img { height:100%; }
.cmp .cmp-line { position:absolute; top:0; bottom:0; left:var(--pos); width:2px; background:var(--surface-2); box-shadow:0 0 0 1px rgba(0,0,0,.25); pointer-events:none; }
.cmp .cmp-lab { position:absolute; bottom:10px; font:700 11px var(--f-mono); letter-spacing:.08em; text-transform:uppercase;
  background:rgba(11,11,11,.85); color:#fff; padding:4px 7px; pointer-events:none;
  max-width:calc(50% - 16px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cmp .cmp-lab.l { left:10px; } .cmp .cmp-lab.r { right:10px; }
.cmp input[type="range"] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; margin:0; }
.cmp input[type="range"]:focus-visible + .cmp-line { background:var(--accent); width:4px; }
.cmp:has(input[type="range"]:focus-visible) { outline:3px solid var(--accent); outline-offset:2px; }
.hero { display:grid; gap:18px; }
@media (min-width:1000px) { .hero { grid-template-columns:minmax(0,3fr) minmax(0,1.15fr); align-items:start; } }
.hero-side { display:grid; gap:12px; }
.hero-side .chips { gap:5px; }

/* ---------- Prompt-Anatomie ---------- */
.anat { display:grid; gap:8px; font-family:var(--f-code); font-size:12.5px; line-height:1.55; }
.seg { padding:10px 12px; border-left:4px solid; background:var(--surface); white-space:pre-wrap; overflow-wrap:anywhere; }
.seg i { display:block; font-style:normal; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:4px; color:var(--ink-3); }
.seg-style { border-color:var(--accent); background:var(--tag-style); }
.seg-motif { border-color:var(--ink-3); background:var(--tag-motif); }
.seg-guards { border-color:var(--brass); background:var(--tag-guard); }
.anat-legend { display:flex; flex-wrap:wrap; gap:6px 14px; font-family:var(--f-mono); font-size:11.5px; color:var(--ink-2); }
.anat-legend span::before { content:""; display:inline-block; width:10px; height:10px; margin-right:6px; vertical-align:-1px; }
.anat-legend .k-style::before { background:var(--accent); } .anat-legend .k-motif::before { background:var(--ink-3); } .anat-legend .k-guards::before { background:var(--brass); }
.actions { display:flex; flex-wrap:wrap; gap:8px; }

/* ---------- Lightbox ---------- */
dialog.lb { width:min(1400px,100vw - 24px); max-height:calc(100vh - 24px); padding:0; border:1px solid var(--rule);
  background:var(--ground); color:var(--ink); box-shadow:var(--shadow); --lbh:calc(100vh - 26px); }
dialog.lb::backdrop { background:rgba(0,0,0,.8); }
.lb-in { display:grid; max-height:var(--lbh); }
@media (min-width:1000px) {
  .lb-in { grid-template-columns:minmax(0,1.5fr) minmax(340px,1fr); grid-template-rows:minmax(0,1fr); height:var(--lbh); overflow:hidden; }
  .lb-side { overflow:auto; }
}
@media (max-width:999px) { dialog.lb { --lbh:70vh; } }
.lb-fig { margin:0; background:var(--surface-2); display:flex; align-items:center; justify-content:center; min-height:200px; position:relative; overflow:hidden; }
.lb-fig > img { height:auto; max-height:var(--lbh); width:auto; max-width:100%; object-fit:contain; }
.lb-fig .cmp { border:0; width:min(100%, calc(var(--lbh) * var(--arv, 1.5))); }
.lb-fig .cmp > img { width:100%; height:auto; max-height:none; }
.lb-fig .cmp .cmp-top img { width:100%; height:100%; object-fit:cover; }
.ar-landscape { --arv:1.5; } .ar-portrait { --arv:.6667; } .ar-square { --arv:1; }
.lb-side { overflow:auto; padding:18px 20px 22px; display:grid; gap:14px; align-content:start; }
.lb-side h2 { font-size:24px; }
.lb-side h2 a { color:inherit; } .lb-side h2 a:hover { color:var(--accent); }
.lb-top { display:flex; justify-content:space-between; gap:10px; align-items:start; }
.lb-nav { display:flex; gap:6px; }
.lb-meta { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; font-family:var(--f-mono); font-size:11.5px; color:var(--ink-2); margin:0; }
.lb-meta dt { color:var(--ink-3); }
.lb-meta dd { margin:0; }
.note { font-size:14px; color:var(--ink-2); border-left:3px solid var(--accent); padding:2px 10px; }

/* ---------- Stilseite ---------- */
.sheet { display:grid; gap:clamp(20px,3vw,40px); }
@media (min-width:1000px) { .sheet { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); } }
.kv { display:grid; grid-template-columns:auto 1fr; gap:6px 16px; margin:0; font-size:15px; }
.kv dt { font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); padding-top:3px; }
.kv dd { margin:0; }
.markers { margin:8px 0 0; padding-left:18px; }
.markers li { margin:3px 0; }
.box { border-top:1px solid var(--ink); padding:12px 0 4px; }
.box h3, .box h2 { font-size:17px; margin-bottom:6px; }
.box + .box { margin-top:20px; }
.tags { display:flex; flex-wrap:wrap; gap:6px; }
.tag { font-family:var(--f-mono); font-size:11px; padding:3px 7px; border:1px solid var(--rule); color:var(--ink-2); border-radius:0; text-decoration:none; }
a.tag:hover { border-color:var(--ink); color:var(--ink); }

/* ---------- Lexikon ---------- */
.lex { display:grid; gap:0; border-top:1px solid var(--rule); }
.lx { border-bottom:1px solid var(--rule-soft); padding:12px 0; display:grid; gap:4px 18px; }
@media (min-width:900px) { .lx { grid-template-columns:minmax(220px,1fr) minmax(0,2.2fr); } }
.lx { scroll-margin-top:calc(var(--bar-h, 150px) + 12px); }
.lx h3 { font-size:17px; }
.lx h3 a { color:inherit; }
.lx .alt { font-family:var(--f-mono); font-size:11px; color:var(--ink-3); }
.lx .fam { font-family:var(--f-mono); font-size:11px; color:var(--ink-3); }
.lx .desc { font-size:15px; color:var(--ink-2); }
.lx .frag { font-family:var(--f-code); font-size:12px; color:var(--ink-2); background:var(--surface-2); padding:8px 10px; margin-top:6px; border-left:3px solid var(--accent); }
.lx .row2 { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin-top:6px; }
.lx.hit { background:var(--accent-soft); padding-inline:10px; }
.lx-ex { position:relative; display:block; width:min(100%, 200px); padding:0; margin-top:8px; border:0; background:var(--surface-2); cursor:zoom-in; }
.lx-ex img { display:block; width:100%; height:auto; }
.lx-ex:hover img { opacity:.85; }
.lx .warn { font-size:13.5px; color:var(--ink-2); border-left:3px solid var(--accent); padding-left:8px; margin-top:6px; }
.dots { font-family:var(--f-mono); font-size:11px; color:var(--ink-3); }
.more { margin:20px 0; }

/* ---------- Hebel & KI-Merkmale ---------- */
.tells { display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr)); }
.tell { border-top:1px solid var(--ink); padding:12px 0 6px; display:grid; gap:8px; align-content:start; }
.tell h3 { font-size:17px; }
.tell .lab { font-family:var(--f-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); }
.tell .fix { border-left:3px solid var(--accent); padding-left:10px; }
.levers { display:grid; gap:10px; grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr)); }
.lever { border-top:1px solid var(--ink); padding:12px 0 6px; display:grid; gap:6px; }
.lever h3 { font-size:15.5px; }
.lever p { font-size:14.5px; color:var(--ink-2); }
.lever code { font-family:var(--f-code); font-size:12px; background:var(--tag-style); padding:6px 8px; display:block; overflow-wrap:anywhere; }

/* ---------- Fuß ---------- */
footer.foot { border-top:3px solid var(--ink); margin-top:clamp(40px,6vw,80px); padding:20px 0 34px; font-family:var(--f-mono); font-size:12px; color:var(--ink-3); }
.foot-in { display:flex; flex-wrap:wrap; gap:8px 24px; }
footer.foot a { color:var(--ink-3); }
footer.foot a:hover { color:var(--accent); }
.ai-label { display:inline-flex; gap:6px; align-items:center; }

@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
@media (forced-colors:active) {
  .chip[aria-pressed="true"], .theme-switch button[aria-pressed="true"] { forced-color-adjust:none; background:Highlight; color:HighlightText; }
  .seg { border-left-color:CanvasText; }
  .tb-nav a { border-bottom-color:Canvas; }
  .tb-nav a[aria-current="page"] { border-bottom-color:Highlight; }
  .cmp .cmp-line { background:CanvasText; }
  .cmp:has(input[type="range"]:focus-visible) { outline-color:Highlight; }
  .anat-legend span::before { border:1px solid CanvasText; }
}

/* ---------- Anwendungen ---------- */
.card-act { display:flex; flex-wrap:wrap; gap:5px; padding:0; margin-top:auto; }
.btn.sm { min-height:32px; padding:4px 9px; font-size:11.5px; }
.uc-nav { padding-bottom:18px; }
.uc-nav a.chip { text-decoration:none; display:inline-flex; align-items:center; }
.uc-nav a.chip[aria-current="page"] { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.steps { margin:16px 0 0; padding-left:20px; display:grid; gap:8px; }
.motif-details { margin-top:18px; }
.motif-details summary { cursor:pointer; font-family:var(--f-disp); font-weight:700; font-size:16px; }
.b-form { display:grid; gap:6px; align-content:start; }
.b-form label { font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); margin-top:8px; }
.b-form label:first-child { margin-top:0; }
.b-form select, .b-form textarea { font:13px/1.5 var(--f-code); color:var(--ink); background:var(--surface-2);
  border:1px solid var(--ink); border-radius:0; padding:8px 10px; width:100%; min-height:40px; }
.b-form textarea { resize:vertical; }
.b-form .b-hint { font-size:13.5px; }
.b-form .note { margin-top:10px; }
@media (forced-colors:active) { .uc-nav a.chip[aria-current="page"] { forced-color-adjust:none; background:Highlight; color:HighlightText; } }
