/* =========================================================
   HUNDEWETTER – Produktseite (ergänzt styles.css, danach folgt clean.css)
   Desktop: Bilder links im Raster, Kaufbereich rechts bleibt beim Scrollen stehen.
   Handy: Bilder als Wisch-Karussell, darunter der Kaufbereich.

   Farben, Schrift und Abstände kommen aus clean.css (--ink, --muted, --line, --panel, --red …).
   Rot gibt es hier nur am Kauf-Knopf und als kleiner Punkt beim Hinweis.

   Inhalt:
   1. Seite + Brotkrümel
   2. Bilder
   3. Kaufbereich (Titel, Preis, Farbe, Größe, Kauf-Knopf)
   4. Details (aufklappbare Liste)
   5. „Das passt dazu“ + Fuß
   6. Handy
   7. Größen-Seitenfenster (.sz)
   ========================================================= */

/* ---------- 1. Seite + Brotkrümel ---------- */
.pp-body { background: var(--bg); }
.pp {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); text-transform: none;
}
.pp__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 22px 0 26px; font-size: 12px; letter-spacing: .02em; color: var(--muted);
}
.pp__crumbs a { transition: color .2s; }
.pp__crumbs a:hover { color: var(--ink); }
.pp__crumbs span { color: var(--muted); }
.pp__crumbs b { font-weight: 400; color: var(--ink); }

.pp__grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 104px); align-items: start;
}

/* ---------- 2. Bilder: erstes groß, Rest im 2er-Raster ---------- */
.pp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp__shot { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.pp__shot--hero { grid-column: 1 / -1; }
.pp__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp__shot--hero img { transition: opacity .25s ease; }
.pp__gallery .pp__shot:last-child:nth-child(even) { grid-column: 1 / -1; } /* gerade Anzahl → letztes Bild breit, damit kein Loch bleibt */
.pp__shot[hidden], .pp__dots span[hidden] { display: none; }
.pp__dots { display: none; }

/* ---------- 3. Kaufbereich ---------- */
.pp__buy { min-width: 0; width: 100%; max-width: 460px; justify-self: end; }   /* rechte Kante bündig mit dem Seitenrand */
.pp__sticky { position: sticky; top: calc(var(--hdr) + 28px); display: flex; flex-direction: column; padding-bottom: 40px; }

.pp__head { display: flex; flex-direction: column; }
.pp__kind { font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp__name { font-family: var(--sans); font-size: clamp(26px, 2.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 14px; }
.pp__price { font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pp__vat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pp__desc { font-size: 15px; line-height: 1.6; color: var(--ink); margin-top: 22px; max-width: 34em; }

.pp__opt { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.pp__label { font-size: 13px; letter-spacing: .02em; margin: 0; }
.pp__label b { font-weight: 400; color: var(--muted); }
.pp__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pp__link {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: opacity .2s;
}
.pp__link:hover { opacity: .6; }
.pp__link[hidden] { display: none; }

/* Farbkreise: Ring zeigt die gewählte Farbe */
.pp__swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-left: -5px; }
.pp .pp__sw {
  width: 40px; height: 40px; padding: 5px; border: 0; border-radius: 50%; background: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s;
}
.pp .pp__sw .pdp__dot { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.pp .pp__sw:hover { box-shadow: inset 0 0 0 1px var(--line-strong); background: none; }
.pp .pp__sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); background: none; color: inherit; border: 0; }

/* Größen als ruhige Kästchen */
.pp__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pp .pp__size {
  min-width: 56px; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 13px; letter-spacing: .04em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s, color .2s;
}
.pp .pp__size:hover { border-color: var(--ink); }
.pp .pp__size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pp .pdp__plain { font-size: 14px; color: var(--muted); opacity: 1; }
.pp .pp__hint { font-size: 13px; line-height: 1.5; color: var(--muted); opacity: 1; min-height: 0; margin: 0; text-transform: none; }
.pp .pp__hint:empty { display: none; }
.pp .pp__hint.is-warn { color: var(--ink); font-weight: 500; text-transform: none; }
.pp .pp__hint.is-warn::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: .12em; }

/* Größenberater: ruhiger Textlink mit Lineal, öffnet das Seitenfenster */
.pp__advline {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; margin-top: -2px;
  border: 0; background: none; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--ink); text-align: left;
}
.pp__advline > span:nth-child(2) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.pp__advline > span:last-child { transition: transform .3s var(--ease); }
.pp__advline:hover > span:last-child { transform: translateX(4px); }
.pp__advline b { font-weight: 500; }
.pp__advline[hidden] { display: none; }
.pp__advicon { width: 20px; height: 20px; flex: none; }
.pp__advicon [stroke] { stroke-width: 1.4; }
.pp__adv-who { color: var(--muted); }

/* Kauf-Knopf: die einzige rote Fläche der Seite */
.pp__cta {
  margin-top: 28px; height: 48px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--red); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 500; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; transition: background .25s;
}
.pp__cta:hover, .pp__cta.is-done { background: var(--ink); }

