/* chronik.online – Produktwebsite-Prototyp. Statisches CSS, keine Abhängigkeiten. */
:root {
  --green-950: #07201d;
  --green-900: #0f2a28;
  --green-800: #153531;
  --green-700: #1b372f;
  --cream: #f0e3d9;
  --cream-2: #ecdccd;
  --coral: #f0694c;
  --coral-deep: #a23824;
  --coral-text: #ff9780;
  --on-dark: #e4ebe7;
  --muted-dark: #b3c3be;
  --ink: #14302c;
  --muted-light: #4a5c57;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(72px, 9vw, 150px);
  --header-h: 76px;
  --sec-y: clamp(76px, 7.8vw, 120px); /* einheitlicher vertikaler Abstand aller Abschnitte */
  --wave: clamp(44px, 7vw, 104px); /* Höhe der Wellenkanten heller Abschnitte */
  --band-h: clamp(660px, 80vh, 780px); /* sichtbare Höhe der Abschnitte 01–04 auf dem Desktop */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--green-950); color: var(--on-dark); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--coral); color: var(--green-950); }
:focus-visible { outline: 3px solid #ffb9a6; outline-offset: 3px; border-radius: 6px; }
.band-light :focus-visible { outline-color: var(--coral-deep); }

.skip-link { position: fixed; z-index: 1000; top: -80px; left: 16px; padding: 12px 18px; background: #fff; color: var(--green-950); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--header-h); display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 0 clamp(20px, 4.5vw, 72px); transition: background .35s ease, box-shadow .35s ease; }
.site-header.is-solid { background: rgba(8, 30, 28, .86); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-solid { backdrop-filter: blur(14px); } }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }
@media (max-width: 480px) { .brand img { height: 20px; } }
.primary-nav { display: flex; gap: clamp(18px, 2.6vw, 42px); margin: 0 auto; }
.primary-nav a { position: relative; text-decoration: none; font-size: .86rem; font-weight: 500; color: #fff; padding: 10px 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: .88rem; font-weight: 600; background: rgba(8, 30, 28, .55); }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s ease; }
.menu-bars::before { content: ""; position: absolute; top: 5px; left: 0; }
.menu[open] .menu-bars { transform: translateY(2px) rotate(45deg); }
.menu[open] .menu-bars::before { transform: translateY(-5px) rotate(-90deg); top: 5px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 12px; background: rgba(9, 32, 29, .97); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; border-radius: 10px; font-weight: 500; }
.menu-panel a:not(.btn):hover { background: rgba(255, 255, 255, .08); }
.menu-panel .btn { margin-top: 8px; justify-content: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: 0 1.45rem; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-size: .92rem; font-weight: 650; cursor: pointer; transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #10231f; box-shadow: 0 8px 24px rgba(240, 105, 76, .28); }
.btn-primary:hover { background: #f58168; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(8, 30, 28, .28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-small { min-height: 42px; padding: 0 1.15rem; font-size: .82rem; }

/* ---------- Seitenstruktur ---------- */
.page { position: relative; overflow-x: clip; background: var(--green-900); }
.timeline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.wrap, .hero-inner { width: min(1320px, calc(100% - 2 * var(--pad))); margin-inline: auto; }
.wrap { position: relative; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; min-height: clamp(660px, 100svh, 980px); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--green-900); }
.hero-layer { position: absolute; inset: -40px 0 0 0; background-size: cover; background-position: 50% 0; background-repeat: no-repeat; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-photo { background-image: url("assets/img/hero-1672.webp"); background-position: 50% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 28, 26, .62) 0, rgba(7, 28, 26, .42) 42%, rgba(7, 28, 26, 0) 72%), linear-gradient(180deg, rgba(7, 28, 26, .5) 0, rgba(7, 28, 26, 0) 20%, rgba(15, 42, 40, 0) 72%, var(--green-900) 100%); }
.hero-inner { position: relative; padding-top: clamp(120px, 17vh, 200px); }
.hero h1 { margin-bottom: 1.5rem; font-family: var(--serif); font-weight: 700; font-size: clamp(2.9rem, 5.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-lead { max-width: 30em; margin-bottom: 2rem; font-size: clamp(1.02rem, 1.25vw, 1.25rem); line-height: 1.6; color: #e8efec; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-frames { position: absolute; z-index: 2; right: 1.5%; bottom: clamp(90px, 13vh, 150px); width: min(44vw, 680px); aspect-ratio: 1.36; margin: 0; pointer-events: none; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .45)); }
.frame { position: absolute; margin: 0; padding: 3.4%; background: linear-gradient(145deg, #f5ecd9, #e6d6b8); clip-path: polygon(-0.70% 0.33%, 6.88% -0.24%, 14.79% 0.27%, 21.45% 0.35%, 28.53% 0.09%, 35.32% 0.70%, 42.35% 0.23%, 50.12% 0.86%, 56.98% -0.18%, 63.89% 0.73%, 71.56% 0.48%, 78.54% 0.03%, 85.45% 0.81%, 92.17% -0.03%, 100.11% 0.70%, 98.92% 8.93%, 100.14% 18.21%, 99.04% 27.43%, 100.24% 36.11%, 100.16% 44.78%, 99.90% 54.98%, 100.23% 63.34%, 99.13% 73.15%, 100.23% 82.14%, 100.30% 91.33%, 99.90% 99.26%, 93.02% 98.93%, 86.35% 100.06%, 78.36% 100.12%, 70.73% 99.83%, 64.92% 99.67%, 57.39% 99.61%, 50.49% 99.51%, 43.46% 100.30%, 35.61% 100.04%, 28.58% 99.22%, 20.80% 98.97%, 14.74% 99.05%, 6.93% 99.67%, -0.17% 99.56%, -0.15% 90.74%, -0.06% 81.92%, 0.47% 73.32%, -0.16% 64.31%, 1.09% 54.93%, 0.49% 45.27%, 0.91% 36.57%, 0.40% 27.00%, 0.45% 17.84%, 1.05% 9.19%); }
.frame img { display: block; width: 100%; height: auto; }
.frame-mill { left: 33%; top: 0; width: 27%; transform: rotate(5deg); }
.frame-team { left: 0; bottom: 8%; width: 50%; transform: rotate(-5deg); z-index: 1; }
.frame-news { right: 0; bottom: 0; width: 54%; transform: rotate(3deg); z-index: 2; }
.hero-markers { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.marker { position: absolute; width: 0; height: 0; }
.marker-future { left: 90%; top: 31%; }
.marker-today { left: 70%; top: 24%; }
.marker-past { left: 44%; top: 63%; }
.marker-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--coral), 0 0 24px 6px rgba(240, 105, 76, .7); }
.js .marker-dot { visibility: hidden; }
.marker-label { position: absolute; white-space: nowrap; font-family: var(--serif); font-size: clamp(1rem, 1.5vw, 1.45rem); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.marker-future .marker-label { transform: translate(-50%, -50px); }
.marker-today .marker-label { transform: translate(-20%, 22px); }
.marker-past .marker-label { transform: translate(-50%, 22px); }
.scroll-hint { position: absolute; left: 38%; bottom: 4%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; font-size: .72rem; line-height: 1.35; color: #fff; }
.scroll-hint .ico { width: 26px; height: 26px; color: var(--coral); }
.scroll-hint::after { content: ""; width: 1px; height: 38px; background: linear-gradient(#fff, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint .ico { animation: nudge 2.4s ease-in-out infinite; }
  .hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-inner > :nth-child(2) { animation-delay: .1s; }
  .hero-inner > :nth-child(3) { animation-delay: .2s; }
  .hero-inner > :nth-child(4) { animation-delay: .3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* ---------- Bänder ---------- */
.band { position: relative; padding-block: var(--sec-y); }
/* Die Wellen heller Abschnitte ragen je ca. 55 % ihrer Höhe in den dunklen Nachbarn. Dunkle Abschnitte zwischen hellen bekommen diesen Raum zurück,
   damit hell und dunkel gleich hoch wirken (statt hell ≈ 2 Wellen höher, dunkel ≈ 2 Wellen niedriger). */
.band-two, .band-four { padding-block: calc(var(--sec-y) + 1.1 * var(--wave)); }
.br-d { display: inline; }
.band-light { z-index: 2; color: var(--ink); background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.band-light::before, .band-light::after { content: ""; position: absolute; left: 0; right: 0; height: var(--wave); background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.band-light::before { top: 1px; transform: translateY(-100%); background-position: 0 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f0e3d9' d='M0 100V52C150 14 300 70 520 46S900 4 1160 38 1380 64 1440 30V100Z'/%3E%3C/svg%3E"); }
.band-light::after { bottom: 1px; transform: translateY(100%); background-position: 0 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ecdccd' d='M0 0V44C180 88 360 18 640 52S1040 94 1220 48 1400 22 1440 44V0Z'/%3E%3C/svg%3E"); }
.band-three::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f0e3d9' d='M0 100V30C220 80 420 12 700 48S1120 86 1440 24V100Z'/%3E%3C/svg%3E"); }
.band-three::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ecdccd' d='M0 0V60C260 20 480 92 760 54S1180 8 1440 52V0Z'/%3E%3C/svg%3E"); }
.band-dark { z-index: 1; color: var(--on-dark); background: linear-gradient(rgba(15, 42, 40, .38), rgba(15, 42, 40, .38)), url("assets/img/forest-mist-1600.webp") center bottom / cover no-repeat, var(--green-900); }
.band-four { background: linear-gradient(180deg, transparent 65%, var(--green-900)), linear-gradient(rgba(15, 42, 40, .38), rgba(15, 42, 40, .38)), url("assets/img/forest-mist-1600.webp") center bottom / cover no-repeat, var(--green-900); }
.band-art { position: absolute; z-index: 0; right: 0; bottom: 0; width: min(74%, 1000px); aspect-ratio: 900 / 360; background: url("assets/img/village-panorama-1600.webp") right bottom / contain no-repeat; opacity: .85; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(0deg, transparent, #000 30%), linear-gradient(180deg, transparent, #000 35%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(0deg, transparent, #000 30%), linear-gradient(180deg, transparent, #000 35%); mask-composite: intersect; pointer-events: none; }
.band-three .wrap { z-index: 1; }
.band-three .grid-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.band-three .copy h2 { font-size: clamp(1.9rem, 2.85vw, 2.8rem); }
.band-end { z-index: 1; background: linear-gradient(180deg, var(--green-900), var(--green-950) 40%, #061a18); padding-top: var(--sec-y); }

.grid-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.station-anchor { position: absolute; left: var(--sx, -52px); top: var(--sy, 30%); width: 0; height: 0; }
.band-one { --sx: -50px; --sy: 28%; }
.band-three { --sx: -44px; --sy: 34%; }
.band-four { --sx: -50px; --sy: 30%; }
.band-one .station-anchor { --sx: -50px; --sy: 28%; }
.band-three .station-anchor { --sx: -44px; --sy: 34%; }
.band-four .station-anchor { --sx: -50px; --sy: 30%; }
.js .station-anchor { visibility: hidden; }

.kicker { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; font-size: 1rem; font-weight: 600; color: var(--coral-text); }
.kicker span { font-family: var(--serif); font-size: 1.15em; font-variant-numeric: tabular-nums; opacity: .8; }
.band-light .kicker { color: var(--coral-deep); }
.copy h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.95rem, 3.1vw, 3rem); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 1.2rem; }
.band-dark .copy h2 { color: #fff; }
.lead { max-width: 33em; margin-bottom: 1.6rem; font-size: clamp(1rem, 1.22vw, 1.2rem); line-height: 1.65; }
.band-light .lead { color: var(--muted-light); }
.band-dark .lead { color: var(--on-dark); }

/* Umschalt-Gruppen (Chips, Knoten, Schritte, Zeitpunkte) */
.detail-box { margin-top: 1.1rem; }
.detail { margin: 0; font-size: .95rem; line-height: 1.6; max-width: 34em; }
.band-light .detail { color: var(--muted-light); }
.band-dark .detail { color: var(--muted-dark); }
.detail-box { display: grid; }
.detail-box > .detail { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0s; }
/* Ohne JavaScript (oder wenn das Head-Skript js entfernt hat): alle Detailtexte untereinander statt übereinander in einer Rasterzelle. */
html:not(.js) .detail-box { display: block; }
html:not(.js) .detail-box > .detail + .detail { margin-top: 1.1rem; }
.js .detail[hidden] { display: block; opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }

/* ---------- 01 Fundstücke ---------- */
.stage { position: relative; aspect-ratio: 1.12; min-height: 320px; max-width: 600px; }
.photo { position: absolute; left: 0; top: 14%; width: 66%; margin: 0; padding: 2.6% 2.6% 7% 2.6%; background: #f6efe3; border-radius: 3px; transform: rotate(-6deg); box-shadow: 0 22px 44px rgba(40, 24, 10, .28), 0 2px 0 rgba(255, 255, 255, .5) inset; transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.stage-finds { aspect-ratio: 1.3; }
.photo.book { left: 0; top: 7%; width: 92%; padding: 0; background: none; border-radius: 4px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 26px 50px rgba(40, 24, 10, .32); }
.photo.book img { aspect-ratio: 1448 / 1086; }
.paper { position: absolute; right: -2%; top: -4%; width: 34%; opacity: 0; transform: rotate(7deg) translateY(-12px); filter: drop-shadow(0 18px 22px rgba(40, 24, 10, .3)); transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .45s ease; }
.paper img { width: 100%; height: auto; }
.sticky { position: absolute; left: 30%; bottom: 0; width: 38%; display: flex; flex-direction: column; gap: 6px; padding: 14px; background: #f7e8a8; color: #4a3b14; font-size: .8rem; line-height: 1.35; transform: rotate(-4deg) translateY(16px); opacity: 0; box-shadow: 0 14px 26px rgba(40, 24, 10, .28); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.sticky .ico { color: var(--coral-deep); }
.stage[data-focus="chroniken"] .photo.book { transform: rotate(-1deg) scale(1.03); }
.stage[data-focus="quellen"] .paper { opacity: 1; transform: rotate(5deg); }
.stage[data-focus="recherchen"] .sticky { opacity: 1; transform: rotate(-4deg); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .62); color: var(--ink); font-size: .92rem; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(80, 50, 20, .1); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.chip .ico { color: var(--coral-deep); }
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .9); }
.chip.is-on { border-color: var(--coral-deep); background: #fff; }

/* ---------- 02 „Ein Mensch, drei Quellen“ (Briefing v2: docs/briefing-sektion-02-vernetzen.md) ----------
   Grundzustand = Endzustand (ohne JS, reduzierte Bewegung). JS setzt .is-armed: Alle Animationen stehen pausiert,
   ihre Zeit wird beim Scrollen gesetzt (0–3,9 s). Animiert werden nur opacity, translate/scale und stroke-dashoffset. */
.band-two .station-anchor { --sx: -50px; --sy: 30%; }
.lead-sub { color: var(--muted-dark) !important; font-size: clamp(.98rem, 1.1vw, 1.08rem); }
.band-light .lead-sub { color: var(--muted-light) !important; }

.link-stage { --draw-start: 1s; --draw-dur: 1.8s; --done: 2.75s; position: relative; aspect-ratio: 1 / .88; max-width: 640px; width: 100%; container-type: inline-size; }
.link-item { position: absolute; margin: 0; box-shadow: 0 26px 50px rgba(0, 0, 0, .42), 0 2px 6px rgba(0, 0, 0, .25); }
.link-photo { z-index: 1; left: 0; top: 3%; width: 54%; padding: 2.4% 2.4% 0; background: #f4ecdf; border-radius: 3px; rotate: -2.5deg; }
.link-photo-img { position: relative; display: block; }
.link-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.18) contrast(1.04); }
.link-photo figcaption { padding: .55em .2em .7em; font-family: var(--serif); font-style: italic; font-size: clamp(.75rem, 2.3cqi, .88rem); color: #5b4c38; }

.link-paper { padding: 14px 16px 13px; color: #33281b; background: linear-gradient(170deg, #f5ecda, #e9dbc0); border-radius: 2px; }
.link-paper p { margin: 0; }
.link-news { z-index: 2; left: 60%; top: 0; width: 39%; rotate: 3deg; clip-path: polygon(0 0, 100% 0, 100% 97%, 92% 100%, 81% 97.5%, 68% 100%, 55% 97%, 41% 99.5%, 28% 97%, 14% 100%, 0 97.5%); padding-bottom: 20px; }
.news-mast { font-family: var(--serif); font-weight: 700; font-size: clamp(1rem, 3.3cqi, 1.3rem); letter-spacing: .01em; text-align: center; white-space: nowrap; padding-bottom: 5px; border-bottom: 3px double #6d5b41; }
.news-date { margin-top: 5px !important; font-size: .68rem; letter-spacing: .06em; text-align: center; color: #6d5b41; }
.news-head { margin-top: 10px !important; font-family: var(--serif); font-weight: 700; font-size: clamp(.88rem, 2.7cqi, 1.02rem); line-height: 1.2; }
.news-text { margin-top: 6px !important; font-family: var(--serif); font-size: clamp(.8rem, 2.35cqi, .9rem); line-height: 1.5; hyphens: auto; }
.link-list { z-index: 3; left: 55%; top: 60%; width: 42%; rotate: -1.5deg; padding: 14px 18px 13px; background: linear-gradient(170deg, #f7f0e1, #ece0c8); outline: 1px solid rgba(109, 91, 65, .35); outline-offset: -7px; }
.list-head { font-family: var(--serif); font-weight: 700; font-size: clamp(.88rem, 2.7cqi, 1.02rem); }
.list-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #6d5b41; }
.link-list ul { list-style: none; margin: 8px 0 0; padding: 0; font-family: var(--serif); font-style: italic; font-size: clamp(.82rem, 2.5cqi, .95rem); line-height: 1.7; }
.link-src { margin-top: 10px !important; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a7253; }

/* Fundstellen: gestrichelt hell = KI-Vorschlag, gestrichelt Koralle bzw. markiert = geprüft. Der Faden berührt jede Fundstelle nur am Rand. */
[data-pin] { position: relative; }
.link-pin { position: absolute; left: var(--px); top: var(--py); width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.link-stage mark { white-space: nowrap; padding: 0 .1em; color: inherit; background: none; border-radius: 3px; }
[data-pin]::before, [data-pin]::after { content: ""; position: absolute; pointer-events: none; }
.link-pin::before, .link-pin::after { inset: 0; border-radius: 50%; }
mark[data-pin]::before, mark[data-pin]::after { inset: -3px -5px; border-radius: 6px; }
[data-pin]::before { border: 1.5px dashed rgba(60, 50, 35, .7); opacity: 0; }
.link-pin::before { border-color: rgba(255, 255, 255, .9); }
[data-pin]::after { opacity: 1; }
.link-pin::after { border: 2px dashed var(--coral); }
mark[data-pin]::after { z-index: -1; background: rgba(240, 105, 76, .26); box-shadow: inset 0 -2px 0 var(--coral); }

/* Faden (SVG über den Fundstücken) */
.link-threads { position: absolute; z-index: 4; left: 0; top: 0; overflow: visible; pointer-events: none; will-change: transform; } /* eigene Ebene: Fotos darunter werden beim Zeichnen nicht mitgemalt */
.link-threads path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Spur und Faden nutzen exakt die Klassen der Zeitspur (tl-track, tl-halo, tl-glow, tl-core, tl-spark, tl-head). Jeder Abschnitt ist eine Gruppe,
   deren stroke-dashoffset (vererbt, pathLength 1) gezeichnet wird. */
.link-seg { stroke-dasharray: 1; stroke-dashoffset: 0; }
.link-head { opacity: 0; }

/* Ergebnis-Etikett */
.link-card { position: absolute; z-index: 5; left: 1%; top: 67%; width: 42%; display: grid; }
.link-card-face { grid-area: 1 / 1; padding: 13px 16px 14px; border-radius: 14px; background: rgba(8, 28, 26, .94); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.link-card-face p { margin: 0; }
.link-card-guess { border: 1.5px dashed rgba(179, 195, 190, .7); opacity: 0; visibility: hidden; }
.link-card-done { border: 1.5px solid var(--coral); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 4px rgba(240, 105, 76, .12); }
.link-card-tag { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.link-card-done .link-card-tag { color: var(--coral-text); }
.link-card-tag .ico { width: 1.15em; height: 1.15em; stroke-width: 2.4; }
.link-card-name { margin-top: 4px !important; font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 4cqi, 1.5rem); line-height: 1.2; color: #fff; }
.link-card-meta { margin-top: 3px !important; font-size: clamp(.82rem, 2.6cqi, .92rem); line-height: 1.45; color: var(--on-dark); }
.link-card-count { margin-top: 2px !important; font-size: .84rem; color: var(--muted-dark); }

/* Ablauf: im Zustand .is-armed stehen alle Animationen pausiert; script.js setzt ihre Zeit passend zur Scrollposition. */
.link-stage.is-armed .link-item { animation: link-in 1s cubic-bezier(.2, .7, .2, 1) both paused; }
.link-stage.is-armed .link-news { animation-delay: .14s; }
.link-stage.is-armed .link-list { animation-delay: .28s; }
.link-stage.is-armed [data-pin]::before { animation: link-guess calc(var(--tc, 2.6s) - var(--ta, .9s) + .35s) ease var(--ta, .9s) both paused; }
.link-stage.is-armed [data-pin]::after { animation: link-pinned .55s cubic-bezier(.2, .7, .2, 1) var(--tc, 2.6s) both paused; }
.link-stage.is-armed .link-track { animation: link-fade .6s ease .7s both paused; }
.link-stage.is-armed .link-seg { animation: link-draw var(--d, .5s) linear var(--s, 1.6s) both paused; }
.link-stage.is-armed .link-card { animation: link-in .8s cubic-bezier(.2, .7, .2, 1) 1.25s both paused; }
.link-stage.is-armed .link-card-guess { animation: link-out .2s linear calc(var(--done) - .2s) both paused; opacity: 1; visibility: visible; }
.link-stage.is-armed .link-card-done { animation: link-done .35s cubic-bezier(.2, .7, .2, 1) var(--done) both paused; }
.link-stage.is-measuring *, .link-stage.is-measuring *::before, .link-stage.is-measuring *::after { animation: none !important; }

@keyframes link-in { from { opacity: 0; translate: 0 26px; } }
@keyframes link-guess { 0% { opacity: 0; scale: .4; } 14% { opacity: 1; scale: 1; } 86% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.15; } }
@keyframes link-pinned { from { opacity: 0; scale: 1.7; } }
@keyframes link-fade { from { opacity: 0; } }
@keyframes link-draw { from { stroke-dashoffset: 1; } }
@keyframes link-out { to { opacity: 0; } }
@keyframes link-done { from { opacity: 0; scale: .96; } }

@media (max-width: 960px) {
  .link-stage { max-width: 680px; }
}
@media (max-width: 760px) {
  .link-stage { aspect-ratio: auto; display: flex; flex-direction: column; }
  .link-item, .link-card { position: relative; left: auto; right: auto; top: auto; }
  /* gestapelt, rechtsbündig: links bleibt eine Rinne, in der der Faden läuft */
  .link-photo { width: 88%; align-self: flex-end; }
  .link-news { width: 84%; align-self: flex-end; margin-top: 8px; rotate: 1.5deg; }
  .link-list { width: 82%; align-self: flex-end; margin: 18px 2% 0 0; }
  .link-card { width: 86%; align-self: flex-end; margin-top: 22px; }
  .news-mast { font-size: 1.1rem; }
  .news-text { font-size: .84rem; }
  .link-list ul { font-size: .9rem; }
}

/* ---------- 03 Beitrag → Redaktion → Freigabe ---------- */
.flow { max-width: 640px; justify-self: end; width: 100%; }
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 46px; list-style: none; margin: 0; padding: 0; }
.flow-steps > li { position: relative; display: flex; }
.flow-steps > li:not(:last-child)::after { content: ""; position: absolute; right: -36px; top: 50%; width: 26px; height: 26px; margin-top: -13px; background: var(--coral-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .28; translate: 0 0; transition: opacity .45s ease, translate .45s cubic-bezier(.2, .7, .2, 1); }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 16px 10px; border: 1.5px solid transparent; border-radius: 18px; background: rgba(255, 255, 255, .6); color: var(--ink); text-align: center; font-size: .92rem; line-height: 1.25; cursor: pointer; box-shadow: 0 12px 28px rgba(80, 50, 20, .12); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.step .ico { width: 2.2rem; height: 2.2rem; color: var(--coral-deep); stroke-width: 1.4; }
.step small { font-size: .78rem; color: var(--muted-light); }
.step:hover { transform: translateY(-3px); }
.step.is-on { border-color: var(--coral-deep); background: #fff; }
/* Karten unter den Schritten: Papier wie in Abschnitt 02, Inhalt wechselt mit dem Schritt */
.flow-box { margin-top: 18px; }
.flow-card { padding: 20px 22px 22px; color: var(--ink) !important; background: linear-gradient(170deg, #fbf6ec, #f1e6d2); border-radius: 3px; box-shadow: 0 18px 36px rgba(80, 50, 20, .16), 0 1px 3px rgba(80, 50, 20, .12); }
.flow-card-title { margin: 0 0 .85rem; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.flow-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.flow-tags li { padding: 5px 12px; font-size: .9rem; background: #fff; border: 1px solid rgba(162, 56, 36, .28); border-radius: 3px; }
.flow-tags li.is-edit { color: var(--coral-deep); border-style: dashed; }
.flow-card-note { margin: .95rem 0 0; font-family: var(--serif); font-style: italic; font-size: .95rem; line-height: 1.5; color: var(--muted-light); }
.flow-checks { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.flow-checks li { position: relative; padding-left: 1.9rem; line-height: 1.45; }
.flow-checks li::before { content: "✓"; position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .78rem; font-weight: 700; color: #fff; background: var(--coral-deep); }
.flow-entry { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.flow-year { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--coral-deep); }
.flow-entry strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.flow-entry span { display: block; margin-top: .2rem; font-size: .9rem; color: var(--muted-light); }
.flow-links b { padding: 0 .25em; font-weight: 600; color: var(--ink); background: rgba(240, 105, 76, .22); border-radius: 3px; box-shadow: inset 0 -2px 0 var(--coral); }

/* ---------- 04 Geräte (freigestelltes Bild, ragt bewusst über die Spalte hinaus) ---------- */
.devices-shot { margin: 0 -30% 0 -6%; }
.devices-shot img { width: 100%; height: auto; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .5)); }
.band-four .lead-sub { margin-top: -.4rem; }

/* Leitgedanken */
/* ---------- 05 Grundlagen ---------- */
.band-five .station-anchor { --sx: -50px; --sy: 14%; }
.basics { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.basics-head h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.04; letter-spacing: -.02em; }
/* Datenbank mit Länderkennzeichen DE: einziges lautes Element des Abschnitts. Scheiben stapeln sich einmal, dann wird das Kennzeichen aufgesetzt. */
.db-de { width: clamp(190px, 17vw, 240px); margin: .6rem 0 0; }
.db-de svg { display: block; width: 100%; height: auto; overflow: visible; }
.db-disc path, .db-disc ellipse { fill: #f8f0e3; stroke: var(--coral-deep); stroke-width: 2.6; stroke-linejoin: round; }
.db-disc circle { fill: var(--coral); }
.db-plate ellipse { fill: #fffaf2; stroke: #1d2b28; stroke-width: 3; }
.db-plate text { font: 700 23px/1 var(--sans); letter-spacing: .06em; fill: #1d2b28; }
.db-de figcaption { margin-top: .5rem; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--muted-light); }
.js .band-five .db-disc, .js .band-five .db-plate { opacity: 0; transition: opacity .35s ease, translate .5s cubic-bezier(.2, .8, .25, 1), scale .45s cubic-bezier(.3, 1.5, .5, 1); transform-box: fill-box; transform-origin: center; }
.js .band-five .db-disc { translate: 0 -22px; }
.js .band-five .db-plate { scale: 1.5; }
.js .band-five.is-in .db-disc, .js .band-five.is-in .db-plate { opacity: 1; translate: 0 0; scale: 1; }
.js .band-five.is-in .db-disc-3 { transition-delay: .35s; }
.js .band-five.is-in .db-disc-2 { transition-delay: .5s; }
.js .band-five.is-in .db-disc-1 { transition-delay: .65s; }
.js .band-five.is-in .db-plate { transition-delay: 1s; }

/* Fortsetzung folgt: kommende Stationen auf der gepunkteten Vorlauf-Spur, noch nicht entzündet */
.next-up { margin-top: clamp(64px, 7vw, 104px); }
.next-up h3 { margin: 0 0 1.6rem; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--ink); }
.next-up ul { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.next-up ul::before { content: ""; position: absolute; left: 0; right: -6vw; top: 10px; height: 2px; background: repeating-linear-gradient(90deg, rgba(162, 56, 36, .45) 0 2px, transparent 2px 11px); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.next-up li { position: relative; display: grid; gap: .35rem; padding-top: 38px; }
.next-ring { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(162, 56, 36, .55); background: var(--cream); box-shadow: 0 0 0 6px rgba(240, 105, 76, .1); }
.next-up strong { font-family: var(--serif); font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink); }
.next-up li > span:last-child { max-width: 26em; line-height: 1.6; color: var(--muted-light); }

/* Kontakt: Ablauf */
.contact-steps-title { margin: 2rem 0 .9rem; font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.contact-steps { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; counter-reset: step; max-width: 34em; }
.contact-steps li { position: relative; padding-left: 2.6rem; line-height: 1.55; color: var(--muted-dark); counter-increment: step; }
.contact-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px solid rgba(240, 105, 76, .7); font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--coral-text); }
.contact-steps strong { color: #fff; }

/* „by PK.Next“ (Marke neben dem Logo, wie in der TSV-App) */
.powered { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 10px; border-left: 1px solid rgba(255, 255, 255, .22); color: #c9d6d1; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.powered img { width: 22px; height: 22px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.powered .powered-by { font-size: .7rem; letter-spacing: .02em; opacity: .85; }
.powered strong { font-size: .92rem; letter-spacing: -.01em; color: #fff; }
.powered:hover { color: #fff; }
.site-header .powered { margin-left: calc(-1 * clamp(8px, 1.4vw, 24px)); }
.powered-lg { gap: 10px; padding: 8px 18px 8px 0; border-left: 0; }
.powered-lg img { width: 30px; height: 30px; border-radius: 6px; }
.powered-lg .powered-by { font-size: .82rem; }
.powered-lg strong { font-size: 1.15rem; }
.basics-list { margin: 0; display: grid; gap: clamp(28px, 3.2vw, 44px); padding-top: .5rem; }
.basics-list div { padding-left: 1.2rem; border-left: 2px solid rgba(162, 56, 36, .4); }
.basics-list dt { margin-bottom: .4rem; font-family: var(--serif); font-weight: 700; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.25; color: var(--ink); }
.basics-list dd { margin: 0; max-width: 32em; line-height: 1.65; color: var(--muted-light); }

/* ---------- 06 Kontakt ---------- */
.band-contact { padding-block: calc(var(--sec-y) + 1.1 * var(--wave)) var(--sec-y); }
.band-contact .station-anchor { --sx: -50px; --sy: 10%; }
.contact-split { align-items: start; }
.contact-card { display: grid; gap: .25rem; margin-top: 2.2rem; padding-left: 1.2rem; border-left: 2px solid rgba(240, 105, 76, .55); font-style: normal; }
.contact-card strong { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.contact-card span { margin-bottom: .4rem; color: var(--muted-dark); }
.contact-card a { display: inline-flex; align-items: center; width: fit-content; min-height: 34px; font-size: 1.05rem; color: #fff; text-decoration: underline; text-decoration-color: rgba(240, 105, 76, .6); text-underline-offset: 5px; }
.contact-card a:hover { text-decoration-color: var(--coral); }
/* Formular als Papierbogen: gleiches Material wie die Fundstücke in Abschnitt 02 */
.contact-form { position: relative; padding: clamp(24px, 3.2vw, 44px); color: var(--ink); background: linear-gradient(170deg, #f7f0e1, #ebdec4); border-radius: 3px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .25); }
.contact-form h3 { margin: 0 0 1.4rem; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.contact-form :focus-visible { outline-color: var(--coral-deep); }
.field { display: grid; gap: 2px; margin-bottom: 20px; }
.field label { font-size: .9rem; font-weight: 600; color: #4a3b26; }
.field label span { font-weight: 400; color: #76664e; }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 8px 2px; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid rgba(74, 59, 38, .45); border-radius: 0; }
.field textarea { min-height: 128px; margin-top: 6px; padding: 10px 12px; resize: vertical; line-height: 1.55; background: rgba(255, 255, 255, .4); border: 1.5px solid rgba(74, 59, 38, .32); border-radius: 3px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #a3271a; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 24px; font-size: .9rem; line-height: 1.5; color: #4a3b26; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral-deep); }
.check a { color: var(--coral-deep); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-size: .95rem; line-height: 1.5; }
.form-status.is-error { color: #8d2414; }
.form-status.is-error a { color: inherit; }
.contact-form.is-sent > :not(.form-status):not(h3) { display: none; }
.contact-form.is-sent .form-status { margin: 0; font-size: 1.05rem; color: #1f4f3f; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding: 34px clamp(24px, 5vw, 80px) 40px; background: #061a18; color: var(--muted-dark); font-size: .86rem; }
.site-footer p { margin: 0; flex: 1 1 320px; }
.site-footer a:not(.brand) { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:not(.brand):hover { color: #fff; }
.copy-actions { margin: .4rem 0 0; }
.demo-note { margin: .8rem 0 0; max-width: 46ch; font-size: .86rem; line-height: 1.45; color: var(--muted-dark); }

/* ---------- Timeline (SVG-Overlay) ---------- */
/* Ersatzlinie nur, wenn der Browser gar kein JavaScript ausführt (scripting: none). Bei langsamem Laden oder einem Skriptfehler entfernt das Head-Skript die Klasse js; dann darf keine zweite Linie neben der Zeitspur erscheinen. */
@media (scripting: none) {
  .page::before { content: ""; position: absolute; z-index: 3; top: 760px; bottom: 120px; left: 18px; width: 2px; background: linear-gradient(var(--coral), rgba(240, 105, 76, .35)); pointer-events: none; }
}
.tl-track { fill: none; stroke: rgba(240, 105, 76, .34); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.tl-halo { fill: none; stroke: rgba(240, 105, 76, .16); stroke-width: 16; stroke-linecap: round; }
.tl-glow { fill: none; stroke: rgba(240, 105, 76, .38); stroke-width: 7; stroke-linecap: round; }
.tl-core { fill: none; stroke: #f0694c; stroke-width: 3; stroke-linecap: round; }
.tl-spark { fill: none; stroke: #ffe6dc; stroke-width: 1.1; stroke-linecap: round; opacity: .9; }
.tl-station .st-halo { fill: rgba(240, 105, 76, .22); transition: r .5s ease, opacity .5s ease; }
.tl-station .st-ring { fill: rgba(240, 105, 76, .28); stroke: rgba(240, 105, 76, .75); stroke-width: 3; transition: fill .4s ease, stroke .4s ease; }
.tl-station { opacity: .6; transition: opacity .5s ease; }
.tl-station.is-lit { opacity: 1; }
.tl-station.is-lit .st-ring { fill: #fff3ec; stroke: #f0694c; stroke-width: 4; }
.br-halo { fill: none; stroke: rgba(240, 105, 76, .16); stroke-width: 10; stroke-linecap: round; }
.br-glow { fill: none; stroke: rgba(240, 105, 76, .38); stroke-width: 4.5; stroke-linecap: round; transition: stroke .3s ease; }
.br-core { fill: none; stroke: #f0694c; stroke-width: 2.2; stroke-linecap: round; transition: stroke .3s ease, stroke-width .3s ease; }
.br-spark { fill: none; stroke: #ffe6dc; stroke-width: .9; stroke-linecap: round; opacity: .9; }
.br.is-on .br-core { stroke: #ff8f73; stroke-width: 3; }
.br.is-on .br-glow { stroke: rgba(255, 143, 115, .62); }
.tl-station.tl-end .st-halo { fill: rgba(240, 105, 76, .3); }
.tl-station.tl-end.is-lit .st-ring { fill: #f0694c; stroke: #fff3ec; stroke-width: 4; }
/* Leuchtpunkt ohne Filter (Filter wurden bei jedem Bild neu gerechnet): drei gestaffelte Kreise */
.tl-head-dot { fill: #fff; }
.tl-head-glow { fill: rgba(240, 105, 76, .55); }
.tl-head-halo { fill: rgba(240, 105, 76, .2); }
@media (prefers-reduced-motion: no-preference) {
  .tl-station.is-lit .st-halo { animation: halo 1.8s ease-out 1; transform-box: fill-box; transform-origin: center; }
}
@keyframes halo { 50% { transform: scale(1.35); opacity: .55; } }

/* ---------- Reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .copy > * { opacity: 0; transition: opacity .9s ease; }
.js .band.is-in .copy > * { opacity: 1; transform: none; }
.js .flow-steps > li { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .flow.is-in .flow-steps > li { opacity: 1; transform: none; }
.js .flow.is-in .flow-steps > li:nth-child(2) { transition-delay: .12s; }
.js .flow.is-in .flow-steps > li:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .copy > *, .js .flow-steps > li { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-layer { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-photo { background-image: url("assets/img/hero-1200.webp"); }
  .primary-nav { gap: 18px; }
}
@media (min-width: 961px) {
  /* Abschnitte 01–04 gleich hoch, Inhalt mittig: gleicher Rhythmus statt viel Luft hier, Enge dort */
  .band-one, .band-two, .band-three, .band-four { display: grid; align-content: center; min-height: var(--band-h); }
  .band-two, .band-four { min-height: calc(var(--band-h) + 2.2 * var(--wave)); }
}
@media (max-width: 960px) {
  .devices-shot { margin: 0 -8% 0 -2%; }
  .primary-nav, .header-cta { display: none; }
  .menu { display: block; }
  .grid-split, .band-three .grid-split, .basics { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .flow { justify-self: start; }
  .stage { margin-bottom: 2.2rem; }
}
@media (max-width: 360px) {
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 760px) {
  .tl-halo { stroke-width: 9; } .tl-glow { stroke-width: 4.5; } .tl-core { stroke-width: 2.4; }
  :root { --header-h: 64px; }
  .br-d { display: none; }
  .site-header { padding: 0 16px; }
  .wrap, .hero-inner { width: auto; margin-left: 54px; margin-right: 22px; }
  .hero { min-height: max(800px, 100svh); }
  .hero { padding-bottom: calc(300px + (100vw - 48px) / 1.36 + 24px); }
  .hero-inner { width: auto; margin-left: 24px; margin-right: 24px; padding-top: 108px; }
  .hero-frames { left: 24px; right: 24px; bottom: 300px; width: auto; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 28, 26, .76) 0, rgba(7, 28, 26, .56) 52%, rgba(7, 28, 26, .08) 78%, var(--green-900) 100%); }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 1rem; font-size: .86rem; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .marker { top: auto; }
  .marker-future { left: 84%; bottom: 215px; }
  .marker-today { left: 60%; bottom: 160px; }
  .marker-past { left: 36%; bottom: 105px; }
  .marker-label { font-size: 1.05rem; }
  .marker-future .marker-label { transform: translate(-70%, 20px); }
  .marker-past .marker-label { transform: translate(-60%, 20px); }
  .scroll-hint { display: none; }
  .hero-photo { background-image: url("assets/img/hero-800.webp"); background-position: 50% 0; }
  :root { --sec-y: 76px; }
  .band-one { --sx: -34px; } .band-two, .band-three, .band-four { --sx: -34px; }
  .band-one .station-anchor, .band-two .station-anchor, .band-three .station-anchor, .band-four .station-anchor { --sx: -34px; --sy: 40px; }
  .band-two .station-anchor { --sy: 40px; }
  .stage { margin-bottom: 1.5rem; min-height: 0; aspect-ratio: 1 / .95; }
  .stage-finds { aspect-ratio: 1.3; }
  .flow-steps { grid-template-columns: 1fr; gap: 40px; }
  .flow-steps > li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -33px; margin: 0 0 0 -13px; rotate: 90deg; }
  .step { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 74px; padding: 14px 18px; gap: 14px; }
  .step .ico { width: 1.9rem; height: 1.9rem; }
  .step > strong, .step > small { display: inline; }
  .next-up ul { grid-template-columns: 1fr; gap: 28px; }
  .next-up ul::before { left: 10px; right: auto; top: 4px; bottom: -20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(162, 56, 36, .45) 0 2px, transparent 2px 11px); -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
  .next-up li { padding: 0 0 0 42px; }
  .site-header .powered .powered-by { display: none; }
  .devices-shot { margin: 0 -10% 0 -6%; }
  .basics { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .band-five .station-anchor, .band-contact .station-anchor { --sx: -34px; --sy: 40px; }
  .site-footer { padding-left: 54px; }
  .page::before { left: 16px; }
}
@media (max-width: 420px) {
  .chip { flex: 1 1 100%; }
  .site-header .powered strong { display: none; }
  .site-header .powered { padding-right: 4px; }
}

/* ---------- Hochwertigeres Auswahlverhalten (Chips, Knoten, Schritte) ---------- */
.chip, .step { transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, background .3s ease, box-shadow .4s ease; }
.chip:active, .step:active { transform: scale(.97); transition-duration: .1s; }
.chip .ico, .step .ico { transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), color .3s ease; }
.chip.is-on { box-shadow: 0 12px 26px rgba(162, 56, 36, .2); transform: translateY(-2px); }
.chip.is-on .ico, .step.is-on .ico { transform: scale(1.18); }
.step { position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--coral-deep); transform: scaleX(0); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.step.is-on { box-shadow: 0 20px 38px rgba(162, 56, 36, .22); transform: translateY(-4px); }
.step.is-on::after { transform: scaleX(1); }
.flow[data-focus="pruefen"] .flow-steps > li:nth-child(1)::after, .flow[data-focus="freigeben"] .flow-steps > li:nth-child(-n+2)::after { opacity: 1; translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .chip, .step, .step::after, .detail-box > .detail { transition: none !important; }
  .chip.is-on, .step.is-on { transform: none; }
}

/* Ladeanzeige (UX-LOAD): Logo-Skyline statisch, Netz links→rechts gezeichnet. Nur sichtbar, solange die Seite lädt (html.js.is-loading), erscheint nach 350 ms. Ohne JavaScript nie sichtbar. */
.page-loader { display: none; }
.js.is-loading .page-loader { display: grid; position: fixed; inset: 0; z-index: 1000; place-items: center; background: var(--green-950); color: var(--on-dark); animation: cl-appear 0.25s ease-out 350ms both; }
.chronik-loader { --loader-skyline: var(--cream); --loader-line: var(--coral); --loader-bg: var(--green-950); --loader-cycle: 3.6s; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.chronik-loader__art { display: block; width: min(300px, 68vw); height: auto; overflow: visible; }
.chronik-loader__skyline { fill: var(--loader-skyline); }
.chronik-loader__windows { fill: var(--loader-bg); }
.chronik-loader__line { fill: none; stroke: var(--loader-line); stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.chronik-loader__node { fill: var(--loader-bg); stroke: var(--loader-line); stroke-width: 8.5; transform-box: fill-box; transform-origin: center; }
.chronik-loader__text { margin: 0; font-family: var(--sans); font-size: 1rem; }
@keyframes cl-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .chronik-loader__line--1 { animation: cl-l1 var(--loader-cycle) ease-in-out infinite; }
  .chronik-loader__line--2 { animation: cl-l2 var(--loader-cycle) ease-in-out infinite; }
  .chronik-loader__node { animation-duration: var(--loader-cycle); animation-timing-function: ease-out; animation-iteration-count: infinite; }
  .chronik-loader__node--1 { animation-name: cl-n1; }
  .chronik-loader__node--2 { animation-name: cl-n2; }
  .chronik-loader__node--3 { animation-name: cl-n3; }
  .chronik-loader__node--4 { animation-name: cl-n4; }
  .chronik-loader__node--5 { animation-name: cl-n5; }
  @keyframes cl-l1 { 0% { stroke-dashoffset: 1.02; opacity: 1; } 38%, 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes cl-l2 { 0%, 50% { stroke-dashoffset: 1.02; opacity: 1; } 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes cl-n1 { 0% { opacity: 1; transform: scale(1); } 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes cl-n2 { 0%, 20% { opacity: 0; transform: scale(0.5); } 26%, 86% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
  @keyframes cl-n3 { 0%, 40% { opacity: 0; transform: scale(0.5); } 46%, 86% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
  @keyframes cl-n4 { 0%, 60% { opacity: 0; transform: scale(0.5); } 66%, 86% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
  @keyframes cl-n5 { 0%, 82% { opacity: 0; transform: scale(0.5); } 88%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
}
