/* ============================================================
   LANDING.CSS — nur für die Startseite (template: home)
   Hero, Orb, Traveling Phone, Step-Dots, Bottom-Bar,
   Features-Modal, News-Teaser + die Sektionen Features,
   Categories, Inventory-Card und Why.
   Basis-Styles (Tokens, Header, Footer, Buttons, Modal,
   Post-Karten) stehen in styles.css.
   ============================================================ */

@keyframes bottomBarBounceIn {
  0% {
    opacity: 0;
    transform: translateY(120%);
  }
  60% {
    opacity: 1;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bottomBarSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(120%);
  }
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
}

.bottom-bar.is-bouncing-in {
  animation: bottomBarBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bottom-bar.is-sliding-out {
  animation: bottomBarSlideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bottom-bar__buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  pointer-events: all;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .bottom-bar__buttons {
    max-width: none;
    gap: 8px;
  }

  .bottom-bar__buttons .primary-button,
  .bottom-bar__buttons .secondary-button {
    flex: 1;
    min-width: 0;
    padding-inline: 1rem;
  }
}

.bottom-bar__buttons .primary-button,
.bottom-bar__buttons .secondary-button {
  flex: 1;
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.14),
    0 12px 48px rgba(0, 0, 0, 0.10);
}

@media (min-width: 540px) {
  .bottom-bar__buttons {
    width: fit-content;
    max-width: none;
  }

  .bottom-bar__buttons .primary-button,
  .bottom-bar__buttons .secondary-button {
    flex: none;
  }
}


/* ============================================================
   8. HERO — SHELL
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: radial-gradient(
    ellipse 160% 95% at 50% -8%,
    #8a86ea 0%,
    #6b67d8 22%,
    #5a56cc 45%,
    #4d49ba 100%
  );
  contain: layout style paint;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout style paint;
  backface-visibility: hidden;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.hero__phone-wrap {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.traveling-phone {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition:
    opacity 0.9s 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter:
    drop-shadow(-8px 28px 48px rgba(0, 0, 0, 0.55))
    drop-shadow(0 16px 36px rgba(0, 0, 0, 0.35));
}

.traveling-phone.is-why {
  filter:
    drop-shadow(-4px 12px 22px rgba(0, 0, 0, 0.15))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.09));
}

.traveling-phone.is-entered { opacity: 1;
}

.phone-frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50px;
  box-shadow:
    -6px 18px 32px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.20);
  pointer-events: none;
  z-index: -1;
  background: transparent;
  border: none;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.traveling-phone.is-why .phone-frame::before {
  box-shadow:
    -3px 8px 18px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.07);
}

@media (max-width: 767px) {
  .traveling-phone {
    filter:
      drop-shadow(-4px 14px 24px rgba(0, 0, 0, 0.4))
      drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  }

  .traveling-phone.is-why {
    filter:
      drop-shadow(-2px 6px 12px rgba(0, 0, 0, 0.1))
      drop-shadow(0 3px 8px rgba(0, 0, 0, 0.06));
  }

  .phone-frame::before {
    box-shadow:
      -3px 9px 18px rgba(0, 0, 0, 0.25),
      0 4px 12px rgba(0, 0, 0, 0.14);
  }

  .traveling-phone.is-why .phone-frame::before {
    box-shadow:
      -2px 5px 10px rgba(0, 0, 0, 0.08),
      0 2px 6px rgba(0, 0, 0, 0.05);
  }
}

#heroText {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

#heroText.is-entered {
  opacity: 1;
  transform: none;
}


/* ============================================================
   8. ORB
   ============================================================ */
.hero__orb {
  --orb-dx: 0px;
  --orb-dy: 0px;

  position: absolute;
  width: 110vw;
  height: 60svh;
  border-radius: 50%;
  left: 50%;
  bottom: 3rem;
  transform:
    translateX(calc(-50% + var(--orb-dx)))
    translateY(calc(50% + var(--orb-dy)));
  background: radial-gradient(
    ellipse at 50% 0%,
    #7a6ce4 0%,
    #5c4ed1 60%,
    #4a3cb9 100%
  );
  
  overflow: hidden; 
  will-change: transform;
}

