/* Yousil – Kopf aller Seiten: links das Menü, in der Mitte die Wortmarke, rechts der Warenkorb.
   Wie der Kopf auf der Seite steht (mitlaufend, über dem Bild, beim Rollen hinterlegt), legt jede
   Seite selbst fest; hier steht nur, was in ihm ist. Diese Datei kommt nach dem Stil der Seite.
   Dazu die Sprachwahl (Fußzeile und Menü).
   Seiten von rechts nach links (Arabisch, Hebräisch, <html dir="rtl">) spiegeln sich: Abstände und
   Lagen stehen als logische Angaben (inline-start = Anfang der Zeile), das Menü kommt dann von rechts. */

.kopf {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.kopf a, .kopf button { pointer-events: auto; }

.wortmarke {
  grid-column: 2;
  font-family: var(--schrift, "Jost", system-ui, sans-serif);
  font-size: 22px;
  font-weight: 616; /* 12 % weniger als fett (700); Jost ist stufenlos */
  letter-spacing: 0.14em;
  /* Der Abstand nach dem letzten Buchstaben verschiebt die Mitte; so steht das Wort genau mittig.
     Absichtlich „rechts“: Die Wortmarke ist lateinische Schrift und läuft auch auf Seiten von rechts
     nach links von links nach rechts. */
  margin-right: -0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

/* ─── Menüknopf ──────────────────────────────────────────────────────────── */

.menue-knopf {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.menue-striche { position: relative; width: 20px; height: 9px; }
.menue-striche::before, .menue-striche::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.3px; background: currentColor;
}
.menue-striche::before { top: 0; }
.menue-striche::after { bottom: 0; }

/* ─── Warenkorb ──────────────────────────────────────────────────────────── */

.tasche { grid-column: 3; justify-self: end; position: relative; display: grid; place-items: center; padding: 6px 0; text-decoration: none; color: inherit; }
.tasche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.tasche-zahl {
  position: absolute; top: 2px; inset-inline-end: -9px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #1d1915; color: #fcfaf7;
  font-size: 10px; letter-spacing: 0; line-height: 16px; text-align: center;
}
.tasche-zahl[hidden] { display: none; }

/* ─── Menü: kommt vom Anfang der Zeile (links, von rechts nach links: rechts) ─
   Fährt man über „Kollektion“ (oder steht der Fokus darin), wird das Menü breiter und zeigt die vier
   Kategorien mit Bild; ein Klick öffnet die Kollektion mit dieser Kategorie zuerst. Schmal und ohne Maus
   stehen die Kategorien gleich unter „Kollektion“. */

.menue {
  --menue-schmal: min(420px, 88vw);
  --menue-weg: -100%; /* wohin das Menü verschwindet: zum Anfang der Zeile */
  position: fixed;
  inset-block: 0;
  inset-inline: 0 auto;
  width: var(--menue-schmal);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 26px clamp(24px, 4vw, 48px);
  border: 0;
  overflow: hidden auto;
  background: #fcfaf7;
  color: #1d1915;
  font-family: var(--schrift, "Jost", system-ui, sans-serif);
  translate: 0 0;
  transition: translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}
.menue:popover-open { display: flex; flex-direction: column; }
@starting-style { .menue:popover-open { translate: var(--menue-weg) 0; } }
.menue:not(:popover-open) { translate: var(--menue-weg) 0; }
[dir="rtl"] .menue { --menue-weg: 100%; }
.menue::backdrop { background: rgba(29, 25, 21, 0.28); }

.menue-zu {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0; margin-bottom: clamp(40px, 8vh, 80px);
  border: 0; background: none; cursor: pointer; color: inherit;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
}
.menue-zu::before {
  content: ""; width: 14px; height: 14px;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.7px), currentColor calc(50% - 0.7px) calc(50% + 0.7px), transparent calc(50% + 0.7px)),
    linear-gradient(-45deg, transparent calc(50% - 0.7px), currentColor calc(50% - 0.7px) calc(50% + 0.7px), transparent calc(50% + 0.7px));
}
.menue-liste { list-style: none; margin: 0; padding: 0; width: calc(var(--menue-schmal) - 2 * clamp(24px, 4vw, 48px)); }
.menue-liste > li > a {
  display: block; padding: 10px 0;
  font-size: clamp(28px, 3.2vw, 36px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.15;
  text-decoration: none; color: inherit;
}
.menue-liste > li > a:hover, .menue-liste > li > a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Kategorien: neben der Liste (zum Ende der Zeile hin), so hoch wie das Menü */
.menue-kategorien {
  list-style: none; margin: 0; padding-block: 26px; padding-inline: 0 clamp(24px, 3vw, 40px);
  position: absolute; top: 0; bottom: 0; inset-inline-start: var(--menue-schmal); width: min(640px, calc(94vw - var(--menue-schmal)));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px;
  align-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.menue:has(.menue-kollektion:hover, .menue-kollektion:focus-within) { width: calc(var(--menue-schmal) + min(640px, calc(94vw - var(--menue-schmal)))); }
.menue-kollektion:hover .menue-kategorien, .menue-kollektion:focus-within .menue-kategorien {
  opacity: 1; visibility: visible; transition: opacity 0.25s ease 0.1s, visibility 0s;
}
.menue-kategorien a {
  position: relative; display: block; height: 100%; min-height: 150px; overflow: hidden;
  color: #fcfaf7; text-decoration: none; background: #2a2420;
}
.menue-kategorien img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--lage, 62% 40%); } /* Ausschnitt je Bild am Link, wie auf der Startseite */
.menue-kategorien a::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(to top, rgba(20, 16, 12, 0.55), rgba(20, 16, 12, 0)); }
.menue-kategorien span {
  position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 14px;
  font-size: 22px; font-weight: 300; letter-spacing: -0.01em;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}
