/* ═══════════ GHETTO DIAMONDS — Gold auf Schwarz ═══════════ */

@font-face {
  font-family: 'Cinzel';
  src: url('/assets/fonts/cinzel-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: 'Cinzel';
  src: url('/assets/fonts/cinzel-latin-ext.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
  font-family: 'Marker';
  src: url('/assets/fonts/permanent-marker.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vibes';
  src: url('/assets/fonts/great-vibes.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: 'Vibes';
  src: url('/assets/fonts/great-vibes-ext.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  --black: #050505;
  --black-warm: #0d0b07;
  --panel: #100e08;
  --line: #29231262;
  --gold: #e2b83e;
  --gold-hi: #ffe9a0;
  --gold-lo: #9a7a22;
  --text: #ecdfc2;
  --muted: #a3945f;
  --serif: 'Cinzel', Georgia, serif;
  --marker: 'Marker', 'Comic Sans MS', cursive;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); }
h2, h3 { line-height: 1.25; }
section { padding: 90px 24px; max-width: 980px; margin: 0 auto; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: .12em;
  text-align: center;
  margin-bottom: 14px;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(226, 184, 62, .35));
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: .95rem; }

/* ─── Royaler Hintergrund: Marmor + Krone + Flügel + Goldfluss ─── */
.bg-royal { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-royal::before {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/textures/gold-marble.jpg') center / cover no-repeat;
  opacity: .52;
}
.bg-royal svg { position: absolute; stroke: var(--gold); fill: none; }
.bg-royal path { stroke-linecap: round; stroke-linejoin: round; }
.bg-crown path { stroke-width: 2; }
.bg-flow {
  inset: 0; width: 100%; height: 100%;
  opacity: .17;
  filter: drop-shadow(0 0 14px rgba(226, 184, 62, .55));
}
.bg-crown {
  width: min(64vw, 620px); left: 50%; top: -4%;
  transform: translateX(-50%);
  opacity: .09;
  filter: drop-shadow(0 0 40px rgba(226, 184, 62, .5));
  animation: royalbreathe 9s ease-in-out infinite;
}
.bg-wings-img {
  position: absolute;
  width: min(115vw, 1150px); left: 50%; top: 36%;
  transform: translateX(-50%);
  mix-blend-mode: screen;   /* Schwarz des Assets verschwindet auf der Seite */
  opacity: .16;
  animation: wingsbreathe 12s ease-in-out 2s infinite;
}
@keyframes royalbreathe {
  0%, 100% { opacity: .06; }
  50% { opacity: .12; }
}
@keyframes wingsbreathe {
  0%, 100% { opacity: .12; }
  50% { opacity: .22; }
}
@media (prefers-reduced-motion: reduce) { .bg-crown, .bg-wings-img { animation: none; } }
/* Inhalt liegt über dem Royal-Layer */
body > header, body > section, body > footer, body > .pulse-divider { position: relative; z-index: 1; }

/* ─── Gold-Linien-Grundgesetz: alles ist EIN Strich ─── */
svg.draw { color: var(--gold); }
svg.draw path {
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Hauptlinie zeichnet sich selbst (nur Pfade mit pathLength="1") */
svg.draw path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
svg.draw.in-view path[pathLength] {
  animation: drawline 2.4s cubic-bezier(.5, 0, .2, 1) forwards;
}
/* Details (Augen, Mund, Schnurrhaare) faden nach der Linie ein */
svg.draw circle, svg.draw path:not([pathLength]) { opacity: 0; }
svg.draw.in-view circle, svg.draw.in-view path:not([pathLength]) {
  animation: popfade .5s ease 1.9s forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes popfade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  svg.draw path[pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  svg.draw circle, svg.draw path:not([pathLength]) { opacity: 1; animation: none !important; }
}

/* ─── Hero ─── */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px 40px; position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(226, 184, 62, .2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 108%, rgba(154, 122, 34, .12) 0%, transparent 65%);
}
.hero-wings {
  position: absolute;
  top: clamp(20px, 7vh, 70px); left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 860px);
  mix-blend-mode: screen;
  opacity: .58;
  filter: drop-shadow(0 0 60px rgba(226, 184, 62, .35));
  pointer-events: none;
}
.crown, .brand, .hero-line, .hero-sub, .hero-badge { position: relative; z-index: 1; }
.crown { width: clamp(110px, 18vw, 170px); margin-bottom: 26px; }
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4.6rem);
  letter-spacing: .18em;
  margin-left: .18em; /* optischer Ausgleich fürs letter-spacing */
  background: linear-gradient(115deg, #fff8dd 0%, var(--gold-hi) 18%, var(--gold) 38%, #fff3c0 50%, var(--gold) 62%, var(--gold-lo) 82%, var(--gold-hi) 100%);
  background-size: 240% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 32px rgba(226, 184, 62, .45)) drop-shadow(0 0 90px rgba(226, 184, 62, .2));
  animation: shimmer 5.5s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: -240% center; }
}
@media (prefers-reduced-motion: reduce) { .brand { animation: none; } }
.hero-line {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  margin-top: 26px; color: var(--text);
}
.hero-line em {
  font-style: normal; font-family: 'Vibes', cursive; font-size: 1.7em; line-height: 1;
  background: linear-gradient(115deg, #fff3c0, var(--gold-hi) 40%, var(--gold) 75%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(226, 184, 62, .5));
  padding: 0 .1em;
}
.hero-sub { color: var(--muted); margin-top: 16px; font-size: .98rem; max-width: 560px; }
.hero-badge {
  margin-top: 38px; font-family: 'Vibes', cursive; font-size: 1.45rem; color: var(--gold);
  transform: rotate(-2deg);
  text-shadow: 0 0 22px rgba(226, 184, 62, .45);
}
.hero-scroll {
  position: absolute; bottom: 26px; color: var(--gold-lo); font-size: 1.3rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ─── Pulse-Divider (Heartbeat-Linie) ─── */
.pulse-divider { max-width: 900px; margin: 0 auto; padding: 0 24px; opacity: .85; }
.pulse-divider svg { display: block; width: 100%; height: 44px; }
.pulse-divider path { stroke-width: 2.4 !important; }

/* ─── Manifest ─── */
.manifest { text-align: center; max-width: 720px; }
.diamond-svg { width: clamp(90px, 14vw, 130px); margin-bottom: 30px; }
.manifest h2 {
  font-family: var(--serif); font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  letter-spacing: .06em; color: var(--gold-hi); margin-bottom: 26px;
}
.manifest p { margin-bottom: 18px; color: var(--text); }
.manifest strong { color: var(--gold-hi); font-weight: 600; }
.manifest-kicker {
  font-family: 'Vibes', cursive; font-size: 1.5rem; color: var(--gold);
  margin-top: 14px; transform: rotate(-1.2deg);
  text-shadow: 0 0 20px rgba(226, 184, 62, .4);
}

/* ─── Säulen ─── */
.pillar-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 40px;
}
.pillar {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 14, 8, .86) 0%, rgba(13, 11, 7, .92) 100%);
  border-radius: 18px; padding: 26px 22px;
  transition: border-color .35s, transform .35s;
}
.pillar:hover { border-color: var(--gold-lo); transform: translateY(-4px); }
.pillar-num { font-family: var(--serif); color: var(--gold-lo); font-size: .85rem; letter-spacing: .3em; }
.pillar h3 {
  font-family: var(--serif); letter-spacing: .1em; color: var(--gold);
  font-size: 1.05rem; margin: 8px 0 12px;
}
.pillar p { color: var(--muted); font-size: .88rem; }

