/* ============================================================
   Valora Roleplay – Navigation, Live-Status, Guide- und Fraktionsseite
   ============================================================ */

/* ---------- Live-Status ---------- */
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
}
.online .live-dot { background: #3ddc84; }
.online .live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #3ddc84;
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.offline .live-dot { background: var(--coral); }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
  transition: border-color .15s;
}
.status-pill:hover { border-color: var(--border-2); }
.status-line {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Navigation / Handy-Menü ---------- */
.nav .nav-discord { color: var(--muted); }
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s, opacity .2s, top .25s;
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .site-header .status-pill { margin-left: auto; }
  .menu-btn { display: block; }
  .status-pill.hidden + .menu-btn { margin-left: auto; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    margin: 0;
    padding: 12px 16px 20px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 12px 16px; border-radius: 12px; font-size: 16px; }
  .nav a.hide-sm { display: block; }
  .menu-open .site-header { background: rgba(0, 0, 0, 0.97); border-bottom-color: var(--border); }
}

/* ---------- Unterseiten-Hero ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 20px 0 16px; }
.page-hero > p, .page-hero .lead { color: var(--muted); font-size: 18px; max-width: 660px; margin: 0; }
.page-hero .btn-row { margin-top: 28px; }

/* Sprungnavigation innerhalb einer Seite */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.jump a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.jump a:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(143, 220, 243, 0.06); }

/* ---------- Guide: Startplan ---------- */
.roadmap { position: relative; display: grid; gap: 14px; counter-reset: rm; }
.roadmap::before {
  content: "";
  position: absolute;
  left: 27px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--teal), var(--coral));
  opacity: 0.4;
}
.rm-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.rm-dot {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--card-solid);
  border: 1px solid var(--border-2);
  color: var(--cyan);
}
.rm-step:nth-child(3n+2) .rm-dot { color: var(--teal); }
.rm-step:nth-child(3n) .rm-dot { color: var(--coral); }
.rm-dot svg { width: 24px; height: 24px; }
.rm-card { padding: 20px 24px; }
.rm-card .kicker { font-size: 12px; }
.rm-card h3 { font-size: 20px; margin: 4px 0 6px; }
.rm-card p { margin: 0; color: var(--muted); font-size: 15px; }
.rm-card .tags { padding-top: 12px; }

