/* ==========================================================================
   MALOGA – Make Love Great Again
   ========================================================================== */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --navy: #0E1230;
  --navy-2: #171C45;
  --navy-3: #232A63;
  --pink: #FF2E63;
  --pink-dark: #D91A4E;
  --cream: #FFF4E6;
  --yellow: #FFC93C;
  --violet: #7B2CBF;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 400; }

::selection { background: var(--pink); color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3rem .8rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 4vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.section-sub {
  max-width: 34rem;
  margin: 1rem auto 0;
  opacity: .75;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Marker-Effekt: Hintergrund wird beim Einblenden "aufgemalt" */
.marker {
  background: linear-gradient(transparent 55%, var(--pink) 55%, var(--pink) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  color: inherit;
  padding: 0 .1em;
  transition: background-size 1.1s var(--ease-out) .35s;
}
.is-visible .marker,
.marker.is-visible { background-size: 100% 100%; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font: 700 1rem/1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease-bounce), box-shadow .3s, background-color .3s;
  will-change: transform;
}

.btn--primary {
  background: var(--pink);
  color: var(--cream);
  box-shadow: 0 6px 0 var(--pink-dark), 0 14px 30px -10px rgba(255, 46, 99, .7);
}
.btn--primary:hover { background: #ff4574; }
.btn--primary:active { box-shadow: 0 2px 0 var(--pink-dark); translate: 0 4px; }

.btn--link {
  padding-inline: .5rem;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.btn--link:hover { color: var(--yellow); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s, color .25s, transform .25s var(--ease-bounce);
}
.pill--ghost { border: 2px solid rgba(255, 244, 230, .25); }
.pill--ghost:hover { background: var(--cream); color: var(--navy); transform: translateY(-2px) rotate(-2deg); }

/* ---------- Scroll-Fortschritt ---------- */

.progress-heart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(14, 18, 48, .85);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.progress-heart svg { width: 100%; height: 100%; overflow: visible; }
.progress-heart__outline { fill: none; stroke: var(--pink); stroke-width: 2; }
.progress-heart__fill { fill: var(--pink); }
.progress-heart.is-full { animation: heartbeat 1s var(--ease-out) 2; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  transition: padding .35s var(--ease-out), background-color .35s, box-shadow .35s;
}
.header.is-scrolled {
  padding-block: .65rem;
  background: rgba(14, 18, 48, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 244, 230, .08);
}

/* Logo (SVG) im Header */
.logo {
  display: inline-flex;
  user-select: none;
}
.logo img {
  width: auto;
  height: clamp(30px, 1.2rem + 1.4vw, 42px);
  transition: height .35s var(--ease-out), transform .45s var(--ease-bounce);
}
.header.is-scrolled .logo img { height: 30px; }
.logo:hover img { transform: rotate(-4deg) scale(1.05); }
.logo:active img { transform: scale(.94); }

.header__nav { display: flex; align-items: center; gap: .5rem; }

.lang-toggle {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 2px solid rgba(255, 244, 230, .25);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 700 .8rem/1 var(--font-body);
  cursor: pointer;
}
.lang-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--yellow);
  transition: transform .35s var(--ease-bounce);
}
html[lang="en"] .lang-toggle::before { transform: translateX(100%); }
.lang-toggle span {
  position: relative;
  padding: .45rem .6rem;
  transition: color .3s;
}
html[lang="de"] .lang-toggle [data-lang="de"],
html[lang="en"] .lang-toggle [data-lang="en"] { color: var(--navy); }

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(100svh, 1000px);
  padding: 7rem var(--gutter) 5rem;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 30%, rgba(123, 44, 191, .45), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(255, 46, 99, .25), transparent 70%),
    var(--navy);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.hero__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .25em;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 1.5rem + 9vw, 8.5rem);
  line-height: .92;
  text-transform: uppercase;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(80%) rotate(6deg);
  animation: word-in .9s var(--ease-bounce) forwards;
  animation-delay: calc(.15s + var(--i) * .14s);
}
.word--love { color: var(--pink); position: relative; }
.word--love::after {
  content: "♥";
  position: absolute;
  top: -.05em;
  right: -.32em;
  font-size: .32em;
  color: var(--yellow);
  animation: heartbeat 1.4s ease-in-out infinite 1.4s;
}
.word--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
}

.hero__lead {
  max-width: 32rem;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  opacity: 0;
  animation: fade-up .8s var(--ease-out) .85s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  opacity: 0;
  animation: fade-up .8s var(--ease-out) 1s forwards;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  opacity: 0;
  animation: pop-in 1s var(--ease-bounce) .5s forwards;
}

/* Die Bubble: eigene Form hinter dem freigestellten Foto */
.hero__bubble {
  position: absolute;
  inset: 8%;
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 34C11 25 14 15 20 15c2.5 0 4 2.5 4 2.5s1.5-2.5 4-2.5c6 0 9 10-4 19z' fill='%23fff' opacity='.09'/%3E%3C/svg%3E"),
    linear-gradient(150deg, var(--pink), var(--violet));
  box-shadow:
    inset 0 -30px 60px rgba(14, 18, 48, .35),
    0 30px 60px -20px rgba(0, 0, 0, .6);
  animation: morph 12s ease-in-out infinite;
  will-change: transform;
}

