/* Motion4You Landingpage · Version 2 „Onion Skin"
   Farben, Schriften, Radien und Kurven kommen aus tokens.css (Kopie aus Motion4You_Design_Kit/tokens).
   Leitidee: Die drei versetzten Konturen des Zeichens sind Onion-Skinning. Jede Bewegung hinterlässt Frames.
   .js = JavaScript läuft, .motion = zusätzlich keine reduzierte Bewegung gewünscht. */

/* ---------- Basis ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--m4y-ink);
  color: var(--m4y-paper);
  font: 400 var(--m4y-body-size)/var(--m4y-body-line) var(--m4y-font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: var(--m4y-focus-width) solid var(--m4y-color-focus);
  outline-offset: var(--m4y-focus-offset);
  box-shadow: 0 0 0 var(--m4y-focus-offset) var(--m4y-ink);
}

::selection { background: var(--m4y-lilac); color: var(--m4y-ink); }

.icon { width: 24px; height: 24px; flex: none; }
html:not(.motion) .motion-only { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: var(--m4y-radius-control);
  background: var(--m4y-lime);
  color: var(--m4y-ink);
  font: 700 17px/24px var(--m4y-font-display);
  text-decoration: none;
}
.skip:focus { top: 16px; }

h2 {
  font: 700 var(--m4y-h2-size)/var(--m4y-h2-line) var(--m4y-font-display);
  letter-spacing: -.02em;
}

h3 {
  font: 700 var(--m4y-h3-size)/var(--m4y-h3-line) var(--m4y-font-display);
  letter-spacing: -.01em;
}

.label {
  font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .06em;
}

/* ---------- Raster ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--m4y-max-width) + 2 * var(--m4y-page-margin));
  margin-inline: auto;
  padding-inline: var(--m4y-page-margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--m4y-columns), minmax(0, 1fr));
  column-gap: var(--m4y-gutter);
}

.section { padding-block: var(--m4y-section-gap); }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: var(--m4y-space-48);
}
.section-head p { max-width: 62ch; color: var(--m4y-muted); }

/* Abschnitts-Köpfe (Leistungen, Stilproben, Beispielfilm): große Überschrift, heller Begleittext.
   Gleiche Größenordnung wie die anderen großen Überschriften der Seite (Kundenprojekt, FAQ, Kontakt). */
.section-head { margin-bottom: var(--m4y-space-64); }
.section-head h2 { font: 700 clamp(38px, 6vw, 96px)/.95 var(--m4y-font-display); letter-spacing: -.04em; } /* min. 38 px: „Bewegtbildfabrik.“ passt sonst mobil nicht in die Breite */
/* Regel: Jede große Überschrift hat genau ein Lime-Wort (<span class="accent"> im HTML), das, worum es geht.
   Ausnahme: Überschriften auf farbigem Grund (Ablauf) bleiben dunkel. */
.accent { color: var(--m4y-lime); }
.section-head p { color: var(--m4y-paper); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }

@media (min-width: 1200px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--m4y-gutter);
    align-items: end;
  }
}

/* ---------- Text in Bewegung: Zeichen, Wörter, Squash und Stretch ---------- */

.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transform-origin: 50% 100%; }
.ch__i { display: inline-block; }

.motion .hero__title .line { overflow: hidden; padding-top: .08em; margin-top: -.08em; padding-bottom: .1em; margin-bottom: -.1em; }
.motion .hero__title .ch__i { animation: m4y-rise 900ms var(--m4y-ease-enter) both; animation-delay: calc(var(--i) * 24ms + 150ms); }

@keyframes m4y-rise { from { transform: translateY(110%) rotate(6deg); } }

.motion .ch.is-bump { animation: m4y-bump 560ms var(--m4y-ease-enter); }
@keyframes m4y-bump {
  0% { transform: none; }
  22% { transform: translateY(-.14em) scale(.9, 1.12); }
  50% { transform: translateY(0) scale(1.14, .86); }
  75% { transform: scale(.97, 1.03); }
  100% { transform: none; }
}

.motion [data-reveal] .w { overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.motion [data-reveal] .w__i {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 820ms var(--m4y-ease-enter);
  transition-delay: calc(var(--i) * 45ms);
}
.motion [data-reveal].is-in .w__i { transform: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--m4y-control-height);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--m4y-radius-control);
  font: 700 17px/24px var(--m4y-font-display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--m4y-duration-feedback) var(--m4y-ease-enter),
              border-color var(--m4y-duration-feedback) var(--m4y-ease-enter);
}
.btn--compact { min-height: 48px; }

.btn--primary { background: var(--m4y-lime); color: var(--m4y-ink); }
.btn--primary:hover { background: var(--m4y-hover); }
.btn--primary:active { background: var(--m4y-pressed); }

.btn--secondary { background: var(--m4y-ink); color: var(--m4y-paper); border-color: var(--m4y-control); }
.btn--secondary:hover { background: var(--m4y-stage); }

.btn[aria-disabled="true"] { cursor: progress; }
.btn .icon--spin { display: none; }
.btn[aria-busy="true"] .trail,
.btn[aria-busy="true"] .icon--arrow { display: none; }
.btn[aria-busy="true"] .icon--spin { display: block; animation: m4y-spin 900ms linear infinite; }

@keyframes m4y-spin { to { transform: rotate(360deg); } }

/* Pfeil mit Onion-Skin: beim Hovern bleiben drei Frames zurück. */
.trail { position: relative; display: inline-block; flex: none; width: 24px; height: 24px; }
.trail .icon { position: absolute; inset: 0; transition: transform 360ms var(--m4y-ease-enter), opacity 220ms var(--m4y-ease-enter); }
.trail__ghost { opacity: 0; }
:is(a, button):hover > .trail > .icon:last-child { transform: translateX(8px); }
:is(a, button):hover > .trail > .trail__ghost:nth-child(1) { opacity: .15; transform: translateX(-10px); transition-delay: 90ms; }
:is(a, button):hover > .trail > .trail__ghost:nth-child(2) { opacity: .3; transform: translateX(-4px); transition-delay: 60ms; }
:is(a, button):hover > .trail > .trail__ghost:nth-child(3) { opacity: .5; transform: translateX(2px); transition-delay: 30ms; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--m4y-min-target);
  height: var(--m4y-min-target);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--m4y-radius-control);
  background: transparent;
  color: var(--m4y-paper);
  cursor: pointer;
  transition: background-color var(--m4y-duration-feedback) var(--m4y-ease-enter),
              border-color var(--m4y-duration-feedback) var(--m4y-ease-enter);
}
.icon-btn:hover { background: var(--m4y-line); }
.icon-btn[aria-pressed="true"] { background: var(--m4y-lime); color: var(--m4y-ink); }

/* ---------- Header, Timeline, HUD ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--m4y-ink);
  border-bottom: 1px solid var(--m4y-line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand { display: inline-flex; padding-block: 8px; border-radius: 4px; text-decoration: none; }
/* Wortmarke als Text (Rubik 700), zweite Hälfte in Lime. */
.wordmark { font: 700 22px/1 var(--m4y-font-display); letter-spacing: -.03em; color: var(--m4y-paper); white-space: nowrap; }
.wordmark span { color: var(--m4y-lime); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 28px; }

.nav ul a {
  display: inline-block;
  padding-block: 12px;
  color: var(--m4y-muted);
  font: 400 16px/24px var(--m4y-font-display);
  text-decoration: none;
  text-underline-offset: 8px;
  transition: color var(--m4y-duration-ui) var(--m4y-ease-enter);
}
.nav ul a:hover,
.nav ul a:focus-visible { color: var(--m4y-paper); text-decoration-line: underline; }
.nav ul a[aria-current="true"] {
  color: var(--m4y-paper);
  text-decoration-line: underline;
  text-decoration-color: var(--m4y-lime);
  text-decoration-thickness: 2px;
}
/* Zwischen 1100 und 1299 px etwas enger, damit Wortmarke und Navigation in eine Zeile passen. */
@media (min-width: 1100px) and (max-width: 1299px) {
  .nav { gap: 24px; }
  .nav ul { gap: 16px; }
  .nav ul a { font-size: 15px; }
}

