/* AITA Solution | Schaukästen der Fälle, Video als Beitrag und Vorschaufilm
 * (docs/website/unterseiten-inszenierung.md, Abschnitte 5 bis 7 und 13). Fallkarten und Projektwand stehen in projekte.css. Die Bewegung kommt aus acts.css.
 * Maße in den Szenen stehen in em: Die Schriftgröße der Szene folgt der Breite des Schaukastens (cqw). */

/* E9 Schaukasten */

.aita-exhibit {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background-color: var(--color-surface-sunken);
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-line-subtle) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-line-subtle) 60%, transparent) 1px, transparent 1px);
  background-size: var(--plan-module) var(--plan-module);
}

.aita-exhibit__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.aita-exhibit__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 61, 0.55), rgba(0, 26, 61, 0.82));
}

.aita-exhibit__bgimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aita-exhibit__scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 1.6em 1.6em 2.8em;
  font-size: clamp(0.6875rem, 3cqw, 1rem);
  line-height: 1.3;
  color: var(--color-on-deep);
}

.aita-exhibit__tag {
  z-index: 2;
}

.aita-exhibit__panel {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 0.8em 0.9em;
  background: var(--color-surface);
  border-radius: 0.55em;
  box-shadow: 0 0.8em 2.2em rgba(0, 10, 30, 0.4);
}

.aita-exhibit__title {
  font-family: var(--font-mono);
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.aita-exhibit .aita-status {
  min-height: 1.9em;
  padding: 0 0.5em;
  font-size: 0.76em;
}

.aita-exhibit__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}

.aita-exhibit__chips--stack {
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}

.aita-exhibit__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 2em;
  padding: 0 0.8em;
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-on-deep);
  background: rgba(0, 26, 61, 0.86);
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
}

.aita-exhibit__ok,
.aita-exhibit__nr {
  font-family: var(--font-mono);
  color: var(--color-signal);
}

.aita-exhibit__line {
  display: block;
  width: 100%;
  height: 0.5em;
  background: var(--color-line-subtle);
  border-radius: var(--radius-full);
}

.aita-exhibit__line--mid {
  width: 82%;
}

.aita-exhibit__line--short {
  width: 56%;
}

/* Tafel mit Stufen (CRM) */

.aita-xboard {
  width: 27em;
}

.aita-xboard__cols {
  --gap: 0.45em;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.aita-xboard__col {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  min-height: 8.6em;
  padding: 0.4em;
  background: var(--color-surface-sunken);
  border-radius: 0.35em;
}

.aita-xboard__name {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--color-brand);
}

.aita-xboard__card {
  height: 1.7em;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line-subtle);
  border-radius: 0.25em;
}

.aita-xboard__hop {
  display: block;
  transform: translateX(calc((1 - var(--e)) * (-100% - var(--gap) - 0.8em)));
}

.aita-xboard__mover {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  padding: 0.4em 0.45em;
  background: var(--color-surface);
  border: var(--border-control) solid var(--color-signal);
  border-radius: 0.25em;
  box-shadow: 0 0.3em 0.9em rgba(0, 26, 61, 0.22);
}

.aita-xboard__movertext {
  font-size: 0.74em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.aita-xboard__moversub {
  font-size: 0.64em;
  line-height: 1.2;
  color: var(--color-text-muted);
}

/* Posteingang */

.aita-exhibit__scene--inbox,
.aita-exhibit__scene--browser {
  align-items: flex-start;
  justify-content: flex-start;
}

.aita-xinbox {
  width: 22.5em;
  gap: 0;
}

.aita-xinbox__row {
  display: grid;
  grid-template-columns: 5.6em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5em;
  min-height: 2.5em;
  border-top: var(--border-hairline) solid var(--color-line-subtle);
  color: var(--color-text);
}

.aita-xinbox__from {
  font-size: 0.72em;
  color: var(--color-text-muted);
}

.aita-xinbox__subject {
  overflow: hidden;
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.aita-xinbox__draft {
  position: absolute;
  right: 1.4em;
  bottom: 3.5em;
  width: 14.5em;
  border-top: var(--border-signal) solid var(--color-signal);
}

/* Zwei Systeme mit Leitungen */

.aita-xsync,
.aita-xmove {
  display: grid;
  grid-template-columns: 9.6em minmax(0, 1fr) 9.6em;
  align-items: start;
  width: 27em;
}

.aita-xsync__box {
  gap: 0.3em;
}

.aita-xsync__row,
.aita-xsync__lane {
  display: flex;
  align-items: center;
  height: 1.9em;
}

.aita-xsync__row {
  /* Die Zeilenhöhe steht in em der kleineren Schrift: 1.9em / 0.8 */
  height: 2.375em;
  padding: 0 0.5em;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-sunken);
  border-radius: 0.3em;
}

.aita-xsync__row--new {
  background: var(--color-brand-subtle);
  color: var(--color-brand);
}

.aita-xsync__wires {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding-block: 0.8em;
}

.aita-xsync__spacer {
  visibility: hidden;
}

.aita-xsync__wire,
.aita-xmove__shaft,
.aita-xfunnel__shaft {
  display: block;
  width: 100%;
  height: 0.16em;
  background: var(--color-signal);
}

/* Freigabe: Karte wird freigegeben und fliegt weg */

.aita-xswipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
}

