:root {
  --bg: #07060d;
  --bg-2: #0e0b1a;
  --surface: rgba(22, 18, 36, 0.6);
  --surface-2: rgba(30, 24, 48, 0.8);
  --border: rgba(168, 132, 255, 0.15);
  --border-bright: rgba(168, 132, 255, 0.35);
  --text: #ece8f7;
  --text-dim: #9a92b8;
  --text-mute: #6b6389;
  --amber: #f5b642;
  --amber-glow: #ffa620;
  --purple: #a855f7;
  --purple-glow: #c084fc;
  --cyan: #22d3ee;
  --red: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, .logo {
  font-family: 'Cinzel', 'Inter', serif;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

/* === Background === */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 132, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 132, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.glow-1 { top: -200px; left: -150px; width: 600px; height: 600px; background: radial-gradient(circle, #a855f7 0%, transparent 70%); }
.glow-2 { top: 40%; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, #f5b642 0%, transparent 70%); opacity: 0.3; }
.glow-3 { bottom: -300px; left: 20%; width: 800px; height: 800px; background: radial-gradient(circle, #22d3ee 0%, transparent 70%); opacity: 0.25; }

main, header, footer { position: relative; z-index: 1; }

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 13, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--amber);
}
.logo-mark {
  display: flex;
  color: var(--amber);
  filter: drop-shadow(0 0 8px rgba(245, 182, 66, 0.5));
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 17px; }

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-glow) 100%);
  color: #1a1208;
  box-shadow: 0 0 0 1px rgba(255, 200, 100, 0.4), 0 8px 24px rgba(245, 182, 66, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 200, 100, 0.6), 0 12px 32px rgba(245, 182, 66, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--purple-glow);
}

/* === Hero === */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 120px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: stretch;
}

/* Hero background slider (dezent, nur im Hero-Bereich) */
.hero-bg {
  position: absolute;
  inset: -40px -100vw 0 -100vw;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  transform: scale(1.05);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
.hero-bg-slide.is-active {
  opacity: 0.65;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(7, 6, 13, 0.15) 0%, rgba(7, 6, 13, 0.5) 60%, rgba(7, 6, 13, 0.8) 100%),
    linear-gradient(180deg, rgba(7, 6, 13, 0.2) 0%, rgba(7, 6, 13, 0.4) 100%);
}
@keyframes heroDrift {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}

/* Ornate frame around hero text */
.ornate-frame {
  position: relative;
  padding: 48px 44px 44px;
  background: linear-gradient(180deg, rgba(7, 6, 13, 0.55), rgba(7, 6, 13, 0.78));
  border: 1px solid rgba(245, 182, 66, 0.22);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(245, 182, 66, 0.04),
    0 30px 80px -20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.ornate-corner {
  position: absolute;
  width: 56px;
  height: 56px;
  color: var(--amber);
  filter: drop-shadow(0 0 8px rgba(245, 182, 66, 0.35));
  pointer-events: none;
}
.ornate-tl { top: -14px; left: -14px; }
.ornate-tr { top: -14px; right: -14px; }
.ornate-bl { bottom: -14px; left: -14px; }
.ornate-br { bottom: -14px; right: -14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--amber) 0%, var(--purple-glow) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(245, 182, 66, 0.3));
}
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  color: var(--amber);
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
/* Sigil wants to sit centered — Buch sticks to the bottom for alignment */
.hero-visual:has(.hero-sigil:not([hidden])) {
  justify-content: center;
}

/* Variant toggle — sits directly above the panel, same width */
.hero-variant-toggle {
  position: static;
  width: min(420px, 100%);
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(7, 6, 13, 0.82);
  border: 1px solid rgba(245, 182, 66, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 182, 66, 0.12);
  z-index: 10;
}
.variant-btn {
  flex: 1;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.variant-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.variant-btn.active {
  background: linear-gradient(135deg, var(--amber), var(--amber-glow));
  color: #1a1208;
  box-shadow: 0 6px 18px rgba(245, 182, 66, 0.45);
}

/* Magic Sigil (Variant 2) */
.hero-sigil {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1;
  color: var(--amber);
}
.hero-sigil[hidden] { display: none; }
.sigil-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 182, 66, 0.18) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  animation: sigilPulse 4s ease-in-out infinite;
}
.sigil-svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(245, 182, 66, 0.4));
  z-index: 1;
}
.sigil-ring-outer {
  transform-origin: 250px 250px;
  animation: sigilRotate 60s linear infinite;
}
.sigil-ring-middle {
  transform-origin: 250px 250px;
  animation: sigilRotateReverse 40s linear infinite;
}
.sigil-inner {
  transform-origin: 250px 250px;
  animation: sigilRotateSlow 90s linear infinite;
}
.sigil-core {
  transform-origin: 250px 250px;
  animation: sigilCorePulse 3s ease-in-out infinite;
}
.sigil-classes .class-icon,
.sigil-elements .element-icon {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconPulse 4s ease-in-out infinite;
}
.sigil-classes .class-icon:nth-child(even) { animation-delay: 2s; }
.sigil-classes .class-icon:hover circle,
.sigil-elements .element-icon:hover circle {
  fill-opacity: 0.5;
}
.sigil-classes .class-icon:nth-child(3n) { animation-delay: 0.8s; }
.sigil-classes .class-icon:nth-child(4n) { animation-delay: 1.6s; }
.sigil-elements .element-icon:nth-child(odd) { animation-delay: 1.2s; }

