/* =========================================================================
   Produktwelt: Uebersicht, Kategorie, Produktseite.
   Ruhig, bildstark, ohne eigene Farben: nutzt die Tokens aus alumundo.css.
   Praefix pw-
   ========================================================================= */

.pw-kopf { padding-block: clamp(36px, 7vw, 88px) clamp(20px, 3vw, 36px); }
.pw-kopf h1 {
  font-size: clamp(34px, 6vw, 72px); font-weight: 760; letter-spacing: -0.03em;
  line-height: 1.04; margin-top: 14px; max-width: 18ch;
}
.pw-kopf h1 em, .pw-kat-kopf h1 em { font-family: var(--schrift-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.pw-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--tinte-weich); max-width: 60ch; margin-top: 18px; }

/* ---------- Kategorie-Kacheln (gross, mit Bild) ---------- */
.pw-kat-sektion { padding-block: 0 clamp(28px, 4vw, 56px); }
.pw-kat-raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.pw-kat {
  position: relative; display: block; overflow: hidden; border-radius: 14px; isolation: isolate;
  aspect-ratio: 16 / 11; background: var(--flaeche-2); grid-column: span 4; color: #fff; text-decoration: none;
}
.pw-kat:nth-child(1), .pw-kat:nth-child(2), .pw-kat:nth-child(6), .pw-kat:nth-child(7),
.pw-kat:nth-child(11), .pw-kat:nth-child(12) { grid-column: span 6; aspect-ratio: 16 / 10; }
.pw-kat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pw-kat:hover .pw-kat-img { transform: scale(1.04); }
.pw-kat-schleier { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,18,0) 38%, rgba(15,16,18,.72) 100%); z-index: 1; }
.pw-kat-text { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(14px, 2vw, 24px); display: grid; gap: 4px; }
.pw-kat-anzahl { font-family: var(--schrift-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.pw-kat-name { font-family: var(--schrift-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.1; }
.pw-kat:focus-visible { outline-offset: 4px; }

/* ---------- Produktkacheln ---------- */
.pw-alle { padding-block: clamp(28px, 4vw, 56px); }
.pw-alle-kopf { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.pw-alle-kopf h2, .pw-weitere h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 720; }
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--linie-stark); font-size: 14px; font-weight: 560; text-decoration: none; color: var(--tinte-weich);
  background: transparent; transition: background-color .2s, border-color .2s, color .2s;
}
.pw-chip:hover { border-color: var(--tinte-weich); color: var(--tinte); }
.pw-chip[aria-current="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--grund); }

.pw-kachel-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 16px; }
.pw-kachel-raster-gross { grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
.pw-kachel-raster-vier { grid-template-columns: repeat(4, 1fr); }
.pw-kachel { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.pw-kachel[hidden] { display: none; }
.pw-kachel-bild { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--flaeche-2); }
.pw-kachel-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); display: block; }
.pw-kachel:hover .pw-kachel-img { transform: scale(1.05); }
.pw-kachel-text { display: grid; gap: 5px; align-content: start; }
.pw-kachel-kat { font-family: var(--schrift-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-blass); }
.pw-kachel-name { font-family: var(--schrift-display); font-weight: 680; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.pw-kachel-kurz {
  color: var(--tinte-weich); font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pw-kachel-mehr { margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--akzent); }
.pw-kachel:hover .pw-kachel-mehr { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kategorieseite ---------- */
.pw-kat-kopf { padding-block: 8px clamp(28px, 4vw, 56px); }
.pw-kat-kopf-innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pw-kat-kopf h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 760; letter-spacing: -0.028em; line-height: 1.05; margin-top: 12px; }
.pw-kat-kopf-bild { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--flaeche-2); }
.pw-kat-kopf-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-produkte { padding-block: 0 clamp(32px, 5vw, 64px); }
.pw-weitere { padding-block: 0 clamp(36px, 5vw, 64px); }
.pw-weitere h2 { margin-bottom: 16px; }