.menu-btn { display: none; border-color: var(--m4y-control); }
.menu-btn .icon--close,
.menu-btn[aria-expanded="true"] .icon--menu { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1099px) {
  .js .menu-btn { display: inline-flex; }

  .js .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 16px var(--m4y-page-margin) 32px;
    background: var(--m4y-ink);
    border-bottom: 1px solid var(--m4y-line);
  }
  .js .nav.is-open { display: flex; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a {
    display: block;
    color: var(--m4y-paper);
    font: 700 var(--m4y-h3-size)/var(--m4y-h3-line) var(--m4y-font-display);
  }
}

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress__bar {
  display: block;
  height: 100%;
  background: var(--m4y-lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.hud {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--m4y-line);
  border-radius: var(--m4y-radius-pill);
  background: var(--m4y-stage);
  color: var(--m4y-muted);
  font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  translate: 0 12px;
  transition: opacity var(--m4y-duration-ui) var(--m4y-ease-enter), translate var(--m4y-duration-ui) var(--m4y-ease-enter);
}
.hud.is-on { opacity: 1; translate: 0 0; }
.hud__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m4y-lime); }
.hud__tc { color: var(--m4y-paper); }
@media (min-width: 768px) { .js .hud { display: flex; } }

/* ---------- Hero ---------- */

/* Links Headline, Ziele und Text, rechts die Bühne im Hochformat.
   Die vier Zielwörter liegen übereinander in einer Zelle: Die Höhe richtet sich nach dem längsten, nichts springt. */

.hero { position: relative; overflow: hidden; }

.hero__inner {
  --stage-w: min(290px, 20vw, calc((100svh - 300px) * 9 / 16));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas:
    ".     stage"
    "title stage"
    "goals stage"
    "foot  stage"
    ".     stage";
  align-content: center;
  column-gap: var(--m4y-space-64);
  min-height: calc(100svh - 80px);
  padding-block: var(--m4y-space-48);
}

.hero__title {
  grid-area: title;
  margin-bottom: var(--m4y-space-32);
  font: 700 clamp(48px, 6vw, 88px)/.98 var(--m4y-font-display); /* Obergrenze so, dass „deine Marke zeigen.“ einzeilig bleibt */
  letter-spacing: -.04em;
}
@media (min-width: 900px) and (max-width: 1099px) { .hero__title { font-size: 5.6vw; } } /* Puffer: bei 900 px wird es sonst pixelgenau knapp */
.hero__title .line { display: block; }

.hero__title .hero__goal { display: grid; justify-items: start; color: var(--m4y-lime); }
.motion .hero__title .hero__goal { overflow: visible; }
.hero__word,
.hero__ghost { grid-area: 1 / 1; }
.hero__word { visibility: hidden; }
.hero__word.is-on { visibility: visible; }
/* Onion-Skin beim Wechsel: drei Konturen des neuen Worts bündeln sich zum Wort. */
.hero__ghost { color: transparent; -webkit-text-stroke: 2px var(--m4y-lilac); pointer-events: none; }
.motion .hero__goal { animation: m4y-reveal 700ms var(--m4y-ease-enter) 520ms both; }

/* Zielwahl: wie die Filter-Chips, etwas größer. Der Strich im aktiven Ziel zeigt die Zeit bis zum nächsten Wechsel. */
.goals { grid-area: goals; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: var(--m4y-space-48); }
.goal {
  position: relative;
  min-height: var(--m4y-min-target);
  padding: 0 22px;
  border: 1px solid var(--m4y-control);
  border-radius: var(--m4y-radius-pill);
  background: var(--m4y-ink);
  color: var(--m4y-paper);
  font: 700 17px/1 var(--m4y-font-display);
  cursor: pointer;
  transition: background-color var(--m4y-duration-ui) var(--m4y-ease-enter), border-color var(--m4y-duration-ui) var(--m4y-ease-enter), color var(--m4y-duration-ui) var(--m4y-ease-enter);
}
.goal:hover { border-color: var(--m4y-paper); }
.goal[aria-pressed="true"] { background: var(--m4y-lime); border-color: var(--m4y-lime); color: var(--m4y-ink); }
.goal__bar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--m4y-ink);
  transform: scaleX(0);
  transform-origin: left;
}
.goal.is-timing .goal__bar { animation: goal-bar var(--dwell, 6000ms) linear both; }
@keyframes goal-bar { to { transform: scaleX(1); } }
html:not(.js) .goals { display: none; }

/* Bühne: Kartenfächer vor einer Farbfläche in der Farbe des Ziels, dazu Label und Sticker.
   --stage-w ist die Breite der vorderen Karte; der Fächer braucht das 1,5-Fache. */
.hero__stage { grid-area: stage; align-self: center; }
.stage {
  --goal-c: var(--m4y-lilac);
  position: relative;
  width: calc(var(--stage-w) * 1.5);
  margin: 0;
}
.stage[data-goal-now="verkaufen"] { --goal-c: var(--m4y-coral); }
.stage[data-goal-now="team"] { --goal-c: var(--m4y-lime); }
.stage[data-goal-now="marke"] { --goal-c: var(--m4y-paper); }

