.timeline-prototype {
  --timeline-card-width: 232px;
  --timeline-gap: 48px;
  position: relative;
  overflow: hidden;
  padding: 72px 0 78px;
  border-block: 1px solid var(--line-dark);
}

.timeline-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .72fr);
  align-items: end;
  gap: clamp(40px, 8vw, 128px);
  width: min(1400px, calc(100% - 96px));
  margin: 0 auto;
  padding-bottom: 54px;
}

.timeline-kicker,
.timeline-era,
.timeline-story-era {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.timeline-kicker {
  margin-bottom: 14px;
  color: var(--amber);
  text-shadow: var(--glow-soft);
}

.timeline-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 5.8vw, 84px);
  line-height: .98;
  letter-spacing: -.035em;
  hyphens: none;
  overflow-wrap: anywhere;
}

.timeline-no-break {
  white-space: normal;
}

.timeline-intro {
  max-width: 34ch;
  margin: 0 0 5px;
  color: var(--fg-dark-2);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.5;
}

.timeline-intro p {
  margin: 0;
}

.timeline-intro p + p {
  margin-top: 16px;
}

.timeline-stage {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding-top: 34px;
}

.timeline-story {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  width: min(980px, calc(100% - 48px));
  max-height: none;
  margin: 0 auto;
  overflow: hidden;
  border: 0 solid var(--line-light);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 26px 72px rgba(0, 0, 0, .38);
  opacity: 1;
  scroll-margin-top: var(--structure-anchor-offset, 100px);
}

.timeline-story[hidden],
.timeline-photo-controls[hidden],
.timeline-photo-controls button[hidden],
.timeline-story-navigation button[hidden],
.timeline-story-slide[hidden] {
  display: none;
}

.timeline-prototype.is-reading .timeline-story {
  max-height: none;
  margin-bottom: 54px;
  border-width: 1px;
  opacity: 1;
  transform: translateY(0);
}

.timeline-story-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.timeline-story-media {
  order: 0;
}

.timeline-photo-controls {
  order: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 0 32px 32px;
}

.timeline-story[data-has-slides] .timeline-story-media {
  margin-bottom: 4px;
}

.timeline-photo-controls button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border: 0;
  border-radius: 4px;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.timeline-photo-controls button:hover {
  background: rgba(12, 90, 43, .07);
}

.timeline-photo-controls svg {
  display: block;
  width: 16px;
  height: 16px;
}

.timeline-photo-auto {
  margin-right: 8px;
}

.timeline-photo-status {
  font-size: 13px;
  color: var(--black);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
}

.timeline-story:focus-visible,
.timeline-story :focus-visible {
  outline: 3px solid var(--amber-print);
  outline-offset: 3px;
}

.timeline-story:focus-visible {
  outline-offset: -4px;
}

.timeline-card:focus-visible {
  outline-offset: -3px;
}

.timeline-card {
  scroll-margin-top: var(--structure-anchor-offset, 100px);
  scroll-margin-bottom: 16px;
}

.timeline-story button {
  scroll-margin-top: var(--structure-anchor-offset, 100px);
  scroll-margin-bottom: 16px;
}

.timeline-story-media {
  position: relative;
  width: calc(100% - 32px);
  /* Historische Bildquellen dürfen ihr 16:10-Format behalten. */
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 32px 0 32px 32px;
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--line-light);
}

/* Neuere Bildfolgen bleiben im klassischen Videoformat. */
.timeline-story[data-story="bbc"] .timeline-story-media,
.timeline-story[data-story="arabella-sylt"] .timeline-story-media,
.timeline-story[data-story="briefbombe"] .timeline-story-media,
.timeline-story[data-story="minidv"] .timeline-story-media,
.timeline-story[data-story="iphone"] .timeline-story-media,
.timeline-story[data-story="chatgpt"] .timeline-story-media,
.timeline-story[data-story="seminare"] .timeline-story-media {
  aspect-ratio: 16 / 9;
}

.timeline-story-media picture,
.timeline-story-media img,
.timeline-story-slideshow,
.timeline-story-slide {
  display: block;
  width: 100%;
  height: 100%;
}

.timeline-story-media img {
  object-fit: contain;
}

.timeline-story-slideshow {
  position: relative;
  overflow: hidden;
}

