/* Ihr Weg: zehn Schritte als roter Faden, Wegkarte, kurze Filme mit Erklaerfigur,
   einheitliche Unterlagen-Karten. Nutzt Farben und Bausteine aus workshop.css und motion.css. */

/* ---------- Unterlagen-Karten: gleiche Zeilen, gleiche Knoepfe ---------- */

.grid-4 .doc {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.grid-4 .doc .tag {
  justify-self: start;
  align-self: start;
}
.doc .bullets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 7px;
  align-content: start;
}
.doc .bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}
.doc .bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.grid-4 .doc .facts {
  align-self: end;
}
.doc-actions {
  display: grid;
  gap: 8px;
  align-self: end;
}
.doc-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Wegkarte ---------- */

.map {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 8px 0 30px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-phase {
  flex: 1 1 0;
  min-width: 0;
}
.map-k {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-ink);
}
.map-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}
.map-steps::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 18px;
  height: 4px;
  border-radius: 4px;
  background: var(--pink);
  transform-origin: left center;
  transition: transform 1.2s ease;
}
.map-steps li {
  position: relative;
  z-index: 1;
}
.map-steps a,
.map-x {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}
.map-steps b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-display);
  box-shadow: 0 0 0 4px var(--white), 0 6px 16px rgba(224, 31, 115, 0.3);
}
.map-x {
  flex: none;
  margin-top: 26px;
}
.map-x b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--black);
  color: var(--mint);
  font-family: var(--font-display);
}
.map-steps span,
.map-x span {
  font-size: 0.78rem;
  font-weight: 600;
}
.map-steps b,
.map-x b {
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.map-steps a:hover b,
.map-x:hover b {
  transform: scale(1.12);
  transition-delay: 0s;
}
.has-js .map:not(.drawn) .map-steps::before {
  transform: scaleX(0);
}
.has-js .map:not(.drawn) .map-steps b,
.has-js .map:not(.drawn) .map-x b {
  transform: scale(0);
}
.map-phase:first-child li:nth-child(1) b { transition-delay: 0.1s; }
.map-phase:first-child li:nth-child(2) b { transition-delay: 0.25s; }
.map-phase:first-child li:nth-child(3) b { transition-delay: 0.4s; }
.map-phase:first-child li:nth-child(4) b { transition-delay: 0.55s; }
.map-phase:first-child li:nth-child(5) b { transition-delay: 0.7s; }
.map-x:nth-child(2) b { transition-delay: 0.9s; }
.map-phase:nth-child(3) .map-steps::before { transition-delay: 1s; }
.map-phase:nth-child(3) li:nth-child(1) b { transition-delay: 1.1s; }
.map-phase:nth-child(3) li:nth-child(2) b { transition-delay: 1.25s; }
.map-phase:nth-child(3) li:nth-child(3) b { transition-delay: 1.4s; }
.map-phase:nth-child(3) li:nth-child(4) b { transition-delay: 1.55s; }
.map-phase:nth-child(3) li:nth-child(5) b { transition-delay: 1.7s; }
.map-x:nth-child(4) b { transition-delay: 1.9s; }
@media (max-width: 760px) {
  .map {
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
  }
  .map-phase {
    width: 100%;
  }
  .map-x {
    margin-top: 0;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
  }
  .map-x b {
    width: 36px;
    height: 36px;
  }
  .map-steps b {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .map-steps::before {
    top: 15px;
  }
  .map-steps span {
    font-size: 0.7rem;
  }
}

/* ---------- Leiste: System waehlen, was Sie brauchen ---------- */

.weg-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 34px;
}
.os-switch {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
}
.has-js .os-switch {
  display: inline-flex;
}
.os-switch span {
  padding: 0 8px 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.os-switch button {
  min-height: 38px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.os-switch button[aria-pressed="true"] {
  background: var(--black);
  color: var(--on-dark);
}
.sec-dark .os-switch {
  background: var(--black-2);
  border-color: var(--border-dark);
}
.sec-dark .os-switch span,
.sec-dark .os-switch button {
  color: var(--on-dark-muted);
}
.sec-dark .os-switch button[aria-pressed="true"] {
  background: var(--mint);
  color: var(--black);
}
html[data-os="win"] [data-os="unix"],
html[data-os="unix"] [data-os="win"] {
  display: none !important;
}
.need {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.need li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(71, 182, 161, 0.15);
  color: var(--mint-ink);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Phasenkopf ---------- */

.phase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 28px;
}
.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.phase-head h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  text-transform: uppercase;
}

/* ---------- Der rote Faden ---------- */

.weg-track {
  --p: 1;
  position: relative;
}
.weg-track::before,
.weg-fill {
  position: absolute;
  left: 23px;
  top: 0;
  width: 4px;
  border-radius: 4px;
}
.weg-track::before {
  content: "";
  bottom: 0;
  background: rgba(10, 10, 10, 0.1);
}
.sec-dark .weg-track::before {
  background: rgba(255, 255, 255, 0.12);
}
.weg-fill {
  height: calc(var(--p) * 100%);
  background: linear-gradient(180deg, #ff5a9d, var(--pink));
  box-shadow: 0 0 14px rgba(224, 31, 115, 0.55);
}
.weg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 72px;
}
.w-step {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 0 30px;
  align-items: start;
  scroll-margin-top: 80px;
}
.w-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--off), 0 8px 20px rgba(224, 31, 115, 0.35);
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.sec-dark .w-node {
  box-shadow: 0 0 0 6px var(--black), 0 8px 20px rgba(224, 31, 115, 0.4);
}
.has-js .w-step:not(.reached) .w-node {
  background: var(--white);
  color: var(--faint);
  transform: scale(0.88);
  box-shadow: 0 0 0 6px var(--off), inset 0 0 0 3px rgba(10, 10, 10, 0.14);
}
.has-js .sec-dark .w-step:not(.reached) .w-node {
  background: var(--black-2);
  color: var(--on-dark-muted);
  box-shadow: 0 0 0 6px var(--black), inset 0 0 0 3px rgba(255, 255, 255, 0.16);
}
.w-text {
  min-width: 0;
  padding-top: 6px;
}
.w-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.w-one {
  margin: 0 0 16px;
  font-size: 1.06rem;
  color: var(--muted);
}
.sec-dark .w-one {
  color: var(--on-dark-muted);
}
.w-one code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(10, 10, 10, 0.07);
}
.sec-dark .w-one code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--mint-light);
}
.w-open {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.w-skip {
  margin: -2px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mint-ink);
}
.w-skip::before {
  content: "✓ ";
}
kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid rgba(10, 10, 10, 0.2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--soft);
  font-family: var(--font-body);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.5;
}
/* Lange Befehle umbrechen statt unter den Kopieren-Knopf laufen */
.w-text .code pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.w-text .label:first-of-type {
  margin-top: 0;
}
.w-callout {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(224, 31, 115, 0.08);
  font-size: 0.95rem;
}
.sec-dark .w-callout {
  background: rgba(224, 31, 115, 0.15);
  color: var(--on-dark);
}
.w-mini {
  list-style: none;
  counter-reset: mini;
  margin: 4px 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.w-mini li {
  counter-increment: mini;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.97rem;
}
.w-mini li::before {
  content: counter(mini);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--black);
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}
.w-extra {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.w-extra summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.w-extra summary::-webkit-details-marker {
  display: none;
}
.w-extra summary::before {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--off);
  font-family: var(--font-display);
  font-weight: 700;
}
.w-extra[open] summary::before {
  content: "−";
}
.w-body {
  padding: 0 14px 12px;
  font-size: 0.94rem;
  color: var(--muted);
}
.w-body p {
  margin: 0 0 8px;
}
.w-body p:last-child {
  margin-bottom: 0;
}
.w-qa {
  margin: 0;
}
.w-qa dt {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
}
.w-qa dt:first-child {
  margin-top: 0;
}
.w-qa dd {
  margin: 2px 0 0;
}
.w-body code,
.w-callout code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(10, 10, 10, 0.06);
}
.sec-dark .w-extra {
  background: var(--black-2);
  border-color: var(--border-dark);
}
.sec-dark .w-extra summary::before {
  background: var(--black-3);
  color: var(--mint);
}
.sec-dark .w-body {
  color: var(--on-dark-muted);
}
.sec-dark .w-qa dt {
  color: var(--on-dark);
}
.sec-dark .w-body code {
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 1000px) {
  .w-step {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .w-scene {
    grid-column: 2;
    margin-top: 18px !important;
  }
}
@media (max-width: 600px) {
  .os-switch span {
    display: none;
  }
  .os-switch button {
    padding: 6px 12px;
  }
  .weg-track::before,
  .weg-fill {
    left: 15px;
  }
  .w-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 14px;
  }
  .w-node {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .weg-list {
    gap: 52px;
  }
}

/* ---------- Abschluss je Phase, Rueckblick ---------- */

.weg-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 52px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--on-dark);
}
.weg-end p {
  flex: 1 1 300px;
  margin: 0;
  color: var(--on-dark-muted);
}
.weg-end strong {
  color: var(--white);
}
.sec-dark .weg-end {
  background: var(--black-2);
  border: 1px solid var(--border-dark);
}
.recap {
  margin-top: 72px;
}
.sub-h {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  margin: 0 0 14px;
}
a.block {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
a.block:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.block h4 {
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* ---------- Filme ---------- */

.w-scene {
  margin: 0;
  min-width: 0;
  container-type: inline-size;
}
.w-scene .stage.sc {
  min-height: 0;
  padding: 18px 18px 112px;
}
.sc .term-body {
  min-height: 0;
}
.sc .term-body p {
  font-size: 0.8rem;
}
.sc .term-body p.big {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: normal;
}

/* Erklaerfigur mit Sprechblase */
.guides {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  pointer-events: none;
}
.guide {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.face {
  position: relative;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9af2df, var(--mint) 58%, var(--mint-dark));
  box-shadow: 0 8px 22px rgba(71, 182, 161, 0.4);
}
.face::before,
.face::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: var(--black);
  animation: w-blink 4.2s infinite;
}
.face::before {
  left: 15px;
}
.face::after {
  right: 15px;
}
.face i {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 11px;
  height: 8px;
  border: 3px solid var(--black);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.bubble {
  position: relative;
  margin: 0 0 8px;
  max-width: 36ch;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 7px;
  border: 7px solid transparent;
  border-right-color: var(--white);
  border-left: 0;
}
.motion.js .guide.on:has(~ .guide.on) {
  opacity: 0;
  transform: translateY(-6px);
}
.motion:not(.js) .guide:not(:last-child) {
  display: none;
}
.motion.live .guide.on .face {
  animation: w-hop 0.6s ease;
}
.motion.live .guide.on .bubble {
  animation: w-pop 0.4s ease both;
}
@keyframes w-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
@keyframes w-hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-9px); }
}
@keyframes w-pop {
  from { transform: scale(0.85); transform-origin: left bottom; }
}

