/* ═══════════════════════════════════════════════════════════
   MCB·STUDIO — style.css
   Apple-Layout × MCB-Farben (Cyan → Blau → Violett → Magenta)
   Hell/Dunkel über Tokens: System-Einstellung oder Umschalter
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────── MCB SANS ─────────────────────────── */
@font-face {
  font-family: 'MCB Sans';
  src: url('../fonts/MCBSans-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MCB Sans';
  src: url('../fonts/MCBSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MCB Sans';
  src: url('../fonts/MCBSans-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MCB Sans';
  src: url('../fonts/MCBSans-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ─────────────────────────── TOKENS ─────────────────────────── */
:root {
  color-scheme: light;

  /* MCB-Markenfarben (aus dem Logo) */
  --cyan: #22e3f2;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --magenta: #e040fb;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --grad-mark: linear-gradient(135deg, var(--cyan), var(--blue) 50%, var(--violet));

  /* Flächen & Schrift — hell */
  --bg: #f5f7fb;
  --bg-2: #eaeef6;
  --card: #ffffff;
  --ink: #0d1424;
  --ink-soft: #4b5568;
  --on-ink: #ffffff;
  --line: rgba(13, 20, 36, .1);
  --line-strong: rgba(13, 20, 36, .22);
  --dots: rgba(13, 20, 36, .06);
  --nav-glass: rgba(245, 247, 251, .74);
  --badge-bg: rgba(255, 255, 255, .65);
  --shadow: rgba(13, 20, 36, .18);
  --accent: #2563eb;
  --text-accent: #7c3aed;   /* Light Mode: Lila */

  /* Immer-dunkle Sektionen (Marquee, Showcase, Footer) */
  --night: #0b0f1a;
  --night-2: #121a2b;
  --paper: #f4f7fb;
  --line-dark: rgba(244, 247, 251, .09);

  /* Kästen in den Projektkarten (hell im Light Mode) */
  --panel: #eef2f8;
  --panel-2: rgba(13, 20, 36, .04);
  --panel-ink: #0d1424;
  --panel-soft: #5b6578;
  --panel-line: rgba(13, 20, 36, .09);
  --panel-track: rgba(13, 20, 36, .12);
  --panel-grid: rgba(13, 20, 36, .06);
  --syn-k: #0e7490;
  --syn-s: #6d28d9;
  --syn-n: #c026d3;

  --font-head: 'MCB Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --radius: 26px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f1a;
    --bg-2: #111827;
    --card: #121a2b;
    --ink: #f4f7fb;
    --ink-soft: #9aa5ba;
    --on-ink: #0b0f1a;
    --line: rgba(244, 247, 251, .09);
    --line-strong: rgba(244, 247, 251, .24);
    --dots: rgba(244, 247, 251, .06);
    --nav-glass: rgba(11, 15, 26, .72);
    --badge-bg: rgba(18, 26, 43, .7);
    --shadow: rgba(0, 0, 0, .55);
    --accent: var(--cyan);
    --text-accent: var(--cyan);
    --night: #070a12;
    --night-2: #0f1524;

    --panel: var(--night);
    --panel-2: rgba(255, 255, 255, .04);
    --panel-ink: #ffffff;
    --panel-soft: rgba(255, 255, 255, .55);
    --panel-line: rgba(255, 255, 255, .08);
    --panel-track: rgba(255, 255, 255, .15);
    --panel-grid: rgba(255, 255, 255, .045);
    --syn-k: var(--cyan);
    --syn-s: #c4b5fd;
    --syn-n: var(--magenta);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f1a;
  --bg-2: #111827;
  --card: #121a2b;
  --ink: #f4f7fb;
  --ink-soft: #9aa5ba;
  --on-ink: #0b0f1a;
  --line: rgba(244, 247, 251, .09);
  --line-strong: rgba(244, 247, 251, .24);
  --dots: rgba(244, 247, 251, .06);
  --nav-glass: rgba(11, 15, 26, .72);
  --badge-bg: rgba(18, 26, 43, .7);
  --shadow: rgba(0, 0, 0, .55);
  --accent: var(--cyan);
  --text-accent: var(--cyan);
  --night: #070a12;
  --night-2: #0f1524;

  --panel: var(--night);
  --panel-2: rgba(255, 255, 255, .04);
  --panel-ink: #ffffff;
  --panel-soft: rgba(255, 255, 255, .55);
  --panel-line: rgba(255, 255, 255, .08);
  --panel-track: rgba(255, 255, 255, .15);
  --panel-grid: rgba(255, 255, 255, .045);
  --syn-k: var(--cyan);
  --syn-s: #c4b5fd;
  --syn-n: var(--magenta);
}

/* ─────────────────────────── BASIS ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}

body.menu-locked { overflow: hidden; }

::selection { background: var(--violet); color: #fff; }

.container { width: min(1200px, 92vw); margin-inline: auto; }

/* Verlaufs-Text (MCB-Farben) */
.grad-text {
  color: var(--text-accent);
}

/* Logo-Sprite (unsichtbar, liefert Verläufe + Symbole) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ─────────────────────────── PRELOADER ─────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--night);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; }
.preloader-logo { width: min(320px, 70vw); height: auto; color: var(--paper); }
.preloader-bar {
  width: min(240px, 56vw); height: 3px; margin: 30px 0 14px;
  border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
}
.preloader-count { font-family: var(--font-mono); font-size: .8rem; color: rgba(255, 255, 255, .45); }

/* ─────────────────────────── CURSOR ─────────────────────────── */
/* Nur wenn der Punkt aktiv ist: System-Mauszeiger komplett aus */
html.has-cursor, html.has-cursor * { cursor: none !important; }

.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 1001;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad-mark);
  pointer-events: none;
  opacity: 0;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .3s,
              background .25s, box-shadow .25s;
}
.cursor-dot.grow {
  width: 38px; height: 38px;
  background: rgba(139, 92, 246, .14);
  box-shadow: inset 0 0 0 1.5px var(--violet);
}
@media (pointer: coarse) { .cursor-dot { display: none; } }

/* ─────────────────────────── SCROLL PROGRESS ─────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  height: 3px; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
}

/* ─────────────────────────── NAV ─────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: transform .45s var(--ease-out), background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  width: min(1200px, 92vw); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.nav-logo svg { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-link {
  position: relative;
  font-size: .86rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

/* Hell/Dunkel-Umschalter */
.theme-toggle {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--ink);
  border: none; box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: box-shadow .25s, transform .3s var(--ease-out);
}
.theme-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--violet); transform: rotate(-14deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}

/* Buttons */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .3s var(--ease-out), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
  overflow: hidden;
}
/* Verlauf liegt unter dem Button und blendet beim Hover ein */
.btn-primary::before, .btn-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-mark);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { color: #fff; }
.btn-primary:hover::before, .btn-nav:hover::before { opacity: 1; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
.btn-nav { background: var(--ink); color: var(--on-ink); padding: 9px 20px; font-size: .82rem; }
.btn-nav:hover { color: #fff; }
.btn-big { padding: 17px 36px; font-size: 1rem; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .3s, background .3s;
}
body.menu-open .nav-burger span { background: var(--paper); }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
body.menu-open .nav-logo, body.menu-open .theme-toggle { color: var(--paper); }

/* Mobiles Menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--night);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path .65s var(--ease-out);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.mobile-link {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  color: var(--paper); text-decoration: none; letter-spacing: -.02em;
  transition: color .25s;
}
.mobile-link:hover { color: var(--cyan); }
.mobile-link-cta {
  color: var(--cyan);
}
.mobile-menu-meta {
  position: absolute; bottom: 30px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .15em;
  color: rgba(255, 255, 255, .35);
}

/* ─────────────────────────── HERO ─────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(var(--dots) 1px, transparent 1.2px),
    var(--bg);
  background-size: 30px 30px, auto;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 20px) 5vw 60px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

/* < ^ > — das Studio-Zeichen, zeichnet sich nach dem Laden selbst */
.hero-mark { width: clamp(120px, 16vw, 190px); height: auto; overflow: visible; }
.hero-mark .stroke { stroke-dasharray: 1; stroke-dashoffset: 1; }
body.loaded .hero-mark .stroke { animation: draw 1.1s var(--ease-out) forwards; }
body.loaded .hero-mark .stroke:nth-child(2) { animation-delay: .12s; }
body.loaded .hero-mark .stroke:nth-child(3) { animation-delay: .24s; }
body.loaded .hero-mark .stroke:nth-child(4) { animation-delay: .36s; }
.hero-mark .caret { opacity: 0; }
body.loaded .hero-mark .caret { animation: caret-in .3s .9s forwards, tcursor 1.1s 1.2s steps(1) infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes caret-in { to { opacity: 1; } }

.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(3.9rem, 12vw, 10rem);
  line-height: .96;
  letter-spacing: -.045em;
  color: var(--ink);
  user-select: none;
}
.hero-title em {
  font-style: normal;
  color: var(--text-accent);
}
.ht-line { display: block; opacity: 0; transform: translateY(48px); }
body.loaded .ht-line { animation: ht-rise 1s var(--ease-out) forwards; }
body.loaded .ht-line:nth-child(2) { animation-delay: .13s; }
@keyframes ht-rise { to { opacity: 1; transform: translateY(0); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 18px; border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-mark);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .5); }
  60% { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0); }
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .3em;
  color: var(--ink-soft); z-index: 2;
}
.hero-hint-line {
  width: 1px; height: 44px; overflow: hidden; position: relative; background: var(--line);
}
.hero-hint-line::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: linear-gradient(var(--cyan), var(--violet));
  animation: hint-drop 1.8s var(--ease-out) infinite;
}
@keyframes hint-drop { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ─────────────────────────── MARQUEE ─────────────────────────── */
.marquee {
  background: var(--night); color: var(--paper);
  padding: 18px 0; overflow: hidden;
  border-block: 1px solid var(--line-dark);
  position: relative;
}
.marquee::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); opacity: .7;
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--cyan); }
.marquee-track i:nth-of-type(3n+2) { color: var(--violet); }
.marquee-track i:nth-of-type(3n) { color: var(--magenta); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ─────────────────────────── SECTION BASICS ─────────────────────────── */
section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 26px;
}
.section-label-dark { color: var(--cyan); }
.section-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  letter-spacing: -.03em; line-height: 1.05;
}
.section-sub { margin-top: 18px; font-size: 1.08rem; color: var(--ink-soft); max-width: 560px; }
.section-head { margin-bottom: clamp(46px, 6vw, 72px); }
.section-head-dark .section-title { color: var(--paper); }