.hero__orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  
  box-shadow:
    /* 1. Die ultra-helle Kante ganz oben (schmal aber intensiv) */
    inset 0 6px 15px 0px rgba(255, 255, 255, 0.9),
    
    /* 2. Erster sanfter Übergang */
    inset 0 30px 60px -10px rgba(235, 230, 255, 0.65),
    
    /* 3. Tiefer Verlauf, der sich weit ins Zentrum schiebt */
    inset 0 100px 180px -30px rgba(180, 160, 255, 0.45),
    
    /* 4. Der maximale "Gigant-Glow": Reicht fast durch das halbe Oval */
    inset 0 220px 300px -60px rgba(150, 130, 255, 0.35),
    
    /* Optionaler 5. Layer für totale Tiefe im Zentrum */
    inset 0 350px 450px -100px rgba(140, 115, 255, 0.2);
    
  opacity: 1;
  pointer-events: none;
}

.hero__orb::before { display: none;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

.hero__float-icon {
  position: absolute;
  width: clamp(64px, 9vw, 130px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.28));
  animation: heroFloat 7s ease-in-out infinite;
  will-change: transform;
}

.hero__float-icon--1 {
  top: 7%;
  left: 14%;
  animation-duration: 8s;
  animation-delay: -1.2s;
}

.hero__float-icon--2 {
  top: 5%;
  right: 22%;
  width: clamp(72px, 10vw, 148px);
  animation-duration: 6.5s;
  animation-delay: -3.5s;
}

.hero__float-icon--3 {
  top: 55%;
  left: 19%;
  /* Liegt im unteren Bereich, den .hero__bg::after (Ausblend-Verlauf zum
     Seitenhintergrund) überdeckt. Ohne z-index wirkte der Controller dadurch
     halbtransparent. */
  z-index: 1;
  opacity: 1;
  width: clamp(70px, 9.5vw, 142px);
  animation-duration: 7.5s;
  animation-delay: -5s;
}

.hero__float-icon--4 {
  top: 42%;
  right: 16%;
  width: clamp(72px, 10vw, 148px);
  animation-duration: 9s;
  animation-delay: -2.4s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg);
  }
  50% { transform: translate(0, -18px) rotate(3deg);
  }
}

@media (max-width: 640px) {
  .hero__float-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__float-icon {
    animation: none;
  }
}


/* ============================================================
   9. ANIMATION
   ============================================================ */
@keyframes rimPulse {
  0%, 100% {
    box-shadow:
      0 0  12px  3px rgba(240,236,255,.55),
      0 0  45px 16px rgba(220,215,255,.22),
      0 0 120px 48px rgba(196,186,248,.09),
      0 0 260px 80px rgba(196,186,248,.04),
      inset 0 0  14px  3px rgba(240,236,255,.50),
      inset 0 0  50px 12px rgba(220,215,255,.18),
      inset 0 0 110px 30px rgba(196,186,248,.06);
    opacity: 0.82;
  }
  42% {
    box-shadow:
      0 0  18px  6px rgba(240,236,255,.72),
      0 0  68px 24px rgba(220,215,255,.34),
      0 0 180px 66px rgba(196,186,248,.15),
      0 0 360px 100px rgba(196,186,248,.07),
      inset 0 0  20px  5px rgba(240,236,255,.68),
      inset 0 0  72px 18px rgba(220,215,255,.26),
      inset 0 0 160px 45px rgba(196,186,248,.10);
    opacity: 1;
  }
  72% {
    box-shadow:
      0 0   7px  2px rgba(240,236,255,.34),
      0 0  30px 10px rgba(220,215,255,.13),
      0 0  85px 30px rgba(196,186,248,.05),
      0 0 190px 55px rgba(196,186,248,.02),
      inset 0 0   8px  2px rgba(240,236,255,.30),
      inset 0 0  30px  7px rgba(220,215,255,.10),
      inset 0 0  70px 18px rgba(196,186,248,.03);
    opacity: 0.55;
  }
}


/* ============================================================
   10. HERO — TEXT
   ============================================================ */
