/* Startseiten-Bausteine (PK_Startseite) – Gestaltung wie im Prototyp, Farben der CI. Schriften kommen vom Theme
   „Lederpuschenstube“ (Bricolage Grotesque, JetBrains Mono), in anderen Themes die Schrift des Themes. */
.pk-start {
  --pk-s-gruen: #5E7F00; --pk-s-gruen-tief: #4A6500; --pk-s-zart: #E4EDC6;
  --pk-s-kulisse: #EBF0DE; --pk-s-kulisse-tief: #DEE6CB; --pk-s-haar: #DCE2CE;
  --pk-s-tinte: #121315; --pk-s-graphit: #4A4D51; --pk-s-nebel: #6E7277;
  --pk-s-anzeige: var(--wp--preset--font-family--bricolage-grotesque, inherit);
  --pk-s-mono: var(--wp--preset--font-family--jetbrains-mono, ui-monospace, Consolas, monospace);
  color: var(--pk-s-tinte); box-sizing: border-box;
}
.pk-start *, .pk-start *::before, .pk-start *::after { box-sizing: border-box; }
.pk-start [hidden] { display: none !important; }
.pk-start h2 { font-family: var(--pk-s-anzeige); font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.pk-start p { margin: 0; }
.pk-start .pk-etikett { font-family: var(--pk-s-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--pk-s-nebel); }
.pk-start .pk-leise { color: var(--pk-s-nebel); }
.pk-start .pk-klein { font-size: 13.5px; }
.pk-start .pk-zeile { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.pk-start .pk-pille { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--pk-s-gruen); color: #fff; border-radius: 999px; padding: 14px 24px; font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap; text-decoration: none; border: 0; transition: transform .15s ease; }
.pk-start .pk-pille:hover { background: var(--pk-s-gruen-tief); color: #fff; transform: translateY(-1px); }
.pk-start .pk-pille.pk-hell { background: transparent; color: var(--pk-s-gruen-tief); box-shadow: inset 0 0 0 1px var(--pk-s-gruen); }
.pk-start .pk-pille.pk-hell:hover { background: var(--pk-s-zart); }
.pk-start .pk-pille.pk-klein { padding: 9px 16px; font-size: 14px; }
.pk-start .pk-pfeil::after { content: "→"; font-family: var(--pk-s-mono); }
.pk-start-kopf { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.pk-start-kopf p { max-width: 46ch; color: var(--pk-s-graphit); }

/* Startbild aus echten Fotos: vier Paare im Fotoformat 4:3, nie beschnitten */
.pk-fotos-block { display: grid; gap: 10px; }
.pk-fotos-held { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pk-fh-kachel { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; text-decoration: none; color: inherit; }
.pk-fh-kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; max-width: none; transition: transform .6s ease; }
.pk-fh-kachel:hover img { transform: scale(1.03); }
.pk-fh-name { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 13px; line-height: 1.3; background: rgba(255, 255, 255, .9); color: var(--pk-s-tinte); padding: 4px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Startbild 3D (Baustein [puschen_held]) */
.pk-held { display: grid; gap: 10px; }
.pk-held-buehne { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #F7F8F5 0%, var(--pk-s-kulisse) 62%, var(--pk-s-kulisse-tief) 100%); }
.pk-held-buehne canvas.studio-leinwand { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; z-index: 1; max-width: none; }
.pk-held-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.pk-held.pk-mit-3d .pk-held-foto { display: none; }
.pk-held.pk-ohne-3d .pk-held-leiste, .pk-held.pk-ohne-3d .pk-held-oben { display: none; }
.pk-held-oben, .pk-held-leiste { position: absolute; left: 14px; right: 14px; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.pk-held-oben { top: 14px; }
.pk-held-leiste { bottom: 14px; }
.pk-held-oben > *, .pk-held-leiste > * { pointer-events: auto; }
.pk-start .pk-hinweis-dreh { font-size: 12.5px; color: var(--pk-s-graphit); background: rgba(255, 255, 255, .7); padding: 5px 10px; border-radius: 999px; }
.pk-start .pk-glas { background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.pk-start .pk-farbpaar { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pk-start .pk-farbpaar[aria-pressed="true"] { outline: 2px solid var(--pk-s-tinte); outline-offset: 3px; }
.pk-held-unter { font-size: 13.5px; color: var(--pk-s-nebel); }

/* Produktreihe und Karten */
.pk-leiste-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 230px); justify-content: start; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.pk-leiste-scroll > * { scroll-snap-align: start; }
.pk-start .pk-karte { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; }
.pk-start .pk-karte .pk-bild { background: var(--pk-s-kulisse); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.pk-start .pk-bild.pk-foto { background: #fff; }
.pk-start .pk-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; max-width: none; }
.pk-start .pk-karte:hover .pk-bild img { transform: scale(1.04); }
.pk-start .pk-marken { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; z-index: 1; }
.pk-start .pk-marke { font-size: 11px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 2px 8px; color: var(--pk-s-graphit); }
.pk-start .pk-marke.pk-dunkel { background: var(--pk-s-gruen); color: #fff; }
.pk-start .pk-karte .pk-text { padding: 0 14px 0 2px; display: grid; gap: 1px; }
.pk-start .pk-karte .pk-name { font-size: 15px; line-height: 1.3; }
.pk-start .pk-karte .pk-meta { font-family: var(--pk-s-mono); font-size: 11.5px; color: var(--pk-s-nebel); }
.pk-start .pk-karte .pk-preis { font-size: 15px; margin-top: 3px; }
.pk-start .pk-karte .pk-preis del { color: var(--pk-s-nebel); }

/* Mehr als Puschen */
.pk-bereiche { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.pk-start .pk-bereich { background: var(--pk-s-kulisse); display: grid; text-decoration: none; color: inherit; }
.pk-start .pk-bereich .pk-bild { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: block; }
.pk-start .pk-bereich:hover .pk-bild img { transform: scale(1.04); }
.pk-start .pk-bereich .pk-text { padding: 14px 20px 20px; display: grid; gap: 4px; }
.pk-start .pk-bereich .pk-text b { font-family: var(--pk-s-anzeige); font-weight: 400; font-size: 22px; letter-spacing: -0.015em; }
.pk-start .pk-bereich .pk-text span { color: var(--pk-s-graphit); font-size: 14px; }

/* Größenberater */
.pk-berater { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pk-berater-lesen { display: grid; gap: 16px; }
.pk-berater-feld { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.pk-berater-feld label { display: grid; gap: 4px; font-size: 13px; color: var(--pk-s-nebel); }
.pk-berater-feld input { width: 170px; border: 0; border-bottom: 1px solid var(--pk-s-tinte); border-radius: 0; background: transparent; font-family: var(--pk-s-anzeige); font-size: 44px; font-weight: 300; padding: 2px 0; outline: none; color: var(--pk-s-tinte); box-shadow: none; }
.pk-berater-ergebnis { font-family: var(--pk-s-anzeige); font-size: 22px; font-weight: 300; }
.pk-berater-ergebnis b { font-weight: 500; }
.pk-massband { height: 46px; position: relative; border-top: 1px solid var(--pk-s-tinte); margin-top: 22px; }
.pk-massband i { position: absolute; top: 0; width: 1px; background: var(--pk-s-tinte); }
.pk-massband em { position: absolute; top: 18px; font-style: normal; font-family: var(--pk-s-mono); font-size: 11px; transform: translateX(-50%); color: var(--pk-s-nebel); }
.pk-massband .pk-marke-band { position: absolute; top: -8px; width: 2px; height: 30px; background: var(--pk-s-gruen); transition: left .3s ease; }
.pk-berater-aktion { margin-top: 18px; }

@media (max-width: 920px) {
  .pk-berater { grid-template-columns: minmax(0, 1fr); }
  .pk-bereiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pk-held-buehne { aspect-ratio: 1 / 1.05; }
  .pk-fh-name { font-size: 11.5px; left: 6px; bottom: 6px; padding: 3px 8px; }
  .pk-start .pk-hinweis-dreh { display: none; }
  .pk-bereiche { grid-template-columns: minmax(0, 1fr); }
  .pk-leiste-scroll { grid-auto-columns: minmax(170px, 46%); }
  .pk-start .pk-farbpaar { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .pk-start * { transition: none !important; } }