.sigil-particles circle {
  animation: sigilParticle 3s ease-in-out infinite;
}
.sigil-particles circle:nth-child(2n) { animation-delay: 1s; }
.sigil-particles circle:nth-child(3n) { animation-delay: 2s; }

/* Class preview tooltip (shown on sigil icon hover) */
.sigil-tooltip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 220px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 18, 35, 0.98), rgba(12, 12, 22, 0.99));
  border: 1px solid rgba(245, 182, 66, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 182, 66, 0.15);
  backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.sigil-tooltip:not([hidden]) {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.sigil-tooltip[hidden] { display: none; }
.sigil-tooltip-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
  background-color: rgba(31, 41, 55, 0.6);
}
.sigil-tooltip-name {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  text-align: center;
  letter-spacing: 1px;
}

.class-icon { cursor: pointer; }
.class-icon circle { transition: fill-opacity 0.2s, stroke-width 0.2s; }
.class-icon:hover circle {
  fill-opacity: 0.4;
  stroke-width: 1.8;
}

@keyframes sigilCorePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}
@keyframes iconPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: brightness(1.3); }
}
@keyframes sigilRotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes sigilRotateReverse { from { transform: rotate(360deg); } to { transform: rotate(0); } }
@keyframes sigilRotateSlow { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes sigilPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes sigilParticle {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* Spell List (Variant Buch) */
.hero-spelllist {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(20, 18, 35, 0.9), rgba(12, 12, 22, 0.95));
  border: 1px solid rgba(245, 182, 66, 0.2);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(245, 182, 66, 0.05),
    0 40px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(168, 132, 255, 0.1);
  backdrop-filter: blur(8px);
}
.hero-spelllist[hidden] { display: none; }
.hero-spelllist::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 182, 66, 0.3), transparent 40%, transparent 60%, rgba(168, 132, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.spelllist-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(245, 182, 66, 0.15);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}
.spelllist-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: none;
}

.spelllist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.book-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 15, 30, 0.6);
  border: 1px solid rgba(var(--accent), 0.15);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent), 0.55);
  box-shadow: 0 20px 40px -15px rgba(var(--accent), 0.35);
}
.book-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px;
}
.book-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 15, 30, 0.85) 100%);
  pointer-events: none;
}
.book-card-badge {
  position: relative;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(75, 85, 99, 0.85);
  color: #e5e7eb;
  backdrop-filter: blur(4px);
}
.badge-lvl1 { background: rgba(56, 189, 248, 0.85); color: #0c4a6e; }
.badge-lvl3 { background: rgba(168, 85, 247, 0.85); color: #3b0764; }
.badge-lvl9 {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(245, 182, 66, 0.85));
  color: #450a0a;
}
.book-card-body {
  padding: 10px 12px 12px;
  flex: 1;
}
.book-card-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.2;
}
.book-card-school {
  font-size: 9px;
  color: rgba(var(--accent), 0.75);
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 5px;
}
.book-card-desc {
  font-size: 10px;
  color: var(--text-mute);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card-epic {
  grid-column: 1 / -1;
  animation: epicGlow 3s ease-in-out infinite;
}
.book-card-epic .book-card-img {
  aspect-ratio: 20 / 8;
}
@keyframes epicGlow {
  0%, 100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.3); }
}

