/* F5 (P8): Produktseite nach UMBAU 4.4 und design/A-Produkt.html. Karten unten aus kategorie.css. */

/* ---------- Kopf: Galerie + Infos ---------- */
.ak-pd-kopf { padding: 24px 0 56px; }
.ak-pd-kopf .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 18px; }
.ak-produkt-seite .woocommerce-message, .ak-produkt-seite .woocommerce-info, .ak-produkt-seite .woocommerce-error { list-style: none; margin: 0 0 14px; padding: 12px 16px; border: 0; border-left: 4px solid var(--ak-green); border-radius: 6px; background: var(--ak-surface); color: var(--ak-ink); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.ak-produkt-seite .woocommerce-message::before, .ak-produkt-seite .woocommerce-info::before, .ak-produkt-seite .woocommerce-error::before { content: none; }
.ak-produkt-seite .woocommerce-error { border-left-color: #B3261E; background: #FDF1EF; }
.ak-produkt-seite .woocommerce-message .button { order: 2; float: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--ak-radius); background: var(--ak-green); color: #fff; font-weight: 700; text-decoration: none; }

.ak-produkt-seite div.product.ak-pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 0; }
.ak-produkt-seite div.product.ak-pd div.images.ak-galerie,
.ak-produkt-seite div.product.ak-pd div.summary.ak-pd-info { float: none !important; width: auto !important; margin: 0 !important; min-width: 0; }

/* Galerie */
.ak-galerie__haupt { position: relative; border: 1px solid var(--ak-border); border-radius: 12px; background: #fff; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ak-galerie__link, .ak-galerie__leer { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 4%; cursor: zoom-in; }
.ak-galerie__leer { cursor: default; flex-direction: column; gap: 8px; color: var(--ak-muted); font-size: 14px; font-weight: 600; }
.ak-galerie__leer img { max-height: 80%; opacity: .6; }
.ak-galerie img.ak-galerie__bild { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ak-galerie__daumen { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ak-galerie__d { width: 80px; height: 80px; padding: 6px; border: 1px solid var(--ak-border); border-radius: 8px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ak-galerie__d:hover { border-color: var(--ak-green); }
.ak-galerie__d[aria-pressed="true"] { border: 2px solid var(--ak-green); padding: 5px; }
.ak-galerie__d img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* Großansicht */
.ak-gross { border: 0; padding: 0; width: min(96vw, 1100px); max-height: 92vh; background: #fff; border-radius: 10px; }
.ak-gross::backdrop { background: rgba(31,42,46,.8); }
.ak-gross img { display: block; max-width: 100%; max-height: calc(92vh - 64px); margin: 0 auto; object-fit: contain; }
.ak-gross__zu { display: flex; justify-content: flex-end; padding: 8px; }
.ak-gross__zu button { width: 44px; height: 44px; border: 0; border-radius: var(--ak-radius); background: var(--ak-surface); color: var(--ak-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Infos rechts */
.ak-pd-kennung { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ak-muted); overflow-wrap: anywhere; }
.ak-pd-titel { margin: 0 0 14px; font-size: 32px; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.ak-pd-kern { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: #2F3B40; }
.ak-pd-kern li { display: flex; gap: 10px; align-items: flex-start; }
.ak-pd-kern svg { flex: 0 0 auto; margin-top: 2px; color: var(--ak-ok); stroke-width: 2.6; }
.ak-pd-kern span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Kaufbox ---------- */
.ak-kaufbox { border: 1px solid var(--ak-border); border-radius: 12px; padding: 24px; background: #fff; }
.ak-kaufbox__preis { font-size: 36px; font-weight: 800; line-height: 1.1; color: var(--ak-ink); margin: 0; }
.ak-kaufbox__preis del { font-size: 20px; font-weight: 600; color: var(--ak-muted); margin-right: 8px; }
.ak-kaufbox__preis ins { text-decoration: none; }
.ak-kaufbox__preis .woocommerce-price-suffix, .ak-kaufbox__preis small { font-size: 14px; font-weight: 600; color: var(--ak-muted); }
.ak-kaufbox__preis--anfrage { font-size: 28px; }
.ak-kaufbox__text { margin: 8px 0 16px; color: #3C4B50; font-size: 15px; }
.ak-kaufbox__info { margin-top: 6px; font-size: 14px; color: var(--ak-muted); line-height: 1.5; }
.ak-kaufbox__info p { margin: 0; display: inline; }
.ak-kaufbox__info p + p::before { content: " · "; }
.ak-kaufbox__info a { color: var(--ak-muted); }
.ak-kaufbox__info .price-unit { display: block; margin-top: 2px; }
/* Germanized setzt die Preisangaben sehr klein (rund 10 px). */
.ak-produkt-seite .ak-pd .ak-kaufbox__info .wc-gzd-additional-info, .ak-produkt-seite .ak-pd .ak-kaufbox__info .wc-gzd-additional-info a, .ak-produkt-seite .ak-pd .ak-kaufbox__info .price-unit { font-size: 14px; line-height: 1.5; }
.ak-kaufbox__lz { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 15px; font-weight: 700; color: var(--ak-ok-text); }
.ak-kaufbox__lz .ak-pk__punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--ak-ok); flex: 0 0 auto; }
.ak-kaufbox__miete { margin: 14px 0 0; font-weight: 700; }
.ak-kaufbox__voll { width: 100%; }

/* Staffel (Plugin absperrking-b2b) */
.ak-kaufbox .ak-staffel { margin: 18px 0 0; }
.ak-kaufbox table.ak-staffel__tabelle { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; border: 0; border-radius: 0; }
.ak-kaufbox .ak-staffel__tabelle caption { text-align: left; font-weight: 800; padding-bottom: 8px; font-size: 15px; }
.ak-kaufbox .ak-staffel__tabelle th, .ak-kaufbox .ak-staffel__tabelle td { padding: 8px 10px; border: 0; text-align: left; }
.ak-kaufbox .ak-staffel__tabelle th { font-size: 13px; color: var(--ak-muted); font-weight: 700; }
.ak-kaufbox .ak-staffel__tabelle td:not(:first-child), .ak-kaufbox .ak-staffel__tabelle th:not(:first-child) { text-align: right; }
.ak-kaufbox .ak-staffel__tabelle td:not(:first-child) { font-weight: 700; }
.ak-kaufbox .ak-staffel__tabelle tbody tr:nth-child(odd) { background: var(--ak-surface); }
.ak-kaufbox .ak-staffel__hinweis { margin: 6px 0 0; font-size: 12px; color: var(--ak-muted); }
.ak-kaufbox .ak-staffel-hinweis { margin: 12px 0 0; font-size: 14px; font-weight: 700; }

/* Warenkorb-Formular (einfach + variabel) und Angebotsknopf des Plugins */
.ak-kaufbox__form { margin-top: 4px; }
.ak-produkt-seite .ak-kaufbox form.cart { margin: 0; padding: 0; border: 0; }
.ak-produkt-seite .ak-kaufbox form.cart:not(.variations_form),
.ak-produkt-seite .ak-kaufbox .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ak-produkt-seite .ak-kaufbox form.cart::before, .ak-produkt-seite .ak-kaufbox form.cart::after,
.ak-produkt-seite .ak-kaufbox .woocommerce-variation-add-to-cart::before, .ak-produkt-seite .ak-kaufbox .woocommerce-variation-add-to-cart::after { content: none; }
.ak-produkt-seite .ak-kaufbox form.cart div.quantity { float: none; margin: 0; flex: 0 0 88px; }
.ak-produkt-seite .ak-kaufbox .quantity input.qty, .ak-produkt-seite .ak-angebot-form input.qty { width: 100%; min-height: 52px; border: 1px solid #C9CFCA; border-radius: var(--ak-radius); text-align: center; font-size: 17px; font-weight: 700; padding: 0 4px; background: #fff; color: var(--ak-ink); }
.ak-produkt-seite .ak-kaufbox form.cart .single_add_to_cart_button { float: none; flex: 1 1 160px; min-height: 52px; margin: 0; padding: 0 22px; border: 0; border-radius: var(--ak-radius); background: var(--ak-yellow); color: var(--ak-ink); font-size: 16px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.ak-produkt-seite .ak-kaufbox form.cart .single_add_to_cart_button:hover { background: var(--ak-yellow-hover); color: var(--ak-ink); }
.ak-produkt-seite .ak-kaufbox form.cart .single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; }
.ak-produkt-seite .ak-kaufbox .ak-angebot-knopf { float: none; flex: 1 1 100%; width: 100%; min-height: 52px; margin: 0; padding: 0 18px; border: 2px solid var(--ak-green); border-radius: var(--ak-radius); background: #fff; color: var(--ak-green); font-size: 16px; font-weight: 800; line-height: 1.2; cursor: pointer; text-align: center; white-space: normal; }
.ak-produkt-seite .ak-kaufbox .ak-angebot-knopf:hover { background: #EEF3F0; color: var(--ak-green-dark); }
.ak-produkt-seite .ak-kaufbox .stock { margin: 0 0 12px; font-weight: 700; }
.ak-produkt-seite .ak-kaufbox .stock.out-of-stock { color: #B3261E; }
/* Angebotsformular für Artikel ohne Preis (Plugin) */
.ak-produkt-seite .ak-angebot-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0 0; }
.ak-produkt-seite .ak-angebot-form label { flex: 1 1 100%; font-size: 14px; font-weight: 700; margin: 0 0 -6px; }
.ak-produkt-seite .ak-angebot-form input.qty { flex: 0 0 88px; width: 88px; }
.ak-produkt-seite .ak-angebot-form .ak-angebot-knopf { flex: 1 1 200px; width: auto; background: var(--ak-yellow); border-color: var(--ak-yellow); color: var(--ak-ink); }
.ak-produkt-seite .ak-angebot-form .ak-angebot-knopf:hover { background: var(--ak-yellow-hover); border-color: var(--ak-yellow-hover); color: var(--ak-ink); }

/* Varianten */
.ak-produkt-seite .ak-kaufbox table.variations { width: 100%; border: 0; margin: 0 0 12px; border-collapse: collapse; }
.ak-produkt-seite .ak-kaufbox table.variations tr { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ak-produkt-seite .ak-kaufbox table.variations th, .ak-produkt-seite .ak-kaufbox table.variations td { display: block; padding: 0; border: 0; text-align: left; line-height: 1.4; }
.ak-produkt-seite .ak-kaufbox table.variations label { font-size: 14px; font-weight: 700; }
.ak-produkt-seite .ak-kaufbox table.variations select { width: 100%; max-width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #C9CFCA; border-radius: var(--ak-radius); background: #fff; color: var(--ak-ink); font-size: 15px; margin: 0; }
.ak-produkt-seite .ak-kaufbox .reset_variations { display: inline-block; margin-top: 6px; font-size: 14px; }
.ak-produkt-seite .ak-kaufbox .woocommerce-variation { margin: 0 0 12px; }
.ak-produkt-seite .ak-kaufbox .woocommerce-variation-price .price { font-size: 24px; font-weight: 800; color: var(--ak-ink); }
.ak-produkt-seite .ak-kaufbox .woocommerce-variation-description p { margin: 0 0 6px; font-size: 14px; }

/* Vertrauenspunkte */
.ak-vertrauen { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ak-border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 13px; color: #3C4B50; line-height: 1.4; }
.ak-vertrauen li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.ak-vertrauen svg { flex: 0 0 auto; color: var(--ak-green); margin-top: 1px; }
.ak-vertrauen a { color: #3C4B50; }
.ak-vertrauen a:hover { color: var(--ak-green); }
.ak-vertrauen span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Tabs ---------- */
.ak-pd-tabs { background: var(--ak-surface); padding: 48px 0 56px; }
.ak-tabs__leiste { display: flex; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--ak-border); margin-bottom: 28px; }
.ak-tab { min-height: 48px; padding: 0 16px; border: 0; background: none; font-weight: 700; font-size: 16px; color: var(--ak-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ak-tab:hover { color: var(--ak-ink); }
.ak-tab[aria-selected="true"] { color: var(--ak-ink); border-bottom-color: var(--ak-yellow); }
.ak-panel + .ak-panel { margin-top: 40px; }
.ak-js .ak-panel + .ak-panel { margin-top: 0; }
.ak-panel__titel { margin: 0 0 16px; font-size: 24px; }
.ak-js .ak-tabs__leiste:not([hidden]) ~ .ak-panel .ak-panel__titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ak-panel__reihe { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.ak-spec-box { flex: 2 1 520px; min-width: 0; background: #fff; border: 1px solid var(--ak-border); border-radius: 10px; overflow: hidden; }
.ak-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.ak-spec th { text-align: left; font-weight: 600; color: var(--ak-muted); padding: 12px 16px; width: 42%; vertical-align: top; }
.ak-spec td { padding: 12px 16px; font-weight: 600; overflow-wrap: anywhere; }
.ak-spec tr:nth-child(odd) { background: var(--ak-surface); }
.ak-panel__seite { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ak-panel__klein { margin: 0 0 4px; font-size: 20px; }
.ak-dl-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; max-width: 900px; }
.ak-dl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 56px; border: 1px solid var(--ak-border); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ak-ink); font-weight: 700; }
.ak-dl:hover { border-color: var(--ak-green); color: var(--ak-ink); }
.ak-dl svg { flex: 0 0 auto; color: #C0392B; }
.ak-dl span { min-width: 0; overflow-wrap: anywhere; }
.ak-dl small { font-weight: 600; color: var(--ak-muted); }
.ak-dl-hinweis { margin: 16px 0 0; font-size: 14px; color: #3C4B50; }
.ak-einbau-kurz { background: var(--ak-green); color: #fff; border-radius: 10px; padding: 20px; margin-top: 8px; }
.ak-einbau-kurz strong { display: block; font-size: 17px; margin-bottom: 6px; }
.ak-einbau-kurz p { margin: 0; font-size: 14px; line-height: 1.6; color: #DDE6E1; }
.ak-einbau-bild { margin: 20px 0 0; max-width: 720px; }
.ak-text { max-width: 820px; font-size: 17px; line-height: 1.65; color: #2F3B40; overflow-wrap: break-word; }
.ak-text h2 { font-size: 24px; margin: 28px 0 10px; }
.ak-text h3 { font-size: 20px; margin: 24px 0 8px; }
.ak-text ul, .ak-text ol { padding-left: 22px; }
.ak-text li { margin-bottom: 4px; }
.ak-text table { width: 100%; display: block; overflow-x: auto; }

/* ---------- Alternativen und Zubehör ---------- */
.ak-pd-mehr { padding: 56px 0 8px; }
.ak-pd-mehr:last-of-type { padding-bottom: 64px; }
.ak-pd-mehr h2 { margin: 0 0 24px; font-size: 26px; }
.ak-raster--produkt { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- unter 860 px: eine Spalte ---------- */
@media (max-width: 859px) {
	.ak-pd-kopf { padding: 16px 0 40px; }
	.ak-produkt-seite div.product.ak-pd { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ak-galerie__haupt { aspect-ratio: 4 / 3; max-height: 420px; }
	.ak-pd-titel { font-size: 26px; }
	.ak-kaufbox { padding: 18px; }
	.ak-kaufbox__preis { font-size: 32px; }
	.ak-pd-tabs { padding: 32px 0 40px; }
	.ak-tab { padding: 0 12px; font-size: 15px; }
	.ak-pd-mehr { padding-top: 40px; }
	.ak-pd-mehr h2 { font-size: 22px; }
}
@media (max-width: 559px) {
	.ak-galerie__d { width: 64px; height: 64px; }
	.ak-vertrauen { grid-template-columns: minmax(0, 1fr); }
	.ak-spec th, .ak-spec td { display: block; width: auto; padding: 4px 14px; }
	.ak-spec th { padding-top: 10px; font-size: 13px; }
	.ak-spec td { padding-bottom: 10px; }
	.ak-dl-liste { grid-template-columns: minmax(0, 1fr); }
}