.aita-xswipe__stack {
  position: relative;
  width: 13.5em;
}

.aita-xswipe__card {
  position: relative;
  gap: 0.25em;
  padding: 0.55em;
}

.aita-xswipe__fly {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--e));
  transform: translateX(calc(var(--e) * 115%)) rotate(calc(var(--e) * 12deg));
}

.aita-xswipe__fly .aita-xswipe__card {
  height: 100%;
}

.aita-xswipe__thumb {
  position: relative;
  display: block;
  height: 5.6em;
  background: linear-gradient(135deg, var(--color-brand-subtle), var(--color-line-subtle));
  border-radius: 0.3em;
}

.aita-xswipe__thumb--video::after,
.aita-xbrand__item--tafel .aita-xbrand__ink::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.6em 0 0 -0.4em;
  border-style: solid;
  border-width: 0.6em 0 0.6em 1em;
  border-color: transparent transparent transparent var(--color-brand);
}

.aita-xswipe__name {
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.aita-xswipe__sub {
  font-size: 0.7em;
  color: var(--color-text-muted);
}

.aita-xswipe__stamp {
  position: absolute;
  right: 0.9em;
  top: 0.9em;
  padding: 0.25em 0.6em;
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-positive);
  background: var(--color-positive-subtle);
  border: var(--border-control) solid var(--color-positive);
  border-radius: 0.3em;
}

.aita-xswipe__actions {
  display: flex;
  gap: 0.5em;
}

.aita-xswipe__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.3em;
  padding: 0 1em;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--color-on-deep);
  border: var(--border-control) solid rgba(255, 255, 255, 0.5);
  border-radius: 0.3em;
}

.aita-xswipe__btn--yes {
  color: var(--color-on-signal);
  background: var(--color-signal);
  border-color: var(--color-signal);
}

/* Rangliste mit Passung */

.aita-xrank {
  width: 25em;
  gap: 0;
}

.aita-xrank__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3em 0.6em;
  padding-block: 0.6em;
  border-top: var(--border-hairline) solid var(--color-line-subtle);
}

.aita-xrank__label {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--color-text);
}

.aita-xrank__track {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 0.4em;
  background: var(--color-surface-sunken);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.aita-xrank__fill {
  fill: var(--color-brand);
  transform-box: fill-box;
}

.aita-xrank__sub {
  grid-column: 1 / -1;
  font-size: 0.7em;
  color: var(--color-text-muted);
}

/* Browserfenster mit Seitenskizze */

.aita-xweb {
  width: 21.5em;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.aita-xweb__bar {
  display: flex;
  align-items: center;
  gap: 0.7em;
  height: 2em;
  padding: 0 0.7em;
  background: var(--color-surface-sunken);
  border-bottom: var(--border-hairline) solid var(--color-line-subtle);
}

.aita-xweb__dots {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--color-line);
  box-shadow: 0.8em 0 0 var(--color-line-subtle), 1.6em 0 0 var(--color-line-subtle);
}

.aita-xweb__address {
  flex: 1;
  margin-left: 1.6em;
  padding: 0.15em 0.7em;
  font-family: var(--font-mono);
  font-size: 0.64em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius-full);
}

.aita-xweb__page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  height: 12.4em;
  padding: 0.9em 1em;
  overflow: hidden;
}

