/* Look Variante C „Packpapier & Anhänger": Packpapier, rot-weiße Bäckerschnur, Tannengirlande
   mit Lichtern im Kopf. Die Zettel werden zu Geschenkanhängern mit Loch und Schnur, leicht schräg
   verstreut. „Dein Beitrag" schwebt als grüner Anhänger unten rechts. Nur mit body.stil-packpapier. */
.stil-packpapier {
  --kraft: #d9bc94;
  --tinte: #4a2e17;
  --dunkelrot: #8e2419;
  --tannengruen: #2f5d3a;
  --schnur: #c8372a;
  --zettel-gelb: #fbf5e9;
  --zettel-mint: #e6eedb;
  --zettel-rosa: #f7e0d9;
  --zettel-blau: #fffdf8;

  padding-top: 3.6rem;
  color: var(--tinte);
  background:
    radial-gradient(
        circle at 30% 40%,
        rgb(255 255 255 / 0.1) 0 1px,
        transparent 2px
      )
      0 0 / 7px 7px,
    repeating-linear-gradient(
      87deg,
      rgb(110 70 30 / 0.05) 0 2px,
      transparent 2px 9px
    ),
    var(--kraft);
}

/* Kein Blatt mehr; oben läuft die rot-weiße Schnur über die Seite */
.stil-packpapier #app {
  max-width: 1180px;
  color: var(--tinte);
  background: none;
  box-shadow: none;
  --muted: #6b4a2b;
}

.stil-packpapier #app::before {
  inset: 0 0 auto;
  width: auto;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--schnur) 0 7px,
    #fff 7px 14px
  );
  border-radius: 3px;
  opacity: 1;
}

.stil-packpapier .kopfband {
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1rem 0;
  text-align: center;
  background: none;
  border: 0;
}

.stil-packpapier .logo {
  width: min(12rem, 60%);
  background-image: url("/img/logo-familienverband-blau.svg");
  background-position: center;
}

.stil-packpapier .kopfband h1 {
  font-size: clamp(3rem, 11vw, 5.2rem);
  color: var(--dunkelrot);
  text-shadow: 2px 2px 0 rgb(255 255 255 / 0.45);
  transform: rotate(-2deg);
}

.stil-packpapier .kopfband .deko {
  filter: saturate(1.4) brightness(0.85);
}

.stil-packpapier .fortschritt {
  justify-items: center;
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.stil-packpapier .zaehler {
  color: var(--tannengruen);
  background: linear-gradient(
    transparent 62%,
    rgb(255 255 255 / 0.55) 62% 92%,
    transparent 92%
  );
}

.stil-packpapier .balken {
  border-color: var(--tinte);
}

.stil-packpapier .fortschritt .balken {
  width: 100%;
}

.stil-packpapier .balken-bezahlt {
  background: repeating-linear-gradient(
    -45deg,
    var(--tannengruen) 0 6px,
    #4b7d56 6px 10px
  );
}

/* Tannengirlande mit Lichtern: der Zweig ist der Draht */
.stil-packpapier .lichter {
  justify-content: center;
  padding-top: 0.4rem;
  background: url("/img/packpapier-girlande.svg") 0 0.1rem / 2.3rem 1.4rem
    repeat-x;
}

.stil-packpapier .lampe::before {
  display: none;
}

.stil-packpapier .lampe::after {
  top: 0.75rem;
  background: #8b7a62;
  border-color: var(--tinte);
}

.stil-packpapier .lampe.an:nth-child(odd)::after {
  background: #f04a3a;
  box-shadow: 0 0 10px 3px rgb(240 74 58 / 0.65);
}

.stil-packpapier #sack-titel {
  font-size: 2.4rem;
  color: var(--dunkelrot);
  text-align: center;
}

/* Geschenkanhänger: abgeschrägte Ecken oben, Loch mit Schnur, verstreut und schräg */
.stil-packpapier .kacheln {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 3.4rem 1.8rem;
  padding-top: 2.4rem;
}

.stil-packpapier .zettel {
  filter: drop-shadow(2px 6px 6px rgb(60 35 10 / 0.35));
  transform-origin: 50% 0;
}

