/* Digital-Marketing-Manager*in (FH): Gestaltung und Code © 2026 Hendrik Göpel. Alle Rechte vorbehalten. */

/* ===== Schriften: liegen im Ordner, damit die Seite offline gleich aussieht (SIL Open Font License) ===== */
@font-face {
  font-family: "Anybody";
  src: url("../assets/fonts/anybody-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  color-scheme: light;

  /* Hochschule Schmalkalden: Farben aus Logo und Webauftritt */
  --hsm-blue: #1a4b7e;    /* Logo */
  --hsm-navy: #00305e;    /* hs-schmalkalden.de */
  --hsm-ink: #07294d;     /* Schrift auf hsm-fernstudium.de */
  --hsm-slate: #8a98ba;   /* zweite Logofarbe */
  --hsm-orange: #e76905;  /* Akzent auf hs-schmalkalden.de */
  --hsm-petrol: #02779e;  /* Links auf hsm-fernstudium.de */
  --hsm-sky: #87bdf0;     /* Hellblau auf hsm-fernstudium.de */

  --paper: #f1f4f8;
  --panel: #ffffff;
  --ink: var(--hsm-ink);
  --muted: #4b5d77;
  --line: #d2dae5;
  --on-dark: #e6edf6;
  --on-dark-muted: #b9c8dc;

  /* Clip-Farben wie im Schnittprogramm: Farbe = Art des Inhalts */
  --clip-video: #2f6db3;            /* Marketing (aufgehelltes HSM-Blau) */
  --clip-ai: var(--hsm-sky);        /* KI-Werkzeuge */
  --clip-media: var(--hsm-petrol);  /* Content */
  --clip-marker: var(--hsm-orange); /* Praxis, Termine */
  --clip-title: var(--hsm-slate);   /* Start, Downloads, Kontakt */

  --font-display: "Anybody", "Arial Narrow", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 64px;
  --nav-h: 76px;
  --radius: 28px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 28px 60px -30px rgb(7 41 77 / 0.5);
  --shadow-soft: 0 18px 40px -28px rgb(7 41 77 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; margin: 0 0 0.5em; }
h2 { font-size: var(--step-3); font-weight: 800; font-variation-settings: "wdth" 80; max-width: 20ch; letter-spacing: -0.005em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }

:focus-visible { outline: 3px solid var(--hsm-orange); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: 1.5rem; }
.lead { font-size: var(--step-1); max-width: 60ch; color: var(--muted); }
.note { color: var(--muted); font-size: var(--step--1); max-width: 72ch; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  padding: 0.6rem 1rem; background: var(--ink); color: #fff; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.draft-note {
  margin: 0;
  padding: 0.4rem var(--gutter);
  background: var(--hsm-sky);
  font-size: var(--step--1);
  text-align: center;
}
.draft-note a { font-weight: 700; }

/* Abschnitte, die wie ein Blatt über den vorigen gleiten */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  border-radius: 40px 40px 0 0;
}
.sheet-light { background: var(--paper); }
.sheet-dark { background: var(--hsm-navy); color: #fff; }
.sheet-dark .lead, .sheet-dark .note { color: var(--on-dark-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--spring), background-color 0.2s, color 0.2s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--hsm-orange); color: var(--ink); box-shadow: 0 14px 30px -14px rgb(231 105 5 / 0.8); }
.btn-primary:hover { background: #f27a1a; }
.btn-ghost { border-color: currentColor; background: rgb(255 255 255 / 0.55); color: var(--ink); }
.btn-ghost:hover { background: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgb(7 41 77 / 0.08);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}
.site-header.is-dark { background: rgb(0 48 94 / 0.95); border-bottom-color: rgb(255 255 255 / 0.1); color: #fff; }
.site-header.is-dark .brand-school { color: var(--hsm-sky); }
.site-header.is-dark .main-nav a:hover { background: rgb(255 255 255 / 0.12); }
.site-header.is-dark .nav-cta { background: var(--hsm-orange); color: var(--ink); }
.site-header.is-dark .menu-toggle { border-color: #fff; color: #fff; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand-school { font-size: 0.8rem; font-weight: 700; color: var(--hsm-blue); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: 1.1rem; }

.main-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 0.5rem 0.85rem; border-radius: 999px; text-decoration: none; font-weight: 600; transition: background-color 0.2s; }
.main-nav a:hover { background: rgb(26 75 126 / 0.1); }
.main-nav .nav-cta { background: var(--hsm-blue); color: #fff; }
.main-nav .nav-cta:hover { background: var(--hsm-navy); }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 700;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink); border-radius: 999px;
  background: none; color: var(--ink);
}

/* ===== Szenen =====
   Ohne .motion (kein JavaScript oder "Bewegung reduzieren") sind das ganz normale Abschnitte.
   Mit .motion werden sie hoch, die Bühne bleibt stehen und --p läuft beim Scrollen von 0 bis 1. */
.motion .scene { position: relative; height: calc(100svh - var(--header-h) + var(--len) * 1svh); }
.motion .stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; }

/* ===== 1 Start ===== */
.hero-stage {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 2rem);
  display: grid;
  place-items: center;
  padding: 1.5rem var(--gutter) calc(var(--nav-h) + 0.5rem);
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 78% 24%, rgb(135 189 240 / 0.6), transparent 70%),
    radial-gradient(32% 30% at 20% 78%, rgb(231 105 5 / 0.22), transparent 70%),
    radial-gradient(44% 40% at 28% 20%, rgb(26 75 126 / 0.14), transparent 70%);
}
.hero-copy { position: relative; z-index: 2; width: 100%; display: grid; justify-items: center; gap: 0.9rem; }
.hero-title {
  --trim: 108;
  margin: 0 0 0.15em;
  font-size: min(10.2vw, 14svh);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.012em;
  font-variation-settings: "wdth" var(--trim);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-line:nth-child(2) { color: var(--hsm-blue); }
.hero-line small { font-size: 0.3em; font-weight: 700; vertical-align: 0.2em; letter-spacing: 0; }
.hero-sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 750;
  font-variation-settings: "wdth" 90;
  line-height: 1.1;
}
.hero-facts { margin: 0; max-width: 54ch; color: var(--muted); font-size: var(--step-1); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.4rem; }

