/* ============= Venty Roleplay — Static ============= */
@font-face {
  font-family: "Arame";
  src: url("/fonts/Arame-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius: 0.375rem;
  --brand: oklch(0.601 0.213 12.5);       /* #E32F4F */
  --brand-deep: oklch(0.383 0.145 12.9);  /* #7D1A2B */
  --background: oklch(0.14 0.014 15);
  --foreground: oklch(0.97 0.005 15);
  --ink: oklch(0.97 0.005 15);
  --ink-muted: oklch(0.68 0.018 15);
  --line: oklch(0.32 0.04 15 / 55%);
  --gradient-brand: linear-gradient(180deg, oklch(0.601 0.213 12.5), oklch(0.383 0.145 12.9));
  --glow-brand: 0 0 40px -6px oklch(0.601 0.213 12.5 / 55%);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { border-color: var(--line); }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Arame", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; padding: 0; }

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

.font-display { font-family: "Arame", system-ui, sans-serif; }
.font-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.text-brand { color: var(--brand); }
.text-ink { color: var(--ink); }
.text-ink-muted { color: var(--ink-muted); }
.text-brand-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============= Layout helpers ============= */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; } .gap-14 { gap: 3.5rem; }
.grid { display: grid; }
.sm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lg-rules { grid-template-columns: 260px 1fr; }
.hidden { display: none; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) + 2px); }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-line { border-color: var(--line); }
.border-brand { border-color: var(--brand); }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide { letter-spacing: 0.04em; }
.tracking-wider { letter-spacing: 0.08em; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 2.75rem; }
.text-6xl { font-size: 3.5rem; }
.text-7xl { font-size: 4.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-relaxed { line-height: 1.625; }
.mt-1 { margin-top: 0.25rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mb-7 { margin-bottom: 1.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-7 { padding: 1.75rem; } .p-8 { padding: 2rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-3 { padding-right: 0.75rem; }
.pb-7 { padding-bottom: 1.75rem; } .pb-16 { padding-bottom: 4rem; } .pb-20 { padding-bottom: 5rem; } .pb-28 { padding-bottom: 7rem; }
.pt-32 { padding-top: 8rem; } .pt-40 { padding-top: 10rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* ============= Components ============= */
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius);
  background: var(--gradient-brand);
  color: #fff;
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: var(--glow-brand);
  transition: transform 0.4s var(--ease-spring), filter 0.3s ease;
  border: none;
}
.btn-brand:hover { transform: translateY(-2px); filter: brightness(1.1); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: oklch(1 0 0 / 3%);
  color: var(--ink);
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-spring);
}
.btn-ghost:hover { border-color: var(--brand); background: oklch(0.601 0.213 12.5 / 12%); transform: translateY(-2px); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, oklch(1 0 0 / 4%), oklch(1 0 0 / 1%));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bg-grid {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.fade-radial { background: radial-gradient(ellipse at center, transparent 8%, var(--background) 78%); }
.fade-radial-10 { background: radial-gradient(ellipse at center, transparent 10%, var(--background) 75%); }

.fade-banner { background: linear-gradient(to top, var(--background) 10%, oklch(0.14 0.014 15 / 40%) 60%, transparent 100%); }

/* ============= Nav ============= */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 40; display: flex; justify-content: center; padding-inline: 1rem; }
.site-nav { pointer-events: auto; margin-top: 1.25rem; display: flex; width: 100%; max-width: 64rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem 0.75rem 0.625rem 1.25rem; }
.site-nav .brand-link { display: flex; flex-shrink: 0; align-items: center; gap: 0.625rem; }
.site-nav .logo { height: 2.25rem; width: 2.25rem; }
.site-nav .links-desktop { display: none; align-items: center; gap: 0.25rem; }
.site-nav .nav-link { border-radius: var(--radius); padding: 0.5rem 1rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); transition: color 0.3s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.site-nav .nav-cta { display: none; }
.site-nav .menu-btn { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); transition: border-color 0.3s; background: transparent; }
.site-nav .menu-btn:hover { border-color: var(--brand); }

.mobile-menu { pointer-events: none; position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: oklch(0.14 0.014 15 / 95%); backdrop-filter: blur(20px); opacity: 0; transition: opacity 0.5s; }
.mobile-menu.open { pointer-events: auto; opacity: 1; }
.mobile-menu a { font-size: 2.5rem; text-transform: uppercase; letter-spacing: -0.02em; color: var(--ink); }

@media (min-width: 768px) {
  .site-nav .links-desktop { display: flex; }
  .site-nav .nav-cta { display: inline-flex; }
  .site-nav .menu-btn { display: none; }
  .sm-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-rules { grid-template-columns: 260px 1fr; }
  .lg-sticky { position: sticky; top: 7rem; align-self: start; }
}
@media (min-width: 640px) {
  .sm-hero { font-size: 4.5rem !important; }
  .sm-text-5xl { font-size: 3rem !important; }
}

.h-9 { height: 2.25rem; } .w-9 { width: 2.25rem; }
.h-10 { height: 2.5rem; } .w-10 { width: 2.5rem; }
.h-5 { height: 1.25rem; } .w-5 { width: 1.25rem; }
.h-4 { height: 1rem; } .w-4 { width: 1rem; }
.h-24 { height: 6rem; } .w-24 { width: 6rem; }
.h-28 { height: 7rem; }
.h-1 { height: 0.25rem; } .w-10 { width: 2.5rem; }
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-lg { border-radius: calc(var(--radius) + 2px); }
.-mt-12 { margin-top: -3rem; }
.border-4 { border-width: 4px; }
.border-background { border-color: var(--background); }
.object-cover { object-fit: cover; }
.shadow-glow { box-shadow: 0 0 24px -6px var(--brand); }
.bg-white-5 { background: oklch(1 0 0 / 5%); }
.border-white-10 { border-color: oklch(1 0 0 / 10%); }
.scroll-mt-32 { scroll-margin-top: 8rem; }
.cursor-pointer { cursor: pointer; }
.opacity-60 { opacity: 0.6; }
.tracking-04em { letter-spacing: 0.4em; }
.tracking-02em { letter-spacing: 0.2em; }
.bg-brand-15 { background: oklch(0.601 0.213 12.5 / 15%); }

.transition-colors { transition: color 0.3s, border-color 0.3s, background 0.3s; }
.transition-opacity { transition: opacity 0.3s; }
.hover-border-brand:hover { border-color: var(--brand); }
.hover-opacity-70:hover { opacity: 0.7; }

/* Regelwerk: scroll-spy + collapsible categories */
.cat-toggle {
  display: flex; width: 100%; align-items: center; gap: 0.75rem;
  border-radius: var(--radius); padding: 0.5rem 0.75rem;
  font-size: 0.875rem; text-transform: none; letter-spacing: 0;
  color: var(--ink-muted); background: transparent; border: none;
  transition: color 0.25s, background 0.25s;
}
.cat-toggle:hover, .cat-toggle.active { color: var(--brand); background: oklch(0.601 0.213 12.5 / 8%); }
.cat-toggle .cat-num { font-family: "Arame", system-ui, sans-serif; font-size: 0.75rem; color: var(--brand); flex-shrink: 0; }
.cat-toggle .cat-label {
  flex: 1; text-align: left; line-height: 1.25;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden;
}
.cat-toggle { align-items: flex-start; padding-top: 0.625rem; padding-bottom: 0.625rem; }
.cat-toggle .cat-count { font-size: 0.6875rem; color: var(--ink-muted); opacity: 0.6; }
.cat-toggle .chevron { width: 0.875rem; height: 0.875rem; flex-shrink: 0; color: var(--ink-muted); transition: transform 0.3s var(--ease-spring), color 0.25s; }
.cat-toggle.collapsed .chevron { transform: rotate(-90deg); }
.cat-toggle.active .chevron { color: var(--brand); }

.cat-rules { overflow: hidden; transition: max-height 0.45s var(--ease-spring), opacity 0.3s ease, margin 0.3s ease; }
.cat-section[data-collapsed="true"] .cat-rules { max-height: 0 !important; opacity: 0; margin-top: 0 !important; }

.para-link {
  display: inline-flex; align-items: center; text-decoration: none;
  transition: filter 0.2s;
}
.para-link:hover { filter: brightness(1.25); }
.para-badge {
  font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--brand);
  background: oklch(0.601 0.213 12.5 / 15%);
  border-radius: var(--radius); padding: 0.25rem 0.625rem;
}
.para-badge.flash { animation: para-flash 1.6s ease; }
@keyframes para-flash {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.601 0.213 12.5 / 0); }
  30% { box-shadow: 0 0 0 4px oklch(0.601 0.213 12.5 / 35%); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-rules, .cat-toggle .chevron, .para-badge { transition: none !important; animation: none !important; }
}