/* ---------- 4. Details: aufklappbare Liste mit Haarlinien ---------- */
.pp__acc { margin-top: 40px; border-top: 1px solid var(--line); }
.pp__acc details { border-bottom: 1px solid var(--line); }
.pp__acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; font-size: 14px; font-weight: 500; line-height: 1.3;
}
.pp__acc summary::-webkit-details-marker { display: none; }
.pp__acc summary::after {
  content: ""; width: 11px; height: 11px; flex: none; transition: transform .3s var(--ease);
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.pp__acc details[open] summary::after { transform: rotate(45deg); }
.pp__acc details > :not(summary) { margin-bottom: 14px; }
.pp .pdp__details { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 0; font-size: 14px; line-height: 1.5; }
.pp .pdp__details dt, .pp .pdp__details dd { padding: 11px 0; border-top: 1px solid var(--line); }
.pp .pdp__details dt { color: var(--muted); font-size: 13px; padding-right: 24px; opacity: 1; text-transform: none; }
.pp .pdp__details dd { color: var(--ink); }

/* ---------- 5. „Das passt dazu“ + Fuß ---------- */
.pp__more { padding: var(--section-y) 0; }
.pp__more-title { font-family: var(--sans); font-size: var(--h2); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin-bottom: clamp(28px, 3.5vw, 52px); }
.pp__more-grid { max-width: none; grid-template-columns: repeat(4, 1fr); }
.pp__more .scard { display: block; color: inherit; }
.pp-foot a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: opacity .2s; }
.pp-foot a:hover { opacity: .6; }

/* ---------- 6. Handy / Hochkant (gleiche Grenze wie die Kopfzeile in clean.css) ---------- */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .pp { padding: 0; }
  .pp__crumbs { padding: 4px var(--gutter); }
  .pp__crumbs a { padding: 13px 0; }   /* Tippfläche */
  .pp-foot a { display: inline-block; padding: 12px 0; }
  .pp__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pp__gallery { display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pp__gallery::-webkit-scrollbar { display: none; }
  .pp__shot, .pp__shot--hero, .pp__gallery .pp__shot:last-child:nth-child(even) { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
  .pp__dots { display: flex; justify-content: center; gap: 6px; padding: 14px 0 0; }
  .pp__dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); transition: background .3s; }
  .pp__dots span.is-on { background: var(--ink); }
  .pp__buy { max-width: none; padding: 28px var(--gutter) 0; }
  .pp__sticky { position: static; padding-bottom: 0; }
  .pp__name { font-size: 26px; }
  .pp__opt { margin-top: 28px; }
  .pp__swatches { gap: 2px; margin-left: -6px; }
  .pp .pp__sw { width: 44px; height: 44px; padding: 6px; }
  /* gleichmäßiges Raster: sechs Größen passen auch bei 360px in eine Zeile */
  .pp__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
  .pp__sizes .pdp__plain { grid-column: 1 / -1; }
  .pp .pp__size { min-width: 0; height: 48px; padding: 0 6px; }
  .pp__link { min-height: 44px; margin: -12px 0; }
  /* Kauf-Knopf bleibt unten stehen, bis man an ihm vorbei ist; weißer Rand statt Schatten */
  .pp__cta { position: sticky; bottom: 12px; z-index: 5; height: 52px; box-shadow: 0 0 0 12px #fff; }
  .pp__more { padding-left: var(--gutter); padding-right: var(--gutter); }
  .pp__more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
  .pp__more-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Ruhiger Auftritt: kurzes Einblenden von unten, gestaffelt (nur wenn Bewegung erwünscht) */
@keyframes ppIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .pp-ready .pp__shot, .pp-ready .pp__sticky > * { animation: ppIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
}
/* Am Handy klebt der Kauf-Knopf unten: dort ohne Einblend-Bewegung, sonst wandert sein weißer Rand mit */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .pp-ready .pp__sticky > .pp__cta { animation: none; }
}

/* =========================================================
   7. GRÖSSEN-SEITENFENSTER
   Desktop: weißes Fenster gleitet von rechts herein. Handy: volle Breite.
   Reiter „Größe berechnen“ / „Größenübersicht“.
   ========================================================= */
.sz { --sz-pad: 32px; position: fixed; inset: 0; z-index: 90; font-family: var(--sans); font-size: 15px; line-height: 1.5; text-transform: none; color: var(--ink); }
.sz[hidden] { display: none; }
.sz__backdrop { position: absolute; inset: 0; background: rgba(27, 27, 27, .32); opacity: 0; transition: opacity .35s; }
.sz__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sz.is-open .sz__backdrop { opacity: 1; }
.sz.is-open .sz__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .sz__backdrop, .sz__panel { transition: none; } }

