/* Vollmondwerk – Startseite. Dieselbe Welt wie die persönliche Seite: Nacht, Kreide, Mondlicht, Papier. */
:root {
  --nacht: #06090F; --tiefe: #0E1626; --kreide: #EFE9DC; --silber: #B9C1CF; --mondlicht: #F4F1E6; --morgen: #23304A; --linie: rgba(239,233,220,0.14); --stumm: #6F7A90; --tinte: #1A1A1C;
  --display: 'Instrument Serif', 'Georgia', serif;
  --body: 'Manrope', 'Helvetica Neue', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --box: rgba(6, 9, 15, 0.58);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--nacht); color: var(--kreide); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--silber); text-decoration: none; transition: color 0.3s; } a:hover { color: var(--mondlicht); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.klein { color: var(--silber); text-transform: uppercase; }
.muted { color: var(--stumm); }
[hidden] { display: none !important; }

/* Kopf */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px var(--gutter); background: linear-gradient(180deg, rgba(6,9,15,0.85) 0%, rgba(6,9,15,0) 100%); }
.top-nav { display: flex; gap: 30px; text-transform: uppercase; }
.cart { text-transform: uppercase; }
.cart::after { content: " (" attr(data-cart-count) ")"; color: var(--stumm); }
.wordmark { font-family: var(--display); font-size: 28px; color: var(--kreide); --dx: 1.2em; }
.wordmark-small { font-family: var(--display); font-size: 20px; color: var(--silber); }
.o { display: inline-block; position: relative; width: 0.52em; height: 0.52em; margin: 0 0.02em; vertical-align: -0.03em; transition: transform 1.1s var(--ease); }
.o svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.o path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.wordmark.joined .o1, .wordmark:hover .o1 { transform: translate(calc(var(--dx) / 2), -1.05em); }
.wordmark.joined .o2, .wordmark:hover .o2 { transform: translate(calc(var(--dx) / -2), -1.05em); }

