/* --- Der Flyer selbst --- */
#promo-flyer-wrapper {
    position: fixed;
    top: 60%;
    left: 40%;

    z-index: 99999;

    opacity: 0;

    transform:
        translate(-50%, -400px)
        rotate(-25deg)
        scale(.85);
}


#promo-flyer-wrapper::before,
#promo-flyer-wrapper::after {
    content: '';
    position: absolute;

    width: 70px;
    height: 26px;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.25) 0px,
            rgba(255,255,255,.25) 3px,
            rgba(255,255,255,.08) 3px,
            rgba(255,255,255,.08) 6px
        ),
        rgba(232,226,200,.75);

    border: 1px solid rgba(0,0,0,.24);
    box-shadow: 0 3px 6px rgba(0,0,0,.15);

    z-index: 10;
    pointer-events: none;
}


#promo-flyer-wrapper::before {
    top: -12px;
    left: -18px;
    transform: rotate(-40deg);
}


#promo-flyer-wrapper::after {
    top: -12px;
    right: -18px;
    transform: rotate(40deg);
}

#promo-flyer-wrapper.visible {
    opacity: 1;
    animation: flyer-spin-in 2.75s cubic-bezier(.2,.7,.3,1.1) forwards;
}


#promo-flyer {
    width: min(90vw, 480px);

    color: #2a2118;
    padding: 1.6rem 1.7rem 1.7rem;

    background:
        repeating-linear-gradient(
            95deg,
            rgba(0,0,0,.015) 0px,
            rgba(0,0,0,.015) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(
            165deg,
            #fdf8ee 0%,
            #f6ecd8 60%,
            #f0e4cc 100%
        );

    clip-path: polygon(
        0.5% 2%, 12% 0%, 30% 1.2%, 55% 0%, 78% 1%, 99% 0%,
        100% 15%, 99.3% 40%, 100% 62%, 99% 85%, 100% 98%,
        80% 100%, 60% 99%, 35% 100%, 15% 99%, 0% 100%,
        1% 75%, 0% 50%, 1.2% 25%
    );

    box-shadow:
        0 22px 45px rgba(30,20,10,.78),
        0 2px 6px rgba(30,20,10,.15);
}

/* Klebeband oben links */
#promo-flyer::before,
#promo-flyer::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 26px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.25) 0px,
      rgba(255,255,255,.25) 3px,
      rgba(255,255,255,.08) 3px,
      rgba(255,255,255,.08) 6px
    ),
    rgba(232, 226, 200, .55);
  border: 1px solid rgba(0,0,0,.24);
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
  pointer-events: none;
}
#promo-flyer::before {
  top: -12px;
  left: -18px;
  transform: rotate(-40deg);
}
#promo-flyer::after {
  top: -12px;
  right: -18px;
  transform: rotate(40deg);
}

.FlyerTitle {
   font-size: 1.8rem;
}

#promo-flyer.visible {
  opacity: 1;
  pointer-events: auto;
  animation: flyer-spin-in 2.75s cubic-bezier(.2,.7,.3,1.1) forwards;
}
/* Endzustand: an Ort, leicht geneigt wie hingeworfen/angepinnt */
@keyframes flyer-spin-in {
  0% {
    transform: translate(-50%, -400px) rotate(-25deg) scale(.85);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) rotate(-4deg) scale(1);
    opacity: 1;
  }
}
#promo-flyer h2 {
  margin: .25rem 0 .5rem;
  font-size: 1.25rem;
  color: #2a2118;
}
#promo-flyer p {
  margin: 0 0 1.1rem;
  font-size: 1.5rem;
  line-height: 1.45;
  color: #5a4f3f;
}

#flyer-text {
    margin: 0 0 1.1rem;
    font-size: 1.5rem;
    line-height: 1.45;
    color: #5a4f3f;
}

#promo-flyer .flyer-actions {
  display: flex;
  gap: .75rem;
}
#promo-flyer button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: .55rem 1rem;
  font-size: .9rem;
  font-weight: 600;
}
#promo-flyer .btn-info {
  background: #ff9800;
  color: #fdf8ee;
}
#promo-flyer .btn-info:hover {
  background: #c47600; 
}

#promo-flyer .btn-close {
  background: transparent;
  color: #8a7a63;
  padding: .55rem .6rem;
}

#promo-flyer .btn-close:hover {
  background: #a0a09f; 
   color: #2a2118; 
  }

/* Respektiert reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  #promo-flyer.visible {
    animation: none;
    transform: translate(-50%, 0) rotate(-4deg) scale(1);
  }
}