/* Themen-Sticker */
.stickers { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stickers li { position: absolute; left: var(--x); top: var(--y); translate: var(--mx, 0px) var(--my, 0px); }
.stickers span {
  display: inline-block;
  padding: 0.6em 1.05em;
  border-radius: 999px;
  font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1.02rem);
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 14px 30px -14px rgb(7 41 77 / 0.6), inset 0 -3px 0 rgb(0 0 0 / 0.12);
  transform: rotate(var(--rot));
  transition: transform 0.4s var(--spring);
  user-select: none;
}
.st-video { --bg: var(--clip-video); --fg: #fff; }
.st-ai { --bg: var(--hsm-sky); --fg: var(--ink); }
.st-media { --bg: var(--hsm-petrol); --fg: #fff; }
.st-marker { --bg: var(--hsm-orange); --fg: var(--ink); }
.st-title { --bg: #fff; --fg: var(--ink); }

.hero-wipe, .hero-ring { display: none; }

/* Ladeanimation: Abspielkopf fährt über die Bühne und deckt den Titel auf, dann poppen die Sticker */
.hero-scrub {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  z-index: 5;
  width: 3px;
  background: var(--hsm-orange);
  box-shadow: 0 0 0 6px rgb(231 105 5 / 0.18);
  transform: translateX(-10px);
  opacity: 0;
  pointer-events: none;
}
.motion .hero-scrub { animation: scrub 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.2s forwards; }
.motion .hero-copy { animation: reveal 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.2s backwards; }
.motion .stickers span { animation: pop 0.8s var(--spring) backwards; animation-delay: calc(1.25s + var(--d) * 90ms); }

@keyframes scrub {
  0% { opacity: 1; transform: translateX(-10px); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100vw + 10px)); }
}
@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes pop {
  from { transform: rotate(calc(var(--rot) - 30deg)) scale(0); }
  to { transform: rotate(var(--rot)) scale(1); }
}

/* Scroll: Sticker fliegen weg, der Titel wird schmaler, ein Navy-Kreis mit orangem Rand öffnet die nächste Szene */
.motion .hero-scene { --len: 110; }
.motion .hero-stage {
  min-height: 0;
  --a: clamp(0, var(--p, 0) / 0.5, 1);
  --ae: calc(var(--a) * var(--a) * (3 - 2 * var(--a)));
  --f: clamp(0, (var(--p, 0) - 0.06) / 0.28, 1);
  --b: clamp(0, (var(--p, 0) - 0.42) / 0.58, 1);
  --be: calc(var(--b) * var(--b) * (3 - 2 * var(--b)));
}
.motion .hero-glow { transform: translateY(calc(var(--ae) * -8%)) scale(calc(1 + var(--ae) * 0.2)); }
.motion .hero-title {
  transform: translateY(calc(var(--ae) * -5svh)) scale(calc(1 - var(--ae) * 0.08));
  font-variation-settings: "wdth" calc(var(--trim) - var(--ae) * (var(--trim) - 52));
}
.motion .hero-copy > :not(.hero-title) { opacity: calc(1 - var(--f)); translate: 0 calc(var(--f) * 24px); }
.motion .stickers li {
  transform: translate(calc(var(--dx) * var(--ae)), calc(var(--dy) * var(--ae))) rotate(calc(var(--ae) * 24deg));
  opacity: calc(1 - var(--ae));
}
.motion .hero-ring, .motion .hero-wipe { display: block; position: absolute; inset: 0; pointer-events: none; }
.motion .hero-ring { z-index: 6; background: var(--hsm-orange); clip-path: circle(calc(var(--be) * (62vmax + 18px)) at 50% 50%); }
.motion .hero-wipe { z-index: 7; background: var(--hsm-navy); clip-path: circle(calc(var(--be) * 62vmax) at 50% 50%); }

/* Sticker lassen sich mit der Maus verschieben (nur mit Maus, damit Touch-Scrollen frei bleibt) */
@media (hover: hover) and (pointer: fine) {
  .motion .stickers li { pointer-events: auto; cursor: grab; touch-action: none; }
  .motion .stickers li:hover span { transform: rotate(0deg) scale(1.1); }
  .motion .stickers li.is-dragging { cursor: grabbing; z-index: 3; }
}

/* ===== 2 Studium: Satz-Szene ===== */
.statement-stage {
  display: grid;
  place-items: center;
  padding: clamp(5rem, 14vw, 9rem) var(--gutter);
  background: var(--hsm-navy);
  color: #fff;
}
.statement {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: min(clamp(1.6rem, 0.9rem + 2.6vw, 3.3rem), 5.8svh);
  font-weight: 800;
  font-variation-settings: "wdth" 82;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.motion .statement-scene { --len: 130; }
.motion .statement-stage { padding-block: 1.5rem calc(var(--nav-h) + 1rem); }
/* Jedes Wort leuchtet auf, sobald der Fortschritt seine Position erreicht */
.motion .statement .w { opacity: clamp(0.16, (var(--p, 0) - 0.06) / 0.74 * var(--n) - var(--i), 1); }

/* ===== Eckdaten als Kacheln ===== */
.studium > .sheet { padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(10.5rem, auto);
  gap: 1rem;
  margin: 2.5rem 0 0;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.6s var(--smooth), box-shadow 0.3s;
}
.tile:hover { box-shadow: var(--shadow); }
.tile dt { margin-bottom: auto; font-size: var(--step--1); font-weight: 700; opacity: 0.8; }
.tile dd { margin: 0; }
.tile-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
  font-weight: 900;
  font-variation-settings: "wdth" 78;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.tile-xl .tile-big { font-size: clamp(3rem, 1.2rem + 5.2vw, 6.5rem); }
.tile-big.tile-date { font-size: clamp(1.7rem, 1rem + 1.7vw, 2.6rem); }
.tile-mid {
  hyphens: auto;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  line-height: 1.1;
}
.tile-text { font-size: var(--step-1); max-width: 62ch; }
.tile-small { font-size: var(--step--1); opacity: 0.88; max-width: 72ch; }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; }
.tile-blue { background: var(--hsm-blue); color: #fff; }
.tile-orange { background: var(--hsm-orange); }
.tile-navy { background: var(--hsm-navy); color: #fff; }
.tile-sky { background: var(--hsm-sky); }
.tile-petrol { background: var(--hsm-petrol); color: #fff; }

/* ===== 3 Inhalte: Studienplan ===== */
.inhalte { padding-bottom: 5rem; }
.modules-inner { display: grid; gap: 1.25rem; }
.plan-board {
  padding: 1.25rem 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--hsm-ink);
  color: var(--on-dark);
  box-shadow: var(--shadow);
}
.plan-ruler { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0.6rem; font-size: var(--step--1); color: #9fb3cc; }
.plan-ruler span { padding-left: 0.6rem; border-left: 2px solid rgb(255 255 255 / 0.15); }
.plan-lane {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.06);
}
.clip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 5.4rem;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  hyphens: auto;
  color: #fff;
  background: var(--clip-bg);
  cursor: pointer;
  transition: translate 0.5s var(--spring), box-shadow 0.3s, filter 0.2s;
}
.clip:hover { filter: brightness(1.1); }
.clip.is-current { translate: 0 -6px; box-shadow: 0 0 0 3px #fff, 0 16px 30px -10px rgb(0 0 0 / 0.55); }
.clip-no { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; opacity: 0.85; }
.clip-video { --clip-bg: var(--clip-video); }
.clip-ai { --clip-bg: var(--clip-ai); color: var(--ink); }
.clip-media { --clip-bg: var(--clip-media); }
.clip-marker { --clip-bg: var(--clip-marker); color: var(--ink); }

.plan-playhead { display: none; }
.plan-levels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 3.8rem;
  padding: 1.3rem 4px 0;
}
.level { position: relative; height: max(calc(var(--h) / 55 * 100%), 3px); border-radius: 4px 4px 2px 2px; background: var(--hsm-petrol); }
.level b { position: absolute; left: 0.35rem; bottom: 100%; font-size: 0.72rem; font-weight: 600; color: #9fb3cc; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.8rem 0 0; padding: 0; list-style: none; font-size: var(--step--1); color: #9fb3cc; }
.legend li::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.4rem; border-radius: 3px; vertical-align: -0.05em; }
.lg-video::before { background: var(--clip-video); }
.lg-ai::before { background: var(--clip-ai); }
.lg-media::before { background: var(--clip-media); }
.lg-marker::before { background: var(--clip-marker); }

.module-cards { display: grid; gap: 1rem; }
.module-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.module-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 6vw, 8rem);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: 0.8;
  color: var(--c);
}
.module-body h3 { margin-bottom: 0.6rem; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 800; font-variation-settings: "wdth" 85; }
.module-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.module-chips li { padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--paper); font-size: var(--step--1); font-weight: 700; }
.module-topics { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2.5rem; }
.module-topics li { position: relative; padding: 0.28rem 0 0.28rem 1.2rem; break-inside: avoid; }
.module-topics li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.55rem; height: 0.55rem; border-radius: 3px; background: var(--c); }
.module-link { margin: 1rem 0 0; font-weight: 700; }