/* Film 1: Ordner */
.sc-1 {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.files {
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  background: #0b0b0e;
  overflow: hidden;
}
.files-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: grid;
  gap: 7px;
}
.fo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  white-space: nowrap;
}
.fo::before {
  content: "";
  flex: none;
  width: 16px;
  height: 12px;
  border-radius: 2px 3px 3px 3px;
  background: #b8954a;
}
.fo.new {
  color: var(--white);
  font-weight: 700;
}
.fo.new::before {
  background: var(--mint);
}
.motion.live .fo.new.on {
  animation: w-pop 0.5s ease both;
}

/* Film 2: Motor */
.sc-2,
.sc-4,
.sc-7,
.sc-9 {
  display: grid;
  gap: 12px;
}
.engine {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(71, 182, 161, 0.45);
  border-radius: 12px;
  background: rgba(71, 182, 161, 0.08);
}
.engine p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--on-dark-muted);
}
.engine b {
  display: block;
  font-family: var(--font-display);
  color: var(--mint);
}
.gear {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 5px dotted var(--mint);
  animation: m-spin 3s linear infinite;
}

/* Film 3: Modell */
.sc-3 {
  display: grid;
  gap: 12px;
}
.models {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.mbox {
  position: relative;
  padding: 12px;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  background: var(--black-2);
}
.mbox.big {
  min-height: 112px;
}
.mbox.small {
  min-height: 74px;
  border-color: var(--mint);
}
.mbox b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--white);
}
.mbox span {
  font-size: 0.76rem;
  color: var(--on-dark-muted);
}
.mbox .xmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.6);
  color: var(--pink);
  font-size: 3rem;
  font-weight: 700;
}
.mbox .vmark {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--mint);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Film 4: erster Start */
.sc-4 .side {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Film 5: im Browser */
.ui-win {
  box-shadow: none;
}
.ui {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 10px;
  padding: 12px;
  background: #f4f3ee;
  color: var(--black);
  min-height: 190px;
}
.ui-login {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.08);
}
.ui-login b {
  font-family: var(--font-display);
  font-size: 0.88rem;
}
.ui-login i {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: #e4e2db;
}
.ui-btn {
  justify-self: start;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
}
.ui-lock {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--mint-ink);
}
.ui-lock::before {
  content: "✓ ";
}
.ui-right {
  display: grid;
  gap: 8px;
  align-content: start;
}
.ui-model {
  justify-self: end;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.15);
  background: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
}
.ui-file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  font-size: 0.76rem;
}
.ui-file .pbar {
  width: 56px;
  margin: 0 0 0 auto;
  border-color: rgba(10, 10, 10, 0.2);
}
.doc-ico {
  flex: none;
  width: 12px;
  height: 15px;
  border-radius: 2px;
  background: var(--pink);
}
.ui-q {
  justify-self: end;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 12px 12px 4px 12px;
  background: var(--black);
  color: var(--white);
  font-size: 0.76rem;
}
.ui-a {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px 12px 12px 4px;
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
}
.ui-a small {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: var(--mint-ink);
}

