/* =========================================================================
   Welterbe Herrnhut – Design-System 2026
   Synthese aus Bähr Design (Raster, Illustration, versale Navigation),
   herrnhut.de (Herrnhut-Blau, Hutberg-Panorama, Serifen-Wortmarke) und
   unesco.de (Weiß, Welterbe-Rot als Marker, Fakten-Kasten).
   Siehe docs/design-system.md
   ========================================================================= */

@import url("../fonts/fonts.css");

:root {
  /* Farbwelt */
  --blau-900: #0d2440;
  --blau-800: #10365e;
  --blau-700: #0f4c81;
  --blau-500: #0b6cb9;
  --blau-400: #2b86cf;
  --blau-300: #8ec5ee;
  --blau-100: #e3f1fb;
  --rot-500: #c8102e;
  --gold-500: #e0a63c;
  --gold-400: #ecbd63;
  --gold-300: #f4d58d;
  --gruen-600: #4f7a46;
  --gruen-400: #7ea36f;
  --gruen-200: #d9e7cf;
  --kalk-50: #fbfaf6;
  --kalk-100: #f3efe6;
  --kalk-200: #e6dfd0;
  --schiefer-900: #1b232c;
  --schiefer-700: #333d48;
  --schiefer-600: #5a6572;
  --schiefer-300: #b7bec6;
  --ziegel-500: #b9553a;
  --white: #fff;

  --ink: var(--schiefer-900);
  --ink-soft: var(--schiefer-600);
  --bg: var(--kalk-50);
  --line: #d8d3c7;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: .5rem;
  --radius: 1rem;
  --radius-l: 1.6rem;
  --shadow-s: 0 4px 14px rgba(13, 36, 64, .08);
  --shadow: 0 18px 50px rgba(13, 36, 64, .14);
  --shadow-l: 0 30px 80px rgba(13, 36, 64, .28);
  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variation-settings: "wght" 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blau-500); text-decoration-thickness: .06em; text-underline-offset: .18em; transition: color .2s var(--ease); }
a:hover { color: var(--blau-700); }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 650; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; padding: .1em .4em; border-radius: .3em; background: rgba(13, 36, 64, .07); }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: .2em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: var(--blau-900);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 450; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-variation-settings: "opsz" 48, "SOFT" 30; line-height: 1.2; }
h4 { font-size: 1.1rem; font-family: var(--font-text); font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin: .3em 0; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--schiefer-700); max-width: 42em; }
.measure { max-width: 46em; }
.fineprint { font-size: .86rem; color: var(--ink-soft); }
.text-link { font-weight: 650; }
.text-link span { display: inline-block; transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(.25em); }