/* Scroll: Abspielkopf fährt über die Clips, die Karte darunter wechselt wie ein Schnitt */
.motion .modules-scene { --len: 330; }
.motion .modules-stage { display: flex; align-items: center; padding-bottom: var(--nav-h); }
.motion .modules-inner { width: 100%; }
.motion .plan-playhead {
  display: block;
  position: absolute;
  top: -12px; bottom: -12px;
  left: calc(4px + var(--p, 0) * (100% - 8px));
  z-index: 2;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--hsm-orange);
  box-shadow: 0 0 14px rgb(231 105 5 / 0.85);
  pointer-events: none;
}
.motion .plan-playhead::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  translate: -50% 0;
  border: 7px solid transparent;
  border-top: 10px solid var(--hsm-orange);
}
/* Pegel leuchten auf, sobald der Abspielkopf das Modul erreicht */
.motion .level { opacity: clamp(0.25, (var(--p, 0) * 6 - var(--i)) * 2.5, 1); }
.motion .module-cards { display: grid; }
.motion .module-card {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  translate: 70px 0;
  scale: 0.97;
  transition: opacity 0.35s var(--smooth), translate 0.7s var(--smooth), scale 0.7s var(--smooth), visibility 0s linear 0.7s;
}
.motion .module-card.is-before { translate: -70px 0; }
.motion .module-card.is-current {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  scale: 1;
  transition: opacity 0.45s var(--smooth) 0.05s, translate 0.8s var(--spring), scale 0.8s var(--spring), visibility 0s;
}