.aita-xweb__nav {
  display: block;
  width: 100%;
  height: 0.5em;
  background: linear-gradient(90deg, var(--color-brand) 0 14%, transparent 14% 62%, var(--color-line-subtle) 62% 100%);
  border-radius: var(--radius-full);
}

.aita-xweb__headline {
  display: block;
  width: 62%;
  height: 1.1em;
  margin-top: 0.5em;
  background: var(--color-brand);
  border-radius: 0.2em;
}

.aita-xweb__copy {
  display: block;
  width: 78%;
  height: 0.5em;
  background: var(--color-line-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 0.9em 0 var(--color-line-subtle);
}

.aita-xweb__button {
  display: block;
  width: 5.6em;
  height: 1.5em;
  margin-top: 1em;
  background: var(--color-signal);
  border-radius: 0.25em;
}

.aita-xweb__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5em;
  margin-top: auto;
}

.aita-xweb__tile {
  height: 2.6em;
  background: var(--color-brand-subtle);
  border-radius: 0.25em;
}

.aita-xweb__field {
  display: flex;
  align-items: center;
  height: 1.6em;
  padding: 0 0.5em;
  border: var(--border-hairline) solid var(--color-line);
  border-radius: 0.25em;
}

.aita-xweb__fill {
  display: block;
  width: 62%;
  height: 0.45em;
  background: var(--color-text-secondary);
  border-radius: var(--radius-full);
}

.aita-xweb__fill--short {
  width: 38%;
}

.aita-xweb__page--messung .aita-xweb__button {
  margin-top: 0.2em;
}

.aita-xweb__consent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.7em 1em;
  background: var(--color-deep);
}

.aita-xweb__consentline {
  flex: 1;
  height: 0.45em;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
}

.aita-xweb__consentbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4em;
  height: 1.7em;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--color-on-signal);
  background: var(--color-signal);
  border-radius: 0.25em;
}

.aita-xweb__side {
  position: absolute;
  right: 1.4em;
  bottom: 3.5em;
  width: 15em;
  gap: 0.35em;
  border-top: var(--border-signal) solid var(--color-signal);
}

.aita-xweb__siderow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  font-size: 0.78em;
  font-weight: 500;
  color: var(--color-text);
}

.aita-xweb__siderow .aita-status {
  font-size: 0.94em;
}

/* Vorschaufilm: echte Website im Browserrahmen, scrollt einmal von selbst durch die Seite (Abschnitt 13.3).
 * Im Dokument steht das erste Bild. Das Skript legt den Film darüber, sobald der Rahmen im Bild ist. */

.aita-exhibit__scene--film {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.4em 1.4em 2.4em;
}

.aita-xweb--film {
  width: 100%;
}

.aita-film {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--color-surface-sunken);
}

.aita-film__poster,
.aita-film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aita-film__toggle {
  position: absolute;
  left: 0.7em;
  bottom: 0.7em;
  display: grid;
  place-items: center;
  width: max(2.1em, 1.75rem);
  height: max(2.1em, 1.75rem);
  padding: 0;
  color: var(--color-on-deep);
  background: rgba(0, 26, 61, 0.82);
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.aita-film__toggle:hover {
  background: var(--color-deep);
}

.aita-film__toggle:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-signal);
  outline-offset: 2px;
}

/* Zeichen des Schalters: Dreieck (abspielen), zwei Balken (anhalten), Dreieck mit Strich (noch einmal). */
.aita-film__sign {
  width: 0;
  height: 0;
  margin-left: 0.2em;
  border-style: solid;
  border-width: 0.42em 0 0.42em 0.68em;
  border-color: transparent transparent transparent currentColor;
}

.aita-film__toggle[data-state="pause"] .aita-film__sign {
  width: 0.72em;
  height: 0.8em;
  margin-left: 0;
  border-width: 0 0.24em;
  border-color: currentColor;
}

.aita-film__toggle[data-state="again"] .aita-film__sign {
  margin-left: 0;
  box-shadow: -0.36em 0 0 -0.12em currentColor;
}

.aita-xweb__side--film {
  right: 0.9em;
  bottom: 0.9em;
  width: 13.4em;
  z-index: 1;
}

/* Umzug von einem System ins andere */