.hero__text {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
  padding: 4.2rem var(--layout-pad) var(--space-l);
  max-width: var(--layout-max);
  width: 100%;
  /* GPU-Optimierung */
  will-change: transform;
  backface-visibility: hidden;
}

.hero__headline {
  font-family: var(--font-main);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.04;
  text-wrap: balance;
}

.hero__headline strong {
  font-family: var(--font-main);
  font-weight: normal;
}

.hero__sub {
  max-width: 52ch;
}

.hero__note {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  max-width: 52ch;
}

.hero__note-flag {
  display: inline-block;
  vertical-align: -1px;
  margin-left: 0.3em;
  border-radius: 2px;
}


/* ============================================================
   11. PHONE
   ============================================================ */
.phone-frame {
  position: relative;
  width: 200px;
  will-change: transform;
}

.pixel-svg {
  width: 100%;
  height: auto;
  /* GPU-Optimierung für SVG-Rendering */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: block;
}


/* ============================================================
   12. STEP DOTS — wiederverwendbarer Fortschritts-Indikator
   ============================================================ */
.step-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.step-dot {
  height: 8px;
  width: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  transition:
    width      0.45s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.45s ease;
}

.step-dot.is-active {
  width: 26px;
  background: rgba(255, 255, 255, 0.92);
}


/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .hero {
    padding-top: 3rem;
  }

  .hero__orb { width: 140vw;
  }

  .hero__orb::after {
    animation: none;
    box-shadow:
      0 0  12px  3px rgba(240, 236, 255, 1),
      0 0  45px 16px rgba(220, 215, 255, 0.55),
      0 0 120px 48px rgba(196, 186, 248, 0.22),
      0 0 260px 80px rgba(196, 186, 248, 0.09),
      inset 0 0  14px  3px rgba(240, 236, 255, 1),
      inset 0 0  50px 12px rgba(220, 215, 255, 0.55),
      inset 0 0 110px 30px rgba(196, 186, 248, 0.22);
  }
}

@media (min-width: 600px) {
  .phone-frame { width: 232px;
  }
}

@media (min-width: 1024px) {
  .phone-frame { width: 265px;
  }
}


.features-modal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.features-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.features-section + .features-section {
  padding-top: 2.5rem;
}

.features-section__title {
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--color-brand);
}

.list-icon {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  padding: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .list-icon {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.list-icon__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.list-icon__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(26%) sepia(92%) saturate(1400%) hue-rotate(238deg) brightness(104%);
  margin-top: 2px;
}

.list-icon__body {
  min-width: 0;
  flex: 1;
}

.list-icon__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.list-icon__title {
  color: var(--modal-ink);
  margin: 0;
  font-size: var(--text-base);
}

.list-icon__text {
  color: var(--modal-ink-soft);
  margin: 0;
}

.features-modal-note {
  margin: 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--modal-line);
  color: var(--modal-ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  scroll-margin-top: 5rem;
}

.features-modal-note .badge {
  vertical-align: middle;
  margin: 0 0.15em;
}

.features-modal-note + .features-modal-note {
  padding-top: 0.6rem;
  border-top: none;
}

.news-teaser {
  background: #f3f0ff;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.news-teaser__header {
  text-align: center;
  margin-bottom: var(--space-l);
}

.news-teaser__headline {
  color: var(--color-brand);
}

.news-teaser__sub {
  color: rgba(var(--ink-rgb), 0.58);
  max-width: 52ch;
  margin: 0.75rem auto 0;
}

.news-teaser__actions {
  margin-top: var(--space-l);
  text-align: center;
}


/* ============================================================
   VORSTELLUNG — Pinned Scroll (eine Aussage)
   Gleicher Aufbau wie die Features-Section, damit der Übergang
   aus der Hero identisch bleibt. Unterschiede zur Features-
   Section (bewusst, damit beide nicht verwechselbar sind):
     • größere Typo (eine Aussage statt fünf Listenpunkte)
     • weicher Licht-Rest oben (Nachklang des Hero-Orbs)
     • kein Slide-Stack, keine Step-Dots, kürzerer Track
   ============================================================ */

.intro {
  margin-top: -20svh;
}

.intro__scroll-track {
  position: relative;
  height: 150svh;
}

.intro__sticky-panel {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: stretch;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%);
}

