@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: #f97316;
  --brand-secondary: #ea580c;
  --brand-accent: #fb923c;
  --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(249, 115, 22, 0.55);
}

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

.glow-box:hover {
  box-shadow: 0 0 55px -5px rgba(249, 115, 22, 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; }

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

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

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

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

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

.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.85rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}

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

/* ────────────────── 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(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 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, #fff1e0, #f97316, #c2410c);
  -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(249, 115, 22, 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(249, 115, 22, 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(249, 115, 22, 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: #fdba74;
  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(249, 115, 22, 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;
}

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

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

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

.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(249,115,22,0.5);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  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(249, 115, 22, 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(249, 115, 22, 0.5);
  box-shadow: 0 0 40px -15px rgba(249, 115, 22, 0.35);
  transform: translateY(-4px);
}

.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(249, 115, 22, 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(249, 115, 22, 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;
}

.steps-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

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

  .steps-row::before {
    content: '';
    position: absolute;
    top: 2.4rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, rgba(249,115,22,0.08), rgba(249,115,22,0.45), rgba(249,115,22,0.08));
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid rgba(249,115,22,0.28);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-accent);
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.step:hover .step-circle {
  border-color: var(--brand-primary);
  box-shadow: 0 0 30px rgba(249,115,22,0.4);
  color: var(--brand-primary);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 230px;
}

.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(249,115,22,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(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,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: #ea580c; }
.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-useful-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.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 li a:hover {
  background: rgba(249,115,22,0.07);
  color: #f97316;
}
.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(249,115,22,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(249,115,22,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(249, 115, 22, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249,115,22,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(249,115,22,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(249,115,22,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(249,115,22,0.3); }

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

.gallery-upload-area {
  border: 2px dashed rgba(249,115,22,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(249,115,22,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;
}
