/* =====================================================================
   Vulpo – „Liquid Glass“
   Durchscheinende, lichtbrechende Flächen über einer warmen, bewegten
   Farbwelt. Hell- und Dunkelmodus, ohne externe Schriften/Bibliotheken.
   ===================================================================== */

:root {
  --fox: #ff6a13;
  --fox-2: #ff9a3c;
  --ember: #e8451c;
  --violet: #8b5cf6;
  --sky: #38bdf8;
  --mint: #34d399;
  --rose: #fb7185;

  --bg: #f6efe8;
  --bg-2: #fff8f2;
  --ink: #1d1712;
  --ink-2: #4d4239;
  --ink-3: #85786c;
  --line: rgba(60, 40, 20, .10);

  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-soft: rgba(255, 255, 255, .30);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-edge-2: rgba(255, 255, 255, .25);
  --glass-shadow: 0 1px 1px rgba(80, 50, 20, .04), 0 12px 32px -8px rgba(90, 50, 20, .18), 0 30px 60px -30px rgba(90, 50, 20, .25);
  --glass-tint: rgba(255, 106, 19, .0);
  --field: rgba(255, 255, 255, .55);
  --field-focus: rgba(255, 255, 255, .85);
  --menu-bg: #fffaf6;

  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --blur: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter,
          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: #0d0a12;
    --bg-2: #15101b;
    --ink: #f7f1ec;
    --ink-2: #d6cbc2;
    --ink-3: #9a8f87;
    --line: rgba(255, 255, 255, .09);
    --glass: rgba(40, 32, 44, .42);
    --glass-strong: rgba(48, 38, 52, .66);
    --glass-soft: rgba(255, 255, 255, .06);
    --glass-edge: rgba(255, 255, 255, .26);
    --glass-edge-2: rgba(255, 255, 255, .05);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 16px 40px -10px rgba(0, 0, 0, .55), 0 40px 80px -40px rgba(0, 0, 0, .6);
    --field: rgba(255, 255, 255, .06);
    --field-focus: rgba(255, 255, 255, .11);
    --menu-bg: #1e1722;
    --ok: #4ade80;
    --warn: #fbbf24;
    --bad: #f87171;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0a12;
  --bg-2: #15101b;
  --ink: #f7f1ec;
  --ink-2: #d6cbc2;
  --ink-3: #9a8f87;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(40, 32, 44, .42);
  --glass-strong: rgba(48, 38, 52, .66);
  --glass-soft: rgba(255, 255, 255, .06);
  --glass-edge: rgba(255, 255, 255, .26);
  --glass-edge-2: rgba(255, 255, 255, .05);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 16px 40px -10px rgba(0, 0, 0, .55), 0 40px 80px -40px rgba(0, 0, 0, .6);
  --field: rgba(255, 255, 255, .06);
  --field-focus: rgba(255, 255, 255, .11);
  --menu-bg: #1e1722;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 106, 19, .28); }
:focus-visible { outline: 2px solid var(--fox); outline-offset: 3px; border-radius: 8px; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--glass-soft); padding: .12em .42em;
  border-radius: 7px; border: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Hintergrund */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(255, 140, 60, .35), transparent 60%),
    radial-gradient(900px 700px at 110% 10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(56, 189, 248, .18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: normal;
  animation: drift 28s var(--ease) infinite alternate;
}
.aurora i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: radial-gradient(circle, #ff8a3d, transparent 65%); }
.aurora i:nth-child(2) { width: 38vmax; height: 38vmax; right: -10vmax; top: 18vh; background: radial-gradient(circle, #a78bfa, transparent 65%); animation-duration: 34s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 40vmax; height: 40vmax; left: 25vw; bottom: -22vmax; background: radial-gradient(circle, #fb7185, transparent 65%); animation-duration: 40s; animation-delay: -14s; opacity: .35; }
.aurora i:nth-child(4) { width: 30vmax; height: 30vmax; left: 55vw; top: -12vmax; background: radial-gradient(circle, #38bdf8, transparent 65%); animation-duration: 31s; animation-delay: -4s; opacity: .3; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 5vh, 0) scale(.95); }
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora i { opacity: .32; } }
:root[data-theme="dark"] .aurora i { opacity: .32; }

/* ---------------------------------------------------------------- Glas */
.glass {
  position: relative;
  background: linear-gradient(135deg, var(--glass-strong), var(--glass) 40%, var(--glass) 70%, var(--glass-soft));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(185%);
  backdrop-filter: blur(var(--blur)) saturate(185%);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow),
              inset 0 1px 0 0 var(--glass-edge),
              inset 0 -1px 0 0 var(--glass-edge-2),
              inset 0 0 0 1px rgba(255, 255, 255, .08);
  isolation: isolate;
}
/* lichtbrechender Rand: heller Bogen oben links, weicher Schimmer unten rechts */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(140deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 28%, rgba(255, 255, 255, 0) 50%,
              rgba(255, 255, 255, .12) 75%, rgba(255, 255, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glass::before { opacity: .45; } }
:root[data-theme="dark"] .glass::before { opacity: .45; }
.glass > * { position: relative; z-index: 2; }
.glass-soft { --glass: rgba(255, 255, 255, .22); --glass-strong: rgba(255, 255, 255, .38); }
.tint-fox { background: linear-gradient(135deg, rgba(255, 140, 60, .42), rgba(255, 106, 19, .22) 60%, rgba(255, 180, 120, .18)); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--bg-2); }
}

/* ---------------------------------------------------------------- Layout */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
section { padding: 96px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--fox); text-transform: uppercase; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -.04em; font-weight: 800; }
h2 { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -.032em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.grad { background: linear-gradient(100deg, #ff7a1a 0%, #ff4d3d 40%, #c74bff 100%); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }

/* ---------------------------------------------------------------- Navigation */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1120px, calc(100% - 24px)); height: 62px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 8px; border-radius: 999px;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -.02em; margin-right: auto; }
.nav .brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(255, 106, 19, .35)); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 520; color: var(--ink-2);
  transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--glass-soft); 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 rgba(255, 255, 255, .6); }