.intro__sticky-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 130% 75% at 50% -10%,
    rgba(255, 255, 255, 0.17) 0%,
    rgba(255, 255, 255, 0.08) 34%,
    rgba(255, 255, 255, 0.02) 58%,
    transparent 78%
  );
  pointer-events: none;
}

.intro__panel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  padding-inline: var(--layout-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.intro__text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-right: var(--space-l);
}

.intro__headline {
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 1.06;
  text-wrap: balance;
}

.intro__text {
  max-width: 44ch;
}

.intro__text p + p {
  margin-top: 1rem;
}

.intro__phone-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .intro__panel-inner {
    transition: opacity 0.35s ease;
  }
  .intro.is-exiting .intro__panel-inner {
    opacity: 0;
  }

  .intro__panel-inner {
    grid-template-columns: 1fr;
    grid-template-rows: 52svh 48svh;
  }

  .intro__phone-col {
    order: -1;
    margin-bottom: 1.5rem;
    padding-inline: 2rem;
  }

  .intro__text-col {
    justify-content: flex-start;
    padding-right: 0;
    padding-top: 1.5rem;
    gap: 1.25rem;
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  .intro__headline {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
  }

  .intro__text p {
    display: inline;
  }
  .intro__text p + p {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .intro__headline {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }
}

@media (max-width: 767px) and (max-height: 800px) {
  .intro__panel-inner {
    grid-template-rows: 60svh 40svh;
  }

  .intro__phone-col {
    margin-bottom: 5rem;
  }

  .intro__text-col {
    padding-top: 1.75rem;
    padding-bottom: 0;
  }
}


/* ============================================================
   FEATURES-SEKTION
   ============================================================ */

.features__scroll-track {
  position: relative;
  height: 300svh;
}

.features__sticky-panel {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: stretch;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%);
}

.features__sticky-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 20;
}

.features__panel-inner {
  position: relative;
  width: 100%;
  max-width: var(--layout-max);
  padding-inline: var(--layout-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
}


/* ============================================================
   LINKE SPALTE — Text-Slides
   ============================================================ */
.features__text-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features__slides {
  position: relative;
  min-height: 12rem;
}

.features__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
  padding-right: var(--space-l);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  user-select: none;
}

.features__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  user-select: text;
}

.features__title {
  font-family: var(--font-semibold);
}

.features__text {
  max-width: 38ch;
}

.features__panel-inner {
  position: relative;
}

.features__step-dots {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
}

@media (min-width: 768px) and (max-width: 1360px) {
  .features__step-dots {
    right: var(--layout-pad);
  }
}

.badge--on-dark {
  background: #ffffff;
  color: var(--color-brand);
  align-self: flex-start;
}

.features__badge {
  margin-bottom: 0.6rem;
}

.features__step-dots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-dot {
  transition:
    height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    width 0s,
    background 0.45s ease;
}

.step-dot.is-active {
  height: 26px;
  width: 8px;
}


/* ============================================================
   RECHTE SPALTE — Phone
   ============================================================ */
.features__phone-col {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   PHONE FRAME + SVG-RAHMEN
   ============================================================ */

.phone-frame {
  aspect-ratio: 890 / 1878;
}

.phone-svg-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 3;
}


/* ============================================================
   PHONE SCREEN: liegt unter dem Rahmen-Bild (z-index 2).
   Phone_Mockup.png ist 890 x 1878 px. Das Display-Loch im Bild liegt
   bei x 42,7 bis 841,0 und y 43,4 bis 1838,5 (Eckenradius ca. 107 px).
   Der Screen ist rundum 4 px GRÖSSER als das Loch und verschwindet unter
   dem opaken schwarzen Rand. So kann bei keiner Größe und keinem
   Subpixel-Rundungsfall ein Spalt zwischen Screen und Rahmen aufblitzen.
   Werte: left 38,7 / 890, right (890 - 845) / 890, top 39,4 / 1878,
   bottom (1878 - 1842,5) / 1878, Radius 111 px.
   ============================================================ */