.stage__blob {
  position: absolute;
  top: calc(var(--stage-w) * 16 / 18 + 8px);
  left: 58%;
  width: calc(var(--stage-w) * 1.9);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--goal-c);
  transform: translate(-50%, -50%);
  transition: background-color 500ms var(--m4y-ease-enter);
}
.motion .stage.is-cut .stage__blob { animation: blob-pop 700ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes blob-pop { from { transform: translate(-50%, -50%) scale(.82); } }

.stage__deck { position: relative; height: calc(var(--stage-w) * 16 / 9 + 56px); }
.card {
  position: absolute;
  top: 28px;
  left: 50%;
  width: var(--stage-w);
  aspect-ratio: 9 / 16;
  margin-left: calc(var(--stage-w) / -2);
  overflow: hidden;
  border: 3px solid var(--m4y-ink);
  border-radius: 20px;
  background: var(--m4y-stage);
  cursor: pointer;
  transition: transform 720ms cubic-bezier(.34, 1.4, .64, 1), z-index 720ms steps(1, jump-start), filter 400ms var(--m4y-ease-enter), box-shadow 400ms var(--m4y-ease-enter);
}
.card[data-pos="0"] { z-index: 4; transform: rotate(-3deg); box-shadow: 10px 10px 0 var(--m4y-ink); }
.card[data-pos="1"] { z-index: 3; transform: translate(27%, 3%) rotate(8deg) scale(.88); filter: brightness(.72); }
.card[data-pos="2"] { z-index: 2; transform: translate(-27%, 4%) rotate(-10deg) scale(.86); filter: brightness(.72); }
.card[data-pos="3"] { z-index: 1; transform: translate(4%, -5%) rotate(3deg) scale(.8); filter: brightness(.6); }
.card:not([data-pos="0"]):hover { filter: brightness(.95); }
html:not(.motion) .card { transition: none; }

.stage__vid { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Label: das aktive Ziel als Aufkleber, wird bei jedem Wechsel neu aufgeklebt. */
.stage__tag { position: absolute; z-index: 6; top: 0; left: 0; transform: rotate(-8deg); pointer-events: none; }
.stage__tag-item {
  display: none;
  padding: 6px 14px;
  border: 3px solid var(--m4y-ink);
  border-radius: 10px;
  background: var(--m4y-lime);
  color: var(--m4y-ink);
  font: 700 clamp(18px, 1.7vw, 26px)/1.1 var(--m4y-font-display);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.stage__tag-item.is-on { display: inline-block; }
.stage[data-goal-now="team"] .stage__tag-item { background: var(--m4y-lilac); }
.motion .stage.is-cut .stage__tag-item.is-on { animation: tag-slap 560ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tag-slap { from { transform: scale(1.5) rotate(-10deg); opacity: 0; } }

/* Sticker: dreht sich, solange der Film läuft. Mitte: Play-Dreieck aus dem Zeichen bzw. Pause. */
.sticker {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 10%;
  width: clamp(80px, 7.4vw, 108px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}
.sticker:hover { transform: scale(1.08) rotate(-6deg); }
.sticker:focus-visible { outline: var(--m4y-focus-width) solid var(--m4y-color-focus); outline-offset: var(--m4y-focus-offset); }
.sticker svg { display: block; width: 100%; height: 100%; }
.sticker__text { font: 700 10px/1 var(--m4y-font-display); fill: var(--m4y-paper); }
.sticker__ring { transform-origin: 50px 50px; }
.motion .sticker__ring { animation: m4y-spin 14s linear infinite; }
.sticker[aria-pressed="true"] .sticker__ring { animation-play-state: paused; }
.sticker__play { display: none; }
.sticker[aria-pressed="true"] .sticker__play { display: block; }
.sticker[aria-pressed="true"] .sticker__pause { display: none; }
html:not(.js) .sticker { display: none; }

.stage__cap {
  display: grid;
  justify-items: center;
  margin-top: var(--m4y-space-12);
  color: var(--m4y-muted);
  font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .06em;
}
.stage__cap-item { grid-area: 1 / 1; visibility: hidden; }
.stage__cap-item.is-on { visibility: visible; }

.hero__foot { grid-area: foot; max-width: 560px; }
.hero__lead { max-width: 46ch; margin-bottom: var(--m4y-space-32); color: var(--m4y-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
/* Unter den Buttons: Adresse zum Kopieren, wie im Kontakt, nur linksbündig und kleiner. */
.hero__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: var(--m4y-space-24); color: var(--m4y-muted); }
.hero__addr { color: var(--m4y-paper); font: 700 16px/24px var(--m4y-font-display); }

/* Tablet hochkant und Mobil: eine Spalte. Ziele direkt über dem Film, Text und Buttons darunter. */
@media (max-width: 899px) {
  .hero__inner {
    --stage-w: min(260px, 50vw);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "title" "goals" "stage" "foot";
    min-height: 0;
    padding-block: var(--m4y-space-48);
  }
  .hero__title { margin-bottom: var(--m4y-space-24); font-size: clamp(40px, 9vw, 72px); }
  .goals { margin-bottom: var(--m4y-space-24); }
  .hero__stage { justify-self: center; margin-bottom: var(--m4y-space-32); }
}
@media (max-width: 559px) {
  .goals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .goal { padding: 0 12px; font-size: 16px; }
  .goal__bar { left: 14px; right: 14px; }
  html:not(.js) .goals { display: none; }
}

/* ---------- Laufband ---------- */

.marquee { position: relative; overflow: hidden; padding-block: 40px 56px; }

.marquee__band { position: relative; margin-inline: -4vw; overflow: hidden; }
.marquee__band--lime { z-index: 1; background: var(--m4y-lime); color: var(--m4y-ink); transform: rotate(-2deg); }
.marquee__band--ink {
  margin-top: -8px;
  border-block: 1px solid var(--m4y-line);
  background: var(--m4y-ink);
  color: var(--m4y-lilac);
  transform: rotate(1.5deg);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: .45em;
  width: max-content;
  padding: .22em 4vw;
  font: 700 clamp(40px, 6.4vw, 96px)/1 var(--m4y-font-display);
  letter-spacing: -.03em;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track svg { flex: none; width: .62em; height: .66em; fill: currentColor; }
.marquee__band--ink .marquee__track { font-size: clamp(28px, 4vw, 56px); color: transparent; -webkit-text-stroke: 1.5px var(--m4y-lilac); }
.marquee__band--ink .marquee__track i { flex: none; width: .3em; height: .3em; border-radius: 50%; background: var(--m4y-lilac); }

/* ---------- Szenen (animierte Mini-Filme) ---------- */

.scene .a { transform-box: fill-box; animation-play-state: paused; }
.scene.is-live .a { animation-play-state: running; }
html:not(.motion) .scene .a { animation: none !important; }

.s0-p { transform-origin: center; animation: s0-pop 3.2s var(--m4y-ease-enter) infinite; }
.s0-p2 { animation-delay: .12s; }
.s0-p3 { animation-delay: .24s; }
@keyframes s0-pop {
  0%, 3% { opacity: 0; transform: scale(.6); }
  12% { opacity: 1; transform: scale(1.06); }
  17%, 86% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.92); }
}
.s0-c { transform-origin: 50% 100%; animation: s0-bounce 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s0-bounce {
  0%, 20% { transform: none; }
  28% { transform: translateY(-14px) scale(.9, 1.1); }
  36% { transform: scale(1.15, .85); }
  42%, 100% { transform: none; }
}
.s0-b { transform-origin: 0 50%; animation: s0-grow 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s0-grow { 0%, 30% { transform: scaleX(0); } 46%, 100% { transform: scaleX(1); } }
.s0-k { animation: s0-draw 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s0-draw { 0%, 44% { stroke-dashoffset: 1; } 58%, 100% { stroke-dashoffset: 0; } }
.s0-l { animation: s0-line 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s0-line {
  0%, 50% { stroke-dashoffset: 1; opacity: 1; }
  78%, 86% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.sway { animation: m4y-sway 2.8s cubic-bezier(.65, 0, .35, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes m4y-sway { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(var(--sway, -56px)); } }

.s2-feed { transform-box: view-box; animation: s2-feed 3s var(--m4y-ease-enter) infinite; }
@keyframes s2-feed {
  0%, 25% { transform: translateY(0); }
  40%, 65% { transform: translateY(-48px); }
  80%, 100% { transform: translateY(-96px); }
}
.s2-like { transform-origin: center; animation: s2-like 3s var(--m4y-ease-enter) infinite; }
@keyframes s2-like {
  0%, 28% { transform: scale(0); }
  36% { transform: scale(1.3); }
  44%, 58% { transform: scale(1); }
  66%, 100% { transform: scale(0); }
}

.s3-cursor { transform-box: view-box; animation: s3-cursor 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s3-cursor {
  0% { transform: translate(250px, 160px); }
  28% { transform: translate(96px, 100px); }
  32% { transform: translate(96px, 100px) scale(.8); }
  36%, 60% { transform: translate(96px, 100px) scale(1); }
  85%, 100% { transform: translate(250px, 160px); }
}
.s3-knob { animation: s3-knob 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s3-knob { 0%, 32% { transform: translateX(0); } 42%, 88% { transform: translateX(30px); } 96%, 100% { transform: translateX(0); } }
.s3-track { animation: s3-track 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s3-track { 0%, 32% { fill: #343740; } 42%, 88% { fill: #D9FF43; } 96%, 100% { fill: #343740; } }
.s3-card { animation: s3-card 3.2s var(--m4y-ease-enter) infinite; }
@keyframes s3-card {
  0%, 40% { opacity: 0; transform: translateX(150px); }
  56%, 86% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateX(150px); }
}

/* ---------- Leistungen ---------- */

.svc-list { border-top: 1px solid var(--m4y-line); }

.svc {
  --accent: var(--m4y-lime);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  grid-template-areas: "title desc tags" "title desc cta";
  column-gap: var(--m4y-gutter);
  row-gap: 12px;
  align-items: center;
  padding: 40px 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--m4y-line);
  transition: color var(--m4y-duration-ui) var(--m4y-ease-enter);
}
.svc[data-accent="lilac"] { --accent: var(--m4y-lilac); }
.svc[data-accent="coral"] { --accent: var(--m4y-coral); }
.svc[data-accent="paper"] { --accent: var(--m4y-paper); }

.svc__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 460ms var(--m4y-ease-enter);
}
.svc:is(:hover, :focus-within) { color: var(--m4y-ink); }
.svc:is(:hover, :focus-within) .svc__fill { transform: scaleY(1); transform-origin: 50% 100%; }

.svc__title {
  grid-area: title;
  font: 700 clamp(36px, 4.6vw, 68px)/1.02 var(--m4y-font-display);
  letter-spacing: -.035em;
}
.svc__link { color: inherit; text-decoration: none; }
/* Stretched Link: macht die ganze Zeile klickbar, auch über „Anfragen“.
   Die Hover-Verschiebung sitzt deshalb nicht auf .svc__title oder .svc__link selbst, sondern auf .svc__title-text:
   Ein transform auf einem Vorfahren von .svc__link würde dessen Bezugsrahmen für inset:0 auf die (kleine) Titel-Box verkleinern,
   statt auf .svc (die ganze Zeile) – „Anfragen“ wäre dann beim Hovern nicht mehr klickbar. */
.svc__title-text { display: inline-block; transition: transform 460ms var(--m4y-ease-enter); }
.svc:is(:hover, :focus-within) .svc__title-text { transform: translateX(16px); }
.svc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.svc__desc { grid-area: desc; max-width: 40ch; color: var(--m4y-muted); transition: color var(--m4y-duration-ui) var(--m4y-ease-enter); }
.svc__tags {
  grid-area: tags;
  color: var(--m4y-muted);
  font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .04em;
  transition: color var(--m4y-duration-ui) var(--m4y-ease-enter);
}
.svc:is(:hover, :focus-within) :is(.svc__desc, .svc__tags) { color: var(--m4y-ink); }

/* Fußzeile der Leistung: Link „Beispiel ansehen“ (liegt über dem großen Karten-Link) und „Anfragen“. */
.svc__foot { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.svc__example {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: var(--m4y-min-target);
  color: inherit;
  font: 700 17px/24px var(--m4y-font-display);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.svc__example:hover { text-decoration-thickness: 3px; }

.svc__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 17px/24px var(--m4y-font-display);
}
.svc__cta .icon { transition: transform var(--m4y-duration-ui) var(--m4y-ease-enter); }
.svc:is(:hover, :focus-within) .svc__cta .icon { transform: translateX(6px); }

.svc__scene {
  display: none;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: var(--m4y-radius-control);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.svc__scene svg { width: 100%; height: auto; }

/* Vorschau, die dem Zeiger folgt (nur Maus und ohne reduzierte Bewegung). */
.svc-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 25;
  width: 360px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--m4y-ink);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  opacity: 0;
  scale: .7;
  pointer-events: none;
  transition: opacity var(--m4y-duration-ui) var(--m4y-ease-enter), scale 420ms var(--m4y-ease-enter);
}
.svc-preview.is-on { opacity: 1; scale: 1; }
.svc-preview .scene { position: absolute; inset: 0; opacity: 0; transition: opacity var(--m4y-duration-ui) var(--m4y-ease-enter); }
.svc-preview .scene.is-on { opacity: 1; }
.svc-preview svg { width: 100%; height: 100%; }
html:not(.motion) .svc-preview { display: none; }

@media (hover: none), (pointer: coarse) {
  .svc__scene { display: block; }
  .svc-preview { display: none; }
}
html:not(.motion) .svc__scene { display: block; }

@media (max-width: 1199px) {
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "title title" "desc desc" "tags cta"; padding-inline: 16px; }
  .svc__foot { justify-content: flex-end; }
}
@media (max-width: 767px) {
  .svc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "desc" "tags" "cta"; padding: 32px 0; }
  .svc__fill { inset: 0 calc(-1 * var(--m4y-page-margin)); }
  .svc__foot { justify-content: flex-start; }
}

/* ---------- Showreel / Player ---------- */

/* „Bewegtbildfabrik.“ ist das längste Wort aller Abschnitts-Köpfe. Ab 1440 px ist die Spalte fest, die Schrift wüchse aber bis 96 px
   und liefe in den Begleittext. Deckel bei 86 px (= Größe bei 1440 px). */
.reel .section-head h2 { font-size: clamp(38px, 6vw, 86px); }

.reel__frame { transform: scale(var(--reel-s, 1)); transform-origin: 50% 0; will-change: transform; }

.player { padding: 16px; border-radius: var(--m4y-radius-card); background: var(--m4y-stage); }

.player__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--m4y-ink);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  cursor: pointer;
}
.player__screen .fs { width: 100%; height: 100%; }

.fs-h { font: 700 96px/1 var(--m4y-font-display); letter-spacing: -.04em; fill: var(--m4y-paper); }
.fs-h--ink { fill: var(--m4y-ink); }
.fs-word { font: 700 120px/1 var(--m4y-font-display); letter-spacing: -.03em; fill: var(--m4y-paper); }
.fs-lime { fill: var(--m4y-lime); }
.fs-tag { font: 400 40px/1 var(--m4y-font-body); fill: var(--m4y-muted); }
.fs-wm { font: 700 150px/1 var(--m4y-font-display); letter-spacing: -.04em; fill: var(--m4y-paper); }
.fs-wm.fs-lime { fill: var(--m4y-lime); }
.fs-flash { font: 700 190px/1 var(--m4y-font-display); letter-spacing: -.05em; fill: var(--m4y-ink); }
.fs-stamp-t { font: 700 40px/1 var(--m4y-font-display); fill: var(--m4y-ink); }

.player__big {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--m4y-control-height);
  padding: 0 24px 0 16px;
  border: 0;
  border-radius: var(--m4y-radius-pill);
  background: var(--m4y-lime);
  color: var(--m4y-ink);
  font: 700 17px/24px var(--m4y-font-display);
  cursor: pointer;
  transition: background-color var(--m4y-duration-feedback) var(--m4y-ease-enter);
}
.player__big:hover { background: var(--m4y-hover); }
.player__big:active { background: var(--m4y-pressed); }
.player__big .icon--replay,
.player.is-ended .player__big .icon--play { display: none; }
.player.is-ended .player__big .icon--replay { display: block; }
.player.is-playing .player__big { display: none; }

.player__caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 8px 16px;
  transform: translateX(-50%);
  border-radius: var(--m4y-radius-control);
  background: var(--m4y-ink);
  color: var(--m4y-paper);
  font: 400 18px/28px var(--m4y-font-body);
  text-align: center;
}
.player:not(.is-playing) .player__caption { bottom: 104px; }

.player__bar { display: flex; align-items: center; gap: 8px; padding: 12px 4px 0; }

[data-toggle] .icon--pause,
.player.is-playing [data-toggle] .icon--play { display: none; }
.player.is-playing [data-toggle] .icon--pause { display: block; }

[data-fullscreen] .icon--min,
.player.is-fullscreen [data-fullscreen] .icon--max { display: none; }
.player.is-fullscreen [data-fullscreen] .icon--min { display: block; }

.player__range {
  --p: 0%;
  flex: 1;
  min-width: 64px;
  height: 48px;
  margin: 0 8px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.player__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--m4y-lime) var(--p), var(--m4y-control) var(--p));
}
.player__range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: var(--m4y-lime);
  -webkit-appearance: none;
}
.player__range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--m4y-control); }
.player__range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--m4y-lime); }
.player__range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--m4y-lime); }