.aita-xmove {
  grid-template-columns: 11em minmax(0, 1fr) 11em;
  align-items: center;
}

.aita-xmove__box--to {
  border-top: var(--border-signal) solid var(--color-signal);
}

.aita-xmove__items {
  display: grid;
  gap: 0.3em;
}

.aita-xmove__item {
  padding: 0.3em 0.5em;
  font-size: 0.76em;
  font-weight: 500;
  color: var(--color-brand);
  background: var(--color-brand-subtle);
  border-radius: 0.3em;
}

.aita-xmove__item--old {
  opacity: calc(1 - 0.62 * var(--e));
  color: var(--color-text-secondary);
  background: var(--color-surface-sunken);
}

.aita-xmove__arrow,
.aita-xfunnel__link {
  position: relative;
  display: block;
  margin-inline: 0.5em;
}

.aita-xmove__arrow::after,
.aita-xfunnel__link::after {
  content: "";
  position: absolute;
  right: -0.2em;
  top: 50%;
  margin-top: -0.4em;
  border-style: solid;
  border-width: 0.4em 0 0.4em 0.6em;
  border-color: transparent transparent transparent var(--color-signal);
}

/* Erscheinungsbild: Zeichen, Farben, Drucksachen, Tafel */

.aita-xbrand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1em 0.9em;
  width: 27em;
}

.aita-xbrand__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
}

.aita-xbrand__shape {
  position: relative;
  display: block;
  width: 5.4em;
  height: 7.2em;
  background: var(--color-surface);
  border-radius: 0.35em;
  box-shadow: 0 0.7em 1.8em rgba(0, 10, 30, 0.4);
  overflow: hidden;
}

.aita-xbrand__ink {
  position: absolute;
  inset: 0.6em;
}

.aita-xbrand__name {
  font-family: var(--font-mono);
  font-size: 0.64em;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-on-deep);
}

.aita-xbrand__item--zeichen .aita-xbrand__shape {
  width: 6em;
  height: 6em;
  border-radius: 50%;
}

.aita-xbrand__item--zeichen .aita-xbrand__ink {
  inset: 1.2em;
  background: var(--color-brand);
  border: 0.7em solid var(--color-signal);
  border-radius: 50%;
}

.aita-xbrand__item--farben .aita-xbrand__shape {
  width: 5.4em;
  height: 6em;
}

.aita-xbrand__item--farben .aita-xbrand__ink {
  inset: 0;
  background: linear-gradient(180deg, var(--color-brand) 0 46%, var(--color-signal) 46% 76%, var(--color-line-subtle) 76% 100%);
}

.aita-xbrand__item--flyer .aita-xbrand__ink {
  background:
    linear-gradient(var(--color-signal), var(--color-signal)) left 0 top 0 / 100% 2.4em no-repeat,
    linear-gradient(var(--color-brand), var(--color-brand)) left 0 top 3em / 80% 0.6em no-repeat,
    linear-gradient(var(--color-line-subtle), var(--color-line-subtle)) left 0 top 4.1em / 100% 0.35em no-repeat,
    linear-gradient(var(--color-line-subtle), var(--color-line-subtle)) left 0 top 4.9em / 64% 0.35em no-repeat;
}

.aita-xbrand__item--karte .aita-xbrand__ink {
  background:
    linear-gradient(var(--color-brand), var(--color-brand)) center top / 56% 0.6em no-repeat,
    repeating-linear-gradient(180deg, transparent 0 1.3em, var(--color-line-subtle) 1.3em 1.65em);
}

.aita-xbrand__item--tafel .aita-xbrand__shape {
  width: 8.6em;
  height: 5em;
  background: var(--color-deep);
  border: 0.25em solid var(--color-on-deep);
}

.aita-xbrand__item--tafel .aita-xbrand__ink {
  inset: 0.5em;
  background:
    linear-gradient(var(--color-signal), var(--color-signal)) left 0 top 0 / 34% 0.5em no-repeat,
    repeating-linear-gradient(180deg, transparent 0 1em, rgba(255, 255, 255, 0.3) 1em 1.3em);
}

.aita-xbrand__item--tafel .aita-xbrand__ink::after {
  left: auto;
  right: 0.2em;
  border-left-color: var(--color-on-deep);
}

/* Beiträge in großer Zahl */