.sz__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px var(--sz-pad) 20px; border: 0; }
.sz__prod { font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sz__title { font-family: var(--sans); font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; text-transform: none; color: var(--ink); margin: 8px 0 0; }
.sz__x { width: 44px; height: 44px; margin: -10px -12px 0 0; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; flex: none; transition: opacity .2s; }
.sz__x:hover { opacity: .55; }
.sz__x svg { width: 20px; height: 20px; }
.sz__x svg path { stroke-width: 1.4; }

/* Reiter: Haarlinie unten, aktiver Reiter mit Tinten-Unterstrich */
.sz__tabs { display: flex; gap: 28px; margin: 0 var(--sz-pad); border-bottom: 1px solid var(--line); }
.sz__tab {
  position: relative; border: 0; background: none; cursor: pointer; height: 48px; padding: 0;
  font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: .01em; transition: color .2s;
}
.sz__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.sz__tab:hover, .sz__tab[aria-selected="true"] { color: var(--ink); }
.sz__tab[aria-selected="true"]::after { transform: scaleX(1); }
.sz__tab:focus { outline: none; }
.sz__tab:focus-visible { outline: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }

.sz__body { flex: 1; overflow-y: auto; padding: 28px var(--sz-pad) 48px; overscroll-behavior: contain; }
.sz__pane { display: flex; flex-direction: column; gap: 18px; }
.sz__pane[hidden] { display: none; }

/* Eingabefelder */
.sz__field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: .02em; }
.sz__field[hidden] { display: none; }
.sz__field i { font-style: normal; color: var(--muted); margin-left: 4px; }
.sz__field input {
  height: 48px; width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; padding: 0 14px;
  font: inherit; font-size: 16px; letter-spacing: 0; color: var(--ink); outline: none; -moz-appearance: textfield; appearance: textfield;
  transition: border-color .2s;
}
.sz__field input:hover { border-color: rgba(27, 27, 27, .4); }
.sz__field input:focus { border-color: var(--ink); }
.sz__field input::-webkit-outer-spin-button, .sz__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sz__go, .sz__take {
  height: 48px; border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.sz__go { background: none; color: var(--ink); margin-top: 6px; }
.sz__go:hover { background: var(--ink); color: #fff; }
.sz__take { background: var(--ink); color: #fff; margin-top: 14px; }
.sz__take:hover { background: #000; }

/* Ergebnis: einzige Fläche im Fenster */
.sz__result { background: var(--panel); border: 0; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.sz__result[hidden] { display: none; }
.sz__res-label { font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sz__res-size { font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin: 2px 0; }
.sz__res-facts { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.sz__msg { font-size: 14px; line-height: 1.5; margin: 0; }
.sz__msg:empty { display: none; }

/* Messanleitung: Zeichnung mittig (höchstens 420px breit), darunter die Schritte */
.sz__figure { margin: 0; }
.sz__pane[data-pane="calc"] .sz__figure { margin-top: 14px; padding-top: 30px; border-top: 1px solid var(--line); }
.sz__figure > svg, .sz__dog { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.sz__steps { margin: 26px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.sz__steps li[hidden] { display: none; }
.sz__fig-weight[hidden] { display: none; }   /* Gewicht-Markierung in der Zeichnung, wenn das Produkt keine Gewichtsangaben hat */
.sz__steps li::marker { color: var(--muted); }
.sz__steps b { font-weight: 500; }
.sz__tip { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* Tabelle: nur waagerechte Haarlinien */
.sz .pdp__chart { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.sz .pdp__table-wrap { overflow-x: auto; border-radius: 0; border-top: 1px solid var(--line); }
.sz .pdp__table { width: 100%; border-collapse: collapse; border: 0; border-radius: 0; background: none; font-size: 14px; color: var(--ink); text-transform: none; font-variant-numeric: tabular-nums; }
.sz .pdp__table th, .sz .pdp__table td { padding: 13px 12px; text-align: left; white-space: nowrap; border: 0; border-bottom: 1px solid var(--line); background: none; }
.sz .pdp__table th:first-child, .sz .pdp__table td:first-child { padding-left: 10px; }
.sz .pdp__table th { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: 1; }
.sz .pdp__table td:first-child { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); }
.sz .pdp__table tr.is-sel td { background: var(--panel); color: var(--ink); font-weight: 500; }
.sz .pdp__table tr.is-sel td:first-child { box-shadow: inset 2px 0 0 var(--red); }  /* kleine Markierung: gewählte Größe */
.sz .pdp__small { font-size: 13px; color: var(--muted); opacity: 1; line-height: 1.5; text-transform: none; }

@media (max-width: 600px) {
  .sz { --sz-pad: var(--gutter); }
  .sz__panel { width: 100%; }
  .sz__head { padding-top: 22px; }
  .sz__tabs { gap: 24px; }
  .sz__body { padding-top: 24px; padding-bottom: 40px; }
}

/* Eigenschaften über dem Kaufen-Knopf: kurze Liste mit Häkchen */
.pp__feats { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink); }
.pp__feats[hidden] { display: none; }
.pp__feats li { display: flex; align-items: center; gap: 6px; }
.pp__feats li::before {
  content: ""; width: 12px; height: 7px; margin-top: -3px; flex: none;
  border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(-45deg);
}

/* Vertrauens-Zeile unter „In den Korb“ */
.pp__trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(27, 27, 27, .78); }
.pp__trust li { display: flex; align-items: center; gap: 10px; }
.pp__trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