.player__time,
.player__note {
  color: var(--m4y-muted);
  font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .06em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.player__note { padding-inline: 8px; }

.player.is-fullscreen { display: flex; flex-direction: column; padding: 24px; border-radius: 0; background: var(--m4y-ink); }
.player.is-fullscreen .player__screen { flex: 1; aspect-ratio: auto; }

.transcript { max-width: 62ch; margin-top: var(--m4y-space-24); }
.transcript summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font: 700 17px/24px var(--m4y-font-display);
  text-decoration: underline;
  text-underline-offset: 6px;
  cursor: pointer;
  list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript ol { display: grid; gap: 12px; margin-top: 8px; color: var(--m4y-muted); }
.transcript li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.transcript__time { color: var(--m4y-paper); font: 400 14px/28px var(--m4y-font-display); letter-spacing: .06em; }

@media (max-width: 767px) {
  .player { padding: 8px; }
  .player__big { left: 12px; bottom: 12px; justify-content: center; width: 48px; height: 48px; padding: 0; }
  .player__big-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .player__caption { bottom: 12px; max-width: calc(100% - 24px); font-size: 14px; line-height: 20px; }
  .player:not(.is-playing) .player__caption { bottom: 72px; }
  .player__bar { gap: 0; padding-top: 8px; }
  .player__note { display: none; }
}

/* ---------- Arbeiten (Stilproben) ----------
   Filter als Aufkleber in den Zielfarben, rechts ein großer Umriss-Zähler.
   Karten als gekippte Plakate: heller Rand, harter Schatten in der Zielfarbe, Ziel-Aufkleber oben links. */

.works__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--m4y-space-24); margin-bottom: var(--m4y-space-48); }

.filters { display: none; flex-wrap: wrap; gap: 14px 12px; }
.js .filters { display: flex; }

