/* Entwurf A -- "Studio": warmes Greige, schwebende weisse Karten,
   grosse weiche Rundungen, Schwarz nur fuer Handlungen, Gold als
   einziger Akzent. Abgeleitet aus Lenis Referenzbild (Beauty-Editorial). */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-var.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --grund: #b9aea6;          /* Greige wie im Referenzbild */
  --grund-hell: #cfc6bf;
  --karte: #ffffff;
  --tinte: #14110f;
  --tinte-leise: #5d534c;
  --gold: #c08a2e;
  --rund-gross: 30px;
  --rund: 20px;
  --rund-klein: 14px;
  --schatten: 0 18px 40px -22px rgba(28, 20, 14, .55), 0 2px 6px -2px rgba(28, 20, 14, .18);
  --breite: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--grund-hell) 0%, var(--grund) 58%, #a89c93 100%)
    fixed;
  color: var(--tinte);
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection { background: var(--tinte); color: #fff; }

:focus-visible {
  outline: 2px solid var(--tinte);
  outline-offset: 3px;
  border-radius: 6px;
}

.rahmen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 28px 16px 56px;
}

/* ---------- Kopf ---------- */

.kopf { text-align: center; padding: 8px 0 20px; }

.wortmarke {
  margin: 0 0 22px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(20, 17, 15, .62);
}

.kopf h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.unterzeile {
  margin: 0 auto;
  max-width: 34ch;
  color: rgba(20, 17, 15, .68);
  font-size: 1rem;
}

/* ---------- Suche ---------- */

.suchfeld {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 30px;
  max-width: 640px;
  padding: 6px 8px 6px 18px;
  background: var(--karte);
  border-radius: 999px;
  box-shadow: var(--schatten);
}

.lupe {
  width: 20px; height: 20px; flex: 0 0 20px;
  fill: none; stroke: var(--tinte-leise); stroke-width: 1.8; stroke-linecap: round;
}

#suche {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.02rem;
  color: var(--tinte);
  caret-color: var(--gold);
}
#suche::placeholder { color: rgba(20, 17, 15, .45); }
#suche:focus { outline: none; }
#suche::-webkit-search-cancel-button { filter: grayscale(1); }

/* ---------- Bloecke ---------- */

.block { margin: 0 0 44px; }

.block h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.block__hinweis {
  margin: 0 0 14px;
  font-size: .86rem;
  color: rgba(20, 17, 15, .6);
}

.block h2 + .beitraege { margin-top: 14px; }

/* ---------- Beitragskacheln ---------- */

.beitraege {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 720px) { .beitraege { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .beitraege { grid-template-columns: repeat(4, 1fr); } }

.beitrag {
  background: var(--karte);
  border-radius: var(--rund);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--schatten);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1);
}

.beitrag:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(28,20,14,.6); }

.beitrag--offen { grid-column: 1 / -1; }

.beitrag__bild {
  aspect-ratio: 16 / 9;
  background: #e8e2dc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.beitrag__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

.beitrag__bild--leer {
  padding: 14px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--tinte-leise);
  line-height: 1.25;
}

.beitrag__fuss { padding: 10px 12px 13px; }

.beitrag__titel {
  margin: 0 0 3px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.beitrag__zahl {
  margin: 0;
  font-size: .76rem;
  color: rgba(20, 17, 15, .55);
}

.beitrag__auf { padding: 0 12px 14px; }

.beitrag__hinweis {
  margin: 0 0 10px;
  font-size: .78rem;
  color: rgba(20, 17, 15, .6);
}

.mehr {
  display: block;
  margin: 22px auto 0;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--tinte);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.mehr:hover { transform: translateY(-1px); }
.mehr:active { transform: translateY(0); opacity: .9; }

/* ---------- Duftkarten ---------- */

.duft-reihe {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 720px) { .duft-reihe { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .duft-reihe { grid-template-columns: repeat(4, 1fr); } }

/* Die "zuletzt besprochen"-Reihe laeuft am Handy waagerecht -- so bleibt
   der wichtigste Abschnitt eine Daumenbewegung lang, statt die Seite um
   acht Kacheln zu verlaengern. */
.duft-reihe--rail {
  grid-auto-flow: column;
  grid-auto-columns: 62vw;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-inline: -16px;
  padding-inline: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20,17,15,.3) transparent;
}
.duft-reihe--rail > * { scroll-snap-align: start; }

@media (min-width: 720px) {
  .duft-reihe--rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.duft {
  display: flex;
  flex-direction: column;
  background: var(--karte);
  border-radius: var(--rund);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--schatten);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1);
}

