/* ============================================================
   whoislars — Darstellung (geteilt von Website und Studio)
   Alles ist unter .wl gekapselt. Farben, Schriften und Größen kommen
   als CSS-Variablen aus dem Designsystem (wl.js → applyTokens).
   --cell, --half, --cols setzt wl.js aus der Größe des Containers.
   ============================================================ */
.wl {
  --cell: 120px; --half: 60px; --cols: 12;
  --g-lines: 12; --g-cols: 4;   /* Raster (tokens.grid): Grundlinien und Module je Zelle */
  --xr-display: .5; --xr-name: .5; --xr-question: .5; --xr-text: .52; --xr-mono: .52;   /* x-Höhe je Rolle, wl.js misst nach */
  --pad-x: calc(var(--cell) * var(--pad-fx, var(--pad-f, .09)));
  --pad-y: calc(var(--cell) * var(--pad-fy, var(--pad-f, .09)));
  --pad: var(--pad-x);
  --line-w: 1px;
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-weight: var(--f-text-w, 400);
  font-size: var(--s-text);
  line-height: var(--f-text-lh, 1.4);
  -webkit-font-smoothing: antialiased;
  text-transform: var(--case, none);
}
.wl *, .wl *::before, .wl *::after { box-sizing: border-box; margin: 0; padding: 0; }
.wl a { color: inherit; text-decoration: none; }
.wl.site { position: fixed; inset: 0; }

/* ---- Sichtfenster und Blatt ---- */
.wl .viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.wl .viewport.panning { cursor: grabbing; }
.wl .viewport.panning .c.link { pointer-events: none; }
.wl.phone .viewport { overflow-y: auto; cursor: default; overscroll-behavior: contain; }  /* am Ende federt nur das Blatt, nicht die ganze Seite */
/* Studio: ganzes Blatt (mit Kopfzeile oben) und Bearbeiten (Zellen reagieren nicht selbst, kein Hover-Gelb) */
.wl.canvas .viewport, .wl.editing .viewport { cursor: default; }
.wl.editing .c { pointer-events: none; transition: none; }
.wl .band { display: grid; grid-auto-rows: var(--cell); position: relative; }
.wl .band.half { grid-auto-rows: var(--half); }
.wl .field { display: grid; grid-auto-rows: var(--cell); width: max-content; }

/* ---- Zelle: Linie rechts und unten ---- */
.wl .c {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; container-type: size;
  border-right: var(--line-w) solid var(--ink); border-bottom: var(--line-w) solid var(--ink);
  padding: var(--pad-y) var(--pad-x);
  display: flex; flex-direction: column; justify-content: flex-start; gap: calc(var(--pad-y) * .6);
  background: var(--paper);
  font-size: calc(var(--s-text) * var(--scale, 1));
}
.wl .c > .label:first-child { margin-bottom: auto; }
/* Zeilenabstand ändert nur den Abstand zwischen den Zeilen: wl.js setzt --lc je Text, letzte Zeile unten und erste Zeile oben
   bleiben stehen (Lars, 25. Nov. 2026). Steht vor den va-Regeln, damit „Mitte“ (margin auto) gewinnt. */
