
  @property --bg     { syntax: '<color>'; inherits: true; initial-value: #1E2B25; }
  @property --ink    { syntax: '<color>'; inherits: true; initial-value: #EDE4CB; }
  @property --accent { syntax: '<color>'; inherits: true; initial-value: #C9A24B; }
  @property --soft   { syntax: '<color>'; inherits: true; initial-value: #2E4238; }

  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --p: 0;
    --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --text: "Literata", Georgia, "Times New Roman", serif;
    --rail: 264px;
    background: var(--bg);
    color: var(--ink);
    transition: --bg .9s ease, --ink .9s ease, --accent .9s ease, --soft .9s ease;
    scroll-behavior: smooth;
    scroll-padding-top: env(safe-area-inset-top, 0px);
  }
  :root, .e1918 { --bg: #1E2B25; --ink: #EDE4CB; --accent: #C9A24B; --soft: #2E4238; }
  :root[data-era="1945"], .e1945 { --bg: #A7ADAD; --ink: #16191A; --accent: #2F7A34; --soft: #8E9595; }
  :root[data-era="1970"], .e1970 { --bg: #D9822B; --ink: #2B1407; --accent: #FFF1C9; --soft: #B5601A; }
  :root[data-era="2000"], .e2000 { --bg: #0E7C7B; --ink: #F4FBFA; --accent: #FFE04D; --soft: #0A5F5F; }
  :root[data-era="2026"], .e2026 { --bg: #FFD11A; --ink: #111111; --accent: #FFFFFF; --soft: #EBB800; }
  .e1918, .e1945, .e1970, .e2000, .e2026 { background: var(--bg); color: var(--ink); }

  *, *::before, *::after { box-sizing: inherit; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, p { margin: 0; }
  a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
  h1:focus { outline: none; }
  ::selection { background: var(--ink); color: var(--bg); }
  button { font: inherit; color: inherit; }

  .shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }

  /* ---------- Seitenleiste ---------- */
  .rail { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 2rem 1.5rem 2rem 1.75rem; border-right: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); font-family: var(--display); z-index: 20; }
  .brand { font-weight: 800; font-size: 1.55rem; line-height: 1; font-stretch: 85%; text-decoration: none; letter-spacing: -.01em; }
  .brand small { display: block; margin-top: .45rem; font-weight: 400; font-size: .9rem; letter-spacing: 0; opacity: .8; font-stretch: 100%; }
  .nav { display: flex; flex-direction: column; gap: .15rem; margin-top: 1.6rem; font-size: 1rem; font-weight: 500; }
  .nav a { text-decoration: none; padding: .15rem 0; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
  .nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
  .nav a[aria-current="page"] { font-weight: 800; }
  .timeline { position: relative; flex: 1; margin: 1.6rem 0 1.6rem 9px; min-height: 120px; }
  .timeline::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: currentColor; opacity: .3; }
  .tick { position: absolute; left: 0; top: calc(var(--t) * 100%); transform: translateY(-50%); display: flex; align-items: center; gap: .7rem; font-size: .85rem; font-weight: 500; text-decoration: none; opacity: .65; transition: opacity .3s; }
  .tick::before { content: ""; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%; background: currentColor; }
  .tick:hover, .tick.on { opacity: 1; }
  .tick.on { font-weight: 800; }
  .marker { position: absolute; left: -1px; top: calc(var(--p) * 100%); width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--ink); transform: translate(-50%, -50%); pointer-events: none; }
  .year { display: block; font-weight: 800; font-stretch: 75%; font-size: 5.4rem; line-height: .85; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .era-label { display: block; margin-top: .6rem; font-size: 1.05rem; font-weight: 500; min-height: 1.6em; }

  /* ---------- Allgemein ---------- */
  main { min-width: 0; }
  main.enter { animation: enter .45s ease-out both; }
  @keyframes enter { from { opacity: 0; } to { opacity: 1; } }
  .pad { padding-inline: clamp(1.25rem, 5vw, 5rem); }
  .block { padding-block: clamp(3.5rem, 9vh, 7rem); }
  section[id] { scroll-margin-top: 0; }

  .hero { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding-block: 3rem; }
  .page-hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 2.2rem; padding-block: 4rem 3rem; }
  .hero-title { font-family: var(--display); line-height: .86; }
  .hero-title .small { display: block; font-size: clamp(1.6rem, 4vw, 3.2rem); font-weight: 300; font-stretch: 90%; margin-bottom: .6rem; letter-spacing: -.01em; }
  .hero-title .big { display: block; font-size: clamp(3.1rem, 12.6vw, 11.5rem); font-weight: 800; font-stretch: 75%; letter-spacing: -.035em; white-space: nowrap; }
  .page-hero .hero-title .big { font-size: clamp(2.8rem, 10.4vw, 10rem); }
  .hero-title .big span { display: inline-block; animation: settle 1.5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + .15s); }
  @keyframes settle { from { font-weight: 200; opacity: 0; transform: translateY(.18em); } to { font-weight: 800; opacity: 1; transform: none; } }
  .hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
  .lead { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.5; max-width: 32ch; }
  .welcome { margin-top: 1.1rem; max-width: 42ch; opacity: .85; }
  .hint { margin-top: 1.4rem; font-size: .95rem; font-style: italic; opacity: .75; max-width: 40ch; }
  .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
  .btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
  .btn.solid { background: var(--ink); color: var(--bg); }
  .btn:hover { transform: translateY(-2px); }
  .btn:not(.solid):hover { background: var(--ink); color: var(--bg); }
  .btn.sm { font-size: .95rem; padding: .55rem 1.1rem; }
  .missing { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .85rem; padding: .1rem .7rem; border: 2px dashed currentColor; border-radius: 999px; opacity: .8; }

  figure.frame { margin: 0; justify-self: end; width: min(100%, 340px); transform: rotate(2deg); }
  figure.frame svg { display: block; width: 100%; height: auto; overflow: visible; }
  figure.frame figcaption { margin-top: .8rem; font-size: .9rem; font-style: italic; opacity: .75; text-align: center; }

  .intro { padding-top: clamp(3rem, 8vh, 6rem); }
  .intro p { font-style: italic; opacity: .8; margin-bottom: .6rem; }
  .intro h2, .sec-head { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.6rem, 7.5vw, 6.5rem); line-height: .92; letter-spacing: -.03em; }
  .sec-head { margin-bottom: 3rem; }

  .station { min-height: 88vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: 4rem; }
  .yr { display: flex; align-items: center; gap: 1rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; }
  .yr::after { content: ""; height: 2px; width: 4.5rem; background: currentColor; opacity: .6; }
  .station h3, .chapter h2 { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: .92; letter-spacing: -.025em; margin-bottom: 1.2rem; }
  .station p, .chapter .say { max-width: 26ch; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; }
  .station .more { margin-top: 1.6rem; display: inline-block; font-family: var(--display); font-weight: 700; }
  .motif { width: 100%; max-width: 480px; justify-self: center; }
  .motif svg { display: block; width: 100%; height: auto; overflow: visible; }

  /* Motive */
  .plaque { transform-origin: 50% 0; }
  .is-active .plaque { animation: swing 2.6s ease-out .2s both; }
  @keyframes swing { 0% { transform: rotate(-9deg); } 20% { transform: rotate(6deg); } 40% { transform: rotate(-3.5deg); } 60% { transform: rotate(2deg); } 80% { transform: rotate(-.8deg); } 100% { transform: rotate(0); } }
  .sprout .stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .sprout .leaf { transform-box: fill-box; transform-origin: 0% 100%; transform: scale(0); }
  .sprout .leaf.r { transform-origin: 100% 100%; }
  .is-active .sprout .stem { animation: draw 1.6s ease-out .3s forwards; }
  .is-active .sprout .leaf { animation: pop .7s cubic-bezier(.3, 1.5, .5, 1) forwards; animation-delay: calc(1.4s + var(--d) * .25s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { transform: scale(1); } }
  .arcs circle { transform-box: view-box; transform-origin: 210px 260px; transform: scale(.4); opacity: 0; }
  .is-active .arcs circle { animation: arcin .9s cubic-bezier(.2, 1.2, .4, 1) forwards; animation-delay: calc(var(--d) * .12s); }
  @keyframes arcin { to { transform: scale(1); opacity: 1; } }
  .brush .stroke { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .is-active .brush .stroke { animation: draw 1.4s ease-out .3s forwards; }
  .para .ring { transform-box: fill-box; transform-origin: 50% 50%; }
  .is-active .para .ring { animation: spin 1.6s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes spin { from { transform: rotate(-200deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

  .win { background: #C0C0C0; color: #000; font-family: "Courier New", Courier, monospace; font-size: .95rem; line-height: 1.5; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 8px 8px 0 rgba(0, 0, 0, .35); text-align: left; }
  .win .title { background: linear-gradient(90deg, #0A246A, #3A6EA5); color: #fff; padding: .3rem .5rem; display: flex; justify-content: space-between; align-items: center; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .85rem; }
  .win .title i { font-style: normal; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; background: #C0C0C0; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff; font-size: .75rem; }
  .win .body { padding: 1.1rem 1.1rem 1.3rem; }
  .win .line { margin-bottom: .8rem; }
  .win .bar { height: 1.5rem; border: 2px solid; border-color: #404040 #fff #fff #404040; padding: 2px; background: #fff; }
  .win .bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #0A246A 0 12px, transparent 12px 15px); }
  .is-active .win .bar span { animation: load 3.4s steps(22) .4s forwards; }
  @keyframes load { to { width: 100%; } }
  .win .done { margin-top: .8rem; opacity: 0; }
  .is-active .win .done { animation: show .1s 3.9s forwards; }
  @keyframes show { to { opacity: 1; } }
  .win .cursor { display: inline-block; width: .6em; height: 1em; background: #000; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .win .btns { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; }
  .win .fake { font: 700 .85rem Arial, sans-serif; padding: .35rem 1.3rem; background: #C0C0C0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff; }

  .taxi { display: grid; justify-items: center; }
  .taxi .sign { background: var(--ink); color: var(--accent); font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(3rem, 9vw, 5.2rem); letter-spacing: .06em; padding: .1em .5em .05em; border-radius: 18px 18px 6px 6px; line-height: 1.05; animation: glow 2.8s ease-in-out infinite; }
  .taxi .feet { display: flex; gap: 6.5rem; }
  .taxi .feet i { width: 1.2rem; height: .9rem; background: var(--ink); }
  .taxi .road { width: 100%; height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 34px, transparent 34px 60px); background-size: 60px 6px; animation: drive 1.2s linear infinite; opacity: .85; }
  .taxi .roof { width: 100%; height: 3.2rem; background: var(--ink); border-radius: 12px 12px 0 0; margin-top: -1px; }
  @keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 50% { box-shadow: 0 0 46px 6px color-mix(in srgb, var(--accent) 65%, transparent); } }
  @keyframes drive { to { background-position: -60px 0; } }
  .taxi.honk .sign { animation: shake .45s ease-in-out; }
  @keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) rotate(-2deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

  /* ---------- Personen ---------- */
  .persons { display: flex; gap: 1.2rem; align-items: stretch; }
  .person { --g: 1; flex: var(--g) 1 0; min-width: 175px; background: var(--soft); border-radius: 50% 50% 22px 22px / 200px 200px 22px 22px; overflow: hidden; display: flex; flex-direction: column; transition: flex-grow .7s cubic-bezier(.2, .8, .2, 1); scroll-margin-top: 2rem; }
  .person[data-p="pascal"] { --g: .8; }
  .person[data-p="werner"] { --g: 1.3; }
  .persons .person.is-open { flex-grow: 2.4; }
  .person.solo { flex: none; width: min(100%, 360px); }
  .person-btn { all: unset; cursor: pointer; display: block; width: 100%; padding: 2.4rem 1rem 0; box-sizing: border-box; }
  .person-fig { padding: 2.4rem 1rem 0; }
  .person-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; border-radius: 50% 50% 0 0 / 200px 200px 0 0; }
  .person-btn svg, .person-fig svg { display: block; width: 100%; max-width: 250px; height: 290px; margin: 0 auto; overflow: visible; }
  .person-text { padding: 1.4rem 1.5rem 1.8rem; background: var(--ink); color: var(--bg); flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
  .role { font-family: var(--display); font-weight: 700; font-size: .9rem; padding: .1rem .8rem; border: 2px solid currentColor; border-radius: 999px; }
  .person-text h3 { font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 1.9rem; line-height: 1; letter-spacing: -.015em; }
  .person-text p { font-size: 1.05rem; line-height: 1.5; }
  .person-text .row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: auto; align-items: center; padding-top: .6rem; font-family: var(--display); font-weight: 700; }
  button.honk { background: none; border: 2px solid currentColor; border-radius: 999px; padding: .15rem .9rem; cursor: pointer; font-family: var(--display); font-weight: 700; }
  button.honk:hover { background: var(--bg); color: var(--ink); }

  .skin { fill: #E9B790; }
  .fig .ink { fill: var(--ink); }
  .fig .acc { fill: var(--accent); }
  .fig .bgc { fill: var(--bg); }
  .fig .line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
  .fig .pop { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
  .is-open .fig .pop { animation: sect 1.6s ease-out .3s both; }
  @keyframes sect { 0% { opacity: 0; transform: translateY(14px) scale(.4); } 25% { opacity: 1; transform: translateY(0) scale(1.15); } 40%, 100% { opacity: 1; transform: none; } }
  .fig .paint { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .is-open .fig .paint { animation: draw 1.1s ease-out .3s forwards; }
  .fig .lamp { fill: var(--accent); }
  .is-open .fig .lamp { animation: lamp 1s ease-in-out infinite; }
  @keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  .fig .body { transform-box: fill-box; transform-origin: 50% 100%; }
  .is-open .fig .body { animation: bob 2.4s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.012); } }
  .person.honked .fig .body { animation: jump .5s ease-out; }
  .person.gaveled .fig .body { animation: knock .84s steps(1); }
  @keyframes knock { 0%, 33%, 66% { transform: translateY(3px) scaleY(.98); } 12%, 45%, 78%, 100% { transform: none; } }
  @keyframes jump { 40% { transform: translateY(-14px); } }

  /* ---------- Zitat und Weiter ---------- */
  .quote { background: var(--ink); color: var(--bg); }
  .quote blockquote { margin: 0; font-style: italic; font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 1.12; letter-spacing: -.015em; max-width: 20ch; text-wrap: balance; }
  .quote .btn { border-color: var(--bg); color: var(--bg); margin-top: 2.6rem; }
  .quote .btn.solid { background: var(--bg); color: var(--ink); }
  .quote .btn.solid:hover { background: transparent; color: var(--bg); }
  .next { display: block; text-decoration: none; background: var(--ink); color: var(--bg); padding-block: clamp(3.5rem, 9vh, 6rem); }
  .next span { display: block; font-style: italic; opacity: .8; margin-bottom: .4rem; }
  .next b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 10vw, 8.5rem); line-height: .9; letter-spacing: -.03em; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .next:hover b { transform: translateX(1.5rem); }

  /* ---------- Geschichte ---------- */
  .strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
  .strip a { text-decoration: none; min-height: 170px; padding: 1.1rem 1.1rem 1.2rem; border-radius: 120px 120px 16px 16px; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--display); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 20%, transparent); transition: transform .25s; }
  .strip a:hover { transform: translateY(-6px); }
  .strip b { font-weight: 800; font-stretch: 75%; font-size: 2.6rem; line-height: .9; }
  .strip span { font-weight: 500; font-size: 1rem; margin-top: .3rem; }
  .chapter { position: relative; overflow: hidden; min-height: 92vh; display: grid; align-items: center; padding-block: 5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
  .ghost { position: absolute; right: -2vw; bottom: -5vw; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(10rem, 34vw, 30rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: .2; pointer-events: none; user-select: none; }
  .chapter-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .kap { font-family: var(--display); font-weight: 600; margin-bottom: 1rem; opacity: .85; }
  .pager { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }

  /* ---------- Generationen ---------- */
  .gen { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(4rem, 10vh, 7rem); border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); scroll-margin-top: 0; }
  .gen.wide { grid-template-columns: 1fr; }
  .gen-no { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(7rem, 18vw, 15rem); line-height: .78; color: transparent; -webkit-text-stroke: 2px var(--ink); }
  .gen h2 { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: .95; letter-spacing: -.02em; margin: 1rem 0 .8rem; }
  .gen .say { max-width: 32ch; font-size: 1.2rem; }
  .gen-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 2.5rem; }
  .gen-cards { display: flex; justify-content: center; }

  /* ---------- Archiv ---------- */
  .filters { display: flex; flex-wrap: wrap; gap: .6rem; }
  .chip { font-family: var(--display); font-weight: 700; font-size: 1rem; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
  .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; padding-bottom: clamp(4rem, 10vh, 7rem); }
  .tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; border-radius: 160px 160px 18px 18px; overflow: hidden; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 18%, transparent); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .tile:hover { transform: translateY(-6px) rotate(-.6deg); }
  .tile:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
  .tile[hidden] { display: none; }
  .tile .pic { height: 250px; display: grid; place-items: center; padding: 2.6rem 1.6rem 1rem; }
  .tile .pic > * { width: 100%; max-width: 250px; }
  .tile .pic svg { display: block; width: 100%; max-height: 190px; overflow: visible; }
  .tile .cap { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.3rem 1.3rem; background: var(--ink); color: var(--bg); font-family: var(--display); }
  .tile .cap small { font-weight: 600; font-size: .9rem; opacity: .85; }
  .tile .cap b { font-weight: 800; font-stretch: 85%; font-size: 1.45rem; line-height: 1.05; }
  .tile .win, .viewer .win { font-size: .7rem; box-shadow: 5px 5px 0 rgba(0, 0, 0, .35); }
  .tile .win .body { padding: .6rem; }
  .tile .win .btns, .tile .win .line + .line { display: none; }
  .tile .taxi .sign { font-size: 2.6rem; }
  .tile .taxi .feet { gap: 3rem; }
  .tile .taxi .roof { height: 1.8rem; }
  .viewer { border: 0; padding: 0; width: min(92vw, 880px); max-height: 90vh; border-radius: 26px; overflow: auto; }
  .viewer::backdrop { background: rgba(0, 0, 0, .6); }
  .viewer[open] { animation: enter .3s ease-out; }
  .viewer-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); align-items: center; }
  .viewer .stage { display: grid; place-items: center; min-height: 260px; }
  .viewer .stage > * { width: 100%; max-width: 380px; }
  .viewer .stage svg { display: block; width: 100%; overflow: visible; }
  .viewer h2 { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; margin: .8rem 0 1rem; }
  .viewer p { font-size: 1.15rem; line-height: 1.55; max-width: 32ch; }
  .viewer .pager { margin-top: 1.8rem; }

  /* ---------- Stammbaum ---------- */
  .tree-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-bottom: clamp(4rem, 10vh, 7rem); }
  .tree-wrap { overflow-x: auto; padding: 1rem 0 2rem; }
  .tree, .tree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; position: relative; }
  .tree ul { padding-top: 34px; }
  .tree li { position: relative; padding: 34px 8px 0; display: flex; flex-direction: column; align-items: center; }
  .tree > li { padding-top: 0; }
  .tree li::before, .tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 34px; border-top: 2px solid var(--ink); }
  .tree li::after { right: auto; left: 50%; border-left: 2px solid var(--ink); }
  .tree li:only-child::before, .tree li:only-child::after { display: none; }
  .tree li:only-child { padding-top: 0; }
  .tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
  .tree li:last-child::before { border-right: 2px solid var(--ink); border-radius: 0 10px 0 0; }
  .tree li:first-child::after { border-radius: 10px 0 0 0; }
  .tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 34px; border-left: 2px solid var(--ink); }
  .node { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-family: var(--display); width: 104px; text-align: center; }
  .medal { width: 78px; height: 92px; border-radius: 999px 999px 14px 14px; border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-stretch: 75%; font-size: 2.6rem; line-height: 1; background: var(--bg); transition: background-color .3s, color .3s, transform .3s; }
  .node .nm { font-weight: 700; font-size: 1rem; line-height: 1.1; }
  .node .ny { font-size: .85rem; opacity: .8; }
  .node:hover .medal { transform: translateY(-4px); }
  .node.path .medal { background: var(--soft); }
  .node.sel .medal { background: var(--ink); color: var(--bg); transform: scale(1.08); }
  .node:focus-visible { outline: none; }
  .node:focus-visible .medal { outline: 3px solid var(--ink); outline-offset: 4px; }
  .leaf-card { position: sticky; top: 2rem; background: var(--ink); color: var(--bg); border-radius: 50% 50% 22px 22px / 110px 110px 22px 22px; padding: 4.2rem 1.8rem 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
  .leaf-card h2 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }
  .leaf-card p { font-size: 1.1rem; line-height: 1.55; }
  .leaf-card .line-of { font-size: .95rem; font-style: italic; opacity: .85; }
  .leaf-card a { font-family: var(--display); font-weight: 700; margin-top: .6rem; }
  .leaf-card.swap { animation: enter .35s ease-out; }

  /* ---------- Footer ---------- */
  footer { padding-block: 3rem 4rem; font-family: var(--display); border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
  footer .links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-weight: 600; }
  footer .up { margin-top: 2rem; background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; cursor: pointer; font-family: var(--display); font-size: 1.05rem; }
  footer small { display: block; margin-top: 1.4rem; opacity: .75; font-family: var(--text); font-size: .95rem; }


  /* ---------- Spielereien ---------- */
  body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0; transition: opacity .9s ease; }
  :root[data-era="1918"] body::after { opacity: .22; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.75)); animation: grain .5s steps(4) infinite; }
  :root[data-era="1945"] body::after { opacity: .1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .5s steps(4) infinite; }
  :root[data-era="2000"] body::after { opacity: .5; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
  @keyframes grain { 0% { background-position: 0 0, center; } 25% { background-position: -40px 20px, center; } 50% { background-position: 30px -30px, center; } 75% { background-position: -20px -50px, center; } 100% { background-position: 0 0, center; } }

  .marker { pointer-events: auto; cursor: grab; touch-action: none; }
  .marker::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
  .marker:hover, .marker:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 8px color-mix(in srgb, var(--ink) 25%, transparent); outline: none; }
  .timeline.dragging .marker { cursor: grabbing; }
  .timeline.dragging { user-select: none; }
  .drag-hint { font-size: .8rem; font-weight: 500; opacity: .7; margin-top: -1rem; margin-bottom: 1rem; }

  main .motif, main figure.frame { cursor: pointer; }
  .arcs.groovy { animation: groove 1.6s linear infinite; }
  @keyframes groove { to { filter: hue-rotate(360deg) saturate(1.6); } }
  .win button.fake { cursor: pointer; }
  .win button.fake:active { border-color: #404040 #fff #fff #404040; }
  .win button.fake:focus-visible { outline: 2px dotted #000; outline-offset: -5px; }

  .drive { position: fixed; left: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); width: 230px; z-index: 60; pointer-events: none; transform: translateX(-280px); }
  .drive svg { display: block; width: 100%; height: auto; overflow: visible; }
  .drive.go { animation: across 2.8s cubic-bezier(.5, 0, .5, 1) forwards; }
  @keyframes across { 0% { transform: translateX(-280px); } 100% { transform: translateX(calc(100vw + 60px)); } }
  .drive .wheel { transform-box: fill-box; transform-origin: center; animation: roll .35s linear infinite; }
  @keyframes roll { to { transform: rotate(360deg); } }
  .drive .puff { transform-box: fill-box; transform-origin: center; animation: puff .7s ease-out infinite; }
  .drive .puff:nth-of-type(2) { animation-delay: .35s; }
  @keyframes puff { from { opacity: .8; transform: translateX(0) scale(.5); } to { opacity: 0; transform: translateX(-30px) scale(1.4); } }

  .stamp { position: fixed; left: 50%; top: 50%; z-index: 65; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(3rem, 11vw, 8.5rem); line-height: 1; color: #C0231A; border: .1em solid #C0231A; border-radius: .14em; padding: .08em .35em; background: rgba(255, 250, 240, .9); transform: translate(-50%, -50%) rotate(-12deg) scale(3); opacity: 0; pointer-events: none; white-space: nowrap; }
  .stamp.slam { animation: slam 1.9s cubic-bezier(.2, .9, .3, 1) forwards; }
  @keyframes slam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(3); } 14% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } 72% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1.04); } }
  .shake { animation: bump .35s ease-out; }
  @keyframes bump { 20% { transform: translate(4px, 6px); } 45% { transform: translate(-4px, -3px); } 70% { transform: translate(2px, 2px); } }

  .flash { position: fixed; inset: 0; z-index: 66; background: #fff; opacity: 0; pointer-events: none; }
  .flash.go { animation: flash .9s ease-out; }
  @keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }

  .alert { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; width: min(92vw, 380px); }
  .alert[hidden] { display: none; }
  .alert .msg { display: flex; gap: 1rem; align-items: flex-start; }
  .alert .ico { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #FFE04D; border: 2px solid #000; display: grid; place-items: center; font: 800 1.3rem Arial, sans-serif; }
  .alert .title button { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; background: #C0C0C0; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff; font-size: .75rem; }

  .paintpad { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--soft); border-radius: 18px; touch-action: none; cursor: crosshair; }
  .stage .clear { margin-top: .8rem; }
  .secret { margin-top: .6rem; }


  /* ---------- Sprache und Hinweise ---------- */
  .lang { margin-left: .6rem; font: 700 .8rem/1 var(--display); border: 2px solid currentColor; border-radius: 999px; padding: .3rem .6rem; background: transparent; color: var(--ink); cursor: pointer; vertical-align: middle; }
  .lang[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.2rem); transform: translate(-50%, 20px); z-index: 80; background: var(--ink); color: var(--bg); font: 600 1rem/1.4 var(--display); padding: .7rem 1.2rem; border-radius: 16px; max-width: min(92vw, 520px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: 0 0 0 2px var(--bg); }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }
  .nl { border-bottom: 2px dotted currentColor; cursor: help; position: relative; font-style: inherit; }
  .nl::after { content: attr(data-de); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: 15rem; white-space: normal; background: var(--ink); color: var(--bg); box-shadow: 0 0 0 2px var(--bg); font: italic 400 .9rem/1.35 var(--text); padding: .4rem .65rem; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; text-align: center; }
  .nl:hover::after, .nl:focus::after { opacity: 1; transform: translate(-50%, 0); }
  .nl:focus { outline: none; }
  .nl:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

  /* ---------- Startseite: Lebenszeichen ---------- */
  .live-lead { font-style: italic; opacity: .85; margin: -2rem 0 2.5rem; max-width: 44ch; }
  .live-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; }
  .live-grid > * { margin: 0; }
  .meter { background: #111; color: #F2F2F2; border-radius: 22px 22px 22px 6px; padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: inset 0 0 0 3px #333; }
  .meter h3, .word h3, .soup h3 { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 1.5rem; line-height: 1.1; }
  .meter h3 { display: flex; align-items: center; gap: .6rem; }
  .meter h3::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #3DDC6A; box-shadow: 0 0 10px #3DDC6A; animation: lamp 1.4s ease-in-out infinite; }
  .lcd { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
  .lcd div { background: #0C1F10; border-radius: 10px; padding: .6rem .9rem; box-shadow: inset 0 2px 8px rgba(0,0,0,.8); }
  .lcd small { display: block; font: 600 .8rem var(--display); color: #6FD68A; opacity: .8; }
  .lcd b { display: block; font: 700 2.2rem/1.1 "Courier New", Courier, monospace; color: #7CFF9A; text-shadow: 0 0 8px rgba(124,255,154,.6); font-variant-numeric: tabular-nums; }
  .meter p { font-size: 1rem; line-height: 1.4; }
  .meter .where { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
  .blip { animation: enter .5s ease-out; }
  .bubble-box { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
  .bubble { position: relative; background: var(--ink); color: var(--bg); border-radius: 26px; padding: 1.6rem 1.7rem; min-height: 11rem; display: flex; align-items: center; }
  .bubble::after { content: ""; position: absolute; left: 2.2rem; bottom: -16px; border: 18px solid transparent; border-top-color: var(--ink); border-bottom: 0; border-left-width: 6px; }
  .bubble p { font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.35; }
  .bubble.pop-in p { animation: enter .5s ease-out; }
  .bubble-foot { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-family: var(--display); padding-left: .6rem; }
  .mini-medal { width: 2.6rem; height: 3rem; border-radius: 999px 999px 8px 8px; border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
  .bubble-foot .btn { margin-left: auto; }
  .word { border: 3px solid var(--ink); border-radius: 22px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3rem; }
  .word h3 { font-size: 1.1rem; }
  .word .w-nl { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: .95; letter-spacing: -.02em; margin-top: .4rem; }
  .word .w-de { font-style: italic; font-size: 1.1rem; }
  .word p { font-size: .98rem; line-height: 1.45; max-width: 34ch; margin-top: .2rem; }
  .word .btn { align-self: center; margin-top: .6rem; }
  .soup { background: var(--soft); border-radius: 22px; padding: 1.2rem 1.3rem; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; }
  .shelf { display: grid; grid-template-columns: repeat(4, 22px); gap: 8px 6px; padding: 6px 6px 0; }
  .shelf .slot { position: relative; width: 22px; height: 30px; border-bottom: 3px solid var(--ink); }
  .shelf .slot svg { display: block; width: 22px; height: 28px; overflow: visible; }
  .shelf .gone { position: absolute; inset: 1px 2px 2px; border: 2px dashed color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 4px; }
  .shelf .can-in { transform-origin: 50% 100%; animation: canDrop .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 70ms); cursor: pointer; }
  .shelf .upnext .can-in { animation: canDrop .5s cubic-bezier(.3, 1.4, .5, 1) both, wobble 2.4s ease-in-out 1.4s infinite; animation-delay: calc(var(--i) * 70ms), 1.4s; }
  @keyframes canDrop { from { transform: translateY(-30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
  .soup-count { display: block; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.15rem; line-height: 1.15; margin-bottom: .35rem; }
  .soup-count [data-cans] { font-size: 2.3rem; display: block; line-height: .95; }
  .soup p { font-size: .95rem; line-height: 1.4; }
  .soup [data-expired] { font-variant-numeric: tabular-nums; font-weight: 600; }
  .can { transform-origin: 50% 100%; }
  .is-active .can { animation: wobble 3s ease-in-out infinite; }
  @keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
  .motto { margin-top: 1.4rem; font-size: 1.1rem; opacity: .9; max-width: 50ch; }

  /* ---------- Geschichte ---------- */
  .chapter { min-height: auto; padding-block: clamp(5rem, 12vh, 8rem); align-items: start; }
  .chapter-grid { align-items: start; }
  .chapter .motif { position: sticky; top: 18vh; }
  .story { margin-top: 1.6rem; display: grid; gap: 1rem; max-width: 52ch; }
  .story p { font-size: 1.12rem; line-height: 1.75; }
  .anecdote { margin: 2rem 0 0; max-width: 46ch; background: var(--soft); border-radius: 6px 22px 22px 22px; padding: 1.2rem 1.4rem; transform: rotate(-.8deg); }
  .anecdote b { display: block; font-family: var(--display); font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
  .anecdote p { font-style: italic; font-size: 1.08rem; line-height: 1.55; }
  .chronik-wrap { padding-block: clamp(4rem, 10vh, 7rem); border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
  .chronik { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 60rem; }
  .chronik li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.2rem; align-items: center; }
  .chronik .c-yr { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 1.5rem; text-align: center; border-radius: 999px; padding: .15rem 0; }
  .chronik li span:last-child { font-size: 1.08rem; line-height: 1.45; padding: .35rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }

  /* ---------- Generationen ---------- */
  .gen-cards { flex-wrap: wrap; gap: 1.2rem; }
  .person.solo { width: min(100%, 300px); }
  .person-fig-in { display: block; }
  .person .yrs { font-size: .92rem; font-style: italic; opacity: .85; margin-top: -.2rem; }
  .person-text .more { font-size: .98rem; opacity: .92; }
  .person-text .says { font-size: .98rem; font-style: italic; }
  .gen .also { margin-top: 1rem; font-size: 1.02rem; max-width: 34ch; opacity: .9; }

  /* ---------- Archiv ---------- */
  .grid { grid-auto-flow: dense; }
  .tile.wide { grid-column: span 2; border-radius: 26px; }
  .tile .pic { height: auto; min-height: 250px; }
  .tile .pic > .photo, .tile .pic > .docwrap { width: 100%; max-width: 230px; }
  .tile.wide .pic > .docwrap, .tile.wide .pic > .retro { max-width: 420px; }
  .tile .count { opacity: .75; font-weight: 500; }
  .chip .n { opacity: .7; font-weight: 500; }
  .photo { position: relative; background: #F6F1E4; padding: 10px 10px 30px; box-shadow: 0 8px 18px rgba(0,0,0,.3); transform: rotate(var(--r, -2deg)); color: #6B6254; }
  .photo::before, .photo::after { content: ""; position: absolute; width: 22px; height: 22px; background: linear-gradient(135deg, #2B2622 50%, transparent 50%); top: 4px; left: 4px; }
  .photo::after { left: auto; right: 4px; background: linear-gradient(225deg, #2B2622 50%, transparent 50%); }
  .photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: .15rem; padding: .6rem; text-align: center; font-family: var(--display); background: repeating-linear-gradient(45deg, #E8E0CC 0 8px, #DED5BE 8px 16px); }
  .ph svg { width: 55%; fill: #8A7F69; }
  .ph b { font-size: .95rem; color: #4A4237; }
  .ph small { font: .72rem/1.2 "Courier New", monospace; word-break: break-all; }
  .viewer .photo { max-width: 400px; margin: 0 auto; }
  .paper { position: relative; background: #FBF6E9; color: #2A2622; font: .82rem/1.5 "Courier New", Courier, monospace; padding: 1rem 1.1rem 2.4rem; box-shadow: 0 8px 18px rgba(0,0,0,.28); transform: rotate(1.5deg); text-align: left; background-image: repeating-linear-gradient(transparent 0 1.5em, rgba(0,0,0,.06) 1.5em calc(1.5em + 1px)); }
  .paper .p-head { font-weight: 700; border-bottom: 1px solid #2A2622; margin-bottom: .5rem; padding-bottom: .3rem; }
  .paper p { margin: 0 0 .2rem; }
  .pstamp { position: absolute; right: .8rem; bottom: .5rem; transform: rotate(-10deg); border: 3px solid #C0231A; color: #C0231A; font: 800 .9rem/1.2 var(--display); padding: .1rem .5rem; border-radius: 6px; opacity: .85; }
  .viewer .paper { font-size: 1rem; }
  .viewer .docwrap { max-width: 420px; margin: 0 auto; width: 100%; }
  .docwrap.has-img img { display: block; width: 100%; height: auto; box-shadow: 0 8px 18px rgba(0,0,0,.3); transform: rotate(1.5deg); }
  .medal { overflow: hidden; }
  .medal.has-img { padding: 0; }
  .medal img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .leaf-photo:empty { display: none; }
  .leaf-photo img { display: block; width: 150px; height: 180px; object-fit: cover; border-radius: 999px 999px 14px 14px; border: 4px solid var(--bg); margin-bottom: .4rem; }
  .retro { width: 100%; background: #fff; color: #000; border: 2px solid #000; font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; box-shadow: 6px 6px 0 rgba(0,0,0,.3); text-align: center; }
  .retro-bar { background: #D4D0C8; display: flex; gap: 4px; align-items: center; padding: 4px 6px; font: 11px Arial, sans-serif; border-bottom: 2px solid #000; }
  .retro-bar span { width: 9px; height: 9px; border-radius: 50%; background: #999; }
  .retro-bar i { font-style: normal; background: #fff; border: 1px solid #888; flex: 1; text-align: left; padding: 0 4px; margin-left: 4px; }
  .retro-body { background: repeating-conic-gradient(#FFF7B0 0 25%, #FFE97A 0 50%) 0 0 / 20px 20px; padding: 10px; }
  .marq { overflow: hidden; white-space: nowrap; background: #000080; color: #FFFF00; font-size: 12px; padding: 2px 0; }
  .marq span { display: inline-block; padding-left: 100%; animation: marq 14s linear infinite; }
  @keyframes marq { to { transform: translateX(-100%); } }
  .retro-title { font-size: 26px; font-weight: 700; color: #FF00FF; text-shadow: 2px 2px #00CFCF; margin: 8px 0 4px; }
  .retro-tulip { width: 26px; animation: blink 1s steps(1) infinite; }
  .retro-counter { font-size: 12px; margin-top: 4px; }
  .retro-counter b { font-family: "Courier New", monospace; background: #000; color: #0F0; padding: 0 4px; }
  .retro-uc { margin-top: 6px; font: 700 11px Arial, sans-serif; padding: 3px; background: repeating-linear-gradient(45deg, #FFD11A 0 10px, #111 10px 20px); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
  .howto { margin: 0 0 clamp(4rem, 10vh, 6rem); border: 3px dashed var(--ink); border-radius: 22px; padding: 1.2rem 1.5rem; max-width: 60rem; }
  .howto summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
  .howto p { margin-top: .8rem; max-width: 60ch; }
  .howto ul { margin: .8rem 0 0; padding-left: 1.2rem; font: .95rem/1.7 "Courier New", monospace; }

  /* ---------- Stammbaum ---------- */
  .couple { display: flex; align-items: flex-start; gap: .2rem; }
  .ring { font-size: 1.4rem; line-height: 92px; opacity: .8; }
  .honor { margin-top: 3rem; }
  .honor h2 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.8rem; margin-bottom: .4rem; }
  .honor p { font-style: italic; opacity: .85; margin-bottom: 1.2rem; }
  .honor-row { display: flex; flex-wrap: wrap; gap: .6rem; }
  .honor .medal { border-style: dashed; font-size: 1.05rem; font-stretch: 90%; }

  /* ---------- Fotos auf Startseite und in der Geschichte ---------- */
  main { overflow-x: clip; }
  .hero-photo.has-img img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
  .collage { position: relative; width: 100%; max-width: 540px; justify-self: center; }
  .collage .snap:not(.has-img) { display: none; }
  .collage .snap { --r: 2deg; padding: 12px 12px 44px; cursor: zoom-in; }
  .snap-cap { position: absolute; left: 0; right: 0; bottom: 11px; text-align: center; font: italic 1.02rem/1.2 var(--text); color: #4A4237; }
  .collage:has(.snap.has-img) .motif { position: absolute; width: 44%; max-width: 230px; left: -7%; bottom: -14%; z-index: 2; transform: rotate(-6deg); filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
  .collage:has(.snap.has-img) .win { font-size: .62rem; }
  .collage:has(.snap.has-img) .taxi .sign { font-size: 2.2rem; }
  .collage:has(.snap.has-img) .taxi .feet { gap: 2.6rem; }
  .collage:has(.snap.has-img) .taxi .roof { height: 1.5rem; }
  .chapter .collage { position: sticky; top: 16vh; }
  .chapter .collage .motif { position: static; }
  .meter-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .meter-pic:not(.has-img) { display: none; }
  .meter-pic { cursor: zoom-in; flex: none; }
  .meter-pic img { display: block; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid #3DDC6A; }
  .mini-medal { overflow: hidden; }
  .mini-medal.has-img { width: 3.4rem; height: 4rem; }
  .mini-medal img { display: block; width: 100%; height: 100%; object-fit: cover; }
  

  /* ---------- Tulpenregen ---------- */
  .tulip-fall { position: fixed; top: -60px; z-index: 64; width: 34px; pointer-events: none; animation: fall var(--d, 3s) linear forwards; }
  @keyframes fall { to { transform: translateY(calc(100vh + 120px)) rotate(var(--rot, 180deg)); } }

  @media (max-width: 900px) {
    .live-grid { grid-template-columns: 1fr; }
    .tile.wide { grid-column: auto; }
    .chapter .motif, .chapter .collage { position: static; }
    .collage:has(.snap.has-img) .motif { left: -2%; bottom: -10%; width: 40%; }
    .chronik li { grid-template-columns: 4.4rem 1fr; gap: .8rem; }
    .ring { line-height: 78px; font-size: 1.1rem; }
    .live-lead { margin-top: -1.8rem; }
  }

  /* ---------- Bilder statt Zeichnungen ---------- */
  .motif.has-img img, .motif-img.has-img img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
  .tile .pic > .motif-img { width: 100%; max-width: 250px; }
  .viewer .motif-img { max-width: 420px; margin: 0 auto; width: 100%; }
  .motif.img-swing img { transform-origin: 50% 0; animation: swing 2.2s ease-out; }
  .motif.img-groovy img { animation: groove 1.6s linear 2; }
  .motif.img-grow img { animation: imgGrow .9s cubic-bezier(.3, 1.5, .5, 1); }
  @keyframes imgGrow { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }

  /* ---------- Porträts in der letzten Generation ---------- */
  .portrait { display: block; }
  .portrait.has-img img { display: block; width: 100%; max-width: 240px; height: 290px; margin: 0 auto; object-fit: cover; object-position: 50% 25%; border-radius: 50% 50% 16px 16px / 120px 120px 16px 16px; }
  .person.honked .portrait img, .person.gaveled .portrait img { animation: jump .5s ease-out; }

  /* ---------- Jeremy über dem Stammbaum ---------- */
  .elder { display: flex; flex-direction: column; align-items: center; }
  .elder-link { font: italic .9rem/1.3 var(--text); opacity: .85; padding-top: .5rem; text-align: center; }
  .elder-link::after { content: ""; display: block; width: 0; height: 28px; margin: .35rem auto 0; border-left: 2px dashed var(--ink); }

  /* ---------- Mobil ---------- */
  @media (max-width: 900px) {
    .shell { display: block; }
    .rail { position: fixed; inset: 0 0 auto 0; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + .7rem) 1.1rem .7rem; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--bg); gap: .3rem 1rem; }
    .drag-hint { display: none; }
    .rail::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 4px; width: calc(var(--p) * 100%); background: var(--ink); }
    .brand { font-size: 1.25rem; }
    .brand small, .timeline, .era-label { display: none; }
    .yearbox { order: 2; }
    .year { font-size: 2rem; line-height: 1; }
    .nav { order: 3; flex-direction: row; gap: 1.2rem; margin: 0; width: 100%; overflow-x: auto; font-size: .95rem; padding-bottom: .1rem; }
    .nav a { white-space: nowrap; }
    main { padding-top: calc(env(safe-area-inset-top, 0px) + 6.2rem); }
    section[id], .person, .gen { scroll-margin-top: 6.4rem; }
    .hero, .page-hero { min-height: auto; padding-top: 2rem; }
    .hero-row, .station, .chapter-grid, .gen, .tree-layout, .viewer-in { grid-template-columns: 1fr; }
    figure.frame { justify-self: center; width: min(78%, 300px); }
    .station, .chapter { min-height: auto; padding-block: 3.5rem; }
    .persons { flex-direction: column; }
    .person, .persons .person.is-open { flex: none; min-width: 0; }
    .person { border-radius: 50% 50% 22px 22px / 160px 160px 22px 22px; }
    .taxi .feet { gap: 3.5rem; }
    .strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; padding-bottom: .5rem; }
    .gen-no { font-size: 6rem; }
    .leaf-card { position: static; }
    .node { width: 92px; }
    .medal { width: 64px; height: 78px; font-size: 2.1rem; }
    .tree li { padding-left: 4px; padding-right: 4px; }
  }

  @media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; transition: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .sprout .stem, .fig .paint, .brush .stroke { stroke-dashoffset: 0; }
    .sprout .leaf, .arcs circle { transform: none; opacity: 1; }
    .fig .pop { opacity: 1; }
    .win .bar span { width: 100%; }
    .win .done { opacity: 1; }
    body::after { display: none; }
  }