/* Eyebrow mit Welterbe-Rot-Marker (unesco.de) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blau-700);
}
.eyebrow::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--rot-500); flex: none; }
.eyebrow--gold::before { background: var(--gold-500); }
.eyebrow--green::before { background: var(--gruen-600); }

/* Layout */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--compact { padding-block: clamp(2rem, 4vw, 3rem); }
.section--tinted { background: var(--kalk-100); }
.section--green { background: var(--gruen-200); }
.section--sky { background: linear-gradient(180deg, var(--blau-100), var(--kalk-50)); }
.section--dark { background: var(--blau-900); color: #e8eef5; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .eyebrow { color: var(--gold-300); }
.section--dark .lead { color: #cfdbe8; }
.section--dark a { color: var(--gold-300); }
.section--dark a:hover { color: var(--white); }
.section--dark code { background: rgba(255, 255, 255, .12); color: #fff4d7; }
.section--dark .fineprint { color: #a9b8c8; }
.section--blue { background: linear-gradient(160deg, var(--blau-700), var(--blau-500) 60%, #2b86cf); color: var(--white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue .eyebrow { color: var(--gold-300); }
.section--blue .lead { color: #e6f1fb; }
.section--blue a { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Gebogene Kante (Anklang an die "Buchseiten"-Kante von herrnhut.de) */
.curve-top { position: relative; }
.curve-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(1.6rem, 4vw, 3.2rem);
  background: inherit; clip-path: ellipse(60% 100% at 50% 0%); transform: translateY(-99%); pointer-events: none;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.grid > * { min-width: 0; }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4, .grid--split { grid-template-columns: 1fr; } }

/* Anker unter dem klebenden Header landen lassen */
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.story-section[id] { scroll-margin-top: calc(var(--header-h) + 4.5rem); }

/* Skip-Link + Lesefortschritt */
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 200; padding: .7rem 1rem; color: var(--white); background: var(--blau-900); border-radius: .4rem; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); z-index: 120; pointer-events: none; transition: width .1s linear; }

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  color: var(--white);
  background: linear-gradient(180deg, rgba(13, 36, 64, .92), rgba(13, 36, 64, .78));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(13, 36, 64, .96); box-shadow: 0 10px 30px rgba(13, 36, 64, .25); }
.nav-bar { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; min-height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.is-scrolled .nav-bar { min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; }
.brand__mark { width: 2.6rem; height: 2.6rem; flex: none; }
.brand__text { display: grid; line-height: 1.05; }
.brand__title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; font-variation-settings: "opsz" 24, "SOFT" 20; }
.brand__sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }

.nav-primary { display: flex; align-items: center; margin-left: auto; gap: .25rem; }
.nav-primary ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav-primary li { position: relative; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .8rem; border: 0; border-radius: .5rem; background: transparent;
  color: var(--white); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s;
}
.nav-link:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: var(--white); }
.nav-link[aria-current="page"], .nav-toggle.is-current { box-shadow: inset 0 -2px 0 var(--gold-500); }
.nav-toggle svg { width: .8em; height: .8em; transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-utility { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .7rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; transition: background .2s, border-color .2s; }
.lang-switch:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); color: var(--white); }
.nav-cta { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: 99px; background: var(--gold-500); color: var(--blau-900); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.nav-cta:hover { background: var(--gold-300); color: var(--blau-900); transform: translateY(-1px); }
.nav-burger { display: none; width: 2.8rem; height: 2.8rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: .6rem; background: transparent; color: var(--white); cursor: pointer; place-items: center; }
.nav-burger span { display: block; width: 1.2rem; height: 2px; background: currentColor; margin: 2.5px auto; transition: transform .25s var(--ease), opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mega-Menü */
.mega {
  position: absolute; left: 50%; top: calc(100% + .6rem); transform: translateX(-50%) translateY(-6px);
  width: min(52rem, calc(100vw - 2rem));
  padding: 1.4rem; border-radius: var(--radius); color: var(--ink);
  background: var(--kalk-50); box-shadow: var(--shadow-l); border: 1px solid rgba(13, 36, 64, .08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 1.4rem;
}
.mega::before { content: ""; position: absolute; top: -.55rem; left: 50%; width: 1.1rem; height: 1.1rem; background: var(--kalk-50); transform: translateX(-50%) rotate(45deg); border-left: 1px solid rgba(13, 36, 64, .08); border-top: 1px solid rgba(13, 36, 64, .08); }
.nav-toggle[aria-expanded="true"] + .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.nav-primary li:nth-last-child(-n+2) .mega { left: auto; right: 0; transform: translateX(0) translateY(-6px); }
.nav-primary li:nth-last-child(-n+2) .nav-toggle[aria-expanded="true"] + .mega { transform: translateX(0) translateY(0); }
.nav-primary li:nth-last-child(-n+2) .mega::before { left: auto; right: 2.5rem; }
.mega__intro { padding: 1.1rem 1.2rem; border-radius: var(--radius-s); background: linear-gradient(160deg, var(--blau-700), var(--blau-500)); color: var(--white); display: grid; align-content: space-between; gap: 1rem; }
.mega__intro strong { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.15; display: block; }
.mega__intro p { margin: 0; font-size: .92rem; color: #dcebf8; }
.mega__intro a { color: var(--gold-300); font-weight: 700; text-decoration: none; font-size: .9rem; }
.mega__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; align-content: start; }
.mega-link { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); transition: background .2s var(--ease); }
.mega-link:hover, .mega-link:focus-visible { background: var(--blau-100); color: var(--ink); }
.mega-link__title { font-weight: 700; color: var(--blau-800); display: flex; align-items: center; gap: .45rem; }
.mega-link__title .chip { font-size: .62rem; }
.mega-link__desc { font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }

/* Mobile Schublade */
.nav-drawer { display: none; }
@media (max-width: 1040px) {
  .nav-primary { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .nav-utility { margin-left: auto; }
  .nav-drawer { display: block; position: fixed; inset: 0; top: 0; z-index: 99; background: var(--blau-900); color: var(--white); padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .nav-drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-drawer ul { list-style: none; padding: 0; margin: 0; }
  .nav-drawer > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .drawer-group { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border: 0; background: none; color: var(--white); font-family: var(--font-display); font-size: 1.35rem; text-align: left; cursor: pointer; }
  .drawer-group svg { width: 1rem; height: 1rem; transition: transform .25s; }
  .drawer-group[aria-expanded="true"] svg { transform: rotate(180deg); }
  .drawer-group + ul { display: none; padding-bottom: .8rem; }
  .drawer-group[aria-expanded="true"] + ul { display: block; }
  .drawer-group + ul a { display: block; padding: .55rem 0 .55rem 1rem; color: #dbe6f2; text-decoration: none; border-left: 2px solid rgba(255, 255, 255, .15); }
  .drawer-group + ul a:hover, .drawer-group + ul a[aria-current="page"] { color: var(--gold-300); border-color: var(--gold-500); }
  .drawer-cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
}

/* Breadcrumb */
.breadcrumb { font-size: .86rem; color: var(--ink-soft); padding: .9rem 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; color: var(--schiefer-300); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--blau-700); }
.breadcrumb [aria-current] { color: var(--blau-800); font-weight: 650; }
.section--dark .breadcrumb, .section--blue .breadcrumb, .page-hero .breadcrumb { color: rgba(255, 255, 255, .75); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .8); }
.page-hero .breadcrumb [aria-current] { color: var(--white); }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, .5); }

/* =========================================================================
   Buttons, Chips, Boxen
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 99px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.btn--primary { background: var(--blau-500); color: var(--white); }
.btn--primary:hover { background: var(--blau-700); color: var(--white); }
.btn--gold { background: var(--gold-500); color: var(--blau-900); }
.btn--gold:hover { background: var(--gold-300); color: var(--blau-900); }
.btn--secondary { background: var(--white); color: var(--blau-800); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--blau-500); color: var(--blau-700); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: var(--white); border-color: var(--white); }
.btn--dark { background: var(--blau-900); color: var(--white); }
.btn--dark:hover { background: var(--blau-800); color: var(--white); }
.btn--small { padding: .55rem 1rem; font-size: .85rem; }
.btn-row, .hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 0; }

.chip { display: inline-flex; align-items: center; gap: .35em; padding: .28em .7em; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--blau-100); color: var(--blau-800); white-space: nowrap; }
.chip--red { background: #fbe4e7; color: #8c0b20; }
.chip--gold { background: #fbefd2; color: #6a4a08; }
.chip--green { background: var(--gruen-200); color: #2f4f28; }
.chip--dark { background: var(--blau-900); color: var(--white); }
.chip--outline { background: transparent; border: 1px solid currentColor; }

.answer-box, .notice, .source-box {
  padding: 1.3rem 1.5rem; border-radius: var(--radius); margin: 1.6rem 0;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.answer-box { border-left: 5px solid var(--gold-500); }
.container.answer-box, .container.notice, .container.source-box { margin-inline: auto; }
.answer-box > strong:first-child, .notice > strong:first-child, .source-box > strong:first-child { display: block; margin-bottom: .35rem; color: var(--blau-800); font-size: 1.05rem; }
.answer-box p:last-child, .notice p:last-child, .source-box p:last-child { margin-bottom: 0; }
.notice { border-left: 5px solid var(--blau-500); background: var(--blau-100); }
.notice--warning { border-left-color: var(--rot-500); background: #fdf1ec; }
.source-box { background: var(--kalk-100); border-left: 5px solid var(--gruen-600); }
.source-box ul { margin: .4rem 0 0; padding-left: 1.1em; font-size: .95rem; }
.source-box h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.section--dark .answer-box, .section--dark .notice, .section--dark .source-box { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #e8eef5; box-shadow: none; }
.section--dark .answer-box > strong:first-child, .section--dark .notice > strong:first-child { color: var(--gold-300); }
.section--dark .notice--warning { background: rgba(200, 16, 46, .12); }
.image-label, .ai-label { display: inline-block; margin: .5rem 0 0; padding: .3rem .7rem; border-radius: .4rem; font-size: .76rem; color: var(--ink-soft); background: var(--kalk-100); border: 1px dashed var(--schiefer-300); }
.concept-note { margin-top: 1.2rem; font-size: .78rem; letter-spacing: .04em; color: rgba(255, 255, 255, .8); }

/* Regionsbezug: Herrnhut in der Oberlausitz, mit Wortmarke als Verweis auf das Regionsportal */
.region-note { display: flex; align-items: flex-start; gap: 1.1rem; flex-wrap: wrap; margin: 1.4rem 0; padding: 1.1rem 1.2rem; background: var(--kalk-100); border: 1px solid var(--line); border-radius: var(--radius); }
.region-note__mark { flex: 0 0 auto; display: block; line-height: 0; }
.region-note__mark img { width: 232px; height: auto; max-width: 100%; }
.region-note__body { flex: 1 1 18rem; }
.region-note__body p { margin: 0; }
.region-note__body p + p { margin-top: .5rem; }
.section--dark .region-note { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #e8eef5; }
@media (max-width: 640px) { .region-note { gap: .8rem; padding: 1rem; } .region-note__mark img { width: 180px; } }

/* Karten */
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media picture { display: block; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media .ai-label { position: absolute; left: .7rem; bottom: .7rem; margin: 0; background: rgba(251, 250, 246, .92); }
.card__body { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.card__body h3 { margin: .2rem 0 .1rem; }
.card__body p { margin: 0; }
.card__meta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.card__link { margin-top: .5rem; font-weight: 700; text-decoration: none; }
.card__link::after { content: " →"; }
.card__link.stretched::before { content: ""; position: absolute; inset: 0; }
figure.card { margin: 0; }
figure.card img { width: 100%; }
figure.card figcaption { padding: .8rem 1.2rem; font-size: .86rem; color: var(--ink-soft); }

.guide-card { position: relative; padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card h3 { margin: .9rem 0 .4rem; }
.guide-card p:last-child { margin-bottom: 0; }
.step-badge { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem; border-radius: 99px; background: var(--blau-900); color: var(--gold-300); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.section--dark .guide-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); box-shadow: none; }
.section--dark .guide-card .step-badge { background: var(--gold-500); color: var(--blau-900); }

/* Faktenleiste (Startseite) */
.fact-strip { position: relative; z-index: 3; margin-top: clamp(-4rem, -6vw, -5.5rem); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; border: 1px solid rgba(13, 36, 64, .06); }
.fact { padding: 1.5rem 1.6rem; border-right: 1px solid var(--line); display: grid; align-content: start; gap: .2rem; }
.fact:last-child { border-right: 0; }
.fact__label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rot-500); }
.fact strong { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; line-height: 1.1; color: var(--blau-900); }
.fact span:not(.fact__label) { font-size: .9rem; color: var(--ink-soft); }
.fact a { font-size: .9rem; font-weight: 700; }
.section--dark .facts { background: rgba(255, 255, 255, .06); box-shadow: none; border-color: rgba(255, 255, 255, .15); }
.section--dark .fact { border-color: rgba(255, 255, 255, .15); }
.section--dark .fact strong { color: var(--white); }
.section--dark .fact span:not(.fact__label) { color: #b9c7d6; }
.section--dark .fact__label { color: var(--gold-300); }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } }

/* =========================================================================
   Parallax-Hero (Startseite): vier Schichten
   ========================================================================= */
.hero-parallax {
  position: relative; min-height: min(92vh, 900px); overflow: hidden;
  background: linear-gradient(180deg, #0f4c81 0%, #2f7fc0 35%, #9dcdef 70%, #e8f3fb 100%);
  color: var(--white); isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.parallax-stage { position: absolute; inset: 0; z-index: 0; }
.layer { position: absolute; left: 50%; bottom: 0; width: clamp(1200px, max(100%, calc(100vh * 1.78)), 2300px); height: auto; transform: translate3d(calc(-50% + var(--px, 0px)), var(--py, 0px), 0); will-change: transform; pointer-events: none; }
.layer img { width: 100%; height: auto; display: block; }
.layer--sky { bottom: auto; top: -8%; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(13, 36, 64, .55) 0%, rgba(13, 36, 64, .3) 40%, rgba(13, 36, 64, 0) 70%), linear-gradient(180deg, rgba(13, 36, 64, .35), rgba(13, 36, 64, 0) 40%); pointer-events: none; }
.hero-scrim::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--kalk-50)); }
.hero-content { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: clamp(3rem, 7vh, 6rem) 0 clamp(8rem, 18vh, 12rem); max-width: 100%; }
.hero-content__inner { max-width: 42rem; padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.6rem); border-radius: var(--radius-l); background: linear-gradient(135deg, rgba(13, 36, 64, .86), rgba(16, 54, 94, .74)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(13, 36, 64, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-content__inner > :last-child { margin-bottom: 0; }
.hero-parallax h1 { color: var(--white); text-shadow: none; margin-bottom: .45em; font-size: clamp(2.4rem, 5vw, 4.3rem); }
.hero-parallax .eyebrow { color: var(--gold-300); }
.hero-parallax .eyebrow::before { background: var(--gold-500); box-shadow: 0 0 12px var(--gold-300); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 34em; color: #f4f8fc; text-shadow: none; }
.hero-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; line-height: 1.3; padding: .45rem .9rem .45rem .5rem; border-radius: 99px; background: rgba(251, 250, 246, .12); border: 1px solid rgba(255, 255, 255, .3); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.2rem; }
.hero-badge i { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--rot-500); color: var(--white); font-style: normal; font-size: .7rem; }
.hero-scrollcue { position: absolute; left: 50%; bottom: 7rem; z-index: 2; transform: translateX(-50%); display: grid; justify-items: center; gap: .3rem; color: rgba(255, 255, 255, .8); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.hero-scrollcue span { width: 1px; height: 2.4rem; background: linear-gradient(180deg, var(--gold-300), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 720px) {
  .hero-parallax { min-height: 88vh; }
  .hero-badge .nowrap { display: none; }
  .hero-content__inner { padding: 1.3rem 1.2rem; }
  .layer { width: 1500px; }
  .hero-scrollcue { display: none; }
  .hero-content { padding-bottom: 8rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-scrollcue span { animation: none; } }

/* Unterseiten-Hero */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(160deg, var(--blau-900), var(--blau-700) 55%, var(--blau-500)); padding: 0 0 clamp(3rem, 6vw, 5rem); margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 46vw; height: 46vw; max-width: 700px; max-height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 166, 60, .32), rgba(224, 166, 60, 0) 65%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; padding-top: clamp(1rem, 2vw, 2rem); display: grid; gap: 1rem; }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 18ch; }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero .eyebrow::before { background: var(--gold-500); }
.page-hero .hero-lead { color: #dfeaf6; text-shadow: none; }
.page-hero--image { padding-bottom: 0; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.page-hero__figure { margin: 0; position: relative; border-radius: var(--radius-l) var(--radius-l) 0 0; overflow: hidden; box-shadow: var(--shadow-l); }
.page-hero__figure picture { display: block; }
.page-hero__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.page-hero__figure .ai-label { position: absolute; left: .8rem; bottom: .8rem; margin: 0; background: rgba(251, 250, 246, .92); }
.page-hero__illu { position: absolute; right: 0; bottom: 0; width: min(46vw, 620px); opacity: .18; pointer-events: none; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   3D-Karussell
   ========================================================================= */
.carousel3d { position: relative; padding: 1rem 0 0; }
.carousel3d__stage { position: relative; height: 29rem; perspective: 1400px; perspective-origin: 50% 45%; overflow: visible; }
.carousel3d__ring { position: absolute; left: 50%; top: 50%; width: 22rem; height: 26.5rem; margin: -13.25rem 0 0 -11rem; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.carousel3d__item { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); backface-visibility: hidden; transition: opacity .6s var(--ease); opacity: .45; will-change: transform; }
.carousel3d__item.is-front { opacity: 1; box-shadow: var(--shadow-l); }
.carousel3d__item:not(.is-front) .carousel3d__body { opacity: 0; transition: opacity .3s; }
.carousel3d__item:not(.is-front)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 36, 64, .05), rgba(13, 36, 64, .35)); }
.carousel3d__item picture { display: block; }
.carousel3d__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.carousel3d__illu { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(160deg, var(--blau-100), var(--gruen-200)); }
.carousel3d__illu svg { width: 55%; height: auto; }
.carousel3d__body { padding: 1rem 1.3rem 1.6rem; display: grid; gap: .35rem; align-content: start; transition: opacity .4s .25s; }
.carousel3d__body h3 { font-size: 1.2rem; margin: .1rem 0 .05rem; }
.carousel3d__body p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.carousel3d__body .chip { justify-self: start; }
.carousel3d__body a { font-weight: 700; text-decoration: none; margin-top: .3rem; }
.carousel3d__body a::after { content: " →"; }
.carousel3d__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; position: relative; z-index: 2; }
.carousel3d__btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--blau-800); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.carousel3d__btn:hover { background: var(--blau-100); transform: scale(1.06); }
.carousel3d__btn svg { width: 1.1rem; height: 1.1rem; }
.carousel3d__dots { display: flex; gap: .4rem; }
.carousel3d__dots button { width: .65rem; height: .65rem; padding: 0; border: 0; border-radius: 50%; background: var(--schiefer-300); cursor: pointer; transition: background .2s, transform .2s; }
.carousel3d__dots button[aria-current="true"] { background: var(--gold-500); transform: scale(1.3); }
.carousel3d__caption { text-align: center; margin: 1.2rem auto 0; max-width: 38em; font-size: .95rem; color: var(--ink-soft); min-height: 2.5em; line-height: 1.5; }
.section--dark .carousel3d__btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: var(--white); }
.section--dark .carousel3d__caption { color: #c8d5e3; }
.section--dark .carousel3d__dots button { background: rgba(255, 255, 255, .35); }
.section--dark .carousel3d__dots button[aria-current="true"] { background: var(--gold-500); }
@media (max-width: 720px) {
  .carousel3d__stage { height: 28rem; perspective: 1000px; }
  .carousel3d__ring { width: 18.5rem; height: 26rem; margin: -13rem 0 0 -9.25rem; }
}
/* Fallback ohne JS: horizontale Liste */
.no-js .carousel3d__stage { height: auto; perspective: none; }
.no-js .carousel3d__ring { position: static; width: auto; height: auto; margin: 0; display: flex; gap: 1rem; overflow-x: auto; transform: none !important; }
.no-js .carousel3d__item { position: relative; flex: 0 0 18rem; opacity: 1; filter: none; transform: none !important; }
.no-js .carousel3d__controls { display: none; }

/* Vier-Orte-Ring (Welterbe-Seite) */
.world-ring .carousel3d__item { background: linear-gradient(170deg, #143a63, var(--blau-900)); color: var(--white); border-color: rgba(255, 255, 255, .15); }
.world-ring .carousel3d__body h3 { color: var(--white); }
.world-ring .carousel3d__body p { color: #c9d6e4; }
.world-ring .carousel3d__body a { color: var(--gold-300); }
.world-ring .carousel3d__flag { padding: 1.4rem 1.1rem .4rem; display: flex; align-items: center; gap: .7rem; }
.world-ring .carousel3d__flag span { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold-300); }
.world-ring .carousel3d__flag small { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #a9bbd0; }
.world-ring .carousel3d__item.is-front { box-shadow: 0 0 0 2px var(--gold-500), var(--shadow-l); }
.world-ring .carousel3d__stage { height: 21rem; }
.world-ring .carousel3d__dots { display: none; }
.world-ring .carousel3d__ring { height: 19rem; margin-top: -9.5rem; }
.world-ring .carousel3d__item:not(.is-front) .carousel3d__body { opacity: 1; }
.world-ring .carousel3d__item:not(.is-front)::after { background: rgba(13, 36, 64, .45); }

/* =========================================================================
   Drei-Bereiche-Schema (Sektorkarte)
   ========================================================================= */
.sector-scheme { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.sector-scheme__map { position: relative; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(160deg, var(--gruen-200), var(--blau-100)); box-shadow: var(--shadow); }
.sector-scheme__map svg { width: 100%; height: auto; display: block; }
.sector-scheme__note { display: block; margin: 0; padding: .55rem .9rem; font-size: .76rem; background: rgba(251, 250, 246, .92); color: var(--ink-soft); border-top: 1px solid var(--line); }
.sector-list { display: grid; gap: .8rem; }
.sector { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: transform .3s var(--ease); }
.sector:hover { transform: translateX(4px); }
.sector__num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--blau-900); color: var(--gold-300); font-family: var(--font-display); font-size: 1.3rem; }
.sector--1 .sector__num { background: var(--blau-700); }
.sector--2 .sector__num { background: var(--gruen-600); }
.sector--3 .sector__num { background: var(--ziegel-500); }
.sector h3 { margin: .15rem 0 .25rem; font-size: 1.2rem; }
.sector p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.sector .eyebrow { margin: 0 0 .1rem; font-size: .7rem; }
@media (max-width: 860px) { .sector-scheme { grid-template-columns: 1fr; } }

/* Geschichten-Teaser (Startseite) */
.story-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.story-teaser { position: relative; display: grid; gap: .5rem; padding: 1.6rem 1.5rem 1.7rem; border-radius: var(--radius); text-decoration: none; color: var(--white); background: linear-gradient(165deg, var(--blau-800), var(--blau-900)); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.story-teaser::after { content: ""; position: absolute; right: -30%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(224, 166, 60, .35), transparent 65%); transition: transform .5s var(--ease); }
.story-teaser:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--white); }
.story-teaser:hover::after { transform: scale(1.3); }
.story-teaser span { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-300); line-height: 1; }
.story-teaser strong { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.story-teaser small { font-size: .92rem; color: #c4d2e1; line-height: 1.45; }
@media (max-width: 860px) { .story-teasers { grid-template-columns: 1fr; } }

/* Relation-Liste */
.relation-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.relation-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; margin: .65rem 0; }
.relation-list li::before { content: "→"; color: var(--gold-500); font-weight: 900; }

/* Detail-Layout & Fakten-Seitenleiste (unesco.de-Fakten-Kasten) */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.detail-grid > * { min-width: 0; }
.detail-grid aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.detail-grid article h2 { margin-top: 2.2rem; }
.detail-grid article h2:first-of-type { margin-top: 0; }
.side-facts { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--rot-500); box-shadow: var(--shadow-s); }
.side-facts h3 { font-size: 1.1rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.side-facts dl { margin: 0; display: grid; gap: .15rem; }
.side-facts dt { margin-top: .7rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.side-facts dd { margin: 0; font-weight: 650; color: var(--blau-900); }
.side-facts .source-box { margin: 0; }
.detail-grid aside .source-box { margin: 0; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid aside { position: static; } }

/* =========================================================================
   Geschichten
   ========================================================================= */
.story-index { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.story-index a { display: grid; gap: .2rem; padding: 1rem .9rem; border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), border-color .25s; }
.story-index a:hover { transform: translateY(-3px); border-color: var(--blau-500); }
.story-index span { font-family: var(--font-display); color: var(--gold-500); font-size: 1.4rem; line-height: 1; }
.story-index strong { font-size: .98rem; line-height: 1.2; color: var(--blau-900); }
.story-index small { font-size: .76rem; color: var(--ink-soft); }
@media (max-width: 1000px) { .story-index { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .story-index { grid-template-columns: repeat(2, 1fr); } }

.chapter-nav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(251, 250, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chapter-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.chapter-nav li { margin: 0; flex: none; }
.chapter-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .8rem .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; }
.chapter-nav a span { font-family: var(--font-display); text-transform: none; letter-spacing: 0; color: var(--gold-500); font-size: 1rem; }
.chapter-nav a:hover, .chapter-nav a.is-active { color: var(--blau-900); border-color: var(--gold-500); }

.story-chapter { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story-chapter.reverse > .story-copy { order: 2; }
.story-chapter > * { min-width: 0; }
.story-number { font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 6rem); line-height: .9; color: var(--gold-500); margin: 0 0 .2em; opacity: .9; }
.story-opening { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; color: var(--blau-800); font-variation-settings: "opsz" 60, "SOFT" 60; border-left: 3px solid var(--gold-500); padding-left: 1rem; margin: 1rem 0 1.3rem; }
.section--dark .story-opening { color: var(--gold-300); }
.story-media { margin: 0; }
.story-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.story-media figcaption { margin-top: .6rem; }
.story-visit { display: grid; gap: .25rem; padding: 1rem 1.2rem; margin: 1.4rem 0 1rem; border-radius: var(--radius-s); background: var(--kalk-100); border-left: 4px solid var(--gruen-600); }
.story-visit strong { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gruen-600); }
.story-visit span { font-size: .95rem; color: var(--ink-soft); }
.story-visit a { font-weight: 700; }
.section--dark .story-visit { background: rgba(255, 255, 255, .08); color: #e8eef5; }
.section--dark .story-visit span { color: #c8d5e3; }
.section--dark .story-visit strong { color: var(--gold-300); }
.evidence-note { margin: 1rem 0 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
.evidence-note summary { padding: .8rem 1rem; cursor: pointer; font-weight: 700; color: var(--blau-800); list-style: none; display: flex; align-items: center; gap: .5rem; }
.evidence-note summary::-webkit-details-marker { display: none; }
.evidence-note summary::before { content: "✓"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--gruen-200); color: var(--gruen-600); font-size: .8rem; flex: none; }
.evidence-note p { margin: 0; padding: 0 1rem 1rem; font-size: .95rem; }
.section--dark .evidence-note { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.section--dark .evidence-note summary { color: var(--white); }
.story-jump { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--radius-s); background: linear-gradient(120deg, #fbefd2, var(--kalk-100)); margin: 1.2rem 0; }
.story-jump > span { color: var(--gold-500); font-size: 1.3rem; }
@media (max-width: 860px) { .story-chapter { grid-template-columns: 1fr; } .story-chapter.reverse > .story-copy { order: 0; } }

/* Erzählgrafiken */
.world-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.2rem 0; font-weight: 700; }
.world-ribbon strong { padding: .45rem .9rem; border-radius: 99px; background: var(--gold-500); color: var(--blau-900); }
.world-ribbon span { padding: .4rem .8rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .4); font-size: .92rem; }
.world-ribbon span:nth-child(even) { border: 0; padding: 0; color: var(--gold-300); }
.door-story, .word-visual, .star-story { margin: 0; padding: 2rem 1.5rem 1.5rem; border-radius: var(--radius-l); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); display: grid; justify-items: center; text-align: center; gap: 1rem; }
.door-story { grid-template-columns: 1fr auto 1fr; align-items: end; }
.door-story figcaption, .word-visual figcaption, .star-story figcaption { grid-column: 1 / -1; font-size: .92rem; color: #c8d5e3; }
.door-building { display: grid; justify-items: center; gap: .8rem; }
.building-label { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; color: var(--gold-300); }
.door-shape { position: relative; width: 6.5rem; height: 11rem; border-radius: 3.25rem 3.25rem .4rem .4rem; background: linear-gradient(180deg, #d9b26a, #9a6b2f); display: grid; place-items: center; color: var(--blau-900); font-size: .78rem; font-weight: 700; line-height: 1.25; box-shadow: inset 0 0 0 .4rem rgba(255, 255, 255, .25); }
.door-shape::before { content: ""; position: absolute; right: 1rem; top: 55%; width: .6rem; height: .6rem; border-radius: 50%; background: var(--blau-900); }
.door-route { display: grid; justify-items: center; gap: .3rem; color: #e7d3aa; font-size: .88rem; align-self: center; }
.door-route b { font-size: 3rem; line-height: 1; color: var(--gold-300); }
.door-route small { color: #a9bbd0; font-size: .78rem; }
.word-visual { position: relative; min-height: 22rem; align-content: center; overflow: hidden; }
.word-origin { position: relative; z-index: 1; display: grid; place-items: center; gap: .2rem; width: 11rem; height: 11rem; border-radius: 50%; background: var(--gold-500); color: var(--blau-900); }
.word-origin span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.word-origin strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }
.word-origin small { font-size: .75rem; }
.word-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.word-rings i { position: absolute; border-radius: 50%; border: 1px dashed rgba(244, 213, 141, .5); animation: ring 9s linear infinite; }
.word-rings i:nth-child(1) { width: 15rem; height: 15rem; }
.word-rings i:nth-child(2) { width: 20rem; height: 20rem; animation-duration: 14s; animation-direction: reverse; }
.word-rings i:nth-child(3) { width: 25rem; height: 25rem; animation-duration: 20s; }
@keyframes ring { to { transform: rotate(360deg); } }
.word-languages { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; position: relative; z-index: 1; }
.word-languages span { padding: .35rem .7rem; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: .82rem; font-weight: 700; }
.star-story { position: relative; min-height: 24rem; grid-template-rows: 1fr auto; align-content: stretch; align-items: center; overflow: hidden; }
.star-story figcaption { position: relative; z-index: 1; }
.star-symbol { font-size: 7rem; line-height: 1; color: var(--gold-300); text-shadow: 0 0 40px rgba(244, 213, 141, .7); animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { from { text-shadow: 0 0 20px rgba(244, 213, 141, .4); } to { text-shadow: 0 0 60px rgba(244, 213, 141, .95); } }
.star-label { position: absolute; padding: .35rem .8rem; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: .82rem; font-weight: 700; }
.star-label.geometry { left: 8%; top: 14%; }
.star-label.memory { right: 8%; top: 18%; }
.star-label.education { left: 10%; bottom: 36%; }
.star-label.herrnhut { right: 8%; bottom: 34%; background: var(--gold-500); color: var(--blau-900); }
.section:not(.section--dark) .door-story, .section:not(.section--dark) .word-visual, .section:not(.section--dark) .star-story { background: var(--blau-900); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .word-rings i, .star-symbol { animation: none; } }
@media (max-width: 480px) { .door-story { grid-template-columns: 1fr; } .door-route b { transform: rotate(90deg); display: inline-block; } }

/* =========================================================================
   Welterbe-Seite: Zeitband, Werte, Netzwerk, Stern, Schatten, Timeline
   ========================================================================= */
.history-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 1.5rem 0 2rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.history-ribbon article { padding: 1.3rem 1.2rem; background: var(--white); }
.history-ribbon span { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--rot-500); line-height: 1; margin-bottom: .6rem; }
.history-ribbon strong { display: block; color: var(--blau-900); font-size: 1.05rem; }
.history-ribbon p { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 720px) { .history-ribbon { grid-template-columns: repeat(2, 1fr); } }
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.value-grid article { padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--radius); background: var(--kalk-100); border: 1px solid var(--line); }
.value-grid article > span { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-500); line-height: 1; }
.value-grid h3 { margin: .5rem 0 .3rem; font-size: 1.15rem; }
.value-grid p { margin: 0; font-size: .95rem; }
@media (max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }
.network-figure { position: relative; min-height: 22rem; margin: 2rem 0; border-radius: var(--radius-l); background: radial-gradient(circle at 50% 50%, #17406b, var(--blau-900) 70%); display: grid; place-items: center; overflow: hidden; }
.network-figure::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 4rem, rgba(255, 255, 255, .06) 4rem 4.05rem); }
.network-core { position: relative; z-index: 1; display: grid; place-items: center; gap: .3rem; width: 11rem; height: 11rem; border-radius: 50%; background: var(--gold-500); color: var(--blau-900); text-align: center; box-shadow: 0 0 60px rgba(224, 166, 60, .45); }
.network-core strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.network-core span { font-size: .72rem; line-height: 1.3; padding: 0 1rem; }
.network-ring { position: absolute; inset: 0; }
.network-ring span { position: absolute; padding: .4rem .8rem; border-radius: 99px; background: rgba(255, 255, 255, .12); color: var(--white); font-size: .82rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .25); }
.network-ring span:nth-child(1) { left: 8%; top: 20%; }
.network-ring span:nth-child(2) { right: 9%; top: 18%; }
.network-ring span:nth-child(3) { right: 6%; bottom: 24%; }
.network-ring span:nth-child(4) { left: 6%; bottom: 22%; }
.network-ring span:nth-child(5) { left: 50%; bottom: 6%; transform: translateX(-50%); }
.church-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; margin: 1.5rem 0 .5rem; }
.church-stats div { padding: 1.2rem; text-align: center; border-right: 1px solid var(--line); }
.church-stats div:last-child { border-right: 0; }
.church-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--blau-700); line-height: 1; }
.church-stats span { display: block; margin-top: .4rem; font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }
.origin-box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; padding: 2rem; margin: 2.5rem 0; border-radius: var(--radius-l); background: linear-gradient(160deg, var(--blau-700), var(--blau-900)); color: #e8eef5; }
.origin-box h2 { color: var(--white); margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.origin-box .eyebrow { color: var(--gold-300); }
.origin-box p { margin: 0; }
.origin-box strong { color: var(--gold-300); }
@media (max-width: 720px) { .origin-box { grid-template-columns: 1fr; } }
.star-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; margin: 2.5rem 0; padding: 1.5rem; border-radius: var(--radius-l); background: var(--blau-900); color: #e8eef5; align-items: center; }
.star-feature-media img { border-radius: var(--radius); box-shadow: var(--shadow-l); }
.star-feature figcaption h3 { color: var(--white); }
.star-feature .eyebrow { color: var(--gold-300); }
.star-feature strong { color: var(--gold-300); }
.star-feature .image-label { background: rgba(255, 255, 255, .1); color: #c8d5e3; border-color: rgba(255, 255, 255, .3); }
.star-feature a { color: var(--gold-300); }
@media (max-width: 720px) { .star-feature { grid-template-columns: 1fr; } }
.shadow-section { margin: 2.5rem 0; padding: 2rem; border-radius: var(--radius-l); background: var(--schiefer-900); color: #dfe6ee; }
.shadow-section h2, .shadow-section h3 { color: var(--white); }
.shadow-section .eyebrow { color: var(--gold-300); }
.era-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.era-grid article { padding: 1.3rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.era-grid article > span { font-family: var(--font-display); color: var(--gold-300); font-size: 1.1rem; }
.era-grid h3 { margin: .3rem 0 .5rem; }
.era-grid p { margin: 0; font-size: .93rem; }
.shadow-section .notice--warning { background: rgba(200, 16, 46, .14); border-color: var(--rot-500); color: #f1e2e5; box-shadow: none; }
.shadow-section .notice--warning strong { color: var(--white); }
@media (max-width: 640px) { .era-grid { grid-template-columns: 1fr; } }
.story-link-box { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem 1.4rem; margin: 1.5rem 0; border-radius: var(--radius); background: linear-gradient(120deg, #fbefd2, var(--kalk-100)); border: 1px solid #ecd9a8; }
.story-link-box > span { font-size: 1.6rem; color: var(--gold-500); }
.story-link-box p { margin: .2rem 0 .4rem; font-size: .95rem; }

.timeline { position: relative; display: grid; gap: 1.2rem; padding-left: 2.4rem; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(180deg, var(--gold-500), var(--blau-500)); }
.timeline article { position: relative; padding: 1rem 1.3rem; border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--line); }
.timeline article::before { content: ""; position: absolute; left: -2.35rem; top: 1.2rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--rot-500); border: 3px solid var(--kalk-100); box-shadow: 0 0 0 2px var(--rot-500); }
.timeline h3 { font-size: 1.1rem; margin: 0 0 .3rem; color: var(--blau-700); }
.timeline p { margin: 0; }
.timeline article.is-highlight { border-color: var(--gold-500); background: #fffaf0; }

/* =========================================================================
   Planer (Reise-Kompass)
   ========================================================================= */
.planner { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.planner-form { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.6rem; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.planner-form h2 { font-size: 1.6rem; margin: 0; }
.planner-form > p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-weight: 700; font-size: .92rem; color: var(--blau-900); padding: 0; }
.field select { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--kalk-50); }
.field select:focus { border-color: var(--blau-500); outline: none; box-shadow: 0 0 0 3px rgba(11, 108, 185, .18); }
.seg { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.seg__options { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; padding: .5rem .85rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--kalk-50); font-size: .88rem; font-weight: 600; color: var(--schiefer-700); transition: background .2s, border-color .2s, color .2s; }
.seg input:checked + span { background: var(--blau-900); border-color: var(--blau-900); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.seg label:hover span { border-color: var(--blau-500); }
.planner-result { min-height: 20rem; display: grid; gap: 1rem; align-content: start; }
.planner-result .answer-box, .planner-result .notice, .planner-result .route-evidence { margin: 0; }
.route-evidence { padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--blau-100); border-left: 5px solid var(--blau-500); }
.route-evidence strong { display: block; margin-bottom: .3rem; color: var(--blau-800); }
.route-evidence p { margin: .3rem 0 0; }
.itinerary-stop { display: grid; grid-template-columns: 3rem 1fr; gap: 1.1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s); position: relative; animation: rise .5s var(--ease) both; }
.itinerary-stop:nth-child(n+3) { animation-delay: .05s; }
.itinerary-stop:nth-child(n+4) { animation-delay: .1s; }
.itinerary-stop:nth-child(n+5) { animation-delay: .15s; }
.itinerary-stop:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stop-number { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--blau-900); color: var(--gold-300); font-family: var(--font-display); font-size: 1.3rem; }
.itinerary-stop h3 { margin: .2rem 0 .4rem; font-size: 1.2rem; }
.itinerary-stop p { margin: 0 0 .5rem; font-size: .97rem; }
.itinerary-stop a { font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.tag { display: inline-block; padding: .28rem .65rem; border-radius: 99px; background: var(--kalk-100); border: 1px solid var(--line); font-size: .76rem; font-weight: 600; color: var(--schiefer-700); }
@media (max-width: 900px) { .planner { grid-template-columns: 1fr; } .planner-form { position: static; } }
@media (prefers-reduced-motion: reduce) { .itinerary-stop { animation: none; } }

/* =========================================================================
   Mobilität: Evidenz, Tabelle, Datenlücken
   ========================================================================= */
.evidence-legend { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.evidence-status, .priority-chip { display: inline-flex; align-items: center; gap: .35em; padding: .3em .75em; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.evidence-status::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.evidence-status.confirmed { color: #1d5a3f; background: #d8eee6; }
.evidence-status.official { color: #5a4408; background: #f6e9be; }
.evidence-status.mapped { color: #23507a; background: #dcebf8; }
.evidence-status.modelled { color: #4e356a; background: #e9e0f2; }
.evidence-status.gap { color: #8c0b20; background: #fbe4e7; }
.priority-chip { color: var(--white); background: var(--blau-700); }
.priority-chip.p1 { background: var(--rot-500); }
.priority-chip.p2 { background: #a4711b; }
.priority-chip.p3 { background: var(--gruen-600); }
.guide-card > .evidence-status { margin-bottom: .2rem; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-s); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th { text-align: left; padding: .9rem 1rem; background: var(--blau-900); color: var(--white); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--kalk-100); }
.gap-register { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gap-register article { padding: 1.2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); }
.gap-register h3 { font-size: 1.05rem; margin: .7rem 0 .35rem; color: var(--white); }
.gap-register p { margin: 0; font-size: .9rem; color: #c8d5e3; }
@media (max-width: 1000px) { .gap-register { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gap-register { grid-template-columns: 1fr; } }

/* =========================================================================
   GEO erklärt
   ========================================================================= */
.signal-panel { padding: 1.6rem; border-radius: var(--radius-l); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); color: var(--white); }
.signal-title { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 .3rem; }
.signal-intro { margin: 0 0 1rem; font-size: .9rem; color: #c8d5e3; }
.signal-stack { display: grid; gap: .5rem; counter-reset: signal; }
.signal-stack span { position: relative; padding: .7rem .9rem .7rem 3rem; border-radius: var(--radius-s); background: rgba(255, 255, 255, .1); font-weight: 600; }
.signal-stack span::before { counter-increment: signal; content: counter(signal, decimal-leading-zero); position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); font-family: var(--font-display); color: var(--gold-300); }
.section:not(.section--dark):not(.section--blue):not(.page-hero) .signal-panel { background: var(--blau-900); }
.guide-summary { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.guide-summary + .story-teasers, .guide-summary + .grid { margin-top: clamp(2rem, 4vw, 3.5rem); }
.guide-summary > * { min-width: 0; }
.guide-summary h2 { margin-bottom: 0; }
.guide-summary p:first-child { margin-top: 0; }
@media (max-width: 800px) { .guide-summary { grid-template-columns: 1fr; } }
.effect-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: .8rem; align-items: stretch; margin: 1.6rem 0; }
.effect-path article { padding: 1.2rem 1.2rem 1.3rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.effect-path article > span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold-500); color: var(--blau-900); font-family: var(--font-display); font-weight: 600; }
.effect-path h3 { margin: .8rem 0 .4rem; font-size: 1.1rem; }
.effect-path p { margin: 0; font-size: .92rem; }
.flow-arrow { display: grid; place-items: center; color: var(--gold-500); font-size: 1.6rem; font-weight: 900; }
.section--dark .effect-path article { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); box-shadow: none; }
.truth-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: .6rem; align-items: center; margin: 1.6rem 0; }
.flow-step { padding: 1.1rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s); display: grid; gap: .2rem; text-align: center; }
.flow-step span { font-family: var(--font-display); color: var(--gold-500); font-size: 1.1rem; }
.flow-step strong { color: var(--blau-900); line-height: 1.2; }
.flow-step small { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 960px) { .effect-path, .truth-flow { grid-template-columns: 1fr; } .flow-arrow { transform: rotate(90deg); } }
.code-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.code-card { padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--gold-500); box-shadow: var(--shadow-s); }
.code-value { display: inline-block; margin: 0 0 .5rem; padding: .35rem .7rem; border-radius: .4rem; background: var(--blau-900); color: var(--gold-300); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .95rem; }
.code-card h3 { margin: .3rem 0 .4rem; font-size: 1.15rem; }
.code-card p { margin: 0; font-size: .93rem; }
@media (max-width: 900px) { .code-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .code-grid { grid-template-columns: 1fr; } }
.entity-tree { margin: 0; display: grid; justify-items: center; gap: 0; }
.entity-node { padding: 1rem 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); text-align: center; color: var(--white); }
.entity-node strong, .entity-node small { display: block; }
.entity-node small { margin-bottom: .25rem; color: #b9c7d6; font-size: .78rem; }
.entity-node.serial { max-width: 560px; }
.entity-node.component { background: var(--gold-500); color: var(--blau-900); border-color: var(--gold-500); }
.entity-node.component small { color: #4a3305; }
.entity-connector { position: relative; height: 3.4rem; display: grid; place-items: center; }
.entity-connector::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold-500); }
.entity-connector span { position: relative; z-index: 1; padding: .2rem .6rem; border-radius: 99px; background: var(--gold-500); color: var(--blau-900); font-size: .76rem; font-weight: 800; }
.entity-children { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: 100%; max-width: 860px; }
.entity-separator { margin: 2rem 0 1rem; color: var(--gold-300); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.entity-related { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.entity-related span { padding: .45rem .8rem; border: 1px dashed rgba(255, 255, 255, .4); border-radius: 99px; color: #dce8f2; font-size: .9rem; }
.entity-tree figcaption { max-width: 800px; margin: 1.8rem auto 0; color: #c8d5e3; text-align: center; }
@media (max-width: 640px) { .entity-children { grid-template-columns: 1fr; } }
.technical-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.technical-links li { margin: 0; }
.technical-links a { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: transform .2s var(--ease), border-color .2s; }
.technical-links a::before { content: "{ }"; font-family: ui-monospace, monospace; color: var(--gold-500); font-weight: 800; }
.technical-links a:hover { transform: translateX(4px); border-color: var(--blau-500); }
.scenario-card { padding: 1.5rem; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.scenario-input { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.scenario-input span { padding: .4rem .75rem; border-radius: 99px; background: var(--blau-100); color: var(--blau-800); font-weight: 700; font-size: .9rem; }
.scenario-arrow { margin: 1rem 0; color: var(--gold-500); font-size: 2rem; font-weight: 900; line-height: 1; }
.scenario-card strong { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; display: block; margin-bottom: .4rem; color: var(--blau-900); }
.scenario-card p:last-child { margin: 0; }
.stakeholder-checklist { counter-reset: check; list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.stakeholder-checklist li { counter-increment: check; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; padding: .8rem 1rem; border-radius: var(--radius-s); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); margin: 0; }
.stakeholder-checklist li::before { content: counter(check); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold-500); color: var(--blau-900); font-family: var(--font-display); font-weight: 600; }
.operator-tool-cta { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 1.5rem; align-items: center; padding: 1.8rem; margin-top: 1rem; border-radius: var(--radius-l); background: linear-gradient(140deg, #143a63, var(--blau-800)); border: 1px solid rgba(255, 255, 255, .18); }
.operator-tool-cta h3 { color: var(--white); margin-bottom: .6rem; }
.operator-tool-cta p { margin: 0; color: #dfe8f2; }
.tool-kicker { margin: 0 0 .5rem; color: var(--gold-300); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.operator-tool-action { display: grid; gap: .6rem; justify-items: center; }
.tool-status { font-size: .78rem; color: #b9c7d6; text-align: center; }
@media (max-width: 800px) { .operator-tool-cta { grid-template-columns: 1fr; } }

/* =========================================================================
   Sterne-Deko, Reveal, Footer
   ========================================================================= */
.star-deco { position: absolute; pointer-events: none; color: var(--gold-300); opacity: .5; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.cta-band { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(120deg, var(--blau-900), var(--blau-700)); color: var(--white); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, rgba(224, 166, 60, .35), transparent 40%); }
.cta-band .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: #d6e2ee; max-width: 40em; }
.cta-band .btn-row { margin: 0; }
@media (max-width: 800px) { .cta-band .container { grid-template-columns: 1fr; } }

.site-footer { position: relative; background: var(--blau-900); color: #c8d5e3; padding: clamp(3rem, 6vw, 5rem) 0 2rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--rot-500) 0 25%, var(--gold-500) 25% 50%, var(--blau-500) 50% 75%, var(--gruen-600) 75%); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4, .footer-grid strong { color: var(--white); font-family: var(--font-text); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; display: block; }
.footer-grid p { margin: 0 0 .6rem; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-grid li { margin: 0; }
.footer-grid a { color: #e2ebf4; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; margin-bottom: 1rem; }
.footer-brand .brand__mark { width: 2.4rem; height: 2.4rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: #93a5b8; }
.footer-bottom a { color: #b9c7d6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Faktenliste mit Status (bestätigt / noch zu prüfen) */
.fact-list { margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.fact-list__row { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: 1rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
.fact-list__row:first-child { border-top: 0; }
.fact-list__row dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: .15rem; }
.fact-list__row dd { margin: 0; font-size: .97rem; }
.fact-list__row--open dt::after { content: "noch zu prüfen"; display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 99px; background: #fbe4e7; color: #8c0b20; font-size: .66rem; letter-spacing: .06em; }
html[lang="en"] .fact-list__row--open dt::after { content: "to verify"; }
.fact-list__row--ok dt::after { content: "bestätigt"; display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 99px; background: #d8eee6; color: #1d5a3f; font-size: .66rem; letter-spacing: .06em; }
html[lang="en"] .fact-list__row--ok dt::after { content: "confirmed"; }
@media (max-width: 600px) { .fact-list__row { grid-template-columns: 1fr; gap: .2rem; } }
.arrival-grid .side-facts { margin-bottom: 1rem; }
.footer-bottom p { margin: 0; }

/* Ortsseiten */
.poi-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.poi-nav a { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.2rem; border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--blau-800); transition: transform .2s var(--ease), border-color .2s; }
.poi-nav a:hover { transform: translateY(-2px); border-color: var(--blau-500); }
.poi-nav small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

/* Karte der Orte mit Wegbeziehungen (Startseite/Planer) */
.route-map { position: relative; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(160deg, var(--gruen-200), var(--blau-100)); box-shadow: var(--shadow); }
.route-map svg { width: 100%; height: auto; display: block; }

/* Druck */
@media print {
  .site-header, .nav-drawer, .reading-progress, .hero-scrollcue, .carousel3d__controls, .cta-band { display: none !important; }
  .hero-parallax, .page-hero { margin-top: 0; padding-top: 0; min-height: auto; color: var(--ink); background: none; }
  .hero-parallax h1, .page-hero h1 { color: var(--ink); text-shadow: none; }
  .parallax-stage, .hero-scrim { display: none; }
  .section--dark, .section--blue { background: none; color: var(--ink); }
}
