/* ==========================================================================
   FEDERLEICHT — Beispielwebsite (Stufe 3: verspielt, viel Bewegung)
   Helle Pastelltöne, weiche Formen, Bewegung an vielen Stellen — aber nie
   ohne Rücksicht: alles respektiert prefers-reduced-motion.
   Keine externen Ressourcen, kein Framework, kein Tracking.
   ========================================================================== */

:root {
  --ink:     #2c2438;
  --soft:    #5a5068;
  --muted:   #8e849c;
  --line:    #ece4f2;
  --bg:      #fffcfa;
  --blush:   #fbe3e6;
  --mint:    #d9efe6;
  --butter:  #fdf0d2;
  --lilac:   #ece3fa;
  --pop:     #e5687f;
  --deep:    #3a2f4a;
  --maxw:    1200px;
  --display: 'Fraunces', Georgia, 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: 600; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3rem, 10vw, 7.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(2.1rem, 5.5vw, 4rem); letter-spacing: -.02em; }
h3 { font-size: 1.35rem; }
p { margin: 0; }

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

/* ==========================================================================
   Bewegung — zentral geschaltet.
   Die Klasse .motion-ok setzt das Skript nur, wenn der Nutzer keine reduzierte
   Bewegung wünscht. Ohne sie ist alles sofort sichtbar und ruhig.
   ========================================================================== */
.motion-ok .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.motion-ok .reveal.is-in { opacity: 1; transform: none; }
.motion-ok .reveal[data-d="1"] { transition-delay: .09s; }
.motion-ok .reveal[data-d="2"] { transition-delay: .18s; }
.motion-ok .reveal[data-d="3"] { transition-delay: .27s; }
.motion-ok .reveal[data-d="4"] { transition-delay: .36s; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,252,250,.82); backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(255,252,250,.95); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__brand { font-family: var(--display); font-size: 1.5rem; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.nav__brand span { color: var(--pop); }
.nav__links { display: flex; gap: 2rem; 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: 2px; background: var(--pop); border-radius: 2px; transition: right .3s cubic-bezier(.2,.7,.3,1); }
.nav__links a:hover::after { right: 0; }
.nav__cta { padding: .6rem 1.35rem; border-radius: 999px; background: var(--ink); color: var(--bg) !important; font-size: .87rem !important; 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(44,36,56,.22); }

/* ---------- Hero mit schwebenden Formen ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .72; pointer-events: none; z-index: 0; }
.blob--1 { width: 460px; height: 460px; background: var(--blush); top: -130px; right: -90px; }
.blob--2 { width: 380px; height: 380px; background: var(--mint);  bottom: -150px; left: -110px; }
.blob--3 { width: 300px; height: 300px; background: var(--butter); top: 42%; right: 26%; }
.motion-ok .blob--1 { animation: drift1 19s ease-in-out infinite; }
.motion-ok .blob--2 { animation: drift2 23s ease-in-out infinite; }
.motion-ok .blob--3 { animation: drift3 27s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-38px,34px) scale(1.09); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(44px,-30px) scale(1.06); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px,-42px) scale(.94); } }

.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { margin-top: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--pop); display: inline-block; }
.motion-ok .hero h1 em { animation: tilt 6s ease-in-out infinite; }
@keyframes tilt { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.hero__lead { margin: 1.8rem auto 0; text-align: center; }
.hero__actions { margin-top: 2.6rem; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2.1rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); 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 30px rgba(44,36,56,.24); background: var(--deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn__arrow { transition: transform .28s cubic-bezier(.2,.7,.3,1); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Hero-Bildband mit leichter Kippung */
.hero__strip { margin-top: clamp(2.8rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; position: relative; z-index: 1; }
.hero__strip figure { margin: 0; border-radius: 18px; overflow: hidden; }
.hero__strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.hero__strip figure:hover img { transform: scale(1.05); }
.motion-ok .hero__strip figure:nth-child(1) { transform: rotate(-1.6deg) translateY(10px); }
.motion-ok .hero__strip figure:nth-child(3) { transform: rotate(1.6deg) translateY(10px); }

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

/* ---------- Flächen ---------- */
.band { background: var(--lilac); }
.band--mint { background: var(--mint); }
.band--butter { background: var(--butter); }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.card {
  background: var(--bg); border-radius: 22px; padding: 2rem 1.8rem 2.2rem;
  transition: transform .34s cubic-bezier(.2,.7,.3,1), box-shadow .34s ease;
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(44,36,56,.13); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.card:nth-child(1) .card__icon { background: var(--blush); }
.card:nth-child(2) .card__icon { background: var(--mint); }
.card:nth-child(3) .card__icon { background: var(--butter); }
.card:nth-child(4) .card__icon { background: var(--lilac); }
.card p { color: var(--soft); font-size: .97rem; margin-top: .6rem; }
.card__price { display: inline-block; margin-top: 1.1rem; font-weight: 600; color: var(--pop); }

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

/* ---------- Ablauf mit klebender Überschrift ---------- */
.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(44,36,56,.14); display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; }
.step:last-child { border-bottom: 1px solid rgba(44,36,56,.14); }
.step__n { font-family: var(--display); font-size: 1.5rem; color: var(--pop); }
.step p { color: var(--soft); font-size: .98rem; margin-top: .4rem; }

/* ---------- Galerie ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.8rem; }
.mosaic figure { margin: 0; border-radius: 18px; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.mosaic figure:hover img { transform: scale(1.07); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(1) img { aspect-ratio: 1/1; }
.mosaic figure:nth-child(n+2) img { aspect-ratio: 1/1; }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem .95rem;
  background: linear-gradient(transparent, rgba(44,36,56,.68));
  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: 30ch; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--display); font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.2; margin: 0; }
.quote figcaption { margin-top: 1.6rem; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }

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

/* ---------- Fußzeile ---------- */
.footer { background: var(--ink); color: rgba(255,252,250,.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(255,252,250,.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; }

/* ---------- Schmale Bildschirme ---------- */
@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; }
}
@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(3) { display: none; }
  .motion-ok .hero__strip figure { transform: none !important; }
  .blob { filter: blur(38px); }
}

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