@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --brand-primary: #C9A227;
  --brand-secondary: #8B6914;
  --brand-accent: #E8C547;
  --bg-dark: #020617;
  --bg-card: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ────────────────── UTILITIES ────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.font-display {
  font-family: 'Cinzel', serif;
}

.glow-text {
  text-shadow: 0 0 24px rgba(201, 162, 39, 0.55);
}

.glow-box {
  box-shadow: 0 0 40px -10px rgba(201, 162, 39, 0.35);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.glow-box:hover {
  box-shadow: 0 0 55px -5px rgba(201, 162, 39, 0.55);
  transform: translateY(-2px);
}

/* ────────────────── ANIMATIONS ────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseSlow {
  0%   { transform: scale(1);    opacity: 0.9; }
  100% { transform: scale(1.06); opacity: 1;   }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50%       { transform: translateY(-10px) translateX(-50%); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.9s ease-out both;
}

.stagger-1 { animation-delay: 0.15s; }
.stagger-2 { animation-delay: 0.3s;  }
.stagger-3 { animation-delay: 0.45s; }
.stagger-4 { animation-delay: 0.6s;  }
.stagger-5 { animation-delay: 0.75s; }
.stagger-6 { animation-delay: 0.9s;  }

/* ────────────────── NAV (optional thin bar) ────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

/* ────────────────── NEWS-TICKER ────────────────── */

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.newsticker {
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 99;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #7c2d12 0%, #92400e 50%, #78350f 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.newsticker__label {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.newsticker__track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.newsticker__fader {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}

.newsticker__fader--left  { left:  0; background: linear-gradient(to right, #7c2d12, transparent); }
.newsticker__fader--right { right: 0; background: linear-gradient(to left,  #78350f, transparent); }

.newsticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
}

.newsticker__item {
  color: #fde68a;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0 1.6rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  flex-shrink: 0;
}

.newsticker__item:hover { color: #fff; text-decoration: underline; }

.newsticker__sep {
  color: var(--brand-primary);
  opacity: 0.55;
  font-size: 0.5rem;
  padding: 0 0.2rem;
  flex-shrink: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-decoration: none;
}

.nav-logo svg {
  color: var(--brand-primary);
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 6px rgba(201,162,39,0.5));
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--brand-secondary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--brand-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-accent);
}

.nav-link--active {
  color: var(--brand-accent);
}

/* ── Hamburger-Button (nur Mobile sichtbar) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

/* X-Animation wenn Menü offen */
nav.nav--open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.nav--open .nav-burger span:nth-child(2) {
  opacity: 0;
  width: 0;
}
nav.nav--open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(2, 6, 23, 0.97);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    padding: 0.5rem 0 1rem;
  }

  nav.nav--open .nav-links {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-cta {
    margin: 0.75rem 1.5rem 0;
    justify-content: center;
  }
}

/* ────────────────── HERO ────────────────── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 7rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: pulseSlow 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,6,23,0.75) 0%, rgba(2,6,23,0.5) 50%, rgba(2,6,23,1) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(234,88,12,0.18) 0%, transparent 70%);
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease-out both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.1);
  color: var(--brand-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(to bottom, #fff3d0, #C9A227, #C9A227);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  text-shadow: none;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 580px) {
  .hero-buttons { flex-direction: row; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--brand-secondary);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 40px -10px rgba(201, 162, 39, 0.45);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--brand-primary);
  box-shadow: 0 0 55px -5px rgba(201, 162, 39, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: rgba(2, 6, 23, 0.5);
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: rgba(124, 45, 18, 0.3);
  color: #F5D76E;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(201, 162, 39, 0.45);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  animation: bounce 2s ease-in-out infinite;
  z-index: 10;
}

/* ────────────────── HERO M+ WIDGET ────────────────── */

.hero-widgets-group {
  display: none;
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-start;
  max-height: calc(90vh - 6rem);
}

@media (min-width: 1180px) {
  .hero-widgets-group { display: flex; }
}

.hero-widget {
  display: flex;
  flex-direction: column;
  width: 255px;
  max-height: calc(90vh - 6rem);
  background: rgba(2,6,23,0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,162,39,0.06);
}


.hero-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(201,162,39,0.08);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  color: var(--brand-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-widget-live {
  margin-left: auto;
  font-size: 0.7rem;
  color: #4ade80;
  animation: widgetPulse 2s ease-in-out infinite;
}

@keyframes widgetPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-widget-body {
  padding: 0.5rem 0;
  overflow-y: hidden;
}

.hero-widget-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.widget-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(201,162,39,0.2);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-widget-empty {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.widget-run {
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.widget-run:last-child { border-bottom: none; }

.widget-run:hover { background: rgba(201,162,39,0.06); }

.widget-key-lvl {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-primary);
  text-align: center;
  background: rgba(201,162,39,0.12);
  border-radius: 5px;
  padding: 0.1rem 0.25rem;
  line-height: 1.4;
}

.widget-dungeon {
  font-size: 0.78rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-upgrade {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.widget-upgrade.u3 { color: #C9A227; }
.widget-upgrade.u2 { color: #facc15; }
.widget-upgrade.u1 { color: #94a3b8; }
.widget-upgrade.u0 { color: #475569; }

.widget-char {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

.widget-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  border-top: 1px solid rgba(201,162,39,0.1);
  background: rgba(0,0,0,0.2);
}

.hero-widget-link {
  font-size: 0.72rem;
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.hero-widget-link:hover { color: var(--brand-primary); }

.hero-widget-age {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ────────────────── CARDS SECTION TITLE ────────────────── */

.cards-section-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 2.5rem 0;
}

.cards-section-title span {
  color: var(--brand-primary);
  text-shadow: 0 0 24px rgba(201,162,39,0.5);
}

/* ────────────────── CARD IMAGE ────────────────── */

.card-image {
  margin: -2rem -2rem 1.5rem -2rem;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  aspect-ratio: 1 / 1;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.85));
  pointer-events: none;
}

/* ────────────────── FEATURES ────────────────── */

.features {
  padding: 6rem 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,162,39,0.5), transparent);
}

.features::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center top, rgba(201,162,39,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.features .container {
  position: relative;
  z-index: 1;
}

/* ── Dekorativer Abschnittstrenner ── */

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem auto 2rem;
}

.section-ornament::before,
.section-ornament::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,162,39,0.6));
}

.section-ornament::after {
  background: linear-gradient(to left, transparent, rgba(201,162,39,0.6));
}

.section-ornament svg {
  color: var(--brand-primary);
  filter: drop-shadow(0 0 6px rgba(201,162,39,0.7));
  flex-shrink: 0;
}

/* ── Features 2-Spalten-Layout ── */

.features-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .features-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.features-split-text {
  display: flex;
  flex-direction: column;
}

.features-split-text .features-heading {
  text-align: left;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.features-split-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.features-split-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.2);
  box-shadow: 0 0 40px rgba(201,162,39,0.1), 0 20px 60px rgba(0,0,0,0.5);
}

.features-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.features-split-image:hover img {
  transform: scale(1.03);
}

.features-split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,162,39,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Ornament linksbündig ── */

.section-ornament--left {
  justify-content: flex-start;
  margin-left: 0;
}

.section-ornament--left::before {
  display: none;
}

.section-ornament--left::after {
  width: 120px;
}

/* ── Zentrierter Section-Header (andere Sektionen) ── */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.section-header h2 span {
  color: var(--brand-primary);
  text-shadow: 0 0 24px rgba(201,162,39,0.5);
}

.features-heading {
  text-shadow: 0 0 40px rgba(201,162,39,0.25), 0 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.03em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 100%;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 0 40px -15px rgba(201, 162, 39, 0.35);
  transform: translateY(-4px);
}

.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-accent);
  transition: background 0.3s ease, transform 0.3s ease;
}

.card:hover .card-icon {
  background: rgba(201, 162, 39, 0.2);
  transform: scale(1.1);
}

.card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-bg-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.08;
  color: var(--brand-primary);
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover .card-bg-icon {
  opacity: 0.16;
}

/* ────────────────── HOW IT WORKS ────────────────── */

.how-it-works {
  padding: 6rem 0;
  background: #0a0f1e;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .criteria-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .criteria-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.criteria-item:hover {
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 0 20px rgba(201,162,39,0.08);
}

.criteria-icon {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  transition: background 0.25s, box-shadow 0.25s;
}

.criteria-item:hover .criteria-icon {
  background: rgba(201,162,39,0.18);
  box-shadow: 0 0 14px rgba(201,162,39,0.3);
}

.criteria-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.criteria-body strong {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
}

.criteria-body span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.how-it-works .cta-center {
  text-align: center;
  margin-top: 4.5rem;
}

/* ────────────────── BEWERBUNGSFORMULAR ────────────────── */

.apply-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #060f1e 100%);
}

.apply-wrapper {
  max-width: 680px;
  margin: 3rem auto 0;
}

.apply-form {
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: 10px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) { .apply-row { grid-template-columns: 1fr; } }

.apply-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.apply-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.req { color: var(--brand-primary); }

.apply-field input,
.apply-field textarea {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.apply-field input:focus,
.apply-field textarea:focus {
  border-color: var(--brand-primary);
}

.apply-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

.apply-charcount {
  font-size: 0.7rem;
  color: #475569;
  text-align: right;
  margin-top: 0.25rem;
}

.apply-dsgvo {
  margin: 1.1rem 0 1.5rem;
  padding: 1rem;
  background: rgba(201,162,39,0.06);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 6px;
}

.dsgvo-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.55;
}

.dsgvo-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.apply-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.apply-submit:hover { background: #8B6914; }
.apply-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.apply-msg {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 500;
}

.apply-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}

.apply-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ────────────────── FOOTER ────────────────── */

footer {
  background: var(--bg-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid #0f172a;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-decoration: none;
}

.footer-logo svg {
  color: var(--brand-primary);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-accent);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #1e293b;
  margin-bottom: 1.75rem;
}

/* ── Footer Widgets ── */
.footer-widgets {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .footer-widgets { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .footer-widgets { grid-template-columns: 1fr !important; }
}
.footer-widget {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Nützliche Links Widget */
.footer-widget-links-wrap {
  padding: 1rem 0;
}
.footer-widget-links-wrap .footer-widget-title {
  margin-bottom: 0.75rem;
}
.footer-useful-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer-useful-links--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.footer-useful-links li a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.6rem;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.footer-useful-links--inline li a {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.footer-useful-links li a:hover {
  background: rgba(201,162,39,0.07);
  color: #C9A227;
}
.footer-useful-links--inline li a:hover {
  border-color: rgba(201,162,39,0.3);
}
.footer-useful-links li a svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.12s;
}
.footer-useful-links li a:hover svg { opacity: 1; }
.footer-useful-loading, .footer-useful-empty {
  font-size: 0.78rem;
  color: #334155;
  padding: 0.4rem 0.6rem;
}

/* Platzhalter-Widget */
.fw-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 180px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.015),
    rgba(255,255,255,0.015) 10px,
    transparent 10px,
    transparent 20px
  );
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #334155;
  text-align: center;
  padding: 1.5rem;
}
.fw-placeholder-icon { font-size: 1.75rem; opacity: 0.4; }
.fw-placeholder-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.fw-placeholder-hint { font-size: 0.7rem; color: #1e293b; }

.footer-widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.85rem;
}