@media (max-width: 880px) {
  /* Mobiles Menü: fast deckend – Glas im Glas lässt sich auf dem Handy sonst kaum lesen */
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 8px; border-radius: var(--r-lg); gap: 2px;
    background: var(--menu-bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: 0 0 0 1px var(--line), 0 24px 50px -12px rgba(0, 0, 0, .45) !important; }
  .nav-links::before { display: none; }
  .nav.open .nav-links { display: flex; animation: pop .25s var(--spring); }
  .nav-links a { padding: 14px 18px; font-size: 17px; font-weight: 600; color: var(--ink); border-radius: 14px; }
  .nav-links a:active, .nav-links a:hover { background: rgba(255, 106, 19, .12); }
  .nav .nav-toggle { display: inline-flex; }
  .nav-actions .hide-sm { display: none; }
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  --b-bg: var(--glass);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15.5px; font-weight: 620; letter-spacing: -.01em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18)), var(--b-bg);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(255, 255, 255, .15),
              0 0 0 1px rgba(255, 255, 255, .25), 0 6px 16px -6px rgba(60, 30, 10, .25);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-1px) scale(1.015); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%),
              linear-gradient(135deg, #ff8a2b, #ff5a1f 55%, #f0431a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(150, 30, 0, .25),
              0 0 0 1px rgba(255, 120, 40, .4), 0 10px 26px -8px rgba(255, 90, 20, .65);
  text-shadow: 0 1px 1px rgba(120, 30, 0, .25);
}
.btn-primary:hover { filter: brightness(1.05) saturate(1.05); }
.btn-ghost { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover { background: var(--glass-soft); }
.btn-danger { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px -8px rgba(220, 38, 38, .6); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 36px; }
.btn svg { width: 18px; height: 18px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.btn-primary):not(.btn-danger) {
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), var(--b-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 16px -6px rgba(0, 0, 0, .5);
  }
  :root:not([data-theme="light"]) .btn-ghost:not(:hover) { background: transparent !important; box-shadow: none !important; }
}
:root[data-theme="dark"] .btn:not(.btn-primary):not(.btn-danger) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), var(--b-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 16px -6px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] .btn-ghost:not(:hover) { background: transparent !important; box-shadow: none !important; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 150px 0 60px; text-align: center; position: relative; }
.hero-orb {
  width: 168px; height: 168px; margin: 0 auto 30px; border-radius: 48px; display: grid; place-items: center;
  animation: float 7s ease-in-out infinite;
}
.hero-orb img { width: 112px; height: 112px; filter: drop-shadow(0 12px 22px rgba(200, 60, 0, .35)); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.hero p.lead { max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; font-size: 14.5px; }
.chip b { font-size: 17px; letter-spacing: -.02em; }
.chip .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Dashboard-Vorschau auf der Startseite */
.showcase { margin: 70px auto 0; width: min(1080px, 100%); padding: 14px; border-radius: var(--r-xl); text-align: left;
  transform: perspective(1800px) rotateX(8deg); transform-origin: 50% 0; transition: transform .8s var(--ease); }
.showcase:hover { transform: perspective(1800px) rotateX(0deg); }
.mock { display: grid; grid-template-columns: 220px 1fr; gap: 14px; min-height: 420px; }
.mock-side { padding: 14px; border-radius: 22px; display: flex; flex-direction: column; gap: 4px; }
.mock-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.mock-item.on { background: rgba(255, 255, 255, .55); color: var(--ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
.mock-main { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; gap: 14px; }
.mock-card { padding: 18px; border-radius: 22px; }
.mock-card.wide { grid-column: span 3; }
.mock-card small { color: var(--ink-3); font-size: 13px; }
.mock-card strong { display: block; font-size: 28px; letter-spacing: -.03em; margin-top: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mock-item.on { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); } }
:root[data-theme="dark"] .mock-item.on { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
@media (max-width: 760px) {
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-main { grid-template-columns: 1fr 1fr; }
  .mock-card.wide { grid-column: span 2; }
  .mock-card.hide-sm { display: none; }
}

/* ---------------------------------------------------------------- Bento-Funktionen */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { padding: 28px; border-radius: var(--r-lg); overflow: hidden; min-height: 230px; display: flex; flex-direction: column;
  transition: transform .5s var(--spring); }
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 23px; margin-top: auto; }
.tile p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.tile .icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 27px; margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .35));
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -8px rgba(80, 40, 10, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile .icon { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); } }
:root[data-theme="dark"] .tile .icon { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.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: 300px; }
.tile .art { position: absolute; right: -20px; bottom: -30px; font-size: 170px; opacity: .14; transform: rotate(-12deg); z-index: 0; pointer-events: none; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin: 6px 0 22px; }
.mini-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--fox-2), var(--fox)); opacity: .85; }
.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: rgba(0, 0, 0, .08); overflow: hidden; }
.lvl-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fox-2), var(--ember)); }
@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 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 30px; border-radius: var(--r-lg); }
.step::after { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 24px; font-size: 64px; font-weight: 800;
  letter-spacing: -.05em; color: var(--ink); opacity: .07; z-index: 0; }