/* Cards wrapper (variant 3) */
.hero-cards {
  position: absolute;
  inset: 0;
}
.hero-cards[hidden] { display: none; }
.spell-card {
  position: absolute;
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 132, 255, 0.18);
  border-radius: 16px;
  width: 320px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.85), 0 0 60px rgba(168, 132, 255, 0.18);
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.spell-card:hover {
  border-color: rgba(245, 182, 66, 0.5);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9), 0 0 80px rgba(245, 182, 66, 0.25);
}
.spell-card-img {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px;
  gap: 6px;
}
.spell-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 30, 0.9) 100%);
  pointer-events: none;
}
.spell-card-badge {
  position: relative;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}
.badge-cantrip {
  background: rgba(75, 85, 99, 0.85);
  color: #e5e7eb;
}
.badge-l1-purple {
  background: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.badge-l3 {
  background: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.badge-conc {
  background: rgba(127, 29, 29, 0.8);
  color: #fca5a5;
}
.spell-card-body { padding: 14px 16px 16px; }
.spell-card-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0;
}
.spell-card-school {
  font-size: 10px;
  color: rgba(168, 132, 255, 0.55);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}
.school-purple { color: rgba(168, 85, 247, 0.65); }
.school-amber { color: rgba(245, 182, 66, 0.65); }
.school-green { color: rgba(34, 197, 94, 0.7); }
.school-cyan { color: rgba(34, 211, 238, 0.7); }
.spell-card-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.spell-card-dice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--purple-glow);
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px solid rgba(168, 132, 255, 0.1);
}
.spell-card-dice strong {
  font-size: 14px;
  color: #c4b5fd;
}
.spell-card-dice span { color: var(--text-mute); font-weight: 500; }
.dice-purple { color: #d8b4fe; }
.dice-purple strong { color: #e9d5ff; }
.dice-amber { color: var(--amber-glow); }
.dice-amber strong { color: #fcd34d; }
.dice-green { color: #4ade80; }
.dice-green strong { color: #86efac; }
.dice-cyan { color: #22d3ee; }
.dice-cyan strong { color: #67e8f9; }

.spell-card { width: 290px; }
.spell-card-1 { top: -10px; right: 10px; animation-delay: 0s; }
.spell-card-2 { top: 240px; right: 90px; animation-delay: 2s; z-index: 2; }
.spell-card-3 { top: 490px; right: 10px; animation-delay: 4s; }

/* Spell Detail Modal */
.spell-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease;
}
.spell-modal[hidden] { display: none; }
.spell-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.spell-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(20, 18, 35, 0.98), rgba(12, 12, 22, 0.99));
  border: 1px solid rgba(168, 132, 255, 0.2);
  box-shadow: 0 0 80px rgba(168, 132, 255, 0.15), 0 50px 100px -20px rgba(0, 0, 0, 0.9);
  animation: modalSlideIn 0.3s ease;
}
.spell-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.85);
  border: 1px solid rgba(75, 85, 99, 0.45);
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.spell-modal-close:hover { background: rgba(55, 65, 81, 0.9); }
.spell-modal-img {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
}
.spell-modal-head { margin-bottom: 18px; }
.spell-modal-head h2 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--purple-glow);
  margin-bottom: 6px;
}
.spell-modal-head p {
  font-size: 12px;
  color: rgba(168, 132, 255, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.spell-modal-dice {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(135deg, rgba(168, 132, 255, 0.1), rgba(120, 80, 200, 0.06));
  border: 1px solid rgba(168, 132, 255, 0.2);
}
.spell-modal-dice .dice-label {
  font-size: 11px;
  color: rgba(168, 132, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.spell-modal-dice .dice-value {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--purple-glow);
  line-height: 1;
  margin-bottom: 6px;
}
.spell-modal-dice .dice-note {
  font-size: 13px;
  color: var(--text-dim);
}
.spell-modal-dice[hidden] { display: none; }
.spell-modal-desc {
  color: #d1d5db;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 18px;
}
.spell-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.spell-modal-meta > div {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(75, 85, 99, 0.3);
}
.spell-modal-meta .meta-label {
  display: block;
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
  font-weight: 600;
}
.spell-modal-meta .meta-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}
.spell-card-1 { --r: 4deg; }
.spell-card-2 { --r: -5deg; }
.spell-card-3 { --r: 3deg; }

.slot-row { display: flex; gap: 8px; }
.slot {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--amber);
  background: transparent;
  transition: all 0.25s;
}
.slot-on { background: var(--amber); box-shadow: 0 0 12px rgba(245, 182, 66, 0.6); }
.slot-purple { border-color: var(--purple); }
.slot-purple.slot-on { background: var(--purple); box-shadow: 0 0 12px rgba(168, 132, 255, 0.6); }
.slot-cyan { border-color: var(--cyan); }
.slot-cyan.slot-on { background: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }
.slot-red { border-color: var(--red); }
.slot-red.slot-on { background: var(--red); box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* === Sections === */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
/* Sprung-Ziele unterhalb der sticky Navi-Leiste stoppen lassen,
   damit beim Klick auf Menüpunkte (z. B. Unterstützen) nichts verdeckt wird */
.section,
[id] {
  scroll-margin-top: 90px;
}
/* Feinjustierung der Sprung-Position pro Menüpunkt */
#unterstuetzen { scroll-margin-top: 130px; } /* tick tiefer */
#community { scroll-margin-top: 64px; }       /* etwas höher */
#mitmachen { scroll-margin-top: 64px; }       /* etwas höher */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-dim);
}

/* Features grid */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(168, 132, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 40px -20px rgba(168, 132, 255, 0.3);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 182, 66, 0.15), rgba(168, 132, 255, 0.15));
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 20px;
  position: relative;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}
