/* Yousil – Produktseite. Gleiche Welt wie die Startseite: fast weiß, warm, Jost, viel Luft.
   Links die Bilder als ruhige Folge, rechts der Kauf, der beim Scrollen stehen bleibt. */

:root {
  --papier: #fcfaf7;
  --flaeche: #f4efe8;
  --tinte: #1d1915;
  --leise: #7a7067;
  --linie: rgba(29, 25, 21, 0.12);
  --schrift: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
  --kopf: 68px;
  --weich: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { background: var(--papier); scroll-padding-top: calc(var(--kopf) + 12px); }
body {
  margin: 0;
  color: var(--tinte);
  background: var(--papier);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* Kleine gesperrte Großbuchstaben, wie auf der Startseite */
.marke, .etikett, .stueck-name, .pfeil-link, .fuss-titel, .fuss-marke, .pfad, .falten summary, .kaufen, .familie {
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ─── Kopf ───────────────────────────────────────────────────────────────── */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--kopf);
  padding: 0 var(--rand);
  background: rgba(252, 250, 247, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--linie);
}
/* Inhalt des Kopfs (Menü, Wortmarke, Warenkorb): design/shared/kopf.css */

/* ─── Produkt: Bilder links, Kauf rechts ─────────────────────────────────── */

.produkt {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  gap: clamp(28px, 4.5vw, 80px);
  padding: clamp(16px, 2vw, 28px) var(--rand) 0;
  max-width: 1600px;
  margin: 0 auto;
}

.galerie {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  align-content: start;
}
.bild {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ece8e2;
  cursor: zoom-in;
}
.bild.breit { grid-column: 1 / -1; }
.bild img { width: 100%; height: auto; aspect-ratio: 1760 / 2352; object-fit: cover; }
.galerie-zahl { display: none; }

.kauf { position: relative; }
.kauf-innen {
  position: sticky;
  top: calc(var(--kopf) + clamp(16px, 2vw, 28px));
  padding-top: clamp(8px, 2vw, 32px);
  padding-bottom: 40px;
}

.pfad { display: flex; gap: 10px; margin: 0 0 22px; font-size: 10.5px; color: var(--leise); }
.pfad a { text-decoration: none; }
.pfad a:hover { color: var(--tinte); }
.name { margin: 0; font-weight: 300; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.025em; }
.zeile { margin: 14px 0 0; font-size: 15px; color: var(--leise); }
.preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0 0; }
#preis { font-size: 20px; letter-spacing: 0.01em; white-space: nowrap; }
.preis-hinweis { font-size: 12.5px; color: var(--leise); }
.geschichte { margin: 26px 0 0; max-width: 30em; font-size: 15.5px; }

/* Farbe */
.farbe-wahl { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--linie); }
.farbe-kopf { display: flex; gap: 14px; align-items: baseline; }
#farbe-name { font-size: 14px; color: var(--leise); }
.farben { display: flex; gap: 14px; margin-top: 16px; }
.farbknopf {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #ccc center / 260% no-repeat;
  box-shadow: 0 0 0 1px var(--linie);
  transition: box-shadow 0.3s ease;
}
.farbknopf:hover { box-shadow: 0 0 0 1px var(--tinte); }
.farbknopf[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--papier), 0 0 0 3px var(--tinte); }
.bild img.wechselt { opacity: 0; }
.bild img { transition: opacity 0.35s ease; }