.chip {
  --c: var(--m4y-paper);
  --r: -2deg;
  position: relative;
  min-height: 48px;
  padding: 0 20px;
  border: 3px solid var(--m4y-ink);
  border-radius: var(--m4y-radius-pill);
  background: var(--c);
  color: var(--m4y-ink);
  font: 700 18px/1 var(--m4y-font-display);
  cursor: pointer;
  opacity: .6;
  transform: rotate(var(--r));
  transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1), opacity var(--m4y-duration-ui) var(--m4y-ease-enter);
}
.chip[data-color="ink"] { --c: var(--m4y-ink); border-color: var(--m4y-paper); color: var(--m4y-paper); }
.chip[data-color="lilac"] { --c: var(--m4y-lilac); --r: 2deg; }
.chip[data-color="coral"] { --c: var(--m4y-coral); --r: -1deg; }
.chip[data-color="lime"] { --c: var(--m4y-lime); --r: 2.5deg; }
.chip[data-color="paper"] { --c: var(--m4y-paper); --r: -2.5deg; }
.chip:hover { opacity: 1; transform: rotate(0deg) translateY(-3px) scale(1.05); }
.chip:focus-visible { outline: var(--m4y-focus-width) solid var(--m4y-color-focus); outline-offset: var(--m4y-focus-offset); }
.chip[aria-pressed="true"] { opacity: 1; outline: 3px solid var(--m4y-paper); outline-offset: 3px; transform: rotate(0deg) scale(1.06); }

/* Zähler: große Umriss-Zahl wie im Ablauf, darunter klein „Stilproben“. */
.works__count { display: grid; justify-items: end; line-height: 1; }
.works__num {
  color: transparent;
  font: 700 clamp(72px, 9vw, 140px)/.85 var(--m4y-font-display);
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 2px var(--m4y-paper);
}
.works__label { margin-top: 6px; color: var(--m4y-muted); font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display); letter-spacing: .06em; }

.works__grid { row-gap: var(--m4y-space-64); }

.work {
  --c: var(--m4y-lime);
  --tilt: -1.5deg;
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(var(--tilt));
  transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1);
}
.work[data-cat="erklaeren"] { --c: var(--m4y-lilac); }
.work[data-cat="verkaufen"] { --c: var(--m4y-coral); }
.work[data-cat="team"] { --c: var(--m4y-lime); }
.work[data-cat="marke"] { --c: var(--m4y-paper); }
.work:nth-child(4n + 2) { --tilt: 1deg; }
.work:nth-child(4n + 3) { --tilt: -.6deg; }
.work:nth-child(4n) { --tilt: 1.6deg; }
.work:hover, .work:focus-within { transform: rotate(0deg) translateY(-8px); }

.work__media {
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--m4y-paper);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--c);
  transition: box-shadow 420ms cubic-bezier(.34, 1.56, .64, 1);
}
.work:hover .work__media, .work:focus-within .work__media { box-shadow: 14px 14px 0 var(--c); }
.work__media svg { width: 100%; height: 100%; }
.work__media.vid { border-radius: 18px; }

.work__tag {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: -10px;
  padding: 4px 12px;
  border: 3px solid var(--m4y-ink);
  border-radius: 10px;
  background: var(--c);
  color: var(--m4y-ink);
  font: 700 18px/1.2 var(--m4y-font-display);
  letter-spacing: -.01em;
  transform: rotate(-6deg);
  pointer-events: none;
}

.work h3 { font: 700 clamp(22px, 1.8vw, 28px)/1.15 var(--m4y-font-display); letter-spacing: -.02em; }
.work__desc { color: var(--m4y-muted); }
.work__meta {
  margin-top: auto;
  padding-top: 4px;
  color: var(--m4y-muted);
  font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .06em;
}

@media (max-width: 767px) {
  .work { grid-column: 1 / -1; }
  .works__bar { align-items: flex-start; }
  .works__count { justify-items: start; }
}

/* ---------- Videos im Hochformat (Stilproben und Kundenprojekt) ---------- */

.vid {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--m4y-radius-control);
  background: var(--m4y-ink);
}
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.js .vid video { cursor: pointer; }

.vid__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--m4y-min-target);
  height: var(--m4y-min-target);
  border: 1px solid rgba(245, 243, 235, .28);
  border-radius: var(--m4y-radius-pill);
  background: rgba(17, 18, 22, .72);
  color: var(--m4y-paper);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--m4y-duration-feedback) var(--m4y-ease-enter);
}
.vid__btn:hover { background: var(--m4y-ink); }
.vid__btn .icon { width: 22px; height: 22px; }
.vid__sound { right: 12px; bottom: 12px; }
.vid__sound .icon--sound { display: none; }
.vid__sound[aria-pressed="true"] .icon--sound { display: block; }
.vid__sound[aria-pressed="true"] .icon--mute { display: none; }

.vid__play {
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border: 0;
  background: var(--m4y-lime);
  color: var(--m4y-ink);
}
.vid__play:hover { background: var(--m4y-hover); }
.vid__play .icon { width: 28px; height: 28px; }
.vid.is-playing .vid__play { display: none; }

.work__media--portrait { aspect-ratio: 9 / 16; }

/* Desktop: zwölf Stilproben als Raster 4 × 3. Tablet und Mobil: Wisch-Streifen (siehe unten). */
@media (min-width: 1200px) {
  .works__grid--video { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .works__grid--video { column-gap: var(--m4y-space-32); }
  .works__grid--video .work { grid-column: auto; }
}

/* Tablet und Mobil: die Filme laufen als Wisch-Streifen, die Karte rastet ein. */
@media (max-width: 1199px) {
  .works__grid--video {
    display: flex;
    gap: var(--m4y-gutter);
    margin-inline: calc(-1 * var(--m4y-page-margin));
    padding-inline: var(--m4y-page-margin);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--m4y-page-margin);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-block: 24px 28px;
  }
  .works__grid--video::-webkit-scrollbar { display: none; }
  .works__grid--video .work { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
}
/* Website-Hero (live): Inline-SVG mit CSS-Animationen statt Video. Läuft nur, solange die Karte im Bild ist
   (main.js setzt .is-live); bei reduzierter Bewegung steht das Bild still. */
/* hero-live:css:start */
.hero-live { position: relative; aspect-ratio: 9 / 16; background: #FFF8EE; }
.hero-live svg { display: block; width: 100%; height: 100%; }
.hero-live__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: var(--m4y-radius-pill);
  background: rgba(17, 18, 22, .84);
  color: var(--m4y-paper);
  font: 700 14px/20px var(--m4y-font-display);
  letter-spacing: .04em;
}
.hl-url { font: 400 10px/1 var(--m4y-font-body); fill: #8C7B66; text-anchor: middle; }
.hl-logo { font: 700 17px/1 var(--m4y-font-display); fill: #0F2A3D; letter-spacing: -.02em; }
.hl-h { font: 700 26px/1 var(--m4y-font-display); fill: #0F2A3D; letter-spacing: -.03em; }
.hl-s { font: 400 12px/1 var(--m4y-font-body); fill: #5A4A3A; }
.hl-b { font: 700 12px/1 var(--m4y-font-display); fill: #FFF8EE; text-anchor: middle; }
.hl-l { font: 700 13px/1 var(--m4y-font-display); fill: #0F2A3D; text-anchor: middle; }
.hl-f { font: 400 10px/1 var(--m4y-font-body); fill: #8C7B66; text-anchor: middle; }
.hero-live .ha { transform-box: fill-box; transform-origin: center; animation-play-state: paused; }
.hero-live.is-live .ha { animation-play-state: running; }
html:not(.motion) .hero-live .ha { animation: none !important; }
.hl-rays { animation: hl-spin 24s linear infinite; }
.hl-sun { animation: hl-float 3s ease-in-out infinite alternate; }
.hl-shine { transform-box: view-box; animation: hl-shine 4s var(--m4y-ease-enter) infinite; }
.hl-btn { animation: hl-pulse 3s ease-in-out infinite; }
.hl-ic1 { animation: hl-spin 8s linear infinite; }
.hl-bat { transform-origin: 50% 100%; animation: hl-charge 3s var(--m4y-ease-enter) infinite; }
.hl-bolt { animation: hl-flash 1.6s ease-in-out infinite; }
@keyframes hl-spin { to { transform: rotate(1turn); } }
@keyframes hl-float { from { transform: translateY(5px); } to { transform: translateY(-5px); } }
@keyframes hl-shine { 0%, 35% { transform: translateX(0); } 85%, 100% { transform: translateX(300px); } }
@keyframes hl-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.05); } }
@keyframes hl-charge { 0% { transform: scaleY(.12); } 70%, 100% { transform: scaleY(1); } }
@keyframes hl-flash { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: .4; transform: scale(.88); } }
/* hero-live:css:end */

/* ---------- Kundenprojekt ----------
   Große Headline, Video als gekippte Karte vor lila Fläche (wie die Bühne im Hero),
   rechts drei Story-Schritte an einer Linie, darunter Zitat und Ergebniszahl. */

.case__head { display: grid; gap: var(--m4y-space-16); margin-bottom: var(--m4y-space-64); }
.case__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--m4y-radius-pill);
  background: var(--m4y-lime);
  color: var(--m4y-ink);
  font: 700 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case__client {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--m4y-min-target);
  color: var(--m4y-lilac);
  font: 700 18px/24px var(--m4y-font-display);
  text-decoration: none;
  text-underline-offset: 6px;
}
.case__client:hover { text-decoration: underline; }
.case__client .icon { width: 20px; height: 20px; transform: rotate(-45deg); }

.case__title { max-width: 14ch; font: 700 clamp(48px, 7vw, 112px)/.95 var(--m4y-font-display); letter-spacing: -.04em; }

.case__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--m4y-space-64); align-items: center; }

