@charset "utf-8";
/* CSS Document */

:root{
  --bg: #0a0b0d;
  --fg: #ffffff;
  --muted: #d5d7db;
  --panel: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);
  --glow-1: 0 0 12px rgba(255,255,255,1);
  --glow-2: 0 0 28px rgba(255,255,255,.7);
  --glow-3: 0 0 80px rgba(255,255,255,.45);
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.75 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x:hidden;
}

#stars-canvas{
  position: fixed;
  inset: 0;
  z-index: 0;
  display:block;
}

.container{ position: relative; z-index: 1; width:min(980px, 92vw); margin: 0 auto; padding: 42px 0 64px; }

header{
  text-align:center;
  margin: clamp(40px, 8vh, 80px) 0 22px;
}

.logo{
  margin: 0;
  font-weight: 900;
  font-size: clamp(48px, 9vw, 112px);
  letter-spacing: 10px;
  text-transform: uppercase;
  text-shadow: var(--glow-1), var(--glow-2), var(--glow-3);
}

.tagline{
  margin-top: 8px;
  font-size: clamp(14px, 2.8vw, 18px);
  color: var(--muted);
  letter-spacing: .35px;
  text-shadow: 0 0 2px rgba(255,255,255,.35);
}

.panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 3.6vw, 32px);
  box-shadow: 0 18px 42px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
}

section{ margin-top: 28px; }
h2{
  margin: 0 0 12px 0;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255,255,255,.5);
}
p{ margin: 0 0 1.05em 0; color: #f3f4f6; }

.meaning{
  display:grid; gap: 10px;
  grid-template-columns: repeat(5, minmax(0,1fr));
  margin-top: 10px;
}
.meaning .card{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.meaning .card .letter{
  display:block;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(255,255,255,.7);
}
.meaning .card .word{ color:#e8eaf0; font-size: 14px; }

footer{
  text-align:center;
  color:#bfc3ca;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* Reduced motion: stop any potential animations (canvas is also paused in JS) */
@media (prefers-reduced-motion: reduce){
  .logo{ text-shadow: var(--glow-1); }
}

/* ─────────────────────────────
   CELEA — Navigation Styling
───────────────────────────── */

.nav {
  margin-top: 28px;
  text-align: center;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: clamp(14px, 3vw, 28px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav a i {
  font-size: 14px;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover & Focus Effects */
.nav a:hover,
.nav a:focus {
  color: var(--muted);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 8px rgba(255,255,255,.08);
}

.nav a:hover i {
  transform: translateY(-2px);
  opacity: 1;
}

/* Active/Current link style (optional JS toggle later) */
.nav a.active {
  color: var(--muted);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 12px rgba(255,255,255,.15);
}

/* Mobile optimization */
@media (max-width: 640px) {
  .nav ul {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .nav a {
    font-size: 14px;
    padding: 5px 8px;
  }
}

.avatar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  color: var(--fg);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  overflow: hidden;
}

.avatar-table th {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255,255,255,.4);
}

.avatar-table td {
  padding: 12px;
  border-right: 1px solid var(--border);
}

.avatar-table td:last-child {
  border-right: none;
}

.avatar-table img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .3s ease;
}

.avatar-table img:hover {
  transform: scale(1.05);
}

/* Basis aus vorheriger Tabelle bleibt gleich … */

/* Clipping verhindern */
.panel,
.avatar-table { overflow: visible; }
.avatar-table td { position: relative; overflow: visible; }

/* Tooltip-Wrapper */
.avatar-tip {
  position: relative;
  display: inline-block;
  line-height: 0;
  outline: none;
}

/* Tooltip-Blase */
.avatar-tip::before {
  content: attr(data-anime);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 20px); /* weiter Abstand für Pfeil unten */
  transform: translateX(-50%) translateY(6px);
  padding: 12px 18px;
  font-size: 15px;
  color: var(--fg);
  background: rgba(255,255,255,.12);
  border: 1px solid var(--border);
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  text-shadow: 0 0 10px rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity .22s ease, transform .22s ease;
}

/* Pfeil zeigt nach unten (lange Seite oben) */
.avatar-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px); /* sitzt direkt unter der Box */
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid rgba(255,255,255,.12); /* Spitze unten */
  border-bottom: none;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.35));
  opacity: 0;
  pointer-events: none;
  z-index: 29;
  transition: opacity .22s ease;
}

/* Sichtbar bei Hover/Fokus */
.avatar-tip:hover::before,
.avatar-tip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.avatar-tip:hover::after,
.avatar-tip:focus-visible::after {
  opacity: 1;
}

/* Avatarbild */
.avatar-table img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  transition: transform .3s ease;
}

.avatar-table img:hover {
  transform: scale(1.05);
}

/* Grid für mehrere Karten */
.code-cards{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Einzelkarte */
.code-card{
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.code-card:hover,
.code-card:focus-visible{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 12px rgba(255,255,255,.10), 0 18px 38px rgba(0,0,0,.6);
}
.code-card:focus-visible{
  outline: 2px solid rgba(255,255,255,.25);
  outline-offset: 2px;
}

/* Vorschaubild (16:9) */
.cc-thumb{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  aspect-ratio: 16 / 9;           /* hält das Seitenverhältnis */
}
.cc-thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Inhalt */
.cc-body{ min-height: 0; }
.cc-title{
  margin: 2px 2px 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  text-shadow: 0 0 10px rgba(255,255,255,.45);
}
.cc-tags{
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 2px 2px;
}
.tag{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  color: #e8eaf0;
}
.tag i{ font-size: 12px; opacity: .9; }

/* Footer */
.cc-footer{
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: 4px;
  font-size: 12px;
}
.cc-meta{ color: var(--muted); }
.cc-action{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cc-action i{ font-size: 12px; }
.cc-action:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 0 10px rgba(255,255,255,.12);
}

/* Kleinere Höhe-Variante (optional) */
.code-card.compact .cc-thumb{ aspect-ratio: 4 / 3; }

.credits {
  margin-top: 3rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 0 40px rgba(255,255,255,0.05);
}

.credits h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #ffffff, #9eb3ff, #ffffff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientflow 10s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.credits .intro {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.credit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  text-align: left;
  font-size: 0.95rem;
  color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.credit-table thead {
  background: rgba(255,255,255,0.05);
}

.credit-table th,
.credit-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.credit-table th {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: #bfc3ca;
  cursor: pointer;
  position: relative;
  transition: color .3s ease;
}

.credit-table th:hover {
  color: #ffffff;
}

.credit-table th.asc::after,
.credit-table th.desc::after {
  content: "▲";
  position: absolute;
  right: 10px;
  font-size: 10px;
  color: #9eb3ff;
}
.credit-table th.desc::after { content: "▼"; }

.credit-table tr:last-child td {
  border-bottom: none;
}

.credit-table a {
  color: #9eb3ff;
  text-decoration: none;
  transition: 0.3s ease;
}

.credit-table a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* ✨ Hover Glow */
.credit-table tbody tr {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.credit-table tbody tr:hover {
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.08);
}

/* Gradient text animation */
@keyframes gradientflow {
  0%,100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

