/* VORA: dunkel mit Neon. Systemschriften (keine Fremdschriften, keine Fremdanfragen). */
:root {
  --bg: #07060d;
  --panel: #0e0c1a;
  --panel-2: #14112a;
  --line: #2a2447;
  --text: #ece9ff;
  --muted: #9a94bd;
  --pink: #ff2bd6;
  --cyan: #22e6ff;
  --violet: #8b5cff;
  --radius: 18px;
  --max: 1120px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); line-height: 1.6;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(255, 43, 214, .16), transparent 60%),
    radial-gradient(800px 500px at 92% 0%, rgba(34, 230, 255, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* Kopfzeile */
.nav {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px max(16px, calc((100vw - var(--max)) / 2)); background: rgba(7, 6, 13, .78);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .12em; }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 20px; margin-left: 12px; }
.links a { color: var(--muted); font-size: .95rem; }
.links a:hover { color: var(--text); text-decoration: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 4px 12px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang a.on { background: var(--panel-2); color: var(--text); }
.lang a:hover { text-decoration: none; color: var(--text); }

/* Knöpfe */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; color: #0a0814; border: 0;
  background: linear-gradient(120deg, var(--pink), var(--violet) 55%, var(--cyan));
  box-shadow: 0 0 24px rgba(255, 43, 214, .35); transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 0 34px rgba(34, 230, 255, .45); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 230, 255, .25); }