/* Film 6: Leitung */
.net {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pc,
.cloud {
  padding: 12px;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  background: var(--black-2);
  text-align: center;
  font-size: 0.74rem;
  color: var(--on-dark-muted);
}
.pc b,
.cloud b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
}
.pc {
  border-color: var(--mint);
}
.cloud {
  border-radius: 40px;
}
.wire {
  position: relative;
  height: 70px;
}
.wire::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 3px dashed rgba(255, 255, 255, 0.35);
}
.wire small {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  text-align: center;
  font-size: 0.72rem;
  color: #ffcf66;
}
.pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  background: #ffcf66;
  box-shadow: 0 0 12px #ffcf66;
  animation: w-travel 1.4s linear infinite;
}
@keyframes w-travel {
  from { left: 0; }
  to { left: calc(100% - 12px); }
}
.wire .cut {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -24px 0 0 -14px;
  color: var(--pink);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.sc-6:has(.cut.on) .pulse {
  display: none;
}
.sc-6:has(.cut.on) .wire small {
  opacity: 0.3;
}
.sc-6:has(.cut.on) .wire::before {
  border-top-color: rgba(224, 31, 115, 0.55);
}
.flag {
  margin: 14px 0 0;
  text-align: center;
}
.flag code {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
}
.counter {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--font-display);
}
.counter b {
  font-size: 1.9rem;
  color: var(--mint);
}

