/* =====================================================================
   Vulpo – „Wald“
   Ruhige Waldfarben (Moos, Tanne, Rinde, Nebel) mit dem Fuchs-Orange als Akzent.
   Klare, flächige Karten statt Glas – professionell, aber mit Atmosphäre:
   Baumsilhouetten, Nebel und ein paar Glühwürmchen im Hintergrund.
   Schrift: Inter (selbst gehostet), Icons: Font Awesome (selbst gehostet).
   ===================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../vendor/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --moss: #3f8f5c;
  --moss-2: #57a872;
  --moss-3: #8cc79a;
  --pine: #1f5a3a;
  --bark: #7a5536;
  --bark-2: #a8784f;
  --fox: #e8762b;
  --fox-2: #f39a4f;
  --amber: #e9b44c;
  --berry: #c2546a;
  --sky: #5b9bd5;
  --lichen: #b7c98f;

  --bg: #f3f1e7;
  --bg-2: #ebe8db;
  --surface: #fdfcf7;
  --surface-2: #f6f4ea;
  --surface-3: #eceadd;
  --ink: #17251c;
  --ink-2: #3f5246;
  --ink-3: #6f7f73;
  --line: #dcd9c9;
  --line-2: #cfcbb8;
  --field: #ffffff;
  --field-line: #cdd2c3;
  --focus: rgba(63, 143, 92, .22);
  --shadow: 0 1px 2px rgba(25, 40, 28, .05), 0 6px 20px -8px rgba(25, 40, 28, .14);
  --shadow-lg: 0 2px 4px rgba(25, 40, 28, .05), 0 24px 50px -20px rgba(25, 40, 28, .28);
  --menu-bg: #ffffff;
  --primary: #2f7a4d;
  --primary-2: #24653f;
  --on-primary: #ffffff;
  --accent-ink: #9c4a12;
  --tree-1: #c9d4bd;
  --tree-2: #a9bb9c;
  --tree-3: #7f9a7f;
  --fog: rgba(243, 241, 231, .9);

  --ok: #2f8a4f;
  --warn: #b7791f;
  --bad: #c0392b;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1611;
    --bg-2: #0f1c15;
    --surface: #13221a;
    --surface-2: #172a20;
    --surface-3: #1d3327;
    --ink: #e7efe8;
    --ink-2: #b9c9bd;
    --ink-3: #85998b;
    --line: #233a2d;
    --line-2: #2e4a3a;
    --field: #0f1d16;
    --field-line: #2c4637;
    --focus: rgba(108, 192, 133, .25);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .7);
    --menu-bg: #15261d;
    --primary: #4fa56c;
    --primary-2: #5db57a;
    --on-primary: #06140c;
    --accent-ink: #f3a061;
    --tree-1: #13261b;
    --tree-2: #0f2016;
    --tree-3: #0a1710;
    --fog: rgba(12, 22, 17, .92);
    --ok: #6cc085;
    --warn: #e9b44c;
    --bad: #ef7c6d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1611;
  --bg-2: #0f1c15;
  --surface: #13221a;
  --surface-2: #172a20;
  --surface-3: #1d3327;
  --ink: #e7efe8;
  --ink-2: #b9c9bd;
  --ink-3: #85998b;
  --line: #233a2d;
  --line-2: #2e4a3a;
  --field: #0f1d16;
  --field-line: #2c4637;
  --focus: rgba(108, 192, 133, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .7);
  --menu-bg: #15261d;
  --primary: #4fa56c;
  --primary-2: #5db57a;
  --on-primary: #06140c;
  --accent-ink: #f3a061;
  --tree-1: #13261b;
  --tree-2: #0f2016;
  --tree-3: #0a1710;
  --fog: rgba(12, 22, 17, .92);
  --ok: #6cc085;
  --warn: #e9b44c;
  --bad: #ef7c6d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; position: relative; isolation: isolate; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(63, 143, 92, .3); }
:focus-visible { outline: 2px solid var(--moss-2); outline-offset: 3px; border-radius: 6px; }
code, kbd { font-family: var(--mono); font-size: .86em; background: var(--surface-3); padding: .12em .42em; border-radius: 6px;
  border: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fa-solid, .fa-regular, .fa-brands { line-height: 1; }

/* ---------------------------------------------------------------- Hintergrund: Waldrand, Nebel, Glühwürmchen */
.forest-bg { position: absolute; left: 0; right: 0; top: 0; height: max(100vh, 720px); z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(233, 180, 76, .16), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(63, 143, 92, .16), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%); }
.forest-bg .trees { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; min-height: 180px; }
.forest-bg .trees path:nth-child(1) { fill: var(--tree-1); }
.forest-bg .trees path:nth-child(2) { fill: var(--tree-2); }
.forest-bg .trees path:nth-child(3) { fill: var(--tree-3); }
.forest-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, transparent, var(--fog) 55%, var(--bg)); }
.fireflies i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f6e27a; opacity: 0;
  box-shadow: 0 0 10px 3px rgba(246, 226, 122, .55); animation: firefly 14s ease-in-out infinite; }
