/* ============================================================
   Valora Roleplay – Feinschliff: Atmosphäre, Hero-Details, Hover-Zustände
   (wird nach allen anderen Stylesheets geladen)
   ============================================================ */

/* ---------- Global ---------- */
html { scrollbar-color: #2a2a2f var(--bg); scrollbar-width: thin; }

/* feines Filmkorn über der ganzen Seite */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typografie: ausgewogene Umbrüche */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.section-head h2 { letter-spacing: -0.035em; }

/* Karten: von oben beleuchtete Kante */
.card {
  border-color: rgba(255, 255, 255, 0.06);
  border-top-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}

/* Hero-Bild: doppelter Rahmen wie ein Display-Bezel */
.media-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 10px rgba(255, 255, 255, 0.025),
    0 0 0 11px rgba(255, 255, 255, 0.06),
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 30px 90px -30px rgba(255, 140, 100, 0.25);
}

/* Header: leuchtende Haarlinie statt flacher Kante */
.site-header.scrolled { border-bottom-color: transparent; }
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 220, 243, 0.35) 30%, rgba(255, 171, 122, 0.25) 70%, transparent);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.scrolled::after { opacity: 1; }
.nav a:hover:not(.active) { background: rgba(255, 255, 255, 0.04); }

/* Buttons */
.btn:not(.ghost):not(.discord):hover { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 16px 40px -12px rgba(190, 230, 255, 0.65), 0 0 0 4px rgba(143, 220, 243, 0.12); }
.btn.discord:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 40px -14px rgba(88, 101, 242, 0.9), 0 0 0 4px rgba(88, 101, 242, 0.18); }