.wl .c > :is(.body, .txt, .big, .q, .display):last-child { margin-bottom: var(--lc, 0em); }
.wl .c > .label:first-child { margin-top: var(--lc, 0em); }
.wl .c.empty { padding: 0; }
.wl .c.last { border-right: 0; }
.wl .c.stone { background: var(--stone); }
.wl .c.ink { background: var(--ink); color: var(--paper); }
.wl .c.signal { background: var(--signal); color: var(--on-signal, var(--paper)); }
.wl .c.ink .label, .wl .c.signal .label { color: inherit; }
.wl .c.link { cursor: pointer; transition: background var(--t-hover, 180ms), color var(--t-hover, 180ms); }
/* Hover je Element (tokens.hover / cell.hover → Klasse hv-…): Gelb, Invertiert, nur Schrift (blasser), aus */
.wl .c.link.hv-sun:hover { background: var(--sun); color: var(--on-sun); }
.wl .c.link.hv-sun:hover .label, .wl .c.link.hv-sun:hover .display, .wl .c.link.hv-sun:hover .q { color: var(--on-sun); }
.wl .c.link.hv-invert:hover { background: var(--ink); color: var(--paper); }
.wl .c.link.hv-signal:hover { background: var(--signal); color: var(--on-signal, #fff); }
.wl .c.link.hv-signal:hover .label, .wl .c.link.hv-signal:hover .display, .wl .c.link.hv-signal:hover .q { color: var(--on-signal, #fff); }
.wl .c.link.hv-invert:hover .label, .wl .c.link.hv-invert:hover .display, .wl .c.link.hv-invert:hover .q { color: var(--paper); }
.wl .c.hv-text:not(.idx) > *, .wl .flip.hv-text .face.front > * { transition: opacity var(--t-hover, 180ms); }
.wl .c.link.hv-text:not(.idx):hover > *, .wl .flip.hv-text:hover .face.front > *, .wl .faqq.hv-text:not(.on):hover > * { opacity: .55; }
.wl .c .go { font-family: var(--f-mono); font-size: 14px; align-self: flex-end; margin-top: auto; transition: transform .3s var(--ease); }
.wl .c.link:hover .go { transform: translateX(4px); }
.wl .c.h1 { flex-direction: row; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
.wl .c.h1 .sym { font-family: var(--f-mono); }

/* Platzhalter und Medien */
.wl .c.ph { padding: 0; background-image: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--ink) 14%, transparent) 9px 10px); }
.wl .c.ph .label { position: absolute; left: var(--pad); bottom: var(--pad); background: var(--paper); padding: 3px 6px; }
.wl .c .media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wl .c .media img, .wl .c .media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); display: block; }
.wl .c .media.bw img, .wl .c .media.bw video { filter: grayscale(1) contrast(1.15); }
.wl .c .media.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px; }
.wl .c .media.grain.coarse::after { background-size: 320px 320px; opacity: .55; }
/* Schraffur statt Farbe (cell.hatch → wl.js applyHatch): --h-c Farbe, --h-n Linien je Zellkante, --h-w Linie in px.
   Der Abstand teilt die Zelle genau und das Muster beginnt an der Ecke der Zelle (border-box): so laufen die Linien über
   Nachbarzellen und verbundene Zellen durch. Diagonal ist der Abstand quer zur Linie Zelle / n / √2. Linien mittig im
   Abstand, damit keine Linie auf einer Zellkante liegt. Die Streifen stehen quer zum Winkel: 135deg = ╱, 45deg = ╲.
   Hover mit Fläche ersetzt die Schraffur (background). */
.wl .c.hatch { --h-c: var(--ink); --h-n: 12; --h-w: 1px;
  --h-p: calc(var(--cell) / var(--h-n)); --h-q: calc(var(--h-p) / 1.41421356);
  --h-sd: transparent 0 calc((var(--h-q) - var(--h-w)) / 2), var(--h-c) 0 calc((var(--h-q) + var(--h-w)) / 2), transparent 0 var(--h-q);
  --h-so: transparent 0 calc((var(--h-p) - var(--h-w)) / 2), var(--h-c) 0 calc((var(--h-p) + var(--h-w)) / 2), transparent 0 var(--h-p);
  background-origin: border-box; background-image: repeating-linear-gradient(135deg, var(--h-sd)); }
