/* ==========================================================================
   Meinfluss E-Book Funnel: Basis, Squeeze-Page und Bühne
   ========================================================================== */

/* Poppins liegt lokal, ein Aufruf zu Google Fonts wäre in Deutschland ein
   Abmahnthema. Geladen werden nur 400, 500, 600 und 700. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------- Tokens ---- */

/* Farben aus dem hellen Modus von meinfluss.com, damit Anzeige, Seite,
   E-Book und Homepage wie aus einem Guss wirken. */
:root {
  --bg: #fbfaf6;
  --surface: #f1eee7;
  --well: #ece8df;
  --panel: #ffffff;
  --ink: #15140f;
  --ink-2: #3c3a33;
  --muted: #6e6a5e;
  --line: rgba(21, 20, 15, 0.1);
  --gold: #be9c67;
  --gold-lite: #e8d5a8;
  /* Gold als Textfarbe auf Creme, 4,9:1 */
  --gold-deep: #8c6a2a;
  /* Dunkle Schrift auf Gold, Weiß auf Gold verfehlt WCAG AA */
  --on-gold: #1a1404;
  --ok: #18a957;
  --bad: #b4473d;
  --stage: #110f0b;
  --radius: 14px;
  --container: 1160px;
  --top-h: 46px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ------------------------------------------------------------ Elemente ---- */

.top {
  height: var(--top-h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.logo {
  width: 132px;
  height: auto;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(190, 156, 103, 0.22);
}

/* Unterstreichung wie auf der Homepage: ein heller Goldbalken hinter dem Wort */
.mark {
  background: linear-gradient(transparent 64%, rgba(190, 156, 103, 0.42) 64% 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
}

.accent {
  color: var(--gold-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 12px;
  padding: 17px 30px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(140, 106, 42, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  background: #c9aa78;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(140, 106, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 20px 34px;
  font-size: 17px;
}

.btn .arrow {
  flex: none;
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b1f0c;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 20, 8, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(26, 20, 8, 0);
  }
}

.btn-ghost {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 20, 15, 0.18);
}

.btn-ghost:hover {
  background: #2a2820;
  box-shadow: 0 14px 30px rgba(21, 20, 15, 0.24);
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border-radius: 50%;
  background: rgba(190, 156, 103, 0.18) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c6a2a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.check-list strong {
  color: var(--ink);
  font-weight: 600;
}

.foot {
  padding: 26px 0 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.foot a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.foot a:hover {
  color: var(--ink);
}

.foot span + span::before {
  content: "·";
  margin: 0 8px;
}

/* ===================================================== Squeeze-Page ===== */

/* Die Falz füllt genau das Fenster: Kopf, Hero und auf dem Desktop auch der
   Beleg-Streifen. Auf dem Handy rechnet der Hero allein mit 100svh, siehe
   Media-Query am Ende. */
.fold {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0 26px;
  text-align: center;
}

.hero h1 {
  margin: 18px auto 0;
  max-width: 21em;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero-grid {
  width: 100%;
  margin-top: clamp(24px, 3.4vh, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
  text-align: left;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .sub {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 34em;
}

.hero .sub strong {
  color: var(--ink);
  font-weight: 600;
}

.hero .check-list {
  margin-top: 22px;
}

/* Kurz- und Langfassung der Bullets: auf dem Handy zählt jede Zeile */
.b-short {
  display: none;
}

.ki-note {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed rgba(140, 106, 42, 0.45);
  border-radius: var(--radius);
  background: rgba(190, 156, 103, 0.08);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.ki-note svg {
  flex: none;
  margin-top: 1px;
  color: var(--gold-deep);
}

.ki-note strong {
  color: var(--ink);
  font-weight: 600;
}

.hero .btn {
  margin-top: 26px;
}

.cta-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.cta-note span + span::before {
  content: "·";
  margin: 0 7px;
  color: var(--gold);
}

/* Beleg-Streifen: Namen statt Logos, so wie im E-Book */
.proof {
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  text-align: center;
}

.proof-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.proof-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-names li {
  display: flex;
  align-items: center;
}

.proof-names li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 18px;
  border-radius: 50%;
  background: var(--gold);
}

/* ------------------------------------------------------------- Bühne ---- */

/* Die Szene ist in festen 500 x 400 Einheiten gezeichnet und wird von stage.js
   als Ganzes auf die Bühne skaliert (--s). Wer innen etwas verschiebt, rechnet
   also in Szenen-Pixeln, nicht in Bildschirm-Pixeln. */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: calc(100svh - 330px);
  min-height: 300px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(190, 156, 103, 0.26), transparent 70%),
    radial-gradient(90% 70% at 15% 0%, rgba(232, 213, 168, 0.1), transparent 60%),
    linear-gradient(160deg, #1d1912, var(--stage) 55%, #0b0a07);
  box-shadow: 0 30px 70px rgba(21, 20, 15, 0.22), 0 0 0 1px rgba(21, 20, 15, 0.06);
}

/* Laborraster, zur Mitte hin sichtbar, an den Rändern ausgeblendet */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(232, 213, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 168, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
}

.scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 500px;
  height: 400px;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  color: #f4efe6;
  font-family: var(--font);
  line-height: 1.4;
}

/* Bis stage.js skaliert und den Startzustand gesetzt hat, bleibt die Szene
   unsichtbar. Läuft kein Skript, erscheint nach kurzer Zeit das Endbild. */
.js .scene:not(.ready) {
  opacity: 0;
  animation: scene-fallback 0s 2.5s forwards;
}

@keyframes scene-fallback {
  to {
    opacity: 1;
  }
}

.scene > * {
  position: absolute;
}

.layer {
  left: 0;
  top: 0;
  width: 500px;
  height: 400px;
  overflow: visible;
  pointer-events: none;
}

/* Akt 1 und 2: Reel, Gitter, Zutaten. Im Endbild ausgeblendet. */
.reel,
.bar,
.jail-tag,
.capsule,
.boost {
  opacity: 0;
  visibility: hidden;
}

.reel {
  left: 180px;
  top: 128px;
  width: 140px;
  height: 232px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 38%, rgba(232, 213, 168, 0.16), transparent 70%),
    linear-gradient(165deg, #2c271f, #17140f 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.reel-head {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.reel-head i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-lite), var(--gold));
}

.reel-head b {
  width: 56px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.reel-hook {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 48px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
  color: #15140f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.reel-play {
  position: absolute;
  left: 50%;
  top: 122px;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.reel-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.reel-count svg {
  opacity: 0.8;
}

.bars {
  left: 170px;
  top: 116px;
  width: 160px;
  height: 256px;
}

.bar {
  position: absolute;
  top: 0;
  width: 7px;
  height: 256px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4f4a40, #b9b09d 45%, #5b5548);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
}

.bar-h {
  left: 0;
  width: 160px;
  height: 8px;
  background: linear-gradient(180deg, #4f4a40, #b9b09d 45%, #5b5548);
}

.jail-tag {
  left: 250px;
  top: 104px;
  transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: #3a1d19;
  border: 1px solid rgba(232, 120, 104, 0.55);
  color: #f0a597;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.capsule {
  top: 30px;
  width: 132px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(232, 213, 168, 0.35);
  box-shadow: 0 0 24px rgba(190, 156, 103, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.capsule b {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 14px;
}

.capsule.c1 {
  left: 20px;
}

.capsule.c2 {
  left: 184px;
}

.capsule.c3 {
  left: 348px;
}

.boost {
  left: 292px;
  top: 300px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(190, 156, 103, 0.45);
}

/* Akt 3 und 4: E-Book, Stempel, Chat. Das ist zugleich das Endbild. */
.cover {
  left: 34px;
  top: 64px;
  width: 186px;
  height: 263px;
  transform: perspective(900px) rotate(-4deg) rotateY(14deg);
}

/* Mit Skript gehören die Transforms GSAP, siehe stage.js */
.scene.anim .cover,
.scene.anim .stamp {
  transform: none;
}

.cover img {
  width: 100%;
  height: 100%;
  border-radius: 4px 8px 8px 4px;
  object-fit: cover;
  /* Seitenkanten wie bei einem echten Buch, dazu der Schlagschatten */
  box-shadow:
    5px 5px 0 -1px #ece6d8,
    10px 10px 0 -2px #d8cfbd,
    18px 30px 50px rgba(0, 0, 0, 0.6);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08) 60%, transparent);
}

.stamp {
  position: absolute;
  right: -40px;
  top: -30px;
  width: 92px;
  height: 92px;
  z-index: 2;
  transform: rotate(-14deg);
}

.stamp-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1dfb4, var(--gold) 62%, #a8854f);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(26, 20, 4, 0.18);
}

.stamp-ring {
  position: absolute;
  inset: 0;
  width: 92px;
  height: 92px;
  animation: spin 22s linear infinite;
}

.stamp-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 20, 4, 0.55);
  display: grid;
  place-content: center;
  color: var(--on-gold);
  text-align: center;
  line-height: 1;
}

.stamp-core b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stamp-core span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

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

.chat {
  left: 238px;
  top: 84px;
  width: 248px;
  border-radius: 16px;
  overflow: hidden;
  background: #fbfaf6;
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.chat-head small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.chat-head svg {
  color: var(--gold-deep);
}

.chat-body {
  padding: 12px 12px 14px;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.38;
}

.msg-user {
  justify-self: end;
  max-width: 196px;
  padding: 8px 10px 9px;
  border-radius: 14px 14px 4px 14px;
  background: var(--surface);
  color: var(--ink-2);
}

.attach {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.attach i {
  flex: none;
  width: 22px;
  height: 26px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #d9534a;
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.attach small {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}

.msg-ai {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.msg-ai .ai-avatar {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold-lite);
}

.msg-ai p {
  min-height: 63px;
}

.msg-ai p::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--gold-deep);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.typing {
  position: absolute;
  left: 30px;
  top: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 0.9s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.msg-ai > div {
  position: relative;
}

/* Erneut abspielen, erscheint erst nach dem ersten Durchlauf */
.replay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(232, 213, 168, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-lite);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.3s ease;
}

.stage.done .replay {
  opacity: 1;
  visibility: visible;
}

.replay:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(-60deg);
}

@media (prefers-reduced-motion: reduce) {
  .stamp-ring,
  .msg-ai p::after,
  .btn .dot {
    animation: none;
  }
  .replay {
    display: none;
  }
}

/* -------------------------------------------- Laptop mit wenig Höhe ---- */

/* 1366 x 768 und ähnliche: Ohne diese Stufe rutscht der Hinweis unter dem
   Button knapp unter die Falz */
@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    padding: 10px 0 18px;
  }
  .hero h1 {
    margin-top: 14px;
    font-size: clamp(28px, 2.9vw, 40px);
  }
  .hero-grid {
    margin-top: 22px;
  }
  .hero .sub {
    font-size: 16px;
  }
  .hero .check-list {
    margin-top: 16px;
    gap: 10px;
  }
  .ki-note {
    margin-top: 16px;
    padding: 11px 14px;
    font-size: 13.5px;
  }
  .hero .btn {
    margin-top: 20px;
  }
  .stage {
    min-height: 280px;
    max-height: calc(100svh - 290px);
  }
}

/* ------------------------------------------------------ Tablet/Handy ---- */

/* Bis zur Schaltfläche muss alles in ein Fenster passen, auf dem Handy sogar
   im In-App-Browser von Instagram, der oben und unten eigene Leisten hat. Der
   Hero bekommt deshalb genau 100svh minus Kopf, die Bühne nimmt sich den Rest
   (flex: 1) und schrumpft auf kleinen Geräten. Die Wrapper werden mit
   display: contents aufgelöst, damit alle Teile Geschwister im Flex-Container
   sind und sich über order sortieren lassen. */
@media (max-width: 900px) {
  .fold {
    min-height: 0;
  }
  .hero {
    flex: 1 0 auto;
    min-height: calc(100svh - var(--top-h));
    padding: 14px 0 18px;
  }
  .hero-grid,
  .hero-copy {
    display: contents;
  }
  .stage {
    order: 3;
    flex: 1 1 auto;
    width: 100%;
    max-width: 600px;
    aspect-ratio: auto;
    min-height: 168px;
    max-height: 440px;
    margin-top: 20px;
  }
  .hero .sub,
  .ki-note {
    display: none;
  }
  .hero .check-list {
    order: 4;
    margin: 20px auto 0;
    text-align: left;
  }
  .b-short {
    display: inline;
  }
  .b-long {
    display: none;
  }
  .hero .btn {
    order: 5;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
  }
  .cta-note {
    order: 6;
  }
}

@media (max-width: 640px) {
  :root {
    --top-h: 34px;
  }
  .container {
    width: min(100% - 32px, var(--container));
  }
  .logo {
    width: 112px;
  }
  .hero {
    justify-content: flex-start;
    padding: 12px 0 14px;
  }
  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.07em;
    padding: 6px 11px;
    gap: 7px;
  }
  .eyebrow-long {
    display: none;
  }
  .hero h1 {
    margin-top: 11px;
    font-size: clamp(23px, 6.6vw, 28px);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }
  .stage {
    max-height: 380px;
    margin-top: 14px;
    border-radius: 20px;
  }
  .hero .check-list {
    margin-top: 14px;
    gap: 7px;
  }
  .hero .check-list li {
    font-size: 14px;
    gap: 9px;
  }
  .hero .check-list li::before {
    width: 19px;
    height: 19px;
    background-size: 10px;
    margin-top: 0;
  }
  .hero .btn {
    margin-top: 14px;
    padding: 17px 20px;
    font-size: 16px;
  }
  .cta-note {
    margin-top: 9px;
    font-size: 11.5px;
  }
  .proof {
    padding: 20px 0;
  }
  .proof-names {
    font-size: 11px;
    gap: 6px 14px;
  }
  .proof-names li + li::before {
    margin-right: 14px;
  }
}

/* Kleine Handys (SE, ältere Androids): Die Bühne bekommt den Platz des
   dritten Bullets, sonst bleibt sie zu klein zum Erkennen */
@media (max-width: 640px) and (max-height: 640px) {
  .hero .check-list li:nth-child(3) {
    display: none;
  }
  .hero h1 {
    font-size: 22px;
  }
}
