/* VexoClient – Webseite und Team-Bereich (ohne externe Schriften/Bibliotheken) */
:root {
  --bg: #0b0914;
  --bg2: #110e1f;
  --card: rgba(255, 255, 255, 0.045);
  --card2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #f4f2ff;
  --soft: #cfc9ea;
  --muted: #9089b3;
  --accent: #7c5cff;
  --accent2: #4f8eff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --gold: #ffc83d;
  --green: #4ade80;
  --red: #f87171;
  --orange: #ff8a1f;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(124, 92, 255, 0.45); }

/* Hintergrund: Leuchten + Raster wie die Launcher-Buehne */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 20% 10%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(35% 30% at 85% 20%, rgba(79, 142, 255, 0.18), transparent 70%),
    radial-gradient(45% 40% at 60% 95%, rgba(124, 92, 255, 0.14), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 85%);
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ---------------------------------------------------------------- Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(var(--glass), 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(var(--glass), 0.82); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; font-size: 19px; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(124, 92, 255, .6)); }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .4px; margin-top: -3px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--soft); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--card2); color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--soft);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
.dot.on { background: var(--green); animation: pulse 2s infinite; }
.dot.off { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }

/* ---------------------------------------------------------------- Knoepfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px;
  border-radius: 14px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(124, 92, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: var(--card); border-color: var(--line2); color: #fff; }
.btn-ghost:hover { background: var(--card2); border-color: rgba(124, 92, 255, .6); }
.btn-team { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; background: rgba(255, 77, 77, .1);
  border-color: rgba(255, 77, 77, .45); color: #ffd6d6; }
.btn-team:hover { background: rgba(255, 77, 77, .2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.btn-danger:hover { background: rgba(248, 113, 113, .22); }
.btn-gold { background: rgba(255, 200, 61, .12); border-color: rgba(255, 200, 61, .5); color: #ffe7a3; }
.btn-gold:hover { background: rgba(255, 200, 61, .22); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(124, 92, 255, .35); color: #dcd3ff; font-size: 13px; font-weight: 700; }
.badge b { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; letter-spacing: .3px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 20px 0 18px; letter-spacing: -1.5px; font-weight: 850; }
.grad { background: linear-gradient(100deg, #b9a8ff 0%, #7c5cff 40%, #4f8eff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18.5px; color: var(--soft); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; color: var(--muted); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--green); }

.stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; margin-left: auto; width: 100%; }
.stage .ring { position: absolute; inset: 8% 6% 14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .42), rgba(124, 92, 255, .08) 60%, transparent 72%); filter: blur(4px); }
.stage .floor { position: absolute; left: 14%; right: 14%; bottom: 6%; height: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .5), transparent 75%); filter: blur(6px); }
.stage .hero-fig { position: absolute; inset: 0; margin: auto; width: 82%; animation: bob 4.2s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); image-rendering: auto; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-14px) rotate(.5deg); } }
.orbit { position: absolute; width: 74px; height: 74px; border-radius: 20px; background: rgba(20, 16, 36, .75);
  border: 1px solid var(--line2); backdrop-filter: blur(8px); display: grid; place-items: center; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite; }
.orbit img { width: 60px; height: 60px; }
.orbit.o1 { top: 6%; left: 2%; animation-delay: -1s; }
.orbit.o2 { top: 18%; right: 0; animation-delay: -3s; }
.orbit.o3 { bottom: 20%; left: 0; animation-delay: -2s; }
.orbit.o4 { bottom: 10%; right: 6%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

/* ---------------------------------------------------------------- Zahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 10px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; font-weight: 850; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- Abschnitte */
section.block { padding: 90px 0 20px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow { color: #b9a8ff; font-weight: 800; letter-spacing: 1.6px; font-size: 12.5px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 10px 0 12px; letter-spacing: -.8px; }
.sec-head p { color: var(--soft); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform .25s ease, border-color .25s, background .25s; }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .22), transparent); opacity: 0; transition: opacity .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .45); background: var(--card2); }
.feature:hover::after { opacity: 1; }
.ficon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .3), rgba(79, 142, 255, .18)); border: 1px solid rgba(124, 92, 255, .4); }
.ficon svg { width: 24px; height: 24px; color: #d9d0ff; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--soft); font-size: 15px; }

/* Kosmetik */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--soft);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; }
.tab:hover { color: #fff; border-color: rgba(124, 92, 255, .5); }
.tab.on .muted { color: rgba(255, 255, 255, .78); }
.tab.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px rgba(124, 92, 255, .35); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.item { position: relative; padding: 14px 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  text-align: center; transition: transform .22s ease, border-color .22s, background .22s; }
.item:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .5); background: var(--card2); }
.item img { width: 104px; height: 104px; margin: 0 auto 8px; transition: transform .3s ease; }
.item:hover img { transform: scale(1.08) rotate(-2deg); }
.item b { display: block; font-size: 14.5px; }
.tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; }
.tag.free { background: rgba(74, 222, 128, .12); color: #86efac; }
.tag.code { background: rgba(255, 255, 255, .08); color: var(--soft); }
.tag.plus { background: rgba(255, 200, 61, .14); color: #ffe08a; }
.tag.beta { background: linear-gradient(90deg, rgba(124, 92, 255, .3), rgba(255, 200, 61, .25)); color: #fff1c7; }
.items-more { text-align: center; margin-top: 22px; }

.spotlight { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; padding: 26px 30px; margin-bottom: 30px;
  border-radius: 24px; background: linear-gradient(120deg, rgba(255, 255, 255, .07), rgba(124, 92, 255, .12)); border: 1px solid var(--line2);
  position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; left: 40px; top: -60px; width: 200px; height: 340px; transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255, 233, 168, .22), transparent); filter: blur(10px); animation: sweep 6s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translateX(-30px) rotate(14deg); } to { transform: translateX(40px) rotate(22deg); } }