.phone-screen {
  position: absolute;
  top:     2.1%;
  left:    4.35%;
  right:   5.06%;
  bottom:  1.89%;
  border-radius: 13.77% / 6.16%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

video.phone-screen__slide {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone-screen__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
  height: 100%;
  background-size: 100%;
  background-position: center center;
}

.phone-screen__slide.is-active { opacity: 1; }

.phone-screen {
  position: absolute;
  top:     2.1%;
  left:    4.35%;
  right:   5.06%;
  bottom:  1.89%;
  border-radius: 13.77% / 6.16%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  background-color: #0b0b14;
}

.phone-screen__slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-screen__slide.is-active { 
  opacity: 1; 
}

video.phone-screen__slide {
  object-fit: cover !important;
  object-position: center top !important;
}

/* Styling für reine Bild-Slides */
.phone-screen__slide:not(video) {
  background-size: 100%;
  background-position: center top;
}

.phone-screen__slide--hero,
.phone-screen__slide--intro,
.phone-screen__slide--cat,
.phone-screen__slide--1,
.phone-screen__slide--2,
.phone-screen__slide--3,
.phone-screen__slide--4,
.phone-screen__slide--5 {
  background-color: #0b0b14;
}

@media (max-width: 767px) {
  .features__panel-inner {
    transition: opacity 0.35s ease;
  }
  .features.is-exiting .features__panel-inner {
    opacity: 0;
  }

  .features__panel-inner {
    grid-template-columns: 1fr;
    grid-template-rows: 60svh 40svh;
  }

  .features__phone-col {
    order: -1;
    margin-bottom: 5rem;
    padding-inline: 2rem;
  }

  .features__text-col {
    justify-content: flex-start;
  }

  .features__slides {
    min-height: 0;
    flex: 1;
  }

  .features__slide {
    padding-right: 0;
    padding-top: 2.5rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .features__badge {
    display: none;
  }

  .features__step-dots {
    position: fixed;
    bottom: auto;
    left: auto;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 20;
  }

  .step-dot {
    transition:
      height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      width 0s,
      background 0.45s ease;
  }

  .step-dot.is-active {
    height: 26px;
    width: 8px;
  }


}


/* ============================================================
   CATEGORIES-SEKTION
   ============================================================ */

.categories {
  position: relative;
  /* Weicher Verlauf: Startfarbe (--color-bg) zu #f3f0ff mit Smoothstep-Kurve
     (langsamer Start, langsames Ende) über 13 Stufen. Ohne diese Kurve
     entstehen an den wenigen Stützpunkten sichtbare Knicke (Mach-Bänder).
     Erst sRGB als Rückfall, dann oklab, das keine graue Mitte erzeugt. */
  background: linear-gradient(
    to bottom,
    #4d49ba 0%,
    #514dbc 8%,
    #5b58c0 16%,
    #6b67c7 24%,
    #7f7bcf 32%,
    #9591d8 40%,
    #aba8e1 48%,
    #c1beea 56%,
    #d5d2f2 64%,
    #e5e1f9 72%,
    #efecfd 80%,
    #f3f0ff 88%,
    #f3f0ff 100%
  );
  background: linear-gradient(
    in oklab to bottom,
    #4d49ba 0%,
    #514dbc 8%,
    #5b58c0 16%,
    #6b67c7 24%,
    #7f7bcf 32%,
    #9591d8 40%,
    #aba8e1 48%,
    #c1beea 56%,
    #d5d2f2 64%,
    #e5e1f9 72%,
    #efecfd 80%,
    #f3f0ff 88%,
    #f3f0ff 100%
  );
  padding-top: calc(var(--space-xl) + var(--space-l));
  padding-bottom: calc(var(--space-xl) * 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--space-xl) * 2.5);
}

.categories__stage {
  position: relative;
  width: 100%;
}

.categories__slider-viewport {
  overflow: hidden;
  width: 100%;
  padding-block: 1.5rem;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black clamp(60px, 10vw, 160px),
    black calc(100% - clamp(60px, 10vw, 160px)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black clamp(60px, 10vw, 160px),
    black calc(100% - clamp(60px, 10vw, 160px)),
    transparent 100%
  );
}

.categories__card-track {
  display: flex;
  will-change: transform;
}

.cat-set {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
  padding-right: 20px;
}

@media (max-width: 640px) {
  .cat-set {
    gap: 12px;
    padding-right: 12px;
  }
}

.categories__phone-anchor {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  aspect-ratio: 260 / 554;
  visibility: hidden;
  pointer-events: none;
}

.categories__inner {
  max-width: var(--layout-max);
  padding-inline: var(--layout-pad);
  width: 100%;
}

.categories__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;

  /* Scroll-Reveal */
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity   0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories__header.is-visible {
  opacity: 1;
  transform: none;
}

.categories__headline {
  color: var(--color-brand);
}

.categories__sub {
  color: rgba(26, 24, 48, 0.58);
  max-width: 44ch;
}

@media (max-width: 767px) {
  .categories {
    gap: 9rem;
    padding-top: var(--space-xl);
  }
}

@media (min-width: 600px) {
  .categories__phone-anchor { width: 232px; }
}

@media (min-width: 1024px) {
  .categories__phone-anchor { width: 265px; }
}


/* ============================================================
   INVENTORY-CARD (Karten im Category-Slider)
   ============================================================ */

.cat-card {
  flex-shrink: 0;
  width: 200px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 0.78;
  user-select: none;
}

.cat-card__img-wrap {
  flex-shrink: 0;
  padding: 10px 10px 8px;
  position: relative;
}

.cat-card__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(87, 79, 241, 0.07);
  position: relative;
}