a.duft:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(28,20,14,.6); }
a.duft:active { transform: translateY(-1px); }

.duft__bild {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f4f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.duft__bild img { width: 100%; height: 100%; object-fit: contain; }

.duft__bild--leer span {
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  color: var(--tinte-leise);
  letter-spacing: .02em;
}

/* Rabattcode als Banderole -- wie im Referenzbild die Preisfahne. */
.duft__code {
  position: absolute;
  top: 10px;
  left: -2px;
  padding: 5px 12px 5px 10px;
  background: var(--gold);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 6px 14px -8px rgba(192, 138, 46, .9);
}

.duft__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
  flex: 1;
}

.duft__marke {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinte-leise);
}

.duft__name {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
}

.duft__art {
  margin: 0;
  font-size: .78rem;
  color: rgba(20, 17, 15, .55);
}

.duft__aktion {
  margin-top: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--tinte);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}

.duft--ohne-shop .duft__aktion {
  background: transparent;
  color: var(--tinte-leise);
  padding-left: 0;
}

/* ---------- Suchergebnis ---------- */

.ergebnis { margin-bottom: 40px; }

.such-zahl {
  margin: 0 0 14px;
  font-size: .9rem;
  color: rgba(20, 17, 15, .68);
}

.duft-reihe--gross { margin-bottom: 10px; }

/* ---------- Fuss ---------- */

.fuss {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 17, 15, .18);
  font-size: .8rem;
  color: rgba(20, 17, 15, .62);
}
.fuss p { margin: 0 0 8px; max-width: 62ch; }
.fuss__impressum { font-weight: 600; }

.leer {
  padding: 60px 0;
  text-align: center;
  color: rgba(20, 17, 15, .7);
}

.admin-knopf {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 17, 15, .25);
  font-size: .78rem;
  text-decoration: none;
  color: var(--tinte-leise);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Ersatz-Vorschaubild: Flakon statt Videobild (wenn kein Link zum Beitrag
   hinterlegt ist). Contain statt cover, damit der Flakon nicht angeschnitten
   wird, und ein heller Grund, weil Shop-Freisteller auf Weiss stehen. */
