/* JorgeTown Hub — Look wie ACP / NexusHub / Statusseite: neutrales Dunkel,
   Verlauf Blau → Violett → Pink. Prefix: hb-* */
:root {
  --bg: #0e0f13;
  --surface: #15171c;
  --elev: #1b1e25;
  --elev2: #21242c;
  --line: #262a33;
  --line2: #343945;
  --text: #e7e8eb;
  --muted: #aab1bd;
  --faint: #828a99;
  --violet: #8b5cf6;
  --pink: #ff2e88;
  --blue: #4f7dff;
  --grad: linear-gradient(105deg, #4f7dff 0%, #8b5cf6 50%, #ff2e88 100%);
  --ok: #3dd68c;
  --warn: #ffd166;
  --danger: #f0555f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #8b5cf6 #0e0f13; }
body { color: var(--text); font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { flex-shrink: 0; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0b0c10; border-left: 1px solid var(--line); }
::-webkit-scrollbar-thumb { border: 3px solid #0b0c10; border-radius: 999px; background: linear-gradient(180deg, #4f7dff, #8b5cf6 50%, #ff2e88); }
::-webkit-scrollbar-thumb:hover { border-width: 2px; box-shadow: 0 0 12px rgba(139, 92, 246, 0.6); }

.hb { position: relative; min-height: 100dvh; display: flex; flex-direction: column; isolation: isolate; }
.hb-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 12% -10%, rgba(79, 125, 255, 0.13), transparent 60%),
    radial-gradient(50rem 28rem at 95% 8%, rgba(255, 46, 136, 0.1), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(139, 92, 246, 0.09), transparent 60%);
}

/* Logo als sehr dezentes Wasserzeichen hinter dem Inhalt */
.hb-wasser {
  position: fixed;
  bottom: -120px;
  left: -90px;
  z-index: -1;
  width: min(520px, 55vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/hub-logo.webp") center / contain no-repeat;
  opacity: 0.045;
  filter: saturate(0.85);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 78%);
}
@media (max-width: 900px) { .hb-wasser { bottom: -60px; left: -190px; width: 105vw; opacity: 0.025; } }

/* ── Kopf ─────────────────────────────────────────── */
.hb-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}
.hb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.hb-brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(255, 46, 136, 0.3)); transition: transform 0.3s var(--ease); }
.hb-brand:hover img { transform: rotate(-6deg) scale(1.05); }
.hb-brand small { margin-left: 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hb-nav { display: flex; justify-content: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hb-nav::-webkit-scrollbar { display: none; }
.hb-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.hb-nav a:hover { color: var(--text); background: var(--elev); }
.hb-nav a.is-on { color: var(--text); background: var(--elev2); box-shadow: inset 0 0 0 1px var(--line2); }
.hb-nav a.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }
@media (max-width: 1000px) {
  .hb-top { grid-template-columns: auto 1fr; row-gap: 8px; padding-bottom: 8px; }
  .hb-btn-discord { justify-self: end; }
  .hb-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 0 -6px; }
}

/* ── Knöpfe ───────────────────────────────────────── */
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s var(--ease);
}
.hb-btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.hb-btn:hover { transform: translateY(-1.5px); background: var(--elev2); border-color: color-mix(in oklab, var(--violet) 50%, var(--line2)); }
.hb-btn:hover svg { transform: translateX(3px); }
.hb-btn-lg { padding: 13px 20px; font-size: 0.95rem; border-radius: 13px; }
.hb-btn-primary { border-color: transparent; color: #fff; background: var(--grad); background-size: 160% 160%; box-shadow: 0 12px 32px -12px rgba(139, 92, 246, 0.8); }
.hb-btn-primary:hover { border-color: transparent; background: var(--grad); background-position: 100% 0; filter: brightness(1.08); }
.hb-btn-discord { border-color: transparent; color: #fff; background: #5865f2; box-shadow: 0 10px 28px -12px rgba(88, 101, 242, 0.9); }
.hb-btn-discord:hover { background: #5865f2; border-color: transparent; filter: brightness(1.08); }
.hb-btn-discord svg { width: 17px; height: 17px; }
.hb-btn-discord:hover svg { transform: none; }

/* ── Inhalt ───────────────────────────────────────── */
.hb-main { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 32px) 56px; display: flex; flex-direction: column; gap: 44px; }
.hb-kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet); }
.hb-kicker i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; animation: hb-puls 2.4s ease-in-out infinite; }