/* ===== 4 KI-Workflow ===== */
.workflow { padding-bottom: clamp(4rem, 8vw, 6rem); }
.wf-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.wf-inner { display: grid; gap: 1.25rem; }
.wf-board {
  padding: 1.1rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background-color: rgb(255 255 255 / 0.04);
  /* feines Punktraster wie im Node-Editor (ComfyUI, Fusion) */
  background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.wf-graph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0.8rem 2rem;
  align-items: center;
}
.wf-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wf-wires path { fill: none; stroke-width: 2.5; }
.wf-wires .base { stroke: rgb(255 255 255 / 0.18); }
.wf-wires .flow { stroke: var(--hsm-orange); filter: drop-shadow(0 0 4px rgb(231 105 5 / 0.8)); }

.wf-node {
  grid-column: var(--col);
  grid-row: var(--row, 1 / 3);
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0.25rem;
  padding: 0.5rem 0.65rem 0.6rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-top: 4px solid var(--node-color);
  border-radius: 14px;
  background: #0d3c6d;
  color: var(--on-dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: translate 0.5s var(--spring), box-shadow 0.3s, opacity 0.3s, border-color 0.2s;
}
.wf-node:hover { border-color: rgb(255 255 255 / 0.35); border-top-color: var(--node-color); }
.wf-node.is-current {
  translate: 0 -5px;
  box-shadow: 0 0 0 2px var(--hsm-orange), 0 0 30px rgb(231 105 5 / 0.55);
}
.wf-input { --node-color: var(--hsm-slate); }
.wf-ai { --node-color: var(--hsm-sky); }
.wf-human { --node-color: var(--hsm-orange); }
.wf-output { --node-color: var(--clip-video); }

.wf-kind { font-size: 0.75rem; color: #9fb3cc; }
.wf-title { font-size: var(--step--1); font-weight: 700; line-height: 1.25; }
.wf-thumb { width: 100%; height: 3rem; }
.wf-thumb .person, .wf-frames .person { fill: #8193ad; }
.wf-thumb .shirt, .wf-frames .shirt { fill: var(--hsm-orange); }
.wf-thumb .cutout { stroke: #fff; stroke-width: 4; stroke-dasharray: 8 6; }
.wf-check path { fill: none; stroke: var(--hsm-orange); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.wf-formats, .wf-bars { display: flex; align-items: flex-end; justify-content: center; gap: 6%; }
.wf-formats { align-items: center; }
.wf-formats i { display: block; border: 2px solid var(--hsm-orange); border-radius: 3px; }
.wf-formats i:nth-child(1) { width: 18%; height: 58%; }
.wf-formats i:nth-child(2) { width: 26%; height: 42%; }
.wf-formats i:nth-child(3) { width: 36%; height: 30%; }
.wf-bars i { display: block; width: 14%; height: calc(var(--v) * 100%); border-radius: 3px 3px 0 0; background: var(--clip-video); }
.wf-bars i:nth-child(2) { background: var(--hsm-orange); }

.wf-controls { display: none; }
.wf-step { margin: 0; font-weight: 700; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.wf-play { border-color: rgb(255 255 255 / 0.5); color: #fff; background: rgb(255 255 255 / 0.08); }
.wf-play:hover { background: rgb(255 255 255 / 0.18); }

.wf-panels { display: grid; gap: 1rem; }
.wf-panel {
  padding: 1.1rem 1.4rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
}
.wf-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; font-variation-settings: "wdth" 88; }
.wf-panel p { max-width: 65ch; color: var(--on-dark); }
.wf-panel p.wf-module { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--hsm-sky); }

.wf-frames { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.wf-frames li { display: grid; justify-items: start; gap: 0.35rem; }
.wf-frames svg { width: 100%; height: auto; padding: 0.5rem; border-radius: 12px; background: #fff; }
.wf-frames span { font-size: var(--step--1); color: var(--on-dark-muted); white-space: nowrap; }
.frame-story { width: 4.6rem; }
.frame-story svg { aspect-ratio: 9 / 16; }
.frame-feed { width: 7rem; }
.frame-feed svg { aspect-ratio: 1; }
.frame-banner { width: 11.5rem; }
.frame-banner svg { aspect-ratio: 16 / 9; }

.wf-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin-top: 2.5rem; }
.wf-notes p { margin: 0; padding-top: 1rem; border-top: 2px solid rgb(255 255 255 / 0.4); max-width: 60ch; color: var(--on-dark); }

/* Scroll spielt den Workflow ab */
.motion .wf-scene { --len: 360; }
.motion .wf-stage { display: flex; align-items: center; padding-bottom: var(--nav-h); }
.motion .wf-inner { width: 100%; }
.motion .wf-node { opacity: 0.55; }
.motion .wf-node.is-current, .motion .wf-node.is-done { opacity: 1; }
.motion .wf-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.8rem; }
.motion .wf-play { padding: 0.6rem 1.2rem; }
.motion .wf-panels { display: grid; gap: 0; }
.motion .wf-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  translate: 0 26px;
  transition: opacity 0.3s var(--smooth), translate 0.6s var(--smooth), visibility 0s linear 0.6s;
}
.motion .wf-panel.is-before { translate: 0 -26px; }
.motion .wf-panel.is-current {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 0.45s var(--smooth) 0.05s, translate 0.7s var(--spring), visibility 0s;
}
.motion .wf-result.is-current .wf-frames li { animation: pop-frame 0.7s var(--spring) backwards; }
.motion .wf-result.is-current .wf-frames li:nth-child(2) { animation-delay: 0.1s; }
.motion .wf-result.is-current .wf-frames li:nth-child(3) { animation-delay: 0.2s; }
@keyframes pop-frame { from { scale: 0.6; opacity: 0; } }

/* ===== 5 Werkstatt ===== */
.werkstatt { padding-bottom: clamp(4rem, 8vw, 6rem); }
.werkstatt-body { display: grid; gap: 1.75rem; }
.player {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hsm-navy);
  box-shadow: 0 40px 80px -40px rgb(7 41 77 / 0.65);
}
.player-frame {
  display: grid;
  aspect-ratio: 16 / 9;
  background: radial-gradient(70% 90% at 28% 18%, var(--hsm-blue), var(--hsm-navy) 72%);
}
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-consent {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 1rem;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.player-play {
  display: grid;
  place-items: center;
  width: clamp(4rem, 9vw, 6rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hsm-orange);
  box-shadow: 0 0 0 0 rgb(231 105 5 / 0.4);
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--smooth);
}
.player-play::before {
  content: "";
  margin-left: 12%;
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.4rem;
  border-color: transparent transparent transparent var(--ink);
}
.player-consent:hover .player-play { transform: scale(1.1); box-shadow: 0 0 0 16px rgb(231 105 5 / 0.18); }
.player-consent-title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; }
.player-consent-text { font-size: var(--step--1); color: var(--on-dark-muted); }

.lesson-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
.lessons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: lesson; }
.lesson {
  counter-increment: lesson;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.4s var(--spring), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lesson::before { content: counter(lesson); font-family: var(--font-display); font-weight: 900; color: var(--hsm-petrol); }
.lesson:hover { transform: translateY(-2px); border-color: var(--hsm-petrol); }
.lesson.is-active { background: var(--hsm-petrol); border-color: var(--hsm-petrol); color: #fff; }
.lesson.is-active::before { color: #fff; }
.player-info h3 { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 88; }
.player-text { color: var(--muted); max-width: 60ch; }
.player-source { margin: 0; font-size: var(--step--1); }

/* Der Player kippt beim Heranscrollen hoch und wächst auf volle Größe */
.motion .player[data-reveal="grow"] {
  opacity: calc(0.3 + var(--r, 0) * 0.7);
  translate: none;
  scale: calc(0.74 + var(--r, 0) * 0.26);
  transform: perspective(1400px) rotateX(calc((1 - var(--r, 0)) * 26deg));
  transform-origin: 50% 100%;
  border-radius: calc(48px - var(--r, 0) * 20px);
}

/* ===== 6 Zugang ===== */
.zugang { padding-bottom: clamp(5rem, 10vw, 8rem); }
.sub-heading { margin-top: 3rem; font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 85; }
.paths { display: grid; gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.path {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem);
  min-height: 15rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 36px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow);
  transform-origin: 50% 0;
}
.path:nth-child(1) { --bg: var(--hsm-sky); --fg: var(--ink); }
.path:nth-child(2) { --bg: var(--hsm-petrol); --fg: #fff; }
.path:nth-child(3) { --bg: var(--hsm-blue); --fg: #fff; }
.path-years { display: grid; margin: 0; font-size: var(--step-1); font-weight: 700; }
.path-years span {
  font-family: var(--font-display);
  font-size: clamp(6rem, 3rem + 10vw, 12rem);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: 0.8;
}
.path-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
  line-height: 1.15;
}
.career { max-width: 60ch; font-size: var(--step-1); }

/* Die Karten bleiben oben kleben und stapeln sich, die verdeckte wird kleiner und dunkler */
.motion .paths { gap: 0; }
.motion .path {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem + var(--i) * 1.1rem);
  margin-bottom: 38svh;
  scale: calc(1 - var(--cover, 0) * 0.07);
  filter: brightness(calc(1 - var(--cover, 0) * 0.22));
}
.motion .path:last-child { margin-bottom: 0; }

/* ===== 7 Bewerbung ===== */
.bewerbung { padding-bottom: clamp(5rem, 10vw, 8rem); }
.count-stage {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) 2rem;
  overflow: hidden;
  text-align: center;
}
.count-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40% 45% at 50% 50%, rgb(231 105 5 / 0.3), transparent 70%);
}
.count {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: 0.85;
}
.days { font-size: clamp(7rem, 4rem + 18vw, 18rem); color: var(--hsm-orange); font-variant-numeric: tabular-nums; }
.count-unit { font-size: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.count-label { position: relative; margin: 1rem 0 0; font-size: var(--step-1); color: var(--on-dark-muted); }

/* Die Zahl zoomt herein und zählt dabei hoch */
.motion .count-scene { --len: 90; }
.motion .count-stage {
  padding-block: 0 var(--nav-h);
  --c: clamp(0, var(--p, 0) / 0.7, 1);
  --ce: calc(var(--c) * var(--c) * (3 - 2 * var(--c)));
  --l: clamp(0, (var(--p, 0) - 0.55) / 0.3, 1);
}
.motion .count { scale: calc(2.6 - var(--ce) * 1.6); opacity: calc(0.2 + var(--ce) * 0.8); }
.motion .count-label { opacity: var(--l); translate: 0 calc((1 - var(--l)) * 20px); }
.motion .count-glow { scale: calc(0.6 + var(--ce) * 0.8); opacity: var(--ce); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 2.5rem; padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  counter-increment: step;
  padding: 1.6rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
}
.steps h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--hsm-orange);
  color: var(--ink);
  font-size: 1rem;
  vertical-align: 0.1em;
}
.steps p { color: #c3d0e2; }
.steps a { color: #fff; font-weight: 700; }
.dates { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.dates li { padding: 0.55rem 0.85rem; border-radius: 12px; background: rgb(255 255 255 / 0.09); font-weight: 600; }
.vormerken { margin: 0; font-size: var(--step-1); }
.vormerken a { color: var(--hsm-orange); font-weight: 700; }

/* ===== 8 Downloads ===== */
.downloads { padding: clamp(4rem, 8vw, 6rem) 0; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; margin: 2rem 0; padding: 0; list-style: none; }
.files a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
}
/* kleines Dokument-Symbol mit Eselsohr */
.files a::before {
  content: "PDF";
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 3.4rem;
  border-radius: 6px;
  background: var(--hsm-orange);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%);
}
.files a:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow); }
.file-name { font-weight: 700; }
.file-meta { color: var(--muted); font-size: var(--step--1); }
.awards { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.awards a { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; background: rgb(26 75 126 / 0.09); font-size: var(--step--1); font-weight: 600; text-decoration: none; }

/* ===== Kontakt ===== */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 calc(var(--nav-h) + 3rem); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.footer-name {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 900;
  font-variation-settings: "wdth" 80;
  line-height: 1;
  color: var(--hsm-blue);
}
.footer-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { display: inline-block; padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--hsm-blue); color: #fff; font-weight: 700; text-decoration: none; transition: transform 0.4s var(--spring), background-color 0.2s; }
.pill:hover { transform: translateY(-2px) scale(1.03); background: var(--hsm-navy); }
.footer-copy { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }

/* ===== Timeline unten: schwebende Navigation mit Abspielkopf ===== */
.timeline {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 30;
  translate: -50% 0;
  width: min(1000px, calc(100% - 24px));
  height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0 0.55rem 0 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(0 48 94 / 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 20px 40px -20px rgb(7 41 77 / 0.75);
  color: #fff;
}
.timecode { min-width: 7.2em; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline-track { position: relative; height: 34px; }
.timeline-clips { display: flex; gap: 3px; height: 100%; margin: 0; padding: 0; list-style: none; }
.timeline-clips li { min-width: 0; }
.timeline-clips a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  opacity: 0.5;
  transition: opacity 0.25s, scale 0.4s var(--spring);
}
.timeline-clips li:first-child a { border-radius: 999px 8px 8px 999px; }
.timeline-clips li:last-child a { border-radius: 8px 999px 999px 8px; }
.timeline-clips a:hover, .timeline-clips a.is-current { opacity: 1; }
.timeline-clips a.is-current { scale: 1 1.1; }
.timeline-clips a[data-type="video"] { background: var(--clip-video); }
.timeline-clips a[data-type="media"] { background: var(--clip-media); }
.timeline-clips a[data-type="ai"] { background: var(--clip-ai); color: var(--ink); }
.timeline-clips a[data-type="marker"] { background: var(--clip-marker); color: var(--ink); }
.timeline-clips a[data-type="title"] { background: var(--clip-title); color: var(--ink); }
.playhead {
  position: absolute;
  top: -9px; bottom: -9px; left: 0;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--hsm-orange);
  box-shadow: 0 0 10px rgb(231 105 5 / 0.85);
  transform: translateX(var(--x, 0px));
  pointer-events: none;
}
.playhead::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  translate: -50% 0;
  border: 6px solid transparent;
  border-top: 8px solid var(--hsm-orange);
}

