/* ============ Farben & Grundwerte ============ */
/* Dunkles Anthrazit, metallische Flächen, Bordeaux-Akzente */
:root {
  --bg: #1b1c1f;
  --bg-alt: #222327;
  --surface: #2a2c30;
  --surface-2: #232428;
  --ink: #e9e7e3;
  --muted: #a2a4aa;
  --line: #3b3d43;
  --accent: #b02a42;          /* Bordeaux für Flächen, Linien, Punkte */
  --accent-text: #e06b80;     /* helleres Bordeaux für Text & Links (lesbar auf dunkel) */
  --accent-ink: #ffffff;

  /* Metall-Verläufe */
  --metal-surface: linear-gradient(180deg, #303237 0%, #26282c 55%, #222327 100%);
  --metal-chrome: linear-gradient(180deg, #fbfbfc 0%, #c9ccd2 38%, #7f838b 52%, #b9bcc3 70%, #eceef1 100%);
  --metal-bordeaux: linear-gradient(180deg, #c8445c 0%, #8e1b2e 48%, #6a1121 52%, #8a1a2d 100%);
  --metal-edge: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .4);

  --g-antike: #b9a586;        /* Bronze */
  --g-kapital: #6f9e86;       /* Patina */
  --g-eugenik: #c27c55;       /* Kupfer */
  --g-organisation: #b02a42;  /* Bordeaux */
  --g-gruender: #c9a24c;      /* Messing */
  --g-kern: #7fa3ad;          /* Stahlblau */
  --g-spaeter: #9a90c2;       /* Zinn-Violett */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .55);
  --header-h: 64px;
  color-scheme: dark;
}

/* ============ Basis ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 var(--sans);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.container.wide { max-width: 1320px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.1rem; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.main-nav a:hover { background: var(--bg-alt); }
.nav-toggle { display: none; }

@media (max-width: 719px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 8px; border-radius: 8px; font-size: 1.05rem; }
}

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: .3em; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 36ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-year {
  position: absolute; right: -2vw; bottom: -6vw; z-index: 0;
  font-family: var(--serif); font-weight: 700; font-size: clamp(8rem, 26vw, 22rem); line-height: 1;
  color: var(--accent); opacity: .07; user-select: none; pointer-events: none;
}
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1.5px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); }
.btn:hover { filter: brightness(1.08); }

/* ============ Sektionen ============ */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 32px; }

/* ============ Artikelreihe ============ */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.article-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 20px 22px; transition: transform .15s, box-shadow .15s;
}
a.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-card.is-planned { border-left-color: var(--line); opacity: .75; }
.article-num { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.article-card.is-planned .article-num { color: var(--muted); }
.article-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.article-sub { font-family: var(--serif); font-style: italic; color: var(--muted); }
.article-more { font-weight: 600; color: var(--accent); }

/* ============ Artikelseite ============ */
.article-page { padding: 48px 0 72px; }
.article-head { margin-bottom: 36px; }
.article-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: .25em; }
.article-head .lead { max-width: none; font-family: var(--serif); font-style: italic; }
.article-meta { color: var(--muted); font-size: .9rem; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin: 1.8em 0 .5em; }
.prose h2 .when { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .3em; }
.prose figure { margin: 2em 0; }
.figure-emblem { text-align: center; }
.figure-emblem img { width: min(220px, 60%); height: auto; margin: 0 auto 16px; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .8)) drop-shadow(0 0 30px rgba(176, 42, 66, .3)); }
.figure-emblem figcaption { font-size: .95rem; color: var(--muted); }
.figure-emblem img[src*="schildkroete"] { width: min(380px, 90%); }
.figure-emblem small { font-size: .8rem; }
.callout {
  margin: 2em 0; padding: 18px 22px; border-radius: var(--radius);
  background: var(--bg-alt); border-left: 4px solid var(--accent);
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.45;
}
.box { margin: 2em 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.box h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6em; }
.box p:last-child { margin-bottom: 0; }
.pullquote { text-align: center; font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 1.7rem); font-style: italic; color: var(--accent); margin: 2.2em 0; }
.sources { font-size: .92rem; padding-left: 1.2em; }
.sources li { margin-bottom: .4em; word-break: break-word; }
.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-nav .disabled { color: var(--muted); }