/* Film 7: Zeitstrahl */
.timeline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 6px 0 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14px;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.dot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 32%;
  text-align: center;
}
.dot::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(71, 182, 161, 0.2);
}
.dot b {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}
.back {
  flex-basis: 100%;
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffcf66;
}

/* Film 8: Tuersteher */
.gate {
  display: grid;
  gap: 9px;
}
.g-head,
.g-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 8px;
}
.g-head span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-dark-muted);
}
.g-head .shield {
  justify-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.g-chip {
  overflow: hidden;
  color: var(--on-dark);
  padding: 5px 8px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--black-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ray {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.ray::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--mint);
  transform-origin: left center;
}
.g-row.no .ray::after {
  width: 50%;
  background: var(--pink);
}
.g-row.no .ray::before {
  content: "✕";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -11px 0 0 -5px;
  color: var(--pink);
  font-weight: 700;
  line-height: 1;
}
.motion.live .g-row.on .ray::after {
  animation: w-ray 0.7s ease-out both;
}
@keyframes w-ray {
  from { transform: scaleX(0); }
}
.res {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.g-row.ok .res {
  color: var(--mint);
}
.g-row.no .res {
  color: #ff8fbe;
}

/* Film 9: ein Knopf statt einer Zeile */
.longcmd {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  background: #0b0b0e;
  color: var(--mint-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  transform-origin: left center;
}
.longcmd code {
  font: inherit;
  color: inherit;
}
.motion.js .sc-9:has(.script.on) .longcmd {
  transform: scale(0.84);
  opacity: 0.35;
}
.script-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.script {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--mint);
  border-radius: 10px;
  background: var(--black-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.play {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
}
.motion.live .play.on {
  animation: w-press 1.1s ease 0.3s 2;
}
@keyframes w-press {
  0% { box-shadow: 0 0 0 0 rgba(71, 182, 161, 0.6); transform: scale(1); }
  30% { transform: scale(0.93); }
  100% { box-shadow: 0 0 0 18px rgba(71, 182, 161, 0); transform: scale(1); }
}
.started {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #8ee6c9;
}

/* Film 10: sauber */
.clean {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.check {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--black);
  font-weight: 700;
}
.motion.live .clean.on .check {
  animation: w-pop 0.5s ease both;
}

/* Schmale Filmflaeche */
@container (max-width: 430px) {
  .sc-1 {
    grid-template-columns: minmax(0, 1fr);
  }
  .sc-4 .side {
    grid-template-columns: minmax(0, 1fr);
  }
  .ui {
    grid-template-columns: minmax(0, 1fr);
  }
  .bubble {
    font-size: 0.85rem;
  }
  .wire small {
    display: none;
  }
  .pc,
  .cloud {
    padding: 10px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .face::before,
  .face::after,
  .pulse,
  .gear {
    animation: none;
  }
  .map-steps::before,
  .map-steps b,
  .map-x b,
  .w-node {
    transition: none;
  }
}
