@font-face{font-family:"Courier Prime";font-style:normal;font-weight:400;font-display:swap;src:url("schriften/courier-prime-latin-400-normal.woff2") format("woff2");}@font-face{font-family:"Courier Prime";font-style:normal;font-weight:700;font-display:swap;src:url("schriften/courier-prime-latin-700-normal.woff2") format("woff2");}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:400;font-display:swap;src:url("schriften/source-serif-4-latin-400-normal.woff2") format("woff2");}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url("schriften/source-serif-4-latin-600-normal.woff2") format("woff2");}@font-face{font-family:"Source Serif 4";font-style:italic;font-weight:400;font-display:swap;src:url("schriften/source-serif-4-latin-400-italic.woff2") format("woff2");}

/* Layout: ein Zeitschacht. Oben die Gegenwart, nach unten zurück bis in die 1960er.
   Links ein feststehender Jahreszähler wie ein Tiefenmesser, das Papier altert beim Scrollen. */
:root {
  --paper-now: #f4f5f4;
  --paper-old: #e6d7bb;
  --ink: #1f262c;
  --muted: #5d6770;
  --rule: #c9ccc8;
  --card: #ffffff;
  --werkhof: #4f6476;
  --sozio: #a3304a;
  --politik: #7b6f62;
  --zitat: #4f8f9c;
  --accent: #a3304a;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(30 35 40 / .06), 0 6px 18px rgb(30 35 40 / .06);
  --font-type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --age: 0;
  --rail: 168px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper-now: #15191d; --paper-old: #261e15; --ink: #e7e4dc; --muted: #a2a8ac; --rule: #3a3f43; --card: #1d2227;
    --werkhof: #8fa7bb; --sozio: #e07a8f; --politik: #b9ab98; --zitat: #7fc0cc; --accent: #e07a8f; --on-accent: #1a0e11;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 18px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper-now: #15191d; --paper-old: #261e15; --ink: #e7e4dc; --muted: #a2a8ac; --rule: #3a3f43; --card: #1d2227;
  --werkhof: #8fa7bb; --sozio: #e07a8f; --politik: #b9ab98; --zitat: #7fc0cc; --accent: #e07a8f; --on-accent: #1a0e11;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 18px rgb(0 0 0 / .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: color-mix(in oklab, var(--paper-now), var(--paper-old) calc(var(--age) * 100%));
  color: var(--ink);
  font: 17px/1.62 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Kopfleiste ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in oklab, var(--paper-now), var(--paper-old) calc(var(--age) * 100%));
  border-bottom: 1px solid var(--rule);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 10px;
}
.bar-inner { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; }
.brand { font-family: var(--font-type); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-type); font-size: 13px; letter-spacing: .02em;
  padding: 4px 10px 4px 8px; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent;
}
.chip i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; }
.chip[aria-pressed="false"] { opacity: .45; }
.chip[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.chip .n { color: var(--muted); }
.about-btn {
  font-family: var(--font-type); font-size: 13px; padding: 5px 12px; border-radius: 3px; cursor: pointer;
  background: var(--ink); color: var(--paper-now); border: 0;
}
.mini-year { display: none; font-family: var(--font-type); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; margin-left: auto; }
.mini-year small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }

/* ---------- Gesamtlayout ---------- */
.wrap {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 80px;
}
.rail { position: relative; }
.gauge { position: sticky; top: 90px; padding-top: 28px; }
.gauge .now { font-family: var(--font-type); font-weight: 700; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gauge .ago { font-family: var(--font-type); font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 1.4em; }
.scale { list-style: none; margin: 26px 0 0; padding: 0; position: relative; border-left: 1px solid var(--rule); }
.scale li { position: relative; }
.scale button {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-type); font-size: 13px; color: var(--muted); padding: 5px 0 5px 14px;
}
.scale button:hover { color: var(--ink); }
.scale button::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; border-top: 1px solid var(--rule); }
.scale button.on { color: var(--ink); font-weight: 700; }
.scale .pin { position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transition: top .15s linear; top: 0; }

main { min-width: 0; max-width: 780px; }

