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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8f5ff;
}

.aeon-bg {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.15) 0, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.12) 0, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(140,0,255,0.5) 0, transparent 60%),
    radial-gradient(circle at 50% 30%, #3b0077 0, #05010a 55%, #000000 100%);
  background-attachment: fixed;
}

/* Header */
.site-header {
  padding: 0.75rem 1.5rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(8,0,16,0.9), rgba(8,0,16,0.6));
  backdrop-filter: blur(10px);
}

.banner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
}

.title-block h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.title-block p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #d9c8ff;
}

/* Auswahlrad – Rad 50px weiter unten */
#auswahlrad-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 50px 0 0.75rem;
  pointer-events: auto;
  transition: transform 0.25s ease;
}

.rad {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 25px rgba(192,132,252,0.5),
    inset 0 0 20px rgba(59,7,100,0.8);
  background: radial-gradient(circle, rgba(255,255,255,0.05), rgba(8,0,16,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.rad-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rad-item {
  position: absolute;
  transform-origin: 50% 120px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(18,6,36,0.95);
  color: #f8f5ff;
  font-size: 0.95rem;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.rad-item:hover,
.rad-item.rad-active {
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
  box-shadow: 0 0 12px rgba(167,139,250,0.9);
  transform: scale(1.05) translateY(-1px);
}

/* 5 Items rundherum */
.rad-item:nth-child(2) { transform: rotate(270deg) translate(0, -115px); } /* Willkommen */
.rad-item:nth-child(3) { transform: rotate(342deg) translate(0, -115px); } /* Das Spiel */
.rad-item:nth-child(4) { transform: rotate(54deg)  translate(0, -115px); } /* Shop */
.rad-item:nth-child(5) { transform: rotate(126deg) translate(0, -115px); } /* Community */
.rad-item:nth-child(6) { transform: rotate(198deg) translate(0, -115px); } /* Über uns */

/* Layout – Standard: KEINE Sidebar */
.layout {
  display: grid;
  grid-template-columns: 1fr;          /* ⬅️ WICHTIG */
  gap: 1.25rem;
  padding: 0 1.5rem 1.5rem;
  align-items: start;
  transition: grid-template-columns 0.25s ease;
}

/* Layout MIT Sidebar */
.layout.layout--with-sidebar {
  grid-template-columns: 280px minmax(0, 1fr);
}


/* Sidebar */
.sidebar {
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.1), transparent 55%);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 16px 35px rgba(0,0,0,0.7);
  max-height: calc(100vh - 280px);
  position: sticky;
  top: 1rem;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar--hidden {
  display: none;
}


.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.sidebar-title {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c4b5fd;
}

.sidebar-close {
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.1rem;
  cursor: pointer;
}

.sidebar-scroll {
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  padding: 0.75rem;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-item {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem 0.35rem;
  border-radius: 0.75rem;
  align-items: center;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.sidebar-item:hover {
  background: rgba(31,27,75,0.9);
  transform: translateY(-1px);
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(129,140,248,0.95), rgba(76,29,149,0.96));
  box-shadow: 0 0 16px rgba(129,140,248,0.7);
}

.thumb {
  width: 52px;
  height: 52px;
  border-radius: 0.6rem;

  object-fit: contain;          /* ✅ WICHTIG */
  background: rgba(0,0,0,0.6);

  border: 1px solid rgba(255,255,255,0.18);
}


.sidebar-info h4 {
  margin: 0;
  font-size: 0.88rem;
}

.sidebar-info p {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: #e5e7eb;
}

/* Content – Abstand unter dem Rad */
#content-area {
  background: radial-gradient(circle at 100% 0, rgba(148,163,253,0.08), transparent 55%),
              rgba(5,0,15,0.92);
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.14);
  min-height: 350px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.75);
  overflow: visible;
  margin-top: 0px; /* Abstand zum Rad */
}

#content-area .page {
  animation: fadeInUp 0.35s ease-out;
}

.loading-hint {
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.8;
}

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

/* Responsive */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    max-height: none;
  }
  .sidebar-scroll {
    max-height: 260px;
  }
}

@media (max-width: 720px) {
  .banner {
    flex-direction: row;
    align-items: center;
  }
  .title-block h1 {
    font-size: 1.3rem;
  }
  .title-block p {
    font-size: 0.8rem;
  }
  #auswahlrad-section {
    transform: scale(0.9);
  }
}

