/* ===== Produktseite im Stil eines Modeshops: Kampagnenbild im Raster, Produktkarten mit Name, Farbe und Preis ===== */
.kollektion { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 1.1rem; }
.produkt { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.produkt .teil-bild { flex: 1; min-height: 0; }
.produkt .teil-bild img { aspect-ratio: 4 / 5; }
/* Großes Kampagnenbild: zwei Spalten breit, zwei Reihen hoch */
.produkt.gross { grid-column: span 2; grid-row: span 2; }
.produkt.gross .teil-bild img { aspect-ratio: auto; position: absolute; inset: 0; }
.produkt.zwei { grid-column: span 2; }
.produkt.zwei .teil-bild img { aspect-ratio: auto; position: absolute; inset: 0; }
.produkt.zwei .teil-bild { min-height: 14rem; }
.produkt.drei { grid-column: span 3; }
.produkt.drei .teil-bild img { aspect-ratio: auto; position: absolute; inset: 0; }
.produkt.vier { grid-column: 1 / -1; }
.produkt.vier .teil-bild img { aspect-ratio: 3 / 1; }
.produkt figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.8rem; padding-top: 0.75rem; font-size: 0.88rem; line-height: 1.35; }
.produkt figcaption b { flex-basis: 100%; font: 400 1.08rem/1.25 var(--serif); }
.produkt figcaption span { color: var(--tinte-2); }
.produkt figcaption .preis { margin-left: auto; color: var(--tinte); font-weight: 600; }
.produkt .farben { flex-basis: 100%; display: flex; gap: 0.35rem; margin-top: 0.35rem; }
.produkt .farben i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--f); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18); }
.produkt.gross figcaption b { font-size: 1.35rem; }
@media (max-width: 980px) {
  .kollektion { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .produkt.gross { grid-row: auto; }
  .produkt.gross .teil-bild img { position: static; aspect-ratio: 4 / 5; }
  .produkt.drei, .produkt.zwei { grid-column: 1 / -1; }
  .produkt.drei .teil-bild img, .produkt.zwei .teil-bild img { position: static; aspect-ratio: 16 / 9; }
  .produkt.zwei .teil-bild { min-height: 0; }
}
@media (max-width: 520px) {
  .kollektion { gap: 1.8rem 0.7rem; }
  .produkt figcaption { font-size: 0.8rem; }
  .produkt figcaption b { font-size: 0.98rem; }
  .produkt figcaption .preis { margin-left: 0; flex-basis: 100%; }
  .produkt.vier .teil-bild img { aspect-ratio: 16 / 9; }
}

/* Köpfe nicht abschneiden: Hochformat-Bilder oben ausrichten */
.produkt .teil-bild img { object-position: 50% 8%; }
/* Farbpunkte oben rechts im Bild */
.produkt { position: relative; }
.produkt .farben { position: absolute; top: 0.8rem; right: 0.8rem; margin: 0; flex-basis: auto; z-index: 2; }
/* Casting: ein breites Bild, Gesicht und ganze Figur auf demselben Hintergrund (mit Adobe erweitert) */
.produkt.casting .teil-bild img { aspect-ratio: 1800 / 801; object-position: 50% 50%; }
/* Linienkopf: Merkmale direkt unter dem Titel */
.linie-kopf > div:first-child .merkmale { margin-top: 1rem; }
/* Charlotte: 3D-Drehung beim Hovern */
.produkt .dreh-3d { background: radial-gradient(circle, #80766e, #5f5650); }
.produkt .dreh-3d video { position: absolute; inset: 4% 0 0; width: 100%; height: 96%; object-fit: contain; opacity: 0; transition: opacity .4s; z-index: 1; }
.produkt .dreh-3d.dreht video { opacity: 1; }
.produkt .dreh-3d img { transition: opacity .4s; }
.produkt .dreh-3d.dreht img { opacity: 0; }
.produkt .dreh-3d .ki-marke { z-index: 2; }

/* Farbpunkte: einzeln ein Kreis, bei zwei Farben ein Yin-Yang aus beiden */
.produkt .farben i { width: 1.35rem; height: 1.35rem; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85), 0 2px 6px rgb(0 0 0 / 0.25); }
.produkt .farben.zwei i { display: none; }
.produkt .farben.zwei { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85), 0 2px 6px rgb(0 0 0 / 0.25); overflow: hidden; }
.produkt .farben.zwei::before, .produkt .farben.zwei::after { content: ""; position: absolute; left: 25%; width: 50%; height: 50%; border-radius: 50%; }
.produkt .farben.zwei::before { top: 0; background: var(--a); }
.produkt .farben.zwei::after { bottom: 0; background: var(--b); }
/* Seitentitel einzeilig */
.kollektion-kopf h1 { max-width: none; }
@media (min-width: 700px) { .kollektion-kopf h1 { white-space: nowrap; } }

/* Filter als Karteikarten-Reiter: über die ganze Breite, sitzen auf der Trennlinie, aktiver Reiter farbig */
.filter { gap: 0.25rem; padding: 1.4rem 0 0; flex-wrap: nowrap; align-items: flex-end; border-bottom: 2px solid var(--kaktus); }
.filter button { position: relative; flex: 1; z-index: 0; border: 0; background: none; border-radius: 0; padding: 0.75rem 1rem 0.65rem; margin-bottom: 0; color: var(--tinte); white-space: nowrap; }
.filter button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--papier-2); border: 1px solid var(--linie); border-bottom: 0; border-radius: 12px 12px 0 0; transform: perspective(28px) rotateX(2.2deg); transform-origin: 50% 100%; transition: background-color .3s, border-color .3s; }
.filter button:hover { border-color: transparent; }
.filter button:hover::before { background: #e2dccd; }
.filter button[aria-pressed="true"] { background: none; color: #fff; }
.filter button[aria-pressed="true"]::before { background: var(--kaktus); border-color: var(--kaktus); }
.filter + .linie { padding-top: clamp(1.6rem, 3.5vw, 2.6rem); }
@media (max-width: 700px) { .filter { overflow-x: auto; } .filter button { flex: 0 0 auto; padding-inline: 0.9rem; } }

/* Charlotte: 3D-Modell direkt sichtbar und per Ziehen drehbar */
.produkt .dreh-3d { cursor: grab; touch-action: pan-y; user-select: none; min-height: 22rem; }
.produkt .dreh-3d.zieht { cursor: grabbing; }
.produkt .dreh-3d video { inset: 3% 0 3%; height: 94%; opacity: 1; }

/* Hinweis „Auf Bestellung gefertigt“: als gerahmte Kachel mit Symbol im Kreis */
.bestell-hinweis { background: none; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.bestell-hinweis .wrap { position: relative; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 4vw, 2.8rem); border: 1px solid var(--tinte); border-radius: 14px; background: var(--papier-2); box-shadow: inset 0 0 0 5px var(--papier-2), inset 0 0 0 6px var(--kaktus); max-width: calc(var(--breite) - 2 * var(--rand)); }
.bestell-hinweis svg { box-sizing: content-box; width: 2rem; height: 2rem; padding: 0.95rem; border-radius: 50%; background: var(--kaktus); stroke: #fff; stroke-width: 1.5; box-shadow: 0 0 0 6px color-mix(in srgb, var(--kaktus) 18%, transparent); }
.bestell-hinweis .pfeil-link { padding: 0.65rem 1.2rem; border: 1px solid var(--tinte); border-radius: 99px; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s; }
.bestell-hinweis .pfeil-link:hover { background: var(--tinte); color: var(--papier); }
@media (max-width: 700px) { .bestell-hinweis .wrap { grid-template-columns: 1fr; margin-inline: var(--rand); } .bestell-hinweis .pfeil-link { justify-self: start; } }
/* Reiter: Linien in der Serifenschrift, größer; „Alle“ bewusst anders in Versalien */
.filter button { font: 400 clamp(1.05rem, 1.6vw, 1.35rem)/1.1 var(--serif); padding-block: 0.85rem 0.75rem; }
.filter button[data-filter="alle"] { font: 700 0.78rem/1.1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.filter button { min-height: 3.1rem; }
/* Reiter scrollen mit weg, kein Festkleben oben */
.filter { position: static; }
/* Linienkopf bleibt beim Scrollen oben stehen, bis die nächste Linie ihn ablöst */
@media (min-width: 700px) {
  .linie-kopf { position: sticky; top: var(--header-h); z-index: 5; background: var(--papier); padding: 0.9rem 0 1.1rem; box-shadow: 0 1px 0 var(--linie); }
}
@media (min-width: 700px) {
  /* Platz am Ende jeder Linie: der letzte Inhalt verschwindet erst hinter dem Kopf, dann blendet der Kopf aus */
  .linie { padding-bottom: 0; }
  .linie > .wrap::after { content: ""; display: block; height: 12rem; }
  .linie-kopf { transition: opacity .15s linear; }
}
.produkt .zusammensetzung { flex-basis: 100%; font-size: 0.9rem; }
@media (min-width: 700px) {
  /* Kein Außenabstand unter dem klebenden Kopf: sonst bleibt er vor dem Trennstrich stehen statt genau darauf */
  .linie-kopf { margin-bottom: 0; }
  .linie-kopf + .kollektion { margin-top: 2.4rem; }
}
/* Linienkopf: mehr Breite für den Text, damit er zweizeilig bleibt */
@media (min-width: 900px) { .linie-kopf { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); } .linie-kopf p { max-width: none; } }
/* Mäntel: der Kopf läuft beim Material-Banner einfach mit nach oben weg */
@media (min-width: 700px) {
  #maentel > .wrap:first-child::after { height: 2.2rem; }
  #maentel .material-wrap::after { display: none; }
  #maentel .material-wrap { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
}
/* Schwebende Linien-Leiste unten, wenn oben schon weggescrollt */
.filter-unten { position: fixed; left: 50%; bottom: 1.2rem; z-index: 40; display: flex; gap: 0.3rem; padding: 0.35rem; border-radius: 999px; background: rgb(244 240 232 / 0.92); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgb(0 0 0 / 0.18), 0 0 0 1px var(--linie); translate: -50% 140%; opacity: 0; pointer-events: none; transition: translate .45s var(--weich), opacity .3s; }
.filter-unten.ist-da { translate: -50% 0; opacity: 1; pointer-events: auto; }
.filter-unten button { border: 0; background: none; border-radius: 999px; padding: 0.55rem 1rem; font: 400 1rem/1 var(--serif); color: var(--tinte); cursor: pointer; white-space: nowrap; }
.filter-unten button:hover { background: var(--papier-2); }
.filter-unten button[aria-pressed="true"] { background: var(--kaktus); color: #fff; }
.filter-unten button[data-ziel="alle"] { font: 700 0.72rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
@media (max-width: 520px) { .filter-unten button { padding: 0.5rem 0.65rem; font-size: 0.88rem; } }