.fireflies i:nth-child(1) { left: 12%; top: 62%; animation-delay: -2s; }
.fireflies i:nth-child(2) { left: 28%; top: 74%; animation-delay: -7s; animation-duration: 17s; }
.fireflies i:nth-child(3) { left: 61%; top: 68%; animation-delay: -4s; animation-duration: 19s; }
.fireflies i:nth-child(4) { left: 79%; top: 58%; animation-delay: -11s; }
.fireflies i:nth-child(5) { left: 90%; top: 78%; animation-delay: -1s; animation-duration: 21s; }
.fireflies i:nth-child(6) { left: 45%; top: 82%; animation-delay: -9s; animation-duration: 16s; }
@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .9; }
  50% { opacity: .2; transform: translate(30px, -40px); }
  75% { opacity: .8; transform: translate(-20px, -70px); }
}
.fireflies { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fireflies { display: block; } }
:root[data-theme="dark"] .fireflies { display: block; }

/* ---------------------------------------------------------------- Flächen (Klassenname .glass bleibt für die Skripte) */
.glass { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); }
.glass-soft { background: var(--surface-2); box-shadow: none; }
.tint-fox { background: linear-gradient(135deg, rgba(232, 118, 43, .14), rgba(233, 180, 76, .08) 60%, transparent), var(--surface);
  border-color: rgba(232, 118, 43, .28); }
.tint-moss { background: linear-gradient(135deg, rgba(63, 143, 92, .16), rgba(63, 143, 92, .04) 70%), var(--surface);
  border-color: rgba(63, 143, 92, .3); }

/* ---------------------------------------------------------------- Layout & Typografie */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: .08em;
  color: var(--moss); text-transform: uppercase; }
:root[data-theme="dark"] .eyebrow { color: var(--moss-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--moss-3); } }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.grad { background: linear-gradient(100deg, var(--moss) 0%, #6aa84f 45%, var(--fox) 100%); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }

/* ---------------------------------------------------------------- Navigation */
.nav { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1160px, calc(100% - 24px));
  height: 60px; padding: 0 10px 0 16px; display: flex; align-items: center; gap: 8px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 19px; letter-spacing: -.02em; margin-right: auto; }
.nav .brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 13px; border-radius: 10px; font-size: 15px; font-weight: 550; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.nav-links a i { font-size: 13px; opacity: .7; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-3); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav .nav-toggle { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); }
@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 8px; border-radius: var(--r-lg); gap: 2px; background: var(--menu-bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.open .nav-links { display: flex; animation: pop .22s var(--spring); }
  .nav-links a { padding: 13px 16px; font-size: 17px; font-weight: 600; color: var(--ink); }
  .nav .nav-toggle { display: inline-flex; }
  .nav-actions .hide-sm { display: none; }
}

/* ---------------------------------------------------------------- Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; font-size: 15px; font-weight: 620; letter-spacing: -.01em;
  white-space: nowrap; background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: transform .2s var(--spring), background .2s, border-color .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--moss-3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn i { font-size: .95em; }
.btn-primary { background: var(--primary); border-color: transparent; color: var(--on-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 8px 18px -8px rgba(31, 90, 58, .6); }
.btn-primary:hover { background: var(--primary-2); border-color: transparent; }
.btn-fox { background: var(--fox); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(232, 118, 43, .7); }
.btn-fox:hover { filter: brightness(1.06); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-danger { background: var(--bad); border-color: transparent; color: #fff; }
.btn-danger:hover { filter: brightness(1.08); border-color: transparent; }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 36px; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 150px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; font-size: clamp(38px, 5.2vw, 68px); hyphens: manual; }
.hero p.lead { max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .badge-line { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 14px;
  font-weight: 560; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.hero .badge-line b { color: var(--ink); }
.chips { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px; }
.chip { display: flex; flex-direction: column; gap: 2px; }
.chip b { font-size: 28px; letter-spacing: -.03em; font-weight: 780; line-height: 1.1; }
.chip span { font-size: 13.5px; color: var(--ink-3); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--moss-2); box-shadow: 0 0 0 0 rgba(87, 168, 114, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(87, 168, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(87, 168, 114, 0); } }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 120px; } }

/* ---------------------------------------------------------------- Discord-Vorschau (nachgebaut, bewegt) */
.dc { --dc-bg: #313338; --dc-bg-2: #2b2d31; --dc-bg-3: #1e1f22; --dc-text: #dbdee1; --dc-head: #f2f3f5; --dc-muted: #949ba4;
  --dc-link: #00a8fc; --dc-blurple: #5865f2; --dc-green: #248046; --dc-red: #da373c; --dc-grey: #4e5058;
  background: var(--dc-bg); color: var(--dc-text); border-radius: 16px; overflow: hidden; font-size: 15px; line-height: 1.375;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0, 0, 0, .25); text-align: left; }