/* ==== Override: Gleichmäßig verteilte, horizontal lesbare Rad-Labels ==== */
.rad-item {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(18,6,36,0.95);
  color: #f8f5ff;
  font-size: 0.95rem;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  --tx: 0px;
  --ty: 0px;
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty));
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.rad-item:hover,
.rad-item.rad-active {
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
  box-shadow: 0 0 12px rgba(167,139,250,0.9);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.05);
}

/* 5 gleichmäßig verteilte Positionen auf einem Kreisradius von 115px */
.rad-item:nth-child(2) { --tx: 0px;    --ty: -115px; }  /* Willkommen – oben */
.rad-item:nth-child(3) { --tx: 148px;  --ty: -36px;  }  /* Das Spiel – oben rechts */
.rad-item:nth-child(4) { --tx: 92px;   --ty: 93px;   }  /* Shop – unten rechts */
.rad-item:nth-child(5) { --tx: -92px;  --ty: 93px;   }  /* Community – unten links */
.rad-item:nth-child(6) { --tx: -148px; --ty: -36px;  }  /* Über uns – oben links */

/* Reset alte Dreh-Transforms – alles nur noch per translate mit Variablen */
.rad-item:nth-child(2),
.rad-item:nth-child(3),
.rad-item:nth-child(4),
.rad-item:nth-child(5),
.rad-item:nth-child(6) {
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty));
}

.rad-item:hover,
.rad-item.rad-active {
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.05);
}
/* ===============================
   🧺 Runenkorb Button (Header)
================================ */

.cart-icon-box {
  margin-left: auto;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 0.9rem;
  border-radius: 999px;

  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 0 12px rgba(167,139,250,0.6),
    inset 0 0 6px rgba(255,255,255,0.25);

  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.cart-link {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 0.9rem;
  border-radius: .4rem;

  background: #7b2dff;
  color: white;
  font-weight: 600;
  font-size: .95rem;

  cursor: pointer;
  box-shadow: 0 0 0px rgba(123,45,255,0.45);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}

.cart-link:hover {
  background: #8b3dff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(123,45,255,0.7);
}


/* ===============================
   📱 Mobile Layout – alles untereinander
================================ */
@media (max-width: 980px) {

  /* Layout IMMER einspaltig */
  .layout,
  .layout.layout--with-sidebar {
    grid-template-columns: 1fr !important;
  }

  /* Sidebar normaler Block, kein Sticky */
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 1rem;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  /* Content darf NICHT nach unten springen */
  #content-area {
    margin-top: 0;
  }

  /* Auswahlrad bleibt zentriert */
  #auswahlrad-section {
    transform: none !important;
  }
}

/* =========================
   👥 Team – Layout & Bilder
========================= */

.team-member {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.9rem;

  border-radius: 1rem;
  background: radial-gradient(circle at 0 0,
    rgba(255,255,255,0.06),
    rgba(15,0,40,0.95) 60%);

  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}

.team-member img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: #000;
}

.team-role {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.85rem;
  color: #c4b5fd;
}

/* =========================
   ✉️ Team – E-Mail Links (Gold)
   Greift NUR auf der Team-Seite
========================= */

.page.team-page .team-mail {
  display: inline-block;
  margin: 0.35rem 0 0.6rem;

  color: #facc15;                 /* warmes Gold */
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;

  transition:
    color 0.15s ease,
    text-shadow 0.15s ease;
}

/* Hover-Effekt */
.page.team-page .team-mail:hover {
  color: #fde68a;                 /* helleres Gold */
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.7);
  text-decoration: underline;
}



/* 📱 Mobile */
@media (max-width: 640px) {
  .team-member {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-member img {
    margin: 0 auto;
    width: 110px;
    height: 150px;
  }
}

/* 📱 Mobile: Bild kleiner & zentriert */
@media (max-width: 640px) {
  .team-member {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-member img {
    margin: 0 auto;
    width: 110px;
    height: 150px;
  }
}

/* ===============================
   🎧 Shop – Audio Preview
=============================== */

.shop-preview audio {
  width: 100%;
  max-width: 420px;
  height: 32px;

  margin-top: 0.5rem;
  border-radius: 0.5rem;

  background: rgba(10, 0, 25, 0.9);
}

/* ===============================
   🎧 Shop – Audio Preview FIX
   (overflow-safe)
=============================== */

.shop-preview {
  position: relative;
  overflow: visible;
  z-index: 5;
}

.shop-preview audio {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
