/* Cirlix Forum – Aufbau nach dem Eryndaryn-Forum, Gestaltung im Cirlix-Stil. */
:root {
  color-scheme: dark;
  --ink: #060611;
  --ink-2: #0b0a1a;
  --panel: rgba(255, 255, 255, .035);
  --panel-strong: rgba(17, 15, 34, .82);
  --line: #ffffff1c;
  --line-strong: #ffffff30;
  --text: #f7f5ff;
  --muted: #aaa6bb;
  --faint: #6f6a86;
  --violet: #a855f7;
  --violet-deep: #7c3aed;
  --cyan: #22d3ee;
  --danger: #fb7185;
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(168, 85, 247, .20), transparent 62%),
    radial-gradient(760px 520px at 100% 30%, rgba(34, 211, 238, .08), transparent 60%),
    radial-gradient(700px 600px at 40% 110%, rgba(124, 58, 237, .12), transparent 60%),
    var(--ink);
  background-attachment: fixed;
}
a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .18em; color: var(--violet); text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 850; }
h2 { font-size: 1.45rem; font-weight: 800; }
.outline { color: transparent; -webkit-text-stroke: 1.6px #fff; text-shadow: 0 0 30px rgba(168, 85, 247, .35); }

/* Kopf und Fuß */
.forum-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 6, 17, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.forum-brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.forum-brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 18px rgba(168, 85, 247, .55); }
.forum-brand strong { font-weight: 900; letter-spacing: .14em; font-size: 1.02rem; }
.forum-brand small { font-size: .62rem; font-weight: 800; letter-spacing: .2em; color: var(--cyan); }
.forum-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.forum-nav a { padding: .4rem .75rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.forum-nav a:hover, .forum-nav a[aria-current="page"] { color: #fff; background: rgba(168, 85, 247, .14); }
.forum-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.forum-actions form { margin: 0; }
.header-link { color: var(--muted); font-weight: 600; font-size: .9rem; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .3rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: #fff; font-weight: 700; font-size: .9rem; }
.user-chip:hover { border-color: var(--role, var(--violet)); }
.text-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.text-button:hover { color: #fff; border-color: var(--line-strong); }
.forum-shell { width: min(1200px, calc(100% - 2rem)); margin: 2rem auto 4rem; display: grid; gap: 1.5rem; }
.forum-footer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.6rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.forum-footer nav { display: flex; gap: 1.2rem; }
.forum-footer a { color: var(--muted); }

/* Schaltflächen */
.primary-button, .small-button, .ghost-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: 12px; font-weight: 750; cursor: pointer; font: inherit; font-weight: 750; white-space: nowrap;
}
.primary-button { padding: .8rem 1.3rem; border: 0; color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-deep)); box-shadow: 0 10px 30px rgba(124, 58, 237, .35); }
.primary-button:hover { color: #fff; filter: brightness(1.1); }
.small-button { padding: .5rem .95rem; border: 0; color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-deep)); font-size: .88rem; }
.ghost-button { padding: .75rem 1.2rem; border: 1px solid var(--line-strong); color: #fff; background: rgba(255, 255, 255, .04); }
.ghost-button:hover { border-color: var(--violet); color: #fff; }
button { font: inherit; }

/* Hinweise */
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-strong); }
.notice.success { border-color: rgba(52, 211, 153, .45); color: #bbf7d0; }
.notice.error { border-color: rgba(251, 113, 133, .5); color: #fecdd3; }
.notice.info { border-color: rgba(34, 211, 238, .4); color: #cffafe; }
.callout { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); background: rgba(168, 85, 247, .06); color: var(--muted); }
.callout.team { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .05); }
.callout .icon { margin-top: .2rem; color: var(--violet); }

/* Karten-Grundform */
.forum-hero, .live-chat, .recent-activity, .forum-category, .online-statistics, .board-heading, .topic-heading,
.topic-list, .forum-post, .composer, .form-card, .profile-hero, .profile-grid > article, .document-page,
.admin-heading, .admin-panel, .empty-state, .team-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: var(--shadow);
}