.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #574FF1;
  color: #fff;
  font-family: var(--font-semibold);
  font-size: 11px;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.cat-card__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #574FF1;
  color: #fff;
  font-family: var(--font-semibold);
  font-size: 11px;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.cat-card__body {
  flex: 1;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-card__title {
  margin: 0;
  font-family: var(--font-semibold);
  font-size: 16px;
  line-height: 1.3;
  color: #111827;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
  .cat-card {
    width: 148px;
    border-radius: 16px;
  }

  .cat-card__img-wrap {
    padding: 7px 7px 6px;
  }

  .cat-card__img {
    border-radius: 12px;
  }

  .cat-card__badge,
  .cat-card__count {
    font-size: 9.5px;
    padding: 4px 6px;
    border-radius: 5px;
  }

  .cat-card__body {
    padding: 6px 9px 8px;
  }

  .cat-card__title {
    font-size: 13px;
  }
}


/* ============================================================
   WHY-SEKTION
   ============================================================ */

.why {
  position: relative;
  background: linear-gradient(
    to bottom,
    #f3f0ff 0%,
    #ffffff 32%,
    #ffffff 68%,
    #f3f0ff 100%
  );
  padding-top: calc(var(--space-xl) + var(--space-l));
  padding-bottom: calc(var(--space-xl) * 1.5);
  overflow: hidden;
}

.why__inner {
  position: relative;
  z-index: 60;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-inline: var(--layout-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--space-xl) + var(--space-s));
}


/* ══════════════════════════════════════════════════════
   Frage-Zeile:  Warum  [ Phone ]  ?
   ══════════════════════════════════════════════════════ */
.why__question {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  width: 100%;
}

.why__phone-row {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
}

.why__word {
  font-family: var(--font-semibold);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--color-brand);
  flex-shrink: 0;
}

.why__word--warum,
.why__word--mark {
  opacity: 0;
  transition:
    opacity   0.55s var(--ease),
    transform 0.55s var(--ease);
}
.why__word--warum { transform: translateX(-28px); }
.why__word--mark  { transform: translateX(28px) rotate(-10deg); }

.why__question.is-revealed .why__word--warum,
.why__question.is-revealed .why__word--mark {
  opacity: 1;
  transform: none;
}

.why__question.is-revealed .why__word--mark { transition-delay: 0.12s; }

.why__phone-anchor {
  flex-shrink: 0;
  width: clamp(300px, 46vw, 560px);
  aspect-ratio: 554 / 260;
  visibility: hidden;
  pointer-events: none;
}

.why__arguments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
}