.case__media { display: grid; justify-items: center; }
.case__stage { position: relative; width: min(100%, 300px); margin-block: 24px; }
.case__blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 135%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--m4y-lilac);
  transform: translate(-50%, -50%);
}
.case__card {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--m4y-ink);
  border-radius: 20px;
  box-shadow: 12px 12px 0 var(--m4y-ink);
  transform: rotate(-3deg);
}
.case__card .vid { border-radius: 0; }
.case__tag {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: -20px;
  padding: 6px 14px;
  border: 3px solid var(--m4y-ink);
  border-radius: 10px;
  background: var(--m4y-lime);
  color: var(--m4y-ink);
  font: 700 clamp(18px, 1.7vw, 26px)/1.1 var(--m4y-font-display);
  letter-spacing: -.02em;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* Story: drei Schritte an einer Linie, jeder Punkt in seiner Farbe. */
.case__story { display: grid; gap: var(--m4y-space-32); padding-left: 28px; border-left: 2px solid var(--m4y-line); }
.case__story li { --c: var(--m4y-coral); position: relative; }
.case__story li:nth-child(2) { --c: var(--m4y-lilac); }
.case__story li:nth-child(3) { --c: var(--m4y-lime); }
.case__story li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -38px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--m4y-ink);
  border-radius: 50%;
  background: var(--c);
}
.case__step { color: var(--c); font: 700 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display); letter-spacing: .06em; }
.case__story p { max-width: 26ch; margin-top: 4px; font: 700 clamp(22px, 2.1vw, 32px)/1.2 var(--m4y-font-display); letter-spacing: -.015em; }

.case__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--m4y-space-48); }
.case__chips li {
  padding: 6px 14px;
  border: 1px solid var(--m4y-control);
  border-radius: var(--m4y-radius-pill);
  color: var(--m4y-paper);
  font: 400 15px/20px var(--m4y-font-display);
}

/* Eigene Klasse, nicht .transcript: frame-study.js liest alle .transcript li als Untertitel. */
.case__transcript { width: min(100%, 300px); margin-top: var(--m4y-space-16); }
.case__transcript summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--m4y-muted);
  font: 400 15px/24px var(--m4y-font-display);
  text-decoration: underline;
  text-underline-offset: 6px;
  cursor: pointer;
  list-style: none;
}
.case__transcript summary:hover { color: var(--m4y-paper); }
.case__transcript summary::-webkit-details-marker { display: none; }
.case__transcript ol { display: grid; gap: 12px; margin-top: 8px; padding-left: 20px; list-style: decimal; color: var(--m4y-muted); font-size: 15px; }

/* Platzhalter bleiben sichtbar markiert, bis echte Inhalte drinstehen. */
.is-placeholder { outline: 1px dashed var(--m4y-warning); outline-offset: 6px; }

@media (max-width: 899px) {
  .case__head { margin-bottom: var(--m4y-space-48); }
  .case__grid { grid-template-columns: minmax(0, 1fr); gap: var(--m4y-space-48); }
  .case__stage { width: min(64vw, 280px); }
}

/* ---------- Ablauf: Fließband ----------
   Grundfassung (ohne JS oder bei reduzierter Bewegung): vier farbige Blöcke untereinander, jeder mit seinem Teil.
   Bewegt-Fassung (.motion): Sektion bleibt stehen, Stationen ziehen seitlich durch, unten läuft das Band. */

.process { padding-block: var(--m4y-section-gap); }
.process__head p { max-width: 62ch; margin-top: 12px; color: var(--m4y-muted); }
.process__roof, .belt { display: none; }

.stations { display: grid; gap: var(--m4y-gutter); margin-top: var(--m4y-space-48); }
.station {
  --c: var(--m4y-lime);
  position: relative;
  overflow: hidden;
  background: var(--c);
  color: var(--m4y-ink);
}
.station[data-color="lilac"] { --c: var(--m4y-lilac); }
.station[data-color="coral"] { --c: var(--m4y-coral); }
.station[data-color="paper"] { --c: var(--m4y-paper); }
html:not(.motion) .station { width: calc(100% - 2 * var(--m4y-page-margin)); max-width: var(--m4y-max-width); margin-inline: auto; border-radius: var(--m4y-radius-card); }

.station__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--m4y-space-32); padding-block: var(--m4y-space-48); }
.station__no {
  position: absolute;
  top: 12px;
  right: var(--m4y-page-margin);
  color: transparent;
  font: 700 clamp(120px, 20vw, 300px)/.85 var(--m4y-font-display);
  letter-spacing: -.05em;
  -webkit-text-stroke: 2px var(--m4y-ink);
  pointer-events: none;
}
.station__label { font: 700 16px/22px var(--m4y-font-display); letter-spacing: .06em; }
.station h3 { margin-top: 6px; font: 700 clamp(44px, 6vw, 96px)/1 var(--m4y-font-display); letter-spacing: -.035em; }
.station__text > p:not(.station__label):not(.station__chip) { max-width: 34ch; margin-top: 16px; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; }
.station__chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 20px;
  padding: 8px 16px;
  border: 2px solid var(--m4y-ink);
  border-radius: var(--m4y-radius-pill);
  background: var(--m4y-ink);
  color: var(--m4y-paper);
  font: 700 17px/22px var(--m4y-font-display);
}
.station__chip span { color: var(--c); }
.station__item svg { display: block; width: clamp(110px, 14vw, 180px); height: auto; overflow: visible; }

@media (max-width: 767px) {
  .station__inner { grid-template-columns: minmax(0, 1fr); }
  .station__item { justify-self: end; }
}

/* ---------- Bewegt-Fassung ---------- */

.motion .process { padding-block: 0; }
.motion .process__track { height: 420vh; }
.motion .process__sticky {
  position: sticky;
  top: 80px;
  height: calc(100svh - 80px);
  overflow: hidden;
  background: var(--m4y-ink);
}

/* Dach: Sägezahn wie im Zeichen, läuft halb so schnell mit. */
.motion .process__roof {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M0 0H120V30L60 6V30L0 6Z' fill='%23111216'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 30px;
}

.motion .process__head { position: absolute; z-index: 4; top: 48px; left: 0; right: 0; pointer-events: none; }
.motion .process__head h2 { font: 700 clamp(30px, 4vw, 64px)/1.05 var(--m4y-font-display); letter-spacing: -.03em; color: var(--m4y-ink); }
.motion .process__head p { margin-top: 8px; color: var(--m4y-ink); opacity: .75; font-size: 18px; }

.motion .stations { position: absolute; inset: 0; display: flex; gap: 0; margin: 0; will-change: transform; }
.motion .station { flex: 0 0 100%; height: 100%; }
.motion .station__inner { display: block; height: 100%; padding-top: clamp(170px, calc(4vw + 130px), 200px); }
.motion .station__item { display: none; }
/* Zahl läuft schneller als die Station (Parallaxe) und neigt sich mit dem Tempo. */
.motion .station__no {
  top: clamp(110px, 16vh, 150px);
  transform: translateX(calc(var(--d, 0) * -28vw)) skewX(var(--skew, 0deg));
  will-change: transform;
}
.motion .station h3 { font-size: clamp(48px, 6.5vw, 104px); }

