/* AI Zeitgeist – styles. Plain CSS, no build step. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk[wght].ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-Italic[wght].ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  interpolate-size: allow-keywords; /* height: auto animierbar (FAQ) */
  --bg: #000;
  --fg: #fff;
  --fg-2: rgb(255 255 255 / 0.62);
  --fg-3: rgb(255 255 255 / 0.36);
  --line: rgb(255 255 255 / 0.14);
  --pill-bg: rgb(20 20 20 / 0.72);
  --pop-bg: rgb(16 16 16 / 0.92);
  --accent: #00ff66;
  --grid-alpha: 0.10;
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pill-h: 60px;
  color-scheme: dark;
  accent-color: var(--accent);
}
:root[data-theme="light"] {
  --bg: #fff;
  --fg: #000;
  --fg-2: rgb(0 0 0 / 0.62);
  --fg-3: rgb(0 0 0 / 0.4);
  --line: rgb(0 0 0 / 0.14);
  --pill-bg: rgb(240 240 240 / 0.78);
  --pop-bg: rgb(250 250 250 / 0.94);
  --accent: #00d95c;
  --grid-alpha: 0.06;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.45;
}
.pop-big, .timeline, .archive-count { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration-color: var(--fg-3); text-decoration-thickness: 0.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--fg-2); }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: inherit; border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3em; }

/* ── Hero ── */
.hero { position: relative; height: 100vh; height: 100dvh; background: var(--bg); overflow: hidden; }
#wall { display: block; width: 100%; height: 100%; }
#wall-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 13; pointer-events: none; } /* über der Kopfleiste (12), unter Time Machine (15) und Pill (20) */
#wall-grid.under { z-index: 11; } /* sobald gescrollt: unter der Kopfleiste */
.hero-hit { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; }
.hero-hit:focus-visible { outline: none; }

/* ── Pill ── */
.pill {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  height: var(--pill-h);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: var(--pill-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line);
  z-index: 20;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
}
.pill.away { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
/* Weicher Hof um die Pill: gleiche Abdunklung und Blur wie die Kopfleiste, aber als Aura mit Außenradius statt als Fläche */
.pill::before {
  content: ""; position: absolute; inset: -32px -48px; z-index: -1; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
.pill-logo {
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.ring-date { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--fg); }
.ring-date #ring-day { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ring-date #ring-mon { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); margin-top: 1px; }
.pill-cd { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; padding: 0 8px 0 10px; color: var(--fg); line-height: 1; }
.pill-cd[hidden] { display: none; }
.pill-cd .sep { margin: 0 0.02em; }
.pill-cd .roll { width: 0.6em; height: 1em; vertical-align: middle; }
.pill-cd .sep { line-height: 1; position: relative; top: -0.02em; }
.pill-cd-label { font-size: 0.85rem; font-weight: 500; color: var(--fg-2); white-space: nowrap; line-height: 1; position: relative; top: 0.04em; }
.pill-state { display: inline-flex; align-items: center; color: var(--fg); font-weight: 700; font-size: 1.05rem; padding: 0 10px; }
.pill-state[hidden] { display: none; }
.pill-state .frozen { font-weight: 500; color: var(--fg-2); font-size: 0.85rem; margin-left: 10px; }
.ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100.53; stroke-dashoffset: 100.53; transition: stroke-dashoffset 1s linear; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(0 255 102 / 0.5); } 70% { box-shadow: 0 0 0 8px rgb(0 255 102 / 0); } 100% { box-shadow: 0 0 0 0 rgb(0 255 102 / 0); } }
.pill-btn.play[aria-pressed="true"] { color: var(--accent); }