/* ---------- Produktseite ---------- */
.pw-produkt-kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding-block: 8px clamp(36px, 5vw, 72px); align-items: start; }
.pw-buehne { display: grid; gap: 10px; min-width: 0; }
.pw-hero-link { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--flaeche-2); aspect-ratio: 16 / 11; cursor: zoom-in; }
.pw-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.pw-hero-link:hover .pw-hero-img { transform: scale(1.02); }
.pw-vergroessern {
  position: absolute; inset-inline-end: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: color-mix(in srgb, #0F1012 62%, transparent); color: #fff; backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s;
}
.pw-hero-link:hover .pw-vergroessern, .pw-hero-link:focus-visible .pw-vergroessern { opacity: 1; }
@media (hover: none) { .pw-vergroessern { opacity: 1; } }
.pw-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pw-thumbs a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--flaeche-2); }
.pw-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), opacity .2s; }
.pw-thumbs a:hover .pw-thumb-img { transform: scale(1.06); }
.pw-thumbs-mehr a {
  display: grid; place-items: center; height: 100%; font-family: var(--schrift-mono); font-size: 14px; font-weight: 600;
  border: 1px solid var(--linie-stark); color: var(--tinte-weich); text-decoration: none;
}
.pw-kopf-text { position: sticky; top: 96px; }
.pw-kopf-text .eyebrow a { text-decoration: none; }
.pw-kopf-text .eyebrow a:hover { text-decoration: underline; }
.pw-kopf-text { min-width: 0; }
.pw-kopf-text h1 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(28px, 3.1vw, 44px); font-weight: 760; letter-spacing: -0.028em; line-height: 1.06; margin-top: 12px; }
.pw-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pw-preishinweis { margin-top: 14px; font-size: 13.5px; color: var(--tinte-blass); max-width: 46ch; }

.pw-abschnitt { padding-block: clamp(32px, 5vw, 64px); }
.pw-abschnitt h2, .pw-band-hell h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 720; margin-top: 8px; margin-bottom: 26px; }
.pw-problem-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pw-problem { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.pw-problem strong { font-family: var(--schrift-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.pw-problem span { color: var(--tinte-weich); font-size: 15px; line-height: 1.55; }

.pw-band-hell { background: var(--flaeche-2); padding-block: clamp(36px, 5vw, 72px); }
.pw-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.pw-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pw-liste li { position: relative; padding: 13px 0; padding-inline-start: 28px; border-top: 1px solid var(--linie-stark); font-size: 15.5px; line-height: 1.5; }
.pw-liste li:last-child { border-bottom: 1px solid var(--linie-stark); }
.pw-liste li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 21px; width: 10px; height: 2px; background: var(--akzent); }

.pw-technik { margin: 0; border-top: 1px solid var(--linie-stark); }
.pw-technik-zeile { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr); gap: 8px 32px; padding: 15px 0; border-bottom: 1px solid var(--linie); }
.pw-technik dt { font-family: var(--schrift-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-blass); padding-top: 3px; }
.pw-technik dd { margin: 0; font-size: 16px; }
.pw-quelle { display: block; margin-top: 3px; font-size: 12.5px; color: var(--tinte-blass); }
.pw-fussnote { margin-top: 16px; font-size: 13.5px; color: var(--tinte-blass); max-width: 70ch; }

.pw-galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pw-galerie a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--flaeche-2); cursor: zoom-in; }
.pw-galerie-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.pw-galerie a:hover .pw-galerie-img { transform: scale(1.05); }

.pw-faq-liste { display: grid; max-width: 820px; border-top: 1px solid var(--linie-stark); }
.pw-faq details { border-bottom: 1px solid var(--linie-stark); }
.pw-faq summary { cursor: pointer; list-style: none; padding: 20px 0; padding-inline-end: 40px; position: relative; font-family: var(--schrift-display); font-weight: 640; font-size: 18px; }
.pw-faq summary::-webkit-details-marker { display: none; }
.pw-faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--akzent); transition: transform .3s var(--ease); }
.pw-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pw-faq details p { padding: 0 0 22px; padding-inline-end: 40px; color: var(--tinte-weich); font-size: 16px; line-height: 1.6; }

/* ---------- Schlussband ---------- */
.pw-band { background: var(--kontrast-grund); color: var(--kontrast-tinte); padding-block: clamp(40px, 6vw, 80px); margin-top: clamp(16px, 3vw, 40px); }
.pw-band-innen { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.pw-band .eyebrow { color: var(--kontrast-tinte-blass); }
.pw-band h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 740; margin-top: 10px; max-width: 22ch; }
.pw-band p:not(.eyebrow) { margin-top: 12px; color: var(--kontrast-tinte-weich); max-width: 52ch; }
.pw-band .pw-cta { margin-top: 0; }
.pw-band .pill-linie { color: var(--kontrast-tinte); }