/* ---------- Auftakt ---------- */
.hero { padding-top: 34px; }
.hero figure { margin: 0; }
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.hero figcaption { font-family: var(--font-type); font-size: 12px; color: var(--muted); margin-top: 6px; }
.eyebrow { font-family: var(--font-type); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 28px 0 6px; }
.hero h1 { font-family: var(--font-type); font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.hero .lead { font-size: 19px; max-width: 62ch; margin: 0 0 12px; }
.hero p { max-width: 62ch; margin: 0 0 12px; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.legend b { display: flex; align-items: center; gap: 7px; font-family: var(--font-type); font-size: 13px; color: var(--ink); font-weight: 700; }
.legend b i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.descend { display: flex; align-items: center; gap: 12px; margin: 34px 0 0; font-family: var(--font-type); font-size: 14px; color: var(--muted); }
.descend::after { content: ""; flex: 1; border-top: 1px dashed var(--rule); }
.descend svg { flex: none; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .descend svg { animation: none; } }

/* ---------- Jahre ---------- */
.year { position: relative; padding-top: 34px; scroll-margin-top: 70px; }
.year-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.year-head h2 { font-family: var(--font-type); font-weight: 700; font-size: clamp(40px, 7vw, 72px); line-height: 1; margin: 0; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.year-head .rule { flex: 1; border-top: 2px solid var(--ink); transform: translateY(-.35em); }
.gap { position: relative; margin-left: 2px; border-left: 2px dotted var(--rule); }
.gap span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-type); font-size: 12px; color: var(--muted); white-space: nowrap; }

.entries { display: grid; gap: 16px; }
.entry {
  background: var(--card); border-radius: 3px; box-shadow: var(--shadow);
  padding: 18px 22px 20px; border-top: 4px solid var(--c);
  min-width: 0;
}
.entry[data-k="politik"] { background: color-mix(in oklab, var(--card), var(--politik) 7%); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-type); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.meta .when { color: var(--muted); text-transform: none; letter-spacing: 0; }
.meta .added { color: var(--muted); border: 1px dashed var(--rule); border-radius: 3px; padding: 0 6px; text-transform: none; letter-spacing: 0; }
.entry h3 { font-family: var(--font-text); font-weight: 600; font-size: 21px; line-height: 1.3; margin: 0 0 8px; text-wrap: balance; }
.text p { margin: 0 0 .8em; }
.text p:last-child { margin-bottom: 0; }
.text.clamped { max-height: 13.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more { margin-top: 8px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-type); font-size: 14px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Zitate */
.entry.quote { background: transparent; box-shadow: none; border-top: 0; border-left: 3px solid var(--zitat); border-radius: 0; padding: 4px 0 4px 22px; }
.quote blockquote { margin: 0; font-style: italic; font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.quote .who { margin-top: 8px; font-family: var(--font-type); font-size: 13.5px; color: var(--muted); }
.quote .who::before { content: "— "; }
.entry.notiz { background: transparent; box-shadow: none; border: 1px dashed var(--zitat); border-top: 4px solid var(--zitat); }
.notiz .text { font-family: var(--font-type); font-size: 16px; line-height: 1.55; }
.entry.schluss { background: var(--accent); color: var(--on-accent); border-top: 0; }
.entry.schluss .text { font-size: 19px; font-style: italic; }

/* Bilder */
.pics { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 14px; }
.pics.one .pic img { max-height: 460px; width: auto; max-width: 100%; }
.pic { margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pics:not(.one) .pic { flex: 0 1 auto; max-width: 100%; }
.pics:not(.one) .pic img { height: 190px; width: auto; max-width: 100%; object-fit: contain; }
.pics:not(.one) .pic span { max-width: 260px; }
.pics-cap { font-family: var(--font-type); font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 6px; }
@media (max-width: 520px) { .pics:not(.one) .pic img { height: 140px; } }
.pic img { border-radius: 2px; background: var(--rule); filter: sepia(calc(var(--age) * .25)); }
.pic span { font-family: var(--font-type); font-size: 12px; line-height: 1.35; color: var(--muted); }
.quote .pics { max-width: 360px; }

.continue { margin-top: 34px; padding: 18px 22px; border: 1px dashed var(--rule); border-radius: 3px; font-family: var(--font-type); font-size: 14px; color: var(--muted); }

/* Ende */
.origin { margin-top: 70px; padding-top: 26px; border-top: 2px solid var(--ink); }
.origin h2 { font-family: var(--font-type); font-size: 28px; margin: 0 0 12px; }
.origin p { max-width: 62ch; }
.origin .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { font-family: var(--font-type); font-size: 14px; padding: 8px 14px; border-radius: 3px; cursor: pointer; border: 1px solid var(--ink); background: transparent; text-decoration: none; color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper-now); }
.empty { padding: 30px 0; color: var(--muted); font-family: var(--font-type); }

/* Dialoge */
dialog { border: 0; padding: 0; max-width: min(760px, calc(100vw - 32px)); width: 100%; background: var(--card); color: var(--ink); border-radius: 4px; box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
dialog::backdrop { background: rgb(15 18 20 / .72); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--card); }
.dlg-head h2 { font-family: var(--font-type); font-size: 18px; margin: 0; }
.x { background: none; border: 1px solid var(--rule); border-radius: 3px; width: 34px; height: 34px; cursor: pointer; font-size: 18px; line-height: 1; }
.dlg-body { padding: 18px 22px 26px; max-height: 75vh; overflow: auto; }
.dlg-body h3 { font-family: var(--font-type); font-size: 15px; margin: 22px 0 6px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.dlg-body p { margin: 0 0 .8em; }
.dlg-body .sig { font-style: italic; }
.dlg-body .imp { font-family: var(--font-type); font-size: 14px; color: var(--muted); }
#lightbox { max-width: min(1100px, calc(100vw - 24px)); background: #111; color: #eee; }
#lightbox .lb-img { display: flex; justify-content: center; background: #111; }
#lightbox img { max-height: 78vh; width: auto; }
#lightbox .lb-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-family: var(--font-type); font-size: 13px; }
#lightbox .lb-foot span { flex: 1; min-width: 0; }
#lightbox button { background: #2a2a2a; color: #eee; border: 0; border-radius: 3px; padding: 6px 12px; cursor: pointer; font-family: var(--font-type); }

/* ---------- schmal ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
  .mini-year { display: block; }
  .bar { padding-block: 8px; }
  .bar-inner { gap: 8px 12px; }
  .filters { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .about-btn { order: 4; display: none; }
  .hero { padding-top: 18px; }
  body { font-size: 16.5px; }
  .entry { padding: 16px 16px 18px; }
  .quote blockquote { font-size: 18px; }
}

/* Angemeldete Redakteure: Kopfleiste unter die WordPress-Adminleiste schieben */
.admin-bar .bar { top: 32px; }
.admin-bar .gauge { top: 122px; }
@media (max-width: 782px) { .admin-bar .bar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bar { top: 0; } }
.hero .intro > p:first-child { font-size: 19px; }
.dlg-body .imp p { margin: 0 0 .5em; }
.hero .links { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline; }
.hero .links .more { margin-top: 0; }