.why__arg-box {
  --accent: var(--color-brand);
  flex: 1 1 200px;
  max-width: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: clamp(1.7rem, 3vw, 2.3rem) clamp(1.1rem, 2.4vw, 1.6rem);
  border-radius: var(--radius-l);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(30, 24, 80, 0.10);

  /* Fade-In on Scroll */
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity    0.6s var(--ease),
    transform  0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    rotate     0.4s var(--ease);
}

/* Zickzack: jede 2. Karte tiefer setzen */
.why__arg-box:nth-child(2n) { margin-top: clamp(1.5rem, 4vw, 3rem); }

/* Eigener Farbakzent + Einblend-Verzögerung — zyklisch (beliebig viele Boxen) */
.why__arg-box:nth-child(4n+1) { --accent: #574FF1; transition-delay: 0.05s; }
.why__arg-box:nth-child(4n+2) { --accent: #21ABBF; transition-delay: 0.12s; }
.why__arg-box:nth-child(4n+3) { --accent: #7C6AF7; transition-delay: 0.19s; }
.why__arg-box:nth-child(4n)   { --accent: #5B8DEF; transition-delay: 0.26s; }

.why__arg-box.is-visible {
  opacity: 1;
  transform: none;
}

.why__arg-box:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 48px color-mix(in srgb, var(--accent) 30%, transparent);
  transition-delay: 0s;   /* Hover folgt nicht dem Intro-Stagger */
}

/* Icon — hochgeladenes SVG, per Maske einheitlich in der Markenfarbe,
   mit weichem Glow (kein harter Kreis). */
.why__arg-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why__arg-icon::before {
  content: '';
  position: absolute;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-brand) 32%, transparent), transparent 68%);
  filter: blur(5px);
  z-index: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* Das SVG wird als Maske genutzt und mit der Markenfarbe gefüllt –
   unabhängig von den Farben in der Original-Datei. */
.why__arg-icon-shape {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: block;
  background-color: var(--color-brand);
  -webkit-mask: var(--why-icon) no-repeat center / contain;
  mask: var(--why-icon) no-repeat center / contain;
  transition: transform 0.35s var(--ease);
}

/* Hover: Icon „atmet" */
.why__arg-box:hover .why__arg-icon::before {
  transform: scale(1.22);
  opacity: 0.9;
}
.why__arg-box:hover .why__arg-icon-shape {
  transform: scale(1.12) rotate(-4deg);
}

.why__arg-text {
  position: relative;
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.45;
  color: #1a1830;
  font-family: var(--font-semibold);
  text-wrap: balance;
}

@media (max-width: 1024px) {
  .why__question {
    flex-direction: column;
    align-items: center;
    gap: var(--space-l);
  }

  .why__phone-row {
    align-self: stretch;
    justify-content: flex-start;
    gap: clamp(1.25rem, 6vw, 2.5rem);
    overflow: visible;
  }

  .why__phone-anchor {
    width: 72vw;
    margin-left: -10vw;
    flex-shrink: 0;
  }

  .why__word--mark {
    font-size: clamp(3.5rem, 20vw, 6rem);
    line-height: 0.9;
  }
}

@media (max-width: 900px) {
  .why__arg-box:nth-child(2n),
  .why__arg-box:nth-child(4n+1),
  .why__arg-box:nth-child(4n+2),
  .why__arg-box:nth-child(4n+3),
  .why__arg-box:nth-child(4n) {
    margin-top: 0;
    rotate: 0deg;
  }
}

@media (max-width: 767px) {
  .why {
    padding-top: var(--space-xl);
  }

  .why__inner {
    gap: var(--space-l);
  }

  .why__word {
    font-size: clamp(1.6rem, 9vw, 2.6rem);
  }

  .why__word--mark {
    font-size: clamp(4.5rem, 28vw, 6.5rem);
  }

  .why__question {
    gap: 1.25rem;
  }
}

@media (max-width: 520px) {
  .why__arguments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    align-items: stretch;
  }

  .why__arg-box {
    max-width: none;
    padding: 1.5rem 0.9rem;
    gap: 0.65rem;
  }

  .why__arg-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .why__arg-icon-shape {
    width: 27px;
    height: 27px;
  }
}