.beitrag__bild--flakon { background: #f4f0ec; }
.beitrag__bild--flakon img { object-fit: contain; padding: 10px; }

/* ---------- Heldenbild ----------
   Die Referenz lebt von einem grossen Portrait, ueber dem die Wortmarke und
   die Zeile stehen. Liegt bilder/held.jpg vor, wird der Kopf zu dieser
   Bildkarte; fehlt sie, bleibt der schlichte Textkopf (siehe seite.js).
   16:10 am Handy, damit unter dem Bild noch Suche sichtbar ist. */
.held {
  position: relative;
  margin: 0 0 4px;
  border-radius: var(--rund-gross);
  overflow: hidden;
  box-shadow: var(--schatten);
  aspect-ratio: 1120 / 1160;
}
@media (min-width: 720px) { .held { aspect-ratio: 16 / 9; } }

.held picture { display: block; width: 100%; height: 100%; }
.held img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Am Handy steht die Schrift OBEN, im leeren Raum des Spiegels (Leni
   23.09.2026: "da haben wir richtig schoen Platz"). Unten sitzt Leni
   selbst, dort waere sie im Weg. */
.held figcaption {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 26px 22px 80px;
  background: linear-gradient(to bottom, rgba(18,13,10,.62) 0%, rgba(18,13,10,.28) 60%, rgba(18,13,10,0) 100%);
  color: #fff;
}

.held h1 {
  margin: 0;
  font-size: clamp(1.9rem, 7.5vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.wortmarke--auf-bild { color: rgba(255,255,255,.82); margin-bottom: 10px; }

/* Mit Bild braucht der Textkopf nur noch die erklärende Zeile. */
.kopf--knapp { padding-top: 14px; padding-bottom: 6px; }
.kopf--knapp .wortmarke, .kopf--knapp h1 { display: none; }

/* Am Rechner steht Leni links im Bild -- die Schrift geht deshalb nach
   rechts in die freie Fläche, statt ihr über den Pullover zu laufen. */
@media (min-width: 720px) {
  /* Die Schrift steht links ueber dem schwarzen Klavier (Leni 23.09.2026):
     dunkler Grund, weisse Schrift -- dort liest sie sich am besten, und
     Leni bleibt frei. Der Verlauf laeuft entsprechend nach rechts aus. */
  .held figcaption {
    inset: 0 auto 0 0;
    width: min(50%, 540px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 36px 40px;
    background: linear-gradient(to right, rgba(14,10,8,.76) 0%, rgba(14,10,8,.45) 58%, rgba(14,10,8,0) 100%);
  }
}

/* Am Rechner darf das Bild nicht den halben Bildschirm fressen: Leni soll
   das Suchfeld ohne Scrollen sehen (23.09.2026). Statt eines festen
   Seitenverhaeltnisses bekommt die Bildkarte hier eine Hoehe, die sich am
   Fenster orientiert; der Ausschnitt wandert dabei etwas nach oben, damit
   Kopf und Haende im Bild bleiben. */
@media (min-width: 720px) {
  /* Das Querformat ist bereits flach zugeschnitten (mit Luft ueber dem
     Kopf). Deshalb hier GENAU dessen Seitenverhaeltnis verwenden statt
     einer festen Hoehe -- dann schneidet der Browser nichts mehr nach und
     Lenis Kopf bleibt im Bild (23.09.2026). */
  .held {
    aspect-ratio: 1748 / 708;
    height: auto;
    max-height: 62vh;
  }
  .held img { object-position: 50% 50%; }
  /* Mit Bild sagt der Kopf schon alles -- die erklaerende Zeile darunter
     wiederholte sich nur und schob das Suchfeld unter die Bildschirmmitte.
     Am Handy bleibt sie, dort ist Platz. */
  .kopf--knapp { display: none; }
  .suchfeld { margin-top: 18px; }
}

/* Fahne der Bearbeitungsansicht: klein unten rechts, nur sichtbar, wenn
   die Ansicht per #admin eingeschaltet wurde. Normale Besucher sehen sie
   nie, weil sie erst per JavaScript eingehaengt wird. */
.admin-fahne {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--tinte);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--schatten);
  opacity: .92;
}
.admin-fahne:hover { opacity: 1; }

.admin-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-knopf--weg {
  border-color: rgba(20, 17, 15, .45);
  background: #fff;
  color: var(--tinte);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-knopf--weg:disabled { opacity: .6; cursor: default; }
.beitrag--entfernt { opacity: 0; transform: scale(.97); transition: opacity .35s ease, transform .35s ease; }

.fuss__impressum a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fuss__impressum a:hover { color: var(--tinte); }

/* Hochkant-Vorschaubilder (TikTok): Ausschnitt nach oben ruecken, dort
   stehen Gesicht und Titel des Clips. */
.beitrag__bild--hoch img { object-position: 50% 32%; }

/* Aufgeklappte Kachel: Das Bild darf nicht ueber seine eigene Aufloesung
   hinaus wachsen, sonst wird es matschig (Leni 23.09.2026). Deshalb eine
   Hoehenbegrenzung -- die Kachel bleibt breit, das Bild bleibt scharf. */
.beitrag--offen .beitrag__bild {
  max-height: min(46vh, 420px);
}
.beitrag--offen .beitrag__bild img { object-position: 50% 40%; }