.step h3 { margin-top: 10px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r); padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 620; font-size: 17px; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 400; transition: transform .3s var(--spring); color: var(--ink-3); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-2); }

.cta { padding: 64px 40px; border-radius: var(--r-xl); text-align: center; overflow: hidden; }
.cta h2 { margin-bottom: 14px; }
.cta .lead { margin: 0 auto 30px; max-width: 560px; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 18px; }
.person { padding: 24px; border-radius: var(--r-lg); display: flex; gap: 16px; align-items: center; }
.person .face { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 21px; color: #fff;
  background: linear-gradient(135deg, var(--fox-2), var(--ember)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); 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: 34px; border-radius: var(--r-xl); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 12px; }
.footer a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 15px; }
.footer a:hover { color: var(--fox); }
.footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 750; 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; } }

/* ---------------------------------------------------------------- Seiten mit Text (Rechtliches) */
.page { padding: 130px 0 40px; }
.prose { padding: clamp(24px, 4vw, 52px); border-radius: var(--r-xl); }
.prose h1 { font-size: clamp(34px, 4.5vw, 52px); }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose h4 { font-size: 17px; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--fox); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.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: 52px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 999px; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16.5px; }
.search svg { width: 20px; height: 20px; opacity: .55; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; font-size: 14px; font-weight: 560;
  background: var(--glass-soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.pill:hover { color: var(--ink); }
.pill.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.cmd-cat { margin-bottom: 34px; }
.cmd-cat h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cmd { padding: 16px 18px; border-radius: var(--r); }
.cmd code { background: none; border: 0; padding: 0; font-size: 15px; 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 */
.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: 620; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.hint { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.input, .select, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 16px; border-radius: 14px; border: 0; outline: none;
  background: var(--field); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .2s, background .2s; font-size: 15.5px;
}
textarea.input { min-height: 104px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus { background: var(--field-focus); box-shadow: inset 0 0 0 1.5px var(--fox), 0 0 0 4px rgba(255, 106, 19, .14); }
.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='%23887' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.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: 0; cursor: pointer; font-family: var(--mono); font-size: 12.5px; padding: 4px 9px; border-radius: 8px;
  background: rgba(255, 106, 19, .12); color: var(--ember); }
.var:hover { background: rgba(255, 106, 19, .22); }
.counter { font-size: 12.5px; color: var(--ink-3); text-align: right; }

/* iOS-Schalter */
.switch { position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 52px; height: 32px; border-radius: 999px; background: rgba(120, 110, 100, .28); position: relative; flex: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15); transition: background .3s var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f2f2f2); box-shadow: 0 3px 8px rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .05);
  transition: transform .35s var(--spring), width .2s; }
