/* meinelieblingsfunde.de – wird von seite.py als /style.css kopiert.
   Farben und Schrift: marke/logo-neu/kit/MARKE.md */
@font-face { font-family: Montserrat; font-weight: 900; font-style: italic; font-display: swap; src: url(/fonts/Montserrat-BlackItalic.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(/fonts/Montserrat-Medium.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(/fonts/Montserrat-Bold.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(/fonts/Montserrat-ExtraBold.woff2) format("woff2"); }

:root {
  --gold: #ffc400; --nacht: #0c0c0c;
  --bg: var(--nacht); --flaeche: #171717; --linie: #2c2c2c;
  --text: #fff; --text-2: #ececec; --leise: #b9b9b3;
  --akzent: var(--gold);                 /* Farbe fuer hervorgehobenen Text */
  --marker: transparent;                 /* Balken hinter dem gelben Titelwort (nur hell) */
  --glut: #3a2c00;
  --rand: 20px; --rund: 20px; --kopf: 64px;
  --weich: cubic-bezier(.2, .7, .2, 1);
  --feder: cubic-bezier(.5, 1.6, .4, 1);
  --l-b: 0.610em; --l-h: 0.700em; --meine-b: 3.247em; --rest-b: 7.358em; --duenn: 157; --fett: 381; --als-haken: translate(98px, -119px) rotate(45deg) scale(-1, 1);
  color-scheme: dark;
}
/* Helles Design (Schalter im Kopf). Gold ist auf Weiss zu schwach fuer Text: dort wird es zum Markerbalken. */
:root[data-thema="hell"] {
  --bg: #faf7ef; --flaeche: #fff; --linie: #e3ddcf;
  --text: #0c0c0c; --text-2: #2b2a27; --leise: #5f5b52;
  --akzent: #0c0c0c; --marker: var(--gold); --glut: #ffe9a0;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.6 Montserrat, system-ui, "Segoe UI", sans-serif; overflow-x: clip; transition: background-color .35s, color .35s; }
img { display: block; max-width: 100%; height: auto; }
a, button, summary { color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: rgba(255, 196, 0, .25); }
h1, h2, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--rand), 1160px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -80px; z-index: 9; background: var(--gold); color: #000; padding: 12px 16px; font-weight: 700; }
.sprung:focus-visible { top: 12px; }

/* Leiste und Kopf (Aufbau nach thegoodtrade.com: Hinweiszeile, Themen links, Logo mittig, Rest rechts).
   Der Kopf bleibt in beiden Designs schwarz: Gold auf Schwarz ist die Marke. */
.leiste { display: block; padding: 12px var(--rand); background: var(--gold); color: #0c0c0c; text-align: center; font-size: 14px; text-decoration: none; }
.leiste strong { text-decoration: underline; text-underline-offset: 3px; }
.leiste:hover strong { text-decoration-thickness: 2px; }
.kopf { --text: #fff; --akzent: var(--gold); position: sticky; top: 0; z-index: 5; color: #fff; background: var(--nacht); border-bottom: 1px solid #2c2c2c; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--kopf); gap: 16px; }
.nav { display: none; gap: 22px; }
/* Themen sitzen direkt am Logo und weichen mit nach links, wenn es sich zu „Meine Lieblingsfunde“ ausklappt */
.nav.links { flex: 1; justify-content: flex-end; margin-right: 12px; font-size: clamp(17px, 5vw, 21px); transition: translate .6s var(--weich); }
.wrap:has(.logo:not(.schluck, .raus):hover) .nav.links, .wrap:has(.logo.von-links) .nav.links { translate: calc(-1 * (var(--meine-b) + 1.25em)) 0; }
.nav.rechts { margin-left: 12px; }
.schalter { margin-left: auto; }
.seite-r { display: flex; align-items: center; gap: 18px; }
.nav a, .menue summary { padding: 14px 0; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 76% / 0 2px; transition: background-size .25s var(--weich); }
.nav a:hover { background-size: 100% 2px; }

/* Logo. Ruhe: „Lieblingsfunde“ mit goldenem L (das L ist ein Strich, damit es sich verformen kann).
   Maus drueber: das L kippt, wird fett, fliegt als Haken-Herz nach links und deckt „Meine“ auf.
   Klick (seite.js): der Haken saust nach rechts, verschluckt die Schrift, huepft; dann gleitet er zurueck,
   die Schrift kommt rechts aus ihm heraus und er wird wieder zum L.
   Der „Vorhang“ (::before) haengt links am Haken und verdeckt, was er ueberflogen hat. */
.logo { --links: calc(var(--meine-b) + 1.25em); --ende: calc(var(--rest-b) + var(--l-b) - .75em);
  position: relative; display: inline-flex; align-items: baseline; min-height: 44px; padding: 11px 0; font-weight: 800; font-size: clamp(17px, 5vw, 21px); line-height: 1.1; white-space: nowrap; text-decoration: none; }
.haken { position: relative; z-index: 1; flex: none; width: var(--l-b); height: var(--l-h); transition: translate .6s var(--weich); }
.haken svg { display: block; width: 100%; height: 100%; overflow: visible; }
.haken path { fill: none; stroke: var(--gold); stroke-width: var(--duenn); stroke-linecap: round; stroke-linejoin: miter; transform-box: view-box;
  transform: translate(0px, 0px) rotate(0deg) scale(1, 1); transition: transform .6s var(--weich), stroke-width .6s var(--weich); }
/* In Ruhe liegt das echte L der Schrift in Gold ueber dem Strich, damit es genau zum Rest passt */
.l-gold, .l-weiss { position: absolute; left: 0; z-index: 2; }
.l-gold { color: var(--gold); transition: opacity 0s .58s; }
.l-weiss { opacity: 0; }
.meine { position: absolute; right: calc(100% + .3em); clip-path: inset(-.2em 0 -.2em 100%); transition: clip-path .6s var(--weich); }
.rest { transition: translate .6s var(--weich); }
@media (hover: hover) {
  .logo:not(.schluck, .raus):hover .haken { translate: calc(-1 * var(--links)) 0; }
  .logo:not(.schluck, .raus):hover path { transform: var(--als-haken); stroke-width: var(--fett); }
  .logo:not(.schluck, .raus):hover .meine { clip-path: inset(-.2em 0); }
  .logo:not(.schluck, .raus):hover .l-gold { opacity: 0; transition-delay: 0s; }
  .logo:not(.schluck, .raus):hover .l-weiss { opacity: 1; transition: opacity .2s .3s; }
}
:is(.logo.schluck, .logo.raus, .lf-raus .logo) :is(.meine, .l-gold, .l-weiss) { visibility: hidden; }
/* der Vorhang darf nur zwischen Startpunkt und Haken decken, nie ueber dem Menue daneben */
:is(.logo.schluck, .logo.raus, .lf-raus .logo) { clip-path: inset(-1.4em -1.2em -1.4em calc(var(--von, 0em) - .7em)); }
:is(.logo.schluck, .logo.raus, .lf-raus .logo) .haken::before { content: ""; position: absolute; z-index: -1; right: 0; top: -.9em; bottom: -.9em; transition: none; width: calc(var(--links) + var(--ende) + 2em); background: var(--nacht); }
.logo.schluck path { transform: var(--als-haken); stroke-width: var(--fett); transition: none; }
.logo.schluck .haken::before { right: -.5em; }  /* beim Verschlucken bis ueber das letzte „e“ */
.logo.schluck .haken { animation: lf-schluck .8s linear both; }
.logo.schluck .haken svg { animation: lf-hops .8s linear both; }
/* Flug (waagrecht) und Huepfer (senkrecht) getrennt: der Vorhang haengt am Flug und huepft deshalb nicht mit */
@keyframes lf-schluck {
  0%, 10% { translate: var(--von, 0em) 0; }
  55%, 100% { translate: var(--ende) 0; }
}
@keyframes lf-hops {
  0% { translate: 0 0; scale: 1; }
  10% { translate: 0 0; scale: .8 1.15; }                          /* kurz ausholen */
  55% { translate: 0 0; scale: 1.1 .92; animation-timing-function: cubic-bezier(.2, .8, .4, 1); }
  72% { translate: 0 -.75em; scale: .95 1.08; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  84% { translate: 0 0; scale: 1.25 .7; }                           /* Landung: gestaucht */
  93% { translate: 0 -.12em; scale: .96 1.05; }
  100% { translate: 0 0; scale: 1; }
}
}
:is(.logo.raus, .lf-raus .logo) .haken { animation: lf-raus 1.3s cubic-bezier(.45, 0, .15, 1) both; }
:is(.logo.raus, .lf-raus .logo) path { animation: lf-form 1.3s both; }
:is(.logo.raus, .lf-raus .logo) .rest { animation: lf-text 1.3s cubic-bezier(.45, 0, .15, 1) both; }
@keyframes lf-raus { from { translate: var(--ende) 0; } to { translate: 0 0; } }
@keyframes lf-text { from { translate: -.5em 0; } to { translate: 0 0; } }
@keyframes lf-form {
  0%, 62% { transform: var(--als-haken); stroke-width: var(--fett); animation-timing-function: var(--weich); }
  100% { transform: translate(0px, 0px) rotate(0deg) scale(1, 1); stroke-width: var(--duenn); }
}

/* Hell/Dunkel-Schalter: Mond wird zur Sonne, der Knauf federt hinueber */
.schalter { flex: none; width: 56px; height: 44px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.bahn { position: relative; display: block; height: 30px; border-radius: 99px; background: #262626; box-shadow: inset 0 0 0 1px #3d3d3d; transition: background-color .35s, box-shadow .35s; }
.bahn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: opacity .3s, translate .45s var(--weich);
  background: radial-gradient(circle 1.5px at 38px 10px, #fff 99%, transparent), radial-gradient(circle 1px at 46px 18px, #fff 99%, transparent), radial-gradient(circle 1px at 33px 21px, #fff 99%, transparent); }
.knauf { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--gold); transition: translate .5s var(--feder), rotate .5s var(--weich), scale .2s; }
.knauf::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #262626; translate: 34% -24%; transition: translate .45s var(--weich); }
.schalter:hover .knauf { scale: 1.1; }
.schalter:active .knauf { scale: .92; }
[data-thema="hell"] .bahn { background: #fff3c4; box-shadow: inset 0 0 0 1px #e8c95a; }
[data-thema="hell"] .bahn::before { opacity: 0; translate: -10px 0; }
[data-thema="hell"] .knauf { translate: 26px 0; rotate: 180deg; }
[data-thema="hell"] .knauf::after { translate: 110% -90%; }

.menue { position: relative; }
.menue summary { cursor: pointer; list-style: none; background: none; }
.menue summary::-webkit-details-marker { display: none; }
.menue summary::after { content: " +"; color: var(--gold); }
.menue[open] summary::after { content: " –"; }
.menue nav { position: absolute; right: calc(-1 * var(--rand)); top: 100%; width: 100vw; padding: 8px var(--rand) 20px; background: var(--nacht); border-bottom: 1px solid #2c2c2c; overscroll-behavior: contain; }
.menue nav a { display: block; padding: 13px 0; font-weight: 700; text-decoration: none; border-bottom: 1px solid #2c2c2c; }

/* Held. Ueber dem Foto gelten immer die dunklen Farben. */
.held { min-height: min(82svh, 720px); display: flex; align-items: flex-end; padding: 80px 0 48px; background: var(--nacht) center / cover no-repeat; }
.held:not(.start) { --text: #fff; --text-2: #ececec; --leise: #b9b9b3; --akzent: var(--gold); --marker: transparent; color: #fff; }
.held .wrap > * { animation: rein .7s var(--weich) both; }
.held .wrap > :nth-child(2) { animation-delay: .08s; }
.held .wrap > :nth-child(3) { animation-delay: .16s; }
.held .wrap > :nth-child(4) { animation-delay: .24s; }
@keyframes rein { from { opacity: 0; transform: translateY(18px); } }
.dach { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); margin-bottom: 14px; }
/* --z = Buchstaben des laengsten Worts (setzt seite.py): die Zeile passt immer in die Breite, statt mitten im Wort zu brechen */
h1 { font: italic 900 clamp(1.4rem, min(10.5vw, calc((100vw - 2 * var(--rand)) / (var(--z, 9) * .8))), 6.2rem)/.92 Montserrat, system-ui, sans-serif; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.held:not(.start) :is(h1, .dach) { text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
h1 sup { font-size: .42em; vertical-align: .95em; line-height: 0; margin-left: .04em; }
h1 em { display: block; width: fit-content; color: var(--akzent); font-style: inherit; background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 62% / 100% 46%; }
.lead { max-width: 56ch; margin-top: 22px; font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--text-2); text-wrap: pretty; }
.stand { margin-top: 12px; font-size: 14px; color: var(--leise); }

/* Startseite: mittig wie flodesk.com, darunter das Laufband */
.held.start { display: block; min-height: 0; padding: 72px 0 0; text-align: center; background: radial-gradient(70% 90% at 50% 0, var(--glut), var(--bg) 70%); transition: none; }
.held.start :is(.lead, h1 em) { margin-inline: auto; }
.held.start h1 em { padding-inline: .12em; }
.held.start .knopf { display: inline-flex; margin-top: 30px; }
.band { margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.spur { display: flex; gap: 16px; width: max-content; animation: band 70s linear infinite; }
.spur:hover { animation-play-state: paused; }
.spur a { flex: none; width: clamp(180px, 22vw, 280px); border-radius: var(--rund); overflow: hidden; transition: transform .3s var(--weich); }
.spur a:nth-child(even) { margin-top: 28px; }
.spur a:hover { transform: translateY(-6px) rotate(-1.5deg); }
@keyframes band { to { transform: translateX(calc(-50% - 8px)); } }
.pause { display: block; min-height: 44px; margin: 18px auto 0; padding: 12px 14px; border: 0; background: none; color: var(--leise); font: 500 13px Montserrat, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pause:hover { color: var(--text); }

/* Sets */
.sets { display: grid; gap: 72px; padding-block: 56px 88px; }
.set { display: grid; gap: 22px; }
.rahmen { position: relative; display: block; overflow: hidden; border-radius: var(--rund); background: var(--flaeche); }
.rahmen img { width: 100%; transition: transform .5s var(--weich); }
.set:hover .rahmen img, .karte:hover .rahmen img { transform: scale(1.04); }
.ki { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .62); font-size: 12px; color: #e6e6e6; }
.nr { display: block; width: fit-content; padding-inline: .08em; font: italic 900 3.4rem/1 Montserrat, sans-serif; color: var(--akzent); margin-bottom: 6px; background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 70% / 100% 42%; }
.set h2 { font: italic 900 clamp(1.7rem, 6vw, 2.6rem)/1.05 Montserrat, sans-serif; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.tag { margin-top: 8px; font-size: 1.1rem; font-weight: 700; color: var(--text-2); }
.meinung { max-width: 52ch; margin-top: 12px; color: var(--text-2); text-wrap: pretty; }
.kurz { display: none; margin-top: 12px; font-variant-numeric: tabular-nums; }
.kurz strong { font-size: 1.15em; }
dl { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; border-top: 1px solid var(--linie); }
dl div { padding: 12px 0; border-bottom: 1px solid var(--linie); }
dt { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
dd { font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.knopf { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 20px; padding: 14px 32px; border-radius: 99px; background: var(--gold); color: #0c0c0c; font-weight: 700; text-decoration: none; transition: transform .15s var(--weich), background-color .15s; }
.knopf:hover { transform: translateY(-2px) scale(1.02); background-color: #ffd23d; }
.knopf:active { transform: translateY(1px) scale(.99); }

/* Einblenden beim Scrollen (wie flodesk.com), nur wo der Browser es ohne Skript kann; sonst steht alles sofort da */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .set .rahmen, .set .text, .raster li { animation: auf linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    .set .text { animation-range: entry 8% entry 55%; }
  }
}
/* wer mit der Tastatur hinspringt, sieht das Ziel sofort ganz */
.set :focus-within, .set .text:focus-within, .raster li:focus-within { animation: none; }
@keyframes auf { from { opacity: 0; transform: translateY(36px) scale(.97); } }

/* Listen-Karten */
.mehr { padding-block: 64px 88px; border-top: 1px solid var(--linie); }
#listen { border-top: 0; }
.mehr h2 { font: italic 900 clamp(1.7rem, 6vw, 2.6rem)/1.05 Montserrat, sans-serif; text-transform: uppercase; margin-bottom: 28px; }
.raster { display: grid; gap: 36px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.karte { display: block; text-decoration: none; }
.karte strong { display: block; text-wrap: balance; margin-top: 14px; font-weight: 700; font-size: 1.15rem; line-height: 1.3; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px; transition: background-size .25s var(--weich); width: fit-content; }
.karte:hover strong { background-size: 100% 2px; }
.karte span:last-child { font-size: 15px; color: var(--leise); }

/* Fuss, Rechtstexte */
.fuss { border-top: 1px solid var(--linie); padding-block: 32px 44px; padding-bottom: calc(44px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--leise); }
.fuss p { max-width: 80ch; }
.fuss nav { display: flex; gap: 28px; margin-top: 10px; }
.fuss a { display: inline-block; padding: 13px 0; }
.fuss a:hover { color: var(--text); }
.recht { max-width: 720px; padding-block: 56px 72px; overflow-wrap: anywhere; }
.recht h1 { font-size: clamp(1.9rem, 7vw, 3rem); margin-bottom: 24px; }
.recht h2 { font-size: 1.2rem; margin: 34px 0 8px; scroll-margin-top: calc(var(--kopf) + 16px); }
.recht h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.recht p, .recht ul { margin-bottom: 12px; color: var(--text-2); }
.recht ul { padding-left: 20px; list-style: disc; }
.recht a { color: var(--akzent); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.recht a:hover { text-decoration-thickness: 3px; }

/* Handy und Tablet: wer vom Pin kommt, sieht sofort das erste Set mit Preis und Knopf.
   Kopf flach, Bild 4:3, Nummer als Marke auf dem Bild, Kurzzeile statt Tabelle, Meinung unter dem Knopf. */
@media (max-width: 999px) {
  .vor { display: none; }
  .held:not(.start) { min-height: 0; padding: 22px 0 16px; }
  .held:not(.start) :is(.lead, .stand) { display: none; }
  .held:not(.start) h1 { font-size: clamp(1.4rem, min(8.4vw, calc((100vw - 2 * var(--rand)) / (var(--z, 9) * .8))), 3rem); }
  .held:not(.start) .dach { margin-bottom: 8px; }
  .sets { gap: 56px; padding-top: 16px; }
  .set { position: relative; gap: 14px; grid-template-columns: minmax(0, 1fr); }
  .set .rahmen { aspect-ratio: 4 / 3; }
  .set .rahmen img { height: 100%; object-fit: cover; }
  .set .text { display: flex; flex-direction: column; animation: none; }
  .nr { position: absolute; z-index: 1; top: 10px; left: 12px; margin: 0; font-size: 2.4rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
  [data-thema="hell"] .nr { text-shadow: none; background-size: 100% 100%; }
  .set dl { display: none; }
  .kurz { display: block; order: 1; margin-top: 8px; font-size: clamp(13px, 3.9vw, 16px); }
  .kurz strong { font-size: 1em; }
  .set .tag { margin-top: 4px; }
  .set .stand { order: 2; margin-top: 4px; }
  .set .knopf { order: 3; margin-top: 14px; }
  .meinung { order: 4; margin-top: 16px; }
}
@media (min-width: 1000px) {
  :root { --rand: 40px; --kopf: 76px; }
  .sets { gap: 120px; padding-block: 96px 128px; }
  .set { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
  .set:nth-child(even) .rahmen { order: 2; }
  .knopf { display: inline-flex; }
  .nr { font-size: 4.6rem; }
}
@media (min-width: 1240px) {
  .nav { display: flex; }
  .seite-r { flex: 1; }
  .menue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pause { display: none; }
}
