/* ---------------------------------------------------------------------------
   PLAXIA – Neo-Design (Test der neuen Startseite, /neo/)
   Dunkel, ruhig, kartenbasiert. Ein Akzent: PLAXIA-Blau.
   --------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --card: #161616;
  --card-2: #1d1d1d;
  --card-3: #252525;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f0f0f0;
  --muted: #9b9b9b;
  --muted-2: #767676;
  --accent: #4655e8;
  --accent-hi: #7182ff;
  --accent-soft: rgba(70, 85, 232, .16);
  --ok: #4cd391;
  --r-xl: 23px;
  --r-lg: 18px;
  --r-md: 11px;
  --r-sm: 9px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.display { font-family: Lexend, Inter, sans-serif; letter-spacing: -.035em; font-weight: 500; line-height: 1.05; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & Chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #5666f2; }
.btn--light { background: var(--text); color: #0f0f0f; }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--line:hover { background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font-size: 13px; font-weight: 500; color: var(--text);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(76, 211, 145, .18); }

/* ---------- Header (durchgezogene Leiste) ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 15, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
}
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 72px; }
.top-cta { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Lexend, Inter, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.brand img { width: 26px; height: 31px; object-fit: contain; }

.nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent-hi); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--text); }
.nav-link:hover::after, .nav-item.is-open > .nav-link::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.caret { width: 6px; height: 6px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .2s; }
.nav-item.is-open .caret { transform: rotate(-135deg); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 200px; padding: 6px; display: grid; gap: 2px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 6px); transition: .18s var(--ease);
}
.nav-item.is-open > .menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.menu a { padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 24px; }
.hero-card {
  position: relative; isolation: isolate; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--card);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px); gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 72px); min-height: 700px;
}
/* Bild und Schleier liegen in eigener Ebene, damit das Join-Panel über den Kartenrand ragen darf. */
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, .94) 0%, rgba(15, 15, 15, .72) 48%, rgba(15, 15, 15, .38) 100%),
    linear-gradient(0deg, rgba(15, 15, 15, .7), transparent 40%);
}
.hero h1 { margin: 24px 0 22px; font-size: clamp(46px, 5.6vw, 84px); letter-spacing: -.045em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent-hi); }
.hero-lead { max-width: 540px; color: #bdbdbd; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Join-Panel */
.join {
  padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: rgba(22, 22, 22, .86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .06) inset;
  position: relative; z-index: 2;
}
.join-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.join-head h2 { font-family: Lexend, Inter, sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.live[hidden] { display: none; }
.live b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.live .dot.is-warn { background: #e8b04a; box-shadow: 0 0 0 3px rgba(232, 176, 74, .18); }
.live .dot.is-down { background: #e5655f; box-shadow: 0 0 0 3px rgba(229, 101, 95, .18); }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
/* gleitender Auswahl-Indikator */
.seg::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 8px;
  background: var(--card-3); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
  transition: transform .32s var(--ease);
}
.seg[data-active="bedrock"]::before { transform: translateX(calc(100% + 4px)); }
.seg button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color .2s;
}
.seg button img { width: 18px; height: 20px; object-fit: contain; }
.seg button[aria-selected="true"] { color: var(--text); }
@keyframes swap { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.is-swapping { animation: swap .28s var(--ease); }

.addr {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 8px 8px 8px 18px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--bg);
}
.addr small { display: block; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.addr strong { display: block; font-family: Lexend, Inter, sans-serif; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.addr .btn { min-height: 42px; min-width: 112px; padding: 0 18px; }
.btn.is-done { background: var(--ok); color: #0f0f0f; }
.addr-meta { margin-top: 10px; padding-inline: 4px; color: var(--muted); font-size: 13px; min-height: 20px; }
.addr-meta b { color: var(--text); font-weight: 600; }

.steps { margin-top: 16px; display: grid; gap: 8px; }
.steps li {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 11px; background: var(--card-2); font-size: 14px; color: #cfcfcf;
}
.steps li > span {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-hi); font-size: 12px; font-weight: 700;
}
.steps b { color: var(--text); font-weight: 600; }
.join-note { margin-top: 14px; padding-inline: 4px; color: var(--muted-2); font-size: 12.5px; line-height: 1.55; }
.join-note a { color: var(--accent-hi); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.stat { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.stat small { display: block; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.stat strong { display: block; margin-top: 8px; font-family: Lexend, Inter, sans-serif; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.025em; }

/* ---------- Abschnitte ---------- */
.sec { padding-top: clamp(96px, 13vw, 184px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-hi); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.statement { display: grid; grid-template-columns: 1fr minmax(0, 2.2fr); gap: 40px; align-items: start; }
.statement .kicker { grid-column: 1; grid-row: 1; padding-top: 14px; }
.statement h2 { grid-column: 2; grid-row: 1; font-size: clamp(36px, 5vw, 72px); letter-spacing: -.045em; line-height: 1.04; }
.statement > p:last-child { grid-column: 2; grid-row: 2; max-width: 600px; margin-top: -8px; color: var(--muted); font-size: 18px; line-height: 1.7; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { margin-top: 10px; font-size: clamp(34px, 4.4vw, 62px); letter-spacing: -.04em; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s; white-space: nowrap; }
.link:hover { color: var(--text); }
.link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.tile {
  position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  transition: border-color .3s, transform .35s var(--ease);
}
.tile:hover { border-color: var(--line-2); }
.tile h3 { font-family: Lexend, Inter, sans-serif; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 460px; }
.tile .label { display: inline-block; margin-bottom: 14px; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

.t-plan { grid-column: 1 / 6; grid-row: 1 / 4; display: flex; flex-direction: column; }
.t-plan .rows { margin-top: auto; padding-top: 34px; display: grid; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line);
  font-weight: 500; transition: background .2s, border-color .2s;
}
.row:hover { background: var(--card-3); border-color: var(--line-2); }
.row .n { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-hi); font-size: 13px; font-weight: 700; }
.row .go { margin-left: auto; width: 16px; height: 16px; color: var(--muted-2); }
.t-plan .link { margin-top: 22px; }

.t-comm { grid-column: 6 / 13; background: var(--accent); border-color: transparent; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; }
.t-comm .label, .t-comm p { color: rgba(255, 255, 255, .78); }
.t-comm .btn { align-self: flex-start; margin-top: 22px; }
.t-comm::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 36px rgba(255, 255, 255, .035), 0 0 0 72px rgba(255, 255, 255, .025);
  pointer-events: none;
}

.t-sys { grid-column: 6 / 13; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 9px 15px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: #cfcfcf; }
.chips span.more { background: var(--accent-soft); border-color: transparent; color: var(--accent-hi); font-weight: 600; }

.t-wiki { grid-column: 6 / 13; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.round { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: #0f0f0f; transition: transform .25s var(--ease), background .2s; }
.round svg { width: 20px; height: 20px; }
.t-wiki:hover .round { transform: scale(1.06) rotate(-45deg); background: #fff; }

/* Discord */
.discord {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 3.6vw, 44px) clamp(28px, 4.4vw, 56px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card);
}
.discord h2 { margin: 14px 0 10px; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.04em; }
.discord p { max-width: 480px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.discord .btn { margin-top: 22px; }
.discord-art { position: relative; min-height: 0; display: grid; place-items: center; }
.discord-art::before {
  content: ""; position: absolute; width: 260px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 85, 232, .4), transparent 68%);
}

/* ---------- Footer ---------- */
.foot { padding-top: clamp(80px, 10vw, 130px); padding-bottom: 36px; }
.foot-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.foot-main p { max-width: 380px; margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.foot-links > div { display: grid; align-content: start; gap: 12px; }
.foot-links span { margin-bottom: 4px; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.foot-links a { width: max-content; font-size: 14px; font-weight: 500; color: #cfcfcf; }
.foot-links a:hover { color: var(--accent-hi); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; color: var(--muted-2); font-size: 12px; }
.foot-bottom div { display: flex; gap: 20px; }
.foot-bottom a:hover { color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card-3); font-size: 14px; font-weight: 500; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Einblenden ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-grid; place-content: center; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.4px) rotate(-45deg); }
  .top-in { display: flex; position: static; height: 64px; }
  .nav-link::after { display: none; }
  .top-cta { display: none; }
  .brand { margin-right: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 16px; border-bottom: 1px solid var(--line);
    background: var(--card-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-item { display: block; }
  .nav-link { width: 100%; justify-content: space-between; min-height: 48px; padding: 0 6px; }
  .menu { position: static; transform: none; min-width: 0; border: 0; box-shadow: none; background: transparent; display: none; opacity: 1; visibility: visible; pointer-events: auto; padding: 0 0 6px 10px; }
  .nav-item.is-open > .menu { display: grid; transform: none; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .stats { margin-top: 12px; }
  .statement { grid-template-columns: 1fr; gap: 16px; }
  .statement .kicker, .statement h2, .statement > p:last-child { grid-column: 1; grid-row: auto; margin-top: 0; padding-top: 0; }
  .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .t-plan .rows { padding-top: 26px; }
  .discord { grid-template-columns: 1fr; }
  .discord-art { min-height: 0; height: 110px; order: -1; }
  .foot-main { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .stats { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
  .addr strong { font-size: 17px; }
  .tile { padding: 24px; }
}
.discord-art img { position: relative; width: 92px; height: auto; }

/* ---------- Hidden, Sprachwechsel ---------- */
[hidden] { display: none !important; }
.lang-fab {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 80;
  width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), border-color .2s;
}
.lang-fab:hover { transform: translateY(-2px); border-color: var(--accent-hi); }
.lang-fab img { width: 100%; height: 100%; object-fit: cover; }
.lang-fab span { position: absolute; inset: auto 0 3px; text-align: center; font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
