/* ===== Snouli.net – Grund-Design ===== */
:root {
  --bg: #07080d; --bg2: #0d0f17; --card: rgba(255,255,255,.035); --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.18);
  --text: #eef1f6; --soft: #c9cfdb; --muted: #a9b1c2; --accent: #3dff9a; --danger: #ff9b9b; --warn: #ffcf85; --discord: #5865F2;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --sans: 'Space Grotesk', system-ui, sans-serif;
  --r: 14px; --r2: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent); } a:hover { color: #b6ffd6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { position: relative; z-index: 1; padding: 56px 0 100px; }
.page.narrow .wrap { max-width: 560px; } .page.mid .wrap { max-width: 920px; }
.bg-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .soft { color: var(--soft); }
.kicker { margin: 0 0 12px; font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1.title { margin: 0; font-size: clamp(36px, 5.5vw, 64px); line-height: 1; letter-spacing: -.035em; }
.lead { margin: 14px 0 0; color: var(--muted); font-size: 18px; max-width: 600px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; } .end { align-items: flex-end; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.neon { color: var(--accent); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 42px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ===== Buttons, Felder, Karten ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line2); background: transparent; color: var(--text); font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s, box-shadow .25s, background .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); color: var(--text); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn.pri:hover { background: var(--accent); color: var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 28px var(--accent); }
.btn.danger { border-color: rgba(255,107,107,.5); color: var(--danger); }
.btn.danger:hover { background: rgba(255,107,107,.12); color: #ffc2c2; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.link { padding: 0; border: 0; background: none; color: var(--accent); font: 500 15px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.field { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: var(--bg2);
  color: var(--text); font: 16px var(--sans); color-scheme: dark; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
textarea.field { resize: vertical; line-height: 1.55; }
.lbl { display: block; margin-bottom: 8px; font-size: 14px; color: var(--soft); }
.fld { display: flex; flex-direction: column; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--soft); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); }
.card.hi { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.card.warn { border-color: rgba(255,183,71,.4); background: rgba(255,183,71,.05); }
.card.alert { border-color: rgba(255,92,92,.45); background: rgba(255,92,92,.06); }
.hover-lift { transition: border-color .3s, transform .3s, box-shadow .3s; }
.hover-lift:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-4px); box-shadow: 0 16px 44px -22px var(--accent); }
.err { margin: 0; color: var(--danger); font-size: 14px; } .ok { margin: 0; color: var(--accent); font-size: 14px; }
.empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r2); color: var(--muted); }
.note { padding: 12px 14px; border: 1px dashed rgba(255,255,255,.2); border-radius: 12px; font-size: 13px; color: var(--muted); }

/* Chips & Abzeichen */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; color: var(--soft); font: 600 13px var(--sans); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: var(--bg); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--c, var(--line2));
  color: var(--c, var(--soft)); font: 700 11px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.badge.fill { background: var(--c, var(--accent)); color: var(--bg); }
.tag { padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.06); font-size: 12px; color: var(--soft); }

