/* quatschen.de: Auftakt mit dem Quatschenmonster (site/pages/index.html, öffentlich seit 02.12.2026)
 * Das Monster ist ein Stahlblech mit ausgeschnittenem Schriftzug. Dahinter steht der gelbe Kreis aus dem Logo als Licht:
 * Es scheint durch die Buchstaben. Ein Laser schneidet die Form zu Beginn aus, die Augen folgen Finger oder Maus.
 * Die Zeichnung kommt aus tools/start/monster.py, die Bewegung aus monster.js.
 * Wie überall auf der Startseite: Bewegung läuft auch bei „Bewegung reduzieren“, deshalb jede Dauer noch einmal mit !important.
 * Ohne JavaScript (keine Klasse m-js) steht das fertige Bild da.
 * --------------------------------------------------------------------------------------------- */

.m-auftakt { position: relative; height: 210vh; height: 210svh; }
.m-fest {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #080808;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vh, 3.2rem);
  padding: 76px var(--rand) clamp(3.2rem, 9vh, 5.5rem);
}
/* Bühne: genau so groß wie die Zeichnung. Breite nach dem Schirm, aber nie höher als gut die halbe Schirmhöhe. */
.m-buehne {
  position: relative; flex: none; width: min(92vw, 78vh, 900px); width: min(92vw, 78svh, 900px); aspect-ratio: 1000 / 662;
  transform: translateY(var(--my, 0px)) scale(var(--ms, 1)); will-change: transform;
}
/* Das Licht: der gelbe Kreis aus dem Logo, so groß, dass alle Buchstaben davor liegen. Ort und Größe setzt monster.js. */
.m-licht {
  position: absolute; left: var(--lx, 51%); top: var(--ly, 62%); width: 80%; aspect-ratio: 1; margin: -40% 0 0 -40%;
  border-radius: 50%; background: var(--gelb); box-shadow: 0 0 14vmin 3vmin rgba(255, 205, 0, .26);
  transform: scale(var(--ls, 1)); will-change: transform;
}
.m-monster { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-flaeche { fill: url(#m-stahl); fill-rule: evenodd; stroke: rgba(255, 255, 255, .22); stroke-width: 1.4; transition: opacity .45s ease; transition-duration: .45s !important; }
.m-linie { fill: none; stroke: #FFF3C4; stroke-width: var(--strich, 3.4); stroke-linejoin: round; stroke-linecap: round; opacity: 0; transition: opacity .5s ease; transition-duration: .5s !important; }
.m-linie-schein { stroke: rgba(255, 205, 0, .4); stroke-width: calc(var(--strich, 3.4) * 3.6); }
.m-funke { opacity: 0; }
.m-weiss { fill: #fff; stroke: #111; stroke-width: 5; }
.m-pupille { fill: #111; transition: transform .16s ease-out; transition-duration: .16s !important; }
.m-glanzpunkt { fill: #fff; }
.m-auge { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .55s cubic-bezier(.3, 1.7, .5, 1); transition-duration: .55s !important; }
.m-auge + .m-auge { transition-delay: .13s; }
.m-auge.m-zu { transform: scaleY(.06); transition: transform .08s ease; transition-duration: .08s !important; transition-delay: 0s; }

/* Der Satz: Das Monster liefert das Wort „Quatschen“, darunter steht der Rest */
.m-satz {
  position: relative; z-index: 2;      /* über dem Licht, das beim Scrollen den Schirm füllt */
  margin: 0; text-align: center; font-size: clamp(1.5rem, 8.1vw, 4.1rem); line-height: .92; font-weight: 900; font-stretch: 125%;
  letter-spacing: -.03em; text-transform: uppercase;
  transition: opacity .7s ease .15s, transform .7s ease .15s, color .25s ease; transition-duration: .7s, .7s, .25s !important;
}
.s-seite .m-satz em.s-leicht { display: inline; }
@media (min-width: 900px) { .m-umbruch { display: none; } }
.m-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.m-auftakt .s-runter { z-index: 2; transition: opacity .3s ease; transition-duration: .3s !important; }
.m-hell .s-runter { opacity: 0; }

/* Vor und während des Laserschnitts (monster.js setzt m-start und nimmt es nach dem Schnitt wieder weg) */
.m-js.m-start .m-flaeche { opacity: 0; }
.m-js.m-start .m-linie { opacity: 1; }
.m-js.m-start .m-funke { opacity: 1; }
.m-js.m-start .m-auge { transform: scale(0); }
.m-js.m-start .m-satz { opacity: 0; transform: translateY(24px); }
.m-js.m-start .s-runter { opacity: 0; }

/* Sicherung aus monster.js: fertiges Bild ohne Übergänge, falls der Browser keine Bilder zeichnet */
.m-fest.m-sofort .m-flaeche, .m-fest.m-sofort .m-linie, .m-fest.m-sofort .m-auge, .m-fest.m-sofort .m-satz, .m-fest.m-sofort .s-runter { transition: none !important; }

/* Beim Scrollen wächst das Licht über den ganzen Schirm: schwarzes Monster auf Gelb */
.m-hell .m-satz { color: #111; }
.s-seite .m-hell .m-satz em.s-leicht::after { background: #111; }
.m-hell .m-flaeche { stroke: rgba(0, 0, 0, 0); }