.wl .c.hatch.h-down { background-image: repeating-linear-gradient(45deg, var(--h-sd)); }
.wl .c.hatch.h-v { background-image: repeating-linear-gradient(90deg, var(--h-so)); }
.wl .c.hatch.h-h { background-image: repeating-linear-gradient(180deg, var(--h-so)); }
.wl .c.hatch.h-x { background-image: repeating-linear-gradient(135deg, var(--h-sd)), repeating-linear-gradient(45deg, var(--h-sd)); }
.wl .c.has-media { color: #fff; }
.wl .c.has-media > *:not(.media) { position: relative; z-index: 1; }
.wl .c.has-media .label { color: #fff; }

/* ---- Typografie ---- */
.wl .label { font-family: var(--f-mono); font-size: calc(var(--s-label) * var(--scale, 1));
  letter-spacing: var(--f-mono-tr, .06em); line-height: var(--f-mono-lh, 1.35); color: var(--ink); }
.wl .big { font-size: calc(var(--s-big) * var(--scale, 1)); line-height: 1.3; letter-spacing: -.01em; }
.wl .body p + p { margin-top: var(--para, var(--f-text-para, .7em)); }
/* Satz je Rolle aus dem Designsystem (tokens.font.<rolle>.align/para/hyphens); Zellart und Zelle überschreiben inline */
.wl .label { text-align: var(--f-mono-al, left); }
.wl .display:not(.lead) { text-align: var(--f-display-al, left); }
.wl .q { text-align: var(--f-question-al, left); }
.wl :is(.body, .txt, .big) { text-align: var(--f-text-al, left); -webkit-hyphens: var(--f-text-hy, manual); hyphens: var(--f-text-hy, manual); }
.wl .body a { text-decoration: underline; text-underline-offset: .15em; }
.wl .display {
  font-family: var(--f-display); font-weight: var(--f-display-w); font-variation-settings: var(--f-display-v, normal);
  letter-spacing: var(--f-display-tr); line-height: var(--f-display-lh); margin-left: -.04em; margin-top: auto; white-space: nowrap;
  --l: 1; --ch: 8;
  font-size: calc(min(calc((100cqh - var(--pad-y) * 2.4) / var(--l)), calc((100cqw - var(--pad-x) * 2) / var(--ch) / .58)) * var(--scale, 1));
}
/* Namenskachel: eigene Schriftrolle „name“ (tokens.font.name), fehlt sie, gilt display */
.wl .c.k-name .display { font-family: var(--f-name, var(--f-display)); font-weight: var(--f-name-w, var(--f-display-w));
  font-variation-settings: var(--f-name-v, var(--f-display-v, normal)); letter-spacing: var(--f-name-tr, var(--f-display-tr));
  line-height: var(--f-name-lh, var(--f-display-lh)); }
.wl .c.k-name .display:not(.lead) { text-align: var(--f-name-al, var(--f-display-al, left)); }
.wl .q { font-family: var(--f-question); font-weight: var(--f-question-w); font-variation-settings: var(--f-question-v, normal);
  font-size: calc(var(--s-q) * var(--scale, 1));
  line-height: var(--f-question-lh, 1.1); letter-spacing: var(--f-question-tr, -.01em); margin-top: auto; }
.wl .q .pm { display: inline-block; width: 1.1em; height: .8em; position: relative; vertical-align: -.02em; }
.wl .q .pm::before, .wl .q .pm::after { content: ''; position: absolute; background: currentColor; left: 0; top: 50%; width: .62em; height: .1em; margin-top: -.05em; }
.wl .q .pm::after { transform: rotate(90deg); transition: transform .5s var(--ease), opacity .5s; }
.wl .on .q .pm::after { transform: rotate(0deg) scaleX(0); opacity: 0; }

/* Größe je Element (wl.js setzt --fs-label/-text/-title und die Klasse fs-…, siehe sizeOf) */
.wl .c.fs-label .label { font-size: var(--fs-label); }
.wl .c.fs-text :is(.body, .txt, .big) { font-size: var(--fs-text); }
.wl .c.fs-title :is(.display, .q) { font-size: var(--fs-title); }

/* Lage des Inhalts in der Zelle (cell.valign; ohne Angabe: Label oben, Inhalt unten) */
.wl .c.va-top > .label:first-child { margin-bottom: 0; }
.wl .c.va-top > :is(.display, .body, .txt, .q, .big):not(.lead) { margin-top: 0; }
.wl .c.va-center > :is(.display, .body, .txt, .q, .big):not(.lead) { margin-top: auto; }
.wl .c.va-center > :last-child { margin-bottom: auto; }
.wl .c.va-bottom > :is(.display, .body, .txt, .q, .big):not(.lead) { margin-top: auto; }

/* ---- Raster (tokens.grid; Hilfslinien zeichnet nur das Studio) ----
   Grundlinien-Abstand = Zelle / --g-lines, Modul = Zelle / --g-cols. */
/* Text auf Rasterlinie (cell.line → on-line, --line): die letzte Grundlinie des Inhalts liegt auf Linie n, von der Oberkante der
   Zelle gezählt. 100cqh = Höhe des Inhaltsbereichs der Zelle; genau mit „optisch bündig“ (dann ist die Unterkante die Grundlinie). */
.wl .c.on-line > :is(.display:not(.lead), .body, .txt, .big, .q):last-child { margin-top: auto; margin-bottom: calc(100cqh + var(--pad-y) - var(--cell) / var(--g-lines) * var(--line)); }
/* Einzug (cell.indent → indent, --indent): Text beginnt auf Modullinie n */
.wl .c.indent { --pad-l: calc(var(--cell) / var(--g-cols) * var(--indent)); padding-left: var(--pad-l); }
/* Größe in Rasterlinien (cell.<rolle>Size = { grid: n } → fg-…, --fg-…): die x-Höhe misst n Grundlinien-Abstände */
.wl .c.fg-title .display { font-size: calc(var(--cell) / var(--g-lines) * var(--fg-title) / var(--xr-display)); }
.wl .c.k-name.fg-title .display { font-size: calc(var(--cell) / var(--g-lines) * var(--fg-title) / var(--xr-name)); }
.wl .c.fg-title .q { font-size: calc(var(--cell) / var(--g-lines) * var(--fg-title) / var(--xr-question)); }
.wl .c.fg-text :is(.body, .txt, .big) { font-size: calc(var(--cell) / var(--g-lines) * var(--fg-text) / var(--xr-text)); }
.wl .c.fg-label .label { font-size: calc(var(--cell) / var(--g-lines) * var(--fg-label) / var(--xr-mono)); }
/* Optisch bündig (tokens.grid.trim → trim): Textblöcke enden oben an der Oberkante der Buchstaben und unten auf der Grundlinie –
   Labels hängen genau an der oberen Linie des Innenabstands, die letzte Zeile steht genau auf der unteren (Lupton, Thinking with
   Type, S. 226). Mitte nach Auge: Kleinbuchstaben werden über ihre x-Höhe zentriert (S. 228). Ältere Browser: wie bisher. */
.wl.trim .c > :is(.label, .body, .txt, .big, .q, .display) { text-box: trim-both cap alphabetic; }
.wl.trim .c.va-center > :is(.body, .txt, .big, .q, .display) { text-box: trim-both ex alphabetic; }
.wl.trim .head .idx > span, .wl.trim .c.h1 .sym { text-box: trim-both ex alphabetic; }

/* ---- Hervorgehobene Kachel (site.feature) ---- */
.wl .c.f-invert { background: var(--ink); color: var(--paper); }
.wl .c.f-invert .label { color: inherit; }
/* Invertiert im Dunkeln = dunkle Schrift auf hellem Grund: wirkt dünner als dieselbe Schrift hell auf dunkel (Irradiation,
   in Chrome zusätzlich ~5 % durch die Kantenglättung). Eine feine Kontur gleicht das aus (Lars, 25. Nov. 2026). */
.wl.dark .c.f-invert .display { -webkit-text-stroke: .012em currentColor; }
.wl .c.f-invert .display:not(.lead)::after, .wl .c.f-frame .display:not(.lead)::after { content: ''; display: inline-block; width: .075em; height: .9em; margin: -.16em 0 0 .07em; background: var(--signal); vertical-align: -.01em; animation: wl-blink 1.1s steps(1) infinite; }
/* beim Tippen steht der Cursor dort, wo gerade geschrieben wird, und blinkt nicht */
.wl .c.typing .display::after { display: none !important; }
.wl .c.typing .display.cur::after { content: ''; display: inline-block !important; width: .075em; height: .9em; margin: -.16em 0 0 .07em; background: var(--signal); vertical-align: -.01em; animation: none; }
/* site.feature.cursor = false: kein Strich, auch nicht beim Tippen */
.wl .c.f-nocur.f-invert .display::after, .wl .c.f-nocur.f-frame .display::after, .wl .c.f-nocur.typing .display.cur::after { display: none !important; }
/* „oben rechts“ der Namenszelle */
.wl .display.lead { align-self: flex-end; text-align: right; margin-top: 0; margin-left: 0; margin-right: -.02em; }
@keyframes wl-blink { 50% { opacity: 0 } }
.wl .c.f-frame::before { content: ''; position: absolute; inset: calc(var(--pad) * .55); border: 1px solid currentColor; pointer-events: none; }
.wl .c.f-red .display { color: var(--signal); }
.wl .c.f-red .display::after { content: '.'; color: var(--ink); }

/* Wegweiser */
.wl .c.sign { justify-content: flex-end; }
.wl.signs-hatch .c.sign { background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ink) 22%, transparent) 7px 8px); }
.wl.signs-hatch .c.sign.hv-sun:hover, .wl.signs-hatch .c.sign.hv-invert:hover, .wl.signs-hatch .c.sign.hv-signal:hover { background-image: none; }