/* ─────────────────────────── MANIFEST ─────────────────────────── */
.manifest { background: var(--bg); }
.scrub-text {
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.4;
  max-width: 980px;
}
.scrub-text .w { opacity: .12; transition: opacity .35s linear; }
.scrub-text .w.on { opacity: 1; }
.scrub-text .w.accent {
  color: var(--text-accent);
}

/* ─────────────────────────── BENTO GRID ─────────────────────────── */
.projects {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px);
  background-size: 24px 24px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 18px;
}
.card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s, background-color .4s;
  transform-style: preserve-3d;
  min-height: 300px;
}
/* Verlaufskante oben, fährt beim Hover rein */
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -22px var(--shadow);
  border-color: var(--line-strong);
}
.card:hover::before { transform: scaleX(1); }
.card-survival { grid-column: span 7; }
.card-cad      { grid-column: span 5; }
.card-quest    { grid-column: span 6; }
.card-musik    { grid-column: span 6; }
.card-support  { grid-column: span 6; }
.card-connect  { grid-column: span 6; }
/* fm-face: breite Karte, Text links, Visual rechts */
.card-face {
  grid-column: span 12; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px;
}
.card-face .card-visual { margin-top: 0; padding-top: 0; }

.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line);
}
.tag-flag { background: var(--grad-mark); color: #fff; border-color: transparent; }
.card-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.7rem; letter-spacing: .02em;
  margin-bottom: 10px;
}
.card-title { display: flex; align-items: center; gap: 14px; }
.card-icon {
  flex: none; width: 52px; height: 52px;
  transition: transform .45s var(--ease-out);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-desc { color: var(--ink-soft); font-size: .95rem; max-width: 440px; }

.card-visual {
  margin-top: auto; padding-top: 26px;
  pointer-events: none;
}
.card-visual.col { display: flex; flex-direction: column; gap: 12px; }

/* Logo-/Icon-Kacheln */
.tile-dark, .tile-light {
  display: grid; place-items: center;
  border-radius: 16px; padding: 22px;
}
.tile-dark {
  background: var(--night);
  border: 1px solid var(--line);
}
.tile-dark img { max-height: 150px; width: auto; max-width: 100%; }
.tile-light { background: var(--bg-2); border: 1px solid var(--line); }
.tile-light img { height: 104px; width: auto; }

/* ── Terminal-Visual ── */
.term {
  width: 100%; border-radius: 14px; overflow: hidden;
  background: #0b0f1a; border: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.55;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .45);
  text-align: left;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .045);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.term-bar i { width: 8px; height: 8px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: var(--cyan); }
.term-bar i:nth-child(2) { background: var(--violet); }
.term-bar i:nth-child(3) { background: var(--magenta); }
.term-bar span {
  margin-left: 8px; font-size: .62rem; letter-spacing: .08em;
  color: rgba(255, 255, 255, .35); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.term-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; }
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-line .p { color: var(--cyan); font-weight: 700; }
.term-line .c { color: rgba(255, 255, 255, .88); }
.term-line .o { color: rgba(255, 255, 255, .45); }
.tcursor {
  display: inline-block; width: 7px; height: 12px; margin-left: 4px;
  background: var(--grad-mark); vertical-align: -2px;
  animation: tcursor 1.1s steps(1) infinite;
}
@keyframes tcursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Große Terminal-Variante (Showcase) */
.term-lg { font-size: .82rem; border-radius: 18px; max-width: 560px; }
.term-lg .term-bar { padding: 11px 16px; }
.term-lg .term-bar i { width: 10px; height: 10px; }
.term-lg .term-body { padding: 20px 22px; gap: 9px; }
.term-lg .tcursor { width: 8px; height: 15px; vertical-align: -2px; }

/* Hörprobe-Chip (Audio-Player) */
.audio-chip {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px 10px 10px;
  background: var(--night); border-radius: 999px;
  border: 1px solid var(--line);
  pointer-events: auto;
}
.audio-btn {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--grad-mark); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .25s var(--ease-out);
}
.audio-btn:hover { transform: scale(1.1); }
.ic { width: 13px; height: 13px; fill: #fff; }
.ic-pause { display: none; }
.audio-chip.playing .ic-play { display: none; }
.audio-chip.playing .ic-pause { display: block; }
.audio-name {
  flex: none; max-width: 46%;
  font-family: var(--font-mono); font-size: .66rem;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.audio-track {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .15); overflow: hidden;
}
.audio-track i { display: block; height: 100%; width: 0; background: var(--grad); }
.audio-eq { display: flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.audio-eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--cyan); opacity: .35; }
.audio-eq i:nth-child(2) { background: var(--blue); animation-delay: .2s; }
.audio-eq i:nth-child(3) { background: var(--violet); animation-delay: .35s; }
.audio-eq i:nth-child(4) { background: var(--magenta); animation-delay: .1s; }
.audio-chip.playing .audio-eq i { opacity: 1; animation: eq-mini .9s ease-in-out infinite; }
.audio-chip.playing .audio-eq i:nth-child(2) { animation-delay: .2s; }
.audio-chip.playing .audio-eq i:nth-child(3) { animation-delay: .35s; }
.audio-chip.playing .audio-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq-mini { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* Quest: Auszug aus quests.yml */
.card-quest .card-visual { display: flex; flex-direction: column; gap: 12px; }
.codefile { position: relative; }
.code {
  margin: 0; padding: 13px 16px 16px;
  font-family: var(--font-mono); font-size: .68rem; line-height: 1.6;
  color: rgba(255, 255, 255, .7);
  white-space: pre; overflow: hidden;
}
.code .k { color: var(--cyan); }
.code .s { color: #c4b5fd; }
.code .n { color: var(--magenta); }
.card-quest .questmock { padding: 12px 16px; }

/* Quest-Toast (Advancement-Stil, Gold bleibt Minecraft) */
.questmock {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px;
  background: var(--night);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .45);
}
.qm-icon {
  flex: none; width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(145deg, #ffd75e, #d9a125);
  border: 2px solid rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.qm-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qm-text strong { font-size: .92rem; font-weight: 800; letter-spacing: -.01em; color: #ffcf4d; }
.qm-text span {
  font-family: var(--font-mono); font-size: .68rem;
  color: rgba(255, 255, 255, .68);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qm-bar {
  margin-top: 5px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .14); overflow: hidden;
}
.qm-bar i { display: block; height: 100%; width: 35%; background: var(--grad); }

/* CAD-Viewport */
.cadview {
  position: relative;
  border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--night);
  border: 1px solid var(--line);
  padding: 46px 12px 6px;
}
.cad-tools { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.cad-tools span {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
  padding: 4px 9px; border-radius: 7px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
}
.cad-tools span.on { color: #fff; background: var(--grad-mark); border-color: transparent; }
.cadview .cad-svg { width: 100%; max-width: 340px; height: auto; display: block; margin-inline: auto; }

/* Musik-Punkt + Playlist mit echten Hörproben */
.punkt-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 18px;
  background: var(--night); border: 1px solid var(--line);
}
.punkt-list .punkt { border: none; padding: 6px 8px 10px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
.playlist { display: flex; flex-direction: column; gap: 8px; }
.playlist .audio-chip { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .07); }
.playlist .audio-name { max-width: 56%; }
.credits { font-family: var(--font-mono); font-size: .58rem; color: rgba(255, 255, 255, .35); padding: 2px 6px 0; }
/* EQ am Punkt tanzt nur, solange eine Probe läuft */
.punkt-list .punkt-eq i { animation-play-state: paused; }
.punkt-list:has(.audio-chip.playing) .punkt-eq i { animation-play-state: running; }

/* Musik-Punkt */
.punkt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 15px 18px;
  background: var(--night); border-radius: 14px;
  border: 1px solid var(--line);
}
.punkt-pin {
  position: relative; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(139, 92, 246, .14);
  border: 1.5px solid var(--violet);
  display: grid; place-items: center;
}
.punkt-pin::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad-mark);
}
.punkt-pin i {
  position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid var(--cyan);
  animation: pin-pulse 2.4s var(--ease-out) infinite;
}
@keyframes pin-pulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}
.punkt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.punkt-text strong { color: #fff; font-size: .94rem; font-weight: 700; letter-spacing: -.01em; }
.punkt-text span {
  font-family: var(--font-mono); font-size: .66rem;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.punkt-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.punkt-eq i {
  width: 3.5px; height: 30%; border-radius: 2px;
  animation: eq-mini 1s ease-in-out infinite;
}
.punkt-eq i:nth-child(1) { background: var(--cyan); animation-delay: 0s; }
.punkt-eq i:nth-child(2) { background: var(--violet); animation-delay: .25s; }
.punkt-eq i:nth-child(3) { background: var(--magenta); animation-delay: .45s; }

/* fm-face: Icon + Pipeline */
.face-tile { grid-template-columns: auto 1fr; gap: 22px; justify-items: start; }
.face-tile img { height: 104px; width: auto; }
.pipe { list-style: none; display: flex; flex-direction: column; gap: 7px; counter-reset: p; }
.pipe li {
  counter-increment: p;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft);
}
.pipe li::before {
  content: counter(p);
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .6rem; font-weight: 700; color: #fff;
  background: var(--grad-mark);
}
.pipe li:nth-child(2)::before { background: var(--blue); }
.pipe li:nth-child(3)::before { background: var(--violet); }
.pipe li:nth-child(4)::before { background: var(--magenta); }

/* ─────────────────────────── SHOWCASE (Sticky Stack, dunkel) ─────────────────────────── */
.showcase { background: var(--night); padding-bottom: 40px; }
.stack { display: flex; flex-direction: column; gap: 7vh; padding-bottom: 10vh; }
.stack-card {
  --c: var(--cyan);
  position: sticky;
  top: calc(var(--nav-h) + 3vh);
  height: min(82vh, 780px);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  transform-origin: center top;
  will-change: transform, filter;
}
.stack-survival { --c: var(--cyan);    background: var(--night-2); }
.stack-quest    { --c: var(--violet);  background: var(--night-2); }
.stack-cad      { --c: var(--magenta); background: var(--night-2); }
.stack-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--c), transparent 70%);
}
.stack-card-inner {
  height: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; padding: clamp(28px, 4.5vw, 64px);
}
.stack-info { display: flex; flex-direction: column; justify-content: center; color: var(--paper); }
.stack-index {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .3em;
  color: var(--c); margin-bottom: 14px;
}
.stack-info h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: .02em; margin-bottom: 8px;
}
.stack-tagline { color: rgba(255, 255, 255, .55); font-size: 1.02rem; margin-bottom: 26px; }
.stack-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 30px; }
.stack-features li {
  position: relative; padding-left: 26px;
  color: rgba(255, 255, 255, .82); font-size: .95rem;
}
.stack-features li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid var(--c);
}
.stack-meta {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em;
  color: rgba(255, 255, 255, .38);
  padding-top: 22px; border-top: 1px solid var(--line-dark);
}
.stack-visual {
  display: grid; place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-dark);
  padding: 30px; overflow: hidden;
}