.switch:active .track::after { width: 32px; }
.switch input:checked + .track { background: linear-gradient(135deg, #ff8a2b, #ff5a1f); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch:active input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--fox); outline-offset: 3px; }

/* Auswahl mit Suche (Kanäle, Rollen) */
.picker { position: relative; }
.picker-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border-radius: 14px;
  background: var(--field); box-shadow: inset 0 0 0 1px var(--line); cursor: text; transition: box-shadow .2s, background .2s; }
.picker.open .picker-box { background: var(--field-focus); box-shadow: inset 0 0 0 1.5px var(--fox), 0 0 0 4px rgba(255, 106, 19, .14); }
.picker-box input { flex: 1; min-width: 120px; border: 0; background: transparent; outline: none; padding: 6px 8px; font-size: 15px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 11px; border-radius: 10px; font-size: 14px; font-weight: 560;
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0, 0, 0, .08); max-width: 100%; }
.tag .x { border: 0; background: transparent; cursor: pointer; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); font-size: 16px; line-height: 1; }
.tag .x:hover { background: rgba(0, 0, 0, .08); color: var(--ink); }
.tag .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tag .t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.secret .t-name { filter: blur(4px); transition: filter .2s; }
.tag.secret:hover .t-name { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); } }
:root[data-theme="dark"] .tag { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-height: 300px; overflow: auto; padding: 6px; border-radius: 18px;
  display: none; --glass: rgba(255, 255, 255, .78); --glass-strong: rgba(255, 255, 255, .9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu { --glass: rgba(36, 28, 40, .86); --glass-strong: rgba(48, 38, 52, .92); } }
:root[data-theme="dark"] .menu { --glass: rgba(36, 28, 40, .86); --glass-strong: rgba(48, 38, 52, .92); }
.picker.open .menu { display: block; animation: pop .22s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; cursor: pointer; font-size: 15px; }
.opt:hover, .opt.hl { background: rgba(255, 106, 19, .12); }
.opt.sel { font-weight: 650; }
.opt.sel::after { content: "✓"; margin-left: auto; color: var(--fox); font-weight: 700; }
.opt .k { color: var(--ink-3); width: 18px; text-align: center; flex: none; }
.opt small { color: var(--ink-3); margin-left: auto; font-size: 12px; }
.opt.warn small { color: var(--warn); }
.menu-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 12px 4px; font-weight: 650; }
.field.raised, .list-row.raised { position: relative; z-index: 30; }
.menu-empty { padding: 14px; color: var(--ink-3); font-size: 14px; text-align: center; }

/* Listen-Editoren (Levelrollen, Strafen, Auto-Reaktionen) */
.list { display: grid; gap: 8px; }
.list-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--glass-soft);
  box-shadow: inset 0 0 0 1px 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: 16px; border: 1.5px dashed var(--line); font-size: 14.5px; }

