/* Baukasten für Motivationsposter (Services/PosterBauer.php, frontend/js/poster-bauer.js) */
.fspb { --fspb-text: #1f2328; --fspb-leise: #5f6670; --fspb-rand: #d9dce1; --fspb-akzent: #1f2328; color: var(--fspb-text);
  display: grid; gap: 1.25rem; margin: 0 0 2.5rem; max-width: 100%; }
.fspb *, .fspb *::before, .fspb *::after { box-sizing: border-box; }
.fspb-buehne { background: #ecebe7; border-radius: .75rem; padding: clamp(.6rem, 2.5vw, 1.75rem); }
.fspb-leinwand { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; border-radius: 2px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25); }
.fspb-regler { min-width: 0; }
.fspb-ton { display: inline-flex; padding: .2rem; border-radius: 999px; background: #eceef1; margin: 0 0 1rem; }
.fspb-ton button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600;
  color: var(--fspb-leise); cursor: pointer; transition: background-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.fspb-ton button[aria-pressed="true"] { background: #fff; color: var(--fspb-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.fspb-schritt { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .6rem; letter-spacing: normal; }
.fspb-schritt span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--fspb-akzent);
  color: #fff; font-size: .85rem; font-weight: 700; }
.fspb-motive { list-style: none; margin: 0; padding: .15rem 0 .5rem; display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fspb-motive::-webkit-scrollbar { display: none; }
.fspb-motive li { flex: 0 0 auto; scroll-snap-align: start; }
.fspb-motive button { display: block; width: 7.5rem; padding: 0; border: 2px solid transparent; border-radius: .6rem; background: none; cursor: pointer;
  font: inherit; color: var(--fspb-leise); text-align: left; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.fspb-motive button:active { transform: scale(.97); }
.fspb-motive img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .45rem; }
.fspb-motive span { display: block; padding: .3rem .15rem 0; font-size: .82rem; line-height: 1.2; }
.fspb-motive button[aria-pressed="true"] { border-color: var(--fspb-akzent); padding: 2px; color: var(--fspb-text); }
.fspb-motive button[aria-pressed="true"] span { font-weight: 700; }
.fspb-wuerfel { min-height: 44px; padding: 0 1rem; border: 1px solid var(--fspb-rand); border-radius: 999px; background: #fff; font: inherit;
  font-weight: 600; color: var(--fspb-text); cursor: pointer; margin: 0 0 .6rem; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, border-color .15s; }
.fspb-wuerfel:hover { border-color: var(--fspb-akzent); }
.fspb-wuerfel:active { transform: scale(.97); }
.fspb-vorschlaege { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.fspb-vorschlaege button { display: block; width: 100%; min-height: 56px; padding: .6rem .85rem; border: 1px solid var(--fspb-rand); border-radius: .6rem;
  background: #fff; text-align: left; font: inherit; color: var(--fspb-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background-color .15s, transform .12s ease; }
.fspb-vorschlaege button:hover { border-color: var(--fspb-akzent); }
.fspb-vorschlaege button:active { transform: scale(.985); }
.fspb-vorschlaege button[aria-pressed="true"] { border-color: var(--fspb-akzent); box-shadow: inset 0 0 0 1px var(--fspb-akzent); background: #f6f5f1; }
.fspb-vorschlaege strong { display: block; font-size: .8rem; letter-spacing: .14em; font-weight: 700; }
.fspb-vorschlaege span { display: block; font-size: .95rem; line-height: 1.35; color: var(--fspb-leise); }
.fspb-eigen { border: 1px solid var(--fspb-rand); border-radius: .6rem; padding: 0 .85rem; margin: 0 0 1rem; background: #fff; }
.fspb-eigen summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.fspb-eigen label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 .7rem; position: relative; }
.fspb-eigen input { display: block; width: 100%; min-height: 46px; margin-top: .25rem; padding: 0 .7rem; border: 1px solid var(--fspb-rand);
  border-radius: .45rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--fspb-text); background: #fff; }
.fspb-eigen input:focus-visible { outline: 2px solid var(--fspb-akzent); outline-offset: 1px; }
.fspb-zaehler { position: absolute; right: 0; top: 0; font-weight: 400; color: var(--fspb-leise); font-variant-numeric: tabular-nums; }
.fspb-klein { font-size: .82rem; line-height: 1.45; color: var(--fspb-leise); margin: .5rem 0 .75rem; }
.fspb-weiter { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.25rem; border-radius: .5rem; background: #111;
  color: #fff !important; font-weight: 700; font-size: 1.05rem; text-decoration: none !important; transition: transform .12s ease, background-color .15s; }
.fspb-weiter:hover { background: #2b2f36; }
.fspb-weiter:active { transform: scale(.985); }
.fspb-weiter[aria-disabled="true"] { background: #9aa0a8; cursor: not-allowed; }
.fspb button:focus-visible, .fspb-weiter:focus-visible, .fspb-eigen summary:focus-visible { outline: 2px solid var(--fspb-akzent); outline-offset: 2px; }
@media (max-width: 899px) {
  /* Vorschau bleibt beim Wählen sichtbar: klebt unter der Kopfzeile, die Regler laufen darunter durch */
  .fspb-buehne { position: sticky; top: 3.6rem; z-index: 5; padding: .5rem; border-radius: .6rem; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5); }
  .fspb-leinwand { max-height: 38vh; width: auto; max-width: 100%; margin: 0 auto; }
  .fspb-kauf { position: sticky; bottom: 0; z-index: 4; background: linear-gradient(rgba(255, 255, 255, 0), #fff 22%); padding: 1rem 0 .25rem; margin-top: .5rem; }
  .fspb-kauf .fspb-klein { margin: .4rem 0 0; }
}
@media (min-width: 900px) {
  .fspb { grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 1fr); gap: 2.25rem; align-items: start; }
  .fspb-buehne { position: sticky; top: 9.5rem; }
  .fspb-motive { flex-wrap: wrap; overflow: visible; }
  .fspb-motive button { width: 6.6rem; }
  .fspb-vorschlaege { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .fspb * { transition: none !important; } }

/* Text der Seite um den Baukasten */
.fspb-seite { color: #1f2328; }
.fspb-einleitung { font-size: 1.05rem; line-height: 1.6; max-width: 52rem; margin: .25rem 0 1.25rem; color: #3a4048; }
.fspb-text { max-width: 52rem; margin: 0 0 2rem; }
.fspb-text h2 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 .75rem; }
.fspb-text p, .fspb-text li { font-size: 1rem; line-height: 1.65; color: #3a4048; }
.fspb-text ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.fspb-text li { margin: 0 0 .45rem; }
@media (max-width: 767px) { body:has(.fspb-seite):not(:has(.fs-hero-section)):not(:has(#product-offer)) #content-wrapper { margin-top: 1.75rem; } }