.feature p {
  color: var(--text-dim);
  font-size: 15px;
  position: relative;
}

/* Classes */
.class-grid-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.gender-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(22, 18, 36, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 132, 255, 0.35);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.gender-toggle:hover {
  border-color: rgba(168, 132, 255, 0.7);
  background: rgba(40, 32, 64, 0.9);
  transform: translateY(-1px);
}
.gender-toggle-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}
.gender-toggle-icons .gts {
  opacity: 0.6;
  font-size: 13px;
}

@media (max-width: 640px) {
  .class-grid-controls { justify-content: center; }
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1400px;
}
.class-card {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  cursor: pointer;
  background: transparent;
  border: none;
}
.class-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.class-card.is-flipped .class-card-inner {
  transform: rotateY(180deg);
}
.class-card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.class-card:hover .class-card-face {
  border-color: var(--c);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px color-mix(in srgb, var(--c) 30%, transparent);
}
.class-card:hover:not(.is-flipped) .class-card-inner {
  transform: translateY(-6px);
}
.class-card.is-flipped:hover .class-card-inner {
  transform: rotateY(180deg) translateY(-6px);
}

/* FRONT face */
.class-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.35s ease;
  filter: saturate(0.9) brightness(0.85);
}
.class-card:hover .class-card-front img {
  transform: scale(1.08);
  filter: saturate(1.15) brightness(1);
}
.class-card-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 6, 13, 0.55) 65%, rgba(7, 6, 13, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}
.class-card-front::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--c);
  box-shadow: 0 0 20px var(--c);
  z-index: 2;
}
.class-card-front figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.class-card-emoji {
  font-size: 18px;
  filter: drop-shadow(0 0 8px var(--c));
}

/* BACK face */
.class-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, rgba(22, 18, 36, 0.95), rgba(12, 12, 22, 0.98));
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  overflow: hidden;
}
.class-card-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.class-card-back::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--c);
  box-shadow: 0 0 20px var(--c);
}
.class-card-back-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--c);
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 40%, transparent));
  flex-shrink: 0;
}
.class-card-back-text {
  position: relative;
  flex: 1;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dim);
  padding-right: 6px;
  margin-bottom: 10px;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--c) 45%, transparent) transparent;
}
.class-card-back-text::-webkit-scrollbar { width: 5px; }
.class-card-back-text::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 3px;
}