/* ---------- Guide: Tastenbelegung ---------- */
.keys-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.key-group { padding: 24px; }
.key-group h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.key-group h3 svg { width: 20px; height: 20px; color: var(--cyan); }
.key-list { display: grid; gap: 4px; }
.key-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s;
}
.key-row:hover { background: rgba(255, 255, 255, 0.03); }
.key-row span { color: #c8dbe3; font-size: 15px; }
.keycap {
  flex: none;
  min-width: 44px;
  height: 38px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  border-bottom-width: 3px;
  background: linear-gradient(#13293a, #0b1a24);
  font: 800 13px var(--font-head);
  letter-spacing: 0.02em;
  color: var(--text);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.8);
  transition: transform .1s, border-bottom-width .1s;
}
.key-row:hover .keycap { color: var(--cyan); border-color: rgba(143, 220, 243, 0.5); }
.key-row:active .keycap { transform: translateY(2px); border-bottom-width: 1px; }
.keycap.wide { min-width: 96px; }
.key-hint { margin-top: 16px; font-size: 14px; color: var(--dim); }

/* ---------- Guide: Chat-Befehle ---------- */
.cmd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cmd { padding: 18px 20px; }
.cmd code {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(143, 220, 243, 0.1);
  color: var(--cyan);
  font: 700 14px ui-monospace, Consolas, monospace;
  margin-bottom: 8px;
}
.cmd.ooc code { background: rgba(255, 171, 122, 0.1); color: var(--coral); }
.cmd p { margin: 0; color: var(--muted); font-size: 14px; }
.cmd .ex { margin-top: 8px; font-size: 13px; color: var(--dim); font-style: italic; }

/* ---------- Fraktionen ---------- */
.faction {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin-bottom: 20px;
}
.faction-main { padding: 34px; }
.faction-side { padding: 34px; border-left: 1px solid var(--border); background: rgba(0, 0, 0, 0.15); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.faction-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.faction-logo {
  flex: none;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.faction.ems .faction-logo { color: #ff9a8a; }
.faction.tuner .faction-logo { color: #ffc98a; }
.faction-logo svg { width: 28px; height: 28px; }
.faction-head small { display: block; font-size: 13px; font-weight: 700; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.faction-head h2 { font-size: 30px; }
.faction-main > p { color: var(--muted); margin: 0 0 20px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.feature-list li { display: flex; gap: 10px; font-size: 15px; color: #c8dbe3; }
.feature-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 6px;
  background: rgba(127, 227, 207, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fe4c2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.faction-side h3 { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.ranks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.ranks li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}
.ranks li b {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(143, 220, 243, 0.1);
  color: var(--cyan);
  font: 800 12px var(--font-head);
}
.faction.ems .ranks li b { background: rgba(255, 171, 122, 0.12); color: var(--coral); }
.faction.tuner .ranks li b { background: rgba(255, 179, 107, 0.12); color: #ffc27a; }
.ranks li:last-child { border-color: var(--border-2); background: rgba(143, 220, 243, 0.06); }
.ranks li:last-child::after { content: "Leitung"; margin-left: auto; font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.ranks li:first-child::after { content: "Einstieg"; margin-left: auto; font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

.underworld {
  position: relative;
  padding: 44px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 94, 94, 0.12), transparent 70%),
    var(--card);
}
.underworld h2 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 12px; }
.underworld > p { color: var(--muted); max-width: 640px; margin: 0 0 26px; }
.uw-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.uw-type { padding: 18px; border-radius: var(--r); border: 1px solid rgba(255, 120, 120, 0.15); background: rgba(0, 0, 0, 0.2); }
.uw-type strong { display: block; font-family: var(--font-head); font-size: 18px; margin-bottom: 4px; }
.uw-type span { font-size: 13px; color: var(--muted); }
.underworld .kicker { color: #ff8a8a; }

.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.job { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.job .ico {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(127, 227, 207, 0.1);
  color: var(--teal);
}
.job .ico svg { width: 22px; height: 22px; }
.job h3 { font-size: 17px; margin-bottom: 4px; }
.job p { margin: 0; color: var(--muted); font-size: 14px; }

.apply {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: ap;
}
.apply-step { padding: 24px; counter-increment: ap; }
.apply-step::before {
  content: "0" counter(ap);
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.apply-step h3 { font-size: 18px; margin-bottom: 6px; }
.apply-step p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1000px) {
  .keys-wrap { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr 1fr; }
  .faction { grid-template-columns: 1fr; }
  .faction-side { border-left: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .uw-types { grid-template-columns: 1fr 1fr; }
  .jobs-grid, .apply { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cmd-grid, .jobs-grid, .apply, .feature-list { grid-template-columns: 1fr; }
  .faction-main, .faction-side, .underworld { padding: 24px; }
  .uw-types { grid-template-columns: 1fr; }
  .roadmap::before { left: 21px; }
  .rm-step { grid-template-columns: 44px 1fr; gap: 14px; }
  .rm-dot { width: 44px; height: 44px; border-radius: 14px; }
  .rm-dot svg { width: 20px; height: 20px; }
  .status-pill { padding: 0 10px; }
}

/* ---------- Startseite: Mehr entdecken ---------- */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.explore-card { padding: 28px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.explore-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.explore-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; min-height: 38px; }
.chip-f {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(143, 220, 243, 0.1);
  color: var(--cyan);
  font: 700 13px var(--font-head);
}
.chip-f.ems { background: rgba(255, 171, 122, 0.12); color: var(--coral); }
.chip-f.tuner { background: rgba(255, 179, 107, 0.12); color: #ffc27a; }
.explore-card h3 { font-size: 22px; margin-bottom: 8px; }
.explore-card p { margin: 0 0 22px; color: var(--muted); font-size: 15px; flex: 1; }
.explore-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--cyan); }
.explore-link svg { width: 18px; height: 18px; transition: transform .2s; }
.explore-card:hover .explore-link svg { transform: translateX(4px); }
@media (max-width: 1000px) { .explore { grid-template-columns: 1fr; } }