/* ============ Chronik ============ */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 32px 36px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-alt); border: 3px solid var(--accent);
}
.tl-year { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 8px; }
.tl-card h3 { font-size: 1.25rem; margin-bottom: .35em; }
.tl-card p { margin-bottom: .6em; }
.tl-card:target, .tl-item.flash .tl-card { box-shadow: 0 0 0 3px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); font-size: .85rem; cursor: pointer; text-align: left;
}
.chip:hover { border-color: var(--accent); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip small { color: var(--muted); }
.tl-article { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.tl-article:hover { text-decoration: underline; }

@media (min-width: 820px) {
  .timeline::before { left: calc(9rem + 7px); }
  .tl-item { display: grid; grid-template-columns: 9rem 1fr; gap: 0 36px; padding-left: 0; }
  .tl-item::before { left: 9rem; }
  .tl-year { text-align: right; padding-right: 24px; padding-top: 14px; font-size: 1.8rem; }
  .tl-card { margin-top: 0; }
}

/* ============ Netzwerk ============ */
.network {
  position: relative; height: min(78vh, 720px); min-height: 420px;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.network.is-panning { cursor: grabbing; }
@media (max-width: 719px) { .network { height: 68vh; border-radius: 10px; } }
.net-svg { display: block; width: 100%; height: 100%; }
.net-link { stroke: var(--muted); stroke-opacity: .35; stroke-width: 1.3; transition: stroke-opacity .2s, stroke .2s; }
.net-node { cursor: pointer; transition: opacity .2s; }
.net-node circle.body { fill: var(--c); stroke: var(--surface); stroke-width: 3; transition: r .2s; }
.net-node circle.ring { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 4; opacity: .7; }
.net-node circle.halo { fill: var(--c); opacity: 0; transition: opacity .2s; }
.net-node .initials { fill: #fff; font: 600 11px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.net-node .label {
  fill: var(--ink); font: 500 12px var(--sans); text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round;
}
.net-node:focus { outline: none; }
.net-node:focus-visible circle.halo { opacity: .35; }

/* Hervorhebung beim Überfahren / Auswahl */
.net-svg.has-focus .net-node { opacity: .22; }
.net-svg.has-focus .net-node.is-near { opacity: 1; }
.net-svg.has-focus .net-link { stroke-opacity: .07; }
.net-svg.has-focus .net-link.is-near { stroke: var(--accent); stroke-opacity: .85; stroke-width: 2; }
.net-node.is-hover circle.halo, .net-node.is-selected circle.halo { opacity: .22; }
.net-node.is-selected circle.body { stroke: var(--ink); }
.net-node.is-hover .label, .net-node.is-selected .label { font-weight: 700; }

.network-controls { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.network-controls button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); font-size: 1.2rem; cursor: pointer;
}
.network-controls button:hover { border-color: var(--accent); }
.network-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; margin: 0;
  padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .85rem;
  opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px);
  overflow: hidden; text-overflow: ellipsis;
}
.network-hint.show { opacity: .9; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; }

/* ============ Personen ============ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: .92rem;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.person-card {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c); }
.person-card[hidden] { display: none; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; overflow: hidden;
}
.avatar.org { border-radius: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.org:has(img) { background: var(--bg-alt); }
.avatar.org img { object-fit: contain; padding: 4px; }
.person-card h3 { font-size: 1.1rem; margin: 0 0 2px; }
.person-card .meta { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.person-card .short { font-size: .92rem; margin: 0; }

/* ============ Detailansicht ============ */
.detail {
  position: fixed; z-index: 60; top: var(--header-h); right: 0; bottom: 0;
  width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow); transform: translateX(105%); transition: transform .3s ease;
  display: flex; flex-direction: column; visibility: hidden;
}
.detail.open { transform: none; visibility: visible; }
.detail-body { overflow-y: auto; padding: 28px 24px 32px; -webkit-overflow-scrolling: touch; }
.detail-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 1;
}
.detail-close:hover { border-color: var(--accent); }
.detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 44px; }
.detail-head .avatar { width: 64px; height: 64px; font-size: 1.1rem; }
.detail-type { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c); font-weight: 700; margin: 0; }
.detail h2 { font-size: 1.6rem; margin: 2px 0 0; }
.detail .meta { color: var(--muted); margin-bottom: 18px; }
.detail h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 26px 0 10px; }
.detail .credit { font-size: .78rem; color: var(--muted); margin-top: -4px; }
.detail .tl-links { list-style: none; padding: 0; margin: 0; }
.detail .tl-links a { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.detail .tl-links b { color: var(--accent); min-width: 3.2em; }

@media (max-width: 719px) {
  .detail {
    top: auto; left: 0; right: 0; width: 100%; max-height: 78vh;
    border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0;
    transform: translateY(105%);
  }
  .detail::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 0; flex: none; }
  .detail-body { padding: 16px 16px 28px; }
}