.class-card-flip-hint {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(7, 6, 13, 0.75);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.class-card:hover .class-card-flip-hint { opacity: 1; }
.class-card-back .class-card-flip-hint {
  position: relative;
  right: auto;
  top: auto;
  opacity: 0.8;
  align-self: flex-end;
  flex-shrink: 0;
}
.class-card-back:hover .class-card-flip-hint { opacity: 1; }

/* App Preview — echter Druiden-Look */
.app-preview {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(160deg, #0a0a12, #0d1117 30%, #0a0a12);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(34, 197, 94, 0.12);
  position: relative;
}
.app-preview::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.app-preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
  position: relative;
  z-index: 1;
}
.app-preview-top > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.app-preview-top > span:nth-child(1) { background: #ef4444; }
.app-preview-top > span:nth-child(2) { background: #f5b642; }
.app-preview-top > span:nth-child(3) { background: #22c55e; }
.app-preview-url {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: #6b7280;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

.app-preview-body {
  padding: 28px 24px 24px;
  position: relative;
  z-index: 1;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #f3f4f6;
}

/* App Header — TAEHRON */
.app-header {
  text-align: center;
  margin-bottom: 24px;
}
.app-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}
.app-title h3 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #22c55e, #16a34a 40%, #15803d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.app-subtitle {
  color: #6b7280;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 600;
}

/* Stats Row */
.app-stats-row {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  align-items: stretch;
}
.app-hp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  flex-shrink: 0;
  align-self: center;
}
.app-hp-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(52, 211, 153, 0.8);
  font-weight: 700;
}
.app-hp-btn {
  width: 36px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.app-hp-value {
  font-size: 32px;
  font-weight: 900;
  color: #d1fae5;
  line-height: 1;
}
.app-hp-max {
  font-size: 10px;
  color: rgba(52, 211, 153, 0.45);
  margin-top: -2px;
}

.app-slots-block {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(75, 85, 99, 0.3);
}
.app-slots-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.app-slots-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-slots-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9ca3af;
  font-weight: 600;
  min-width: 62px;
}
.app-slot-gems {
  display: flex;
  gap: 8px;
}
.gem {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  transform: rotate(45deg);
  border: 1px solid rgba(107, 114, 128, 0.3);
  background: rgba(31, 41, 55, 0.8);
  opacity: 0.45;
  transition: all 0.3s;
}
.gem.on {
  border: none;
  opacity: 1;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
  position: relative;
}
.gem.on::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  animation: pulse 2s infinite;
}

/* Library header */
.app-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.app-library-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #86efac;
  letter-spacing: 1.5px;
}
.app-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.app-filter {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(75, 85, 99, 0.3);
  color: #6b7280;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.app-filter.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* Spell Grid */
.app-spell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.app-spell-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 15, 30, 0.5);
  border: 1px solid rgba(34, 197, 94, 0.08);
  cursor: pointer;
  transition: transform 0.3s;
}
.app-spell-card:hover {
  transform: scale(1.02);
  border-color: rgba(34, 197, 94, 0.25);
}
.app-spell-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px;
  gap: 4px;
}
.app-spell-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(4px);
}
.badge-cantrip {
  background: rgba(75, 85, 99, 0.85);
  color: #d1d5db;
}
.badge-l1 {
  background: rgba(56, 189, 248, 0.25);
  color: rgb(56, 189, 248);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-conc {
  background: rgba(127, 29, 29, 0.75);
  color: #fca5a5;
}
.app-spell-body { padding: 12px 14px 14px; }
.app-spell-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #f3f4f6;
  margin-bottom: 2px;
}
.app-spell-school {
  font-size: 9px;
  color: rgba(34, 197, 94, 0.55);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 600;
}
.app-spell-desc {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rest Bar */
.app-rest-bar {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(75, 85, 99, 0.2);
}
.app-rest-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.3s;
}
.app-rest-btn:hover { transform: scale(1.02); }
.app-rest-short {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(22, 163, 74, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}
.app-rest-long {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
}

@media (max-width: 600px) {
  .app-slots-block { flex-direction: column; }
  .app-hp { align-self: stretch; flex-direction: row; justify-content: center; gap: 10px; }
  .app-spell-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transform: translateY(6px);
  opacity: 0.95;
  transition: all 0.3s;
}
.gallery-item figcaption span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 182, 66, 0.4);
}
.gallery-item:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(245, 182, 66, 0.3);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-lg { grid-column: span 2; grid-row: span 2; }