.stil-packpapier .zettel.wunsch:nth-child(3n + 1) {
  --dreh: -2.5deg;
}
.stil-packpapier .zettel.wunsch:nth-child(3n + 2) {
  --dreh: 2deg;
  translate: 0 1.2rem;
}
.stil-packpapier .zettel.wunsch:nth-child(3n) {
  --dreh: -1deg;
  translate: 0 0.4rem;
}
.stil-packpapier .zettel.mystery {
  --dreh: 2.5deg;
}
.stil-packpapier .zettel.gutschein {
  --dreh: -2deg;
  translate: 0 0.8rem;
}

.stil-packpapier .zettel.ist-erfuellt {
  filter: drop-shadow(2px 6px 6px rgb(60 35 10 / 0.35)) brightness(0.93);
}

.stil-packpapier .seite {
  padding-top: 2.8rem;
  color: var(--tinte);
  background:
    radial-gradient(
      circle at 50% 1.25rem,
      var(--kraft) 0 0.42rem,
      rgb(74 46 23 / 0.5) 0.45rem 0.55rem,
      transparent 0.58rem
    ),
    var(--farbe);
  border-radius: 0 0 10px 10px;
  box-shadow: none;
  clip-path: polygon(
    1.6rem 0,
    calc(100% - 1.6rem) 0,
    100% 1.6rem,
    100% 100%,
    0 100%,
    0 1.6rem
  );
}

.stil-packpapier .seite::before {
  display: none;
}

.stil-packpapier .hinten {
  border: 0;
}

/* Die Schnur: eine Schlaufe durch das Loch, rot-weiß gedreht */
.stil-packpapier .zettel:not(.alle)::before {
  position: absolute;
  top: -1.9rem;
  left: calc(50% - 0.75rem);
  z-index: 1;
  width: 1.5rem;
  height: 3.6rem;
  content: "";
  border: 3px dashed var(--schnur);
  border-color: var(--schnur) #fff var(--schnur) var(--schnur);
  border-radius: 50% 50% 45% 45%;
}

/* Icon: wie ein Stempel in dunkelroter Tinte */
.stil-packpapier .vorn .emoji[data-icon] {
  --icon-abstand: 20%;
  --icon-farbe: var(--dunkelrot);

  width: 4rem;
  height: 4rem;
  border: 2px dashed var(--dunkelrot);
  border-radius: 50%;
  rotate: -8deg;
}

.stil-packpapier .vorn .nr {
  top: 1.9rem;
  left: 1.2rem;
}

.stil-packpapier .abzeichen {
  top: 2rem;
  right: 0.7rem;
}

.stil-packpapier .vorn :is(.wunschtext, .preis),
.stil-packpapier .hinten-titel {
  color: var(--dunkelrot);
}

.stil-packpapier .zettel.ist-korb .seite {
  box-shadow: inset 0 -8px 0 var(--tannengruen);
}

.stil-packpapier .zettel.alle {
  color: var(--tinte);
  background: rgb(255 255 255 / 0.35);
  border: 3px dashed var(--tinte);
  border-radius: 12px;
}

/* Knöpfe: rot mit dunklem Stiftrand (bleibt handgemalt) */
.stil-packpapier .haupt,
.stil-packpapier #spenden {
  color: #fff;
  background: var(--schnur);
  border-color: #5b1a12;
  box-shadow: 3px 3px 0 #5b1a12;
}

.stil-packpapier :is(.knopf, .icon, .verweis) {
  color: var(--tinte);
  border-color: var(--tinte);
}

.stil-packpapier .knopf {
  box-shadow: 2px 2px 0 var(--tinte);
}

/* „Dein Beitrag" schwebt als grüner Anhänger unten rechts statt als volle Leiste */
.stil-packpapier .inhalt {
  padding-bottom: 6rem;
}

.stil-packpapier .korbleiste {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: min(23rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  background: var(--tannengruen);
  border: 3px dashed rgb(255 255 255 / 0.5);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgb(60 35 10 / 0.45);
}

.stil-packpapier .korb-toggle .summe-wert {
  color: #ffe9a8;
}

.stil-packpapier .fuss {
  color: var(--tinte);
  border-top-color: var(--tinte);
}

@media (prefers-reduced-motion: no-preference) {
  .stil-packpapier .zettel:not(.gedreht, .ist-erfuellt, .alle):hover {
    animation: packpapier-schwingen 1.2s ease-in-out;
  }
}

@keyframes packpapier-schwingen {
  25% {
    transform: rotate(calc(var(--dreh) - 4deg));
  }
  60% {
    transform: rotate(calc(var(--dreh) + 3deg));
  }
  85% {
    transform: rotate(calc(var(--dreh) - 1deg));
  }
}