.aita-xdocs {
  position: relative;
  width: 27em;
  height: 15.4em;
}

.aita-xdocs__grid {
  display: grid;
  grid-template-columns: repeat(8, 2.1em);
  gap: 0.6em;
}

.aita-xdocs__doc {
  position: relative;
  height: 2.9em;
  background:
    linear-gradient(var(--color-line), var(--color-line)) left 0.35em top 0.4em / 60% 0.22em no-repeat,
    repeating-linear-gradient(180deg, transparent 0 0.5em, rgba(122, 134, 150, 0.4) 0.5em 0.64em) left 0.35em top 0.5em / 72% 1.8em no-repeat,
    var(--color-surface);
  border-radius: 0.2em;
}

.aita-xdocs__ok {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--color-positive);
  background: var(--color-positive-subtle);
  border-radius: inherit;
}

.aita-xdocs__sum {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13.5em;
  gap: 0.2em;
  border-top: var(--border-signal) solid var(--color-signal);
}

.aita-xdocs__count {
  font-size: 1.7em;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-brand);
}

.aita-xdocs__unit {
  font-size: 0.78em;
  color: var(--color-text-secondary);
}

.aita-xdocs__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-top: 0.4em;
}

/* Anzeige, Kurzbewerbung, Wochen */

.aita-xfunnel {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr) 12em;
  align-items: center;
  width: 27em;
}

.aita-xfunnel__ad,
.aita-xfunnel__form {
  gap: 0.4em;
}

.aita-xfunnel__img {
  display: block;
  height: 3.4em;
  background: linear-gradient(135deg, var(--color-brand-subtle), var(--color-line-subtle));
  border-radius: 0.3em;
}

.aita-xfunnel__adtitle {
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.aita-xfunnel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2em;
  font-size: 0.74em;
  font-weight: 600;
  color: var(--color-on-signal);
  background: var(--color-signal);
  border-radius: 0.3em;
}

.aita-xfunnel__field {
  display: grid;
  gap: 0.2em;
}

.aita-xfunnel__fieldname {
  font-size: 0.68em;
  color: var(--color-text-muted);
}

.aita-xfunnel__input {
  display: flex;
  align-items: center;
  height: 1.5em;
  padding: 0 0.45em;
  border: var(--border-hairline) solid var(--color-line);
  border-radius: 0.25em;
}

.aita-xfunnel__fill {
  display: block;
  width: 58%;
  height: 0.42em;
  background: var(--color-text-secondary);
  border-radius: var(--radius-full);
}

.aita-xfunnel__weeks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 27em;
  padding-top: 0.9em;
}

.aita-xfunnel__axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.24em;
  height: 0.14em;
  background: rgba(255, 255, 255, 0.6);
}

.aita-xfunnel__week {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3em;
}

.aita-xfunnel__tick {
  position: absolute;
  left: 0;
  top: -0.9em;
  width: 0.62em;
  height: 0.62em;
  background: var(--color-on-deep);
  border-radius: 50%;
}

.aita-xfunnel__tick--hit {
  background: var(--color-signal);
}

.aita-xfunnel__weekname {
  font-family: var(--font-mono);
  font-size: 0.66em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-deep);
}

.aita-xfunnel__flag {
  padding: 0.3em 0.6em;
  font-size: 0.76em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-on-signal);
  background: var(--color-signal);
  border-radius: 0.3em;
}

/* Video im Schaukasten: Beitrag links, Entstehung rechts */

.aita-xreel {
  flex-direction: row;
  gap: 1.6em;
  padding-bottom: 1.6em;
}

.aita-xreel__reel {
  flex: none;
  width: 12.4em;
}

.aita-xreel__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  width: 13.4em;
}

.aita-xreel__timeline {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 3fr 6fr 2fr 4fr;
  gap: 0.2em;
  width: 100%;
  margin-top: 0.7em;
  padding: 0.5em;
  background: rgba(0, 26, 61, 0.86);
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.28);
  border-radius: 0.4em;
}

.aita-xreel__clip {
  height: 1.7em;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 0.2em;
}

.aita-xreel__clip--2,
.aita-xreel__clip--4 {
  background: var(--color-signal);
}

.aita-xreel__run {
  position: absolute;
  inset: 0.2em 0.5em;
  transform: translateX(calc(var(--t) * 100%));
}