.timeline-story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .72s ease;
}

.timeline-story-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.timeline-story-slide-count {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 9px;
  padding: 4px 8px;
  background: rgba(17, 18, 20, .78);
  color: var(--white);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.timeline-story-slide.is-contain {
  background: var(--white);
}

.timeline-story-slide.is-contain img {
  box-sizing: border-box;
  object-fit: contain;
  padding: 0;
}

.timeline-story[data-story="award"] .timeline-story-media {
  background: var(--white);
}

.timeline-story[data-story="award"] .timeline-story-media img {
  box-sizing: border-box;
  object-fit: contain;
  padding: clamp(20px, 4vw, 46px);
}

.timeline-story-copy {
  min-height: 0;
  padding: 32px clamp(30px, 3.6vw, 46px) 36px 42px;
}

.timeline-story-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.timeline-story .timeline-story-era {
  margin-bottom: 15px;
  color: var(--amber-print);
}

.timeline-story h3 {
  margin: 0 0 20px;
  color: var(--black);
  font-size: clamp(31px, 3.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.timeline-story-body {
  overflow: visible;
}

.timeline-story-body p {
  margin: 0 0 12px;
  color: var(--fg-light-2);
  font-size: 15.5px;
  line-height: 1.58;
}

.timeline-story-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.timeline-story-navigation button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--black);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.timeline-story-navigation .timeline-story-next {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}

.timeline-story-direction {
  color: var(--amber-print);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.timeline-story-destination {
  font-size: 15px;
  line-height: 1.4;
}

.timeline-story-navigation button:hover .timeline-story-destination {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .timeline-story-navigation {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-story-navigation .timeline-story-next {
    grid-column: 1;
  }
}

.timeline-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.timeline-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.timeline-close:hover,
.timeline-close:focus-visible {
  color: var(--amber-print);
}

.timeline-rail-shell {
  position: relative;
}

.timeline-track {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.timeline-track:active {
  cursor: grabbing;
}

.timeline-track-inner {
  position: relative;
  display: flex;
  gap: var(--timeline-gap);
  padding: 0 max(48px, calc((100vw - 1400px) / 2));
}

.timeline-card {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--timeline-card-width);
  display: grid;
  grid-template-rows: minmax(28px, auto) auto minmax(78px, auto);
  width: var(--timeline-card-width);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.timeline-era {
  align-self: start;
  overflow: visible;
  color: var(--amber);
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.timeline-card[aria-current] .timeline-era,
.timeline-card:hover .timeline-era,
.timeline-card:focus-visible .timeline-era {
  color: var(--amber);
}

.timeline-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 239, .18);
  background: var(--surface-1);
}

.timeline-thumb picture,
.timeline-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.timeline-thumb img {
  object-fit: cover;
  filter: grayscale(1) brightness(.76) contrast(1.02);
  transform: scale(1);
  transition: filter .3s ease, transform .24s ease;
  will-change: transform;
}

.timeline-card:hover .timeline-thumb img,
.timeline-card:focus-visible .timeline-thumb img,
.timeline-card[aria-current] .timeline-thumb img {
  filter: grayscale(1) brightness(1) contrast(1.04);
  transform: translateX(var(--parallax-soft-x, 0)) scale(1.055);
}

.timeline-card[data-story="chamaeleon"] .timeline-thumb {
  background: var(--white);
}

.timeline-card[data-story="chamaeleon"] .timeline-thumb img,
.timeline-card[data-story="chamaeleon"]:hover .timeline-thumb img,
.timeline-card[data-story="chamaeleon"]:focus-visible .timeline-thumb img,
.timeline-card[data-story="chamaeleon"][aria-current] .timeline-thumb img {
  object-fit: contain;
  filter: grayscale(1) brightness(1) contrast(1.02);
  transform: none;
}

.timeline-thumb-logo {
  background: var(--white);
}

.timeline-thumb-logo img {
  box-sizing: border-box;
  object-fit: contain;
  padding: 16px;
  filter: grayscale(1) brightness(.82);
  transform: none;
}

.timeline-card:hover .timeline-thumb-logo img,
.timeline-card:focus-visible .timeline-thumb-logo img,
.timeline-card[aria-current] .timeline-thumb-logo img {
  filter: grayscale(1) brightness(1);
  transform: scale(1.025);
}

.timeline-card-copy {
  display: block;
  padding-top: 17px;
}

.timeline-card-title {
  display: block;
  min-height: 3.45em;
  margin: 0;
  overflow: visible;
  color: rgba(247, 244, 239, .68);
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.015em;
  font-family: var(--serif);
  font-weight: 600;
}

.timeline-card[aria-current] .timeline-card-title,
.timeline-card:hover .timeline-card-title,
.timeline-card:focus-visible .timeline-card-title {
  color: var(--white);
}

.timeline-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 14px;
  background:
    linear-gradient(132deg, transparent 0 63%, rgba(57, 255, 20, .12) 63.4% 65%, transparent 65.4%),
    var(--surface-1);
  color: rgba(247, 244, 239, .58);
}

.timeline-placeholder span {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timeline-placeholder strong {
  color: var(--amber);
  font-family: var(--serif);
  font-size: 22px;
  line-height: .98;
}

.timeline-story-media > .timeline-placeholder {
  padding: clamp(22px, 4vw, 42px);
}

.timeline-story-media > .timeline-placeholder strong {
  font-size: clamp(26px, 4vw, 42px);
}

.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.timeline-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(247, 244, 239, .28);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.timeline-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.timeline-arrow:hover,
.timeline-arrow:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  transform: scale(1.05);
}

.timeline-arrow:disabled {
  cursor: default;
  opacity: .28;
  transform: none;
}

.timeline-counter {
  min-width: 62px;
  color: rgba(247, 244, 239, .65);
  font-size: 11px;
  letter-spacing: .12em;
  text-align: center;
}

.timeline-static {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
}

.timeline-static details {
  border-block: 1px solid var(--line-dark);
  padding: 18px 0;
}

.timeline-static summary {
  min-height: 44px;
  font: 600 24px/1.3 var(--serif);
  cursor: pointer;
  scroll-margin-top: 240px;
}

.timeline-static p {
  overflow-wrap: anywhere;
}

.timeline-static-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 18px 0;
}

.timeline-static-images img {
  width: 100%;
}

.timeline-story-body p {
  overflow-wrap: anywhere;
}

#timeline-title {
  scroll-margin-top: var(--structure-anchor-offset, 100px);
}

@media (max-width: 360px) {
  .timeline-no-break {
    white-space: normal;
  }

  .timeline-heading h2 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .timeline-prototype {
    --timeline-card-width: min(72vw, 246px);
    --timeline-gap: 30px;
    padding: 58px 0 62px;
  }

  .timeline-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    width: auto;
    padding: 0 18px 38px;
  }

  .timeline-heading h2 {
    max-width: 11ch;
    font-size: clamp(38px, 12vw, 54px);
  }

  .timeline-intro {
    max-width: 36ch;
    font-size: 17px;
  }

  .timeline-stage {
    padding-top: 28px;
  }

  .timeline-story {
    grid-template-columns: 1fr;
    width: calc(100% - 34px);
  }

  .timeline-prototype.is-reading .timeline-story {
    max-height: none;
    margin-bottom: 40px;
  }

  .timeline-story-media {
    width: calc(100% - 32px);
    height: auto;
    margin: 16px 16px 0;
    aspect-ratio: 16 / 10;
  }

  .timeline-story[data-story="bbc"] .timeline-story-media,
  .timeline-story[data-story="arabella-sylt"] .timeline-story-media,
  .timeline-story[data-story="briefbombe"] .timeline-story-media,
  .timeline-story[data-story="minidv"] .timeline-story-media,
  .timeline-story[data-story="iphone"] .timeline-story-media,
  .timeline-story[data-story="chatgpt"] .timeline-story-media,
  .timeline-story[data-story="seminare"] .timeline-story-media {
    aspect-ratio: 16 / 9;
  }

  .timeline-story-copy {
    padding: 22px 20px 26px;
  }

  .timeline-photo-controls {
    margin: 0 16px;
  }

  .timeline-story h3 {
    font-size: 31px;
  }

  .timeline-track-inner {
    padding-inline: 24px;
  }

  .timeline-card {
    grid-template-rows: minmax(28px, auto) auto minmax(74px, auto);
  }
}

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