/* Produkt-Slideshow in der Bubble */
.hero__slides {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  will-change: transform;
}
.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4%;
  object-fit: contain;
  opacity: 0;
  transform: scale(.8) rotate(-8deg);
  filter: drop-shadow(0 22px 26px rgba(14, 18, 48, .45));
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-bounce);
}
.hero__slides img.is-active {
  opacity: 1;
  transform: none;
  animation: float 5s ease-in-out .9s infinite;
}
.hero__slides img.is-leaving {
  opacity: 0;
  transform: scale(1.12) rotate(6deg);
  transition-duration: .7s;
}

.hero__blob {
  position: absolute;
  inset: 10% -6% -6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--yellow), var(--violet), var(--pink));
  filter: blur(40px);
  opacity: .45;
  animation: spin 14s linear infinite;
}

.sticker {
  position: absolute;
  z-index: 2;
  padding: .55rem 1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: clamp(.95rem, .8rem + .6vw, 1.35rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  animation: wobble 4s ease-in-out infinite;
}
.sticker--1 { top: 34%; left: -7%; background: var(--yellow); color: var(--navy); --rot: -10deg; }
.sticker--2 { bottom: 12%; right: -5%; background: var(--cream); color: var(--pink); --rot: 8deg; animation-delay: -2s; }

.hero__floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--s);
  line-height: 1;
  color: var(--pink);
  rotate: var(--r);
  opacity: .8;
  will-change: transform;
}
.floater--star { color: var(--yellow); }
.floater--yellow { color: var(--yellow); }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 2;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 244, 230, .5);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cream);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

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

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--pink);
  color: var(--cream);
  transform: rotate(-2deg) scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem);
  letter-spacing: .04em;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track img { flex: none; width: auto; }
.marquee__logo { height: 1.3em; margin-block: -.25em; }   /* SVG hat viel Luft oben/unten */
.marquee__hand { height: 1.3em; margin-block: -.15em; }

/* ---------- Story ---------- */

.story { padding: clamp(6rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); }

.story__grid { display: grid; gap: 2.5rem; }

.story__text p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  opacity: .9;
}
.story__text p:first-child::first-letter {
  float: left;
  margin: .1em .12em 0 0;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: .8;
  color: var(--pink);
}

/* ---------- Produkte ---------- */

.products {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--cream);
  color: var(--navy);
  border-radius: clamp(28px, 5vw, 60px) clamp(28px, 5vw, 60px) 0 0;
}
.products .eyebrow { color: var(--pink); border-color: var(--pink); }

.product-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 75%;
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 1rem var(--gutter) 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.product-grid::-webkit-scrollbar { display: none; }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(14, 18, 48, .25);
  scroll-snap-align: center;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
.product:hover { box-shadow: 0 26px 50px -18px rgba(14, 18, 48, .45); }
.product:active { transform: scale(.97); }

.product__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 1 / 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 34C11 25 14 15 20 15c2.5 0 4 2.5 4 2.5s1.5-2.5 4-2.5c6 0 9 10-4 19z' fill='%230E1230' opacity='.05'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 45%, #fff 0%, transparent 70%),
    var(--tint, #F3E9DC);
}
/* Heller Hintergrund je Artikel – das weiße Shirt braucht Kontrast */
.product--tee     { --tint: #FFD9E2; }
.product--hoodie  { --tint: #FFEDB8; }
.product--cap     { --tint: #E6DAF5; }
.product--buttons { --tint: #D9E0FF; }

.product__img img {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(14, 18, 48, .18));
  transition: transform .7s var(--ease-bounce);
}
.product:hover .product__img img { transform: scale(1.08) rotate(-3deg); }

.product__body {
  padding: 1.25rem 1.25rem 1.5rem;
  transform: translateZ(30px);
}
.product__body h3 {
  margin-bottom: .4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
}
.product__body p { margin: 0; font-size: .95rem; opacity: .7; }

.product__tag {
  display: inline-block;
  margin: -2.6rem 0 .8rem;        /* ragt wie ein Sticker über die Bildkante */
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(14, 18, 48, .2);
  transform: translateZ(20px) rotate(-4deg);
}

.product::after {
  content: "→";
  position: absolute;
  right: 1.1rem;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--pink);
  color: var(--cream);
  font-weight: 700;
  transform: translateZ(40px) scale(.8);
  opacity: 0;
  transition: opacity .3s, transform .4s var(--ease-bounce);
}
.product:hover::after,
.product:focus-visible::after { opacity: 1; transform: translateZ(40px) scale(1); }

/* ---------- Shops ---------- */

.shops {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--cream);
  color: var(--navy);
}
.shops .eyebrow { color: var(--pink); border-color: var(--pink); }

.shop-grid { max-width: 640px; margin-inline: auto; }

.shop-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx, 80%) var(--my, 20%), rgba(255, 255, 255, .22), transparent 45%);
  transition: opacity .3s;
}
.shop-card--us { background: linear-gradient(140deg, var(--navy-3), var(--navy)); }
.shop-card--de { background: linear-gradient(140deg, var(--pink), var(--violet)); }
.shop-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(14, 18, 48, .6); }

