/* ichbinsjetzt Community – neutrale Flächen, Blau nur als Akzent, Mint aus dem Logo */
:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F0F2F5;
  --fg: #16181D;
  --muted: #646B78;
  --line: #E4E7EC;
  --blue: #1D5FD1;
  --blue-deep: #17489E;
  --blue-soft: #EBF1FC;
  --ink: #16181D;
  --on-ink: #FFFFFF;
  --mint: #8FD8CF;
  --on-blue: #FFFFFF;
  --on-mint: #0B2A33;
  --live: #E0294A;
  --ok: #1E9E6A;
  --warn: #B87C00;
  --danger: #C8283F;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.08);
  --f-display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1014; --surface: #17191E; --surface-2: #20232A; --fg: #ECEDEF; --muted: #9A9FA9;
  --line: #2A2D35; --blue: #6EA2FF; --blue-deep: #9CC0FF; --blue-soft: #1C2536;
  --ink: #ECEDEF; --on-ink: #0E1014;
  --on-blue: #0A1222; --live: #FF5C78; --ok: #3CCB8F; --warn: #F2B53A; --danger: #FF6B81;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1014; --surface: #17191E; --surface-2: #20232A; --fg: #ECEDEF; --muted: #9A9FA9;
    --line: #2A2D35; --blue: #6EA2FF; --blue-deep: #9CC0FF; --blue-soft: #1C2536;
    --ink: #ECEDEF; --on-ink: #0E1014;
    --on-blue: #0A1222; --live: #FF5C78; --ok: #3CCB8F; --warn: #F2B53A; --danger: #FF6B81;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.55; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 800; }