/* ===== Minecraft-Köpfe ===== */
.head { position: relative; display: inline-block; flex: none; width: var(--s, 32px); height: var(--s, 32px); border-radius: calc(var(--s, 32px) / 7);
  overflow: hidden; background: #252a37; image-rendering: pixelated; }
.head img, .head .q { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.head .q { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
.head .q i { background: #252a37; } .head .q i.on { background: var(--text); }
.head.ring { box-shadow: 0 0 0 2px var(--c, var(--line2)); }
.head.blink { animation: blink .22s ease; }
@keyframes blink { 0%,100% { transform: scaleY(1); filter: none; } 45% { transform: scaleY(.82); filter: brightness(.75); } }
.who { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--soft); text-decoration: none; font-size: 14px; }
.who strong { color: var(--text); transition: color .2s; }
.who .head { transition: transform .25s cubic-bezier(.2,.9,.3,1.4); }
a.who:hover strong { color: var(--accent); } a.who:hover .head { transform: scale(1.15) rotate(-6deg); }

/* ===== Kopfzeile ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,8,13,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--text); text-decoration: none; }
.logo i { width: 22px; height: 22px; background: var(--accent); box-shadow: 0 0 16px var(--accent); transform: rotate(45deg); }
.logo:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.nav > a { color: var(--soft); text-decoration: none; transition: color .2s; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--accent); }
.progress { height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.av-wrap { position: relative; }
.av { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 2px solid var(--c, var(--line2));
  border-radius: 10px; background: var(--bg2); cursor: pointer; transition: box-shadow .25s; }
.av:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 18px var(--accent); }
.av .dot { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ff5c5c; color: #fff;
  font: 700 11px/19px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.menu { position: absolute; right: 0; top: 56px; z-index: 90; width: 270px; padding: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  background: var(--bg2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); animation: menuIn .18s cubic-bezier(.2,.7,.2,1) both; transform-origin: top right; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.menu .me { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); text-decoration: none; font: 500 15px var(--sans); cursor: pointer; text-align: left; }
.mi:hover { background: rgba(255,255,255,.07); color: var(--accent); }
.mi.danger { color: var(--danger); } .mi.danger:hover { background: rgba(255,107,107,.1); color: #ffc2c2; }
.mi .cnt { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #ff5c5c; color: #fff; font-size: 12px; font-weight: 700; }
.mi svg { flex: none; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.site-footer .wrap { padding: 32px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }

/* ===== Effekte ===== */
.fx-glow { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 62%); opacity: 0; transition: opacity .3s; }
.fx-tr { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; z-index: 200; background: var(--accent); box-shadow: 0 0 10px var(--accent);
  mix-blend-mode: screen; opacity: 0; transition: opacity .3s; }
.fx-click { position: fixed; width: 0; height: 0; pointer-events: none; z-index: 210; }
.fx-wave { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 16px var(--accent);
  animation: wave .6s ease-out forwards; }
@keyframes wave { from { transform: scale(.1); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.fx-px { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: px .65s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes px { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@media (hover: none) { .fx-glow, .fx-tr { display: none; } }
.in { animation: in .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .rv-l { animation: rvl linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  .rv-r { animation: rvr linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  .progress { animation: prog linear both; animation-timeline: scroll(root block); }
}
@keyframes rv { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rvl { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes rvr { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes prog { to { transform: scaleX(1); } }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 300; padding: 14px 22px; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 700;
  box-shadow: 0 10px 40px -10px var(--accent); transform: translateX(-50%); animation: toast 2.4s ease both; }
.toast.bad { background: #ff8a8a; box-shadow: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* ===== Startseite ===== */
.hero { position: relative; z-index: 1; padding: 110px 24px 130px; text-align: center; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { margin: 0 auto; max-width: 980px; font-size: clamp(44px, 8vw, 104px); line-height: .98; letter-spacing: -.035em; }
.caret { display: inline-block; width: .55em; height: .9em; margin-left: .08em; vertical-align: -.08em; background: var(--accent); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero .sub { margin: 28px auto 0; max-width: 620px; font-size: 20px; color: var(--muted); }
.ipcard { margin: 48px auto 0; max-width: 560px; padding: 10px 10px 10px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 16px; box-shadow: 0 0 40px -12px var(--accent); text-align: left; }
.ipcard .ip { font: 700 24px var(--mono); }
.blk { position: absolute; border: 2px solid var(--accent); pointer-events: none; translate: calc(var(--mx, 0) * var(--d, 20px)) calc(var(--my, 0) * var(--d, 20px));
  transition: translate .25s ease-out; animation: float 7s ease-in-out infinite; }
.blk.fill { background: color-mix(in srgb, var(--accent) 14%, transparent); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r, 12deg)); } 50% { transform: translateY(-22px) rotate(calc(var(--r, 12deg) + 8deg)); } }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .34s; } .d4 { animation-delay: .46s; }
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02); font: 500 15px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marq 28s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.sec { position: relative; z-index: 1; padding: 120px 0 0; overflow-x: clip; }
.sec h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
.ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
  color: var(--c, var(--accent)); transition: transform .35s; }
.hover-lift:hover .ico { transform: rotate(-8deg) scale(1.1); }
.mode { display: flex; flex-direction: column; gap: 16px; padding: 26px 22px; color: var(--text); text-decoration: none; }
.mode h3 { margin: 0; font-size: 22px; } .mode p { margin: 0; font-size: 15px; color: var(--muted); }
.maint { position: relative; z-index: 2; background: rgba(255,120,120,.09); border-bottom: 1px solid rgba(255,155,155,.35); }
.maint a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 40px; color: #ffd6d6; text-decoration: none; font-size: 15px; }
.discord-box { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); border-radius: 28px; background: #12153a;
  border: 1px solid rgba(88,101,242,.5); text-align: center; }
.btn.dc { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn.dc:hover { background: var(--discord); color: #fff; box-shadow: 0 0 0 4px rgba(88,101,242,.3), 0 0 32px var(--discord); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 22px; align-items: flex-start; padding: 24px 26px; }
.steps .n { flex: none; font: 700 28px var(--mono); color: var(--accent); }

/* ===== Beiträge (Updates/Events/Forum) ===== */
.post { padding: 26px; }
.post h2 { margin: 6px 0 10px; font-size: 26px; letter-spacing: -.01em; }
.post .body { margin: 0; color: #b9c0cf; white-space: pre-line; overflow-wrap: anywhere; }
.post .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 12px var(--mono); color: var(--muted); }
.when { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; font: 700 15px var(--mono); }
.when span { display: inline-flex; align-items: center; gap: 8px; }
.past { opacity: .6; }

/* ===== Chat ===== */
.chat { display: flex; flex-direction: column; overflow: hidden; padding: 0; min-height: 560px; }
.chat .top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat .msgs { height: 460px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat .send { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.msg { display: flex; align-items: flex-end; gap: 8px; }
.msg.mine { justify-content: flex-end; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.08); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.msg.mine .bubble { background: var(--accent); color: var(--bg); }
.msg small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.conv:hover { background: rgba(255,255,255,.05); }
.conv[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,255,255,.08); }
.conv .pv { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.gico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

/* ===== Wiki ===== */
.hitbox mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: #fff; border-radius: 3px; padding: 0 2px; }
.wcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-align: left; color: var(--text); cursor: pointer; font-family: var(--sans); }
.recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 24px; border-radius: 18px; background: #12141c; border: 1px solid var(--line); }
.cgrid { display: grid; grid-template-columns: repeat(3, 64px); gap: 5px; padding: 8px; border-radius: 10px; background: #1d2030; }
.slot { width: 64px; height: 64px; border-radius: 6px; display: grid; place-items: center; color: #fff; font: 700 12px var(--mono); text-align: center; line-height: 1.1;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.12); transition: transform .2s; background: #2a2e3b; }
.slot:hover { transform: scale(1.08); }
.slot img { width: 75%; height: 75%; object-fit: contain; image-rendering: pixelated; }
.slot.big { width: 84px; height: 84px; font-size: 14px; box-shadow: 0 0 30px -6px var(--accent), inset 0 -5px 0 rgba(0,0,0,.25); }
.cnt-badge { position: absolute; right: -6px; bottom: -6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--accent); color: var(--accent); font: 700 14px/26px var(--mono); text-align: center; }
pre.code { margin: 6px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font: 700 17px var(--mono);
  color: var(--accent); white-space: pre-wrap; overflow-wrap: anywhere; }
.wsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.wsteps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.04); }
.wsteps b { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: var(--bg); font: 700 15px var(--mono); }
.grid-in { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 6px; }
.grid-in .field { min-height: 52px; padding: 8px; font-size: 14px; text-align: center; }
.lib-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.lib-item img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }

table.perm { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
table.perm th, table.perm td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
table.perm thead th { color: var(--muted); font-weight: 500; text-align: center; } table.perm thead th:first-child, table.perm thead th:nth-child(2) { text-align: left; }
table.perm td { text-align: center; font-family: var(--mono); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 640px) { .hero { padding-top: 70px; } .nav { gap: 6px 14px; font-size: 14px; } .chat .msgs { height: 380px; } }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tick { display: inline-flex; flex: none; vertical-align: middle; filter: drop-shadow(0 0 6px rgba(59,130,246,.55)); }

/* Wirtschaft */
.live-dot { animation: livePulse 1.4s ease-in-out infinite; box-shadow: 0 0 10px currentColor; }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.flash-up { animation: flashUp 1.2s ease; } .flash-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { color: #fff; text-shadow: 0 0 28px var(--accent); transform: scale(1.08); } 100% { transform: none; } }
@keyframes flashDown { 0% { color: var(--danger); text-shadow: 0 0 28px var(--danger); } 100% { } }
.eco-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.eco-table th { padding: 10px 12px; text-align: left; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line2); }
.eco-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.eco-table tbody tr { transition: background .15s; } .eco-table tbody tr:hover { background: rgba(255,255,255,.04); }
.eco-table .num { text-align: right; font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.eco-noimg { width: 28px; height: 28px; flex: none; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px dashed var(--line2); }
@media (prefers-reduced-motion: reduce) { .live-dot, .flash-up, .flash-down { animation: none; } }
.eco-big { display: inline-block; font: 700 clamp(24px, 3vw, 32px) var(--mono); white-space: nowrap; }
@media (max-width: 600px) { .eco-table .cat { display: none; } .eco-table th, .eco-table td { padding: 10px 6px; } }