.shop-card__flag {
  margin-bottom: 1rem;
  font-size: 3.2rem;
  line-height: 1;
  transition: transform .5s var(--ease-bounce);
}
.shop-card:hover .shop-card__flag { transform: rotate(-12deg) scale(1.15); }

.shop-card h3 {
  margin-bottom: .75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  text-transform: uppercase;
}
.shop-card p { margin: 0 0 1.25rem; opacity: .88; }

.shop-card__list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.shop-card__list li {
  padding: .35rem 0 .35rem 1.8rem;
  position: relative;
}
.shop-card__list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  color: var(--yellow);
}
.shop-card--de .btn--primary {
  background: var(--cream);
  color: var(--pink);
  box-shadow: 0 6px 0 #e3d3bf, 0 14px 30px -10px rgba(0, 0, 0, .4);
}

.shops__switch {
  margin: 1rem 0 0;
  font-size: .95rem;
  text-align: center;
}
.shops__switch a {
  color: var(--pink);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.shops__switch a:hover { color: var(--violet); }

.shops__note {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  font-size: .9rem;
  text-align: center;
  opacity: .6;
}

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

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  background: var(--navy);
}
.footer__giant {
  position: absolute;
  bottom: -.18em;
  left: 50%;
  font-family: var(--font-display);
  font-size: clamp(6rem, 26vw, 24rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 244, 230, .08);
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.footer__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.footer__logo {
  width: auto;
  height: clamp(36px, 1.6rem + 1.6vw, 52px);
}
.footer__brand p { margin: .5rem 0 0; opacity: .6; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
}
.footer__links a {
  position: relative;
  font-weight: 500;
  text-decoration: none;
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__top { color: var(--yellow); }
.footer__copy {
  position: relative;
  margin: 3rem auto 0;
  font-size: .85rem;
  opacity: .5;
}

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 8rem var(--gutter) 5rem;
  overflow-wrap: break-word;
}
.legal h1 {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-transform: uppercase;
}
.legal h2 {
  margin: 3rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--yellow);
}
.legal h3 {
  margin: 2rem 0 .5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pink);
}
.legal h4 {
  margin: 1.5rem 0 .4rem;
  font-size: 1rem;
  font-weight: 700;
}
.legal p,
.legal li { opacity: .88; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--yellow); }

/* ---------- Toast (Easter Egg) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform .5s var(--ease-bounce), visibility 0s .5s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* ---------- Herz-Partikel ---------- */

.burst {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  font-size: var(--size, 18px);
  line-height: 1;
  color: var(--c, var(--pink));
  animation: burst .9s var(--ease-out) forwards;
}
.rain {
  position: fixed;
  top: -40px;
  z-index: 90;
  pointer-events: none;
  font-size: var(--size, 24px);
  color: var(--c, var(--pink));
  animation: rain var(--dur, 3s) linear forwards;
}

/* ---------- Scroll-Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Produktkarten: nach dem Reveal übernimmt JS die Tilt-Transformation */
.js .product.reveal.is-visible { transition: opacity .9s var(--ease-out), transform .5s var(--ease-out), box-shadow .4s; }

/* ---------- Keyframes ---------- */

@keyframes word-in {
  to { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.8) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; }
  33% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; }
  66% { border-radius: 40% 60% 48% 52% / 60% 45% 55% 40%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
@keyframes wobble {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50% { transform: rotate(calc(var(--rot) * -.4)) translateY(-8px); }
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}
@keyframes burst {
  from { opacity: 1; transform: translate(-50%, -50%) scale(.4) rotate(0); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot)); }
}
@keyframes rain {
  to { transform: translateY(calc(100vh + 80px)) rotate(var(--rot, 180deg)); }
}

/* ---------- Responsive ---------- */

@media (max-width: 599px) {
  .header__nav .pill span { display: none; }   /* auf dem Handy nur Flaggen */
  .header__nav { gap: .35rem; }
  .header__nav .pill { padding: .4rem .55rem; font-size: 1.05rem; }
  .sticker--1 { left: 0; }
  .sticker--2 { right: 0; }
}

@media (min-width: 600px) {
  .product-grid { grid-auto-columns: 45%; }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
  }
  .hero__visual { justify-self: end; }

  .story__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }
  .story__grid .section-title { position: sticky; top: 7rem; }

  .product-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    margin-inline: 0;
    padding: 1rem 0;
    overflow: visible;
  }
  .product:nth-child(even) { margin-top: 3rem; }

}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal,
  .hero__title .word,
  .hero__lead,
  .hero__cta,
  .hero__visual { opacity: 1; transform: none; animation: none !important; }
  .marker { background-size: 100% 100%; }
}