.aita-xreel__playhead {
  position: absolute;
  left: -0.08em;
  top: 0;
  bottom: 0;
  width: 0.16em;
  background: var(--color-on-deep);
  box-shadow: 0 0 0 0.08em rgba(0, 26, 61, 0.6);
}

/* H4 Video als Beitrag: Karte im Stil von Instagram mit echtem Titelbild, Konten und Zahlen (Abschnitt 13.2). Maße in em. */

.aita-post {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.aita-post__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 0.8em;
  box-shadow: 0 1em 2.6em rgba(0, 10, 30, 0.5);
}

.aita-post__head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.65em;
}

.aita-post__avatars {
  display: flex;
  flex: none;
  padding-right: 0.5em;
}

.aita-post__avatar {
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin-right: -0.5em;
  overflow: hidden;
  background: var(--color-surface-sunken);
  border-radius: 50%;
  box-shadow: 0 0 0 0.12em var(--color-surface);
}

.aita-post__face,
.aita-post__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aita-post__cover {
  position: absolute;
  inset: 0;
}

/* Das Titelbild ist höher als die Karte. Der Ausschnitt folgt dem Motiv. */
.aita-post__cover--oben {
  object-position: 50% 20%;
}

.aita-post__cover--unten {
  object-position: 50% 62%;
}

.aita-post__who {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.aita-post__name,
.aita-post__sub {
  overflow: hidden;
  font-size: 0.62em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.aita-post__name {
  font-weight: 600;
}

.aita-post__sub {
  color: var(--color-text-muted);
}

.aita-post__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-deep);
}

.aita-post__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.aita-post__icon {
  position: relative;
  width: 3.2em;
  height: 3.2em;
  background: var(--color-signal);
  border-radius: 50%;
  box-shadow: 0 0 0 0.45em rgba(255, 111, 0, 0.3), 0 0.4em 1.4em rgba(0, 10, 30, 0.5);
}

.aita-post__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.56em 0 0 -0.32em;
  border-style: solid;
  border-width: 0.56em 0 0.56em 0.9em;
  border-color: transparent transparent transparent var(--color-on-signal);
}

.aita-post__play:hover .aita-post__icon {
  background: var(--color-signal-hover);
}

.aita-post__play:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-on-deep);
  outline-offset: -0.4em;
}

.aita-post__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1em 0.8em;
  margin: 0;
  padding: 0.5em 0.65em 0.55em;
}

.aita-post__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.74em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.aita-post__glyph {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.aita-post__stand {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.56em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.aita-post__caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

@media (prefers-reduced-motion: no-preference) {
  .aita-post__icon {
    transition: transform var(--duration-base) var(--ease-standard);
  }

  .aita-post__play:hover .aita-post__icon {
    transform: scale(1.08);
  }
}

/* Fenster für das Video: Die Datei liegt auf dem eigenen Server. Das Skript setzt nur das Seitenverhältnis (--ratio). */

.aita-dialog--video {
  --ratio: 1.7778;
  width: min(100% - 2 * var(--space-4), 60rem, max(18rem, (100dvh - 15rem) * var(--ratio)));
  height: fit-content;
  max-height: calc(100% - 2 * var(--space-4));
  border: var(--border-hairline) solid var(--color-line-subtle);
  border-radius: var(--radius-md);
}

.aita-player {
  display: grid;
  background: var(--color-deep);
}

.aita-player__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 15rem);
  aspect-ratio: var(--ratio);
  background: var(--color-deep);
}

.aita-dialog--video .aita-dialog__foot {
  display: grid;
  gap: var(--space-2);
}

/* Schaukasten außerhalb einer Fallkarte, etwa im Belegabschnitt einer Leistungsseite */

.aita-exhibit--framed {
  border: var(--border-hairline) solid var(--color-line-subtle);
  border-radius: var(--radius-lg);
}

/* Zwei Videos nebeneinander (Seite Content) */

.aita-reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  padding: var(--space-5);
  font-size: clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-lg);
}

.aita-reels__item {
  font-size: inherit;
}

.aita-reels .aita-post__caption .aita-h4 {
  margin: 0;
  font-size: var(--text-h4);
}

.aita-reels .aita-post__caption .aita-p {
  margin: 0;
  font-size: var(--text-small);
}
