/* Belegungs-Montage auf /flyer-aufsteller-wien/ (Variante A, freigegeben 15.11.2026). Erzeugt von konzepte/aufsteller-montage/werkzeug/einbau.mjs aus konzepte/aufsteller-montage/montage.css; dort ändern. */
/*
 * Montage „Ein Aufsteller, viele Kampagnen“ (Konzept-Prototyp, 15.11.2026, nicht veröffentlicht)
 * Variante A: ein freigestellter Musteraufsteller bleibt stehen, Belegung und Farbfläche wechseln.
 * Für den Einbau gedacht als Abschnitt in public/modern.css; Farben = Marken-Tokens aus modern.css.
 * Bewegung: nur opacity und background-color, ohne JavaScript ist das erste Bild sichtbar (Grundzustand statisch).
 */
.fpm {
  --fpm-c: #00A2BF; --fpm-m: #E40082; --fpm-y: #FFE600; --fpm-p: #F5F5F5; --fpm-k: #0F1923;
  --fpm-ease: cubic-bezier(.16, 1, .3, 1);
  --fpm-fade: 600ms; /* gestalteter Moment, bewusst länger als die 100–300 ms der Bedienelemente */
  display: grid; gap: clamp(20px, 4vw, 48px); align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 0 max(16px, min(5vw, 40px));
}
@media (min-width: 768px) { .fpm { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.fpm__text h2 { margin: 0 0 .5em; font: 700 clamp(1.5rem, 3.2vw, 2.1875rem)/1.12 Arial, Helvetica, sans-serif; letter-spacing: -.01em; color: #0F1923; text-wrap: balance; }
.fpm__text p { margin: 0 0 1em; color: #333; font: 400 1.0625rem/1.65 Arial, Helvetica, sans-serif; max-width: 60ch; text-wrap: pretty; }

/* Bühne: festes Seitenverhältnis gegen Layout-Verschiebungen, Farbfläche wechselt mit dem Bild */
.fpm__stage {
  --fpm-bg: var(--fpm-c);
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  background-color: var(--fpm-bg);
  transition: background-color var(--fpm-fade) var(--fpm-ease);
}
.fpm__stage[data-bg="c"] { --fpm-bg: var(--fpm-c); }
.fpm__stage[data-bg="m"] { --fpm-bg: var(--fpm-m); }
.fpm__stage[data-bg="y"] { --fpm-bg: var(--fpm-y); }
.fpm__stage[data-bg="p"] { --fpm-bg: var(--fpm-p); }
.fpm__stage[data-bg="k"] { --fpm-bg: var(--fpm-k); }
/* Bodenschatten: erdet den Aufsteller auf jeder Farbfläche (statisch, kein Filter in der Animation) */
.fpm__stage::after {
  content: ""; position: absolute; z-index: 0; left: 22%; right: 22%; bottom: 4.5%; height: 5%;
  background: radial-gradient(closest-side, rgb(15 25 35 / .38), rgb(15 25 35 / 0));
}

.fpm__frames { position: absolute; z-index: 1; inset: 5% 8% 6%; margin: 0; padding: 0; list-style: none; }
.fpm__frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity var(--fpm-fade) var(--fpm-ease); }
.fpm__frame.is-active { opacity: 1; }
.fpm__frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

/* Etikett mit Kalenderwoche: belegt, dass es echte Belegungen sind */
.fpm__cap { position: absolute; z-index: 2; left: 12px; top: 12px; margin: 0; padding: 8px 12px; background: #fff; color: #0F1923; font: 700 0.8125rem/1.2 Arial, Helvetica, sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* Pause/Abspielen (WCAG 2.2.2): erscheint nur mit JavaScript, 44 × 44 px */
.fpm__toggle {
  position: absolute; z-index: 2; right: 12px; top: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: #fff; color: #0F1923; cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.fpm__toggle:hover { background: #0F1923; color: #fff; }
.fpm__toggle svg { width: 20px; height: 20px; }
.fpm__toggle .fpm__i-play { display: none; }
.fpm[data-state="paused"] .fpm__toggle .fpm__i-play { display: block; }
.fpm[data-state="paused"] .fpm__toggle .fpm__i-pause { display: none; }
.fpm :focus-visible { outline: 3px solid #0F1923; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

/* Auswahl der Belegung: jederzeit selbst durchblättern (auch bei reduzierter Bewegung) */
.fpm__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.fpm__chip {
  min-height: 40px; padding: 8px 14px; border: 2px solid #0F1923; border-radius: 0; background: transparent; color: #0F1923;
  font: 700 0.8125rem/1.2 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.fpm__chip:hover { background: #F5F5F5; }
.fpm__chip[aria-current="true"] { background: #0F1923; color: #fff; }

/* Auf der Website (Ausschnitt mit .fp-insert): gleiche Grammatik wie die Abschnitts-Schiene der Seite (.fp-rail in
   public/modern.css): Trennlinie oben, Titel links, Inhalt rechts ab 860 px Containerbreite, sonst gestapelt */
.fpm.fp-insert {
  grid-template-columns: minmax(0, 1fr); gap: 20px 40px; align-items: start;
  max-width: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 32px) 0 0; border-top: 1px solid #E0E0E0;
}
.fpm.fp-insert .fpm__text h2 { margin: 0 0 .45em; font-size: clamp(1.5rem, 2.8vw, 2rem); }
@container (min-width: 860px) {
  .fpm.fp-insert { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } /* Kapitel-Raster der Website (modern.css) */
  .fpm.fp-insert .fpm__stage { aspect-ratio: 1 / 1; }
}

/* Reduzierte Bewegung: kein automatischer Wechsel (montage.js), Wechsel per Klick nur als kurze Überblendung */
@media (prefers-reduced-motion: reduce) {
  .fpm { --fpm-fade: 150ms; }
}

/* In den Kapiteln der Aufsteller-Seite (src/lib/inserts.js → kapitelBuehnen, Wunsch Inhaber 15.11.2026): je Kapitel eine
   Bühne in der Bildspalte statt eines eigenen Blocks. Ohne Auswahl-Knöpfe; die Kalenderwoche steht auf der Bühne,
   der Pause-Knopf bleibt (WCAG 2.2.2). Seitenverhältnis: Handy quadratisch, ab 860 px Inhaltsbreite 4 : 5. */
.fpm.fpm--kapitel { display: block; max-width: none; margin: 0; padding: 0; }
.fpm--kapitel .fpm__stage { aspect-ratio: 1 / 1; }
@container (min-width: 860px) { .fpm--kapitel .fpm__stage { aspect-ratio: 4 / 5; } }
.fp-modern .fp-kapitel__bild--montage .fpm__frame img { height: 100%; }
/* Takt in den Kapiteln 1,5 s (Wunsch Inhaber 15.11.2026, wie ein GIF): kurze Überblendung */
.fpm--kapitel { --fpm-fade: 250ms; }