.spotlight img { width: 230px; margin: 0 auto; position: relative; animation: bob 4.6s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.spotlight h3 { font-size: 26px; margin: 12px 0 8px; letter-spacing: -.4px; }
.spotlight p { color: var(--soft); margin: 0; }

/* Vexo+ */
.plus-card { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 40px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 200, 61, .12), rgba(124, 92, 255, .14)); border: 1px solid rgba(255, 200, 61, .3);
  position: relative; overflow: hidden; }
.plus-card::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 61, .25), transparent); }
.plus-card h2 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 12px; letter-spacing: -.6px; }
.plus-card p { color: var(--soft); margin: 0 0 22px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.perks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .07); }
.perks svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
.nt-demo { font-weight: 850; font-size: 30px; letter-spacing: .5px; }
.nt-demo span { display: inline-block; animation: wave 1.6s ease-in-out infinite; background: linear-gradient(180deg, #fff3c4, #ffc83d);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, border-color .22s; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .45); }
.news-card .img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(79, 142, 255, .2)); display: grid; place-items: center; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .img svg { width: 44px; height: 44px; color: rgba(255, 255, 255, .7); }
.news-card .body { padding: 18px 20px 20px; }
.news-card time { color: var(--muted); font-size: 13px; font-weight: 600; }
.news-card h3 { margin: 6px 0 8px; font-size: 18px; }
.news-card { position: relative; }
.news-card.update { border-color: rgba(96, 165, 250, .35); background: linear-gradient(180deg, rgba(96, 165, 250, .08), var(--card) 42%); }
.news-card.update:hover { border-color: rgba(96, 165, 250, .6); }
.news-card .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.news-card .meta .kind { margin-left: 0; margin-right: 8px; order: -1; }
.kind.ver { background: rgba(255, 255, 255, .1); color: #fff; letter-spacing: .3px; text-transform: none; margin-left: 0; margin-right: 8px; order: -1; }
.news-card .news-text { position: relative; max-height: 9.6em; overflow: hidden; color: var(--soft); font-size: 14.5px; line-height: 1.6; }
.news-card .news-text p { margin: 0 0 .5em; white-space: pre-line; }
.news-card .news-text ul { margin: 0 0 .4em; padding: 0; list-style: none; }
.news-card .news-text li { position: relative; padding-left: 18px; margin: 0 0 .3em; }
.news-card .news-text li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.news-card.update .news-text li::before { background: #60a5fa; }
.news-card .news-text.long:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--card)); }
.news-card .news-text.open { max-height: none; }
.news-card .more { margin-top: 8px; padding: 0; background: none; border: 0; color: #b9a8ff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.news-card.update .more { color: #93c5fd; }
.news-card .more:hover { color: #fff; }
.kind { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 2px 8px; border-radius: 999px; margin-left: 8px;
  background: var(--accent-soft); color: #cfc3ff; text-transform: uppercase; }
.kind.update { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.kind.event { background: rgba(250, 204, 21, .14); color: #fde68a; }
.kind.event { background: rgba(74, 222, 128, .13); color: #86efac; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }
.load-err { display: grid; justify-items: center; gap: 12px; }
.load-err p { margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(124, 92, 255, .45); background: var(--card2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: #b9a8ff; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--soft); }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.support-grid .feature h3 { display: flex; align-items: center; gap: 10px; }

/* Download-Band */
.cta-band { margin: 90px auto 0; padding: 50px; border-radius: 28px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(79, 142, 255, .22)); border: 1px solid rgba(124, 92, 255, .45); }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; letter-spacing: -.6px; }
.cta-band p { color: #e6e0ff; margin: 0 0 24px; }

footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer a:hover { color: #fff; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { margin: 0 auto; max-width: 420px; }
  .features, .news, .support-grid { grid-template-columns: 1fr 1fr; }
  .plus-card { grid-template-columns: 1fr; padding: 28px; }
  .spotlight { grid-template-columns: 1fr; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px;
    background: rgba(var(--glass), .97); border-bottom: 1px solid var(--line); margin: 0; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .status-pill { display: none; }
  .features, .news, .support-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .cta-band { padding: 32px 20px; }
  .orbit { width: 58px; height: 58px; border-radius: 16px; }
  .orbit img { width: 46px; height: 46px; }
}
@media (max-width: 420px) {
  .nav .btn-primary { display: none; }
  .items { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================ Team-Bereich */
.team-body { min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.login-card { width: min(440px, 100%); padding: 34px; border-radius: 24px; background: rgba(17, 14, 31, .82); border: 1px solid var(--line2);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); animation: pop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.login-card .brand { justify-content: center; margin-bottom: 6px; font-size: 22px; }
.login-card h1 { text-align: center; font-size: 22px; margin: 6px 0 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
label.f { display: block; font-size: 13px; font-weight: 700; color: var(--soft); margin: 14px 0 6px; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(0, 0, 0, .28); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: rgba(124, 92, 255, .8); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); }
.code-input { letter-spacing: 10px; font-size: 22px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.err { color: #fecaca; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); padding: 10px 12px;
  border-radius: 12px; font-size: 14px; margin-top: 14px; display: none; }
.err.show { display: block; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.login-card .btn { width: 100%; margin-top: 20px; }
.back-link { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: #fff; }

.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--line); background: rgba(13, 11, 24, .72);
  display: flex; flex-direction: column; gap: 6px; backdrop-filter: blur(12px); }
.side .brand { padding: 0 8px 18px; }
.side a.nav-i { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--soft); font-weight: 650;
  cursor: pointer; transition: background .2s, color .2s; position: relative; }
.side a.nav-i svg { width: 18px; height: 18px; }
.side a.nav-i:hover { background: var(--card2); color: #fff; }
.side a.nav-i.on { background: linear-gradient(135deg, rgba(124, 92, 255, .9), rgba(79, 142, 255, .75)); color: #fff;
  box-shadow: 0 8px 22px rgba(124, 92, 255, .3); }
.side .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.side .me { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.side .me b { display: block; }
.role { display: inline-block; font-size: 11px; font-weight: 850; letter-spacing: .6px; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.role.owner { background: rgba(255, 77, 77, .15); color: #ff8a8a; }
.role.admin { background: rgba(255, 167, 38, .15); color: #ffc97a; }
.role.supporter { background: rgba(56, 189, 248, .15); color: #8bd8fb; }
.main { padding: 26px 30px 60px; min-width: 0; }
.main-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.main-head h1 { margin: 0; font-size: 28px; letter-spacing: -.4px; }
.main-head .sp { flex: 1; }
.view { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card .k { color: var(--muted); font-size: 13px; font-weight: 700; }
.card .v { font-size: 30px; font-weight: 850; letter-spacing: -.5px; margin-top: 4px; }
.panel { margin-top: 18px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.panel h2 { margin: 0 0 14px; font-size: 18px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.chart .bar i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #9c84ff, #5b3fe0);
  min-height: 3px; transform-origin: bottom; animation: grow .6s cubic-bezier(.2, .8, .2, 1) both; }
.chart .bar small { color: var(--muted); font-size: 11px; white-space: nowrap; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 320px; }
.toolbar select.input { max-width: 260px; min-width: 210px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; transition: background .15s; }
.tbl tr.click:hover { background: rgba(255, 255, 255, .04); }
.tbl tr.sel { background: rgba(124, 92, 255, .12); }
.head-img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; background: #222; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--soft); }
.chip.on { background: rgba(74, 222, 128, .14); color: #86efac; }
.chip.ban { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.chip.plus { background: rgba(255, 200, 61, .15); color: #ffe08a; }
.chip.open { background: rgba(250, 204, 21, .14); color: #fde68a; }
.chip.answered { background: rgba(74, 222, 128, .14); color: #86efac; }
.chip.closed { background: rgba(155, 149, 186, .14); color: #c9c4e4; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 18px; align-items: start; }
.detail { position: sticky; top: 20px; }
.detail .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail .row span:first-child { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow: auto; padding-right: 4px; margin: 10px 0; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.msg.staff { align-self: flex-end; background: rgba(124, 92, 255, .22); border: 1px solid rgba(124, 92, 255, .35); }
.msg small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.logbox { max-height: 220px; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; color: #d6d2ee; }
.list-item { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); cursor: pointer;
  transition: border-color .2s, background .2s; margin-bottom: 8px; }
.list-item:hover { border-color: rgba(124, 92, 255, .45); }
.list-item.sel { border-color: rgba(124, 92, 255, .8); background: rgba(124, 92, 255, .1); }
.list-item .t { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.list-item .s { color: var(--muted); font-size: 13px; margin-top: 3px; }
.unread { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; padding: 14px 18px; border-radius: 14px; background: #171327;
  border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 650; transform: translateY(20px); opacity: 0; transition: all .3s; max-width: 380px; }
.toast.show { transform: none; opacity: 1; }
.toast.ok { border-color: rgba(74, 222, 128, .5); }
.toast.bad { border-color: rgba(248, 113, 113, .6); }
.muted { color: var(--muted); }
.mobile-top { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .3s; }
  .side.open { transform: none; }
  .mobile-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
    background: rgba(var(--glass), .9); backdrop-filter: blur(12px); z-index: 40; }
  .main { padding: 20px 16px 50px; }
  .split { grid-template-columns: 1fr; }
  .detail { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .tbl .hide-m { display: none; }
}


/* ---------------------------------------------------------------- Feinschliff: Tempo + Bedienung */
.bg-fx::before { will-change: transform; }
.stage .hero-fig, .orbit, .spotlight img { will-change: transform; }
.block { content-visibility: auto; contain-intrinsic-size: auto 720px; }   /* Abschnitte ausserhalb des Bildschirms nicht zeichnen */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }   /* Tab im Hintergrund: Animationen stoppen */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #b9a8ff; outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #1b1340; font-weight: 800; padding: 10px 16px; border-radius: 10px; transition: top .15s; }
.skip:focus { top: 12px; }
img { content-visibility: auto; }
@media (max-width: 760px) {
  .bg-fx::before { animation: none; }   /* Handy: weniger Last */
  .orbit { animation-duration: 9s; }
}

/* Tabellen-Editor (Team-Bereich): Zeilen mit Feldern statt JSON */
.row-editor .re-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; margin-bottom: 10px;
  border: 1px solid var(--line2); border-radius: 14px; background: rgba(255,255,255,.02); }
.row-editor .re-cell { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; min-width: 0; font-size: 12px; color: var(--muted, #9a93b5); }
.row-editor .re-cell:has(textarea) { flex-basis: 100%; }
.row-editor .re-cell input[type=checkbox] { width: 22px; height: 22px; margin: 10px 0; accent-color: #a05cff; }
.row-editor .re-del { height: 44px; flex: 0 0 auto; }
details.opt-code { margin-top: 10px; }
details.opt-code summary { cursor: pointer; }
details.opt-code .input { margin-top: 8px; }

.cause { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.35); color: #fecaca; font-size: 13px; }

.qs-back { position: fixed; inset: 0; background: rgba(5,3,12,.6); backdrop-filter: blur(4px); z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.qs { width: min(560px, 100%); background: var(--bg2); border: 1px solid var(--accent); border-radius: 16px; padding: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.qs-in { width: 100%; font-size: 16px; }
.qs-hint { font-size: 12px; margin: 6px 4px; }
.qs-list { max-height: 50vh; overflow: auto; }
.qs-row { padding: 8px 10px; border-radius: 10px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.qs-row.on, .qs-row:hover { background: rgba(160,92,255,.22); }
.qs-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; width: 64px; flex: none; }
.qs-nav kbd { margin-left: auto; font: 11px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); }
/* ---- Server 3.20: Statistik, Server, 2FA, Massenaktionen, Notizen ---- */
.chart2 { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 10px; }
.chart2 .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; min-width: 3px; height: 100%; }
.chart2 .col i { display: block; border-radius: 4px 4px 0 0; opacity: .9; }
.chart2 .col b { position: absolute; right: 0; bottom: 18px; width: 35%; border-radius: 3px 3px 0 0; }
.chart2 .col small { height: 18px; font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; }
.chart2 .col:hover i { opacity: 1; filter: brightness(1.2); }
.warn-panel { border-color: rgba(255,200,61,.5); background: rgba(255,200,61,.08); }
.ok-panel { border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.07); }
.warn-text { color: var(--gold); }
.cause-row { display: grid; grid-template-columns: minmax(140px, 260px) 1fr 40px; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.cause-row i { display: block; height: 10px; border-radius: 6px; background: var(--red); }
.cause-row b { text-align: right; color: var(--soft); }
code.secret { font-size: 18px; letter-spacing: .08em; color: var(--accent); background: var(--card2); padding: 6px 10px; border-radius: 8px; user-select: all; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 0; }
.bulk-bar .input { max-width: 220px; }
.bulk-fields { display: contents; }
.notes { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,200,61,.35); background: rgba(255,200,61,.06); }
.notes .note { font-size: 13px; color: var(--soft); margin: 3px 0; }
.err.info { color: var(--accent); }
/* Seitenleiste mit vielen Bereichen: scrollbar + kompaktere Eintraege bei wenig Hoehe */
.side { overflow-y: auto; scrollbar-width: thin; }
.side a.nav-i { flex: none; }
@media (max-height: 940px) { .side a.nav-i { padding: 8px 12px; } .side { gap: 3px; } }

/* ---------- Ideen + Changelog */
.idea-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.chipbtn { font: inherit; font-size: 13px; font-weight: 700; color: var(--soft); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chipbtn.on, .chipbtn:hover { color: #fff; border-color: rgba(124, 92, 255, .6); background: var(--accent-soft); }
.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.idea { display: flex; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.idea .votes { min-width: 64px; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--accent-soft); align-self: flex-start; }
.idea .votes b { display: block; font-size: 22px; }
.idea .votes span { font-size: 12px; color: var(--soft); }
.idea h3 { margin: 4px 0 6px; font-size: 17px; }
.idea p { margin: 0 0 6px; color: var(--soft); font-size: 14px; }
.idea p.answer { color: var(--text); border-left: 3px solid var(--accent); padding-left: 10px; }
.idea .meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.idea .st { padding: 2px 9px; border-radius: 999px; font-weight: 800; background: rgba(255, 255, 255, .08); color: var(--soft); }
.idea .st.planned { background: rgba(124, 92, 255, .2); color: #c4b5fd; }
.idea .st.done { background: rgba(74, 222, 128, .14); color: #86efac; }
.changelog { display: flex; flex-direction: column; gap: 10px; }
.cl { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 4px 18px; }
.cl summary { display: flex; gap: 14px; align-items: center; cursor: pointer; padding: 10px 0; list-style: none; }
.cl summary::-webkit-details-marker { display: none; }
.cl .v { font-weight: 800; font-size: 16px; }
.cl .what { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: #c4b5fd; }
.cl.launcher .what { background: rgba(79, 142, 255, .18); color: #a5c8ff; }
.cl time { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.cl .news-text { padding-bottom: 12px; }
@media (max-width: 800px) { .ideas { grid-template-columns: 1fr; } }

.other-os { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.other-os a { color: var(--soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================ Schlichter Look (Stand 21)
   Ruhiger Hintergrund, flache Flaechen, kein Leuchten. Steht am Ende und ueberschreibt die Werte oben. */
:root {
  --card: rgba(255, 255, 255, 0.035);
  --card2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.bg-fx::before {
  animation: none;
  background: radial-gradient(45% 35% at 20% 0%, rgba(124, 92, 255, 0.14), transparent 70%);
}
.bg-fx::after { display: none; }
.brand img { filter: none; }

/* Navigation / Seitenleiste: aktive Seite als ruhige Kapsel statt Verlauf mit Schein */
.side a.nav-i.on { background: rgba(124, 92, 255, .22); box-shadow: none; color: #fff; }
.side a.nav-i.on svg { color: #b9a8ff; }
.side a.nav-i { border-radius: 10px; }
.side { background: rgba(13, 11, 24, .85); }

/* Karten, Felder, Knoepfe */
.card, .panel { border-radius: var(--radius); }
.login-card { border-radius: 20px; box-shadow: var(--shadow); }
.input, select.input, textarea.input { border-radius: 10px; background: rgba(0, 0, 0, .22); }
.input:focus { border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 3px rgba(124, 92, 255, .14); }
.btn-primary { background: var(--accent); box-shadow: none; }
.btn-primary:hover { background: #6f4ef0; box-shadow: none; transform: none; }
.chart .bar i { background: rgba(124, 92, 255, .75); }

/* Tabellen und Listen: besser lesbar, auf schmalen Bildschirmen seitlich scrollbar */
.panel { overflow-x: auto; }
.tbl th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.tbl tr.click:hover { background: rgba(255, 255, 255, .03); }
.list-item { border-radius: 12px; }
.list-item:hover { border-color: rgba(124, 92, 255, .35); }
.toast { box-shadow: var(--shadow); border-radius: 12px; }

/* Weniger Bewegung */
.view { animation: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* VexoClient UI foundation – konsistente Layout- und Zustandsregeln */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --layer-sticky: 30; --layer-nav: 50; --layer-drawer: 60;
  --layer-dropdown: 80; --layer-modal: 90; --layer-toast: 110;
  color-scheme: dark;
}
html { min-height: 100%; }
body.team-body { min-height: 100dvh; }
.app { min-height: 100dvh; align-items: start; }
.side { z-index: var(--layer-drawer); overscroll-behavior: contain; }
.main { min-width: 0; width: 100%; max-width: 100%; overflow-wrap: anywhere; }
.main > .view, .main > div { min-width: 0; }
.panel, .card, .login-card { min-width: 0; }
.panel { overscroll-behavior-x: contain; }
/* Native selects bleiben barrierefrei; eigene Menüs/Overlays erhalten einen sicheren Layer. */
select.input, .input, textarea.input { min-width: 0; max-width: 100%; }
select.input { cursor: pointer; padding-right: 34px; }
option { background: #171327; color: var(--text); }
button, [role="button"], select, input, textarea { accent-color: var(--accent); }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
:where(input, select, textarea, button, a, [tabindex]):focus-visible {
  outline: 2px solid #b9a8ff; outline-offset: 3px;
}
.tbl { min-width: 520px; }
.tbl td { overflow-wrap: anywhere; }
.actions { align-items: center; }
.actions .btn { white-space: normal; min-height: 36px; height: auto; padding: 8px 12px; }
.chip { white-space: nowrap; line-height: 1.5; }
.toast { z-index: var(--layer-toast); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.qs-back { z-index: var(--layer-modal); overscroll-behavior: contain; }
@media (min-width: 901px) {
  .app { grid-template-columns: 250px minmax(0, 1fr); }
  .main { max-width: 1680px; }
}
@media (max-width: 900px) {
  .side { z-index: var(--layer-drawer); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .main { overflow: visible; }
  .main-head h1 { font-size: clamp(22px, 5vw, 28px); }
  .panel { padding: clamp(14px, 3vw, 22px); }
  .toolbar > * { flex: 1 1 180px; max-width: 100% !important; min-width: 0 !important; }
  .toolbar .btn { flex: 0 1 auto; }
}
@media (max-width: 520px) {
  .login-card { padding: 24px 18px; }
  .main { padding: 16px 12px 36px; }
  .main-head { gap: 8px; }
  .main-head .btn { flex: 1 1 auto; }
  .form-grid { gap: 12px; }
  .actions { gap: 6px; }
  .actions .btn { flex: 1 1 auto; }
  .qs-back { padding: max(8vh, 32px) 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- Wartungs-Hinweis (oben) */
.maint-bar { position: relative; z-index: 60; background: linear-gradient(90deg, rgba(255, 176, 46, .2), rgba(255, 138, 31, .14));
  border-bottom: 1px solid rgba(255, 176, 46, .35); color: var(--text); font-size: 14.5px; }
.maint-bar.on { background: linear-gradient(90deg, rgba(248, 113, 113, .22), rgba(255, 138, 31, .16));
  border-bottom-color: rgba(248, 113, 113, .4); }
.maint-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; flex-wrap: wrap; }
.maint-bar .maint-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-weight: 800; font-size: 13px; background: var(--gold); color: #1a1300; flex: none; }
.maint-bar.on .maint-ic { background: var(--red); color: #fff; }
.maint-bar span { flex: 1; min-width: 200px; }
.maint-bar a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.dot.maint { background: var(--gold); box-shadow: 0 0 12px rgba(255, 200, 61, .7); }

/* ===== Team-Bereich: Dashboard (Teil 32) ===== */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kpi { text-align: left; cursor: pointer; padding: 16px 18px 14px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .15s, border-color .15s; color: var(--text); }
.kpi:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, .5); }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .85; }
.kpi-online::before { background: var(--green); } .kpi-shield::before { background: var(--red); }
.kpi-star::before { background: var(--gold); } .kpi-box::before { background: var(--accent2); }
.kpi .k { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.kpi .v { font-size: 30px; font-weight: 850; letter-spacing: -.6px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--soft); font-size: 12.5px; margin-top: 2px; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 16px; }
.dash > .panel { grid-column: span 6; }
.dash > .dash-chart { grid-column: span 8; }
.dash > .dash-server { grid-column: span 4; }
.dash > .dash-todo { grid-column: span 4; }
.dash > .dash-log { grid-column: span 8; }
.todo-row { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 6px;
  border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); cursor: pointer; color: var(--text); }
.todo-row:hover { background: rgba(255, 255, 255, .08); }
.todo-row b { font-size: 15px; padding: 1px 9px; border-radius: 99px; background: var(--accent-soft); }
.todo-row.bad b { background: rgba(248, 113, 113, .2); color: #ffb4b4; }
.all-done { padding: 18px 4px; text-align: center; }
.all-done b { color: var(--green); font-size: 17px; }
.srv-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.dot.bad { background: var(--red); box-shadow: 0 0 0 4px rgba(248, 113, 113, .18); }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv span { color: var(--muted); }
.spark { width: 100%; height: 46px; margin-top: 12px; display: block; }
.spark .a { fill: rgba(124, 92, 255, .18); } .spark .l { fill: none; stroke: #9c84ff; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.log-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log-row .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .what { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maint-panel { display: flex; align-items: center; gap: 6px; border-color: rgba(255, 138, 31, .5); background: rgba(255, 138, 31, .09); }
.nav-group { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  padding: 14px 12px 4px; opacity: .8; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gal-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gal-card img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #120f22; }
.gal-card .b { padding: 10px 12px; font-size: 13px; }
.gal-card.removed { opacity: .5; }
@media (max-width: 1100px) { .dash > .panel { grid-column: span 12 !important; } }
@media (max-width: 600px) { .log-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Installieren (SmartScreen-Hilfe) */
.sec-head p.sec-sub { margin-top: 4px; font-size: 16px; }
.install-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.install-step { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.install-step img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.install-step figcaption { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--soft); font-size: 15.5px; }
.install-step figcaption b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 15px; }
.install-step strong { color: #fff; }
.install-note { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.dl-hint { display: inline-block; margin-top: 10px; font-size: 13.5px; color: #cfc3ff; text-decoration: underline; text-underline-offset: 3px; }
.dl-hint:hover { color: #fff; }
@media (max-width: 760px) { .install-steps { grid-template-columns: 1fr; } }

/* Team-Chat */
.chat-list { display: grid; gap: 8px; max-height: min(62vh, 640px); overflow-y: auto; padding: 4px 2px; }
.chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.chat-msg.mine { justify-self: end; background: color-mix(in srgb, var(--accent, #8b6cff) 18%, var(--card)); }
.chat-msg.hit { border-color: #facc15; }
.chat-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; min-width: 0; }
/* Team-Bereich am Handy: Kennzahlen zweispaltig statt untereinander */
@media (max-width: 560px) {
  .team-body .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .team-body .kpi { padding: 12px 12px 10px; }
  .team-body .chat-msg { max-width: 92%; }
}

/* ---- Hell/Dunkel: data-theme="light" am <html> (Schalter oben, gemerkt im Browser) */
:root { --glass: 11, 9, 20; }
html[data-theme="light"] {
  --bg: #f6f4fc; --bg2: #ffffff; --card: rgba(40, 24, 110, 0.045); --card2: rgba(40, 24, 110, 0.08);
  --line: rgba(40, 24, 110, 0.11); --line2: rgba(40, 24, 110, 0.2); --text: #1a1430; --soft: #3d355e; --muted: #6a6390;
  --accent-soft: rgba(124, 92, 255, 0.12); --shadow: 0 16px 44px rgba(40, 20, 90, 0.12); --glass: 246, 244, 252;
  --gold: #b7860b; --green: #15803d; --red: #dc2626; --orange: #c2410c; color-scheme: light;
}
html[data-theme="light"] .bg-fx { opacity: .45; }
html[data-theme="light"] img.pixel, html[data-theme="light"] canvas { color-scheme: dark; }
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--card); color: var(--text); cursor: pointer; font-size: 17px; line-height: 1; padding: 0; }
.theme-btn:hover { background: var(--card2); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Hell: Stellen mit fester weisser Schrift auf hellem Grund */
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .btn-ghost, html[data-theme="light"] .tab:hover,
html[data-theme="light"] .news-card .more:hover, html[data-theme="light"] footer a:hover, html[data-theme="light"] .back-link:hover,
html[data-theme="light"] .side a.nav-i:hover, html[data-theme="light"] .chipbtn.on, html[data-theme="light"] .chipbtn:hover,
html[data-theme="light"] .install-step strong, html[data-theme="light"] .dl-hint:hover, html[data-theme="light"] .kind.ver { color: var(--text); }
html[data-theme="light"] .btn-danger { color: #b91c1c; }
html[data-theme="light"] .btn-gold { color: #8a5d00; }
html[data-theme="light"] .badge { color: var(--soft); }
html[data-theme="light"] .dl-hint { color: var(--accent); }
html[data-theme="light"] .side a.nav-i.on { color: #fff; }

/* ---- Bereiche (Client · Hosting · Service), "Mehr"-Menue, Suche ---- */
.area-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); gap: 2px; flex-shrink: 0; }
.area-switch a { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--soft); }
.area-switch a.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.area-switch a:not(.on):hover { color: #fff; background: var(--card2); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 10px; color: var(--soft); font-weight: 600; font-size: 14.5px; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: 11px; }
.nav-more[open] summary, .nav-more summary:hover { background: var(--card2); color: #fff; }
.nav-more > div { position: absolute; top: 44px; left: 0; min-width: 180px; display: grid; gap: 2px; padding: 6px; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--line2); box-shadow: 0 18px 50px rgba(0,0,0,.45); z-index: 30; }
.nav-more > div a { padding: 8px 12px; border-radius: 9px; }
.cmdk-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--soft); cursor: pointer; font: inherit; font-size: 13px; }
.cmdk-btn kbd { font: 600 11px ui-monospace, monospace; padding: 2px 6px; border-radius: 6px; background: var(--card2); color: var(--muted); }
.cmdk-btn:hover { border-color: var(--accent); color: #fff; }
@media (max-width: 1180px) { .status-pill { display: none !important; } }
@media (max-width: 980px) { .cmdk-btn kbd { display: none; } }
@media (max-width: 760px) { .area-switch { display: none; } .nav-more > div { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; } }
.nav .brand { flex-shrink: 0; }
.area-switch { margin-left: 6px; }
.nav-more summary, .nav-links a { white-space: nowrap; }
@media (max-width: 1360px) { .cmdk-btn kbd { display: none; } .nav-links a, .nav-more summary { padding: 8px 9px; } }