/* Abschnitte */
main { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; margin: 0 0 14px; }
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; margin: 0 auto 18px; max-width: 18ch;
  background: linear-gradient(110deg, #fff 10%, var(--pink) 50%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 8px; }
h3 { margin: 0 0 6px; font-size: 1.15rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0 auto 28px; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section { padding: 56px 0; scroll-margin-top: 70px; }
.section > h2, .section-lead { text-align: center; }
.section-lead { color: var(--muted); margin: 0 auto 32px; max-width: 60ch; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--pink); box-shadow: 0 0 28px rgba(255, 43, 214, .18); transform: translateY(-3px); }
.card-cyan:hover { border-color: var(--cyan); box-shadow: 0 0 28px rgba(34, 230, 255, .18); }
.card p { margin: 0; color: var(--muted); }
.more { text-align: center; margin-top: 24px; }
.world {
  text-align: center; padding: 56px 24px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(500px 220px at 50% 0%, rgba(139, 92, 255, .28), transparent 70%), var(--panel);
}
.world .lead { margin-bottom: 0; }
.cta { text-align: center; }

/* Rechtstexte */
.page { padding: 56px 0 72px; max-width: 78ch; margin: 0 auto; }
.page h1 { margin: 0 0 8px; text-align: left; max-width: none; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { margin-top: 36px; font-size: 1.5rem; }
.legal h3 { margin-top: 24px; color: var(--cyan); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.muted { color: var(--muted); }
.notice { border: 1px dashed var(--pink); border-radius: 12px; padding: 12px 16px; color: var(--pink); }

.footer { text-align: center; padding: 40px 16px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Einblenden beim Scrollen (nur mit JavaScript und ohne „weniger Bewegung“) */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

@media (max-width: 720px) {
  .links { display: none; }
  .hero { padding: 64px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Angemeldet: Name mit Anfangsbuchstaben statt Profilbild (kein Bild von fremden Servern) */
.inline { display: inline; margin: 0; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.user { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.user:hover { text-decoration: none; }
.avatar {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .85rem; font-weight: 800; color: #0a0814;
  background: linear-gradient(135deg, var(--pink), var(--cyan)); box-shadow: 0 0 14px rgba(255, 43, 214, .35);
}
.user-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-left { margin-left: 0; }
@media (max-width: 720px) { .user-name { display: none; } }

/* ---------- Startseite: geteilter Kopfbereich mit Neon-Gitter und wechselnden Discord-Karten ---------- */
.hero-split {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  text-align: left; padding: 88px 0 80px; isolation: isolate;
}
.hero-split h1 { margin: 0 0 18px; max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.02em; }
.hero-split .lead { margin: 0 0 30px; }
.hero-split .actions { justify-content: flex-start; }
.hero-glow {
  position: absolute; inset: -40px -16px 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(139, 92, 255, .14) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(139, 92, 255, .14) 1px, transparent 1px) 0 0 / 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  animation: grid-drift 18s linear infinite;
}
@keyframes grid-drift { to { background-position: 46px 46px, 46px 46px; } }

.stats { display: flex; gap: 36px; margin: 40px 0 0; padding: 0; }
.stats div { margin: 0; }
.stats dt {
  font-size: 2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }

/* Gestapelte Karten: die aktive liegt vorne, die nächste schimmert dahinter */
.demo { position: relative; height: 300px; perspective: 1200px; }
.dcard {
  position: absolute; inset: 0 0 auto; margin: auto; max-width: 380px; padding: 22px 24px 22px 28px; border-radius: 18px;
  background: linear-gradient(160deg, #1a1633, #100d20); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(26px) scale(.94) rotateX(8deg);
  transition: opacity .6s ease, transform .6s ease, box-shadow .6s ease;
}
.dcard::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; background: var(--accent); }
.dcard-pink { --accent: var(--pink); --glow: rgba(255, 43, 214, .35); }
.dcard-violet { --accent: var(--violet); --glow: rgba(139, 92, 255, .35); }
.dcard-cyan { --accent: var(--cyan); --glow: rgba(34, 230, 255, .35); }
.dcard.is-active { opacity: 1; transform: none; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 40px var(--glow); z-index: 2; }
.dcard.is-next { opacity: .35; transform: translateY(-22px) scale(.92); z-index: 1; }
.dcard h3 { margin: 4px 0 12px; font-size: 1.25rem; }
.dcard p { margin: 0 0 8px; color: var(--muted); }
.dcard .dtag { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 700; }
.drows { margin: 0; display: grid; gap: 8px; }
.drows div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.drows dt { color: var(--muted); }
.drows dd { margin: 0; font-weight: 600; }
.dbar { height: 10px; border-radius: 99px; background: #241f42; overflow: hidden; margin: 14px 0 10px; }
.dbar span { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink)); }
.dcard.is-active .dbar span { animation: fill 1.4s ease-out; }
@keyframes fill { from { width: 8%; } }
.dcard .dreward { color: var(--cyan); font-weight: 700; }
.dbuttons { display: flex; gap: 10px; margin-top: 14px; }
.dbtn { padding: 7px 14px; border-radius: 8px; background: #2a2547; font-size: .9rem; font-weight: 600; }
.dbtn-ok { background: linear-gradient(120deg, #1fbf75, #22e6a0); color: #06140d; }

/* Ohne JavaScript: alle Karten sichtbar untereinander statt gestapelt */
html:not(.js-demo) .demo { height: auto; display: grid; gap: 16px; }
html:not(.js-demo) .dcard { position: relative; opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; padding-top: 64px; gap: 36px; }
  .hero-split h1, .hero-split .lead { margin-left: auto; margin-right: auto; }
  .hero-split .actions, .stats { justify-content: center; }
  .demo { height: 280px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .dcard.is-active .dbar span { animation: none; }
}

/* Kopfzeile auf dem Handy: Knöpfe nicht umbrechen; „Einladen“ steht dort groß im Kopfbereich */
.nav .btn { white-space: nowrap; }
@media (max-width: 480px) { .nav-end > a.btn:not(.btn-ghost) { display: none; } }

/* ---------- Dashboard: ruhig und klar, Neon nur als Akzent ---------- */
.dash { max-width: var(--max); margin: 0 auto; padding: 48px 0 72px; }
.dash-head { margin-bottom: 28px; }
.dash-kicker { margin: 0 0 8px; color: var(--violet); font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.dash-kicker::before { content: "// "; opacity: .6; }
.dash-title {
  margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.2; max-width: none; text-align: left;
  background: none; color: var(--text); -webkit-background-clip: border-box; background-clip: border-box;
}
.dash-sub { margin: 6px 0 0; color: var(--muted); }
.dash-foot { margin-top: 18px; color: var(--muted); font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.panel { position: relative; background: linear-gradient(180deg, rgba(139, 92, 255, .05), transparent 140px), var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--violet); border-style: solid; opacity: .7; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.panel-note { margin: 6px 0 18px; color: var(--muted); font-size: .92rem; }
.count { font-family: var(--mono); font-size: .75rem; font-weight: 600; color: #c9b8ff; background: rgba(139, 92, 255, .12); border: 1px solid rgba(139, 92, 255, .35); border-radius: 6px; padding: 1px 8px; }
.search input {
  width: 240px; max-width: 100%; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; font-size: .92rem;
}
.search input { font-family: var(--mono); font-size: .85rem; }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 255, .2); }
.state { margin: 0; padding: 18px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); }
.state-error { border-color: rgba(255, 43, 214, .45); color: var(--text); }

/* Server als Liste: ganze Zeile klickbar, Einladen als leiser Textlink */
.srv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.srv { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); transition: border-color .15s, background .15s; }
.srv:hover { border-color: rgba(139, 92, 255, .6); background: #17132e; box-shadow: 0 0 0 1px rgba(139, 92, 255, .15), 0 8px 30px rgba(139, 92, 255, .12); }
.srv-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px 34px; color: var(--text); }
.srv-main:hover { text-decoration: none; }
.srv-text { display: grid; min-width: 0; flex: 1; }
.srv-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-role { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.srv-go { color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; transition: color .15s; }
.srv:hover .srv-go { color: #c9b8ff; }
.srv-invite { position: absolute; left: 78px; bottom: 10px; font-size: .82rem; color: var(--muted); }
.srv-invite:hover { color: #c9b8ff; }

.srv-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  font-weight: 750; font-size: .95rem; color: #fff; background: var(--tone, #3a3366);
}
.srv-icon-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.2rem; }
.tone-0 { --tone: #4c2fc9; } .tone-1 { --tone: #6a3df0; } .tone-2 { --tone: #8b4dff; } .tone-3 { --tone: #3f3aa8; }
.tone-4 { --tone: #7a2bd4; } .tone-5 { --tone: #5541e0; } .tone-6 { --tone: #9a3ce0; } .tone-7 { --tone: #4a2a9e; }

/* Server-Seite: Menü links, Inhalt rechts */
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.back:hover { color: var(--text); text-decoration: none; }
.srv-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.console { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.side { display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.side-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; font-size: .93rem; }
.side-item.is-current { background: var(--panel-2); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--violet); }
.side-item.is-off { color: var(--muted); }
.soon { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.actions-left { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .console { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .srv-list { grid-template-columns: 1fr; }
}

/* ---------- Effekte (Cyber, dezent). Alles aus bei „weniger Bewegung“. ---------- */

/* Knöpfe: klare Stufen statt Verlauf. Primär = Lila, einfarbig; Sekundär = dunkel mit Rand. */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid #9b72ff; font-weight: 650; letter-spacing: .01em; color: #fff;
  background: var(--violet); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .4);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { text-decoration: none; transform: none; background: #9a70ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 4px rgba(139, 92, 255, .18); }
.btn:active { transform: translateY(1px); background: #7a4cf0; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3); }
.btn:focus-visible { outline: 2px solid #c9b8ff; outline-offset: 2px; }
.btn-small { padding: 7px 14px; font-size: .88rem; border-radius: 8px; }
.btn-ghost { color: var(--text); background: #14112a; border-color: #2f2950; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.btn-ghost:hover { background: #1b1736; border-color: #4a3f80; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.btn-ghost:active { background: #120f24; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3); }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg);
}
.btn:hover::after { animation: sheen .8s ease; }
.btn-ghost::after { display: none; }
@keyframes sheen { to { left: 130%; } }

/* Lichtkegel folgt der Maus (Position kommt per JavaScript als --mx/--my) */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 255, .18), transparent 65%);
}
.fx-spot:hover::after { opacity: 1; }

/* Navigation: leuchtende Unterstreichung */
.links a { position: relative; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--violet);
  box-shadow: 0 0 10px var(--violet); transform: scaleX(0); transition: transform .2s ease;
}
.links a:hover::after { transform: scaleX(1); }

/* Server-Kacheln blenden gestaffelt ein */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.srv { animation: rise .45s ease both; }
.srv:nth-child(2) { animation-delay: .04s; } .srv:nth-child(3) { animation-delay: .08s; } .srv:nth-child(4) { animation-delay: .12s; }
.srv:nth-child(5) { animation-delay: .16s; } .srv:nth-child(6) { animation-delay: .2s; } .srv:nth-child(7) { animation-delay: .24s; }
.srv:nth-child(n+8) { animation-delay: .28s; }
.panel, .side { animation: rise .5s ease both; }

/* Server-Symbol: feiner Lichtrand beim Darüberfahren */
.srv-icon { transition: box-shadow .2s, transform .2s; }
.srv:hover .srv-icon { box-shadow: 0 0 0 2px rgba(255, 255, 255, .08), 0 0 22px var(--tone); transform: translateY(-1px); }
.srv:hover .srv-go span { display: inline-block; animation: nudge .6s ease infinite alternate; }
@keyframes nudge { to { transform: translateX(3px); } }

/* Terminal-Cursor hinter entschlüsselten Überschriften */
[data-scramble].fx-typing::after { content: "▍"; margin-left: 2px; color: var(--violet); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Feine Scanlines über dem Kopfbereich der Startseite */
.hero-split::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}

@media (prefers-reduced-motion: reduce) {
  .srv, .panel, .side { animation: none; }
  .btn:hover::after, .srv:hover .srv-go span, [data-scramble].fx-typing::after { animation: none; }
}

/* ---------- Hover für alles, was klickbar ist ---------- */
a, button, .srv-main { cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ghost:hover { border-color: var(--violet); color: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 255, .15); }

/* Tabs oben: Pill-Hintergrund + leuchtende Linie */
.links a { padding: 6px 10px; margin: 0 -4px; border-radius: 8px; transition: color .15s, background .15s; }
.links a::after { left: 10px; right: 10px; bottom: 0; }
.links a:hover { color: #fff; background: rgba(139, 92, 255, .12); }

/* Logo, Sprache, Name */
.brand img { transition: filter .2s, transform .2s; }
.brand:hover img { filter: drop-shadow(0 0 8px rgba(139, 92, 255, .8)); transform: rotate(-6deg) scale(1.06); }
.brand span { transition: color .2s, text-shadow .2s; }
.brand:hover span { color: #fff; text-shadow: 0 0 12px rgba(139, 92, 255, .7); }
.lang a { transition: background .15s, color .15s; }
.lang a:not(.on):hover { background: rgba(139, 92, 255, .14); color: #fff; }
.lang a.on { background: var(--violet); color: #fff; }
.user { padding: 4px 10px 4px 4px; border-radius: 999px; transition: background .15s; }
.user:hover { background: rgba(139, 92, 255, .12); }
.avatar { background: var(--violet); color: #fff; transition: box-shadow .2s; }
.user:hover .avatar { box-shadow: 0 0 0 3px rgba(139, 92, 255, .3), 0 0 14px rgba(139, 92, 255, .6); }

/* Links in Fußzeile, Texten und „Zurück“ */
.footer-links a, .back, .more a, .srv-invite, .legal a { transition: color .15s; }
.footer-links a:hover, .more a:hover, .legal a:hover { color: #c9b8ff; text-decoration: none; }
.back:hover { color: #c9b8ff; }

/* Karten heben sich leicht, Menü links reagiert */
.card { transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: rgba(139, 92, 255, .6); box-shadow: 0 10px 34px rgba(139, 92, 255, .14); transform: translateY(-3px); }
.card-cyan:hover { border-color: rgba(139, 92, 255, .6); box-shadow: 0 10px 34px rgba(139, 92, 255, .14); }
.srv { transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.srv:hover { transform: translateY(-2px); }
.side-item { transition: background .15s, color .15s; }
.side-item.is-off:hover { background: rgba(139, 92, 255, .08); color: var(--text); cursor: not-allowed; }
.search input:hover { border-color: #3d3566; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .card:hover, .srv:hover, .brand:hover img { transform: none; }
}

/* ================= Lieferung A: Schrift, Kopfbereich mit Terminal, „So funktioniert's“ ================= */
@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
h1, h2, h3, .brand span, .btn, .stats dt { font-family: var(--display); }
h2 { letter-spacing: -.02em; }

/* Kicker: Monospace, lila, mit Kommentar-Strichen */
.kicker { margin: 0 0 18px; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #b69cff; }
.kicker::before { content: "// "; color: var(--violet); }
.kicker-center { text-align: center; }

/* Überschrift: weiß, eng gesetzt; nur ein Wort in Lila mit Glow */
.display {
  margin: 0 0 22px; max-width: 13ch; font-size: clamp(2.7rem, 6.6vw, 5rem); font-weight: 700; line-height: .98; letter-spacing: -.035em;
  background: none; color: #f4f1ff; -webkit-background-clip: border-box; background-clip: border-box;
}
.display .accent { color: var(--violet); text-shadow: 0 0 28px rgba(139, 92, 255, .55); }
.display-2 { text-align: center; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; margin: 0 0 40px; }
.hero-split .lead { font-size: 1.15rem; max-width: 46ch; }
.stats dt { background: none; color: #f4f1ff; -webkit-background-clip: border-box; background-clip: border-box; font-weight: 700; }
.stats dd { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; }

/* Terminal-Fenster */
.term {
  position: relative; border-radius: 16px; border: 1px solid #2c2650; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 17, 42, .92), rgba(12, 10, 26, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(139, 92, 255, .08), 0 0 60px rgba(139, 92, 255, .14);
  backdrop-filter: blur(6px);
}
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #241f42; background: rgba(255, 255, 255, .02); }
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2f2a4f; }
.term-dots i:first-child { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.term-channel { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.term-body { padding: 18px 18px 22px; }
.term-line { margin: 0 0 16px; font-family: var(--mono); font-size: .95rem; color: #e9e4ff; min-height: 1.5em; }
.term-prompt { color: var(--violet); font-weight: 700; }
.term-caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--violet); animation: blink .9s steps(1) infinite; }
.term-stage { position: relative; height: 230px; }
.term .dcard { inset: 0 0 auto; max-width: none; margin: 0; background: #15122b; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.term .dcard.is-next { opacity: 0; transform: translateY(14px) scale(.97); }
.term .dcard.is-active { transform: none; }
html:not(.js-demo) .term-stage { height: auto; }

/* So funktioniert's: drei Schritte mit Verbindungslinie */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; counter-reset: none; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 255, .6), transparent);
}
.step { position: relative; padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, transform .2s, box-shadow .2s; }
.step:hover { border-color: rgba(139, 92, 255, .6); transform: translateY(-3px); box-shadow: 0 10px 34px rgba(139, 92, 255, .14); }
.step-no {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
  font-family: var(--mono); font-weight: 700; color: #fff; background: #1d1838; border: 1px solid rgba(139, 92, 255, .5); box-shadow: 0 0 18px rgba(139, 92, 255, .25);
}
.step h3 { margin: 0 0 6px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }
.chip { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 7px; font-family: var(--mono); font-size: .85rem; color: #d8ccff; background: rgba(139, 92, 255, .14); border: 1px solid rgba(139, 92, 255, .35); }

@media (max-width: 900px) {
  .display { margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .term { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .term-caret { animation: none; } .step:hover { transform: none; } }