/* CTA */
.section-cta { padding-bottom: 160px; }
.cta-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 24, 48, 0.9), rgba(14, 11, 26, 0.9));
  border: 1px solid var(--border-bright);
  border-radius: 28px;
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 80px rgba(245, 182, 66, 0.1);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 182, 66, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: 40px; margin-bottom: 12px; }
.cta-card > p { color: var(--text-dim); margin-bottom: 32px; }

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}
.price-currency { font-size: 28px; color: var(--amber); font-family: 'Cinzel', serif; }
.price-amount {
  font-family: 'Cinzel', serif;
  font-size: 72px;
  font-weight: 900;
  color: var(--amber);
  filter: drop-shadow(0 0 20px rgba(245, 182, 66, 0.4));
}
.price-period { font-size: 15px; color: var(--text-mute); margin-left: 8px; }

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.price-list li {
  color: var(--text-dim);
  font-size: 15px;
}
.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mute);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  background: rgba(0, 0, 0, 0.4);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left p { font-size: 13px; color: var(--text-mute); margin-top: 6px; }
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 80px; }
  .hero-visual { height: 440px; max-width: 360px; margin: 0 auto; }
  .card-float { width: 240px; }
  .grid-features { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-spells { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-lg { grid-column: span 2; grid-row: span 2; }
  .hero-visual { max-width: 320px; }
  .spell-card { width: 220px; }
  .nav-links { display: none; }
  .section { padding: 64px 24px; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════════
   TESTAPP SECTION — Jetzt testen
   ═══════════════════════════════════════════════════════════════ */
.testapp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.testapp-card {
  --ta-accent: #a855f7;
  --ta-accent-rgb: 168, 85, 247;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 18, 35, 0.75), rgba(12, 12, 22, 0.9));
  border: 1px solid rgba(var(--ta-accent-rgb), 0.22);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(var(--ta-accent-rgb), 0.05), 0 30px 60px -25px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.testapp-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--ta-accent-rgb), 0.55);
  box-shadow: inset 0 0 0 1px rgba(var(--ta-accent-rgb), 0.1), 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(var(--ta-accent-rgb), 0.3);
}
.testapp-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.testapp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(0.95) brightness(0.88);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.testapp-card:hover .testapp-media img {
  transform: scale(1.07);
  filter: saturate(1.15) brightness(1);
}
.testapp-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 13, 0.85) 100%);
  pointer-events: none;
}
.testapp-media::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--ta-accent);
  box-shadow: 0 0 24px var(--ta-accent), 0 0 40px var(--ta-accent);
  z-index: 2;
}
.testapp-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 6, 13, 0.75);
  border: 1px solid rgba(var(--ta-accent-rgb), 0.5);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ta-accent);
}
.testapp-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ta-accent);
  box-shadow: 0 0 10px var(--ta-accent);
  animation: pulse 2s infinite;
}
.testapp-emoji {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-size: 22px;
  filter: drop-shadow(0 0 10px var(--ta-accent));
}
.testapp-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}
.testapp-name {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.testapp-tag {
  font-size: 14px;
  color: var(--text-dim);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(var(--ta-accent-rgb), 0.18);
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 42px;
}
.testapp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--ta-accent-rgb), 0.18);
}
.testapp-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.testapp-features svg {
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(var(--ta-accent-rgb), 0.15);
  border: 1px solid rgba(var(--ta-accent-rgb), 0.35);
  color: var(--ta-accent);
  flex-shrink: 0;
}
.testapp-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #07060d;
  background: linear-gradient(135deg, var(--ta-accent), color-mix(in srgb, var(--ta-accent) 75%, #fff));
  box-shadow: 0 0 0 1px rgba(var(--ta-accent-rgb), 0.5), 0 10px 24px -6px rgba(var(--ta-accent-rgb), 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.testapp-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.testapp-cta svg { transition: transform 0.25s ease; }
.testapp-cta:hover svg { transform: translateX(3px); }
.testapp-notice {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--text-dim);
  text-align: left;
}
.testapp-notice svg {
  flex-shrink: 0;
  color: var(--amber);
  filter: drop-shadow(0 0 6px rgba(245, 182, 66, 0.4));
}
@media (max-width: 900px) {
  .testapp-grid { grid-template-columns: 1fr; gap: 20px; }
  .testapp-tag { min-height: 0; }
  .testapp-notice { border-radius: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   COMMUNITY SECTION
   ═══════════════════════════════════════════════════════════════ */
.community-hub {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  padding: 28px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.community-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(168, 132, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.community-hub > * { position: relative; }
.community-stats {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 10px 22px;
  margin-bottom: 24px;
  background: rgba(7, 6, 13, 0.5);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  flex-wrap: wrap;
  justify-content: center;
}
.community-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.community-stat strong {
  font-family: 'Cinzel', serif;
  color: var(--amber);
  font-size: 15px;
  font-weight: 700;
}
.community-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}
.community-stat-divider {
  width: 1px;
  height: 16px;
  background: var(--border-bright);
}
.community-cta { margin-bottom: 14px; }
.community-cta-note {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.community-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--cc) 16%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.community-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--cc);
  box-shadow: 0 0 14px var(--cc);
  opacity: 0.45;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.community-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--cc) 55%, transparent);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7), 0 0 35px color-mix(in srgb, var(--cc) 22%, transparent);
}
.community-card:hover::before { opacity: 1; }
.community-card:hover::after { opacity: 1; height: 3px; }
.community-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.community-emoji {
  font-size: 22px;
  filter: drop-shadow(0 0 10px var(--cc));
  transition: transform 0.3s ease;
}
.community-card:hover .community-emoji { transform: scale(1.15) rotate(-4deg); }
.community-class {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.community-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.community-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cc);
  box-shadow: 0 0 8px var(--cc);
  opacity: 0.85;
}
.community-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  transition: color 0.3s ease, transform 0.3s ease;
}
.community-card-cta span {
  display: inline-block;
  transition: transform 0.3s ease;
}
.community-card:hover .community-card-cta { color: var(--cc); }
.community-card:hover .community-card-cta span { transform: translateX(6px); }
@media (max-width: 1100px) {
  .community-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .community-stats { gap: 14px; padding: 10px 16px; }
  .community-stat-divider { display: none; }
}
@media (max-width: 420px) {
  .community-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SUPPORT / MITMACHEN SECTION
   ═══════════════════════════════════════════════════════════════ */
.support-section { position: relative; }
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.support-grid.support-grid-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.community-grid + .support-grid {
  margin-top: 56px;
}
.support-panel {
  position: relative;
  padding: 40px 36px 36px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 18, 36, 0.75), rgba(14, 11, 26, 0.85));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.support-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(168, 132, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.support-panel:hover { border-color: var(--border-bright); }
.support-panel:hover::before { opacity: 1; }
.support-panel-art::after,
.support-panel-donate::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 132, 255, 0.5), transparent);
  opacity: 0.6;
}
.support-panel-donate::after {
  background: linear-gradient(90deg, transparent, rgba(245, 182, 66, 0.6), transparent);
}
.support-corner {
  position: absolute;
  width: 38px; height: 38px;
  color: var(--amber);
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(245, 182, 66, 0.25));
  pointer-events: none;
}
.support-corner-tl { top: 8px; left: 8px; }
.support-corner-tr { top: 8px; right: 8px; }
.support-corner-bl { bottom: 8px; left: 8px; }
.support-corner-br { bottom: 8px; right: 8px; }
.support-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 14px;
}
.support-panel-eyebrow-amber { color: var(--amber); }
/* Schatzkammer/Spenden-Panel mittig ausrichten (passend zum Community-Panel) */
.support-panel-donate { text-align: center; }
.support-panel-donate .support-panel-eyebrow { align-self: center; }
.support-panel-donate .support-cta-ghost { align-self: center; }
.support-panel-donate .support-transparency { justify-content: center; }
.support-panel-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}
.support-panel-copy {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.support-seeking {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 14px;
  background: rgba(7, 6, 13, 0.45);
  margin-bottom: 24px;
}
.support-seeking-head {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.support-seeking-list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.support-seek-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}
.support-seek-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  flex-shrink: 0;
}
.support-seek-dot-urgent {
  background: var(--red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
  animation: pulse 2s infinite;
}
.support-seek-label { flex: 1; }
.support-seeking-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}
.support-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(168, 132, 255, 0.12);
  color: var(--purple-glow);
  border: 1px solid rgba(168, 132, 255, 0.3);
}
.support-badge-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}
.support-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  align-self: flex-start;
  margin-top: auto;
  transition: all 0.25s;
}
.support-cta-ghost:hover {
  background: rgba(168, 132, 255, 0.12);
  border-color: var(--purple-glow);
  transform: translateY(-2px);
}
.support-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.support-tier {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(7, 6, 13, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.25s;
}
.support-tier:hover {
  border-color: rgba(245, 182, 66, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(245, 182, 66, 0.25);
}
.support-tier-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 182, 66, 0.15), rgba(168, 132, 255, 0.12));
  border: 1px solid var(--border-bright);
}
.support-tier-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 2px;
}
.support-tier-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.support-tier-price {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--amber);
}
.support-tier-period {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  margin-left: 2px;
}
.support-tier-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.support-tier-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  color: var(--text);
  white-space: nowrap;
  transition: all 0.2s;
}
.support-tier:hover .support-tier-btn {
  background: rgba(245, 182, 66, 0.12);
  border-color: var(--amber);
  color: var(--amber);
}
.support-tier-btn-solid {
  background: linear-gradient(135deg, var(--amber), var(--amber-glow));
  border-color: transparent;
  color: #1a1208;
  box-shadow: 0 6px 16px rgba(245, 182, 66, 0.25);
}
.support-tier:hover .support-tier-btn-solid {
  color: #1a1208;
  background: linear-gradient(135deg, var(--amber-glow), var(--amber));
}
.support-tier-top {
  border-color: rgba(245, 182, 66, 0.3);
  background: linear-gradient(180deg, rgba(245, 182, 66, 0.06), rgba(7, 6, 13, 0.5));
}
.support-tier-ribbon {
  position: absolute;
  top: -9px; right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--amber), var(--amber-glow));
  color: #1a1208;
  box-shadow: 0 4px 12px rgba(245, 182, 66, 0.4);
}
.support-transparency {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mute);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.support-transparency svg { flex-shrink: 0; margin-top: 2px; color: var(--amber); opacity: 0.8; }
@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; gap: 20px; }
  .support-panel { padding: 32px 24px 28px; }
  .support-panel-title { font-size: 24px; }
  .support-tier { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .support-tier-btn { grid-column: 1 / -1; text-align: center; padding: 10px; }
  .support-tier-icon { width: 40px; height: 40px; font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   COMING SOON STATES
   ═══════════════════════════════════════════════════════════════ */

/* Community section: Discord noch nicht da */
.coming-soon-hub {
  text-align: center;
  padding: 36px 32px;
}
.coming-soon-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 182, 66, 0.15);
  border: 1px solid rgba(245, 182, 66, 0.35);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.coming-soon-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.coming-soon-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 20px;
}
.coming-soon-hub .community-cta {
  pointer-events: none;
}
.coming-soon-hub .community-cta-note {
  margin-top: 18px;
  font-style: italic;
  color: var(--text-mute);
}
.community-hub .community-cta-note {
  margin-top: 18px;
  font-style: italic;
  color: var(--text-mute);
  text-align: center;
}