/* ---------- Lightbox ---------- */
.pw-licht { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: rgba(8, 9, 10, .94); color: #EEEDE8; overflow: hidden; }
.pw-licht[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.pw-licht::backdrop { background: rgba(8, 9, 10, .94); }
.pw-licht-figur { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 56px 0 24px; min-width: 0; max-height: 100dvh; }
.pw-licht-bild { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.pw-licht-text { font-size: 13.5px; color: #A9ABB0; text-align: center; max-width: 80ch; padding-inline: 12px; }
.pw-licht-pfeil, .pw-licht-zu {
  background: transparent; border: 0; color: #EEEDE8; font-size: 44px; line-height: 1; cursor: pointer; height: 64px; width: 64px; border-radius: 50%;
  transition: background-color .2s;
}
.pw-licht-pfeil:hover, .pw-licht-zu:hover { background: rgba(255, 255, 255, .1); }
.pw-licht-zu { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; font-size: 38px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .pw-kachel-raster, .pw-kachel-raster-vier { grid-template-columns: repeat(3, 1fr); }
  .pw-kachel-raster-gross { grid-template-columns: repeat(2, 1fr); }
  .pw-produkt-kopf, .pw-kat-kopf-innen { grid-template-columns: 1fr; }
  .pw-kopf-text { position: static; }
  .pw-kat, .pw-kat:nth-child(n) { grid-column: span 6; aspect-ratio: 16 / 10; }
  .pw-galerie { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .pw-kachel-raster, .pw-kachel-raster-vier, .pw-kachel-raster-gross { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .pw-kat, .pw-kat:nth-child(n) { grid-column: span 12; aspect-ratio: 16 / 9; }
  .pw-zwei { grid-template-columns: 1fr; }
  .pw-technik-zeile { grid-template-columns: 1fr; gap: 2px; }
  .pw-thumbs { grid-template-columns: repeat(3, 1fr); }
  .pw-galerie { grid-template-columns: repeat(2, 1fr); }
  .pw-kachel-name { font-size: 16px; }
  .pw-kachel-kurz { -webkit-line-clamp: 2; font-size: 13.5px; }
  .pw-licht[open] { grid-template-columns: 1fr; }
  .pw-licht-pfeil { position: absolute; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, .08); }
  .pw-licht-zurueck { inset-inline-start: 12px; }
  .pw-licht-weiter { inset-inline-end: 12px; }
  .pw-licht-figur { padding: 64px 0 90px; }
}
@media (max-width: 420px) {
  .pw-kachel-raster, .pw-kachel-raster-vier, .pw-kachel-raster-gross { grid-template-columns: 1fr; }
  .pw-cta .pill { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-kat-img, .pw-kachel-img, .pw-hero-img, .pw-thumb-img, .pw-galerie-img { transition: none; }
}

/* Lange Produktnamen in der Brotkrumenleiste duerfen umbrechen */
.brotkrumen { overflow-wrap: anywhere; }

/* Anfrageseite: Produkthinweis und Formular (/anfrage?produkt=) */
.pa-seite { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; padding-bottom: 56px; }
.pa-hinweis { display: grid; border: 1px solid var(--linie, #d9dde3); border-radius: 18px; overflow: hidden; background: var(--flaeche, #fff); position: sticky; top: 96px; }
.pa-bild { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pa-hinweis-text { padding: 18px 20px 20px; }
.pa-hinweis-text h3 { font-size: 22px; margin: 4px 0 2px; }
.pa-kat { color: var(--tinte-weich); margin: 0; }
.pa-links { margin: 12px 0 0; font-size: 14px; }
.pa-form { gap: 16px; }
.pa-recht { font-size: 13px; color: var(--tinte-blass); margin: 0; }
.pa-aktionen { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .pa-seite { grid-template-columns: 1fr; }
  .pa-hinweis { position: static; grid-template-columns: 120px 1fr; }
  .pa-bild { aspect-ratio: 1; height: 100%; }
}
.pa-form [data-fehlerbox][hidden] { display: none; }
.pa-hinweis-text h3 { overflow-wrap: anywhere; hyphens: auto; }
.pa-hinweis-text { min-width: 0; }