/* Begrüßung */
.hb-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .hb-hero { grid-template-columns: 1fr; } }
.hb-hero-text { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hb-hero h1 { margin: 0; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.hb-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-lead { margin: 0; max-width: 54ch; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.hb-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.hb-hero-live,
.hb-server-karte {
  --tint: #ff8a00;
  --tint2: #ff2e88;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 20px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hb-hero-live::before,
.hb-server-karte::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bild) center / cover no-repeat; transition: transform 0.8s var(--ease); }
.hb-hero-live::after,
.hb-server-karte::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 15, 19, 0.1) 0%, rgba(14, 15, 19, 0.5) 45%, rgba(14, 15, 19, 0.95) 100%),
    radial-gradient(90% 60% at 0% 100%, color-mix(in oklab, var(--tint) 30%, transparent), transparent 70%);
}
.hb-hero-live:hover,
.hb-server-karte:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--tint) 55%, var(--line)); box-shadow: 0 26px 60px -28px color-mix(in oklab, var(--tint) 80%, transparent); }
.hb-hero-live:hover::before,
.hb-server-karte:hover::before { transform: scale(1.06); }
.hb-hero-live-tag,
.hb-server-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 15, 19, 0.6);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hb-hero-live-tag b,
.hb-server-tag b { color: var(--tint); }
.hb-hero-live .hb-status,
.hb-server-karte .hb-status,
.hb-server-karte .hb-aufbau { position: absolute; top: 16px; right: 16px; }
.hb-hero-live strong,
.hb-server-unten strong { display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.hb-hero-live strong em,
.hb-server-unten strong em { font-style: normal; background: linear-gradient(100deg, var(--tint), var(--tint2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-spieler { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.hb-spieler span { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hb-spieler span small { font-size: 0.55em; color: rgba(231, 232, 235, 0.6); }
.hb-spieler > small { font-size: 0.8rem; font-weight: 600; color: rgba(231, 232, 235, 0.7); }
.hb-spieler-balken { margin-top: 10px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hb-spieler-balken i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tint), var(--tint2)); transition: width 0.8s var(--ease); }

/* Status-Marken */
.hb-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--c, var(--faint)) 45%, transparent);
  background: rgba(14, 15, 19, 0.7);
  backdrop-filter: blur(10px);
  color: color-mix(in oklab, var(--c) 75%, #fff);
  font-size: 0.78rem;
  font-weight: 700;
}
.hb-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.is-up { --c: var(--ok); }
.is-down { --c: var(--danger); }
.is-pending { --c: var(--warn); }
.is-maint { --c: var(--blue); }
.hb-aufbau {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #1a1204;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: repeating-linear-gradient(135deg, #ffd166 0 10px, #ffbf3f 10px 20px);
  background-size: 28px 28px;
  animation: hb-baustelle 1.2s linear infinite;
}
.hb-aufbau svg { width: 14px; height: 14px; }

/* Live-Leiste */
.hb-live {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.hb-live-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.hb-live-item b { display: block; font-size: 0.9rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-live-item small { display: block; font-size: 0.78rem; color: var(--muted); }
.hb-punkt { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--faint)); box-shadow: 0 0 0 0 color-mix(in oklab, var(--c) 55%, transparent); animation: hb-ping 2s var(--ease) infinite; }
.hb-live-mehr { display: inline-flex; align-items: center; gap: 6px; padding: 0 20px; color: var(--muted); font-size: 0.84rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color 0.15s var(--ease), background 0.15s var(--ease); }
.hb-live-mehr svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.hb-live-mehr:hover { color: var(--text); background: var(--elev); }
.hb-live-mehr:hover svg { transform: translateX(3px); }
@media (max-width: 900px) {
  .hb-live { grid-template-columns: 1fr; }
  .hb-live-item { border-right: 0; }
  .hb-live-item { border-bottom: 1px solid var(--line); }
  .hb-live-mehr { grid-column: 1 / -1; justify-content: center; padding: 14px; }
}

/* Blöcke */
.hb-block { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 90px; }
.hb-block-kopf { display: flex; flex-direction: column; gap: 8px; }
.hb-block-kopf h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }

/* Einstieg */
.hb-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (max-width: 900px) { .hb-schritte { grid-template-columns: 1fr; } }
.hb-schritte li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--elev) 0%, var(--surface) 100%);
}
.hb-schritte li > div { flex: 1; }
.hb-schritte b { display: block; font-size: 1.08rem; font-weight: 750; }
.hb-schritte p { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.hb-schritte .hb-btn { align-self: flex-start; }
.hb-schritt-nr {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: var(--grad);
  box-shadow: 0 10px 26px -10px rgba(139, 92, 246, 0.9);
}

/* Kacheln aller Seiten */
.hb-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .hb-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hb-kacheln { grid-template-columns: 1fr; } }
.hb-kachel {
  --farbe: var(--violet);
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hb-kachel.is-gross { grid-column: span 2; min-height: 150px; }
@media (max-width: 560px) { .hb-kachel.is-gross { grid-column: auto; } }
.hb-kachel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in oklab, var(--farbe) 22%, transparent), transparent 70%);
  transition: opacity 0.25s var(--ease);
}
.hb-kachel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--farbe), transparent); opacity: 0.7; }
.hb-kachel:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--farbe) 50%, var(--line)); box-shadow: 0 20px 44px -24px color-mix(in oklab, var(--farbe) 70%, transparent); }
.hb-kachel:hover::before { opacity: 1; }
.hb-kachel-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--farbe);
  border: 1px solid color-mix(in oklab, var(--farbe) 35%, var(--line));
  background: color-mix(in oklab, var(--farbe) 12%, var(--bg));
  transition: transform 0.25s var(--ease);
}
.hb-kachel-ic svg { width: 23px; height: 23px; }
.hb-kachel:hover .hb-kachel-ic { transform: scale(1.06) rotate(-4deg); }
.hb-kachel.is-gross .hb-kachel-ic { width: 60px; height: 60px; border-radius: 18px; }
.hb-kachel.is-gross .hb-kachel-ic svg { width: 28px; height: 28px; }
.hb-kachel-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hb-kachel-text b { font-size: 1.05rem; font-weight: 750; }
.hb-kachel.is-gross .hb-kachel-text b { font-size: 1.35rem; letter-spacing: -0.02em; }
.hb-kachel-text small { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.hb-kachel-text em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: var(--faint); margin-top: 2px; }
.hb-kachel-pfeil { color: var(--faint); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.hb-kachel-pfeil svg { width: 18px; height: 18px; }
.hb-kachel:hover .hb-kachel-pfeil { transform: translateX(4px); color: var(--farbe); }
.hb-kachel-live { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.hb-kachel-live.is-up { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hb-kachel-live.is-down { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.hb-kachel-live.is-pending { background: var(--warn); }
.hb-kachel-wasser { position: absolute; right: -14px; bottom: -22px; z-index: -1; color: var(--farbe); opacity: 0.06; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.hb-kachel-wasser svg { width: 110px; height: 110px; }
.hb-kachel.is-gross .hb-kachel-wasser svg { width: 150px; height: 150px; }
.hb-kachel:hover .hb-kachel-wasser { opacity: 0.12; transform: rotate(-8deg) scale(1.05); }

/* Weitere Server */
.hb-server { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .hb-server { grid-template-columns: 1fr; } }
.hb-server-karte { min-height: 260px; }
.hb-server-karte.is-aufbau::before { filter: grayscale(0.6) brightness(0.7); }
.hb-server-unten p { margin: 8px 0 0; color: rgba(231, 232, 235, 0.8); font-size: 0.9rem; }
.hb-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.86rem; font-weight: 700; }
.hb-cta svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.hb-server-karte:hover .hb-cta svg { transform: translateX(4px); }

/* Fuß */
.hb-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px clamp(16px, 4vw, 40px) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--faint); }
.hb-foot a { color: var(--muted); text-decoration: none; }
.hb-foot a:hover { color: var(--text); }

@keyframes hb-puls { 50% { opacity: 0.45; } }
@keyframes hb-ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes hb-baustelle { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
