/* Yousil – Startseite. Kopf, Fuß, Schrift aus produkt.css und kopf.css; Raster und Karten aus kollektion.css.
   Hier nur, was die Startseite ausmacht:
   - Titelbild über den ersten Bildschirm.
   - Die vier Kategorien zwei mal zwei, ohne Einrückung, mit eigenen Bildern. Ein Klick öffnet die Kollektion
     mit dieser Kategorie zuerst.
   - „Ausgewählt“: links ein Stück groß am Model, rechts vier Stücke als Karten.
   - Verweis auf „Über Yousil“: Bild und Text nebeneinander. */

.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ─── Titelbild ──────────────────────────────────────────────────────────── */

.titel { position: relative; margin: 0; background: #2a2420; }
.titel img { display: block; width: 100%; height: calc(100vh - var(--kopf)); height: calc(100svh - var(--kopf)); min-height: 520px; object-fit: cover; object-position: 60% 40%; }
.titel figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 180px) var(--rand) clamp(26px, 3.4vw, 48px);
  background: linear-gradient(to top, rgba(20, 16, 12, 0.45), rgba(20, 16, 12, 0));
  color: #fcfaf7;
}
.titel-zeile { margin: 0; max-width: 18em; font-weight: 300; font-size: clamp(30px, 4vw, 64px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }

/* ─── Kategorien ─────────────────────────────────────────────────────────── */

.kategorien {
  --hoehe: calc((100vh - var(--kopf)) / 2);
  --hoehe: calc((100svh - var(--kopf)) / 2);
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max(var(--hoehe), 260px);
  border-top: 1px solid var(--linie);
  gap: 1px;
  background: var(--linie);
  border-bottom: 1px solid var(--linie);
}
.kategorie { position: relative; display: block; height: 100%; overflow: hidden; color: #fcfaf7; text-decoration: none; background: #2a2420; }
.kategorie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--lage, 50% 50%); }
.kategorie::after {
  content: ""; position: absolute; inset: 45% 0 0 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.5), rgba(20, 16, 12, 0));
}
.kategorie-name {
  position: absolute; z-index: 1; inset-inline-start: var(--rand); bottom: clamp(18px, 3vh, 34px);
  font-weight: 300; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 8px;
  transition: text-decoration-color 0.25s ease;
}
.kategorie:hover .kategorie-name, .kategorie:focus-visible .kategorie-name { text-decoration-color: currentColor; }

/* ─── Ausgewählt: ein großes Stück, vier daneben ─────────────────────────── */

/* Das Model steht im ganzen Bild bis zu den Schuhen: die Angaben stehen darunter wie bei den Karten,
   nicht auf dem Bild. Das Bild füllt den Rest der Höhe. */
.gross-stueck { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; color: var(--tinte); text-decoration: none; background: var(--papier); }
.gross-stueck img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 20%; background: var(--flaeche); }
.gross-text { display: block; padding: 16px 20px 22px; }

/* ─── Ausgewählt: Titel mit einer Zeile darunter ─────────────────────────── */

.auswahl-kopf { padding: clamp(56px, 7vw, 110px) var(--rand) clamp(22px, 2.6vw, 36px); }
.auswahl-kopf .abschnitt-titel { padding: 0; }
.auswahl-zeile { margin: 16px 0 0; max-width: 36em; font-size: 16px; line-height: 1.6; color: var(--leise); }

/* ─── Über Yousil ────────────────────────────────────────────────────────── */

.ueber { margin-top: clamp(72px, 9vw, 140px); }
.ueber-bild { grid-column: span 2; margin: 0; background: var(--flaeche); }
.ueber-bild img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ueber-text {
  grid-column: span 2; background: var(--papier);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(32px, 6vw, 110px);
}
.ueber-titel { margin: 18px 0 26px; font-weight: 300; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.ueber-zitat { margin: 0 0 30px; max-width: 30em; }
.ueber-zitat p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--leise); }
.ueber-zitat footer { margin-top: 10px; font-size: 13px; }
/* Ein Knopf, der wie einer aussieht: gefüllt, mit Pfeil, beim Darüberfahren dunkler und der Pfeil rückt. */
.knopf {
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 30px; border-radius: 27px;
  background: var(--tinte); color: var(--papier); text-decoration: none;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background-color 0.25s ease;
}
.knopf span { font-size: 15px; letter-spacing: 0; transition: translate 0.25s ease; }
.knopf:hover { background: #000; }
.knopf:hover span { translate: 4px 0; }
/* Von rechts nach links zeigt der Pfeil nach links und rückt nach links. */
[dir="rtl"] .knopf span { scale: -1 1; }
[dir="rtl"] .knopf:hover span { translate: -4px 0; }

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

@media (max-width: 760px) {
  .kategorien { grid-auto-rows: 62vw; }
  .kategorie-name { font-size: 24px; inset-inline-start: 14px; bottom: 14px; }
  /* Schmal kommt ein Hochformat-Ausschnitt in voller Auflösung (index.html, <picture>); das Querformat wäre
     hier auf das Zwei- bis Dreifache hochgezogen und sähe komprimiert aus. */
  .titel img { height: 78svh; min-height: 0; object-position: 50% 40%; }
  .ueber-bild, .ueber-text { grid-column: 1 / -1; }
  .ueber-text { padding: 32px 20px 40px; }
  .gross-stueck { grid-column: 1 / -1; }
  .gross-stueck img { flex: none; height: auto; aspect-ratio: 4 / 5; }
  .gross-text { padding: 12px 14px 18px; }
}