/* ─── Welten ─── */
.world-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.world {
  border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px;
  background: linear-gradient(165deg, rgba(16, 14, 8, .88) 0%, rgba(13, 11, 7, .94) 90%);
  position: relative; overflow: hidden;
  transition: border-color .35s;
}
.world::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 40% at 85% -10%, rgba(212, 175, 55, .09), transparent 60%);
}
.world:hover { border-color: var(--gold-lo); }
.world-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.world-emoji { font-size: 1.5rem; }
.world h3 { font-family: var(--serif); letter-spacing: .08em; color: var(--gold-hi); font-size: 1.15rem; flex: 1; }
.badge {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--gold-lo); color: var(--gold); border-radius: 99px; padding: 4px 11px;
}
.badge-dev { background: rgba(212, 175, 55, .1); color: var(--gold-hi); border-color: var(--gold); }
.badge-idea { border-color: var(--line); color: var(--muted); }
.world p { color: var(--muted); font-size: .92rem; }
.world strong { color: var(--text); font-weight: 600; }

/* ─── One-Liner-Familie ─── */
.family-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.character {
  border: 1px dashed var(--line); border-radius: 20px; padding: 20px 16px 16px;
  text-align: center; cursor: pointer; position: relative;
  transition: border-color .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
}
.character:hover, .character:focus-visible { border-color: var(--gold); background: rgba(212, 175, 55, .04); outline: none; }
.character svg { width: 100%; max-width: 190px; height: auto; }
.character-wide { grid-column: 1 / -1; }
.character-wide svg { max-width: 420px; }
.character figcaption { margin-top: 10px; }
.character figcaption strong {
  display: block; font-family: var(--marker); color: var(--gold); font-size: 1.02rem; letter-spacing: .04em;
}
.character figcaption span { color: var(--muted); font-size: .78rem; }
.character path { stroke-width: 2.6; }

/* Sprech-Bubble */
#speech-bubble {
  position: fixed; z-index: 90; max-width: 240px;
  background: var(--gold-hi); color: #1a1403;
  font-family: var(--marker); font-size: .92rem; line-height: 1.35;
  padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 3px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .55);
  transform: rotate(-1.5deg);
  animation: bubblein .25s ease;
  pointer-events: none;
}
@keyframes bubblein { from { opacity: 0; transform: rotate(-1.5deg) scale(.85); } }

/* Ausblick unter der Familie */
.family-soon { text-align: center; color: var(--muted); margin-top: 56px; }
.way-soon { font-family: var(--marker); color: var(--gold); display: inline-block; margin-top: 8px; transform: rotate(-1.4deg); }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line);
  text-align: center; padding: 70px 24px 46px; margin-top: 40px;
  background: radial-gradient(ellipse 70% 60% at 50% 120%, rgba(138, 109, 31, .12), transparent 65%);
}
.footer-crown { width: 54px; stroke: var(--gold-lo); margin-bottom: 14px; }
.footer-brand { font-family: var(--serif); letter-spacing: .26em; color: var(--gold); font-size: .95rem; }
.footer-sub { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.footer-tiny { color: #5c5133; font-size: .72rem; margin-top: 22px; }
.footer-os { text-decoration: none; opacity: .7; }
.footer-os:hover { opacity: 1; }

@media (max-width: 620px) {
  section { padding: 64px 20px; }
  .hero { min-height: 88vh; }
  .character-wide svg { max-width: 300px; }
}