/* Live badge (green) */
.live-badge {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

/* Active Discord CTA */
.community-discord-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: #5865F2;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.community-discord-cta:hover {
  transform: translateY(-3px);
  background: #4752c4;
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.45);
}
.community-discord-cta svg { color: #fff; }

/* Social buttons (TikTok + Instagram) */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 22px;
  flex-wrap: wrap;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  background: rgba(7, 6, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-btn:hover {
  transform: translateY(-3px);
}
.social-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.social-btn-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.social-btn-handle {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.social-btn-tiktok:hover {
  border-color: #25f4ee;
  box-shadow: 0 8px 24px rgba(37, 244, 238, 0.18), 0 0 20px rgba(254, 44, 85, 0.2);
}
.social-btn-tiktok svg { color: var(--text); }
.social-btn-tiktok:hover svg { color: #25f4ee; }
.social-btn-instagram:hover {
  border-color: #e1306c;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.25), 0 0 20px rgba(247, 119, 55, 0.2);
}
.social-btn-instagram svg { color: var(--text); }
.social-btn-instagram:hover svg { color: #e1306c; }

/* Disabled Discord preview button */
.community-cta-note-wrap {
  margin-top: 8px;
}
.community-cta-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Community cards as non-clickable previews */
.community-card-preview {
  cursor: default;
  opacity: 0.78;
}
.community-card-preview:hover {
  transform: none;
}
.community-card-preview .community-card-cta {
  color: rgba(245, 182, 66, 0.7);
  font-style: italic;
  letter-spacing: 1px;
}

/* Donation: inline coming-soon banner */
.coming-soon-inline {
  margin: 18px 0 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(245, 182, 66, 0.08);
  border: 1px solid rgba(245, 182, 66, 0.25);
  text-align: left;
}
.coming-soon-inline p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}
.coming-soon-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(245, 182, 66, 0.22);
  border: 1px solid rgba(245, 182, 66, 0.4);
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Donation tiers as previews */
.support-tiers-preview .support-tier {
  cursor: default;
  opacity: 0.7;
}
.support-tiers-preview .support-tier:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}
.support-tier-btn-disabled {
  background: rgba(107, 114, 128, 0.2) !important;
  border: 1px solid rgba(107, 114, 128, 0.35) !important;
  color: var(--text-mute) !important;
  pointer-events: none;
}
.support-tiers-preview .support-tier:hover .support-tier-btn-disabled {
  background: rgba(107, 114, 128, 0.2) !important;
  border-color: rgba(107, 114, 128, 0.35) !important;
  color: var(--text-mute) !important;
}
/* === Legal pages (Impressum / Datenschutz / Kontakt) === */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}
.legal-page h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--purple-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-page .legal-lead {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-page h3 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal-page p,
.legal-page li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.legal-page p { margin-bottom: 14px; }
.legal-page ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
}
.legal-page ul li {
  padding: 4px 0 4px 22px;
  position: relative;
}
.legal-page ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 8px;
}
.legal-page a {
  color: var(--purple-glow);
  text-decoration: underline;
  text-decoration-color: rgba(192, 132, 252, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.legal-page a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 18px 0 24px;
}
.legal-card p { margin-bottom: 6px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-meta {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--amber); }