.menue-kategorien a:hover span, .menue-kategorien a:focus-visible span { text-decoration-color: currentColor; }

/* Ohne Maus oder schmal: Kategorien direkt unter „Kollektion“, zu zweit */
@media (hover: none), (max-width: 900px) {
  .menue-kategorien {
    position: static; width: auto; padding: 4px 0 18px; opacity: 1; visibility: visible;
    grid-auto-rows: 92px; gap: 8px;
  }
  .menue:has(.menue-kollektion:hover, .menue-kollektion:focus-within) { width: var(--menue-schmal); }
  .menue-kategorien a { min-height: 0; }
  .menue-kategorien span { font-size: 16px; inset-inline-start: 10px; bottom: 8px; }
}

@media (max-width: 760px) {
  .wortmarke { font-size: 19px; }
  .menue-wort { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menue { transition: none; }
}

/* ─── Sprachwahl ─────────────────────────────────────────────────────────
   Ein Knopf mit dem Namen der eingestellten Sprache öffnet eine Tafel mit allen Sprachen, jede in
   ihrem eigenen Namen. Knopf und Tafel setzt das Werkzeug in i18n/werkzeug beim Bauen der Seiten ein;
   in der Quelle steht nur der leere Platzhalter (data-sprachwahl), der nichts anzeigt. */

.sprachwahl:empty { display: none; }
.sprachwahl-knopf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 0; border: 0; background: none; cursor: pointer; color: inherit;
  font-family: inherit; font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
}
.sprachwahl-knopf::after {
  content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  rotate: 45deg; translate: 0 -2px;
}
.sprachwahl-knopf:hover { color: var(--tinte, #1d1915); }
/* In der Fußzeile macht die Sprachwahl die Zeile nicht höher: kein Zeilenkasten um den Knopf, und die
   Fläche zum Tippen reicht über den Rand hinaus. */
footer .sprachwahl { display: flex; }
footer .sprachwahl-knopf { margin-block: -6px; }
.sprachwahl-menue { margin-top: auto; padding-top: 32px; }
.sprachwahl-menue .sprachwahl-knopf { font-size: 11px; }

.sprachwahl-tafel {
  width: min(760px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 32px));
  margin: auto;
  padding: clamp(24px, 4vw, 44px);
  border: 0;
  overflow: auto;
  background: #fcfaf7;
  color: #1d1915;
  font-family: var(--schrift, "Jost", system-ui, sans-serif);
  box-shadow: 0 24px 80px rgba(29, 25, 21, 0.18);
}
.sprachwahl-tafel::backdrop { background: rgba(29, 25, 21, 0.28); }
.sprachwahl-kopf { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.sprachwahl-titel { margin: 0; font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: #7a7067; }
.sprachwahl-zu {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 0; border: 0; background: none; cursor: pointer; color: inherit;
  font-family: inherit; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
}
.sprachwahl-zu::before {
  content: ""; width: 12px; height: 12px;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.7px), currentColor calc(50% - 0.7px) calc(50% + 0.7px), transparent calc(50% + 0.7px)),
    linear-gradient(-45deg, transparent calc(50% - 0.7px), currentColor calc(50% - 0.7px) calc(50% + 0.7px), transparent calc(50% + 0.7px));
}
.sprachwahl-liste { list-style: none; margin: 0; padding: 0; columns: 3 150px; column-gap: 32px; }
.sprachwahl-liste li { break-inside: avoid; }
.sprachwahl-liste a {
  display: block; padding: 7px 0;
  font-size: 17px; font-weight: 300; line-height: 1.3; letter-spacing: 0; text-transform: none;
  color: inherit; text-decoration: none;
}
.sprachwahl-liste a:hover, .sprachwahl-liste a[aria-current="true"] {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
/* Griechisch, Ukrainisch und Mazedonisch hat Jost nicht (ganz): ganze Namen in der Systemschrift, nicht Buchstabe für Buchstabe gemischt. */
.sprachwahl-liste a:is(:lang(el), :lang(uk), :lang(mk)) {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