.dc-top { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, .28);
  color: var(--dc-head); font-weight: 650; font-size: 15px; background: var(--dc-bg); }
.dc-top i { color: var(--dc-muted); font-size: 17px; }
.dc-top small { color: var(--dc-muted); font-weight: 500; font-size: 13px; margin-left: 8px; padding-left: 10px; border-left: 1px solid #3f4147; }
.dc-body { padding: 14px 6px 18px; display: grid; gap: 14px; min-height: 340px; align-content: start; }
.dc-msg { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 2px 12px; opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
.dc-msg.in { opacity: 1; transform: none; }
.dc-msg > img, .dc-msg > .dc-av { width: 40px; height: 40px; border-radius: 50%; }
.dc-av { display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 16px; }
.dc-name { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--dc-head); font-size: 15px; }
.dc-name .app { background: var(--dc-blurple); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; letter-spacing: .02em; }
.dc-name time { color: var(--dc-muted); font-size: 12px; font-weight: 500; margin-left: 4px; }
.dc-text { color: var(--dc-text); }
.dc-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-embed { margin-top: 6px; max-width: 470px; background: var(--dc-bg-2); border-left: 4px solid var(--fox); border-radius: 4px;
  padding: 10px 14px 14px 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.dc-embed .t { font-weight: 700; color: var(--dc-head); margin-bottom: 4px; }
.dc-embed .d { color: var(--dc-text); font-size: 14px; white-space: pre-line; }
.dc-embed .d b { color: var(--dc-head); }
.dc-embed .sub { color: var(--dc-muted); font-size: 13px; }
.dc-embed .f { color: var(--dc-muted); font-size: 12px; margin-top: 8px; grid-column: 1 / -1; }
.dc-embed .thumb { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.dc-embed ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 500;
  color: #fff; background: var(--dc-grey); transition: filter .2s, transform .15s; }
.dc-btn.blurple { background: var(--dc-blurple); } .dc-btn.green { background: var(--dc-green); } .dc-btn.red { background: var(--dc-red); }
.dc-btn.pressed { filter: brightness(.82); transform: scale(.97); }
.dc-select { margin-top: 8px; max-width: 470px; height: 40px; border-radius: 4px; background: var(--dc-bg-3); color: var(--dc-muted);
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 14px; border: 1px solid #1a1b1e; }
.dc-image { margin-top: 8px; max-width: 420px; border-radius: 8px; overflow: hidden; }
.dc-image img, .dc-embed > div > img { width: 100%; height: auto; }
.dc-system { color: var(--dc-muted); font-size: 14px; padding: 0 16px; display: flex; gap: 10px; align-items: center; }
.dc-system i { color: var(--dc-green); }
.dc-typing { color: var(--dc-muted); font-size: 12.5px; padding: 0 16px; height: 18px; }
.dc-typing span { display: inline-block; width: 5px; height: 5px; background: var(--dc-muted); border-radius: 50%; margin-right: 2px; animation: typing 1.2s infinite; }
.dc-typing span:nth-child(2) { animation-delay: .15s; } .dc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-3px); opacity: 1; } 60%, 100% { transform: none; opacity: .5; } }
.dc-count { font-variant-numeric: tabular-nums; }
.dc-react { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: 13px;
  background: rgba(88, 101, 242, .15); border: 1px solid var(--dc-blurple); color: #dee0fc; }

/* Showcase: Tabs + Bühne */
.showcase { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.show-tabs { display: grid; gap: 8px; }
.show-tab { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  background: transparent; text-align: left; transition: background .2s, border-color .2s; color: var(--ink); }
.show-tab:hover { background: var(--surface); }
.show-tab.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.show-tab .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 17px;
  background: var(--surface-3); color: var(--moss); }
.show-tab.on .ic { background: var(--primary); color: var(--on-primary); }
.show-tab b { display: block; font-size: 15.5px; }
.show-tab small { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; display: block; margin-top: 2px; }
.show-tab .bar { height: 3px; border-radius: 3px; background: var(--line); margin-top: 10px; overflow: hidden; display: none; }
.show-tab.on .bar { display: block; }
.show-tab .bar i { display: block; height: 100%; width: 0; background: var(--moss-2); }
.show-tab.on .bar i { animation: tabprogress 9s linear forwards; }
@keyframes tabprogress { to { width: 100%; } }
.stage { position: relative; }
.stage .dc { min-height: 430px; }
@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
  .show-tabs { grid-template-columns: repeat(2, 1fr); }
  .show-tab small { display: none; }
}
@media (max-width: 520px) { .show-tabs { grid-template-columns: 1fr 1fr; } .show-tab { padding: 12px; } .show-tab .ic { width: 34px; height: 34px; } }

/* ---------------------------------------------------------------- Funktionen */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { padding: 26px; border-radius: var(--r-xl); overflow: hidden; min-height: 220px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile h3 { font-size: 21px; margin-top: auto; }
.tile p { color: var(--ink-2); margin: 0; font-size: 15px; }
.tile .icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; margin-bottom: 22px;
  background: rgba(63, 143, 92, .12); color: var(--moss); }
.tile .icon.fox { background: rgba(232, 118, 43, .13); color: var(--fox); }
.tile .icon.bark { background: rgba(122, 85, 54, .14); color: var(--bark-2); }
.tile .icon.sky { background: rgba(91, 155, 213, .14); color: var(--sky); }
.tile .icon.berry { background: rgba(194, 84, 106, .13); color: var(--berry); }
.tile .icon.amber { background: rgba(233, 180, 76, .16); color: #b7861f; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.tile.big { min-height: 290px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin: 4px 0 20px; }
.mini-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--moss-3), var(--moss)); opacity: .9; }
.lvl-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; font-size: 14px; }
.lvl-row .bar { flex: 1; height: 9px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.lvl-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--moss-2), var(--fox)); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > * { grid-column: span 2; } .bento > .half { grid-column: span 1; } }
@media (max-width: 560px) { .bento > .half { grid-column: span 2; } }