h1 { font-size: clamp(26px, 3vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.stack-sm { display: grid; gap: 10px; align-content: start; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol, .prose h2, .prose h3, .prose blockquote { margin: 0 0 .8em; }
.prose img { border-radius: 12px; }
.prose blockquote { border-left: 3px solid var(--mint); padding-left: 14px; color: var(--muted); }

/* ── Kopfzeile ── */
.top { position: sticky; top: 0; z-index: 20; color: var(--fg); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); transition: box-shadow .2s; }
/* Farbstreifen oben nur bei Live-Stream, rot pulsierend */
.top.is-live::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #E0294A, #FF7A59, #E0294A, #FF7A59, #E0294A); background-size: 200% 100%; animation: top-flow 3s linear infinite; }
@keyframes top-flow { to { background-position: -200% 0; } }
.top.scrolled { box-shadow: 0 6px 24px rgba(16,24,40,.10); }
.top-in { max-width: 1760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 64px; }
.top-left { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-logo { flex: none; display: block; transition: transform .2s; }
.top-logo:hover { transform: rotate(-2deg) scale(1.03); }
.logo { height: 34px; width: auto; }
.top .search { position: relative; flex: 1; max-width: 300px; display: flex; align-items: center; }
.top .search > svg { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.top .search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid transparent; padding: 0 38px 0 38px; background: var(--surface-2); color: var(--fg); transition: border-color .15s, background .15s, box-shadow .15s; }
.top .search input::placeholder { color: var(--muted); }
.top .search input:focus { outline: none; background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.top .search kbd { position: absolute; right: 10px; font: 700 11px var(--f-body); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; background: var(--surface); pointer-events: none; }
.top .search input:focus ~ kbd { display: none; }
/* Schnellzugriff in der Mitte */
.top-tabs { display: flex; gap: 4px; align-self: stretch; }
.top-tabs a { --c: var(--blue); position: relative; display: grid; place-items: center; width: 64px; color: var(--muted); border-radius: 12px; margin-block: 6px; transition: background .15s, color .15s; }
.top-tabs a:hover { background: var(--surface-2); color: var(--c); }
.top-tabs a svg { width: 23px; height: 23px; transition: transform .2s cubic-bezier(.3,1.7,.5,1); }
.top-tabs a:hover svg { transform: translateY(-2px); }
.top-tabs a[aria-current="page"] { color: var(--c); }
.top-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); }
.top-tabs .count-dot { top: 4px; right: 10px; }
.tab-live { position: absolute; top: 9px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--surface); animation: pulse 1.4s infinite; }
.top-actions { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; position: relative; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--fg); cursor: pointer; position: relative; display: grid; place-items: center; text-decoration: none; transition: background .15s, color .15s, transform .1s; }
.icon-btn:hover { background: var(--blue-soft); color: var(--blue-deep); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.top-me { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 14px; transition: background .15s; }
.top-me:hover { background: var(--surface-2); }
.top-me .avatar { width: 34px; height: 34px; font-size: 15px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--mint); }
.count-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.live-chip { display: inline-flex; align-items: center; gap: 6px; background: #E0294A; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.live-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ── Gerüst ── */
.shell { max-width: 1760px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0,1fr) 300px; gap: 24px; padding-block: 24px 56px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.shell.no-side { grid-template-columns: 230px minmax(0,1fr); }
.shell.guest { grid-template-columns: minmax(0,1fr); max-width: 1200px; }
.nav { position: sticky; top: 91px; align-self: start; display: grid; gap: 16px; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 12px; }
.nav-group { display: grid; gap: 2px; }
.nav-group .eyebrow { padding: 0 12px 4px; }
.nav a, .nav-btn { --c: var(--blue); display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; border: 0; background: none; width: 100%; cursor: pointer; font-size: inherit; text-align: left; }
.nav a:hover, .nav-btn:hover { background: var(--surface-2); }
.nav a svg, .nav-btn svg { width: 32px; height: 32px; padding: 7px; border-radius: 10px; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); transition: transform .2s cubic-bezier(.3,1.7,.5,1), background .15s, color .15s; }
.nav a:hover svg, .nav-btn:hover svg { transform: scale(1.08) rotate(-4deg); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--fg); font-weight: 800; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.nav a[aria-current="page"] svg { background: var(--c); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 35%, transparent); }
.nav form { margin: 0; }
:root[data-theme="dark"] .nav a svg, :root[data-theme="dark"] .nav-btn svg { color: color-mix(in srgb, var(--c) 70%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a svg, :root:not([data-theme="light"]) .nav-btn svg { color: color-mix(in srgb, var(--c) 70%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); } }
:root[data-theme="dark"] .nav a[aria-current="page"] svg { color: #fff; background: var(--c); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a[aria-current="page"] svg { color: #fff; background: var(--c); } }
.nav .tag { margin-left: auto; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: var(--on-blue); }
.main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.side { display: grid; gap: 18px; align-content: start; min-width: 0; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.box > h2, .box > h3 { margin-bottom: 12px; }
.box-flush { padding: 0; overflow: hidden; }
.page-head { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.page-head p { margin-top: 4px; color: var(--muted); max-width: 65ch; }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 18px; color: var(--muted); text-align: center; }
.notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.notice > span, .notice > p { flex: 1; min-width: 200px; }
.notice.warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); }
.notice.danger { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }

/* ── Meldungen ── */
.flashes { display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; background: color-mix(in srgb, var(--ok) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.flash.error { background: color-mix(in srgb, var(--danger) 13%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; transition: .25s; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--ink); color: var(--on-ink); white-space: nowrap; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-mint { background: var(--mint); color: var(--on-mint); }
.btn-ghost { background: var(--surface-2); color: var(--fg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-line { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-sm { min-height: 32px; padding: 0 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--fg); text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--blue-soft); border-color: transparent; color: var(--blue-deep); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Formulare ── */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: start; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 700; }
.field small, .hint { color: var(--muted); font-size: 12px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field textarea, .field select, select.input {
  width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--bg);
}
.field textarea, textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input[type=file] { padding: 8px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth { max-width: 480px; width: 100%; justify-self: center; padding: 28px; }
.steps { display: flex; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.steps span { flex: 1; padding-top: 6px; border-top: 3px solid var(--line); }
.steps span.on { border-color: var(--blue); color: var(--blue-deep); }

/* ── Avatare & Abzeichen ── */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-family: var(--f-display); font-size: 17px; flex: none; object-fit: cover; background: var(--surface-2); }
.avatar-xs { width: 26px; height: 26px; font-size: 12px; }
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.avatar-xl { width: 112px; height: 112px; font-size: 44px; border: 4px solid var(--surface); }
.a1 { background: #4A5FE0; color: #fff; } .a2 { background: #8FD8CF; color: #0B2A33; } .a3 { background: #F2762E; color: #fff; }
.a4 { background: #E35D8E; color: #fff; } .a5 { background: #7C5CFF; color: #fff; }
.avatars { display: inline-flex; }
.avatars .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; margin-left: 5px; vertical-align: 1px; white-space: nowrap; }
.badge.streamer { background: var(--blue); color: var(--on-blue); }
.badge.mod { background: var(--mint); color: var(--on-mint); }
.badge.vip { background: var(--fg); color: var(--bg); }
.badge.sub { background: var(--blue-soft); color: var(--blue-deep); }
.badge.custom { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
:root[data-theme="dark"] .badge.custom { color: color-mix(in srgb, var(--c) 50%, #fff); }
.ulink { color: var(--fg); font-weight: 700; text-decoration: none; }
.ulink:hover { text-decoration: underline; }
.mention { font-weight: 700; text-decoration: none; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* ── Live-Banner ── */
.live-card { border-radius: var(--r); overflow: hidden; background: radial-gradient(600px 220px at 85% 0%, rgba(255,92,120,.45), transparent 70%), linear-gradient(120deg, #2A0F2E, #7A1838 60%, #C8283F); color: #fff; position: relative; }
.live-card .inner { position: relative; padding: 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; }
.live-card .bubbles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; pointer-events: none; }
.live-card h2 { font-size: 26px; margin: 10px 0 4px; color: #fff; }
.live-card .meta { opacity: .88; font-size: 14px; }
.live-card.off { background: radial-gradient(520px 200px at 90% 0%, rgba(143,216,207,.22), transparent 70%), radial-gradient(420px 200px at 0% 120%, rgba(124,92,255,.25), transparent 70%), linear-gradient(120deg, #15171C, #23262E); }
.off-chip { display: inline-block; background: rgba(255,255,255,.18); font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; }

/* ── Beiträge ── */
.composer { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; }
.composer textarea { width: 100%; min-height: 56px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.composer-extra { grid-column: 2; display: grid; gap: 10px; }
.composer-bar { grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer-bar .btn:last-child { margin-left: auto; }
.preview-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.post { display: grid; gap: 12px; }
.post-head { display: flex; gap: 12px; align-items: center; }
.post-head .who { min-width: 0; flex: 1; }
.post-head small, .meta-line { display: block; color: var(--muted); font-size: 13px; }
.post-body { overflow-wrap: anywhere; }
.post.system { border-color: color-mix(in srgb, var(--mint) 60%, var(--line)); background: linear-gradient(0deg, var(--surface), color-mix(in srgb, var(--mint) 10%, var(--surface))); }
.gallery { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2, .gallery.n4 { grid-template-columns: 1fr 1fr; }
.gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.n3 a:first-child { grid-row: span 2; }
.gallery a { display: block; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.gallery.n2 img, .gallery.n3 img, .gallery.n4 img { aspect-ratio: 1; }
.poll { display: grid; gap: 8px; }
.poll button { position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px; cursor: pointer; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; width: 100%; font-weight: 600; transition: border-color .15s; }
.poll button:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.poll button span { position: relative; }
.poll button .mono { font-family: var(--f-body); font-weight: 800; color: var(--muted); }
.poll button i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--blue-soft), color-mix(in srgb, var(--mint) 35%, var(--blue-soft))); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.poll button.mine { border-color: var(--blue); }
.poll button.mine .mono { color: var(--blue-deep); }
.post-stats { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; min-height: 20px; }
.post-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; border-top: 1px solid var(--line); padding-top: 6px; }
.post-actions > .react-wrap { display: grid; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; transition: background .15s, color .15s; }
.act:hover { background: var(--surface-2); color: var(--fg); }
.act:active { transform: scale(.97); }
.act svg { width: 18px; height: 18px; }

/* Reaktionen: das Symbol wird ersetzt, Farbe passt zur Reaktion */
.react-wrap { position: relative; }
.react-btn { --rc: var(--blue); }
.react-btn[data-r="haha"], .react-btn[data-r="wow"], .react-btn[data-r="sad"] { --rc: #E39A0B; }
.react-btn.on, .react-btn.on:hover { color: var(--rc); }
.react-ico { display: inline-grid; place-items: center; min-width: 18px; height: 18px; }
.react-ico:empty { display: none; }
.react-emoji { font-size: 18px; line-height: 1; }
.comment-meta .react-ico { min-width: 14px; height: 14px; margin-right: 3px; vertical-align: -2px; }
.comment-meta .react-emoji { font-size: 14px; }
.react-ico.pop { animation: react-pop .45s cubic-bezier(.3,1.7,.5,1); }
@keyframes react-pop { 0% { transform: scale(.3) rotate(-15deg); } 60% { transform: scale(1.35) rotate(6deg); } 100% { transform: none; } }
.react-pop { position: absolute; bottom: calc(100% + 8px); left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(16,24,40,.18); padding: 5px; display: flex; gap: 2px; z-index: 5; animation: pop-in .18s ease-out; transform-origin: 20px 100%; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.react-pop button { position: relative; border: 0; background: none; font-size: 24px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: transform .15s cubic-bezier(.3,1.7,.5,1); animation: pop-in .25s ease-out backwards; }
.react-pop button:nth-child(2) { animation-delay: .03s; } .react-pop button:nth-child(3) { animation-delay: .06s; }
.react-pop button:nth-child(4) { animation-delay: .09s; } .react-pop button:nth-child(5) { animation-delay: .12s; }
.react-pop button:hover { transform: translateY(-6px) scale(1.3); }
.react-pop button:hover::after { content: attr(title); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%) scale(.77); background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.react-count { display: inline-flex; align-items: center; gap: 6px; }
.react-emojis { display: inline-flex; }
.react-emojis i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); font-size: 13px; line-height: 1; margin-left: -5px; }
.react-emojis i:first-child { margin-left: 0; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 6; min-width: 200px; display: grid; }
.menu-list a, .menu-list button { display: block; text-align: left; padding: 8px 12px; border-radius: 8px; border: 0; background: none; color: var(--fg); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 14px; width: 100%; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.menu-list .danger { color: var(--danger); }
.menu-list form { margin: 0; }

/* ── Kommentare ── */
.comments { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.comment { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: start; }
.comment-main { display: grid; gap: 4px; min-width: 0; }
.bubble { background: var(--surface-2); border-radius: 14px; padding: 8px 12px; overflow-wrap: anywhere; justify-self: start; max-width: 100%; position: relative; }
.bubble .body { font-size: 14px; }
.bubble img { margin-top: 6px; border-radius: 10px; max-height: 260px; width: auto; }
.comment-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--muted); padding-left: 12px; flex-wrap: wrap; }
.comment-meta button, .comment-meta a { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 12.5px; text-decoration: none; }
.comment-meta button:hover, .comment-meta a:hover { color: var(--fg); }
.comment-meta .on { color: var(--blue); }
.comment-meta .react-btn.on { color: var(--rc); }
.comment-main .bubble { max-width: calc(100% - 52px); }
.comment-react-count { position: absolute; left: calc(100% + 6px); bottom: 2px; white-space: nowrap; background: var(--surface); border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 1px 6px 1px 2px; color: var(--muted); box-shadow: 0 1px 4px rgba(16,24,40,.16); gap: 3px; }
.comment-react-count .react-emojis i { width: 17px; height: 17px; font-size: 11px; }
.replies { display: grid; gap: 10px; margin-top: 6px; padding-left: 4px; border-left: 2px solid var(--line); }
.replies .comment { padding-left: 10px; }
.comment-form { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: start; margin: 0; }
.comment-input { display: flex; gap: 6px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 4px 4px 4px 14px; }
.comment-input textarea { flex: 1; min-width: 0; border: 0; background: none; resize: none; min-height: 32px; max-height: 160px; padding: 6px 0; line-height: 1.4; }
.comment-input textarea:focus { outline: none; }
.comment-input label, .comment-input button { flex: none; }
.img-pick { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.img-pick:hover { background: var(--surface-2); color: var(--blue); }
.img-pick svg { width: 18px; height: 18px; }
.comment-preview { grid-column: 2; }
.comment-preview img { max-height: 120px; border-radius: 10px; }

/* ── Rechte Spalte ── */
.sched { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sched li { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 10px; align-items: center; }
.day { text-align: center; border-radius: 10px; background: var(--surface-2); padding: 5px 0; line-height: 1.1; }
.day b { display: block; font-family: var(--f-display); font-size: 19px; }
.day small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.day.today { background: var(--blue); color: var(--on-blue); }
.day.today small { color: inherit; opacity: .85; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; text-align: center; }
.stat-row b { display: block; font-family: var(--f-display); font-size: 24px; color: var(--blue); line-height: 1.2; }
.stat-row small { color: var(--muted); font-size: 12px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--mint)); border-radius: inherit; }

/* ── Tabellen ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap table { min-width: 560px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.status.prog { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.status.done { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.status.bad { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.perm th:not(:first-child), .perm td:not(:first-child) { text-align: center; }
.perm input { width: 18px; height: 18px; accent-color: var(--blue); }
.perm .group-row td { background: var(--bg); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-top: 1px solid var(--line); overflow-x: auto; padding: 0 12px; }
.tabs a { padding: 12px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--blue); border-color: var(--blue); }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Profil & Gruppen-Kopf ── */
.cover { height: 190px; background: radial-gradient(600px 220px at 85% 0%, rgba(143,216,207,.35), transparent 70%), radial-gradient(500px 240px at 10% 120%, rgba(124,92,255,.35), transparent 70%), linear-gradient(120deg, #15171C, #2A2D36); position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-body { padding: 0 20px 16px; display: grid; gap: 10px; }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.profile-top .avatar-xl { margin-top: -56px; position: relative; z-index: 1; box-shadow: 0 4px 14px rgba(16,24,40,.18); }
/* Kamera-Knöpfe zum direkten Tauschen von Profil- und Titelbild */
.avatar-wrap { position: relative; display: inline-block; }
.pic-edit { margin: 0; }
.pic-edit label { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-weight: 700; font-size: 13px; transition: background .15s, transform .1s; }
.pic-edit label:active { transform: scale(.95); }
.pic-edit svg { width: 17px; height: 17px; flex: none; }
.cover-edit { position: absolute; right: 14px; bottom: 14px; }
.cover-edit label { height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(16,24,40,.55); color: #fff; backdrop-filter: blur(6px); }
.cover-edit label:hover { background: rgba(16,24,40,.75); }
.avatar-edit { position: absolute; right: 2px; bottom: 4px; z-index: 2; }
.avatar-edit label { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--fg); border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(16,24,40,.2); }
.avatar-edit label:hover { background: var(--blue-soft); color: var(--blue-deep); }
.pic-edit.busy label { pointer-events: none; opacity: .7; }
.pic-edit.busy svg { animation: pic-pulse 1s ease-in-out infinite; }
@keyframes pic-pulse { 50% { opacity: .3; } }
@media (max-width: 600px) { .cover-edit span { display: none; } .cover-edit label { width: 34px; padding: 0; } }
.info-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: 14px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: inline-flex; align-items: center; gap: 8px; }
.about { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 10px 20px; margin: 0; font-size: 14px; }
.about dt { color: var(--muted); font-weight: 600; }
.about dd { margin: 0; }
.vis { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 1px 7px; border-radius: 6px; margin-left: 8px; white-space: nowrap; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ach { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.ach.locked { opacity: .45; filter: grayscale(1); }
.ach .medal { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--mint)); display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--f-display); }

/* ── Karten-Raster ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.card .ph { aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface-2); display: grid; place-items: center; color: var(--blue); position: relative; overflow: hidden; }
.card .ph.wide { aspect-ratio: 16 / 9; }
.card .ph.cover-band { aspect-ratio: auto; height: 88px; }
.card .ph img, .card .ph video { width: 100%; height: 100%; object-fit: cover; }
.card .ph svg { width: 46px; height: 46px; }
.card .price { position: absolute; left: 10px; bottom: 10px; background: var(--surface); color: var(--fg); font-weight: 800; padding: 3px 11px; border-radius: 999px; font-size: 14px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(16,24,40,.18); }
.listing-price { font-family: var(--f-display); font-size: 28px; font-weight: 800; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Preisfeld mit Währung + Umschalter Festpreis/VB */
.price-input { position: relative; display: flex; align-items: center; }
.field .price-input input { padding-right: 34px; }
.price-input span { position: absolute; right: 12px; color: var(--muted); font-weight: 700; pointer-events: none; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; justify-self: start; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 5px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--blue-deep); box-shadow: 0 1px 3px rgba(16,24,40,.15); }
.seg input:focus-visible + span { outline: 3px solid var(--mint); }
[data-price-field].is-off { opacity: .45; pointer-events: none; }
.card .pill { position: absolute; right: 10px; top: 10px; }
.card .body { padding: 12px 14px 14px; display: grid; gap: 5px; align-content: start; }
.card h3 { font-size: 17px; }
.card h3 a { color: inherit; text-decoration: none; }
.card .meta { color: var(--muted); font-size: 13px; }
.friend { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 16px 12px; background: var(--surface-2); border-radius: 12px; color: var(--fg); text-decoration: none; }
a.friend:hover { background: var(--blue-soft); }
.friend small { color: var(--muted); font-size: 12px; }
.friend form { margin-top: 6px; }
.list-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.list-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Veranstaltungen ── */
.event { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 16px; }
.event .day { padding: 8px 0; align-self: start; }
.event .day b { font-size: 26px; }
.event-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.event h3 a { color: inherit; text-decoration: none; }

/* ── Chat ── */
.chat { display: grid; grid-template-columns: 300px minmax(0,1fr); height: min(680px, calc(100vh - 180px)); min-height: 460px; padding: 0; overflow: hidden; }
.convs { border-right: 1px solid var(--line); overflow-y: auto; display: grid; align-content: start; }
.conv { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.conv:hover { background: var(--surface-2); }
.conv[aria-current="page"] { background: var(--blue-soft); }
.conv small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.conv .n { background: var(--blue); color: var(--on-blue); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.thread { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-width: 0; min-height: 0; }
.thread-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.msgs { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--blue); color: var(--on-blue); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg.mine a { color: inherit; }
.msg small { display: block; font-size: 11px; opacity: .7; text-align: right; }
.msg-from { font-size: 12px; font-weight: 700; color: var(--blue-deep); }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); margin: 0; }
.chat-input textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; border-radius: 21px; border: 1px solid var(--line); padding: 10px 16px; background: var(--bg); resize: none; }

/* ── Benachrichtigungen ── */
.panel { position: absolute; right: 0; top: 48px; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 30; display: grid; gap: 2px; max-height: 70vh; overflow-y: auto; }
.panel .head { display: flex; justify-content: space-between; padding: 6px 10px; align-items: center; }
.notif { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 10px; font-size: 14px; text-decoration: none; color: var(--fg); }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--blue-soft); }
.notif small { color: var(--muted); display: block; }
.notif .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 16px; }

/* ── Clips & Medien ── */
.video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
.upload-progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.upload-progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.photo-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.photo-grid a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(4,10,22,.92); display: grid; place-items: center; z-index: 90; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 8px; }

/* ── Mod & Admin ── */
.admin-grid { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 16px; align-items: start; }
.code { font-family: var(--f-mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
textarea.code { white-space: pre-wrap; width: 100%; min-height: 320px; }
.kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kpi .box b { display: block; font-family: var(--f-display); font-size: 30px; color: var(--blue); line-height: 1.1; }
.kpi .box small { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; background: var(--fg); color: var(--bg); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }

/* ── Rezepte ── */
.ingredients { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ingredients li { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; }
.steps-list li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; font-weight: 800; }
.stars { color: #E7A800; letter-spacing: 1px; }

/* ── Seiten-Fuß ── */
.footer { max-width: 1760px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); }

.mobile-nav { display: none; }
.pager { display: flex; justify-content: center; gap: 8px; }

@media (min-width: 1500px) {
  .shell { grid-template-columns: 250px minmax(0,1fr) 340px; gap: 32px; }
  .shell.no-side { grid-template-columns: 250px minmax(0,1fr); }
  .admin-grid { grid-template-columns: 280px minmax(0,1fr); }
}
@media (max-width: 1280px) { .top-tabs a { width: 52px; } .top-me .top-name { display: none; } .top-me { padding: 3px; } }
@media (max-width: 1080px) {
  .top-tabs { display: none; }
  .shell { grid-template-columns: 210px minmax(0,1fr); }
  .side { grid-column: 2; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
  .shell, .shell.no-side { grid-template-columns: minmax(0,1fr); padding-bottom: 96px; }
  .nav { display: none; }
  .nav.open { display: grid; position: fixed; inset: 68px 0 0 0; background: var(--bg); z-index: 15; padding: 16px; max-height: none; }
  .side { grid-column: 1; }
  .top .search { display: none; }
  .top-actions { margin-left: auto; }
  .admin-grid, .chat { grid-template-columns: minmax(0,1fr); }
  .chat { height: auto; }
  .convs { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; }
  .msgs { height: 55vh; }
  .live-card .inner { grid-template-columns: minmax(0,1fr); }
  .list-row { grid-template-columns: auto minmax(0,1fr); }
  .list-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .auth { padding: 20px; }
  .cover { height: 130px; }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); justify-content: space-around; }
  .mobile-nav a, .mobile-nav button { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 8px; background: none; border: 0; position: relative; }
  .mobile-nav [aria-current="page"] { color: var(--c, var(--blue)); }
  .mobile-nav svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ── OBS-Widgets ── */
body.widget { background: transparent; font-family: var(--f-display); color: #fff; }
.widget-card { display: inline-flex; gap: 14px; align-items: center; background: rgba(16,24,40,.88); border: 2px solid var(--mint); border-radius: 18px; padding: 12px 20px; }
.widget-card .label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); font-weight: 800; }
.widget-card .value { font-size: 28px; font-weight: 800; line-height: 1.1; }

/* ── Chatfenster unten rechts (wie bei Facebook) ── */
.chat-dock { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 0; z-index: 40; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 10px; pointer-events: none; }
.chat-dock > * { pointer-events: auto; }
.cd-launch { position: relative; margin-bottom: 16px; }
.cd-launch > button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--blue); color: var(--on-blue); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.cd-launch > button svg { width: 24px; height: 24px; }
.cd-launch .count-dot { border-color: var(--surface); }
.cd-list { position: absolute; right: 0; bottom: 62px; width: 320px; max-height: 60vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.cd-list .head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.cd-list button.conv { border: 0; background: none; width: 100%; text-align: left; cursor: pointer; border-radius: 10px; border-bottom: 0; }
.cw { width: 330px; height: 450px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: var(--shadow); display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; }
.cw.min { height: auto; grid-template-rows: auto; width: 240px; }
.cw.min .cw-msgs, .cw.min .cw-form { display: none; }
.cw-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.cw.unread .cw-head { background: var(--blue-soft); }
.cw-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--fg); text-decoration: none; }
.cw-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.cw-who small { display: block; color: var(--muted); font-size: 11.5px; }
.cw-who > span:last-child { min-width: 0; }
.cw-head button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--blue); cursor: pointer; font-size: 18px; font-weight: 800; line-height: 1; display: grid; place-items: center; flex: none; }
.cw-head button:hover { background: var(--surface-2); }
.cw-head .n { background: var(--blue); color: var(--on-blue); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.cw-msgs { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 5px; background: var(--bg); }
.cw-msgs .msg { max-width: 82%; font-size: 14px; padding: 6px 10px; }
.cw-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); margin: 0; align-items: flex-end; }
.cw-form textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 110px; border-radius: 18px; border: 1px solid var(--line); padding: 7px 14px; background: var(--bg); resize: none; line-height: 1.4; }
.cw-form button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue); color: var(--on-blue); cursor: pointer; display: grid; place-items: center; flex: none; }
.cw-form button svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .chat-dock { display: none; } }

/* ── Feinschliff ── */
.box { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
article.post { transition: box-shadow .2s; }
article.post:hover { box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 10px 28px rgba(16,24,40,.07); }
.a1 { background: linear-gradient(135deg, #6E8BFF, #4A5FE0); }
.a2 { background: linear-gradient(135deg, #B5E9E2, #7CCFC5); }
.a3 { background: linear-gradient(135deg, #FFB86B, #F2762E); }
.a4 { background: linear-gradient(135deg, #F7A8C4, #E35D8E); }
.a5 { background: linear-gradient(135deg, #B79CFF, #7C5CFF); }
.nav a, .nav-btn { transition: background .15s, color .15s; }
.btn, .chip { transition: filter .15s, background .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.bubble { transition: background .15s; }
.comment:target .bubble { animation: flash-bubble 1.6s ease-out; }
@keyframes flash-bubble { 0%, 40% { background: color-mix(in srgb, var(--mint) 45%, var(--surface-2)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Adventskalender ── */
.advent { position: relative; overflow: hidden; border-radius: 20px; padding: 26px; color: #fff; display: grid; gap: 20px;
  background: radial-gradient(1200px 400px at 80% -10%, rgba(143,216,207,.25), transparent 60%), linear-gradient(165deg, #081633, #0F2A63 55%, #1D4FB0); box-shadow: 0 20px 50px rgba(8,22,51,.35); }
.snow { position: absolute; inset: -200px 0 0 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 60%, transparent), radial-gradient(2px 2px at 140px 80px, #fff 60%, transparent), radial-gradient(1.5px 1.5px at 90px 150px, #fff 60%, transparent), radial-gradient(2.5px 2.5px at 170px 180px, #fff 60%, transparent), radial-gradient(1.5px 1.5px at 50px 110px, #fff 60%, transparent);
  background-size: 200px 200px; animation: snow-fall 14s linear infinite; }
.snow-2 { background-size: 320px 320px; opacity: .45; animation-duration: 24s; filter: blur(.6px); }
@keyframes snow-fall { to { transform: translateY(200px); } }
.advent-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.advent-head h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.advent-head p { color: rgba(255,255,255,.85); margin-top: 4px; max-width: 60ch; }
.advent-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.advent-stats { display: flex; gap: 10px; }
.advent-stats div { display: grid; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 8px 16px; backdrop-filter: blur(6px); }
.advent-stats b { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.advent-stats span { font-size: 12px; color: rgba(255,255,255,.8); }
.advent-tools { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 8px 10px; }
.advent-tools input { height: 32px; border-radius: 8px; border: 0; padding: 0 8px; color: #0D2142; background: #fff; }
.advent-tools .btn-line { color: #fff; border-color: rgba(255,255,255,.4); }
.advent-tools .btn:last-child { margin-left: auto; }
.advent-note { position: relative; font-size: 13px; background: rgba(255,209,102,.18); border: 1px solid rgba(255,209,102,.4); padding: 8px 12px; border-radius: 10px; }

.advent-grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(104px, 9.5vw, 150px); grid-auto-flow: dense; gap: 12px; }
.door-cell { position: relative; perspective: 1100px; border-radius: 14px; background: rgba(2,8,24,.6); box-shadow: inset 0 3px 10px rgba(0,0,0,.6); }
.door-cell.big { grid-column: span 2; grid-row: span 2; }
.door-cell.wide { grid-column: span 2; }
.door-cell.tall { grid-row: span 2; }
.door-cell.is-open { z-index: 3; }
/* Was hinter dem Türchen steckt */
.door-inside { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #FFFFFF, #DCE8FB); color: #0D2142; text-decoration: none; visibility: hidden; }
.is-open .door-inside, .door-cell.opening .door-inside { visibility: visible; }
.door-inside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.door-inside:hover img { transform: scale(1.06); }
.door-gift { font-size: clamp(34px, 4vw, 52px); margin-bottom: 26px; filter: drop-shadow(0 4px 6px rgba(16,24,40,.2)); }
.big .door-gift { font-size: 80px; }
.door-prize { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(8,20,51,.88) 55%); color: #fff; text-align: left; }
.door-prize b { font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.big .door-prize b { font-size: 18px; }
.door-prize small { font-size: 11.5px; font-weight: 800; color: var(--mint); }
.door-inside.empty .door-prize { background: none; color: var(--muted); text-align: center; }
.door-inside.empty .door-prize small { color: #5B6C88; }
/* Die Tür selbst: Vorder- und Rückseite, schwingt nach links auf */
.door { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 14px; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.5,.05,.25,1.12); }
.door-front, .door-back { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.door-front { display: grid; place-items: center; color: #fff; overflow: hidden; outline: 2px dashed rgba(255,255,255,.4); outline-offset: -7px; box-shadow: 0 4px 12px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.door-front::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(1.5px 1.5px at 12px 14px, #fff 60%, transparent), radial-gradient(1px 1px at 34px 40px, #fff 60%, transparent), radial-gradient(2px 2px at 52px 18px, #fff 60%, transparent); background-size: 64px 56px; }
.door-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s; }
.door:hover .door-front::after { transform: translateX(120%); }
.v0 .door-front { background: linear-gradient(150deg, #2468DD, #12408F); }
.v1 .door-front { background: linear-gradient(150deg, #4B93F5, #1D5FD1); }
.v2 .door-front { background: linear-gradient(150deg, #A6E4DC, #5FBFC4); color: #0B2A33; outline-color: rgba(11,42,51,.3); }
.v3 .door-front { background: linear-gradient(150deg, #FFFFFF, #CFE0FA); color: #12408F; outline-color: rgba(18,64,143,.3); }
.v4 .door-front { background: linear-gradient(150deg, #C8283F, #8E1530); }
.door-num { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.big .door-num { font-size: clamp(56px, 7vw, 96px); }
.door-knob { position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3C4, #E0A82E); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.door-lock { position: absolute; top: 10px; right: 10px; width: 15px; height: 15px; opacity: .55; }
.door-back { transform: rotateY(180deg); background: linear-gradient(150deg, #E9F1FC, #C9D9F2); box-shadow: inset 0 0 0 1px rgba(16,24,40,.12); }
.door:not([data-state="locked"]):hover { transform: rotateY(-9deg); }
.is-open .door { transform: rotateY(-112deg); pointer-events: none; }
.s-locked .door { cursor: not-allowed; }
.s-locked .door-front { filter: saturate(.75) brightness(.92); }
.door.shake { animation: door-shake .45s; }
@keyframes door-shake { 20%, 60% { transform: translateX(-5px) rotate(-1deg); } 40%, 80% { transform: translateX(5px) rotate(1deg); } }
.spark { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; z-index: 4; pointer-events: none; border-radius: 2px; background: var(--sc); animation: spark .9s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes spark { 0% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.3) rotate(260deg); opacity: 0; } }
@media (max-width: 1080px) { .advent-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: clamp(96px, 14vw, 140px); } }
@media (max-width: 600px) {
  .advent { padding: 16px; border-radius: 16px; }
  .advent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 26vw; gap: 8px; }
  .advent-tools .btn:last-child { margin-left: 0; }
}
.advent-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #081633, #1D4FB0); }
.advent-banner > span:nth-child(2) { position: relative; font-size: 34px; }
.advent-banner div { position: relative; flex: 1; display: grid; }
.advent-banner b { font-family: var(--f-display); font-size: 20px; }
.advent-banner small { color: rgba(255,255,255,.82); }
.advent-banner .btn { position: relative; }
.giveaway-img { display: block; border-radius: 14px; overflow: hidden; }
.giveaway-img img { width: 100%; max-height: 380px; object-fit: cover; }
.advent-row { grid-template-columns: auto minmax(0,1fr) auto; }
.advent-day { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(150deg, #2468DD, #12408F); }
.advent-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.advent-thumb.lg { width: 96px; height: 96px; }

/* ── Link-Vorschau ── */
.link-card { position: relative; display: grid; grid-template-columns: 132px minmax(0,1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); color: var(--fg); text-decoration: none; transition: border-color .15s, background .15s; margin-top: 10px; }
.link-card:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: color-mix(in srgb, var(--blue) 4%, var(--surface-2)); }
.link-card img { width: 100%; height: 100%; min-height: 104px; max-height: 150px; object-fit: cover; display: block; background: var(--line); }
.link-card.wide { grid-template-columns: 1fr; }
.link-card.wide img { max-height: 320px; aspect-ratio: 1.91 / 1; height: auto; }
.link-card.no-img { grid-template-columns: 1fr; }
.link-text { display: grid; gap: 3px; align-content: center; padding: 12px 14px; min-width: 0; }
.link-text small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-text b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-text span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card.is-loading { height: 92px; background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--line) 70%, var(--surface-2)) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: link-shimmer 1.2s linear infinite; }
@keyframes link-shimmer { to { background-position: -200% 0; } }
.link-card-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(16,24,40,.6); color: #fff; backdrop-filter: blur(4px); }
.link-card-x svg { width: 14px; height: 14px; }
.link-card-x:hover { background: rgba(16,24,40,.85); }
.composer [data-composer-link]:empty { display: none; }
.composer [data-composer-link] .link-card { margin-top: 0; }
@media (max-width: 600px) { .link-card { grid-template-columns: 96px minmax(0,1fr); } .link-card img { min-height: 88px; } }
@media (prefers-reduced-motion: reduce) { .link-card.is-loading { animation: none; } }
.composer .link-card.wide { grid-template-columns: 132px minmax(0,1fr); }
.composer .link-card.wide img { aspect-ratio: auto; height: 100%; max-height: 120px; }
