.animation-page {
  padding-block: clamp(7rem, 13vw, 10rem) clamp(4rem, 8vw, 7rem);
}
.animation-page h1, .animation-page h2 {
  color: var(--text-dark);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
.animation-page h1 {font-size: clamp(2.8rem, 5.7vw, 5.2rem); max-width: 21ch}
.animation-page h2 {font-size: clamp(2rem, 3.6vw, 3.1rem)}
.animation-intro {font-size: clamp(1.04rem, 2.1vw, 1.3rem); max-width: 44rem; margin-top: 1rem}
.animation-card, .animation-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.animation-card {background: #efe9df; color: var(--text-dark)}
.animation-page img, .animation-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.animation-card-copy {padding: 1.5rem clamp(1.5rem, 4vw, 3rem) 1.5rem 0}
.animation-card-copy h2 {margin: .55rem 0 1rem}
.animation-format, .animation-caption, .animation-credit-link {font-size: .85rem; font-weight: 500}
.animation-action {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: .6rem;
  margin-top: .8rem;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.animation-card:hover .animation-action, .animation-page a:hover {color: #6a4e26}
.animation-credit-link {margin-top: .5rem}
.animation-page :is(a, button, summary):focus-visible {outline: 3px solid #745a38; outline-offset: 3px}
.animation-player {margin: 0; position: relative; container-type: inline-size}
.animation-player [data-film-start] {display: block; position: relative}
.animation-play {
  position: absolute;
  inset: auto auto 1rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border-radius: 2px;
  padding: .55rem 1rem;
  color: #fff;
  background: #2a2523;
  font-weight: 600;
}
.animation-play::before {content: ""; border-block: .35em solid transparent; border-left: .55em solid currentColor}
.animation-page [hidden] {display: none}
.animation-caption {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; margin-top: .5rem}
/* The square film and poster both place the disclosure at pixel (24,24) in 1080.
   Cover the larger poster mark too, while the first decoded frame is loading. */
@container (max-width: 600px) {
  .animation-player video:not([hidden]) + .animation-caption::before {
    content: "KI-generiert";
    position: absolute;
    top: calc(2.2222cqw - .5px);
    left: calc(2.2222cqw - .5px);
    width: max(calc(26.4815cqw + 1px), 7.2em);
    height: max(calc(6.6667cqw + 1px), 1.8em);
    display: grid;
    place-items: center;
    pointer-events: none;
    background: #faf7f0;
    color: #342c25;
    border-radius: 2px;
    font: 500 clamp(12px, 3.704cqw, 16px)/1 var(--sans);
  }
  .animation-player:lang(en) video:not([hidden]) + .animation-caption::before {
    content: "AI-generated";
  }
}
.animation-caption button, .animation-player [data-film-error] a, .animation-sources a, .animation-credit-link a {text-decoration: underline; text-underline-offset: .23em}
.animation-caption button {min-height: 44px; border: 0; padding: .4rem 0; color: var(--text-dark); background: transparent; font: inherit; cursor: pointer}
.animation-reading p {margin-top: 1rem}
.animation-sources {margin-top: 2.4rem; padding-block: .5rem; border-block: 1px solid #d8cdbc}
.animation-sources summary {width: fit-content; cursor: pointer; font-weight: 600; padding-block: .65rem}
.animation-sources ul {padding-inline-start: 1.3rem}
.animation-sources p {margin: .65rem 0; max-width: 70ch}
@media (max-width: 720px) {
  .animation-page {padding-inline: 1.1rem}
  .animation-card, .animation-detail {grid-template-columns: 1fr; gap: 1.25rem}
  .animation-card-copy {padding: 0 1.3rem 1rem}
  .animation-detail {margin-top: 1.4rem}
}
