* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #15151e;
  color: #fff;
  font-family: system-ui, sans-serif;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

#f1logo {
  max-height: 50%;
}
@font-face {
  font-family: "Boxenstopp";
  src: url("assets/fonts/Boxenstopp-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
}
h1,
.zahlen {
  font-family: "Boxenstopp", sans-serif;
}
#flyby-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
}

#flyby {
  width: 50vw;
  opacity: 0;
}
#bgvid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
#wipe {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.wipe-red,
.wipe-media {
  position: absolute;
  inset: 0;
  clip-path: polygon(115% 0%, 115% 0%, 100% 100%, 100% 100%);
}

.wipe-red {
  background: #e10600;
}

.wipe-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wipe-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7), transparent 45%);
}

.wipe-label {
  position: absolute;
  left: 5vw;
  bottom: 7vh;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 2vw;
  font-family: "Boxenstopp", sans-serif;
  text-transform: uppercase;
}

#wipe-number {
  font-size: 12vw;
  line-height: 1;
  color: #e10600;
}

#wipe-name {
  font-size: 4vw;
}

/* ---------- Slide layout ---------- */
.slide {
  gap: 1.5rem;
  text-align: center;
}

.slide h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.question {
  line-height: 1.15;
}

.chapter {
  font-family: "Boxenstopp", sans-serif;
  color: #e10600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.4rem;
}

.subtitle {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.keyfacts {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  opacity: 0.9;
}

.answer {
  font-family: "Boxenstopp", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: #e10600;
}

.qr {
  width: min(30vh, 30vw);
  border-radius: 12px;
}

/* ---------- Bullet points ---------- */
.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.bullets li {
  position: relative;
  padding-left: 1.2em;
  text-align: left;
  font-family: "Boxenstopp", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.5em;
  height: 0.5em;
  background: #e10600;
  transform: skewX(-15deg);
}

/* ---------- Fragments (appear on click) ---------- */
[data-show] {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

[data-show].shown {
  opacity: 1;
  transform: none;
}

/* ---------- Video next to text ---------- */
.split {
  display: flex;
  align-items: center;
  gap: 4vw;
}

.vertical-video {
  height: 75vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.era {
  width: 22vw;
  padding: 1.5rem;
  background: rgb(255 255 255 / 0.08);
  border-top: 6px solid #e10600;
  font-family: "Boxenstopp", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.era-years {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7em;
  opacity: 0.7;
}

.timeline[class*="focus-"] .era {
  opacity: 0.35;
}

.focus-1 .era:nth-child(1),
.focus-2 .era:nth-child(2),
.focus-3 .era:nth-child(3) {
  opacity: 1;
  transform: scale(1.08);
  background: rgb(225 6 0 / 0.25);
}

/* ---------- Animation placeholders ---------- */
.anim-row {
  display: flex;
  gap: 2rem;
}

.anim-placeholder {
  display: grid;
  place-items: center;
  width: min(60vw, 900px);
  aspect-ratio: 16 / 7;
  border: 2px dashed rgb(255 255 255 / 0.4);
  font-size: 1.2rem;
  opacity: 0.7;
}

.anim-row .anim-placeholder {
  width: min(38vw, 600px);
}

/* ---------- Listener cards ---------- */
.listener .slide {
  padding: 1rem;
}

.card {
  width: 100%;
  max-width: 820px;
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-align: left;
  line-height: 1.55;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  background: rgb(21 21 30 / 0.88);
  border-left: 6px solid #e10600;
}

.card h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.card p {
  margin-bottom: 0.8rem;
}

.card ul,
.card ol {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
}

.card dt {
  margin-top: 0.9rem;
  font-weight: 700;
}

.card dd {
  opacity: 0.85;
}

.listener .vertical-video {
  height: 85vh;
}

/* ---------- Animations ---------- */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.anim {
  width: min(90vw, 150vh);
  max-height: 58vh;
  overflow: visible;
}

.anim path:not([fill]),
.anim line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.anim .ground {
  stroke: rgb(255 255 255 / 0.35);
  stroke-width: 3;
}

.car-light {
  color: #e9e9f0;
}

.car-rb18 {
  color: #3b5bdb;
}

.car-f2000 {
  color: #e10600;
  opacity: 0.9;
}

.anim-label {
  font-family: "Boxenstopp", sans-serif;
  font-size: 30px;
  fill: #fff;
}

.anim-note {
  font-size: 22px;
  fill: rgb(255 255 255 / 0.75);
}

.anim-loss,
.sz-red {
  fill: #e10600;
}

.sz-blue {
  fill: #7d97ff;
}

.anim-caption {
  font-size: 1rem;
  opacity: 0.6;
}

.da-wake path {
  stroke: #ff8a3d;
  stroke-width: 4;
  opacity: 0.8;
}

.da-arrows,
.ge-arrows,
.aa-down {
  stroke: #fff;
  stroke-width: 7;
}

.ge-arrows,
.aa-down {
  stroke: #27f4d2;
}

.ge-flow-top path {
  stroke: rgb(255 255 255 / 0.4);
  stroke-width: 3;
}

.ge-flow-under path {
  stroke: #27f4d2;
  stroke-width: 4;
}

.pp-speed line {
  stroke: rgb(255 255 255 / 0.35);
  stroke-width: 3;
}

.pp-under path {
  stroke: #27f4d2;
  stroke-width: 4;
}

.aa-speed line {
  stroke: rgb(255 255 255 / 0.3);
  stroke-width: 3;
}

.sz-measure {
  stroke: #fff;
  stroke-width: 4;
}

.phases {
  display: flex;
  gap: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
}

.phase {
  opacity: 0.35;
  transition: opacity 0.15s;
}

.phase.on {
  opacity: 1;
  color: #27f4d2;
}

.timeline.small {
  transform: scale(0.8);
  margin-top: 0;
}

/* ---------- Energy bars ---------- */
.energy {
  display: grid;
  gap: 1.5rem;
  width: min(80vw, 1100px);
}

.energy-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 1.5rem;
}

.energy-year {
  font-family: "Boxenstopp", sans-serif;
  font-size: 1.4rem;
  text-align: right;
}

.energy-bar {
  display: flex;
  height: 4.5rem;
  overflow: hidden;
  border-radius: 6px;
}

.energy-ice {
  flex: 1;
  background: #6b6b7d;
}

.energy-ev {
  display: grid;
  place-items: center;
  width: 20%;
  background: #27f4d2;
  color: #15151e;
  font-family: "Boxenstopp", sans-serif;
  font-size: 1.6rem;
}

.energy-legend {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 1.2rem;
}

.dot {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5em;
  border-radius: 50%;
  vertical-align: -0.1em;
}

.dot.ice {
  background: #6b6b7d;
}

.dot.ev {
  background: #27f4d2;
}