/* ============ Footer & Unterseiten ============ */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--muted); }
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.note { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 6px; }

/* =====================================================================
   METALL-DESIGN (Anthrazit · Chrom · Bordeaux)
   ===================================================================== */
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, .06), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent-text); }
:focus-visible { outline-color: var(--accent-text); }

/* Chrom-Schrift für große Überschriften */
.hero h1, .section-title, .article-head h1, .legal h1, .brand-text {
  background: var(--metal-chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .65));
}
.eyebrow, .article-num, .article-more, .prose h2 .when, .tl-year, .pullquote, .detail .tl-links b { color: var(--accent-text); }

/* Header: gebürstetes Metall */
.site-header {
  background: linear-gradient(180deg, rgba(52, 54, 59, .94), rgba(30, 31, 35, .94));
  border-bottom: 1px solid #0c0c0e;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05), 0 8px 24px rgba(0, 0, 0, .45);
}
.brand { gap: 12px; }
.brand-mark { background: var(--metal-bordeaux); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 6px rgba(0, 0, 0, .5); text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.brand-emblem { height: 44px; width: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.brand-text { font-size: 1.3rem; letter-spacing: .02em; }
.main-nav a:hover { background: rgba(255, 255, 255, .06); }
@media (max-width: 719px) {
  .main-nav { background: #232428; }
  .brand-emblem { height: 38px; }
  .brand-text { font-size: 1.15rem; }
}

/* Hero mit Wappen neben dem Schriftzug */
.hero { border-bottom: 1px solid #0c0c0e; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04); }
.hero-brand { display: flex; align-items: center; gap: clamp(16px, 4vw, 44px); margin-bottom: 8px; }
.hero-brand h1 { margin: 0; }
.hero-emblem {
  flex: none; width: clamp(92px, 17vw, 190px); height: auto;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .7));
  transition: transform .4s ease;
}
.hero-emblem:hover { transform: perspective(600px) rotateY(-10deg) rotateX(4deg) scale(1.03); }
.hero .lead { margin-top: 18px; }
.hero-year { color: #c9ccd2; opacity: .04; }

/* Buttons */
.btn { border-radius: 999px; transition: filter .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--metal-bordeaux); border-color: #4a0b17; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}
.btn-ghost { background: var(--metal-surface); border-color: var(--line); color: var(--ink); box-shadow: var(--metal-edge); }

/* Metallische Flächen */
.article-card, .tl-card, .person-card, .box, .network, .detail, .filters button, .chip,
.network-controls button, .detail-close, .callout, .note {
  background: var(--metal-surface);
  box-shadow: var(--metal-edge);
}
a.article-card:hover, .person-card:hover { box-shadow: var(--metal-edge), var(--shadow); }
.article-card { border-left-color: var(--accent); }
.callout, .note { border-left-color: var(--accent); }
.section-alt {
  background: linear-gradient(180deg, #202125, #1c1d20);
  border-top: 1px solid #0c0c0e; border-bottom: 1px solid #0c0c0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.filters button[aria-pressed="true"] {
  background: var(--metal-bordeaux); color: #fff; border-color: #4a0b17;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.chip { background: linear-gradient(180deg, #34363b, #2a2c30); }

/* Chronik: Chromring mit Bordeaux-Kugel */
.timeline::before { background: linear-gradient(180deg, #55585f, #2c2e33); }
.tl-item::before {
  background: radial-gradient(circle at 35% 30%, #f29aab 0%, #b02a42 42%, #4a0b17 100%);
  border: 2px solid #c9ccd2;
  box-shadow: 0 0 0 2px #1b1c1f, 0 2px 6px rgba(0, 0, 0, .6);
}

/* Avatare als glänzende Kugeln */
.avatar {
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .35), inset 0 -4px 8px rgba(0, 0, 0, .45), 0 3px 8px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.avatar.org:has(img) { background: transparent; box-shadow: none; }
.avatar.org img { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }

/* Netzwerk */
.network {
  background:
    radial-gradient(circle at 50% 45%, rgba(176, 42, 66, .12), transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .05), transparent 50%),
    #1f2023;
}
.net-node circle.body { stroke: #111214; stroke-width: 2; }
.net-node .initials { paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 2px; }
.net-node .label { stroke: #1f2023; }
.net-node.is-selected circle.body { stroke: #e9e7e3; }
.net-svg.has-focus .net-link.is-near { stroke: var(--accent-text); }

/* Footer */
.site-footer { background: linear-gradient(180deg, #1c1d20, #161719); border-top: 1px solid #0c0c0e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }

/* =====================================================================
   MYSTIK: Schatten, Nebel, fixiertes Wappen, Weltkarte
   ===================================================================== */

/* Vignette über der ganzen Seite */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .38) 100%);
}

/* Kopfzeile: Schriftzug links · Wappen mittig · Navigation rechts */
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { justify-self: start; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.1; }
.brand-tag { font-family: var(--sans); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.main-nav, .header-back { justify-self: end; }
.header-back { color: var(--ink); text-decoration: none; font-size: .92rem; }
.header-emblem {
  justify-self: center; position: relative; top: 14px; display: block; width: 58px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .85)) drop-shadow(0 0 16px rgba(176, 42, 66, .35));
  transition: opacity .45s ease, transform .45s ease;
}
.header-emblem img { width: 100%; height: auto; }
.header-emblem:hover { transform: translateY(-2px) scale(1.04); }
.is-home:not(.emblem-docked) .header-emblem { opacity: 0; transform: translateY(-12px) scale(.8); pointer-events: none; }
.nav-toggle { justify-self: end; }
@media (max-width: 719px) {
  .brand-tag { display: none; }
  .brand-text { font-size: 1.05rem; }
  .header-emblem { width: 44px; top: 10px; }
}

/* Hero: Nebel, Glut, großes Wappen */
.hero {
  padding: clamp(64px, 10vw, 112px) 0 clamp(72px, 10vw, 120px);
  background:
    radial-gradient(ellipse at 20% 45%, rgba(176, 42, 66, .24), transparent 55%),
    radial-gradient(ellipse at 85% 0%, rgba(255, 255, 255, .05), transparent 45%),
    linear-gradient(180deg, #121315, #1b1c1f);
}
.hero-fog {
  position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 60%, rgba(210, 212, 220, .07), transparent),
    radial-gradient(closest-side at 72% 38%, rgba(176, 42, 66, .10), transparent),
    radial-gradient(closest-side at 55% 85%, rgba(210, 212, 220, .05), transparent);
  filter: blur(30px);
  animation: fog 38s ease-in-out infinite alternate;
}
@keyframes fog { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.12); } }
.hero-emblem {
  width: clamp(104px, 19vw, 220px);
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, .85)) drop-shadow(0 0 42px rgba(176, 42, 66, .38));
  animation: hover-float 9s ease-in-out infinite;
}
@keyframes hover-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-emblem:hover { animation-play-state: paused; transform: perspective(700px) rotateY(-12deg) rotateX(5deg) scale(1.04); }
.hero h1 { text-shadow: none; }
.hero .lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: #c3c5ca; max-width: 40ch; }
@media (max-width: 560px) {
  .hero-brand { flex-direction: column; align-items: flex-start; }
}

/* Tiefere Schatten */
.article-card, .tl-card, .person-card, .box { box-shadow: var(--metal-edge), 0 16px 36px rgba(0, 0, 0, .42); }
.section-title { letter-spacing: .01em; }

/* Netzwerk auf der Weltkarte */
.section-map { background: radial-gradient(ellipse at 50% 30%, rgba(176, 42, 66, .08), transparent 60%); }
.network {
  height: min(82vh, 780px); min-height: 460px;
  background:
    radial-gradient(ellipse at 46% 38%, rgba(176, 42, 66, .16), transparent 55%),
    radial-gradient(ellipse at center, #1f2024 0%, #121315 100%);
  box-shadow: var(--metal-edge), 0 24px 60px rgba(0, 0, 0, .55);
}
.network::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 90px 30px rgba(0, 0, 0, .72);
}
@media (max-width: 719px) { .network { height: 72vh; } }
.net-grat { fill: none; stroke: rgba(201, 204, 210, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.net-landmass { stroke: rgba(201, 204, 210, .26); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .8; }
.net-city circle { fill: #c9ccd2; opacity: .55; }
.net-city text { fill: #8f9299; font: italic 12px var(--serif); letter-spacing: .1em; paint-order: stroke; stroke: #121315; stroke-width: 3px; }
.net-city.is-hub { display: none; }
.net-links { filter: drop-shadow(0 0 3px rgba(224, 107, 128, .5)); }
.net-link { fill: none; stroke: rgba(232, 120, 140, .6); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.net-svg.has-focus .net-link { stroke-opacity: .12; }
.net-svg.has-focus .net-link.is-near { stroke: #f08a9c; stroke-opacity: 1; stroke-width: 2; }
.net-node.is-hub .aura { animation: aura 6s ease-in-out infinite; }
@keyframes aura { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.net-node.is-hub .emblem { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .85)); }
.net-node.is-hub circle.halo { fill: var(--accent); }
.net-node .hub-label { font: 600 14px var(--serif); letter-spacing: .08em; fill: #e9e7e3; }
.network-controls, .network-hint { z-index: 3; }
.tl-region { display: inline-block; margin: 0 0 6px; padding: 1px 10px; border-radius: 999px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #c9ccd2; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.prose .region { display: inline-block; margin: 2.4em 0 0; padding: 3px 14px; border-radius: 999px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--metal-bordeaux); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.prose .region + h2 { margin-top: .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose h2.zeitmarke { margin: 1.6em 0 .5em; }
.prose h2.zeitmarke .when { font-size: 1.05rem; margin: 0; }
.prose .region + h2.zeitmarke { margin-top: .5em; }
.video-link a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none;
  background: var(--metal-surface); border: 1px solid var(--line); box-shadow: var(--metal-edge); color: var(--ink); font-weight: 600;
}
.video-link a:hover { border-color: var(--accent); }
.caption-orphan { text-align: center; color: var(--muted); font-size: .9rem; }
.figure-photo { text-align: center; }
.figure-photo img {
  width: min(240px, 70%); height: auto; margin: 0 auto 12px; border-radius: 6px;
  border: 1px solid #0c0c0e; box-shadow: 0 0 0 4px #2a2c30, 0 0 0 5px #4a4d53, 0 22px 36px rgba(0, 0, 0, .7);
  filter: sepia(.25) contrast(1.05);
}
.figure-photo figcaption { font-size: .95rem; color: var(--muted); }
.figure-wide img { width: min(460px, 100%); }
/* Medien */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.media-card { background: var(--metal-surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--metal-edge), 0 16px 36px rgba(0, 0, 0, .42); }
.media-frame { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 50% 40%, rgba(176, 42, 66, .25), transparent 65%), #111214; }
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; }
.media-play {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; padding-left: 4px;
  background: var(--metal-bordeaux); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px rgba(0, 0, 0, .6);
}
.media-consent-title { font-family: var(--serif); font-size: 1.15rem; margin: 4px 0 0; }
.media-consent-text { font-size: .8rem; color: var(--muted); max-width: 46ch; margin: 0 0 6px; }
.media-ext { font-size: .8rem; color: var(--muted); }
.media-body { padding: 16px 20px 20px; }
.media-body h3 { font-size: 1.2rem; margin-bottom: .2em; }
.media-body .meta { color: var(--muted); font-size: .9rem; margin-bottom: .6em; }
@media (max-width: 560px) {
  .media-consent { gap: 4px; padding: 10px; }
  .media-consent-title { display: none; }
  .media-consent-text { font-size: .7rem; line-height: 1.35; }
  .media-play { width: 44px; height: 44px; font-size: 1.1rem; }
  .media-consent .btn { min-height: 38px; padding: 0 16px; font-size: .9rem; }
}

.figure-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.figure-row img { width: min(170px, 28%); margin: 0 0 4px; }
.figure-row figcaption { flex-basis: 100%; }
@media (max-width: 560px) { .figure-row img { width: 40%; } }
.figure-photo small { font-size: .78rem; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-style: italic; color: #d4d6da; }
.prose blockquote p[lang] { font-size: .92em; color: var(--muted); }
.prose sup a { text-decoration: none; font-size: .75em; padding: 0 1px; }
.sources li:target { background: rgba(176, 42, 66, .15); border-radius: 6px; }
.network-scopes { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; }
.network-scopes button {
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: var(--metal-surface); box-shadow: var(--metal-edge); font-size: .82rem; color: var(--ink);
}
.network-scopes button[aria-pressed="true"] { background: var(--metal-bordeaux); border-color: #4a0b17; color: #fff; }
.footer-note { font-size: .78rem; margin-top: 6px !important; max-width: 72ch; line-height: 1.5; }
.footer-note a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