/* Werkzeuge: eingeklappt ein "Settings"-Button, aufgeklappt vier Icons */
.pill-tools { display: flex; align-items: center; }
.tools-toggle { max-width: 140px; opacity: 1; transition: max-width 0.5s cubic-bezier(0.25, 0.9, 0.3, 1), opacity 0.25s ease, padding 0.5s cubic-bezier(0.25, 0.9, 0.3, 1); overflow: hidden; }
.pill-btn.tools-toggle, .pill-btn.labeled { display: inline-flex; align-items: center; width: auto; height: 44px; border-radius: 999px; padding: 0 16px 0 10px; gap: 8px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; color: var(--fg); }
.pill-btn.labeled { margin-right: 2px; }
@media (max-width: 640px) { .pill-btn.labeled { padding: 0 10px; } .pill-btn.labeled .label { display: none; } } /* mobil nur das Icon */
.tools-panel { display: flex; align-items: center; gap: 2px; max-width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-width 0.5s cubic-bezier(0.25, 0.9, 0.3, 1), opacity 0.35s ease 0.12s, visibility 0s linear 0.5s; }
.pill-tools.open .pill-btn.tools-toggle { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; pointer-events: none; }
.pill-tools.open .tools-panel { max-width: 170px; opacity: 1; visibility: visible; transition-delay: 0s, 0.12s, 0s; }
@media (prefers-reduced-motion: reduce) { .tools-panel { transition: none; } }
.pill-btn .icon.flip { transform: scaleX(-1); }
#btn-prev, #btn-next { width: 40px; height: 40px; margin: 0 -2px; }
.pill-btn.play .icon { stroke-width: 1.5; }
@media (max-width: 640px) { #btn-prev, #btn-next { display: none; } }
/* Trennstriche: optisch gleiche Abstände; Chevrons haben Luft in ihrer Icon-Box, deshalb enger */
.pill-sep { width: 1px; height: 26px; background: var(--line); margin: 0 8px 0 2px; } /* rechts 8: Hover-Kreis der Pfeile (Rand -2) endet 6 px vor dem Strich */
#btn-next + .pill-sep { margin-left: 8px; }
.pill-sep + .pill-tools { margin-left: -2px; }
.pill-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--fg-2); }
.pill-btn .icon { width: 22px; height: 22px; }
.pill-btn:hover, .pill-btn[aria-expanded="true"], .pill-btn:popover-open, .pill-logo:hover { color: var(--fg); background: rgb(127 127 127 / 0.15); }
.pill-btn:focus-visible, .pill-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Tooltip der Pill: Blase mit Rand, Pfeilecke mittig nach unten */
.tip { position: fixed; z-index: 22; padding: 7px 12px; border-radius: 10px; background: var(--pop-bg); border: 1px solid var(--line); color: var(--fg); font-size: 0.85rem; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); }
.tip.in { opacity: 1; transform: none; }
.tip[hidden] { display: none; }
.tip::after { content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: var(--pop-bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }
@media (max-width: 640px) {
  .pill-sep { margin: 0 4px 0 0; } /* Play/Pause-Kreis (48 px) braucht Luft zu den Strichen */
  #btn-next + .pill-sep { margin-left: 4px; }
  .pill-sep + .pill-tools { margin-left: 0; }
  .pill-cd { font-size: 0.95rem; padding: 0 10px 0 8px; gap: 8px; }
  .pill-cd-label { display: none; }
  .pill-state .frozen { display: none; }
}
@media (max-width: 400px) { .pill-cd, .pill-state, .pill .pill-sep:first-of-type { display: none; } .pill-logo { margin-right: 4px; } }

/* ── Header (oben links) ── */
/* Kopfleiste: volle Breite hinter Logo/Claim und Störern, abgedunkelt und geblurrt */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 12;
  height: max(calc(max(16px, env(safe-area-inset-top)) + 60px), var(--topbar-min, 0px));
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.topbar.away { opacity: 0; transform: translateY(-16px); }
.brand {
  position: fixed; top: max(16px, env(safe-area-inset-top)); left: 20px; z-index: 20;
  display: block;
  max-width: calc(100vw - var(--stoerer-w, 200px) - 52px);
  font-size: 1.05rem; line-height: 1.3; color: var(--fg);
  transition: opacity 0.25s, transform 0.25s;
  transform-origin: top left;
  transition: opacity 0.25s, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
@media (hover: hover) { .brand.near { transform: scale(2); } }
.brand.away { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.brand-link {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-decoration: none; color: inherit; cursor: pointer;
  padding: 8px 14px; margin: -8px -14px; border-radius: 12px;
}
.brand-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.brand-name { font-weight: 800; letter-spacing: -0.01em; }
.brand-sep { color: var(--fg-3); }
.brand-claim { color: var(--fg-2); font-weight: 500; }
@media (max-width: 640px) {
  .brand { font-size: 0.95rem; max-width: calc(100vw - var(--stoerer-w, 160px) - 44px); }
  .brand-link { gap: 4px 8px; }
  .brand-sep { display: none; }
  .brand-claim { display: block; width: 100%; font-size: 0.85rem; }
}

/* ── Störer (oben rechts) ── */
.stoerer-group { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 20; display: flex; gap: 8px; transition: opacity 0.25s, transform 0.25s; }
.stoerer-group.away { opacity: 0; transform: translateY(-16px); pointer-events: none; }
@media (max-width: 640px) { .topbar { height: max(calc(max(16px, env(safe-area-inset-top)) + 64px), var(--topbar-min, 0px)); } }
.stoerer {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--pill-bg); color: var(--fg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.25s, transform 0.25s, background 0.2s, border-color 0.2s;
}
.stoerer { position: relative; }
.badge-new { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #000; font-size: 0.75rem; font-weight: 800; line-height: 22px; text-align: center; box-shadow: 0 0 0 0 rgb(0 255 102 / 0.6); animation: badgepulse 1.8s ease-out infinite; }
.badge-new[hidden] { display: none; }
.stoerer[aria-pressed="true"] .badge-new { background: #000; color: var(--accent); }
@keyframes badgepulse { 0% { box-shadow: 0 0 0 0 rgb(0 255 102 / 0.6); transform: scale(1); } 60% { box-shadow: 0 0 0 10px rgb(0 255 102 / 0); transform: scale(1.06); } 100% { box-shadow: 0 0 0 0 rgb(0 255 102 / 0); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .badge-new { animation: none; } }
.stoerer:hover { border-color: var(--fg-2); }
.stoerer[aria-pressed="true"] { background: var(--accent); color: #000; border-color: var(--accent); }
.stoerer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stoerer.likes { padding: 0 16px 0 14px; border-color: var(--line); }
.stoerer.likes:hover { border-color: var(--fg-2); }
.stoerer.likes .icon { width: 18px; height: 18px; }
.stoerer.likes[aria-pressed="true"] { background: var(--accent); color: #000; border-color: var(--accent); }
.stoerer.likes[aria-pressed="true"] .icon { fill: #000; }
.stoerer.likes[hidden] { display: none; }

/* ── Scroll to top (gleiche Stelle wie die Pill) ── */
.totop {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  height: var(--pill-h); padding: 0 22px 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--pill-bg); color: var(--fg);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  font-size: 1.05rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  animation: rise 0.25s ease-out;
}
.totop[hidden] { display: none; }
.totop .icon { width: 22px; height: 22px; transform: rotate(-90deg); }
.totop:hover { background: rgb(127 127 127 / 0.25); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ── Popovers (öffnen über der Pill, zentriert) ── */
.pop {
  position: fixed;
  inset: auto auto calc(var(--pill-h) + 34px) 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(420px, calc(100vw - 24px));
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--pop-bg);
  color: var(--fg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
  font-size: 1.05rem;
}
.pop:is(:popover-open, .\:popover-open) { display: block; }
.pop::backdrop { background: rgb(0 0 0 / 0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
:root[data-theme="light"] .pop::backdrop { background: rgb(0 0 0 / 0.35); }
.pop-big { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.countdown { display: inline-flex; align-items: center; gap: 0.12em; line-height: 1; }
.countdown .sep { color: var(--fg-3); font-weight: 400; margin: 0 0.05em; }
.countdown .unit { display: inline-flex; }
.countdown.big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.countdown.big .unit { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 8px 14px; border: 1px solid var(--line); border-radius: 14px; }
.countdown.big .digits { display: inline-flex; }
.countdown.big .sep { display: none; }
#countdown-text { margin-top: 18px; }
.unit-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-top: 8px; }
.roll { position: relative; display: inline-block; width: 0.62em; height: 1em; overflow: hidden; vertical-align: baseline; line-height: 1; }
.roll .d { position: absolute; left: 0; top: 0; width: 100%; height: 100%; line-height: 1; text-align: center; transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.32s; }
.roll .d.in { transform: translateY(100%); opacity: 0; }
.roll .d.cur { transform: translateY(0); opacity: 1; }
.roll .d.out { transform: translateY(-100%); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .roll .d { transition: none; } }
.pop-text { margin: 8px 0 0; }
.pop-h { margin: 0 0 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.pop-h:not(:first-child) { margin-top: 22px; }
.row { display: flex; align-items: center; gap: 14px; margin: 0; }
.row > span:first-child { width: 64px; color: var(--fg-2); }
.row input[type="range"] { flex: 1; height: 28px; }
.row output { width: 64px; text-align: right; color: var(--fg-2); }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 0; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-left-width: 0; cursor: pointer; color: var(--fg-2); font-weight: 600; font-size: 0.95rem; user-select: none; }
.seg label:first-of-type span { border-left-width: 1px; }
.seg span:hover { color: var(--fg); }
.seg label:first-of-type span { border-radius: 10px 0 0 10px; }
.seg label:last-of-type span { border-radius: 0 10px 10px 0; }
.seg input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
@media (max-width: 400px) { #speed-seg span { font-size: 0.85rem; padding: 12px 4px; letter-spacing: -0.01em; } }
.keys { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.keys li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 46px; border-top: 1px solid var(--line); }
.keys li:first-child { border-top: 0; }
.keys .icon { width: 18px; height: 18px; color: var(--fg-2); flex: none; }
.key-label { flex: 1; font-size: 0.95rem; white-space: nowrap; }
.key-keys { display: inline-flex; gap: 4px; justify-content: flex-end; min-width: 64px; }
.keys kbd { font-size: 0.8rem; font-weight: 600; color: var(--fg-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 8px; min-width: 28px; text-align: center; line-height: 1.5; }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.share-grid > * { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--fg); text-decoration: none; cursor: pointer; font-size: 1rem; min-height: 48px; }
.share-grid > *:hover { border-color: var(--fg-2); }
.share-grid > *[hidden] { display: none; }
.image-grid > * > span { display: flex; flex-direction: column; line-height: 1.2; }
.image-grid small { font-size: 0.78rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.pop-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--fg-3); line-height: 1.4; }
.embed { width: 100%; margin-top: 12px; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: none; }
.embed[hidden] { display: none; }
#share-preview { font-weight: 700; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 1.15rem; }

/* ── Quelle (Dialog) ── */
.source {
  border: 1px solid var(--line); border-radius: 28px; background: var(--pop-bg); color: var(--fg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  width: min(1040px, calc(100vw - 32px)); padding: 56px 56px 44px; margin: auto;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.source::backdrop { background: rgb(0 0 0 / 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:root[data-theme="light"] .source::backdrop { background: rgb(0 0 0 / 0.45); }
/* Schließen-X in den Popovers (Desktop und Mobil; Esc und Klick daneben gehen weiterhin) */
.pop-close { display: grid; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg-2); place-items: center; cursor: pointer; }
.pop-close:hover { color: var(--fg); background: var(--line); }
/* Hintergrund hinter den Popovers wie beim Line-Modal abdunkeln und blurren */
.pop::backdrop { background: rgb(0 0 0 / 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:root[data-theme="light"] .pop::backdrop { background: rgb(0 0 0 / 0.45); }
.pop-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pop-close .icon { width: 20px; height: 20px; }
.pop { padding-top: 26px; }
.pop > .pop-h:first-of-type, .pop > .pop-text:first-of-type { padding-right: 44px; } /* Platz für das X neben der ersten Zeile */
.source .close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg-2); display: grid; place-items: center; cursor: pointer; }
.source .close .icon { width: 24px; height: 24px; }
.source .close:hover { color: var(--fg); border-color: var(--fg-2); background: rgb(127 127 127 / 0.15); }
.source .close:focus-visible { outline: none; color: var(--fg); border-color: var(--fg-2); } /* showModal setzt den Fokus hierher: kein blauer Browser-Ring */
.source:focus-visible { outline: none; }
.source-text { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 48px 24px 0; }
.source-meta { margin: 0 0 18px; color: var(--fg-2); font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.source-meta .badge { font-size: 0.8rem; padding: 4px 12px; }
.source-meta .pillbtn { font-size: 1rem; padding: 4px 14px; }
.source-context { margin: 0 0 28px; font-size: 1.45rem; line-height: 1.4; max-width: 40ch; }
.source-link { margin: 0; font-size: 1.15rem; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.source-link .src { color: var(--fg); text-decoration: none; font-weight: 600; max-width: 100%; }
.source-link .src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-link .src[hidden] { display: none; }
.source-link:has(.src[hidden]) { display: none; }
.source-link:has(.src[hidden]) + .source-actions { margin-top: 0; }
.source-link .src .icon { width: 18px; height: 18px; }
.pop-actions { margin: 16px 0 0; }
.source-actions { margin: 12px 0 0; font-size: 1.15rem; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* Vor/Zurück im Modal: Desktop rechts unten; mobil wischt man stattdessen */
.source-nav { margin-left: auto; display: flex; gap: 8px; }
.source-nav .nav-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg-2); display: grid; place-items: center; cursor: pointer; }
.source-nav .nav-btn .icon { width: 22px; height: 22px; }
.source-nav .nav-btn .icon.flip { transform: scaleX(-1); }
.source-nav .nav-btn:hover { color: var(--fg); border-color: var(--fg-2); background: rgb(127 127 127 / 0.15); }
.source-nav .nav-btn:focus-visible { outline: none; color: var(--fg); border-color: var(--fg-2); }
@media (max-width: 640px), (pointer: coarse) { .source-nav { display: none; } }
.source.swipe-left { animation: src-swipe-l 0.22s ease-out; } .source.swipe-right { animation: src-swipe-r 0.22s ease-out; }
@keyframes src-swipe-l { 0% { transform: translateX(28px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
@keyframes src-swipe-r { 0% { transform: translateX(-28px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.linkbtn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 12px 20px; cursor: pointer; font-size: 1.05rem; color: var(--fg-2); min-height: 48px; }
.linkbtn .icon { width: 18px; height: 18px; flex: none; }
.linkbtn:hover { color: var(--fg); border-color: var(--fg-2); }
@media (max-width: 640px) { .source { padding: 36px 24px 28px; border-radius: 22px; } .source-context { font-size: 1.2rem; } .source-meta { font-size: 1.05rem; } }

/* ── Time Machine ── */
.timeline {
  position: fixed; top: 0; right: 0; bottom: 0; width: 160px; z-index: 15;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px;
  background: linear-gradient(to left, rgb(0 0 0 / 0.6), transparent);
  pointer-events: none;
}
:root[data-theme="light"] .timeline { background: linear-gradient(to left, rgb(255 255 255 / 0.65), transparent); }
.timeline[hidden] { display: none; }
@media (max-width: 640px) {
  /* Mobil liegt die Leiste über der großen Zeile: stärker abdunkeln und blurren, weich nach links auslaufen */
  /* Mobil als Karte über der Pill statt als Streifen über der Wand */
  .timeline { top: auto; right: 16px; bottom: calc(var(--pill-h) + 40px + env(safe-area-inset-bottom)); width: 200px; max-height: 60vh; padding: 12px 0; align-items: flex-end; justify-content: flex-start; border-radius: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .timeline ol { max-height: 42vh; }
  .timeline-hint { margin-right: 20px; padding-bottom: 8px; }
}
.timeline { transition: opacity 0.25s, transform 0.25s; }
.timeline.enter { animation: tl-enter 0.45s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes tl-enter { 0% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.timeline.away { opacity: 0; transform: translateX(24px); pointer-events: none; }
/* Oben und unten weich auslaufen statt hart abzuschneiden: die Ränder sind Innenabstand, damit nichts halb herausblitzt; links Luft für den Hover-Zoom (overflow schneidet sonst ab) */
.timeline ol { list-style: none; margin: 0; padding: 28px 20px 28px 28px; pointer-events: auto; max-height: 70vh; overflow: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.timeline ol::-webkit-scrollbar { display: none; }
.timeline li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 40px; color: var(--fg-2); font-size: 1rem; cursor: pointer; white-space: nowrap; }
.timeline li span:first-child { flex: none; }
.timeline li .tick { width: 14px; height: 1px; background: var(--fg-3); }
.timeline li.year { font-weight: 700; color: var(--fg); }
.timeline li.year:hover { color: var(--accent); }
.timeline li.year .tick { width: 24px; background: var(--fg); }
.timeline li.running span:first-child::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 0.15em; animation: pulse 1.6s ease-in-out infinite; }
.timeline li.active { color: var(--accent); }
.timeline li.active .tick { background: var(--accent); width: 34px; }
.timeline li:hover { color: var(--fg); }
.timeline li span:first-child { transition: transform 0.18s ease; transform-origin: right center; }
.timeline li:hover span:first-child { transform: scale(1.18); }
@media (prefers-reduced-motion: reduce) { .timeline li span:first-child { transition: none; } }
.timeline li.now { margin-bottom: 8px; font-weight: 700; }
.timeline-hint { font-variant-numeric: normal; pointer-events: auto; margin: 0 20px 0 0; max-width: 130px; text-align: right; font-size: 0.85rem; color: var(--fg-3); line-height: 1.35; }
.timeline-hint[hidden] { display: none; }

/* ── Unter dem Hero: vollflächig, große Typo ── */
.below { padding: 0; max-width: 1760px; margin: 0 auto; } /* Ultrawide: Inhalt unter dem Hero nicht über 1760 px laufen lassen */
/* Scroll-into-view: leicht von unten, mit Opacity */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.faq, .archive { padding: clamp(64px, 10vh, 140px) clamp(20px, 5vw, 96px); }
.faq { min-height: 100vh; min-height: 100dvh; }
.archive { min-height: 60vh; } /* bei leerer Trefferliste kein leerer Bildschirm bis zum Footer */
.share-block { padding: clamp(120px, 20vh, 260px) clamp(20px, 5vw, 96px) clamp(48px, 8vh, 96px); }
.faq { padding-top: clamp(48px, 8vh, 96px); }
@media (max-width: 640px) { .share-block { padding-top: 72px; padding-bottom: 40px; } .faq { padding-top: 40px; } }
.share-lead { margin: calc(-1 * clamp(16px, 3vh, 48px)) 0 clamp(24px, 4vh, 40px); color: var(--fg-2); font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.4; max-width: 34em; }
.share-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; } /* ab ~1400 px alle Karten in einer Zeile */
.share-card-sub { display: block; margin-top: -8px; color: var(--fg-3); font-weight: 500; font-size: 0.85rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.share-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 16px 14px; min-height: 104px; border: 1px solid var(--line); border-radius: 18px; background: transparent; color: var(--fg); text-decoration: none; font: inherit; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; text-align: left; }
.share-card .icon { width: 24px; height: 24px; color: var(--fg-2); }
.share-card:hover { border-color: var(--fg-2); background: rgb(127 127 127 / 0.08); }
.share-card:hover .icon { color: var(--fg); }
.share-card[hidden] { display: none; }
.share-card.done { border-color: var(--accent); }
.share-card.done .icon { color: var(--accent); }
#share-embed-code { margin-top: 12px; }
@media (max-width: 640px) { .share-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; } .share-card { min-height: 92px; padding: 16px 14px 14px; gap: 14px; font-size: 1rem; } }
h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-transform: none; color: var(--fg); margin: 0 0 clamp(32px, 5vh, 72px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: clamp(20px, 3vh, 34px) 0; font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
/* Plus aus zwei Balken: der senkrechte dreht sich beim Öffnen in den waagerechten, aus + wird − */
.faq summary { position: relative; padding-right: 40px; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 2px; top: 50%; background: var(--fg-3); border-radius: 1px; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s; }
.faq summary::after { width: 20px; height: 2px; margin-top: -1px; }
.faq summary::before { width: 2px; height: 20px; margin-top: -10px; right: 11px; }
.faq summary:hover::after, .faq summary:hover::before { background: var(--fg); }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(180deg); }
/* Auf- und Zuklappen weich: Höhe des Inhalts animieren (Chrome/Safari mit ::details-content), sonst nur Einblenden */
.faq details::details-content { height: 0; overflow: hidden; transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1), content-visibility 0.25s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { margin: -8px 0 clamp(24px, 4vh, 40px); max-width: 34em; color: var(--fg-2); font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.4; }
.faq details[open] p { animation: faq-in 0.3s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes faq-in { 0% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
/* Die vier weiteren Fragen gleiten nacheinander herein */
.faq-extra.in { animation: faq-row 0.3s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes faq-row { 0% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq details::details-content, .faq summary::after, .faq summary::before { transition: none; } .faq details[open] p, .faq-extra.in { animation: none; } }
.faq details p strong { color: var(--fg); font-weight: 600; }

.archive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.archive-count { color: var(--fg-3); font-size: clamp(1rem, 1.4vw, 1.25rem); margin: 0 0 24px; }
.archive-filters {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto auto auto auto auto; gap: 10px;
  padding: 14px 0 22px; margin-bottom: 16px;
  background: var(--bg);
}
.archive-filters input, .archive-filters select { font: inherit; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; min-width: 0; height: 60px; font-size: 1.15rem; }
.archive-filters input { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; }
.archive-filters input::placeholder { color: var(--fg-3); font-weight: 600; }
.archive-filters input, .archive-filters select { transition: border-color 0.15s; }
.archive-filters select { cursor: pointer; }
.archive-filters input.on, .archive-filters select.on { border-color: var(--accent); } /* aktiver Filter */
.archive-filters input:hover, .archive-filters select:hover { border-color: var(--fg-2); }
.archive-filters input:focus, .archive-filters select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.archive-filters select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.archive-filters select option { color: #000; background: #fff; }
.f-liked { display: inline-flex; align-items: center; gap: 8px; height: 60px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--fg-2); font: inherit; font-size: 1.05rem; cursor: pointer; }
.f-liked .icon { width: 20px; height: 20px; }
.f-liked:hover { color: var(--fg); border-color: var(--fg-2); }
.f-liked[aria-pressed="true"] { border-color: var(--accent); color: var(--fg); }
/* Like-Flug: Herz vom Button zum Zähler, der Zähler hüpft kurz */
.fly-heart { position: fixed; z-index: 30; pointer-events: none; color: var(--accent); display: grid; place-items: center; }
.fly-heart .icon { width: 100%; height: 100%; fill: var(--accent); stroke: var(--accent); stroke-width: 1.5; }
.bump { animation: likebump 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.icon.heartpop { animation: likepop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes likepop { 0% { transform: scale(0.6); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
.f-liked.bump, .stoerer.bump { border-color: var(--accent); color: var(--fg); }
@keyframes likebump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.f-liked[aria-pressed="true"] .icon { fill: var(--accent); stroke: var(--accent); }
.entry-actions { display: inline-flex; align-items: center; gap: 0.05em; white-space: nowrap; vertical-align: baseline; }
/* Deckende Farbe + Opacity statt halbtransparenter Farbe: sonst überlagern sich die Striche des Share-Icons sichtbar */
.actbtn, .likebtn { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; margin-left: 0.15em; vertical-align: -0.08em; border: 0; border-radius: 50%; background: transparent; color: var(--fg); opacity: 0.36; cursor: pointer; padding: 0; transition: opacity 0.15s; }
.likebtn .icon, .actbtn .icon { width: 0.72em; height: 0.72em; stroke-width: 1.5; } /* groß neben der Zeile: dünnerer Strich */
.likebtn:hover, .actbtn:hover, .likebtn[aria-pressed="true"], .actbtn.done { opacity: 1; }
.actbtn.done { color: var(--accent); }
.likebtn[aria-pressed="true"] { color: var(--accent); }
.likebtn[aria-pressed="true"] .icon { fill: var(--accent); }
.linkbtn.like[aria-pressed="true"] { border-color: var(--accent); color: var(--fg); }
.linkbtn.like[aria-pressed="true"] .icon { fill: var(--accent); stroke: var(--accent); }
.archive-empty { padding: 48px 0; max-width: 34em; }
.archive-empty-h { margin: 0 0 16px; font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--fg); } /* wie eine FAQ-Frage */
.archive-empty-p { margin: 0; color: var(--fg-2); font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.4; } /* wie eine FAQ-Antwort */
.f-reset { display: inline-flex; align-items: center; gap: 8px; height: 60px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 14px; background: transparent; color: var(--fg); font: inherit; font-size: 1.15rem; cursor: pointer; }
.f-reset:hover { background: rgb(0 255 102 / 0.12); }
.f-reset[hidden] { display: none; }
.f-reset .icon { width: 18px; height: 18px; }
@media (max-width: 720px) {
  /* Mobil: Suche + Herz in der ersten Zeile, die drei Selects darunter in voller Breite (sonst werden die Labels abgeschnitten) */
  .archive-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 10px 0 16px; }
  .archive-filters input { grid-column: 1 / 6; height: 56px; }
  .f-liked { grid-column: 6; grid-row: 1; height: 56px; padding: 0 4px; gap: 4px; justify-content: center; font-size: 0.9rem; }
  .archive-filters select { grid-column: span 2; height: 48px; font-size: 0.95rem; padding: 0 26px 0 12px; background-position: right 8px center; background-size: 18px; }
  .f-reset { grid-column: 1 / -1; height: 48px; justify-content: center; font-size: 1rem; }
}
@media (max-width: 380px) {
  /* Sehr schmal (iPhone SE, Fold): zwei Selects pro Zeile, Months neben dem Herz */
  .archive-filters input { grid-column: 1 / -1; }
  .f-liked { grid-column: 5 / -1; grid-row: 3; height: 48px; }
  .archive-filters select { grid-column: span 3; }
  #f-month { grid-column: 1 / 5; }
}
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-month { padding: clamp(40px, 6vh, 72px) 0 12px; font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.entry { padding: clamp(33px, 4.5vh, 54px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; } /* Abstand zu den Trennlinien +50 % */
.entry:target { outline: 2px solid var(--accent); outline-offset: 12px; border-radius: 6px; }
.entry-text { font-size: clamp(1.7rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 26em; }
.entry-text a { text-decoration: none; }
.entry-text a:hover { text-decoration: underline; text-decoration-thickness: 0.04em; text-underline-offset: 0.12em; text-decoration-color: var(--fg-2); }
.entry-meta { font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 10px; }
.badge { display: inline-block; font-size: 0.78em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.pillbtn { font: inherit; display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; background: transparent; color: var(--fg-2); cursor: pointer; line-height: 1.5; }
.pillbtn:hover { border-color: var(--fg-2); color: var(--fg); }
.badge.pillbtn { padding: 2px 10px; }
/* Datum, Sprecher und Tags ruhiger: dunkleres Grau, ohne Rahmen; Rahmen und Helligkeit erst beim Hover */
.meta-date { color: var(--fg-3); }
.pillbtn.speaker, .pillbtn.tagpill { color: var(--fg-3); border-color: transparent; padding: 2px 0; }
.pillbtn.speaker:hover, .pillbtn.tagpill:hover { color: var(--fg); border-color: transparent; text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 0.18em; }
.entry-meta { gap: 8px 14px; }
/* Aktiver Filter im Eintrag: Canon, Sprecher und Tag weiß (grün bleibt News vorbehalten), News gefüllt */
.badge.pillbtn.on { border-color: var(--fg); color: var(--fg); }
.badge.news.pillbtn.on { background: var(--accent); color: #000; border-color: var(--accent); }
.pillbtn.speaker.on, .pillbtn.tagpill.on { color: var(--fg); }
.badge.news { border-color: var(--accent); color: var(--accent); }
/* Neu seit dem letzten Lauf: pulsierender Punkt vor dem News-Label statt eigenem Badge */
.badge.news.fresh::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 0.1em; animation: pulse 1.6s ease-in-out infinite; }
.badge.news.fresh.on::before { background: #000; animation: none; }
.tag { color: var(--fg-3); }
.entry-context { margin: 0; color: var(--fg-2); max-width: 40em; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.4; }
.entry-source { margin: 10px 0 0; font-size: clamp(0.95rem, 1.2vw, 1.1rem); }
.archive-more { display: block; width: 100%; margin-top: 32px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: transparent; cursor: pointer; color: var(--fg-2); font-size: 1.15rem; font-weight: 600; }
.archive-more:hover { color: var(--fg); border-color: var(--fg-2); }
.faq-more { margin-top: 24px; }
.faq details:has(+ .faq-more:not([hidden])) { border-bottom: 1px solid var(--line); } /* letzte sichtbare Frage vor dem Button bekommt die Abschlusslinie */
.faq-more[hidden], .faq-extra[hidden] { display: none; }

.foot { padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 96px) calc(120px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--fg-2); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.foot p { margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .pill-state .dot { animation: none; }
  .pill, .ring-fill, .totop, .stoerer { transition: none; animation: none; }
}

/* ── Embed-Modus (?embed=1): nur die Wand ── */
.embed .topbar, .embed .pill, .embed .below, .embed .timeline, .embed .hero-hit, .embed .stoerer-group, .embed .totop, .embed .brand { display: none !important; }

/* Consent-Hinweis (Google Analytics): unten links, neben der Pill; mobil über der Pill */
.consent { position: fixed; left: max(20px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 21; width: min(360px, calc(100vw - 40px)); padding: 16px 18px; border-radius: 20px; background: var(--pill-bg); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--line); color: var(--fg-2); font-size: 0.95rem; line-height: 1.4; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent a { color: var(--fg); }
.consent-actions { display: flex; gap: 8px; }
.consent .linkbtn { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.consent .consent-yes { color: var(--fg); border-color: var(--fg-2); }
@media (max-width: 720px) { .consent { left: 50%; transform: translateX(-50%); bottom: calc(var(--pill-h) + 36px + env(safe-area-inset-bottom)); } }

/* Tipps unten rechts (10 s: „Click any line“, 20 s: Time Machine): ploppen auf, schweben und pulsieren leicht; ein neuer Tipp schiebt den älteren nach oben */
.hints { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 21; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.hint {
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(640px, calc(100vw - 40px));
  padding: 12px 10px 12px 14px; border-radius: 999px; pointer-events: auto; cursor: pointer;
  background: var(--pill-bg); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line); color: var(--fg); font-size: 0.95rem; line-height: 1.35;
  transform-origin: 100% 100%;
  animation: hintpop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both, hintfloat 3.2s ease-in-out 0.55s infinite, hintglow 2.4s ease-in-out 0.55s infinite;
}
.hint.out { animation: hintout 0.28s ease-in both; pointer-events: none; }
.hint-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #000; flex: none; animation: hinticon 1.6s ease-in-out infinite; }
.hint-icon .icon { width: 20px; height: 20px; }
.hint-text { margin: 0; padding-right: 2px; }
.hint-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-2); cursor: pointer; flex: none; }
.hint-close:hover { color: var(--fg); background: var(--line); }
.hint-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@keyframes hintpop { 0% { opacity: 0; transform: scale(0.6) translateY(16px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes hintout { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.85) translateY(10px); } }
@keyframes hintfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hintglow { 0%, 100% { box-shadow: 0 0 0 0 rgb(0 255 102 / 0), 0 8px 30px rgb(0 0 0 / 0.35); } 50% { box-shadow: 0 0 0 1px rgb(0 255 102 / 0.35), 0 0 28px rgb(0 255 102 / 0.28), 0 8px 30px rgb(0 0 0 / 0.35); } }
@keyframes hinticon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.hint.measure { position: absolute; visibility: hidden; max-width: none; white-space: nowrap; } /* nur zum Messen der einzeiligen Breite */
.hints.above { bottom: calc(var(--pill-h) + 36px + env(safe-area-inset-bottom)); } /* zu wenig Platz neben der Pill: über die Pill-Linie */
@media (max-width: 720px) { .hints { right: auto; left: 50%; transform: translateX(-50%); align-items: center; bottom: calc(var(--pill-h) + 36px + env(safe-area-inset-bottom)); } .hint { transform-origin: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .hint, .hint-icon { animation: none; } .hint.out { display: none; } }
.embed .hints { display: none !important; }

/* Rechtsseiten (imprint.html, privacy.html) */
.legal-page { background: var(--bg); color: var(--fg); }
.legal { max-width: 44em; margin: 0 auto; padding: clamp(32px, 6vh, 72px) clamp(20px, 5vw, 48px) clamp(64px, 10vh, 120px); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; margin: 24px 0 12px; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; margin: 40px 0 8px; }
.legal p { margin: 0 0 14px; color: var(--fg-2); }
.legal .lead { color: var(--fg); font-size: 1.1em; }
.legal a { color: var(--fg); }
.legal code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgb(127 127 127 / 0.15); padding: 1px 6px; border-radius: 6px; }
.legal-back { margin: 0 0 8px; }
.legal-back .linkbtn { text-decoration: none; font-weight: 600; color: var(--fg); }
.legal-back .linkbtn:hover { background: rgb(127 127 127 / 0.15); }
.legal-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); }

/* Mobil: Like, Share, Link als kleine Buttons in einer Zeile über der Archivzeile */
@media (max-width: 640px) {
  .entry-text { display: flex; flex-direction: column; gap: 12px; }
  .entry-actions { order: -1; display: flex; gap: 10px; font-size: 1rem; }
  .actbtn, .likebtn { width: 40px; height: 40px; margin: 0; border: 1px solid var(--line); opacity: 1; color: var(--fg-2); vertical-align: middle; }
  .likebtn .icon, .actbtn .icon { width: 18px; height: 18px; stroke-width: 2; } /* klein in 40-px-Buttons: normaler Strich */
  .likebtn[aria-pressed="true"], .actbtn.done { border-color: var(--accent); }
}
/* Ohne Tastatur (Touch-Geräte) keine Tastaturhilfe im Settings-Popover */
@media (hover: none) and (pointer: coarse) { .keys, .keys-h { display: none; } }