/* Größe */
.groesse { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--linie); }
.groesse-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.etikett { margin: 0; font-size: 11px; }
.leise-link {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; color: var(--leise);
  text-decoration: underline; text-decoration-color: rgba(122, 112, 103, 0.4); text-underline-offset: 4px;
}
.leise-link:hover { color: var(--tinte); }
.familien { display: flex; gap: 26px; margin-top: 18px; border-bottom: 1px solid var(--linie); }
.familie {
  position: relative; padding: 10px 0 12px; border: 0; background: none; cursor: pointer;
  font-size: 10.5px; color: var(--leise);
}
.familie[aria-selected="true"] { color: var(--tinte); }
.familie[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--tinte); }
.familie-text { min-height: 1.5em; margin: 14px 0 0; font-size: 13px; color: var(--leise); }
/* Ein Stück mit nur einer Größenreihe (Jacken: S bis XXL) zeigt weder Reiter noch Erklärung. */
.familien[hidden], .familie-text[hidden] { display: none; }
.groessen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wahl {
  height: 48px; border: 1px solid var(--linie); border-radius: 10px; background: transparent; cursor: pointer;
  font-size: 15px; letter-spacing: 0.02em;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.wahl:hover { border-color: var(--tinte); }
.wahl[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.wahl:disabled { cursor: not-allowed; color: #b4aca3; background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(29, 25, 21, 0.05) 7px 8px); }
.wahl:disabled:hover { border-color: var(--linie); }
.modell-hinweis { margin: 16px 0 0; font-size: 13px; color: var(--leise); }

/* Kaufen */
.kaufen {
  width: 100%; height: 58px; margin-top: 26px;
  border: 0; border-radius: 29px; cursor: pointer;
  background: var(--tinte); color: var(--papier);
  font-size: 11.5px;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.kaufen:hover:not(:disabled) { background: #000; }
.kaufen:disabled { cursor: default; background: transparent; color: var(--leise); box-shadow: inset 0 0 0 1px var(--linie); }
.kaufen.erledigt { background: #3c3631; }
.bestaetigung { margin: 14px 0 0; font-size: 14px; }
.bestaetigung a { white-space: nowrap; }

.zusagen { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--leise); }
.zusagen li { display: flex; align-items: center; gap: 12px; }
.zusagen li::before { content: ""; flex: none; width: 6px; height: 10px; background: var(--tinte); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Aufklappbare Angaben */
.falten { margin-top: 34px; border-top: 1px solid var(--linie); }
.falten details { border-bottom: 1px solid var(--linie); }
.falten summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 19px 0; cursor: pointer; list-style: none; font-size: 11px;
}
.falten summary::-webkit-details-marker { display: none; }
.falten summary::after { content: ""; width: 9px; height: 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; rotate: 45deg; translate: 0 -3px; transition: rotate 0.35s var(--weich), translate 0.35s var(--weich); }
.falten details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.falten ul { margin: 0 0 20px; padding: 0; padding-inline-start: 18px; font-size: 14.5px; }
.falten li { margin: 3px 0; }
.falten li::marker { color: var(--leise); }
.falten p { margin: 0 0 16px; font-size: 14.5px; color: var(--leise); max-width: 34em; }
.falten p a { color: var(--tinte); text-underline-offset: 4px; }
/* Nur in übersetzten Seiten: Die Rechtstexte gibt es auf Deutsch. */
.falten .rechtshinweis { margin-top: -8px; font-size: 12.5px; }
.masse { display: grid; gap: 0; margin: 0 0 20px; font-size: 14.5px; }
.masse div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--linie); }
.masse div:first-child { border-top: 0; }
.masse dt { color: var(--leise); }
.masse dd { margin: 0; white-space: nowrap; }
/* Duftnoten sind lange Aufzählungen: sie brechen um, statt die Seite zu verbreitern. */
.masse.noten dd { white-space: normal; text-align: end; }

/* ─── Der Stoff ──────────────────────────────────────────────────────────── */

.stoff-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(110px, 14vw, 200px) var(--rand) 0;
}
.stoff-bild { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--flaeche); }
.stoff-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; scale: 1.5; transform-origin: 30% 70%; }
.marke { margin: 0; font-size: 10.5px; color: var(--leise); }
.gross { margin: 18px 0 22px; font-weight: 300; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.stoff-text p:not(.marke) { margin: 0; max-width: 30em; color: var(--leise); }
/* Düfte: das Bild der Duftnoten ganz, ohne Heranholen. */
.stoff-bild.ganz { aspect-ratio: 3 / 4; }
.stoff-bild.ganz img { object-position: 50% 50%; scale: 1; }

/* ─── Weitere Anzüge ─────────────────────────────────────────────────────── */

.weitere { padding: clamp(110px, 14vw, 200px) var(--rand) 0; max-width: 1600px; margin: 0 auto; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.ueberschrift { margin: 0; font-weight: 300; font-size: clamp(28px, 3.1vw, 46px); line-height: 1.1; letter-spacing: -0.015em; }
.pfeil-link { display: inline-flex; align-items: center; gap: 12px; font-size: 10.5px; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.pfeil-link::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width 0.4s var(--weich); }
.pfeil-link:hover::after { width: 42px; }
.raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.stueck { display: block; text-decoration: none; }
.stueck-bild { display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #ece8e2; }
.stueck-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.stueck-name { display: block; margin-top: 18px; font-size: 11px; }
.stueck-zeile { display: block; margin-top: 6px; font-size: 13px; color: var(--leise); }
.stueck-preis { display: block; margin-top: 2px; font-size: 13px; }
/* Zwei Stücke (die anderen Düfte): schmaler, damit die Karten nicht riesig werden.
   Beim Darüberfahren blendet das Duftbild über den Packshot; beide sind deckungsgleich. */
.weitere.zwei { max-width: 1100px; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stueck-bild { position: relative; }
.stueck-bild .ueber { position: absolute; inset: 0; opacity: 0; transition: opacity 0.18s ease-out; }
.stueck:hover .stueck-bild .ueber, .stueck:focus-visible .stueck-bild .ueber { opacity: 1; }

/* ─── Fuß ────────────────────────────────────────────────────────────────── */

.fuss { margin-top: clamp(110px, 14vw, 200px); padding: 56px var(--rand) 36px; border-top: 1px solid var(--linie); font-size: 13px; }
.fuss-spalten { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.fuss p { margin: 0 0 14px; color: var(--leise); }
.fuss-marke { font-size: 14px; letter-spacing: 0.42em; color: var(--tinte) !important; margin-bottom: 20px !important; }
.fuss-titel { font-size: 10.5px; color: var(--tinte) !important; }
.fuss nav { display: grid; align-content: start; gap: 8px; }
.fuss nav a, .fuss a { color: var(--leise); text-decoration: none; }
.fuss a:hover { color: var(--tinte); }
/* Sprachwahl gleich neben dem Copyright, nicht am rechten Rand: Dort steht Davids Knopf über der Seite. Auch von
   rechts nach links bleibt David rechts unten (siehe david.css); die Zeile rückt dann ans Zeilenende, nach links. */
.fuss-unten { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; margin: 48px 0 14px; }
[dir="rtl"] .fuss-unten { justify-content: flex-end; }
.fuss-unten .fuss-zeile { margin: 0; }
.fuss-zeile { font-size: 12px; }
/* Nur in übersetzten Seiten, unter den Links zu den Rechtstexten. */
.fuss .fuss-hinweis { margin: 4px 0 0; font-size: 11.5px; }

/* ─── Bild in voller Größe ───────────────────────────────────────────────── */

.voll { position: fixed; inset: 0; z-index: 2147483000; background: #ece8e2; }
.voll[hidden] { display: none; }
.voll-spur {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.voll-spur::-webkit-scrollbar { display: none; }
.voll-seite { flex: 0 0 100%; height: 100%; scroll-snap-align: center; overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; }
.voll-seite img { max-height: 100vh; max-height: 100dvh; max-width: 100vw; width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.voll-seite.nah { place-items: start center; }
.voll-seite.nah img { max-height: none; max-width: none; width: min(1760px, 180vw); cursor: zoom-out; }
.voll-zu, .voll-pfeil {
  position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(252, 250, 247, 0.82); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.voll-zu { top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; }
.voll-zu span, .voll-zu span::after { position: absolute; left: 15px; top: 23px; width: 18px; height: 1.3px; background: var(--tinte); rotate: 45deg; }
.voll-zu span::after { content: ""; left: 0; top: 0; rotate: 90deg; }
.voll-pfeil { top: 50%; translate: 0 -50%; }
.voll-pfeil::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-right: 1.3px solid var(--tinte); border-bottom: 1.3px solid var(--tinte); translate: -70% -50%; rotate: -45deg; }
.voll-pfeil.zurueck { inset-inline-start: 16px; }
.voll-pfeil.zurueck::after { rotate: 135deg; translate: -30% -50%; }
.voll-pfeil.weiter { inset-inline-end: 16px; }
/* Von rechts nach links zeigt „weiter“ nach links: der runde Knopf gespiegelt, samt Pfeil. */
[dir="rtl"] .voll-pfeil { scale: -1 1; }
.voll-zahl { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; margin: 0; font-size: 12px; letter-spacing: 0.2em; color: var(--leise); }

/* ─── Schmal ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .produkt { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  /* Auf dem Handy: Bilder als Wischstrecke über die volle Breite, darunter der Kauf. */
  .galerie {
    display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .galerie::-webkit-scrollbar { display: none; }
  .bild, .bild.breit { flex: 0 0 100%; border-radius: 0; scroll-snap-align: start; }
  .produkt { position: relative; }
  .galerie-zahl {
    display: block; position: absolute; z-index: 2; inset-inline-end: 14px; top: calc(100vw * 2352 / 1760 - 40px);
    margin: 0; padding: 4px 10px; border-radius: 12px; background: rgba(252, 250, 247, 0.8);
    font-size: 11px; letter-spacing: 0.18em; color: var(--tinte);
  }
  .kauf { padding: 0 var(--rand); }
  .kauf-innen { position: static; padding-top: 28px; top: auto !important; }
  .stoff-band { grid-template-columns: minmax(0, 1fr); }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster li:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .abschnitt-kopf { flex-direction: column; align-items: flex-start; gap: 14px; }
  .fuss-spalten { grid-template-columns: 1fr 1fr; }
  .fuss-spalten > div:first-child { grid-column: 1 / -1; }
  .voll-pfeil { display: none; }
}
@media (max-width: 380px) {
  .groessen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .bild img, .stueck-bild img, .falten summary::after { transition: none; }
}