/* Discord custom widget */
.dc-widget-box {
  background: #0f172a;
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: 10px;
  overflow: hidden;
  min-height: 80px;
}
.dc-widget-loading, .dc-widget-disabled, .dc-widget-empty {
  padding: 1rem;
  font-size: 0.8rem;
  color: #475569;
  text-align: center;
}
.dc-widget-more {
  font-size: 0.75rem;
  color: #475569;
  text-align: center;
  padding: 0.4rem 0.5rem 0.2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 0.25rem;
}
.dc-members-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
}
.dc-member {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.12s;
}
.dc-member:hover { background: rgba(255,255,255,0.03); }
.dc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dc-avatar-default {
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}
.dc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}
.dc-member-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-member-game {
  font-size: 0.68rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.dc-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: #5865f2;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dc-join-btn:hover { background: #4752c4; }

/* Galerie-Vorschau */
.footer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.footer-gallery-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.18s, box-shadow 0.18s;
}
.footer-gallery-item:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(201,162,39,0.2); }
.footer-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-gallery-loading { color: #334155; font-size: 0.8rem; padding: 1rem 0; }
.footer-gallery-empty { color: #334155; font-size: 0.8rem; padding: 1rem 0; }
.footer-gallery-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-gallery-more:hover { color: var(--brand-primary); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: #475569;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ────────────────── CLASS RECRUITMENT ────────────────── */

.class-recruitment {
  padding: 6rem 0;
  background: #0a0f1e;
  border-top: 1px solid rgba(201,162,39,0.12);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (min-width: 480px) {
  .class-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .class-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .class-grid { grid-template-columns: repeat(5, 1fr); }
}

.class-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 1.4rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s, opacity 0.3s;
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--class-glow) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.class-card.status-open {
  border-color: rgba(var(--class-rgb), 0.28);
}

.class-card.status-open:hover {
  border-color: rgba(var(--class-rgb), 0.65);
  box-shadow: 0 0 28px -8px rgba(var(--class-rgb), 0.45);
  transform: translateY(-3px);
}

.class-card.status-open:hover::before {
  opacity: 0.08;
}

.class-card.status-closed {
  display: none;
}

.class-icon-wrap {
  width: 2.72rem;
  height: 2.72rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--class-rgb), 0.1);
  border: 1.5px solid rgba(var(--class-rgb), 0.3);
  color: var(--class-color);
  overflow: hidden;
  margin-bottom: 0.6rem;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.class-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.class-card.status-open:hover .class-icon-wrap {
  background: rgba(var(--class-rgb), 0.2);
  border-color: rgba(var(--class-rgb), 0.6);
  transform: scale(1.1);
}

.class-name {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.class-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.class-status-badge.open {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.class-status-badge.closed {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-dot.open {
  animation: glowPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px currentColor;
}

/* ── Spec hover overlay ── */

.class-specs-overlay {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(6, 10, 22, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--class-rgb), 0.45);
  padding: 0.9rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 24px -8px rgba(var(--class-rgb), 0.5);
}

.class-card:hover .class-specs-overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.specs-overlay-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--class-color);
  margin-bottom: 0.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(var(--class-rgb), 0.2);
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
}

.spec-item.spec-closed {
  opacity: 0.45;
}

.spec-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.spec-badge.open {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.spec-badge.closed {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.18);
}

/* ────────────────── COOKIE BANNER ────────────────── */

#cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 2.5rem);
  max-width: 760px;
  background: #0f172a;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201,162,39,0.08);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: cookieSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#cookie-banner.hide {
  animation: cookieSlideDown 0.25s ease forwards;
}

@keyframes cookieSlideDown {
  to { opacity: 0; transform: translateX(-50%) translateY(24px); }
}

.cookie-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.cookie-text {
  flex: 1;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  min-width: 200px;
}

.cookie-text a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-text a:hover {
  color: var(--brand-primary);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-reject {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #64748b;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.cookie-btn-reject:hover {
  border-color: rgba(148, 163, 184, 0.5);
  color: #94a3b8;
}

.cookie-btn-accept {
  background: var(--brand-secondary);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.cookie-btn-accept:hover {
  background: var(--brand-primary);
}

.spec-dot-mini {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ────────────────── SVG ICONS ────────────────── */

svg {
  flex-shrink: 0;
}

/* ────────────────── GALERIE (Frontend) ────────────────── */

.gallery-section {
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.22s, box-shadow 0.22s;
}

.gallery-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 32px rgba(201,162,39,0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(2,6,23,0.88));
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 1rem 0.75rem 0.55rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Lightbox */
.fc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.94);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.fc-lightbox.active {
  display: flex;
}

.lb-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lb-inner img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lb-caption {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
}

.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #e2e8f0;
  font-size: 1.3rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lb-close:hover { background: rgba(201,162,39,0.3); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: #e2e8f0;
  font-size: 2.2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(201,162,39,0.3); }

/* ────────────────── GALERIE (Admin) ────────────────── */

.gallery-upload-area {
  border: 2px dashed rgba(201,162,39,0.3);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.gallery-upload-area:hover,
.gallery-upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(201,162,39,0.05);
}

.gallery-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gal-admin-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.3s;
}

.gal-admin-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #020617;
}

.gal-admin-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gal-admin-info {
  padding: 0.65rem;
}

.gal-caption-input {
  font-size: 0.78rem !important;
  padding: 0.3rem 0.5rem !important;
}

/* ── Floating Discord Side-Widget ── */
.dc-side {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  pointer-events: none;
}

.dc-side-tab {
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  background: #C9A227;
  border: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  color: #fff;
  box-shadow: -2px 0 16px rgba(201,162,39,0.45);
  transition: background 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  user-select: none;
}

.dc-side-tab:hover {
  background: #ea6c0a;
  box-shadow: -3px 0 22px rgba(201,162,39,0.65);
}

.dc-side-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.95;
}