/* Startseite */
.forum-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: clamp(1.6rem, 4vw, 3rem); }
.forum-hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(168, 85, 247, .25), transparent); pointer-events: none; }
.forum-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.forum-hero p:not(.eyebrow) { max-width: 38rem; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.forum-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(6, 6, 17, .5); }
.forum-stats span { display: grid; justify-items: center; padding: 1rem .8rem; font-size: .68rem; font-weight: 800; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.forum-stats span + span { border-left: 1px solid var(--line); }
.forum-stats strong { font-size: 1.7rem; color: #fff; letter-spacing: 0; }

.live-chat > header, .recent-activity > header, .forum-category > header, .online-statistics > header, .admin-panel > header, .team-group > header {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line);
}
.live-chat > header p:not(.eyebrow), .recent-activity > header p:not(.eyebrow), .forum-category > header p:not(.eyebrow), .online-statistics > header p:not(.eyebrow) { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.live-indicator { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(52, 211, 153, .4); color: var(--success); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.chat-stream { max-height: 360px; overflow-y: auto; padding: .6rem 1rem; display: grid; gap: .1rem; scrollbar-color: #3b2a5c transparent; }
.chat-empty { color: var(--muted); padding: 1rem .6rem; }
.chat-message { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; padding: .6rem; border-radius: 12px; }
.chat-message:hover { background: rgba(255, 255, 255, .03); }
.chat-message header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; }
.chat-message header a { font-weight: 800; }
.chat-message header time { color: var(--faint); font-size: .75rem; margin-left: auto; }
.chat-message p { margin: .1rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-delete { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; opacity: 0; }
.chat-message:hover .chat-delete, .chat-delete:focus { opacity: 1; }
.chat-delete:hover { color: var(--danger); border-color: var(--danger); }
.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); }
.chat-composer small { grid-column: 1 / -1; color: var(--faint); font-size: .78rem; }
.chat-login { padding: 1rem 1.6rem 1.3rem; border-top: 1px solid var(--line); color: var(--muted); }

.recent-activity > header > a { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.recent-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.2rem; }
.recent-post-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 6, 17, .45); color: var(--text); transition: transform .15s, border-color .15s; }
.recent-post-card:hover { transform: translateY(-2px); border-color: rgba(168, 85, 247, .55); color: var(--text); }
.recent-post-board { font-size: .66rem; font-weight: 800; letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; }
.recent-post-card h3 { font-size: 1rem; line-height: 1.3; }
.recent-post-card p { margin: 0; color: var(--muted); font-size: .86rem; flex: 1; }
.recent-post-card footer { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--faint); }
.recent-empty { color: var(--muted); grid-column: 1 / -1; }