/* ===== Einblenden beim Scrollen ===== */
.motion [data-reveal] {
  opacity: var(--r, 0);
  translate: 0 calc((1 - var(--r, 0)) * 44px);
  scale: calc(0.96 + var(--r, 0) * 0.04);
}
.motion h2[data-reveal] { filter: blur(calc((1 - var(--r, 0)) * 8px)); }

/* ===== Impressum und Datenschutz ===== */
.legal { max-width: 760px; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 4rem; }
.legal h1 { font-size: var(--step-3); font-weight: 900; font-variation-settings: "wdth" 80; hyphens: auto; }
.legal h2 { margin-top: 2rem; font-size: var(--step-1); font-variation-settings: "wdth" 100; max-width: none; }
.legal p { max-width: 65ch; }
.legal-back { padding: 0.5rem 1.1rem; white-space: nowrap; }
.legal-meta { margin-top: 3rem; color: var(--muted); font-size: var(--step--1); }

/* ===== Mittlere Bildschirme ===== */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    padding: 0.5rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .site-header.is-dark .main-nav { border-bottom-color: rgb(255 255 255 / 0.1); background: var(--hsm-navy); }
}

/* ===== Schmale Bildschirme ===== */
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(8.5rem, auto); gap: 0.75rem; }
  .tile { padding: 1.2rem 1.25rem; }
  .tile-mid { font-size: 1.2rem; font-variation-settings: "wdth" 68; }
  .tile-xl, .tile-wide { grid-column: 1 / -1; grid-row: auto; }

  .clip { min-height: 3.2rem; align-items: center; justify-content: center; }
  .clip-name { display: none; }
  .clip-no { font-size: 1.35rem; opacity: 1; }
  .plan-levels { display: none; }
  .module-card { grid-template-columns: 1fr; }
  .module-num { position: absolute; top: 1rem; right: 1.25rem; font-size: 3.2rem; }
  .module-body h3 { padding-right: 3rem; }
  .module-topics { columns: 1; }

  /* Workflow: nur Symbole im Graphen, die Namen stehen in der Karte darunter */
  .wf-board { padding: 0.9rem; }
  .wf-graph { gap: 0.5rem 0.45rem; }
  .wf-node { justify-items: center; padding: 0.35rem; border-top-width: 3px; border-radius: 10px; }
  .wf-node .wf-kind, .wf-node .wf-title {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .wf-thumb { height: 2.6rem; }
  .wf-notes { grid-template-columns: 1fr; }
  .frame-story { width: 4.5rem; }
  .frame-feed { width: 6.6rem; }
  .frame-banner { width: 10.5rem; }

  .lesson-bar { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* auf dem Handy drei kurze Sticker im freien Streifen über dem Titel */
  .stickers li { display: none; }
  .stickers li:nth-child(1) { display: block; left: 4%; top: 1%; }
  .stickers li:nth-child(5) { display: block; left: 42%; top: 2.5%; }
  .stickers li:nth-child(6) { display: block; left: 76%; top: 0.8%; }
  .hero-stage { padding-top: 3.5rem; }

  .motion .module-card { max-height: calc(100svh - var(--header-h) - var(--nav-h) - 11rem); overflow-y: auto; }
}

@media (max-width: 640px) {
  .brand-name { font-size: 1rem; }
  .statement { font-size: 1.85rem; }
  .hero-title { --trim: 74; font-size: min(14.5vw, 13svh); }
  .hero-actions .btn { padding: 0.75rem 1.2rem; }
  .timeline { height: 46px; gap: 0.6rem; padding-left: 0.9rem; }
  .timecode { min-width: 6.6em; font-size: 0.72rem; }
  .timeline-track { height: 30px; }
  .timeline-clips a { padding: 0; font-size: 0; }
}


@media (max-height: 720px) {
  .motion .plan-levels, .motion .legend { display: none; }
  .motion .module-card { padding: 1.1rem 1.4rem; }
  .motion .module-num { font-size: 3.6rem; }
  .motion .module-topics li { padding-block: 0.12rem; }
  .motion .wf-kind { display: none; }
  .motion .wf-thumb { height: 2.4rem; }
  .motion .wf-panel p { margin-bottom: 0.5em; }
}

/* ===== Bewegung reduzieren: JS setzt dann kein .motion, hier nur noch kleine Animationen abschalten ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