/* Band: Teil, Gurt mit laufender Markierung, Rollen, Fortschritt. */
.motion .belt { position: absolute; z-index: 2; inset: auto 0 0; display: block; height: 0; }
.belt__item {
  position: absolute;
  bottom: 58px;
  left: 62%;
  width: clamp(130px, 13vw, 190px);
  margin-left: calc(clamp(130px, 13vw, 190px) / -2);
  transform-origin: 50% 100%;
}
.belt__lean { position: relative; aspect-ratio: 200 / 220; transform-origin: 50% 100%; }
.bi { position: absolute; inset: 0; opacity: 0; transform: scale(.4); transform-origin: 50% 100%; transition: opacity 180ms ease-out, transform 520ms cubic-bezier(.34, 1.56, .64, 1); }
.bi.is-on { opacity: 1; transform: none; }
.bi-svg { display: block; width: 100%; height: 100%; overflow: visible; }

.belt__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  height: 20px;
  background:
    linear-gradient(90deg, var(--m4y-lime) 0 16px, transparent 16px) 0 3px / 30px 3px repeat-x,
    var(--m4y-ink);
}
.belt__rollers { position: absolute; left: 0; bottom: 6px; display: flex; height: 30px; will-change: transform; }
.belt__rollers svg { flex: none; width: 30px; height: 30px; margin-right: 42px; }
.belt__rollers g { transform: rotate(var(--rot, 0deg)); transform-origin: 15px 15px; }
.process__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(17, 18, 22, .25); }
.process__progress span { position: absolute; inset: 0; background: var(--m4y-ink); transform: scaleX(0); transform-origin: 0 50%; }

/* Kleine Dauer-Animationen in den Teilen: nur in der Bewegt-Fassung. */
.motion .bi-svg .bi-dot,
.motion .bi-svg .bi-ball,
.motion .bi-svg .bi-shadow,
.motion .bi-svg .bi-pencil,
.motion .bi-svg .bi-ghost,
.motion .bi-svg .bi-stamp { transform-box: fill-box; transform-origin: center; }
.motion .bi-svg .bi-dot { animation: bi-dot 1.1s ease-in-out var(--d, 0s) infinite; }
@keyframes bi-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-12px); } }
.motion .bi-svg .bi-scribble { animation: bi-draw 1.8s var(--m4y-ease-enter) infinite; }
@keyframes bi-draw { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
.motion .bi-svg .bi-pencil { transform-origin: 50% 100%; animation: bi-wiggle .45s ease-in-out infinite alternate; }
@keyframes bi-wiggle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.motion .bi-svg .bi-ghost { animation: bi-ghost 1.4s cubic-bezier(.65, 0, .35, 1) var(--d, 0s) infinite alternate; }
@keyframes bi-ghost { to { transform: translate(-10px, 8px); } }
.motion .bi-svg .bi-ball { transform-origin: 50% 100%; animation: bi-ball .9s infinite; }
@keyframes bi-ball {
  0%, 100% { transform: translateY(0) scale(1.25, .75); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  12% { transform: translateY(-8px) scale(.9, 1.12); }
  50% { transform: translateY(-86px) scale(1); animation-timing-function: cubic-bezier(.65, 0, .8, .4); }
  92% { transform: translateY(0) scale(.95, 1.06); }
}
.motion .bi-svg .bi-shadow { animation: bi-shadow .9s infinite; }
@keyframes bi-shadow { 0%, 100% { transform: scaleX(1.2); opacity: .35; } 50% { transform: scaleX(.5); opacity: .12; } }
.motion .bi.is-on .bi-stamp { animation: bi-stamp 620ms cubic-bezier(.34, 1.56, .64, 1) 200ms both; }
@keyframes bi-stamp { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } }
.bi-stamp-t { font: 700 17px/1 var(--m4y-font-display); fill: var(--m4y-ink); }

@media (max-width: 767px) {
  .motion .process__head p { display: none; }
  .motion .station__inner { padding-top: 140px; }
  .motion .station h3 { font-size: 44px; }
  .motion .station__text > p:not(.station__label):not(.station__chip) { font-size: 17px; line-height: 26px; }
  .motion .station__no { top: auto; bottom: 70px; left: var(--m4y-page-margin); right: auto; font-size: 104px; }
  .belt__item { left: auto; right: var(--m4y-page-margin); width: 130px; margin-left: 0; }
}

/* ---------- FAQ: „Frag die Fabrik.“ ----------
   Links Fragen als schräge Aufkleber, rechts ein Chatfenster mit hartem Schatten.
   Ohne JS: Aufkleber weg, alle Fragen und Antworten stehen im Fenster. */

html:not(.js) .js-only { display: none; }

.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--m4y-space-64); align-items: start; }
.faq__head h2 { font: 700 clamp(48px, 6.4vw, 104px)/.95 var(--m4y-font-display); letter-spacing: -.04em; }
.faq__sub { margin-top: 16px; color: var(--m4y-muted); }
.faq__more { margin-top: var(--m4y-space-32); color: var(--m4y-muted); }
.faq__more a { color: var(--m4y-paper); text-underline-offset: 5px; }

/* Aufkleber: Farbe und Neigung im Wechsel, beim Hovern richten sie sich auf und federn. */
.faq__chips { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: var(--m4y-space-32); }
html:not(.js) .faq__chips { display: none; }
.ask {
  --c: var(--m4y-lime);
  --r: -3deg;
  padding: 12px 20px;
  border: 3px solid var(--m4y-ink);
  border-radius: var(--m4y-radius-pill);
  background: var(--c);
  color: var(--m4y-ink);
  font: 700 18px/1.2 var(--m4y-font-display);
  cursor: pointer;
  transform: rotate(var(--r));
  transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1), opacity var(--m4y-duration-ui) var(--m4y-ease-enter);
}
.ask[data-color="lilac"] { --c: var(--m4y-lilac); }
.ask[data-color="coral"] { --c: var(--m4y-coral); }
.ask[data-color="paper"] { --c: var(--m4y-paper); }
.ask:nth-child(2) { --r: 2deg; }
.ask:nth-child(3) { --r: -2deg; }
.ask:nth-child(4) { --r: 3deg; }
.ask:nth-child(5) { --r: 1deg; }
.ask:nth-child(6) { --r: -2.5deg; }
.ask:hover { transform: rotate(0deg) translateY(-4px) scale(1.06); }
.ask:active { transform: rotate(0deg) scale(.95); transition-duration: 80ms; }
.ask:focus-visible { outline: var(--m4y-focus-width) solid var(--m4y-color-focus); outline-offset: var(--m4y-focus-offset); }
.ask[aria-pressed="true"] { opacity: .6; }
.ask[aria-pressed="true"]::after { content: " ✓"; }

/* Chatfenster */
.chat {
  overflow: hidden;
  border: 3px solid var(--m4y-paper);
  border-radius: var(--m4y-radius-card);
  background: var(--m4y-stage);
  box-shadow: 12px 12px 0 var(--m4y-lilac);
}
.chat__bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--m4y-line); }
.chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--m4y-ink); }
.chat__avatar svg { width: 22px; height: 24px; }
.chat__name { font: 700 17px/1 var(--m4y-font-display); }
.chat__status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--m4y-success); font: 400 14px/1 var(--m4y-font-display); }
.chat__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.motion .chat__status::before { animation: chat-live 2s ease-in-out infinite; }
@keyframes chat-live { 50% { opacity: .3; } }

.chat__log {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 520px;
  padding: 24px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html:not(.js) .chat__log { height: auto; }
/* Leerer Start: dezenter Hinweis mittig im Fenster, verschwindet mit der ersten Frage. */
.chat__empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: auto;
  color: var(--m4y-muted);
  font: 400 17px/26px var(--m4y-font-display);
  text-align: center;
}
.chat__empty svg { width: 44px; height: 47px; fill: var(--m4y-line); }
.msg-pair { display: flex; flex-direction: column; gap: 14px; }
.msg-pair[hidden] { display: none; }