.dc-side-arrow {
  font-size: 0.6rem;
  opacity: 0.75;
  transition: transform 0.3s;
  display: block;
}

.dc-side.open .dc-side-arrow {
  transform: rotate(180deg);
}

.dc-side-panel {
  pointer-events: all;
  width: 0;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 28px rgba(0,0,0,0.6);
}

.dc-side.open .dc-side-panel {
  width: 270px;
}

/* Innerer Container */
.dc-side-inner {
  width: 270px;
  background: #0f172a;
  border: 1px solid rgba(201,162,39,0.2);
  border-right: none;
  border-radius: 10px 0 0 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 480px;
}

.dc-side-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(201,162,39,0.08);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  flex-shrink: 0;
}

.dc-side-server {
  font-weight: 700;
  font-size: 0.85rem;
  color: #C9A227;
  flex: 1;
}

.dc-side-online {
  font-size: 0.7rem;
  color: #4ade80;
  font-weight: 600;
  white-space: nowrap;
}

.dc-side-members {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,162,39,0.3) transparent;
}

.dc-sm-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  transition: background 0.12s;
}

.dc-sm-row:hover { background: rgba(201,162,39,0.06); }

.dc-sm-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(201,162,39,0.2);
}

.dc-sm-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  color: #475569;
}

.dc-sm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}

.dc-sm-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-sm-game {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

.dc-side-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  margin: 0.5rem 0.75rem 0.75rem;
  background: #C9A227;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.dc-side-join:hover { background: #ea6c0a; color: #fff; }

.dc-side-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  color: #64748b;
  font-size: 0.82rem;
}

.dc-side-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(201,162,39,0.2);
  border-top-color: #C9A227;
  border-radius: 50%;
  animation: spinAnim 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spinAnim { to { transform: rotate(360deg); } }

.dc-side-msg {
  padding: 1rem;
  color: #64748b;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.5;
}

.dc-side-more {
  padding: 0.3rem 0.9rem 0.5rem;
  font-size: 0.72rem;
  color: #475569;
}

@media (max-width: 768px) {
  .dc-side { display: none; }
}
