/* Look Variante B „Vereins-Bühne": gelbe Bühne mit den großen Vereinsformen wie die
   Mitglieder-Anmeldung, der weiße Kreis wird zur Christbaumkugel. Weiße Karte, Schrift wie im
   Vereins-Design (Serif-Titel, klare Grundschrift), ordentliche Zettel mit roter Schleife.
   Am PC steht „Dein Beitrag" fest rechts als Spalte. Nur aktiv mit body.stil-buehne. */
.stil-buehne {
  --vf-blau: #28367b;
  --vf-gelb: #f9b122;
  --vf-rot: #ea4f3d;
  --navy: #172353;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --zettel-gelb: #fdeecd;
  --zettel-mint: #e5eedd;
  --zettel-rosa: #fde3df;
  --zettel-blau: #e9ebf4;

  padding-top: 3.8rem;
  font-family: var(--sans);
  font-size: 1rem;
  background:
    url("/img/buehne-kugel.svg") right -90px top -40px /
      clamp(220px, 32vw, 430px) auto no-repeat,
    url("/img/buehne-balken.svg") left -160px bottom -190px / 440px auto
      no-repeat,
    var(--vf-gelb);
  background-attachment: fixed;
}

.stil-buehne :is(h1, h2, h3, .zaehler, .leer-titel) {
  font-family: var(--serif);
  color: var(--vf-blau);
}

/* Die weiße Karte statt kariertem Papier */
.stil-buehne #app {
  max-width: 1120px;
  padding-bottom: 2.5rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgb(23 35 83 / 0.25);
}

.stil-buehne #app::before,
.stil-buehne .kopfband .deko {
  display: none;
}

/* Kopf: blaues Logo, darunter Titel mit roter Dachzeile */
.stil-buehne .kopfband {
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem clamp(1.2rem, 4vw, 2.5rem) 0;
  color: var(--vf-blau);
  background: none;
  border: 0;
}

.stil-buehne .logo {
  width: min(13rem, 70%);
  background-image: url("/img/logo-familienverband-blau.svg");
}

.stil-buehne .kopfband h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--vf-blau);
  text-shadow: none;
}

.stil-buehne .kopfband h1::before {
  display: block;
  margin-bottom: 0.4rem;
  font: 600 0.8rem/1.4 var(--sans);
  color: var(--vf-rot);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  content: "Weihnachten 2026";
}

.stil-buehne .untertitel {
  font-size: 1.1rem;
}

.stil-buehne .zaehler {
  font-size: 1.4rem;
  font-weight: 700;
  background: none;
}

.stil-buehne .balken {
  border: 0;
  border-radius: 999px;
  background: #e9ebf4;
}

.stil-buehne .balken-bezahlt {
  background: #6d9254;
}

.stil-buehne .balken-korb {
  background: var(--vf-rot);
}

.stil-buehne .lampe.an::after {
  background: var(--vf-gelb);
}

.stil-buehne .lampe.an:nth-child(3n + 1)::after {
  background: var(--vf-rot);
  box-shadow: 0 0 10px 3px rgb(234 79 61 / 0.6);
}

.stil-buehne #sack-titel {
  font-size: 1.6rem;
}

/* Zettel: gerade, runde Ecken, rote Schleife statt Klebestreifen */
.stil-buehne .kacheln {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1.8rem 1.2rem;
}

.stil-buehne .zettel {
  transform: none;
}

.stil-buehne .seite {
  min-height: 17rem;
  padding-top: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgb(40 54 123 / 0.1);
}

.stil-buehne .seite::before {
  top: -0.9rem;
  left: calc(50% - 1.6rem);
  width: 3.2rem;
  height: 1.8rem;
  background: url("/img/buehne-schleife.svg") center / contain no-repeat;
  transform: none;
}

.stil-buehne .vorn :is(.wunschtext, .preis, .menge-zahl),
.stil-buehne .hinten-titel {
  font-family: var(--serif);
  color: var(--vf-blau);
}

/* Icon: blau im weißen Kreis */
.stil-buehne .vorn .emoji[data-icon] {
  --icon-abstand: 22%;
  --icon-farbe: var(--vf-blau);

  width: 3.9rem;
  height: 3.9rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(40 54 123 / 0.14);
}

.stil-buehne .vorn .wunschtext {
  font-size: 1.5rem;
}

.stil-buehne .vorn .preis {
  font-size: 2.4rem;
}

.stil-buehne .zettel.ist-korb .seite {
  box-shadow:
    0 0 0 3px var(--vf-blau),
    0 8px 22px rgb(40 54 123 / 0.2);
}

.stil-buehne .zettel.alle {
  border: 2px dashed var(--vf-blau);
  border-radius: 16px;
}

/* Knöpfe wie bei der Anmeldung: gelbe Pille, dunkelblaue Schrift */
.stil-buehne .haupt,
.stil-buehne .zettel.alle .haupt,
.stil-buehne .hinten .haupt,
.stil-buehne #spenden {
  padding: 0.9rem 1.4rem;
  font: 700 1.05rem/1.2 var(--sans);
  color: var(--navy);
  background: var(--vf-gelb);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgb(249 177 34 / 0.45);
}

.stil-buehne .knopf,
.stil-buehne .icon {
  font-family: var(--sans);
  color: var(--vf-blau);
  border: 2px solid var(--vf-blau);
  border-radius: 999px;
  box-shadow: none;
}

/* Korb-Leiste: Handy unten, blaue Leiste */
.stil-buehne .korbleiste {
  background: var(--vf-blau);
  border-top: 0;
  border-radius: 16px 16px 0 0;
}

.stil-buehne .korb-toggle .summe-wert {
  font-family: var(--serif);
  color: var(--vf-gelb);
}

/* Am PC: zwei Spalten, rechts „Dein Beitrag" als feste Karte */
@media (width >= 64rem) {
  .stil-buehne .inhalt:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    align-items: start;
  }

  .stil-buehne .korbleiste {
    position: sticky;
    top: 4.5rem;
    bottom: auto;
    margin-top: 3.4rem;
    padding: 1.2rem;
    border-radius: 16px;
  }

  .stil-buehne .korb-zeile {
    flex-direction: column;
    align-items: stretch;
  }

  .stil-buehne #spenden {
    width: 100%;
  }

  /* Leer: gestrichelter Platzhalter an derselben Stelle */
  .stil-buehne .inhalt:has(> .korbleiste[hidden])::after {
    position: sticky;
    top: 4.5rem;
    margin-top: 3.4rem;
    padding: 1.4rem;
    color: var(--vf-blau);
    text-align: center;
    content: "Dein Beitrag ist noch leer. Tipp einen Zettel an und such dir aus, wie viel du gibst.";
    border: 2px dashed var(--vf-blau);
    border-radius: 16px;
  }
}

.stil-buehne .fuss {
  max-width: 1120px;
  color: var(--navy);
  border-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .stil-buehne .zettel:not(.gedreht, .ist-erfuellt, .alle):hover {
    animation: none;
    transform: translateY(-4px);
    transition: transform 0.2s;
  }

  .stil-buehne .lampe.an::after {
    animation-duration: 3.4s;
  }
}