.msg { max-width: 82%; margin: 0; padding: 12px 18px; border-radius: 22px; }
.msg[hidden] { display: none; }
.msg--q {
  --c: var(--m4y-lime);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--c);
  color: var(--m4y-ink);
  font: 700 18px/26px var(--m4y-font-display);
  transform-origin: 100% 100%;
}
.msg--q[data-color="lilac"] { --c: var(--m4y-lilac); }
.msg--q[data-color="coral"] { --c: var(--m4y-coral); }
.msg--q[data-color="paper"] { --c: var(--m4y-paper); }
.msg--a {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--m4y-paper);
  color: var(--m4y-ink);
  font: 400 17px/26px var(--m4y-font-body);
  transform-origin: 0 100%;
}
.msg--typing { display: flex; align-self: flex-start; gap: 6px; padding: 16px 20px; border-bottom-left-radius: 6px; background: var(--m4y-paper); }
.msg--typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--m4y-ink); animation: chat-dot 1s ease-in-out infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }

@media (max-width: 899px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: var(--m4y-space-48); }
  .chat__log { height: min(62vh, 480px); }
}
@media (max-width: 559px) {
  .ask { padding: 10px 16px; font-size: 16px; }
  .msg { max-width: 90%; }
  .msg--q { font-size: 17px; line-height: 24px; }
  .msg--a { font-size: 16px; line-height: 24px; }
  .chat { box-shadow: 8px 8px 0 var(--m4y-lilac); }
}

/* ---------- Kontakt: E-Mail-Button ----------
   Oben das Sägezahndach als Abschluss der Fabrik, riesige Headline, optional ein Ziel (Aufkleber wie in der FAQ),
   ein großer lime Button mit hartem Schatten, darunter die Adresse zum Kopieren. */

.js .no-js { display: none; }

.contact { position: relative; overflow: hidden; padding-top: calc(var(--m4y-section-gap) + 40px); text-align: center; }
.contact__roof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40'%3E%3Cpath d='M0 0H160V40L80 8V40L0 8Z' fill='%23D9FF43'/%3E%3C/svg%3E") repeat-x 0 0 / 160px 40px;
}

.contact__inner { display: grid; justify-items: center; }
.contact h2 { max-width: 12ch; font: 700 clamp(56px, 9vw, 150px)/.92 var(--m4y-font-display); letter-spacing: -.045em; }
.contact__lead { max-width: 46ch; margin-top: var(--m4y-space-24); color: var(--m4y-muted); }

.contact__goals { margin-top: var(--m4y-space-48); }
.contact__hint { font: 700 16px/24px var(--m4y-font-display); }
.contact__hint span { color: var(--m4y-muted); font-weight: 400; }
.contact__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; margin-top: 16px; }
/* Gewähltes Ziel: aufgerichtet und umrandet (statt gedimmt wie in der FAQ). */
.contact__goal[aria-pressed="true"] { opacity: 1; outline: 3px solid var(--m4y-paper); outline-offset: 3px; transform: rotate(0deg) scale(1.06); }

.mailbtn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--m4y-space-48);
  padding: 24px 44px;
  border: 4px solid var(--m4y-paper);
  border-radius: var(--m4y-radius-pill);
  background: var(--m4y-lime);
  color: var(--m4y-ink);
  font: 700 clamp(26px, 3vw, 44px)/1 var(--m4y-font-display);
  letter-spacing: -.02em;
  text-decoration: none;
  box-shadow: 10px 10px 0 var(--m4y-lilac);
  transform: rotate(-2deg);
  transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 380ms cubic-bezier(.34, 1.56, .64, 1);
}
.mailbtn:hover { transform: rotate(0deg) translate(-4px, -4px) scale(1.04); box-shadow: 16px 16px 0 var(--m4y-lilac); }
.mailbtn:active { transform: translate(6px, 6px); box-shadow: 2px 2px 0 var(--m4y-lilac); transition-duration: 80ms; }
.mailbtn:focus-visible { outline: var(--m4y-focus-width) solid var(--m4y-color-focus); outline-offset: 6px; }
.mailbtn .trail, .mailbtn .icon { width: 34px; height: 34px; }
html:not(.js) .mailbtn { display: none; }

.contact__alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-top: var(--m4y-space-32); color: var(--m4y-muted); }
.contact__addr { color: var(--m4y-paper); font: 700 18px/24px var(--m4y-font-display); }
.contact__copy {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--m4y-control);
  border-radius: var(--m4y-radius-pill);
  background: transparent;
  color: var(--m4y-paper);
  font: 400 14px/1 var(--m4y-font-display);
  cursor: pointer;
}
.contact__copy:hover { border-color: var(--m4y-paper); }
.contact__copied { color: var(--m4y-success); font: 400 14px/20px var(--m4y-font-display); }

@media (max-width: 559px) {
  .mailbtn { padding: 20px 28px; box-shadow: 8px 8px 0 var(--m4y-lilac); }
  .mailbtn .trail, .mailbtn .icon { width: 28px; height: 28px; }
}

/* ---------- Footer ---------- */

.footer { padding-block: var(--m4y-space-96) var(--m4y-space-32); border-top: 1px solid var(--m4y-line); }

.footer__shout {
  display: block;
  margin-bottom: var(--m4y-space-96);
  color: var(--m4y-paper);
  font: 700 clamp(56px, 11vw, 176px)/.92 var(--m4y-font-display);
  letter-spacing: -.045em;
  text-decoration: none;
}
.footer__line { display: block; }
.footer__line + .footer__line { color: var(--m4y-lime); }
.footer__shout:hover .footer__line + .footer__line,
.footer__shout:focus-visible .footer__line + .footer__line { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; }

.footer__inner { row-gap: var(--m4y-space-32); }
.footer__brand { grid-column: 1 / span 6; }
.footer__brand .wordmark { max-width: none; margin-top: 0; font-size: 26px; color: var(--m4y-paper); }
.footer__brand p { max-width: 32ch; margin-top: 16px; color: var(--m4y-muted); }
.footer__nav { grid-column: 7 / span 3; }
.footer__legal { grid-column: 10 / span 3; }

.footer ul { display: grid; gap: 4px; }
.footer__inner a {
  display: inline-block;
  padding-block: 10px;
  font: 400 16px/24px var(--m4y-font-display);
  text-decoration: none;
}
.footer__inner a:hover,
.footer__inner a:focus-visible { text-decoration: underline; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: var(--m4y-space-48);
  padding-top: var(--m4y-space-24);
  border-top: 1px solid var(--m4y-line);
  color: var(--m4y-muted);
  font: 400 var(--m4y-label-size)/var(--m4y-label-line) var(--m4y-font-display);
  letter-spacing: .06em;
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover,
.footer__bottom a:focus-visible { text-decoration: underline; }

@media (max-width: 1199px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__nav, .footer__legal { grid-column: span 4; }
}
@media (max-width: 767px) {
  .footer { padding-top: var(--m4y-space-64); }
  .footer__shout { margin-bottom: var(--m4y-space-64); }
  .footer__nav, .footer__legal { grid-column: span 2; }
}

/* ---------- Rechtliches (impressum.html, datenschutz.html) ---------- */

.legal-header .site-header__inner { flex-wrap: nowrap; }
.legal { padding-block: var(--m4y-space-96) var(--m4y-space-128); }
.legal__inner { max-width: 760px; }
.legal__title { font: 700 clamp(44px, 7vw, 104px)/.95 var(--m4y-font-display); letter-spacing: -.04em; overflow-wrap: anywhere; hyphens: auto; }
.legal__lead { margin-top: var(--m4y-space-24); color: var(--m4y-muted); }
.legal section { margin-top: var(--m4y-space-64); }
.legal h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--m4y-font-display); letter-spacing: -.02em; }
.legal h3 { margin-top: var(--m4y-space-32); font-size: 20px; line-height: 28px; }
.legal p, .legal ul, .legal address { margin-top: var(--m4y-space-16); }
.legal address { font-style: normal; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal li::marker { color: var(--m4y-lime); }
.legal a { overflow-wrap: anywhere; }
.legal__stand { margin-top: var(--m4y-space-64); color: var(--m4y-muted); }
.footer--legal { padding-top: var(--m4y-space-64); }
.footer__legal a[aria-current="page"] { color: var(--m4y-lime); }

@media (max-width: 767px) {
  .legal-header .site-header__inner { gap: 12px; }
  .legal-header .btn { padding-inline: 16px; }
  .legal-header__long { display: none; }
  .legal { padding-block: var(--m4y-space-64) var(--m4y-space-96); }
  .legal section { margin-top: var(--m4y-space-48); }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn[aria-busy="true"] .icon--spin { animation: none; }
}
