/* Produktseiten, Überarbeitung nach dem GF-Entwurf vom 02.12.2026 (eingebaut 03.12.2026).
   Liegt über styles.css; geladen von templates/partials/pdp-hero.php. */
/* Skyline (27.11.2026): Größen ohne «bis», Knopf «Aufmaß» für eigene Maße */
.pdp-buy--angebot [data-pdp-pills="size"] .pdp-pill > span:first-child::before { content: none; }
.pdp-buy--angebot [data-pdp-config]::before, .pdp-mbar--angebot [data-pdp-mbar-cfg]::before { content: none; }
.pdp-pill.sky-pill-aufmass small { opacity: .7; }
.sky-aufmass[hidden] { display: none; }
@keyframes skyBlink { 0%, 30%, 60% { color: var(--accent); } 15%, 45% { color: inherit; } 100% { color: inherit; } }
.sky-blink { animation: skyBlink 1.4s ease-out; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .sky-blink { animation: none; } }
@media (min-width: 1081px) {
  .sky-pricebox { position: sticky; top: calc(var(--header-h) + 10px); z-index: 6; background: var(--surface-2); margin: 0 -32px; padding: 10px 32px 12px; border-radius: 10px; transition: box-shadow .2s; }
  .sky-pricebox.is-stuck { box-shadow: 0 10px 24px rgba(0,0,0,.10); border-bottom: 1px solid var(--border); }
}
/* Kauf-Box kompakter (27.11.2026) */
.pdp-buy .divider { margin: 18px 0; }
.pdp-buy__price { font-size: 42px; }
.pdp-opt { margin-top: 16px; }
.pdp-opt__head { margin-bottom: 8px; }
.pdp-opt__hint, .pdp-buy [data-size-hint] { display: none; }
.pdp-buy .pdp-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pdp-buy .pdp-pill { min-width: 0; min-height: 42px; padding: 7px 8px; font-size: 13.5px; line-height: 1.25; justify-content: center; gap: 1px; }
.pdp-buy .pdp-pill small { font-size: 10.5px; }
.pdp-buy [data-pdp-pills="size"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdp-buy [data-pdp-pills="size"] .sky-pill-aufmass { grid-column: 1 / -1; flex-direction: row; gap: 8px; border-style: dashed; min-height: 38px; }
.pdp-buy [data-pdp-pills="posts"], .pdp-buy [data-pdp-pills="console"], .pdp-buy [data-led-name] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdp-buy .pdp-swatch { width: 30px; height: 30px; }
.pdp-buy .pdp-swatches { gap: 8px; }
.pdp-buy .pdp-mass__in input { font-size: 16px; padding: 9px 0; }
.pdp-buy .pdp-mass__hint { font-size: 12px; }
.pdp-buy .pdp-lead { margin-top: 14px; }
.sky-note { margin-top: 10px; text-align: center; line-height: 1.5; }
.pdp-buy .pdp-buy__config { min-height: 0; margin-bottom: 0; }
.pdp-buy .sky-pricebox + .divider { margin-top: 12px; }
.pdp-buy [data-pdp-pills="cover"] .pdp-pill > span:first-child { white-space: nowrap; }

/* Freeline: Größe = nur Stellplätze; die beiden Solarmodul-Gestelle werden über die Eindeckung gewählt (pdp-v2.js) */
.pdp-buy[data-pdp="Freeline"] [data-pdp-pills="size"] > .pdp-pill:nth-child(3),
.pdp-buy[data-pdp="Freeline"] [data-pdp-pills="size"] > .pdp-pill:nth-child(4) { display: none !important; }
html[data-flpv="1"] .pdp-buy[data-pdp="Freeline"] [data-pdp-pills="size"] > .pdp-pill:nth-child(1),
html[data-flpv="2"] .pdp-buy[data-pdp="Freeline"] [data-pdp-pills="size"] > .pdp-pill:nth-child(2) { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Kauf-Knöpfe statt «In den Warenkorb»: die alte Zeile mit Menge und Warenkorb bleibt im DOM (pdp.js), ist aber aus. */
.buy2--on .pdp-buy__row, .buy2--on [data-pdp-buyhint], .buy2--on .pdp-buy__qtynote, .buy2--on .pdp-buy__added { display: none !important; }
/* Mit LED/Spots («Preis im Angebot») oder Übermaß gibt es keinen Online-Preis: nur der Angebots-Link bleibt (pdp-mass.js). */
.pdp-buy.is-nur-angebot .buy2__btns, .pdp-buy.is-nur-angebot .buy2__pm,
body.pdp-nur-angebot .buy2-mbar__actions { display: none !important; }
.pdp-buy.is-nur-angebot .pdp-nurangebot { margin: 18px 0 0; text-align: center; }
/* Ausführung ohne Variante im Shop: «Jetzt kaufen» aus, Rechnung und Angebot bleiben. */
.pdp-buy.is-ohne-shop [data-buy2-pay], body.pdp-ohne-shop [data-mbar-pay] { display: none !important; }
.pdp-buy.is-ohne-shop .buy2__btns { grid-template-columns: 1fr; }
