/* Akustikbild-Produktseite: Kaufbereich und Abschnitte.
   Greift nur, wenn der Body die Klasse akb-pdp trägt (Bootstrap.php, Schalter pdp_umbau in schalter.php). */

/* ── Kopf im Kaufbereich: Name, Bewertung, Nutzen, Preis ─────────────────── */
.akb-pdp .akb-config-header { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
.akb-pdp .akp-sterne-zeile { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: .875rem; color: #44525a; text-decoration: none !important; white-space: nowrap; }
.akb-pdp .akp-sterne-zeile:hover span:last-child { text-decoration: underline; }
.akb-pdp .akp-sterne-zeile b { color: #1a1a1a; }
.akb-pdp .akp-sterne::before { content: "★★★★★"; font-size: 1.05rem; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(90deg, #e5581c calc(var(--wert) / 5 * 100%), #d1d5db 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.akb-pdp .akp-nutzen { margin: .4rem 0 0; font-size: .95rem; line-height: 1.5; color: #44525a; }
.akb-pdp .akp-preis { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: .8rem; }
.akb-pdp .akp-preis strong { font-family: "Varela Round", sans-serif; font-size: 1.9rem; line-height: 1.1; color: #b71818; }
.akb-pdp .akp-preis span { font-size: .8125rem; color: #6b7280; }

/* ── Kaufspalte straffen ─────────────────────────────────────────────────── */
.akb-pdp .akb-config-section { gap: 1.1rem; }
.akb-pdp .akb-config-group { margin-bottom: 0; }
.akb-pdp #akb-variations-wrapper { display: none; }
.akb-pdp .akb-cart-wrapper { margin-bottom: 0; padding-top: .9rem; }
.akb-pdp .akp-freigabe { display: flex; align-items: flex-start; gap: .55rem; margin: .8rem 0 0; font-size: .85rem; line-height: 1.45; color: #2F3E46; }
.akb-pdp .akp-freigabe i { flex: 0 0 auto; margin-top: 1px; font-size: 1.15rem; color: #1f7a4d; }
.akb-pdp .akp-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .85rem; color: #44525a; }
.akb-pdp .akp-punkte li { display: flex; align-items: center; gap: .55rem; }
.akb-pdp .akp-punkte i { flex: 0 0 auto; font-size: 1.05rem; color: var(--akb-accent, #b71818); }

/* ── Unter der Bühne: eine Zeile statt drei Kästen ───────────────────────── */
.akb-pdp .akb-service-note, .akb-pdp .akb-image-info { display: none !important; }
.akb-pdp .akp-motivzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .7rem .25rem 0; }
.akb-pdp .akp-motivzeile .akb-quality-warning { padding: 0; gap: .5rem; background: none !important; border: 0 !important; }
.akb-pdp .akp-motivzeile .akb-quality-warning span { font-size: .9rem; color: #2F3E46 !important; }
.akb-pdp .akp-motivzeile .akb-change-btn { flex: 0 0 auto; min-height: 40px; background: #fff; border: 1px solid #d6dde2; color: #2F3E46; white-space: nowrap; }
.akb-pdp .akp-motivzeile .akb-change-btn:hover { border-color: #2F3E46; }

/* Überschrift der Gruppe mit Zusatz rechts (Format tauschen, Messwerte) */
.akb-pdp .akp-gruppenkopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: .5rem; }
.akb-pdp .akp-gruppenkopf .akb-config-label { margin: 0; }
.akb-pdp .akp-gruppenkopf .akb-swap-btn { margin: 0; padding: 2px 0; border: 0; background: none; font-size: .78rem; color: #44525a; }
.akb-pdp .akp-gruppenkopf .akb-swap-btn:hover { background: none; color: var(--akb-accent, #b71818); }

@media (min-width: 992px) {
  /* Kaufspalte passt bei 1440 × 900 in ein Fenster: flache Kacheln, Preis, Menge und Knopf in einer Zeile */
  .akb-pdp .akb-config-section { gap: .8rem; }
  .akb-pdp .akp-preis { margin-top: .5rem; }
  .akb-pdp .akb-config-label { margin-bottom: .45rem; }
  .akb-pdp .akb-size-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 0; }
  .akb-pdp .akb-size-preset { min-width: 0; min-height: 46px; padding: 5px 2px; border-width: 1.5px; }
  .akb-pdp .akb-size-preset:not(.akb-size-custom-toggle) .akb-size-preset-dim { display: none; }
  .akb-pdp .akb-size-custom-toggle { flex-direction: row; gap: 5px; }
  .akb-pdp .akb-size-custom-toggle .akb-size-preset-label { display: flex; }
  .akb-pdp .akb-size-custom-toggle .akb-size-preset-label i { font-size: 1rem; }
  .akb-pdp .akb-size-custom-toggle .akb-size-preset-dim { margin: 0; font-size: .72rem; }
  .akb-pdp .akb-custom-size { margin-top: .6rem; }
  .akb-pdp .akb-frame-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .akb-pdp .akb-frame-option { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; gap: 0 8px; padding: 5px 6px; border-width: 1.5px; text-align: left; }
  .akb-pdp .akb-frame-option img { grid-row: 1 / span 2; width: 38px; height: 38px; }
  .akb-pdp .akb-frame-label { font-size: .7rem; }
  .akb-pdp .akb-frame-label:last-child { grid-row: 1 / span 2; }
  .akb-pdp .akb-frame-option .akb-swatch-delta { margin-top: 0; align-self: start; }
  .akb-pdp .akb-cart-wrapper { padding-top: .8rem; }
  /* Der Preis steht im Kopf der Spalte und ändert sich dort mit; am Knopf braucht es ihn nicht ein zweites Mal */
  .akb-pdp.akp-preis-oben .akb-cart-wrapper .price_wrapper, .akb-pdp.akp-preis-oben #add-to-cart > hr { display: none; }
  .akb-pdp .akb-cart-wrapper .buy-col { margin-top: 0; }
  .akb-pdp #add-to-cart { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 0 10px; }
  .akb-pdp #add-to-cart #quantity-grp { min-width: 0; margin: 0; align-self: stretch; }
  .akb-pdp #add-to-cart .sn-addBasket { min-height: 52px; margin: 0; white-space: nowrap; }
  .akb-pdp #add-to-cart .delivery-status { grid-column: 1 / -1; margin: .6rem 0 0; line-height: 1.45; }
  .akb-pdp #add-to-cart .delivery-status > .mt-xxs { margin-top: 0 !important; }
  .akb-pdp #add-to-cart .estimated-delivery { padding: 0; border: 0; background: none; box-shadow: none; }
  .akb-pdp #add-to-cart .estimated-delivery > .mt-xxs { display: none; }
  .akb-pdp #add-to-cart .akp-freigabe { grid-column: 1 / -1; margin-top: .55rem; }
  /* Die Chat-Blase tritt zurück, solange sie auf dem Warenkorb-Knopf läge */
  .akb-pdp .fs-chat-start { transition: opacity .2s; }
  .akb-pdp.akp-chat-weicht .fs-chat-start { opacity: 0; pointer-events: none; }
  /* Die Vorschau bleibt stehen, während rechts gewählt wird */
  .akb-pdp .akb-image-section { position: sticky; top: 150px; height: auto; align-self: start; overflow: visible; background: transparent; }
  .akb-pdp .akb-image-frame { height: min(900px, calc(100vh - 235px)); min-height: 420px; border-radius: var(--akb-radius-lg, 12px); overflow: hidden; }
  .akb-pdp .akp-nur-handy, .akb-pdp .akp-kopf-mobil { display: none !important; }
}
@media (max-width: 991px) {
  .akb-pdp .akp-kopf-mobil { padding: 12px 2px 10px; }
  .akb-pdp .akp-name { margin: 0 0 4px; font-family: "Varela Round", sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #1a1a1a; }
  .akb-pdp .akp-kopf-reihe { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .akb-pdp .akp-preis-mobil { font-family: "Varela Round", sans-serif; font-size: 1.3rem; white-space: nowrap; color: #b71818; }
  .akb-pdp .akp-kopf-mobil .akp-sterne-zeile { gap: 6px; font-size: .8rem; }
  .akb-pdp .akp-kopf-mobil .akp-sterne::before { font-size: .9rem; letter-spacing: 1px; }
  /* Die Chat-Blase verdeckt sonst die dritte Auswahlkarte: solange die Auswahl im Bild ist, tritt sie zurück */
  .akb-pdp .fs-chat-start { transition: opacity .2s; }
  .akb-pdp.akp-auswahl-im-bild .fs-chat-start { opacity: 0; pointer-events: none; }
  .akb-pdp .akp-motivzeile { flex-wrap: wrap; padding: .6rem 2px 0; }
  .akb-pdp .akp-freigabe.akp-nur-handy { margin: .6rem 2px 0; }
  .akb-pdp .akp-freigabe.akp-liefer { margin-top: .35rem; }
  /* Der Bildrahmen war 30 px breiter als sein Bereich, der schnitt Raum-Miniaturen und Lupe am Rand ab */
  .akb-pdp .akb-image-frame { width: 100%; margin: 0; }
  /* Der Knopf für die Cookie-Einstellungen läge sonst auf der Kaufleiste */
  .akb-pdp.akp-leiste-an #consent-manager #consent-settings-btn { bottom: 96px; }
  /* Die Karten schließen mit dem Text ab; ein negativer Rand macht die Karten-Seite am Handy breiter als das Fenster */
  .akb-pdp .akb-selector-cards:not(.akb-map-selector-cards) { padding-left: 0; padding-right: 0; }
}

/* ── Abschnitte ──────────────────────────────────────────────────────────── */
.akb-pdp .fs-pdp-section > p, .akb-pdp .fs-pdp-section .fs-step-content p { max-width: 68ch; }
.akb-pdp #akp-bewertungen, .akb-pdp #akp-wirkung, .akb-pdp #akp-faq { scroll-margin-top: 160px; }
.akb-pdp .akp-zwischen { margin: 2.25rem 0 1rem; font-size: 1.15rem; font-weight: 700; color: #1a1a1a; }
.akb-pdp .akp-werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.akb-pdp .akp-karte { padding: 18px 20px; border: 1px solid #e3e8ec; border-radius: 12px; background: #fff; }
.akb-pdp .akp-karte h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; color: #1a1a1a; }
.akb-pdp .akp-karte h4 span { padding: 2px 8px; border-radius: 4px; background: var(--akb-accent, #b71818); color: #fff; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.akb-pdp .akp-karte dl { display: grid; grid-template-columns: 8.5rem 1fr; gap: 8px 14px; margin: 0; font-size: .9rem; line-height: 1.45; }
.akb-pdp .akp-karte dt { font-weight: 400; color: #61727c; }
.akb-pdp .akp-karte dd { margin: 0; color: #1a1a1a; }
@media (min-width: 900px) { .akb-pdp .akp-werte-eins .akp-karte dl { grid-template-columns: 8.5rem 1fr 8.5rem 1fr; } }
.akb-pdp #akp-datenblaetter { margin-top: 1.25rem; border-top: 1px solid #e3e8ec; }
.akb-pdp .akp-mehr, .akb-pdp .akp-faq details { border-bottom: 1px solid #e3e8ec; }
.akb-pdp .akp-mehr > summary, .akb-pdp .akp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 600; color: #1a1a1a; }
.akb-pdp .akp-mehr > summary::-webkit-details-marker, .akb-pdp .akp-faq summary::-webkit-details-marker { display: none; }
.akb-pdp .akp-mehr > summary::after, .akb-pdp .akp-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--akb-accent, #b71818); }
.akb-pdp .akp-mehr[open] > summary::after, .akb-pdp .akp-faq details[open] summary::after { content: "−"; }
.akb-pdp .akp-mehr > section { padding: 4px 0 20px; }
.akb-pdp .akp-faq { max-width: 760px; border-top: 1px solid #e3e8ec; }
.akb-pdp .akp-faq p { max-width: 68ch; margin: 0 0 18px; line-height: 1.65; color: #444; }
.akb-pdp .akp-kontakt { margin-top: 1.5rem; }

/* 3D-Platzhalter mit Vorschaubild statt leerem Kasten */
.akb-pdp .akp-platz.akp-poster { align-content: end; min-height: 340px; padding-bottom: 20px; border: 1px solid #e3e8ec; background: #fff url("../pdp/aufbau_poster.jpg") center top / cover no-repeat; }
.akb-pdp .akp-platz.akp-poster > i, .akb-pdp .akp-platz.akp-poster > span { display: none; }
.akb-pdp .akp-platz.akp-poster .btn { box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

/* Menge: ein Kasten mit Minus, Zahl und Plus wie bei Breite und Höhe. Das Eltern-Template gibt jedem
   Zahlenfeld .75rem 1rem Innenabstand, in der schmalen Gruppe blieb für die Zahl kein Platz mehr. */
.akb-pdp #quantity-grp .qty-btns { display: flex; align-items: stretch; height: 100%; min-height: 52px; margin: 0; background: var(--akb-bg, #fff); border: 2px solid var(--akb-border, #e0e0e0); border-radius: var(--akb-radius, 8px); overflow: hidden; }
.akb-pdp #quantity-grp .qty-btns > .btn { flex: 0 0 42px; display: flex; align-items: center; justify-content: center; width: 42px; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--akb-text, #1a1a1a); box-shadow: none; }
.akb-pdp #quantity-grp .qty-btns > .btn:hover { background: var(--akb-bg-light, #f7f7f7); color: var(--akb-accent, #c02942); }
.akb-pdp #quantity-grp .qty-btns > .btn .img-ct { width: 14px; height: 14px; min-width: 0; padding: 0; }
.akb-pdp #quantity-grp .qty-btns > .btn svg { width: 14px; height: 14px; fill: currentColor; }
.akb-pdp #quantity-grp input.quantity[type="number"] { flex: 1 1 0; width: auto !important; min-width: 0; height: auto !important; min-height: 0 !important; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--akb-text, #1a1a1a) !important; font-size: 1.3rem !important; font-weight: 600; line-height: 1; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.akb-pdp #quantity-grp input.quantity::-webkit-outer-spin-button, .akb-pdp #quantity-grp input.quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.akb-pdp #quantity-grp input.quantity:focus-visible { outline: 2px solid var(--akb-accent, #c02942); outline-offset: -2px; }

/* Kaufleiste: zeigt das eigene Motiv und die Auswahl, am Handy steht der Knopf im Klartext da */
.akb-pdp #stck-bskt .img-ct img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.akb-pdp .akp-leiste-wahl { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; line-height: 1.35; color: #61727c; }
@media (max-width: 991px) {
  .akb-pdp #stck-bskt .title strong { display: none; }
  .akb-pdp #stck-bskt .akp-leiste-wahl { margin-top: 0; }
  .akb-pdp #stck-bskt-add .visible-xs { display: none !important; }
  .akb-pdp #stck-bskt-add .hidden-xs { display: inline !important; }
}
@media (max-width: 991px) {
  .akb-pdp #stck-bskt .title { overflow: visible; white-space: normal; max-height: none; }
  .akb-pdp #stck-bskt .akp-leiste-wahl { font-size: .72rem; line-height: 1.3; white-space: normal; }
  .akb-pdp #stck-bskt-add { padding: .6rem .9rem !important; }
}
.akb-pdp #stck-bskt .title { display: block; overflow: visible; max-height: none; -webkit-line-clamp: unset; }
.akb-pdp #stck-bskt .title strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.akb-pdp .akp-leiste-wahl { hyphens: none; }
.akb-pdp .akp-leiste-wahl span { white-space: nowrap; }
@media (max-width: 991px) {
  .akb-pdp #stck-bskt .title strong { display: none; }
  .akb-pdp #stck-bskt .info { height: auto; }
  .akb-pdp #stck-bskt .akp-leiste-wahl { font-size: .7rem; line-height: 1.25; }
}
@media (max-width: 991px) {
  .akb-pdp #stck-bskt .left { flex: 1 1 auto; min-width: 0; }
  .akb-pdp #stck-bskt .img-ct { flex: 0 0 52px; width: 52px; height: 52px; margin-right: 10px; }
  .akb-pdp #stck-bskt .info { flex: 1 1 auto; min-width: 0; width: auto; padding: 0; }
  .akb-pdp #stck-bskt .title { padding: 0; margin: 0; width: auto; }
  .akb-pdp #stck-bskt .price { margin-right: 0 !important; }
  .akb-pdp #stck-bskt .btn-primary { padding: .6rem .8rem !important; }
}
@media (max-width: 991px) {
  .akb-pdp #stck-bskt .img-ct { min-width: 52px; max-width: 52px; }
  .akb-pdp #stck-bskt .btn-primary { font-size: .9rem !important; }
}

/* ── Ergänzungen für den Shop ────────────────────────────────────────────── */
.akb-pdp .akp-sterne-zeile[hidden] { display: none; }
.akb-pdp:not(.akp-modus-upload) .akp-motivzeile { display: none; }
.akb-pdp .akp-platz { display: grid; place-items: center; gap: 12px; min-height: 280px; margin-top: 16px; border-radius: 12px; border: 2px dashed #d6dde2; background: #fff; text-align: center; padding: 24px; color: #61727c; }
.akb-pdp .akp-platz > i { font-size: 2.25rem; color: var(--akb-accent, #b71818); }
.akb-pdp .akp-einbettung { width: 100%; border: 0; display: block; background: transparent; min-height: 200px; margin-top: 16px; }
.akb-pdp .akp-mail { display: grid; gap: 8px; max-width: 360px; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #e3e8ec; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); font-size: 14px; }
.akb-pdp .akp-mail-knoepfe { display: flex; gap: 8px; }
.akb-pdp .akp-ja, .akb-pdp .akp-nein { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.akb-pdp .akp-ja { background: #1f7a4d; color: #fff; }
.akb-pdp .akp-nein { border: 1px solid #d6dde2; color: #2F3E46; }

/* Abschnitte: Auf den Motiv- und Stadtplan-Seiten bringt der Seiteninhalt diese Regeln nicht mit */
.akb-pdp .fs-pdp-section { padding: 3rem 0; }
.akb-pdp .fs-pdp-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--fs-heading-color, #1a1a1a); }
.akb-pdp .fs-pdp-section > p { font-size: 1rem; line-height: 1.7; color: var(--fs-text-color, #444); margin-bottom: 1.5rem; }
.akb-pdp .fs-benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .akb-pdp .fs-benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.akb-pdp .fs-benefit-item { text-align: center; padding: 1.5rem 1rem; }
.akb-pdp .fs-benefit-item i { font-size: 2rem; color: var(--fs-primary, #c75b2a); margin-bottom: .75rem; display: block; }
.akb-pdp .fs-benefit-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; color: var(--fs-heading-color, #1a1a1a); }
.akb-pdp .fs-benefit-item p { font-size: .9rem; line-height: 1.5; color: var(--fs-text-muted, #666); }
.akb-pdp .fs-steps-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.akb-pdp .fs-step-item { display: flex; gap: 1rem; align-items: flex-start; }
.akb-pdp .fs-step-number { flex-shrink: 0; width: 36px; height: 36px; background: var(--fs-primary, #c75b2a); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.akb-pdp .fs-step-content h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .25rem; color: var(--fs-heading-color, #1a1a1a); }
.akb-pdp .fs-step-content p { font-size: .95rem; line-height: 1.6; color: var(--fs-text-color, #444); margin: 0; }
/* Grauer Abschnitt über die volle Breite ohne negativen Rand (der ließ die Seite quer scrollen) */
.akb-pdp .fs-pdp-section-alt { background: var(--fs-bg-alt, #f8f8f8); margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
  box-shadow: 0 0 0 100vmax var(--fs-bg-alt, #f8f8f8); clip-path: inset(0 -100vmax); }

/* Kaufleiste des Templates: Wann sie steht, entscheidet akustikbild-pdp.js über die Body-Klasse akp-leiste-an */
.akb-pdp:not(.akp-leiste-an) #stck-bskt { transform: translateY(200%) translateX(-50%) !important; }
.akb-pdp.akp-leiste-an #stck-bskt { transform: translateY(0) translateX(-50%) !important; }
@media (max-width: 899px) {
  .akb-pdp:not(.akp-leiste-an) #stck-bskt { transform: translateY(200%) !important; }
  .akb-pdp.akp-leiste-an #stck-bskt { transform: translateY(0) !important; }
}
/* Die eigene mobile Leiste des Konfigurators entfällt, die Leiste des Templates übernimmt */
.akb-pdp.akp-leiste-da .akb-sticky-cart { display: none !important; }
/* Die Chat-Blase rückt über die Kaufleiste, wie es das Template bei seiner eigenen Leiste tut */
.akb-pdp.akp-leiste-an .fs-chat-start { bottom: 120px; }