/* ---------- Hero: Hintergrund ---------- */
.hero-bg {
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* weicher Lichtkegel von oben */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 38% 55% at 30% -8%, rgba(190, 230, 255, 0.13), transparent 70%),
    conic-gradient(from 180deg at 30% -10%, transparent 160deg, rgba(160, 215, 255, 0.06) 175deg, transparent 190deg);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--bg));
}
.hero-bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: drift 20s ease-in-out infinite alternate;
}
.hero-bg i:nth-child(1) { width: 620px; height: 380px; left: -12%; top: 10%; background: rgba(70, 150, 255, 0.28); }
.hero-bg i:nth-child(2) { width: 520px; height: 520px; right: 2%; top: 18%; background: rgba(255, 130, 90, 0.2); animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* Titel mit langsamem Schimmer */
.hero h1 .grad {
  background-image: linear-gradient(100deg, #ffffff 0%, #cfeefb 25%, #8fd6f0 50%, #cfeefb 75%, #ffffff 100%);
  background-size: 200% 100%;
  animation: shimmer 9s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }

/* ---------- Hero: schwebende Info-Karten ---------- */
.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 11px;
  border-radius: 16px;
  background: rgba(14, 14, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: bob 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.25; }
.float-chip small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.fc-ico {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(143, 220, 243, 0.12);
  color: var(--cyan);
}
.fc-ico.warm { background: rgba(255, 171, 122, 0.12); color: var(--coral); }
.fc-ico svg { width: 18px; height: 18px; }
.fc-1 { top: 13%; left: -64px; }
.fc-2 { bottom: 25%; right: -40px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Statistik-Leiste ---------- */
.stats {
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(143, 220, 243, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}
.stats::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 60%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(143, 220, 243, 0.6), transparent);
}
.stat b {
  background: linear-gradient(180deg, #ffffff 35%, #a9dcef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ticker ---------- */
.ticker-track span { transition: color .2s; }
.ticker-track span:hover { color: var(--text); }
.ticker-track span::after { width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg); background: var(--cyan); opacity: 0.5; }

/* ---------- Timeline ---------- */
.timeline::before, .timeline::after { background: linear-gradient(90deg, rgba(143, 220, 243, 0.7), rgba(255, 255, 255, 0.08)); }
.tl-num { transition: background .25s, color .25s, box-shadow .25s, border-color .25s; }
.tl-step:hover .tl-num {
  color: #061018;
  background: linear-gradient(180deg, #ffffff, #cfeefb);
  border-color: transparent;
  box-shadow: 0 0 26px -4px rgba(143, 220, 243, 0.65);
}
.tl-step .icon { transition: color .25s, transform .25s; }
.tl-step:hover .icon { color: var(--cyan); transform: scale(1.1); }

/* ---------- Feature-Bento ---------- */
.tile:hover { border-color: var(--border-2); }
.tile .ico {
  background: linear-gradient(180deg, rgba(143, 220, 243, 0.15), rgba(143, 220, 243, 0.03));
  border-color: rgba(143, 220, 243, 0.2);
  box-shadow: 0 10px 26px -12px rgba(143, 220, 243, 0.55);
  transition: transform .3s;
}
.tile.warm .ico {
  background: linear-gradient(180deg, rgba(255, 171, 122, 0.16), rgba(255, 171, 122, 0.03));
  border-color: rgba(255, 171, 122, 0.22);
  box-shadow: 0 10px 26px -12px rgba(255, 171, 122, 0.55);
}
.tile.green .ico {
  color: var(--teal);
  background: linear-gradient(180deg, rgba(127, 227, 207, 0.15), rgba(127, 227, 207, 0.03));
  border-color: rgba(127, 227, 207, 0.2);
  box-shadow: 0 10px 26px -12px rgba(127, 227, 207, 0.55);
}
.tile:hover .ico { transform: translateY(-2px) scale(1.06); }
.tile.warm.spot::after { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 190, 150, 0.5), transparent 60%); }
.tile.green.spot::after { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(150, 240, 220, 0.45), transparent 60%); }
.tags span { transition: border-color .25s, color .25s; }
.tile:hover .tags span { border-color: var(--border-2); color: #c4c4c9; }

/* Code-Fenster im großen Tile */
.hero-tile .code { padding: 0; overflow: hidden; white-space: normal; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9); }
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font: 600 12px var(--font-body);
  color: var(--dim);
}
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 107, 107, 0.6); }
.code-bar i:nth-child(2) { background: rgba(255, 199, 107, 0.6); }
.code-bar i:nth-child(3) { background: rgba(74, 222, 128, 0.6); }
.code-bar span { margin-left: 8px; }
.code-body { padding: 16px 18px; overflow-x: auto; white-space: nowrap; }
.caret {
  display: inline-block;
  width: 8px; height: 1.15em;
  margin-left: 3px;
  vertical-align: -3px;
  border-radius: 1px;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Mehr entdecken ---------- */
.explore-card {
  --tint: 143, 220, 243;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(var(--tint), 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}
.explore-card:nth-child(2) { --tint: 255, 171, 122; }
.explore-card:nth-child(3) { --tint: 127, 227, 207; }
.explore-link svg {
  width: 30px; height: 30px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid rgba(143, 220, 243, 0.3);
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.explore-card:hover .explore-link svg { background: var(--cyan); border-color: var(--cyan); color: #061018; }

/* ---------- FAQ: weich aufklappen ---------- */
.accordion details { interpolate-size: allow-keywords; transition: border-color .2s, background .3s; }
.accordion details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .35s cubic-bezier(.2, .7, .2, 1), content-visibility .35s allow-discrete;
}
.accordion details[open]::details-content { block-size: auto; }
.accordion details[open] {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(143, 220, 243, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}
.accordion summary { transition: color .15s; }
.accordion summary:hover { color: #fff; }
.accordion summary::after { transition: transform .25s, background .25s, color .25s; }
.accordion details[open] summary::after { background: var(--cyan); color: #061018; }

/* ---------- CTA ---------- */
.cta { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 120px -50px rgba(70, 150, 255, 0.45); }
.cta-logo {
  position: relative;
  width: 150px;
  height: auto;
  margin: -36px auto 6px;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 34px rgba(60, 140, 255, 0.45));
  animation: bob 7s ease-in-out infinite;
}

/* ---------- Footer-Wortmarke ---------- */
.site-footer { overflow: hidden; padding-bottom: 0; }
.footer-mark {
  margin: 34px 0 -0.2em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(72px, 21vw, 270px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .fc-1 { left: -28px; }
  .fc-2 { right: -20px; }
}
@media (max-width: 560px) {
  .float-chip { display: none; }
  .hero-bg i { filter: blur(70px); }
  .hero-bg i:nth-child(1) { width: 340px; height: 300px; }
  .hero-bg i:nth-child(2) { width: 300px; height: 300px; top: 45%; }
  .cta-logo { width: 120px; margin-top: -20px; }
}