/* ---------------------------------------------------------------- Schritte, FAQ, CTA, Team */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--r-xl); }
.step .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 750; font-size: 15px;
  background: var(--primary); color: var(--on-primary); margin-bottom: 18px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 620; font-size: 16.5px; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 14px; transition: transform .3s var(--spring); color: var(--ink-3); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer a, .prose a, .link { color: var(--moss); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:root[data-theme="dark"] .faq .answer a, :root[data-theme="dark"] .prose a, :root[data-theme="dark"] .link { color: var(--moss-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq .answer a, :root:not([data-theme="light"]) .prose a, :root:not([data-theme="light"]) .link { color: var(--moss-3); } }
.cta { padding: 60px 40px; border-radius: var(--r-xl); text-align: center; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #1f4d33, #163a27 60%, #11301f); color: #eef5ef; border: 0; }
.cta .lead { color: #c4d8c9; margin: 0 auto 28px; max-width: 560px; }
.cta svg.cta-trees { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; opacity: .45; pointer-events: none; }
.cta > *:not(svg) { position: relative; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 16px; }
.person { padding: 22px; border-radius: var(--r-xl); display: flex; gap: 16px; align-items: center; }
.person .face { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--moss-2), var(--pine)); flex: none; }
.person p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 680px) { .team { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Footer */
.footer { margin: 40px auto 24px; padding: 32px; border-radius: var(--r-xl); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.footer a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--ink-2); font-size: 15px; }
.footer a i { width: 16px; color: var(--ink-3); font-size: 13px; }
.footer a:hover { color: var(--moss); }
.footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 20px; margin-bottom: 10px; }
.footer .brand img { width: 32px; }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; color: var(--ink-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr 1fr; } .footer > :first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Textseiten */
.page { padding: 120px 0 40px; }
.prose { padding: clamp(24px, 4vw, 52px); border-radius: var(--r-xl); }
.prose h1 { font-size: clamp(32px, 4.4vw, 50px); }
.prose h2 { font-size: 25px; margin-top: 1.8em; }
.prose h3 { font-size: 19px; margin-top: 1.6em; }
.prose h4 { font-size: 16.5px; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 30px; }

/* ---------------------------------------------------------------- Befehle */
.cmd-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.search { flex: 1; min-width: 240px; height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 14px; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; }
.search i { color: var(--ink-3); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 560;
  background: var(--surface); color: var(--ink-2); transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.pill i { font-size: 12.5px; opacity: .75; }
.pill:hover { color: var(--ink); border-color: var(--moss-3); }
.pill.on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.pill.on i { opacity: 1; }
.cmd-cat { margin-bottom: 34px; }
.cmd-cat h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.cmd-cat h3 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: rgba(63, 143, 92, .12); color: var(--moss); }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.cmd { padding: 15px 17px; border-radius: var(--r); }
.cmd code { background: none; border: 0; padding: 0; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.cmd code::before { content: "/"; color: var(--fox); }
.cmd p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------------------------------------------------------------- Formulare (hoher Kontrast) */
.field { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.field:first-child { border-top: 0; padding-top: 4px; }
.field > label, .field-label { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.hint { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.input, .select, textarea.input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 11px; border: 1.5px solid var(--field-line); outline: none;
  background: var(--field); color: var(--ink); transition: border-color .15s, box-shadow .15s; font-size: 15px; }
.input::placeholder, textarea.input::placeholder { color: var(--ink-3); opacity: .85; }
textarea.input { min-height: 100px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover { border-color: var(--moss-3); }
.input:focus, .select:focus { border-color: var(--moss); box-shadow: 0 0 0 4px var(--focus); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236f7f73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; }
.select option { background: var(--menu-bg); color: var(--ink); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.vars { display: flex; gap: 6px; flex-wrap: wrap; }
.var { border: 1px solid rgba(232, 118, 43, .35); cursor: pointer; font-family: var(--mono); font-size: 12.5px; padding: 3px 9px; border-radius: 7px;
  background: rgba(232, 118, 43, .1); color: var(--accent-ink); font-weight: 600; }
.var:hover { background: rgba(232, 118, 43, .2); }
.counter { font-size: 12.5px; color: var(--ink-3); text-align: right; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; font-weight: 620; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .25s var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.switch input:checked + .track { background: var(--moss); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--moss-2); outline-offset: 3px; }
.picker { position: relative; }
.picker-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 7px; border-radius: 11px;
  background: var(--field); border: 1.5px solid var(--field-line); cursor: text; transition: border-color .15s, box-shadow .15s; }
.picker-box:hover { border-color: var(--moss-3); }
.picker.open .picker-box { border-color: var(--moss); box-shadow: 0 0 0 4px var(--focus); }
.picker-box input { flex: 1; min-width: 120px; border: 0; background: transparent; outline: none; padding: 6px 8px; font-size: 15px; color: var(--ink); }
.picker-box input::placeholder { color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 5px 0 10px; border-radius: 8px; font-size: 14px; font-weight: 560;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink); max-width: 100%; }
.tag .x { border: 0; background: transparent; cursor: pointer; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); font-size: 15px; line-height: 1; }
.tag .x:hover { background: rgba(192, 57, 43, .14); color: var(--bad); }
.tag .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tag .t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag .ci { color: var(--ink-3); font-size: 12px; }
.tag.secret .t-name { filter: blur(4px); transition: filter .2s; }
.tag.secret:hover .t-name { filter: none; }
.menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 300px; overflow: auto; padding: 6px; border-radius: 14px;
  display: none; background: var(--menu-bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.picker.open .menu { display: block; animation: pop .18s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--ink); }
.opt:hover, .opt.hl { background: rgba(63, 143, 92, .13); }
.opt.sel { font-weight: 650; }
.opt.sel::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; color: var(--moss); font-size: 13px; }
.opt .k { color: var(--ink-3); width: 18px; text-align: center; flex: none; font-size: 13px; }
.opt small { color: var(--ink-3); margin-left: auto; font-size: 12px; }
.opt.warn small { color: var(--warn); }
.menu-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 11px 4px; font-weight: 700; }
.field.raised, .list-row.raised, .card.raised { position: relative; z-index: 30; }
.menu-empty { padding: 14px; color: var(--ink-3); font-size: 14px; text-align: center; }
.list { display: grid; gap: 8px; }
.list-row { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.list-row .num { width: 96px; }
.list-row .grow { flex: 1; min-width: 180px; }
.empty { padding: 18px; text-align: center; color: var(--ink-3); border-radius: 13px; border: 1.5px dashed var(--line-2); font-size: 14.5px; }
.sublabel { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin: 0 0 6px; display: block; text-transform: none; }

/* Editor-Block (Ticket-Panels, geplante Nachrichten, YouTube) – klar abgegrenzt */
.editor { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: visible; }
.editor-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; border-radius: var(--r-lg); }
.editor-head:hover { background: var(--surface-2); }
.editor-head .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(63, 143, 92, .12); color: var(--moss); flex: none; }
.editor-head b { font-size: 16px; }
.editor-head small { color: var(--ink-3); font-size: 13px; display: block; font-weight: 500; }
.editor-head .chev { margin-left: auto; color: var(--ink-3); transition: transform .25s var(--ease); }
.editor.open .editor-head .chev { transform: rotate(180deg); }
.editor.open .editor-head { border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.editor-body { padding: 6px 18px 18px; }
.editor-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.editor-section > h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.cat-card { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.cat-card .cat-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat-card .cat-num { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-size: 13px; font-weight: 700; flex: none; }
.preview-box { position: sticky; top: 92px; }
.color-input { display: flex; align-items: center; gap: 10px; }
.color-input input[type=color] { width: 44px; height: 44px; border: 1.5px solid var(--field-line); border-radius: 11px; padding: 3px; background: var(--field); cursor: pointer; }
.upload-inline { display: flex; gap: 8px; align-items: center; }
.upload-inline .input { flex: 1; }

/* ---------------------------------------------------------------- Dashboard */
.dash { display: grid; grid-template-columns: 272px 1fr; gap: 22px; width: min(1440px, 100% - 32px); margin: 0 auto; padding: 88px 0 120px; }
.side { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 104px); overflow: auto; padding: 12px; border-radius: var(--r-xl); scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.guild-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.guild-icon { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 750;
  background: linear-gradient(135deg, var(--moss-2), var(--pine)); color: #fff; }
.guild-head b { display: block; font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-head a { font-size: 13px; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.guild-head a:hover { color: var(--moss); }
.side-group { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; padding: 14px 12px 6px; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); font-weight: 550; transition: background .15s, color .15s; }
.side a.item:hover { background: var(--surface-2); color: var(--ink); }
.side a.item.on { color: var(--ink); font-weight: 650; background: rgba(63, 143, 92, .13); box-shadow: inset 3px 0 0 var(--moss); }
.side .e { width: 22px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.side a.item.on .e { color: var(--moss); }
.side .state { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.side .state.on { background: var(--moss-2); box-shadow: 0 0 0 3px rgba(87, 168, 114, .2); }
.main { min-width: 0; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 2px 22px; flex-wrap: wrap; }
.page-title h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 0; letter-spacing: -.035em; display: flex; align-items: center; gap: 14px; }
.page-title h1 .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: rgba(63, 143, 92, .13); color: var(--moss); flex: none; }
.page-title p { margin: 6px 0 0; color: var(--ink-2); }
.cards { display: grid; gap: 16px; }
.card { padding: 24px; border-radius: var(--r-xl); }
.card > h2 { font-size: 18.5px; letter-spacing: -.02em; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.card > h2 i { color: var(--moss); font-size: 16px; }
.card > .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 20px; border-radius: var(--r-xl); }
.kpi small { color: var(--ink-3); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi small i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; background: var(--surface-3); color: var(--ink-2); }
.kpi strong { display: block; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1.1; margin-top: 10px; }
.kpi .note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: block; }
.trend { font-size: 12.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; margin-top: 8px; display: inline-flex; gap: 5px; align-items: center; }
.trend.up { color: var(--ok); background: rgba(47, 138, 79, .12); }
.trend.down { color: var(--bad); background: rgba(192, 57, 43, .1); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, 1fr); } .grid-2, .grid-2e, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; padding-top: 84px; }
  .side { position: relative; top: 0; max-height: none; }
  .side nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side .side-group { display: none; }
  .side a.item { flex: none; }
  .side a.item .state { display: none; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; } .card { padding: 18px; } }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; gap: 2px; background: var(--surface-3); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Diagramme */