/* Hero mit echtem Himmel */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: end; padding: 120px var(--gutter) 40px; overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #0f1a30 0%, #070d1c 45%, var(--nacht) 100%); }
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-clouds { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s linear; }
.cloud { position: absolute; border-radius: 50%; filter: blur(34px); mix-blend-mode: screen; }
.c1 { left: -10%; top: 18%; width: 70%; height: 22%; background: radial-gradient(ellipse, rgba(150,162,186,0.55) 0%, rgba(150,162,186,0) 70%); }
.c2 { left: 35%; top: 8%; width: 60%; height: 18%; background: radial-gradient(ellipse, rgba(175,185,205,0.45) 0%, rgba(175,185,205,0) 70%); }
.c3 { left: 10%; top: 38%; width: 80%; height: 20%; background: radial-gradient(ellipse, rgba(140,152,176,0.5) 0%, rgba(140,152,176,0) 70%); }
.sky-moon { position: absolute; left: 74%; top: 30%; width: clamp(140px, 16vw, 260px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.sky-moon img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: saturate(0.85); animation: mondauf 3.6s cubic-bezier(0.16, 0.6, 0.2, 1) both; }
.moon-halo { position: absolute; inset: -80%; border-radius: 50%; background: radial-gradient(circle, rgba(244,241,230,0.28) 0%, rgba(244,241,230,0.10) 22%, rgba(244,241,230,0.03) 45%, rgba(244,241,230,0) 65%); animation: haloauf 4.2s ease-out both 0.8s; }
/* Erstes Laden: der Mond taucht wie hinter einem Dunstschleier auf, das Licht kommt nach, dann erst die Worte. */
@keyframes mondauf {
  0%   { opacity: 0; transform: translateY(10px) scale(0.965); filter: saturate(0.85) blur(10px) brightness(1.6); }
  45%  { opacity: 1; filter: saturate(0.85) blur(2px) brightness(1.25); }
  100% { opacity: 1; transform: none; filter: saturate(0.85) blur(0) brightness(1); }
}
@keyframes haloauf { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
.sky-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; }
.sky-horizon svg { width: 100%; height: 100%; display: block; }
.hero-copy { position: relative; max-width: 640px; }
.hero h1 { font-size: clamp(64px, 8vw, 128px); line-height: 0.94; letter-spacing: -0.01em; color: var(--mondlicht); margin: 22px 0 28px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--silber); max-width: 520px; }
.cta-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; background: var(--mondlicht); color: var(--nacht); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transition: transform 0.4s var(--ease), background 0.3s; }
.btn:hover { background: #fff; color: var(--nacht); transform: translateY(-2px); }
.link-line { text-transform: uppercase; border-bottom: 1px solid var(--silber); padding-bottom: 4px; }
.hero-data { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--linie); color: var(--kreide); }
.hero-data div { display: flex; flex-direction: column; gap: 5px; }
.hero-data dt { color: var(--stumm); text-transform: uppercase; font-size: 10px; letter-spacing: 0.16em; }
.hero-data dd { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.hero-data dd.koord { color: var(--stumm); font-size: 11px; }

/* Schrift: Wörter aus der Tiefe, Blöcke steigen auf */
.split .w { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(8px); }
.split.go .w, .reveal.in .split .w { animation: word 1.1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + var(--d, 0s)); }
@keyframes word { to { opacity: 1; transform: none; filter: blur(0); } }
.rise { opacity: 0; transform: translateY(18px); animation: rise 1.2s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Abschnitte */
section.bekommst, section.edition, section.nacht, section.stimme, section.fragen { padding: 110px var(--gutter); border-top: 1px solid var(--linie); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(44px, 5vw, 76px); line-height: 0.98; color: var(--mondlicht); }
.edition-satz, .ort-satz { font-size: 19px; color: var(--silber); max-width: 640px; line-height: 1.6; }
.ort-satz { font-family: var(--display); font-size: 24px; line-height: 1.4; max-width: 760px; }

/* Was du bekommst */
.bekommst-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.foto { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.foto img {
  filter: saturate(0.82) contrast(1.04) brightness(0.94);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.foto img { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%), radial-gradient(ellipse at 50% 50%, #000 60%, rgba(0,0,0,0.35) 100%); mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%), radial-gradient(ellipse at 50% 50%, #000 60%, rgba(0,0,0,0.35) 100%); }
.foto { position: relative; }
.foto img { width: 100%; height: auto; display: block; }

.foto figcaption, .karte-text { font-size: 15px; line-height: 1.6; color: var(--silber); display: flex; flex-direction: column; gap: 6px; }
.foto figcaption .mono, .karte-text .mono { color: var(--stumm); text-transform: uppercase; }
.karte-halter { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.karte-text { max-width: 420px; text-align: center; align-items: center; }

/* Die Karte: Papier mit Faserstruktur, keine Linien */
.karte {
  position: relative; color: var(--tinte); padding: 30px 32px 22px; max-width: 460px; width: 100%; transform: rotate(0.8deg);
  --zeile: 28px;
  background-color: #E6DECB;
  background-image:
    radial-gradient(ellipse at 18% 8%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(ellipse at 90% 100%, rgba(120,100,70,0.16) 0%, rgba(120,100,70,0) 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.30  0 0 0 0 0.22  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.02 0.35' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.40  0 0 0 0 0.32  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(21,26,36,0.08), inset 0 0 60px rgba(120,100,70,0.12);
}
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.karte-marke { font-family: var(--display); font-size: 18px; color: #4A4640; }
.karte-nr { color: #4A4640; } .karte-nr b { color: var(--tinte); font-weight: 500; }
.karte-titel { font-family: var(--display); font-size: 52px; line-height: 0.95; color: var(--tinte); margin-bottom: 6px; }
.karte-mineral { font-size: 13px; color: #5A554C; margin-bottom: 18px; }
.karte-satz { font-family: var(--display); font-size: 19px; line-height: 1.35; margin-bottom: 20px; }
.karte-daten { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding-top: 16px; border-top: 1px solid rgba(26,26,28,0.22); }
.karte-daten div { display: flex; flex-direction: column; gap: 2px; }
.karte-daten dt { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #6E685E; }
.karte-daten dd { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--tinte); }
.karte-fuss { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(26,26,28,0.22); color: #6E685E; font-size: 9px; }

/* Edition: jeder Stein auf seiner Karte, wie auf den Tisch gelegt */
.pkarten { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 32px; padding: 20px 0 8px; }
.pkarte { max-width: 340px; width: 100%; transform: rotate(var(--rot, 0deg)); padding: 22px 24px 18px; transition: transform 0.6s var(--ease); }
.pkarte:hover { transform: rotate(0deg) translateY(-6px); }
.pkarte-foto { position: relative; margin: 0 0 18px; aspect-ratio: 1; background: #DCD3BE; padding: 8px; box-shadow: 0 10px 24px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(26,26,28,0.08); }
.pkarte-foto img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1s var(--ease); filter: saturate(0.9) contrast(1.03); }
.pkarte-foto.geladen img { opacity: 1; }
.pkarte .karte-kopf { margin-bottom: 12px; }
.pkarte .karte-marke { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #6E685E; }
.pkarte .karte-titel { font-size: 44px; margin-bottom: 4px; }
.pkarte .karte-mineral { margin-bottom: 12px; }
.pkarte .karte-satz { font-size: 17px; line-height: 1.4; margin-bottom: 16px; min-height: 4.2em; }
.pkarte .karte-fuss { align-items: center; margin-top: 0; font-size: 11px; }
.pkarte button { font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--tinte); border: none; color: var(--kreide); height: 36px; padding: 0 16px; cursor: pointer; transition: background 0.3s, transform 0.4s var(--ease); }
.pkarte button:hover { background: #000; transform: translateY(-1px); }
.pkarte button[disabled] { opacity: 0.4; cursor: default; transform: none; }
.pkarte .karte-nr.knapp b { color: #8A4B2A; }
.note { margin-top: 40px; max-width: 640px; }

/* Schritte */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.schritte li { display: flex; flex-direction: column; gap: 12px; }
.schritte .num { color: var(--stumm); }
.schritte h3 { font-size: 30px; line-height: 1.05; color: var(--mondlicht); }
.schritte p { font-size: 15px; line-height: 1.65; color: var(--silber); }

/* Stimme */
.stimme-inner { max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.player { width: 100%; max-width: 520px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px 16px 14px; background: var(--box); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--linie); box-shadow: 0 24px 60px rgba(0,0,0,0.45); margin-top: 10px; }
.player-knopf { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(244,241,230,0.55); background: rgba(244,241,230,0.06); color: var(--mondlicht); cursor: pointer; display: grid; place-items: center; }
.player-knopf[disabled] { opacity: 0.5; cursor: default; }
.player-mitte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.player-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.player-titel { font-family: var(--display); font-size: 20px; line-height: 1; color: var(--mondlicht); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-zeit { color: var(--silber); font-variant-numeric: tabular-nums; }
.player-track { height: 38px; }
.welle { width: 100%; height: 100%; display: block; }
.zitat { font-family: var(--display); font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; color: var(--mondlicht); max-width: 760px; margin-top: 10px; }

/* Frage */
.fragen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.fragen h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--mondlicht); margin-top: 14px; }
.antwort { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.65; color: var(--silber); padding-top: 40px; max-width: 560px; }
.antwort .kern { font-family: var(--display); font-size: 30px; line-height: 1.3; color: var(--mondlicht); margin-top: 6px; }

/* Fuß */
.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 40px var(--gutter); border-top: 1px solid var(--linie); color: var(--stumm); }
.bottom nav { display: flex; gap: 28px; text-transform: uppercase; }
.bottom .quelle { width: 100%; color: #3E4A62; }

@media (max-width: 1100px) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bekommst-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .top-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schritte { grid-template-columns: 1fr; }
  .fragen { grid-template-columns: 1fr; gap: 24px; }
  .antwort { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .split .w, .rise { opacity: 1; transform: none; filter: none; animation: none; }
  .sky-moon img, .moon-halo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .o { transition: none; }
}