/* Sonne / Mond */
.wl .c.theme { justify-content: center; align-items: center; padding: 0; }
.wl .c.theme svg { width: 34%; height: auto; }
.wl .c.theme .moon { display: none; }
.wl.dark .c.theme .sun { display: none; }
.wl.dark .c.theme .moon { display: block; }

/* ---- FAQ ---- */
/* live: läuft gerade – roter Punkt oben rechts, blinkt wie die Aufnahme-Lampe (bei „Bewegung reduzieren“ ruhig) */
.wl .c .rec { position: absolute; top: calc(var(--pad-y) + 2px); right: var(--pad-x); width: clamp(9px, calc(var(--cell) * .09), 15px); height: clamp(9px, calc(var(--cell) * .09), 15px);
  border-radius: 50%; background: var(--signal); animation: wl-rec 1.4s ease-in-out infinite; }
@keyframes wl-rec { 0%, 40% { opacity: 1; } 60%, 100% { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { .wl .c .rec { animation: none; } }
.wl .flip { perspective: 1200px; padding: 0; cursor: pointer; background: transparent; }
.wl .flip .inner { position: absolute; inset: 0; transition: transform var(--t-faq, 550ms) var(--ease); transform-style: preserve-3d; }
.wl .flip.on .inner { transform: rotateX(-180deg); }
.wl .flip .face { position: absolute; inset: 0; padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: calc(var(--pad) * .6); backface-visibility: hidden; background: var(--paper); overflow: hidden; transition: background var(--t-hover, 180ms), color var(--t-hover, 180ms); }
.wl .flip .face.back { transform: rotateX(180deg); background: var(--ink); color: var(--paper); }
.wl .flip .face.back .more { font-family: var(--f-mono); font-size: 11px; margin-top: auto; align-self: flex-end; opacity: .8; }
.wl .flip.hv-invert:hover .face.front { background: var(--ink); color: var(--paper); }
.wl .flip.hv-sun:hover .face.front, .wl .flip.hv-sun:hover .face.front .q { background: var(--sun); color: var(--on-sun); }
.wl .flip.hv-signal:hover .face.front, .wl .flip.hv-signal:hover .face.front .q { background: var(--signal); color: var(--on-signal, #fff); }
.wl .faqq { cursor: pointer; transition: background var(--t-hover, 180ms), color var(--t-hover, 180ms); }
.wl .faqq.on, .wl .faqq.on:hover, .wl .faqq.hv-invert:hover { background: var(--ink); color: var(--paper); }
.wl .faqq.hv-sun:not(.on):hover, .wl .faqq.hv-sun:not(.on):hover .q { background: var(--sun); color: var(--on-sun); }
.wl .faqq.hv-signal:not(.on):hover, .wl .faqq.hv-signal:not(.on):hover .q { background: var(--signal); color: var(--on-signal, #fff); }
.wl .faqq.on { border-bottom-color: var(--paper); }
.wl .faqq.hv-invert:hover .q, .wl .faqq.on .q { color: var(--paper); }
.wl .c.ans { background: var(--ink); color: var(--paper); animation: wl-ans .55s var(--ease) both; }
@keyframes wl-ans { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
.wl .c.ans .big { margin-top: auto; animation: wl-ans-text .6s .15s var(--ease) both; }
@keyframes wl-ans-text { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Kopfzeile ---- */
.wl .head { position: sticky; top: 0; left: 0; z-index: 20; background: var(--paper); }
.wl .head .c { border-bottom: var(--line-w) solid var(--ink); flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; padding-bottom: 0; }
.wl .head .c:last-child { border-right: 0; }
.wl .head .idx { justify-content: center; padding: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }
.wl .head .idx .n { display: none; }
.wl .head .idx:not(.hv-none):hover .num { display: none; }
.wl .head .idx:not(.hv-none):hover .n { display: inline; }
/* aktiver Bereich (sein Panel ist offen) wie der Hover der Kopfzeile: Nur Schrift = Name statt Nummer ohne Fläche,
   Gelb/Invertiert = invertierte Fläche, Aus = keine Markierung */
.wl .head .idx.on:not(.hv-none) .num { display: none; }
.wl .head .idx.on:not(.hv-none) .n { display: inline; }
.wl .head .idx.on.hv-sun, .wl .head .idx.on.hv-invert, .wl .head .idx.on.hv-signal { background: var(--ink); color: var(--paper); }
.wl .head::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.wl.panel-open .head::after { opacity: var(--dim, .55); }

/* Symbol oben links */
.wl .head .emblem { padding: 0; overflow: hidden; cursor: pointer; justify-content: flex-start; }
.wl .head .emblem svg.rk, .wl .head .emblem svg.comet { height: calc(var(--half) * .5); width: auto; margin-left: var(--pad); position: relative; z-index: 2; }
.wl .head .emblem svg.comet { height: calc(var(--half) * .4); display: none; }
.wl.dark .head .emblem.alt svg.rk, .wl.dark .head .emblem.alt .smoke { display: none; }
.wl.dark .head .emblem.alt svg.comet, .wl.dark .head .emblem.alt .tail { display: block; }
.wl .head .emblem:hover svg { animation: wl-launch 2.4s cubic-bezier(.55,0,.85,.25) both; }
@keyframes wl-launch { 0% { transform: translateX(0) } 42% { transform: translateX(calc(var(--cell) * 3.3)) } 43% { transform: translateX(calc(var(--cell) * -1.2)) } 68% { transform: translateX(calc(var(--cell) * -1.2)) } 100% { transform: translateX(0) } }
.wl .head .emblem .smoke { position: absolute; left: calc(var(--pad) + 6px); top: 50%; pointer-events: none; z-index: 1; }
.wl .head .emblem .smoke i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 0; border-radius: 50%; background: var(--ink); opacity: 0; left: calc(var(--i) * var(--cell) * .42); }
.wl .head .emblem:hover .smoke i { animation: wl-puff 1.4s ease-out both; animation-delay: calc(.22s + var(--i) * .13s); --g: calc(2 + var(--i) * .5); }
@keyframes wl-puff { 0% { opacity: 0; transform: scale(.2) } 12% { opacity: .85; transform: scale(.5) } 100% { opacity: 0; transform: translate(-8px, -6px) scale(var(--g)) } }
.wl .head .emblem .tail { position: absolute; left: calc(var(--pad) + 2px); top: 50%; height: 2px; width: 0; margin-top: -1px; background: linear-gradient(to right, transparent, var(--ink)); opacity: 0; display: none; }
.wl .head .emblem:hover .tail { animation: wl-tail 2.4s cubic-bezier(.55,0,.85,.25) both; }
@keyframes wl-tail { 0% { width: 0; opacity: 0 } 10% { opacity: 1 } 42% { width: calc(var(--cell) * 3.3); opacity: 1 } 43% { width: 0; opacity: 0 } 100% { width: 0; opacity: 0 } }

/* ---- Panel ---- */
.wl .panel { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--cell) * (var(--cols) - var(--pcols, 5))); z-index: 60;
  background: var(--paper); box-shadow: -1px 0 0 var(--ink);
  transform: translateX(100%); visibility: hidden; transition: transform var(--t-panel, 600ms) var(--ease), visibility 0s var(--t-panel, 600ms); overflow: hidden; }
.wl .panel.open { transform: none; visibility: visible; transition: transform var(--t-panel, 600ms) var(--ease), visibility 0s; }
.wl .panel .band.half { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.wl .panel .c.appear { animation: wl-appear var(--t-appear, 500ms) var(--ease) both; }
@keyframes wl-appear { from { opacity: 0; } to { opacity: 1; } }
.wl .dim { position: absolute; left: 0; right: 0; top: var(--half); bottom: 0; z-index: 59; background: #000; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.wl.panel-open .dim { opacity: var(--dim, .55); pointer-events: auto; cursor: pointer; }
.wl.panel-open .viewport { filter: blur(var(--blur, 0px)); }
.wl.phone .panel { left: 0; }
/* Panel: mit dem Finger frei scrollbar, auf jedem Gerät (ein iPad mit Trackpad meldet sich wie ein Mac). Mausrad und
   Trackpad fängt wl.js ab und rastet auf Zellen ein; keine Scrollleiste. Das Blatt zieht wl.js selbst (touch-action). */
.wl .panel { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wl .panel::-webkit-scrollbar { display: none; }
.wl.site:not(.phone) .viewport { touch-action: none; }

/* Statische Fassung für Suchmaschinen und ohne JavaScript; wl.js entfernt sie */
.wl-static { max-width: 42rem; margin: 3rem auto; padding: 0 1.5rem; font: 16px/1.5 system-ui, sans-serif; }
.wl-static h1 { font-size: 2.4rem; line-height: 1.1; margin-bottom: 1rem; }
.wl-static h2 { margin: 2rem 0 .5rem; }

@media (prefers-reduced-motion: reduce) { .wl *, .wl *::before, .wl *::after { transition: none !important; animation: none !important; } }
