/* ==========================================================================
   GLANZSTÜCK — Beispielwebsite (Stufe 3: verspielt, viel Bewegung)
   Helle Flieder-, Pfirsich- und Himmeltöne, kräftige Grotesk, weiche Formen.
   Jede Animation hängt an .motion-ok und verschwindet bei reduzierter Bewegung.
   Keine externen Ressourcen, kein Framework, kein Tracking.
   ========================================================================== */

:root {
  --ink:     #241f33;
  --soft:    #524a67;
  --muted:   #877ea0;
  --line:    #e8e3f3;
  --bg:      #fdfcff;
  --lilac:   #e9e2fb;
  --peach:   #ffe4d6;
  --sky:     #d9ecfa;
  --cream:   #fdf3dd;
  --pop:     #7c5cd6;
  --deep:    #322a4d;
  --maxw:    1200px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.03em; }
h1 { font-size: clamp(2.9rem, 10vw, 7rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4.2rem, 9.5vw, 8.5rem) 0; position: relative; }
.eyebrow { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--pop); font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 56ch; }

/* ---------- Bewegungsschalter ---------- */
.motion-ok .reveal { opacity: 0; transform: translateY(26px); transition: opacity .78s cubic-bezier(.2,.7,.3,1), transform .78s cubic-bezier(.2,.7,.3,1); }
.motion-ok .reveal.is-in { opacity: 1; transform: none; }
.motion-ok .reveal[data-d="1"] { transition-delay: .08s; }
.motion-ok .reveal[data-d="2"] { transition-delay: .16s; }
.motion-ok .reveal[data-d="3"] { transition-delay: .24s; }
.motion-ok .reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,252,255,.84); backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__brand { font-family: var(--display); font-weight: 800; font-size: 1.42rem; text-decoration: none; letter-spacing: -.035em; }
.nav__brand span { color: var(--pop); }
.nav__links { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { font-size: .9rem; color: var(--soft); text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2.5px; background: var(--pop); border-radius: 2px; transition: right .32s cubic-bezier(.2,.7,.3,1); }
.nav__links a:hover::after { right: 0; }
.nav__cta { padding: .6rem 1.35rem; border-radius: 999px; background: var(--pop); color: #fff !important; font-size: .87rem !important; font-weight: 500; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease; }
.nav__cta::after { display: none; }
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124,92,214,.34); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.8rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(52px); opacity: .78; pointer-events: none; z-index: 0; }
.blob--1 { width: 480px; height: 480px; background: var(--lilac); top: -150px; left: -120px; }
.blob--2 { width: 400px; height: 400px; background: var(--peach); top: 18%; right: -100px; }
.blob--3 { width: 340px; height: 340px; background: var(--sky); bottom: -140px; left: 34%; }
.motion-ok .blob--1 { animation: f1 21s ease-in-out infinite; }
.motion-ok .blob--2 { animation: f2 25s ease-in-out infinite; }
.motion-ok .blob--3 { animation: f3 29s ease-in-out infinite; }
@keyframes f1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(42px,30px) scale(1.08); } }
@keyframes f2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-38px,42px) scale(.93); } }
@keyframes f3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-38px) scale(1.06); } }

.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin-top: 1.2rem; max-width: 16ch; }
.hero h1 span { color: var(--pop); display: inline-block; }
.motion-ok .hero h1 span { animation: wob 5.5s ease-in-out infinite; transform-origin: bottom left; }
@keyframes wob { 0%,100% { transform: rotate(-1.8deg); } 50% { transform: rotate(1.8deg); } }
.hero__lead { margin-top: 1.7rem; }
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1.1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2.1rem; border-radius: 999px;
  background: var(--pop); color: #fff; text-decoration: none;
  font-size: .96rem; font-weight: 500; border: 0;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(124,92,214,.34); background: #6a4bc4; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: 0 14px 30px rgba(36,31,51,.24); }