.chart { width: 100%; height: 260px; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .axis-title { font-size: 11px; font-weight: 700; font-family: var(--font); }
.chart .linepath { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .hover-line { stroke: var(--ink-3); stroke-dasharray: 3 4; }
.legend { display: flex; gap: 18px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend .axis-note { color: var(--ink-3); font-size: 12.5px; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; min-width: 150px; transition: opacity .15s;
  background: var(--menu-bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.tooltip div { display: flex; gap: 6px; align-items: center; }
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.bar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--moss-3), var(--moss)); transition: width .8s var(--ease); }
.bar-row.violet .track i, .bar-row.voice .track i { background: linear-gradient(90deg, #f3c48d, var(--fox)); }
.bar-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.bar-row span:first-child i { color: var(--ink-3); font-size: 12px; width: 14px; }
.bar-row span:first-child img { width: 22px; height: 22px; border-radius: 50%; }
.bar-row b { font-variant-numeric: tabular-nums; }

/* Bestenliste */
.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 16px; }
.podium .p { padding: 22px 16px; border-radius: var(--r-xl); text-align: center; }
.podium .p img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line-2); }
.podium .p.first img { width: 84px; height: 84px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px #e3b341; }
.podium .medal { font-size: 22px; display: block; margin-bottom: 8px; }
.podium .medal.g1 { color: #d9a520; } .podium .medal.g2 { color: #9aa7ad; } .podium .medal.g3 { color: #b0713c; }
.podium .p b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .p span { font-size: 14px; color: var(--ink-2); }
.podium .p.first { padding-top: 30px; padding-bottom: 30px; }
.ranks { display: grid; gap: 4px; }
.rank { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; }
.rank:nth-child(odd) { background: var(--surface-2); }
.rank.me { box-shadow: inset 0 0 0 1.5px var(--moss); }
.rank .pos { font-weight: 750; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank img { width: 40px; height: 40px; border-radius: 50%; }
.rank .who { overflow: hidden; }
.rank .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 620; }
.rank .who small { color: var(--ink-3); }
.rank .val { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.rank .prog { height: 5px; border-radius: 5px; background: var(--line); margin-top: 5px; overflow: hidden; max-width: 220px; }
.rank .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--moss-2), var(--fox)); }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium .p.first { order: -1; } }
.board-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.board-hero .guild-icon { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }

/* Serverauswahl */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.server { padding: 20px; border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease), box-shadow .3s; }
.server:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.server .top { display: flex; align-items: center; gap: 14px; }
.server .guild-icon { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }
.server b { font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.server small { color: var(--ink-3); font-size: 13px; }
.server .actions { display: flex; gap: 8px; }
.server .actions .btn { flex: 1; }
.server.inactive .guild-icon { filter: grayscale(.8); opacity: .7; }
.me-card { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--r-xl); margin-bottom: 26px; flex-wrap: wrap; }
.me-card img { width: 52px; height: 52px; border-radius: 50%; }
.me-card .grow { flex: 1; min-width: 200px; }

/* Persönlich */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-btn { width: 40px; height: 40px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; }
.swatch-btn.on { border-color: var(--ink); }
.swatch-btn.on::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #fff; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.rankcard-preview { width: 100%; height: auto; aspect-ratio: 10 / 3; border-radius: 14px; background: var(--surface-3); object-fit: cover; border: 1px solid var(--line); }

/* Bot-Profil */
.profile-preview { border-radius: var(--r-xl); overflow: hidden; max-width: 380px; }
.profile-preview .banner { height: 120px; background: linear-gradient(135deg, var(--moss), var(--pine) 60%, var(--bark)); background-size: cover; background-position: center; }
.profile-preview .body { padding: 0 20px 20px; }
.profile-preview .pp { width: 92px; height: 92px; border-radius: 50%; margin-top: -46px; border: 6px solid var(--surface); object-fit: cover; background: var(--surface); }
.profile-preview b { font-size: 21px; display: block; margin-top: 6px; }
.profile-preview .bio { font-size: 14px; color: var(--ink-2); margin-top: 8px; white-space: pre-wrap; }
.drop { display: grid; place-items: center; gap: 4px; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); text-align: center; cursor: pointer;
  color: var(--ink-3); font-size: 14px; transition: border-color .2s, background .2s; }