/* ─────────────────────────── FOOTER ─────────────────────────── */
.footer { background: var(--night); border-top: 1px solid var(--line-dark); padding: 60px 0 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 46px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { color: rgba(255, 255, 255, .45); font-size: .88rem; margin-top: 18px; max-width: 280px; }
.footer .nav-logo { color: var(--paper); }
.footer .nav-logo svg { height: 40px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4); margin-bottom: 16px; font-weight: 400;
}
.footer-col a {
  display: block; color: rgba(255, 255, 255, .75); text-decoration: none;
  font-size: .9rem; margin-bottom: 10px; transition: color .25s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px;
  color: rgba(255, 255, 255, .4); font-size: .8rem;
}
.to-top {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em;
  color: rgba(255, 255, 255, .6); transition: color .25s;
}
.to-top:hover { color: var(--cyan); }

/* ─────────────────────────── REVEAL ─────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 1020px) {
  .card-survival, .card-cad, .card-quest, .card-musik, .card-support, .card-connect { grid-column: span 12; }
  .card-face { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-inner { gap: 10px; }
  .nav-links, .btn-nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav-burger { display: flex; }
  .nav-logo svg { height: 28px; }
  .card, .card-survival, .card-quest, .card-cad, .card-musik, .card-support, .card-connect, .card-face { grid-column: span 12; min-height: 0; }
  .br-desktop { display: none; }
  .hero-title { font-size: clamp(3.4rem, 16.5vw, 6rem); }
  .stack-card { height: auto; min-height: 82vh; top: calc(var(--nav-h) + 1vh); }
  .stack-card-inner { grid-template-columns: 1fr; gap: 22px; overflow-y: auto; }
  .stack-visual { min-height: 0; }
  .term-lg { font-size: .74rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .audio-name { max-width: 38%; }
  .face-tile { grid-template-columns: 1fr; justify-items: center; }
}

/* ─────────────────────────── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .scrub-text .w { opacity: 1; }
}

.stack-features code {
  font-family: var(--font-mono); font-size: .82em;
  color: var(--c); background: rgba(255, 255, 255, .06);
  padding: 1px 6px; border-radius: 5px;
}

/* Chat-Rückmeldungen in den Terminals (Farben wie im Spiel) */
.term-line .ok   { color: #4ade80; }
.term-line .warn { color: #facc15; }
.term-line .info { color: var(--cyan); }
.term-line .d    { color: rgba(255, 255, 255, .4); }
.term-lg .term-line { white-space: normal; overflow: visible; }

/* Rust-Ausschnitt */
.code-lg { font-size: .68rem; line-height: 1.65; padding: 18px 20px; overflow-x: auto; }
.code .kw { color: var(--magenta); }
.code .t  { color: var(--cyan); }
.code .m  { color: rgba(255, 255, 255, .45); }
.code .cm { color: #8b93a7; font-style: italic; }

/* ─────────────────────────── DOWNLOADS ─────────────────────────── */
.downloads {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px);
  background-size: 24px 24px;
}
.section-sub code, .dl-note code {
  font-family: var(--font-mono); font-size: .88em;
  padding: 1px 6px; border-radius: 5px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 22px 24px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.dl::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--cyan), var(--violet), var(--magenta));
  transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease-out);
}
.dl:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -26px var(--shadow);
}
.dl:hover::before { transform: scaleY(1); }
.dl-icon { width: 56px; height: 56px; }
.dl-main { min-width: 0; }
.dl-main h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.3rem; letter-spacing: .02em;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.dl-ver {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-accent);
}
.dl-main p { color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }
.dl-req { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dl-req span {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em;
  color: var(--ink-soft);
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
}
.dl-req span b { color: var(--ink); font-weight: 700; }
.dl-req span.opt { border-style: dashed; }
.dl-req span i { font-style: normal; opacity: .6; }
.dl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dl-btn { gap: 8px; padding: 11px 22px; }
.dl-btn svg { width: 15px; height: 15px; }
.dl-meta { font-family: var(--font-mono); font-size: .64rem; color: var(--ink-soft); }
.dl-sha { font-family: var(--font-mono); font-size: .58rem; color: var(--ink-soft); opacity: .7; cursor: help; }
.dl-soon { opacity: 1; }
.dl-soon:hover { transform: none; box-shadow: none; }
.dl-badge {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  color: var(--ink-soft); border: 1.5px dashed var(--line-strong);
}
.dl-note { margin-top: 22px; color: var(--ink-soft); font-size: .9rem; }
.dl-note b { color: var(--ink); }
.dl-note a { color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .dl { grid-template-columns: auto 1fr; gap: 16px; padding: 18px; }
  .dl-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .dl-icon { width: 46px; height: 46px; }
}

/* ─────────────────────────── SHOWCASE: INGAME-CHAT (MCB-Survival) ─────────────────────────── */
.mc-chatwin {
  position: relative; width: 100%; max-width: 580px; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden;
  /* Spielwelt dahinter: der Chunk-Render, unscharf wie hinter offenem Chat */
  background: #6f9fd8 url('../assets/img/survival-chunk.png') center 30% / 120% auto no-repeat;
  image-rendering: pixelated;
  border: 1px solid var(--line-dark);
  font-family: var(--font-head); letter-spacing: .02em;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 8px 8px;
}
.mc-chatwin::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(3px) brightness(.8); }
.mc-lines { position: relative; display: flex; flex-direction: column; width: min(86%, 440px); margin-bottom: 8px; }
.mc-line {
  padding: 2px 8px; font-size: .86rem; line-height: 1.55;
  background: rgba(0, 0, 0, .58); color: #fff;
  text-shadow: 1.5px 1.5px 0 rgba(0, 0, 0, .6);
  animation: chat-in .12s steps(2) both;
}
@keyframes chat-in { from { opacity: 0; } to { opacity: 1; } }
.mc-input {
  position: relative; display: flex; align-items: center;
  height: 28px; padding: 0 8px; font-size: .86rem;
  background: rgba(0, 0, 0, .55); color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
}
.mc-caret { animation: tcursor 1s steps(1) infinite; }
.c-ok { color: #55ff55; }
.c-info { color: #55ffff; }
.c-gold { color: #ffaa00; }
.c-g { color: #aaaaaa; }
.c-w { color: #ffffff; }
.c-y { color: #ffff55; }

@media (max-width: 760px) { .mc-line, .mc-input { font-size: .66rem; } }

/* ─────────────────────────── SHOWCASE: EDITOR (Quest, CAD) ─────────────────────────── */
.ide {
  width: 100%; max-width: 600px; border-radius: 14px; overflow: hidden;
  background: #0d121e; border: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: .7rem; color: rgba(255, 255, 255, .78);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}
.ide-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: #111827; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ide-bar i { width: 9px; height: 9px; border-radius: 50%; }
.ide-bar i:nth-child(1) { background: var(--cyan); }
.ide-bar i:nth-child(2) { background: var(--violet); }
.ide-bar i:nth-child(3) { background: var(--magenta); }
.ide-bar span { margin: 0 auto; font-size: .62rem; color: rgba(255, 255, 255, .4); letter-spacing: .04em; }
.ide-body { display: grid; grid-template-columns: 150px 1fr; min-height: 0; }
.ide-tree {
  list-style: none; padding: 10px 0; font-size: .62rem;
  background: #0a0f19; border-right: 1px solid rgba(255, 255, 255, .06);
  transition: opacity .8s var(--ease-out);
}
.ide-tree li {
  padding: 2px 10px 2px calc(10px + var(--d) * 11px);
  color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ide-tree li.dir::before { content: "▾ "; color: rgba(255, 255, 255, .3); }
.ide-tree li.file::before { content: "· "; color: rgba(255, 255, 255, .25); }
.ide-tree li.on { color: #fff; background: rgba(59, 130, 246, .18); box-shadow: inset 2px 0 0 var(--cyan); }
.ide-main { min-width: 0; display: flex; flex-direction: column; }
.ide-tabs { display: flex; background: #0a0f19; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ide-tabs span { padding: 7px 14px; font-size: .62rem; color: rgba(255, 255, 255, .4); border-right: 1px solid rgba(255, 255, 255, .05); }
.ide-tabs span.on { color: #fff; background: #0d121e; box-shadow: inset 0 2px 0 var(--violet); }
.ide-code { position: relative; overflow: hidden; height: 330px; padding: 10px 0; }
.ide-zoom > div { display: flex; white-space: pre; line-height: 1.62; }
.ide-zoom .ln { flex: none; width: 34px; padding-right: 10px; text-align: right; color: rgba(255, 255, 255, .22); user-select: none; }
.ide-zoom .lc { overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.ide .k  { color: var(--cyan); }
.ide .s  { color: #c4b5fd; }
.ide .n  { color: var(--magenta); }
.ide .kw { color: var(--magenta); }
.ide .t  { color: var(--cyan); }
.ide .m  { color: rgba(255, 255, 255, .42); }
.ide .cm { color: #7c8598; font-style: italic; }
.ide-status {
  display: flex; justify-content: space-between; padding: 5px 12px;
  font-size: .58rem; color: rgba(255, 255, 255, .55);
  background: #111827; border-top: 1px solid rgba(255, 255, 255, .06);
}
/* markierte Zeilen (der interessante Teil der Datei) */
.ide-zoom { transform: translateY(var(--zt, 0)); }
.ide-zoom > div.hl { background: rgba(139, 92, 246, .1); }

@media (max-width: 760px) {
  .ide-body { grid-template-columns: 1fr; }
  .ide-tree { display: none; }
  .ide-code { height: 280px; }
  .mc-chat p { font-size: .62rem; }
}

/* ─────────── Projektkarten-Kästen: folgen dem Theme (hell/dunkel) ─────────── */
.projects .tile-dark,
.projects .audio-chip,
.projects .questmock,
.projects .punkt-list,
.projects .cadview,
.projects .codefile { background-color: var(--panel); border-color: var(--panel-line); box-shadow: none; }
.projects .codefile .term-bar { background: var(--panel-2); border-bottom-color: var(--panel-line); }
.projects .codefile .term-bar span,
.projects .credits { color: var(--panel-soft); }
.projects .code { color: var(--panel-soft); }
.projects .code .k { color: var(--syn-k); }
.projects .code .s { color: var(--syn-s); }
.projects .code .n { color: var(--syn-n); }
.projects .audio-name,
.projects .punkt-text span,
.projects .qm-text span { color: var(--panel-soft); }
.projects .punkt-text strong { color: var(--panel-ink); }
.projects .audio-track,
.projects .qm-bar { background: var(--panel-track); }
.projects .playlist .audio-chip { background: var(--panel-2); border-color: var(--panel-line); }
.projects .punkt-list .punkt { background: transparent; border-bottom-color: var(--panel-line); }
.projects .cadview {
  background:
    linear-gradient(var(--panel-grid) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--panel-grid) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--panel);
}
.projects .cad-tools span { color: var(--panel-soft); background: var(--panel-2); border-color: var(--panel-line); }
.projects .cad-tools span.on { color: #fff; }
/* Quest-Titel: Gold ist auf hellem Grund schlecht lesbar */
.projects .qm-text strong { color: var(--qm-gold, #ffcf4d); }
:root:not([data-theme="dark"]) .projects { --qm-gold: #b7791f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .projects { --qm-gold: #ffcf4d; } }

/* Network-Logo: helle oder dunkle Schrift je nach Theme */
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: inline; }
}
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: inline; }

/* ─────────── MCB-Support: Ticket im Chat ─────────── */
.dc {
  border-radius: 16px; padding: 12px 14px 14px;
  background: var(--panel); border: 1px solid var(--panel-line);
  font-size: .8rem; color: var(--panel-ink);
  display: flex; flex-direction: column; gap: 10px;
}
.dc-chan { font-weight: 700; font-size: .78rem; color: var(--panel-soft); padding-bottom: 8px; border-bottom: 1px solid var(--panel-line); }
.dc-chan span { opacity: .6; margin-right: 2px; }
.dc-msg { display: flex; gap: 10px; }
.dc-ava { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--night); display: grid; place-items: center; overflow: hidden; }
.dc-ava img { width: 30px; height: 30px; }
.dc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dc-head { display: flex; align-items: center; gap: 7px; }
.dc-head strong { font-size: .84rem; }
.dc-bot { font-size: .55rem; font-weight: 800; color: #fff; background: var(--blue); padding: 1px 5px; border-radius: 4px; }
.dc-time { font-size: .66rem; color: var(--panel-soft); }
.dc-embed {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 12px; border-radius: 6px;
  background: var(--panel-2); border-left: 3px solid var(--violet);
  font-size: .76rem;
}
.dc-embed i { font-style: normal; font-weight: 700; color: var(--panel-soft); margin-right: 6px; }
.dc-btns { display: flex; gap: 6px; }
.dc-btn { font-size: .7rem; font-weight: 600; padding: 5px 11px; border-radius: 5px; color: #fff; }
.dc-btn.ok { background: #248046; }
.dc-btn.done { background: #4e5058; opacity: .55; }
.dc-sys { font-size: .74rem; color: var(--panel-soft); padding-left: 46px; }
.dc-sys b { color: var(--panel-ink); }

/* ─────────── MCB-Connect: App-Fenster ─────────── */
.cx {
  display: grid; grid-template-columns: 112px 1fr;
  border-radius: 16px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--panel-line);
  font-family: var(--font-mono); font-size: .66rem; color: var(--panel-ink);
}
.cx-side { list-style: none; padding: 10px 0; border-right: 1px solid var(--panel-line); background: var(--panel-2); }
.cx-side li { display: flex; align-items: center; gap: 7px; padding: 5px 12px; color: var(--panel-soft); }
.cx-side li.on { color: var(--panel-ink); box-shadow: inset 2px 0 0 var(--cyan); background: var(--panel-2); }
.cx-side i { width: 7px; height: 7px; border-radius: 50%; background: var(--panel-track); }
.cx-side i.up { background: #22c55e; }
.cx-main { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; color: var(--panel-soft); }
.cx-stats span { display: flex; flex-direction: column; gap: 5px; }
.cx-stats b { display: block; height: 5px; border-radius: 3px; background: var(--panel-track); position: relative; overflow: hidden; }
.cx-stats b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--grad); }
.cx-log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.75; color: var(--panel-soft); }
.cx-t { color: var(--syn-k); margin-right: 6px; }
.cx-follow { color: #22c55e !important; animation: tcursor 1.4s steps(1) infinite; }