/* ---------------------------------------------------------------- Dashboard */
.dash { display: grid; grid-template-columns: 286px 1fr; gap: 20px; width: min(1440px, 100% - 32px); margin: 0 auto; padding: 92px 0 120px; }
.side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding: 14px; 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 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.guild-icon { width: 46px; height: 46px; border-radius: 15px; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 750;
  background: linear-gradient(135deg, var(--fox-2), var(--ember)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 14px -6px rgba(200, 60, 0, .5); }
.guild-head b { display: block; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-head a { font-size: 13px; color: var(--ink-3); }
.guild-head a:hover { color: var(--fox); }
.side-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 680; padding: 14px 12px 6px; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 13px; font-size: 15px; color: var(--ink-2); font-weight: 520;
  transition: background .2s, color .2s; }
.side a.item:hover { background: var(--glass-soft); color: var(--ink); }
.side a.item.on { color: var(--ink); font-weight: 650; background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5));
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(80, 40, 10, .3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side a.item.on { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); } }
:root[data-theme="dark"] .side a.item.on { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.side .e { width: 24px; text-align: center; font-size: 17px; }
.side .state { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.side .state.on { background: var(--mint); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.main { min-width: 0; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 4px 22px; flex-wrap: wrap; }
.page-title h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 0; letter-spacing: -.035em; }
.page-title p { margin: 6px 0 0; color: var(--ink-2); }
.cards { display: grid; gap: 18px; }
.card { padding: 26px; border-radius: var(--r-lg); }
.card > h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.card > .sub { color: var(--ink-3); font-size: 14.5px; margin: 0 0 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { padding: 22px; border-radius: var(--r-lg); }
.kpi small { color: var(--ink-3); font-size: 13.5px; font-weight: 560; display: flex; align-items: center; gap: 6px; }
.kpi strong { display: block; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1.1; margin-top: 6px; }
.trend { font-size: 13px; font-weight: 650; padding: 2px 8px; border-radius: 999px; margin-top: 8px; display: inline-block; }
.trend.up { color: var(--ok); background: rgba(22, 163, 74, .12); }
.trend.down { color: var(--bad); background: rgba(220, 38, 38, .1); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, 1fr); } .grid-2, .grid-2e { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; padding-top: 88px; }
  .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; }
}
.seg { display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7)); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .2), inset 0 1px 0 #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); } }
:root[data-theme="dark"] .seg button.on { background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }

/* Diagramme */
.chart { width: 100%; height: 260px; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; }
.chart .area { opacity: .9; }
.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: 16px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; min-width: 140px;
  --glass: rgba(255, 255, 255, .8); --glass-strong: rgba(255, 255, 255, .92); transition: opacity .15s; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tooltip { --glass: rgba(36, 28, 40, .88); --glass-strong: rgba(48, 38, 52, .94); } }
:root[data-theme="dark"] .tooltip { --glass: rgba(36, 28, 40, .88); --glass-strong: rgba(48, 38, 52, .94); }
.bars { display: grid; gap: 10px; }
.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(--glass-soft); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fox-2), var(--fox)); transition: width .8s var(--ease); }
.bar-row.violet .track i { background: linear-gradient(90deg, #c4b5fd, var(--violet)); }
.bar-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.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: 18px; }
.podium .p { padding: 22px 16px; border-radius: var(--r-lg); text-align: center; }
.podium .p img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .7), 0 10px 20px -8px rgba(0, 0, 0, .35); }
.podium .p.first img { width: 84px; height: 84px; box-shadow: 0 0 0 3px #ffcf4a, 0 12px 24px -8px rgba(200, 140, 0, .5); }
.podium .medal { font-size: 26px; display: block; margin-bottom: 6px; }
.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: 6px; }
.rank { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; }
.rank:nth-child(odd) { background: var(--glass-soft); }
.rank.me { box-shadow: inset 0 0 0 1.5px var(--fox); }
.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(--fox-2), var(--fox)); }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium .p.first { order: -1; } }

/* Serverauswahl */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.server { padding: 22px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 16px; transition: transform .45s var(--spring); }
.server:hover { transform: translateY(-4px); }
.server .top { display: flex; align-items: center; gap: 14px; }
.server .guild-icon { width: 58px; height: 58px; border-radius: 19px; font-size: 19px; }
.server b { font-size: 17px; 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 .btn { width: 100%; }
.server.inactive .guild-icon { filter: grayscale(.8); opacity: .7; }

/* Bot-Profil */
.profile-preview { border-radius: var(--r-lg); overflow: hidden; max-width: 380px; }
.profile-preview .banner { height: 120px; background: linear-gradient(135deg, var(--fox-2), var(--ember) 60%, var(--violet)); 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(--bg-2); object-fit: cover; background: var(--bg-2); }
.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: 16px; border: 1.5px dashed var(--line); text-align: center; cursor: pointer;
  color: var(--ink-3); font-size: 14px; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--fox); background: rgba(255, 106, 19, .06); color: var(--ink-2); }