.btn__arrow { transition: transform .28s cubic-bezier(.2,.7,.3,1); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Bildband, versetzt */
.hero__strip { position: relative; z-index: 1; margin-top: clamp(2.6rem,6vw,4rem); display: grid; grid-template-columns: 1.25fr .85fr .9fr; gap: 1.1rem; align-items: start; }
.hero__strip figure { margin: 0; border-radius: 22px; overflow: hidden; }
.hero__strip img { width: 100%; object-fit: cover; transition: transform .85s cubic-bezier(.2,.7,.3,1); }
.hero__strip figure:nth-child(1) img { aspect-ratio: 4/5; }
.hero__strip figure:nth-child(2) img { aspect-ratio: 3/4; }
.hero__strip figure:nth-child(3) img { aspect-ratio: 3/4; }
.hero__strip figure:hover img { transform: scale(1.06); }
.motion-ok .hero__strip figure:nth-child(2) { margin-top: 2.6rem; }
.motion-ok .hero__strip figure:nth-child(3) { margin-top: 1.2rem; }

/* ---------- Laufband ---------- */
.ticker { background: var(--ink); color: #fff; padding: .95rem 0; overflow: hidden; }
.ticker__track { display: flex; gap: 2.8rem; white-space: nowrap; width: max-content; }
.motion-ok .ticker__track { animation: run 32s linear infinite; }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker span { font-size: .87rem; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 2.8rem; }
.ticker span::after { content: "●"; color: var(--pop); font-size: .6rem; }

/* ---------- Flächen ---------- */
.band { background: var(--lilac); }
.band--peach { background: var(--peach); }
.band--sky { background: var(--sky); }
.band--cream { background: var(--cream); }

/* ---------- Karten, leicht gekippt ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.card {
  background: var(--bg); border-radius: 24px; padding: 2rem 1.8rem 2.2rem;
  border: 1px solid var(--line);
  transition: transform .36s cubic-bezier(.2,.7,.3,1), box-shadow .36s ease;
}
.card:hover { transform: translateY(-8px) rotate(-.8deg); box-shadow: 0 22px 46px rgba(36,31,51,.14); }
.card__dot { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 1.2rem; }
.card:nth-child(1) .card__dot { background: var(--peach); }
.card:nth-child(2) .card__dot { background: var(--sky); }
.card:nth-child(3) .card__dot { background: var(--lilac); }
.card:nth-child(4) .card__dot { background: var(--cream); }
.card p { color: var(--soft); font-size: .97rem; margin-top: .55rem; }
.card__price { display: inline-block; margin-top: 1.1rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--pop); }

/* ---------- Farbfelder ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 1.1rem; margin-top: 2.6rem; }
.swatch { text-align: center; }
.swatch__chip { aspect-ratio: 1/1; border-radius: 50%; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.swatch:hover .swatch__chip { transform: scale(1.09) rotate(6deg); }
.swatch__name { display: block; margin-top: .75rem; font-size: .84rem; color: var(--soft); }

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 2rem; margin-top: 2.6rem; text-align: center; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.stat__label { margin-top: .7rem; font-size: .87rem; color: var(--soft); }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps__head { position: sticky; top: 110px; }
.step { padding: 1.9rem 0; border-top: 1px solid rgba(36,31,51,.13); display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.2rem; }
.step:last-child { border-bottom: 1px solid rgba(36,31,51,.13); }
.step__n { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--pop); }
.step p { color: var(--soft); font-size: .98rem; margin-top: .35rem; }

/* ---------- Galerie ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.8rem; }
.mosaic figure { margin: 0; border-radius: 20px; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:hover img { transform: scale(1.08); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem .9rem;
  background: linear-gradient(transparent, rgba(36,31,51,.7)); color: #fff; font-size: .86rem;
  opacity: 0; transform: translateY(8px); transition: opacity .34s ease, transform .34s ease;
}
.mosaic figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Zitat ---------- */
.quote { max-width: 28ch; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.14; margin: 0; letter-spacing: -.02em; }
.quote figcaption { margin-top: 1.5rem; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }

/* ---------- Abschluss ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 15ch; margin-inline: auto; }
.cta .hero__actions { justify-content: center; }

/* ---------- Fußzeile ---------- */
.footer { background: var(--ink); color: rgba(253,252,255,.82); padding: 3.4rem 0 3rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; align-items: baseline; }
.footer a { color: rgba(253,252,255,.72); text-decoration: none; font-size: .89rem; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__note { font-size: .86rem; }

@media (max-width: 940px) {
  .steps { grid-template-columns: 1fr; }
  .steps__head { position: static; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .hero__strip figure:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links li:not(:last-child) { display: none; }
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip figure:nth-child(2) { display: none; }
  .motion-ok .hero__strip figure { margin-top: 0 !important; }
  .blob { filter: blur(40px); }
}

a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2.5px solid var(--pop); outline-offset: 3px; border-radius: 4px; }