.drop i { font-size: 22px; color: var(--moss); margin-bottom: 4px; }
.drop:hover, .drop.over { border-color: var(--moss); background: rgba(63, 143, 92, .06); color: var(--ink-2); }

/* Support-Portal */
.ticket-row { color: inherit; transition: transform .3s var(--ease); }
.ticket-row:hover { transform: translateX(3px); }
.ticket-row small { font-size: 13px; }
.chat { padding: 22px; border-radius: var(--r-xl); display: grid; gap: 14px; min-height: 320px; align-content: start; }
#messages { display: grid; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.msg .who { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.msg .bubble { padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.msg .text { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg .meta { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-bottom: 3px; display: flex; gap: 8px; align-items: center; }
.msg .meta time { font-weight: 500; margin-left: auto; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg.mine .bubble { border-radius: 16px 16px 5px 16px; color: #fff; background: var(--primary); border-color: transparent; }
:root[data-theme="dark"] .msg.mine .bubble { color: var(--on-primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg.mine .bubble { color: var(--on-primary); } }
.msg.mine .meta { color: inherit; opacity: .8; }
.msg.staff .bubble { border-color: rgba(232, 118, 43, .5); }
.msg.system { max-width: none; justify-content: center; font-size: 13.5px; color: var(--ink-3); }
.msg .att { max-width: 260px; border-radius: 12px; margin-top: 6px; }
.msg .file { display: inline-block; margin-top: 6px; text-decoration: underline; }
.composer { position: sticky; bottom: 14px; margin-top: 16px; padding: 10px; border-radius: 18px; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 220px; resize: none; }
.composer[hidden], [hidden] { display: none !important; }

/* Neuigkeiten */
.news { display: grid; gap: 18px; }
.news-post { padding: 28px; border-radius: var(--r-xl); }
.news-post header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.news-post h2 { font-size: 26px; margin: 0; }
.news-post time { color: var(--ink-3); font-size: 14px; }
.news-post .intro { color: var(--ink-2); }
.news-group { margin-top: 18px; }
.news-group h3 { font-size: 16px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.news-group h3 i { color: var(--moss); }
.news-group ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.news-group li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.news-group li .k { flex: none; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; height: fit-content; margin-top: 2px; }
.k.new { background: rgba(63, 143, 92, .14); color: var(--moss); }
.k.improved { background: rgba(91, 155, 213, .14); color: var(--sky); }
.k.fix { background: rgba(194, 84, 106, .13); color: var(--berry); }

/* Cookie-Banner */
.consent { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; width: min(760px, calc(100% - 24px));
  padding: 20px 22px; border-radius: var(--r-xl); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end;
  animation: consentin .5s var(--spring); box-shadow: var(--shadow-lg); }
.consent[hidden] { display: none; }
.consent b { font-size: 16px; display: flex; gap: 10px; align-items: center; }
.consent b i { color: var(--bark-2); }
.consent p { margin: 6px 0 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.consent p a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.consent .switch { font-size: 14.5px; gap: 10px; }
.consent-actions { display: flex; flex-direction: column; gap: 8px; }
.consent-actions .btn { width: 100%; }
@keyframes consentin { from { opacity: 0; transform: translate(-50%, 30px); } }
@media (max-width: 640px) { .consent { grid-template-columns: 1fr; bottom: 12px; } .consent-actions { flex-direction: row; flex-wrap: wrap; } .consent-actions .btn { flex: 1; } }
.linkish { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--moss); }

/* Speichern-Leiste, Hinweise */
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 16px; width: min(640px, calc(100% - 24px)); transition: transform .45s var(--spring);
  background: var(--ink); color: var(--bg); border: 0; box-shadow: var(--shadow-lg); }
.savebar .btn-ghost { color: var(--bg); }
.savebar .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.savebar:not(.show) { visibility: hidden; transition: transform .45s var(--spring), visibility 0s .45s; }
.savebar.show { transform: translate(-50%, 0); }
.savebar span { flex: 1; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.savebar.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translate(calc(-50% - 8px), 0); } 40%, 80% { transform: translate(calc(-50% + 8px), 0); } }
.toasts { position: fixed; top: 84px; right: 20px; z-index: 90; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast { padding: 13px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 560; display: flex; gap: 12px; align-items: flex-start; animation: toastin .4s var(--spring); box-shadow: var(--shadow-lg); }
.toast.out { animation: toastout .3s var(--ease) forwards; }
.toast .ic { font-size: 16px; line-height: 1.4; color: var(--ok); }
.toast.error .ic { color: var(--bad); } .toast.warn .ic { color: var(--warn); }
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastout { to { opacity: 0; transform: translateX(30px); } }
.notice { padding: 13px 16px; border-radius: 12px; font-size: 14.5px; background: rgba(232, 118, 43, .09); color: var(--ink-2); border: 1px solid rgba(232, 118, 43, .28);
  display: flex; gap: 12px; align-items: flex-start; }
.notice > i { color: var(--fox); margin-top: 3px; }
.notice.info { background: rgba(63, 143, 92, .08); border-color: rgba(63, 143, 92, .28); }
.notice.info > i { color: var(--moss); }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(232, 118, 43, .13); color: var(--accent-ink); }
.badge.ok { background: rgba(47, 138, 79, .13); color: var(--ok); }
.badge.grey { background: var(--surface-3); color: var(--ink-3); }
.timeline { display: grid; gap: 10px; }
.timeline div { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: baseline; }
.timeline time { color: var(--ink-3); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mod-link { padding: 14px; border-radius: 14px; display: flex; gap: 12px; align-items: flex-start; transition: transform .25s var(--ease), border-color .2s; }
.mod-link:hover { transform: translateY(-2px); border-color: var(--moss-3); }
.mod-link .e { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(63, 143, 92, .12); color: var(--moss); font-size: 14px; }
.mod-link b { display: flex; gap: 8px; align-items: center; font-size: 14.5px; flex-wrap: wrap; }
.mod-link small { color: var(--ink-3); font-size: 13px; line-height: 1.35; display: block; margin-top: 2px; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 120px 20px 60px; text-align: center; }
.error-page .card { max-width: 520px; padding: 46px 36px; }
.error-page .code { font-size: 88px; font-weight: 850; letter-spacing: -.06em; line-height: 1; color: var(--moss); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .dc-msg { opacity: 1; transform: none; }
}

.uline { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 560; }
.uline img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.uline .un { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row > .uline { width: 150px; flex: none; }
@media (max-width: 520px) { .list-row > .uline { width: auto; } }
.grid-2e > .field, .grid-3 > .field { border-top: 0; padding: 12px 0 6px; }
.editor-section .grid-2e, .editor-body .grid-2e { border-top: 1px solid var(--line); }
.editor-body > .grid-2 > div > .grid-2e:first-child { border-top: 0; }