/* rule search input */
.rule-search { width: 100%; border-radius: 0.5rem; border: 1px solid oklch(1 0 0 / 10%); background: oklch(1 0 0 / 5%); padding: 0.625rem 0.75rem 0.625rem 2.25rem; font-size: 0.875rem; color: var(--foreground); outline: none; font-family: ui-monospace, monospace; }
.rule-search::placeholder { color: var(--ink-muted); }
.rule-search:focus { border-color: oklch(0.601 0.213 12.5 / 60%); }
.search-wrap { position: relative; }
.search-icon { pointer-events: none; position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); height: 1rem; width: 1rem; color: var(--ink-muted); }

.copy-panel code { font-family: ui-monospace, monospace; }

/* footer + misc */
.lg-footer-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .lg-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.hover-text-brand:hover { color: var(--brand); }
.bg-white-5 { background: oklch(1 0 0 / 5%); }
.text-white { color: #fff; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-h-screen { min-height: 100vh; }
.leading-095 { line-height: 0.95; }
.z-10 { z-index: 10; }
.block { display: block; }
.pt-32 { padding-top: 8rem; }

/* ============= Team: Animationen & Copy ============= */
#teamRoot article.panel {
  transition: transform 0.45s var(--ease-spring), border-color 0.3s ease, box-shadow 0.45s ease;
  animation: team-fade-up 0.7s var(--ease-spring) both;
}
#teamRoot article.panel:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px -18px oklch(0.601 0.213 12.5 / 55%);
}
@keyframes team-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Skeleton-Puls für Fallback-Initialen vor dem Live-Laden */
#teamRoot article.panel.loading .font-display,
#teamRoot article.panel.loading .text-brand,
#teamRoot article.panel.loading .font-mono {
  color: oklch(0.5 0.02 15);
  animation: skel-pulse 1.4s ease-in-out infinite;
}
#teamRoot article.panel.loading .flex.h-24 {
  animation: skel-pulse 1.4s ease-in-out infinite;
}
@keyframes skel-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
/* Kopierbarer Username-Handle */
.copy-handle {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem; color: var(--ink-muted);
  background: transparent; border: 1px solid transparent; border-radius: 9999px;
  padding: 0.25rem 0.625rem; cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.copy-handle:hover { color: var(--brand); border-color: oklch(0.601 0.213 12.5 / 40%); background: oklch(0.601 0.213 12.5 / 8%); }
.copy-handle.copied { color: var(--brand); border-color: var(--brand); }
.copy-handle .copy-ic { width: 0.875rem; height: 0.875rem; }
@media (prefers-reduced-motion: reduce) {
  #teamRoot article.panel, #teamRoot article.panel.loading .font-display,
  #teamRoot article.panel.loading .text-brand, #teamRoot article.panel.loading .font-mono,
  #teamRoot article.panel.loading .flex.h-24 { animation: none !important; transition: none !important; }
}

/* ===== Fehlende Utilities (Angleichung an die React-Version) ===== */
.leading-\[0\.95\] { line-height: 0.95; }
.max-w-xl { max-width: 36rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-10 { margin-top: 2.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.gap-2\.5 { gap: 0.625rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.border-t { border-top: 1px solid var(--line); }
.border-b { border-bottom: 1px solid var(--line); }