/* Support-Portal */
.ticket-row { color: inherit; transition: transform .3s var(--spring); }
.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: 11px 15px; border-radius: 20px 20px 20px 6px; background: var(--glass-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 14px -8px rgba(0, 0, 0, .3); min-width: 0; }
.msg .text { white-space: pre-wrap; word-wrap: break-word; font-size: 15.5px; }
.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: 20px 20px 6px 20px; color: #fff;
  background: linear-gradient(135deg, #ff8a2b, #ff5a1f); box-shadow: 0 8px 20px -10px rgba(255, 90, 20, .7); }
.msg.mine .meta { color: rgba(255, 255, 255, .8); }
.msg.staff .bubble { box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, .45), 0 4px 14px -8px rgba(0, 0, 0, .3); }
.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: 26px; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 220px; resize: none; border-radius: 18px; }
.composer[hidden], [hidden] { display: none !important; }

/* 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-lg); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end;
  animation: consentin .6s var(--spring); --glass: rgba(255, 255, 255, .72); --glass-strong: rgba(255, 255, 255, .86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .consent { --glass: rgba(36, 28, 40, .82); --glass-strong: rgba(48, 38, 52, .9); } }
:root[data-theme="dark"] .consent { --glass: rgba(36, 28, 40, .82); --glass-strong: rgba(48, 38, 52, .9); }
.consent[hidden] { display: none; }
.consent b { font-size: 16.5px; }
.consent p { margin: 6px 0 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.consent p a { color: var(--fox); text-decoration: underline; text-underline-offset: 3px; }
.consent .switch { font-size: 14.5px; font-weight: 600; gap: 10px; }
.consent .switch .track { transform: scale(.85); transform-origin: left center; margin-right: -6px; }
.consent-actions { display: flex; flex-direction: column; gap: 8px; }
.consent-actions .btn { width: 100%; }
@keyframes consentin { from { opacity: 0; transform: translate(-50%, 30px) scale(.97); } }
@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(--fox); }

/* Speichern-Leiste */
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 60; display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 22px; border-radius: 999px; width: min(640px, calc(100% - 24px)); transition: transform .5s var(--spring); }
.savebar:not(.show) { visibility: hidden; transition: transform .5s var(--spring), visibility 0s .5s; }
.savebar.show { transform: translate(-50%, 0); }
.savebar span { flex: 1; font-weight: 600; font-size: 15px; }
.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: 88px; right: 20px; z-index: 90; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast { padding: 14px 18px; border-radius: 18px; font-size: 14.5px; font-weight: 560; display: flex; gap: 10px; align-items: flex-start; animation: toastin .45s var(--spring); }
.toast.out { animation: toastout .3s var(--ease) forwards; }
.toast .ic { font-size: 17px; line-height: 1.3; }
@keyframes toastin { from { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toastout { to { opacity: 0; transform: translateX(30px) scale(.96); } }

.notice { padding: 14px 18px; border-radius: 16px; font-size: 14.5px; background: rgba(255, 106, 19, .1); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 106, 19, .25); }
.notice.info { background: rgba(56, 189, 248, .1); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .3); }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--glass-soft), rgba(255, 255, 255, .35), var(--glass-soft)); 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, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(255, 106, 19, .14); color: var(--ember); }
.badge.ok { background: rgba(22, 163, 74, .12); color: var(--ok); }
.badge.grey { background: var(--glass-soft); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.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: 12px; }
.mod-link { padding: 16px; border-radius: 18px; display: flex; gap: 12px; align-items: flex-start; transition: transform .4s var(--spring); }
.mod-link:hover { transform: translateY(-3px); }
.mod-link .e { font-size: 22px; }
.mod-link b { display: block; font-size: 15px; }
.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: 92px; font-weight: 850; letter-spacing: -.06em; line-height: 1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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