.board-list { display: grid; }
.board-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px 90px minmax(170px, 230px); gap: 1rem; align-items: center; padding: 1rem 1.6rem; }
.board-row + .board-row { border-top: 1px solid var(--line); }
.board-row:hover { background: rgba(255, 255, 255, .02); }
.board-icon, .heading-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(34, 211, 238, .08)); border: 1px solid rgba(168, 85, 247, .35); color: #e9d5ff; }
.board-icon .icon, .heading-icon .icon { width: 22px; height: 22px; }
.board-copy { display: grid; color: var(--text); min-width: 0; }
.board-copy strong { font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.board-copy small { color: var(--muted); }
.board-copy:hover strong { color: #fff; text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 4px; }
.board-flag { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .66rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.board-number { display: grid; justify-items: center; }
.board-number strong { font-size: 1.15rem; }
.board-number small, .board-last small { font-size: .64rem; font-weight: 800; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.board-last { display: grid; min-width: 0; font-size: .85rem; }
.board-last a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-last time { color: var(--muted); font-size: .78rem; }

.online-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.2rem 1.6rem; }
.online-stat-grid article { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 6, 17, .45); }
.online-stat-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(34, 211, 238, .1); color: var(--cyan); }
.online-stat-grid strong { font-size: 1.6rem; line-height: 1; }
.online-stat-grid p { margin: 0; font-weight: 800; }
.online-stat-grid small { grid-column: 2; color: var(--faint); font-size: .78rem; }
.online-stat-grid article { grid-template-areas: "icon value" "icon label" "icon hint"; }
.online-rank-legend { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; padding: 1.2rem 1.6rem 1.5rem; border-top: 1px solid var(--line); }
.online-rank-legend-copy { display: grid; }
.online-rank-legend-copy small { color: var(--muted); }
.online-rank-banners { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

/* Rangbanner: abgeschrägte Neon-Plakette in Rollenfarbe */
.rank-banner {
  --role: #a78bfa;
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .85rem .28rem .7rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--role) 38%, #0b0a1a), color-mix(in srgb, var(--role) 14%, #0b0a1a));
  color: color-mix(in srgb, var(--role) 55%, #fff);
  font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--role) 70%, transparent);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--role) 45%, transparent));
}
.rank-banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--role); }
.rank-icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rank-chip { padding: .12rem .6rem .12rem .5rem; font-size: .58rem; letter-spacing: .1em; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.rank-chip .rank-icon { width: 10px; height: 10px; }
.rank-small { font-size: .62rem; }
.rank-post { width: 100%; justify-content: center; padding: .45rem .8rem; font-size: .7rem; }
.rank-profile { padding: .45rem 1.1rem .45rem .9rem; font-size: .8rem; }
.rank-profile .rank-icon { width: 16px; height: 16px; }
.rank-key-owner { background: linear-gradient(135deg, #f59e0b, #b45309 55%, #451a03); color: #fff7ed; }
.rank-key-guest { filter: none; opacity: .8; }

/* Avatare */
.avatar { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #2b1850, #10263a); border: 1px solid var(--line-strong); color: #fff; font-weight: 850; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-xs { width: 28px; height: 28px; font-size: .75rem; }
.avatar-sm { width: 38px; height: 38px; font-size: .9rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 2rem; border-width: 2px; border-color: var(--role, var(--line-strong)); box-shadow: 0 0 22px color-mix(in srgb, var(--role, #a855f7) 35%, transparent); }
.avatar-xl { width: 140px; height: 140px; font-size: 3.2rem; border: 3px solid var(--role, var(--violet)); box-shadow: 0 0 40px color-mix(in srgb, var(--role, #a855f7) 40%, transparent); }

/* Forum- und Themenseiten */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--faint); font-size: .85rem; }
.breadcrumbs strong { color: var(--muted); font-weight: 600; }
.board-heading, .topic-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding: 1.6rem 1.8rem; }
.board-heading h1, .topic-heading h1 { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.board-heading p:not(.eyebrow) { margin: .4rem 0 0; color: var(--muted); max-width: 44rem; }
.topic-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .7rem 0 0; color: var(--muted); font-size: .85rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px; background: rgba(168, 85, 247, .16); color: #e9d5ff; font-size: .75rem; font-weight: 700; }
.tag.muted { background: rgba(255, 255, 255, .06); color: var(--muted); }
.moderation-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; max-width: 520px; }
.moderation-actions button, .moderation-actions select, .inline-form button, .inline-form select, .inline-form input, .post-tools button, .post-tools a, .report-box summary {
  display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border-radius: 9px; border: 1px solid var(--line); background: rgba(6, 6, 17, .55); color: var(--muted); font-size: .8rem; font-weight: 650; cursor: pointer;
}
.moderation-actions button:hover, .inline-form button:hover, .post-tools button:hover, .post-tools a:hover, .report-box summary:hover { color: #fff; border-color: var(--violet); }
.moderation-actions .danger:hover { border-color: var(--danger); color: var(--danger); }
.topic-list header, .topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 80px minmax(140px, 190px); gap: 1rem; align-items: center; padding: .9rem 1.6rem; }
.topic-list header { font-size: .66rem; font-weight: 800; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.topic-list header span:not(:first-child), .topic-count { text-align: center; }
.topic-row { color: var(--text); border-bottom: 1px solid var(--line); grid-template-columns: auto minmax(0, 1fr) 90px 80px minmax(140px, 190px); }
.topic-list header { grid-template-columns: minmax(0, 1fr) 90px 80px minmax(140px, 190px); padding-left: calc(1.6rem + 46px); }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(255, 255, 255, .025); color: var(--text); }
.topic-row.pinned { background: linear-gradient(90deg, rgba(168, 85, 247, .08), transparent 60%); }
.topic-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--violet); }
.topic-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; min-width: 0; }
.topic-copy strong { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; }
.topic-copy small { color: var(--faint); font-size: .8rem; }
.topic-copy em { font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.topic-copy em.muted { color: var(--faint); }
.topic-last { display: grid; font-size: .8rem; color: var(--muted); }
.topic-last small { color: var(--faint); }
.empty-row { padding: 1.4rem 1.6rem; color: var(--muted); }
.pagination { display: flex; gap: .35rem; justify-content: center; }
.pagination a, .pagination strong, .pagination span { min-width: 36px; padding: .4rem .6rem; border-radius: 9px; text-align: center; border: 1px solid var(--line); }
.pagination strong { background: linear-gradient(135deg, var(--violet), var(--violet-deep)); border-color: transparent; }

.posts-list { display: grid; gap: 1rem; }
.forum-post { --role: #a78bfa; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; }
.forum-post aside { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.5rem 1.1rem; text-align: center; border-right: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--role) 10%, transparent), transparent 60%); }
.post-author { font-weight: 850; font-size: 1.05rem; color: color-mix(in srgb, var(--role) 55%, #fff); }
.post-roles { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.post-author-meta { display: grid; gap: .1rem; margin-top: .3rem; color: var(--faint); font-size: .76rem; }
.mc-name { display: inline-flex; gap: .3rem; align-items: center; justify-content: center; color: var(--cyan); }
.post-body { display: flex; flex-direction: column; min-width: 0; }
.post-body > header { display: flex; justify-content: space-between; padding: .8rem 1.4rem; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .8rem; }
.post-content { padding: 1.3rem 1.5rem; flex: 1; overflow-wrap: anywhere; }
.post-content > :first-child { margin-top: 0; }
.post-edited { margin: 0; padding: 0 1.5rem 1rem; color: var(--faint); font-size: .76rem; font-style: italic; }
.post-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .8rem 1.4rem; border-top: 1px solid var(--line); }
.post-tools form { margin: 0; display: flex; gap: .4rem; }
.report-box { position: relative; }
.report-box summary { list-style: none; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box form { position: absolute; z-index: 5; right: 0; bottom: calc(100% + .4rem); width: min(360px, 80vw); padding: .7rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-strong); backdrop-filter: blur(10px); }
.report-box input { flex: 1; min-width: 0; padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(6, 6, 17, .7); color: var(--text); }
.hidden-post { opacity: .7; }
.post-hidden-note { display: flex; gap: .4rem; align-items: center; color: var(--muted); font-style: italic; }

/* Beitragsinhalte */
.post-media { margin: 1rem auto; max-width: 820px; text-align: center; }
.post-media img { max-height: 520px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.post-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.post-quote { margin: .8rem 0; padding: .8rem 1rem; border-left: 3px solid var(--violet); border-radius: 0 10px 10px 0; background: rgba(168, 85, 247, .07); color: #ddd6fe; }
.post-quote cite { display: block; margin-bottom: .3rem; font-style: normal; font-weight: 800; font-size: .8rem; color: var(--violet); }
.post-spoiler { margin: .8rem 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 6, 17, .5); }
.post-spoiler summary { padding: .55rem .9rem; cursor: pointer; font-weight: 700; color: var(--cyan); }
.post-spoiler > div { padding: 0 .9rem .8rem; }
.post-center { text-align: center; }
.post-size-14 { font-size: 14px; } .post-size-16 { font-size: 16px; } .post-size-18 { font-size: 18px; } .post-size-22 { font-size: 22px; } .post-size-26 { font-size: 26px; }
.post-font-sans { font-family: var(--font); }
.post-font-serif { font-family: Georgia, "Times New Roman", serif; }
.post-font-display { font-family: var(--font); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.post-font-mono { font-family: var(--mono); }

/* Formulare und Editor */
.form-card, .composer { padding: 1.6rem 1.8rem; }
.form-card.wide { max-width: none; }
.form-card h1 { margin-bottom: 1rem; font-size: 2rem; }
.form-card label, .composer label { display: block; margin: 1rem 0 .35rem; font-weight: 700; font-size: .9rem; }
input, textarea, select { font: inherit; }
.form-card input:not([type="checkbox"]):not([type="file"]), .form-card textarea, .chat-composer input, .inline-form input, .inline-form select {
  width: 100%; padding: .7rem .9rem; border-radius: 11px; border: 1px solid var(--line); background: rgba(6, 6, 17, .7); color: var(--text);
}
.inline-form input, .inline-form select { width: auto; padding: .4rem .6rem; font-size: .82rem; border-radius: 9px; }
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .chat-composer input:focus, .editor-surface:focus { outline: 2px solid rgba(168, 85, 247, .6); outline-offset: 1px; }
.form-card small { color: var(--faint); font-size: .78rem; }
.form-hint { color: var(--muted); font-size: .88rem; }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.checkbox { display: flex !important; align-items: center; gap: .5rem; font-weight: 600 !important; }
.form-card .primary-button, .composer .primary-button { margin-top: 1.2rem; }
.forum-editor { margin-top: .6rem; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgba(6, 6, 17, .6); }
.editor-toolbar button, .editor-toolbar select, .editor-color { display: inline-flex; align-items: center; gap: .3rem; min-width: 34px; height: 32px; padding: 0 .55rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font-size: .82rem; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--violet); }
.editor-toolbar .editor-color { margin: 0; font-weight: 600; font-size: .82rem; }
.editor-color input { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.forum-editor textarea { width: 100%; min-height: 220px; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: rgba(6, 6, 17, .7); color: var(--text); resize: vertical; }
.forum-editor.is-wysiwyg .editor-source { display: none; }
.editor-surface { min-height: 220px; max-height: 70vh; overflow-y: auto; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: rgba(6, 6, 17, .7); overflow-wrap: anywhere; }
.editor-surface:empty::before { content: attr(data-placeholder); color: var(--faint); }
.editor-image { display: inline-block; margin: .4rem 0; padding: 4px; border-radius: 10px; border: 1px dashed var(--line-strong); }
.editor-image img { max-height: 160px; border-radius: 7px; display: block; }
.editor-spoiler { margin: .6rem 0; padding: .5rem .8rem; border: 1px dashed rgba(34, 211, 238, .5); border-radius: 10px; }
.editor-spoiler-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.editor-smilies { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .5rem; }
.editor-smilies button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 1.1rem; cursor: pointer; }
.editor-smilies button:hover { border-color: var(--line); background: rgba(255, 255, 255, .05); }
.editor-upload-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: .6rem; }
.editor-upload { display: inline-flex !important; align-items: center; gap: .4rem; margin: 0 !important; padding: .5rem .9rem; border-radius: 10px; border: 1px dashed var(--line-strong); cursor: pointer; font-size: .85rem !important; }
.editor-upload input { max-width: 220px; font-size: .78rem; color: var(--muted); }
.editor-upload-row small, .editor-note { color: var(--faint); font-size: .78rem; }
.editor-upload-row small.error { color: var(--danger); }
.editor-note { display: block; margin-top: .4rem; }

/* Profile und Team */
.profile-hero { --role: #a78bfa; position: relative; display: flex; gap: 2rem; align-items: center; padding: 2rem 2.2rem; overflow: hidden; }
.profile-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 10% 50%, color-mix(in srgb, var(--role) 18%, transparent), transparent); pointer-events: none; }
.profile-copy { position: relative; display: grid; gap: .6rem; justify-items: start; }
.profile-mc { display: flex; gap: .4rem; align-items: center; margin: 0; color: var(--cyan); font-size: .9rem; }
.profile-edit-button { position: absolute; top: 1.4rem; right: 1.4rem; }
.profile-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.profile-grid > article { padding: 1.6rem 1.8rem; }
.profile-grid h2 { margin-bottom: .8rem; }
.profile-bio { white-space: normal; color: var(--text); }
.profile-placeholder { color: var(--muted); }
.profile-grid dl { display: grid; gap: .1rem; margin: .4rem 0 0; }
.profile-grid dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.profile-grid dt { color: var(--faint); font-size: .85rem; }
.profile-grid dd { margin: 0; font-weight: 600; }
.profile-roles { display: flex; flex-wrap: wrap; gap: .35rem; }
.profile-form-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: start; }
.profile-form-intro { display: grid; gap: 1rem; justify-items: start; padding: .5rem; }
.profile-form-intro p { color: var(--muted); margin: 0; }
.profile-rank-preview { display: grid; gap: .4rem; }
.profile-rank-preview small { color: var(--faint); }
.team-group { --role: #a78bfa; overflow: hidden; }
.team-group > header { align-items: center; background: linear-gradient(90deg, color-mix(in srgb, var(--role) 12%, transparent), transparent); }
.team-group > header span { color: var(--muted); font-size: .85rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; padding: 1.3rem 1.6rem 1.6rem; }
.team-card { display: grid; justify-items: center; gap: .4rem; padding: 1.2rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 6, 17, .45); color: var(--text); text-align: center; }
.team-card:hover { border-color: var(--role); color: var(--text); }
.team-card small { color: var(--faint); font-size: .76rem; }

/* Dokumente, Verwaltung, Leerzustände */
.document-page { padding: 2rem 2.4rem; }
.document-page ol { display: grid; gap: .7rem; padding-left: 1.3rem; }
.document-page li::marker { color: var(--violet); font-weight: 800; }
.document-note { color: var(--faint); font-size: .85rem; }
.empty-state { display: grid; justify-items: center; gap: .8rem; padding: 3rem 2rem; text-align: center; }
.empty-state p { color: var(--muted); max-width: 34rem; }
.admin-heading { padding: 1.8rem 2rem; }
.admin-heading p:not(.eyebrow) { color: var(--muted); margin: .5rem 0 0; }
.admin-panel h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; }
.admin-panel .count { padding: .05rem .55rem; border-radius: 999px; background: rgba(168, 85, 247, .2); font-size: .8rem; }
.report-card, .member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.6rem; border-top: 1px solid var(--line); }
.report-card:first-of-type, .member-row:first-of-type { border-top: 0; }
.report-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.report-reason { margin: .3rem 0; font-weight: 700; }
.report-card blockquote { margin: 0; padding: .5rem .8rem; border-left: 3px solid var(--line-strong); color: var(--muted); font-size: .88rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0; }
.inline-form .ghost { background: transparent; }
.member-info { display: grid; gap: .15rem; min-width: 0; }
.member-info small { color: var(--faint); }
.member-roles { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.member-actions { display: grid; gap: .4rem; justify-items: end; }
.status-badge { padding: .02rem .45rem; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; background: rgba(255, 255, 255, .08); }
.status-active { color: var(--success); }
.status-locked, .status-disabled { color: var(--danger); }
.status-pending { color: var(--warning); }

/* Schmale Bildschirme */
@media (max-width: 1020px) {
  .recent-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-row { grid-template-columns: auto minmax(0, 1fr) 70px 70px; }
  .board-last { display: none; }
  .online-rank-legend { grid-template-columns: 1fr; }
  .profile-form-layout, .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .forum-header { flex-wrap: wrap; gap: .6rem 1rem; }
  .forum-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .forum-hero { grid-template-columns: 1fr; }
  .forum-stats { width: 100%; }
  .recent-post-grid, .online-stat-grid { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: auto minmax(0, 1fr); }
  .board-number { display: none; }
  .board-heading, .topic-heading { flex-direction: column; align-items: stretch; }
  .topic-list header { display: none; }
  .topic-row { grid-template-columns: auto minmax(0, 1fr) 60px; }
  .topic-row .topic-count:nth-of-type(2), .topic-last { display: none; }
  .forum-post { grid-template-columns: 1fr; }
  .forum-post aside { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem; }
  .forum-post .avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
  .rank-post { width: auto; }
  .post-author-meta { display: none; }
  .profile-hero { flex-direction: column; text-align: center; }
  .profile-copy { justify-items: center; }
  .profile-edit-button { position: static; }
  .report-card, .member-row { grid-template-columns: 1fr; }
  .member-actions { justify-items: start; }
  .chat-message header time { margin-left: 0; width: 100%; }
}
