/* ==========================================================================
   OG Fortnite Internal – Design-System
   Schwarz/Lila, flach, hairline-Borders, Mono-Labels als Wiedererkennungsmerkmal
   ========================================================================== */

:root {
  --bg: #08070D;
  --bg-2: #100D18;
  --panel: #151020;
  --panel-2: #1A1428;
  --accent: #9333EA;
  --accent-hover: #A855F7;
  --accent-soft: rgba(147, 51, 234, 0.12);
  --accent-glow: rgba(147, 51, 234, 0.45);
  --text: #F5F3FF;
  --muted: #A19AAF;
  --faint: #6F6880;
  --line: #241C36;
  --line-2: #33284C;
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;
  --radius: 10px;
  --radius-sm: 7px;
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk Variable', var(--font);
  --font-mono: 'JetBrains Mono Variable', ui-monospace, 'Cascadia Code', monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 12px; }
.noscript { padding: 40px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hintergrund: ein einzelner, langsam wandernder Glow + Grain ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::after {
  content: ''; position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.backdrop-glow {
  position: absolute; width: 900px; height: 900px; left: 50%; top: -520px; margin-left: -450px;
  background: radial-gradient(circle, rgba(147, 51, 234, .22) 0%, rgba(147, 51, 234, .06) 40%, transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(-12%, 0) scale(1); }
  100% { transform: translate(12%, 40px) scale(1.12); }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.site-main { flex: 1; padding: 32px 0 80px; outline: none; }
.site-main.flush { padding-top: 0; }

.boot { min-height: 60vh; display: grid; place-items: center; }
.boot-mark {
  font: 700 18px var(--font-mono); padding: 10px 12px; border: 1.5px solid var(--accent);
  border-radius: 8px; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 30px var(--accent-glow); } }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hover);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pre-line { white-space: pre-line; }

/* ---------- Header / Navigation ---------- */
.announcement {
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--line); text-align: center; padding: 8px 16px; font-size: 13px;
}
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 7, 13, .82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  font: 700 13px/1 var(--font-mono); padding: 7px 7px; border: 1.5px solid var(--accent); border-radius: 7px;
  transition: box-shadow .3s var(--ease);
}
.brand:hover .brand-mark { box-shadow: 0 0 18px var(--accent-glow); }
.brand-name { font: 600 13px/1.1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; }
.brand-name small { display: block; color: var(--faint); font: 500 10px var(--font-mono); letter-spacing: .2em; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted);
  font-weight: 500; font-size: 14px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); border-radius: 2px;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-right .nav-burger { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right .nav-burger { display: inline-grid; }
  .brand-name small { display: none; }
  .nav-user-name { display: none; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; background: var(--bg-2);
  border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
}
.mobile-nav.open { display: grid; gap: 2px; animation: slideDown .2s var(--ease); }
.mobile-nav a { padding: 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--text); background: var(--accent-soft); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55); padding: 6px; display: none;
}
.dropdown.open .dropdown-menu { display: block; animation: slideDown .15s var(--ease); }
.dropdown-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px;
  color: var(--muted); font-size: 14px; text-align: left; transition: background .15s, color .15s;
}
.dropdown-item:hover { background: var(--accent-soft); color: var(--text); }
.dropdown-item.danger:hover { background: rgba(248, 113, 113, .1); color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 0; }

.user-btn {
  display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 9px;
  border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.user-btn:hover, .dropdown.open .user-btn { border-color: var(--line-2); background: var(--panel); }
.nav-user-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
@media (max-width: 860px) { .user-btn .nav-user-name { display: none; } }
.nav-user-name b { font-size: 13.5px; font-weight: 600; }

.icon-btn {
  position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 9px;
  color: var(--muted); border: 1px solid transparent; transition: .2s;
}
.icon-btn:hover { color: var(--text); background: var(--panel); border-color: var(--line-2); }
.dot-count {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font: 600 10px/17px var(--font-mono); text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.notif-list { max-height: 360px; overflow-y: auto; width: min(360px, calc(100vw - 32px)); }
.notif { display: block; padding: 10px; border-radius: 6px; font-size: 13.5px; color: var(--muted); }
.notif:hover { background: var(--accent-soft); color: var(--text); }
.notif.unread { color: var(--text); }
.notif.unread::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hover); margin-right: 8px; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--b);
  background: var(--panel); color: var(--text); font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s, box-shadow .25s var(--ease), transform .1s, color .2s;
}
.btn:hover { border-color: #4A3A6E; background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 0 0 1px rgba(168, 85, 247, .3), 0 8px 28px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel); color: var(--text); border-color: var(--line-2); }
.btn-outline { background: transparent; }
.btn-outline:hover { border-color: var(--accent); box-shadow: 0 0 22px rgba(147, 51, 234, .25); }
.btn-danger { color: var(--danger); background: transparent; border-color: rgba(248, 113, 113, .3); }
.btn-danger:hover { background: rgba(248, 113, 113, .08); border-color: var(--danger); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; gap: 6px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .spinner { width: 14px; height: 14px; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: currentColor; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.label { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 140px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A19AAF' stroke-width='2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #46375F; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(147, 51, 234, .18); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input.sm, .select.sm { height: 34px; font-size: 13.5px; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon > .input { padding-left: 38px; }
.hint { font-size: 12.5px; color: var(--faint); }
.form-error { color: var(--danger); font-size: 13.5px; min-height: 0; }
.form-error:not(:empty) { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(248, 113, 113, .3); border-radius: var(--radius-sm); background: rgba(248, 113, 113, .06); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--accent-hover); }
.check a:hover { text-decoration: underline; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-row .field + .field { margin-top: 0; }
.form-row + .field, .field + .form-row, .form-row + .form-row { margin-top: 16px; }
fieldset { border: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .6; }

.pw-meter { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

/* ---------- Panels & Karten ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 20px; }
@media (min-width: 640px) { .panel-pad { padding: 24px; } }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.panel-head .ic { color: var(--accent-hover); }
.panel + .panel, .panel + .section, .stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 12px; }

.section { margin-top: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin-top: 10px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { margin-top: 10px; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 620px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.layout-side { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .layout-side { grid-template-columns: minmax(0, 1fr) 320px; } }

.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* Stat-Kacheln */
.stat {
  position: relative; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--accent); opacity: .7; }
.stat-label { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.stat-value { font: 600 30px/1.1 var(--font-display); margin-top: 8px; letter-spacing: -.02em; }
.stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat.alert .stat-value { color: var(--warn); }

/* ---------- Badges ---------- */
.badge {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 5px;
  font: 600 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.badge .ic { width: 11px; height: 11px; }
.badge-owner { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 6%, transparent)); }
.status-pill {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent);
  font: 500 12px var(--font-mono); color: var(--c); letter-spacing: .04em;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.status-pill.live::before { animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; transition: .2s; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: #4A3A6E; }
.chip.active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Avatar ---------- */
.avatar {
  --c: var(--accent); --s: 36px;
  width: var(--s); height: var(--s); flex-shrink: 0; border-radius: calc(var(--s) * .26);
  display: grid; place-items: center; font: 600 calc(var(--s) * .4)/1 var(--font-display);
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.avatar.xs { --s: 24px; }
.avatar.sm { --s: 30px; }
.avatar.lg { --s: 64px; }
.avatar.xl { --s: 96px; }
.avatar.has-image { padding: 0; overflow: hidden; background: var(--bg-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.user-link { font-weight: 600; transition: color .15s; }
.user-link:hover { color: var(--accent-hover); }

/* ---------- Tabs / Segmented ---------- */
.tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); width: max-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .select { min-width: 160px; }
a.stat:hover { border-color: var(--line-2); background: var(--panel-2); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(147, 51, 234, .035); }

/* ---------- Listen (Threads, Kategorien) ---------- */
.list > * + * { border-top: 1px solid var(--line); }
.list-item { display: grid; gap: 14px; padding: 16px 20px; align-items: center; transition: background .15s; }
.list-item:hover { background: rgba(147, 51, 234, .03); }
.thread-item { grid-template-columns: minmax(0, 1fr) 70px 70px 170px; }
.thread-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.thread-title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-title a:hover { color: var(--accent-hover); }
.thread-title .ic { color: var(--accent-hover); flex-shrink: 0; }
.thread-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.num { text-align: center; }
.num b { display: block; font: 600 15px var(--font-display); }
.num span { font-size: 11px; color: var(--faint); }
.last { display: flex; align-items: center; gap: 10px; font-size: 12.5px; min-width: 0; }
@media (max-width: 760px) {
  .thread-item { grid-template-columns: minmax(0, 1fr); }
  .thread-item .num, .thread-item .last { display: none; }
}

.cat-card {
  position: relative; display: flex; gap: 16px; padding: 20px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .2s, background .2s;
}
.cat-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.cat-card.locked { opacity: .6; }
.cat-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center;
  color: var(--accent-hover); background: var(--accent-soft); border: 1px solid rgba(147, 51, 234, .25);
}
.cat-body { min-width: 0; flex: 1; }
.cat-name { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-desc { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.cat-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.cat-foot b { color: var(--muted); font-weight: 600; }
.cat-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.stretched::after { content: ''; position: absolute; inset: 0; }
.cat-sub a, .cat-card .user-link { position: relative; z-index: 1; }

/* ---------- Posts ---------- */
.post { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.post + .post { border-top: 1px solid var(--line); }
.post-side { padding: 22px 18px; border-right: 1px solid var(--line); text-align: center; background: rgba(8, 7, 13, .35); }
.post-side .avatar { margin: 0 auto 12px; }
.post-side .user-link { display: block; word-break: break-word; margin-bottom: 8px; }
.post-side-meta { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.7; }
.post-main { padding: 18px 22px; display: flex; flex-direction: column; min-width: 0; }
.post-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }
.post-head a:hover { color: var(--accent-hover); }
.post-body { flex: 1; }
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.post.removed .post-body { opacity: .55; }
.post.highlight { animation: highlight 2.2s var(--ease); }
@keyframes highlight { 0%, 30% { background: rgba(147, 51, 234, .1); } }
.removed-note { display: flex; gap: 8px; align-items: center; color: var(--faint); font-style: italic; font-size: 14px; }
@media (max-width: 760px) {
  .post { grid-template-columns: 1fr; }
  .post-side { display: flex; align-items: center; gap: 12px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .post-side .avatar { margin: 0; --s: 40px; }
  .post-side .user-link { margin: 0; display: inline; }
  .post-side-meta { display: none; }
  .post-main { padding: 16px; }
}

.reaction {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 99px;
  border: 1px solid var(--line-2); font: 500 12.5px var(--font-mono); color: var(--muted); transition: .15s;
}
.reaction:hover { border-color: #4A3A6E; color: var(--text); }
.reaction.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.reaction.active .ic { color: var(--accent-hover); }
.reaction[disabled] { cursor: default; }

/* Markdown-Inhalte */
.prose { line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: .8em; }
.prose a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(168, 85, 247, .4); }
.prose code { font: 13px var(--font-mono); background: var(--bg-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose h3 { font-size: 18px; margin-top: 1.2em; }
.prose h4 { font-size: 15px; margin-top: 1em; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }

/* Composer */
.composer { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(147, 51, 234, .15); }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.composer-tools { display: flex; gap: 2px; }
.composer-tools button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.composer-tools button:hover { background: var(--panel); color: var(--text); }
.composer .textarea { border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 170px; }
.composer-preview { padding: 14px; min-height: 170px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); flex-wrap: wrap; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font: 500 13px var(--font-mono); color: var(--muted); transition: .15s;
}
.pagination a:hover { border-color: var(--line-2); color: var(--text); }
.pagination .current { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.pagination .gap { border-color: transparent; }

/* ---------- Empty / Error / Skeleton ---------- */
.empty { text-align: center; padding: 56px 20px; }
.empty-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent-hover); background: var(--accent-soft); border: 1px solid rgba(147, 51, 234, .25);
}
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); margin: 6px auto 0; max-width: 420px; font-size: 14px; }
.empty .btn { margin-top: 18px; }
.empty.error .empty-icon { color: var(--danger); background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .25); }

.skel {
  border-radius: 6px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 40%, var(--panel) 80%);
  background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
.panel .skel { background: linear-gradient(90deg, var(--panel-2) 0%, #221A33 40%, var(--panel-2) 80%); background-size: 300% 100%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.skel-line { height: 12px; }
.skel-title { height: 18px; width: 55%; }
.skel-block { height: 120px; }
.skel-avatar { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14px; color: var(--muted); }
.notice .ic { flex-shrink: 0; color: var(--accent-hover); margin-top: 2px; }
.notice b { color: var(--text); }
.notice.warn { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .05); }
.notice.warn .ic { color: var(--warn); }
.notice.danger { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .05); }
.notice.danger .ic { color: var(--danger); }
.notice a { color: var(--accent-hover); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--line-2); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(4, 3, 8, .72); backdrop-filter: blur(4px); animation: fade .15s;
}
.modal {
  width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(147, 51, 234, .06); animation: pop .2s var(--ease);
}
.modal.wide { max-width: 620px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.code-reveal {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border: 1px dashed var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft);
  font: 600 17px var(--font-mono); letter-spacing: .06em; word-break: break-all;
}

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; left: 20px; z-index: 300; display: grid; justify-items: end; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 12px 16px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: var(--radius-sm);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 14px; animation: toastIn .25s var(--ease);
}
.toast.error { border-left-color: var(--danger); }
.toast.error .ic { color: var(--danger); }
.toast .ic { color: var(--accent-hover); flex-shrink: 0; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Landing ---------- */
.hero { position: relative; padding: 72px 0 40px; }
@media (min-width: 900px) { .hero { padding: 104px 0 56px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.hero-brand { font: 600 12px var(--font-mono); letter-spacing: .32em; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hero-brand::before { content: ''; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin-top: 22px; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(245, 243, 255, .55); }
.hero h1 .accent { color: var(--accent-hover); text-shadow: 0 0 40px rgba(147, 51, 234, .45); }
.hero-lead { margin-top: 22px; font-size: 17px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-card { padding: 22px; border-radius: 12px; background: rgba(21, 16, 32, .8); border: 1px solid var(--line); position: relative; }
.hero-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 12px; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(168, 85, 247, .6), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid var(--line); }
.hero-stats div { padding: 16px 0 2px; }
.hero-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-stats b { display: block; font: 600 26px var(--font-display); }
.hero-stats span { font: 500 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero-glow {
  position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, .18), transparent 65%); filter: blur(10px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }

.marquee-line { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 40s linear infinite; font: 500 12px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.marquee-track span::before { content: '◆'; color: var(--accent); margin-right: 40px; font-size: 8px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

.feature { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.feature:hover { border-color: var(--line-2); }
.feature-idx { font: 500 11px var(--font-mono); color: var(--accent-hover); letter-spacing: .1em; }
.feature h3 { margin-top: 14px; font-size: 16px; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.feature .ic-wrap { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hover); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s var(--ease); color: var(--faint); flex-shrink: 0; }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent-hover); }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; white-space: pre-line; }

.cta-band {
  margin-top: 80px; padding: 40px 28px; border-radius: 14px; border: 1px solid var(--line-2); text-align: center;
  background: radial-gradient(ellipse at top, rgba(147, 51, 234, .16), transparent 70%), var(--bg-2);
}
.cta-band p { color: var(--muted); margin: 10px auto 22px; max-width: 520px; }

/* ---------- Shop ---------- */
.price { font: 600 40px/1 var(--font-display); letter-spacing: -.03em; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check-list .ic { color: var(--accent-hover); flex-shrink: 0; margin-top: 3px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline-item { position: relative; }
.timeline-item + .timeline-item { margin-top: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline-date { font: 500 11.5px var(--font-mono); color: var(--faint); letter-spacing: .06em; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .panel-pad { padding: 28px; }
.auth-card h1 { font-size: 26px; margin-top: 12px; }
.auth-card .sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--accent-hover); font-weight: 500; }

/* ---------- Profil ---------- */
.profile-hero {
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  background: var(--panel); overflow: visible;
}
.profile-banner {
  position: relative; height: 210px; overflow: hidden;
  border-radius: calc(var(--radius) + 1px) calc(var(--radius) + 1px) 0 0;
  background:
    radial-gradient(120% 170% at 15% 0%, rgba(147, 51, 234, .38), transparent 58%),
    linear-gradient(135deg, var(--panel-2), var(--bg-2));
}
.profile-banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--panel) 0%, rgba(21, 16, 32, .82) 16%, rgba(21, 16, 32, 0) 58%);
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-head {
  display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap;
  padding: 0 28px 26px; margin-top: -52px; position: relative;
}
.profile-avatar .avatar {
  --s: 104px; border: 4px solid var(--bg); border-radius: 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.profile-avatar-btn {
  position: relative; display: block; border-radius: 26px; cursor: pointer;
}
.profile-avatar-btn:hover .avatar { border-color: var(--accent); }
.profile-avatar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.profile-avatar-badge {
  position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; border: 3px solid var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.profile-avatar-badge .ic { width: 14px; height: 14px; }
.profile-avatar-dropdown { left: 0; right: auto; top: calc(100% + 10px); min-width: 250px; }
.user-btn .avatar { cursor: pointer; }
.profile-head h1 { font-size: 30px; }
.profile-stats { display: flex; gap: 28px; margin-top: 14px; flex-wrap: wrap; }
.profile-stats b { font: 600 20px var(--font-display); display: block; }
.profile-stats span { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Profilbild/Banner in den Kontoeinstellungen */
.media-settings { display: grid; gap: 20px; }
.media-setting { display: grid; gap: 8px; }
.media-setting-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.media-thumb {
  display: grid; place-items: center; width: 84px; height: 84px; flex-shrink: 0;
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2);
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb.avatar-thumb .avatar { --s: 84px; width: 84px; height: 84px; border: 0; border-radius: 12px; }
.media-thumb.banner-thumb { width: 150px; }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.media-actions .hint { flex-basis: 100%; }
.btn.is-busy { opacity: .6; pointer-events: none; }

@media (max-width: 640px) {
  .profile-banner { height: 150px; }
  .profile-head { padding: 0 18px 20px; gap: 16px; }
  .profile-avatar .avatar { --s: 86px; }
  .media-thumb.banner-thumb { width: 110px; }
}

.member-card { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s; }
.member-card:hover { border-color: var(--line-2); }

.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--accent)); }
.rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 20px; }
.rank-pos { font: 600 13px var(--font-mono); color: var(--faint); }
.rank-row:nth-child(1) .rank-pos { color: #F2C94C; }
.rank-row:nth-child(2) .rank-pos { color: #D1D5DB; }
.rank-row:nth-child(3) .rank-pos { color: #D9915B; }

/* ---------- Admin ---------- */
.admin { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .admin { grid-template-columns: 230px minmax(0, 1fr); } }
.admin-side { align-self: start; }
@media (min-width: 980px) { .admin-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.admin-nav { display: grid; gap: 2px; padding: 8px; }
@media (max-width: 979px) { .admin-nav { display: flex; overflow-x: auto; } }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; white-space: nowrap; transition: .15s; }
.admin-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .025); }
.admin-nav a.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.admin-nav .count { margin-left: auto; font: 600 11px var(--font-mono); color: var(--warn); }
.admin-side-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .input-icon { flex: 1 1 220px; }
.filters .select { width: auto; min-width: 150px; }
.log { display: flex; gap: 12px; padding: 12px 20px; font-size: 13.5px; align-items: flex-start; }
.log + .log { border-top: 1px solid var(--line); }
.log-time { margin-left: auto; font: 12px var(--font-mono); color: var(--faint); white-space: nowrap; padding-left: 12px; }
.log-action { font: 500 11px var(--font-mono); color: var(--accent-hover); }
.report { padding: 18px 20px; }
.report + .report { border-top: 1px solid var(--line); }
.quote { margin-top: 10px; padding: 10px 14px; border-left: 2px solid var(--line-2); background: var(--bg-2); border-radius: 0 6px 6px 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; background: rgba(8, 7, 13, .6); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-grid h4 { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }

/* ---------- Icons ---------- */
.ic { width: 16px; height: 16px; stroke-width: 1.75; flex-shrink: 0; }
i[data-lucide] { display: inline-block; width: 16px; height: 16px; }

/* ---------- Custom Cursor (nur Desktop mit Maus) ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="checkbox"]):not([type="radio"]), html.has-cursor textarea, html.has-cursor [contenteditable] { cursor: text !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .2s; }
.cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--accent-hover); box-shadow: 0 0 6px var(--accent-glow); }
.cursor-ring {
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 1px solid rgba(168, 85, 247, .4);
  transition: opacity .2s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s;
}
html.has-cursor.cursor-visible .cursor-dot, html.has-cursor.cursor-visible .cursor-ring { opacity: 1; }
.cursor-ring.hover { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: rgba(147, 51, 234, .08); border-color: rgba(168, 85, 247, .75); }
.cursor-ring.down { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.cursor-ring.text { opacity: 0 !important; }

/* ---------- Shop-Pläne ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }
.plan {
  display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.plan:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.plan.featured { border-color: rgba(168, 85, 247, .55); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .15), 0 0 28px rgba(147, 51, 234, .12); }
.plan-days { font-size: 12px; letter-spacing: .12em; color: var(--accent-hover); text-transform: uppercase; }
.plan-price { margin-top: 12px; font: 700 28px/1 var(--font-display); letter-spacing: -.02em; }
.plan-price span { margin-left: 4px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--faint); }
.plan-meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); min-height: 34px; }

/* ---------- Keys & Bestellungen ---------- */
.key-list { display: flex; flex-direction: column; gap: 8px; }
.key-row, .order-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-1);
}
.key-row > .mono { font-size: 13px; overflow-wrap: anywhere; }
.order-row > div { min-width: 0; }

/* ---------- Gast-Registrierung ---------- */
.guest-name { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-1); overflow: hidden; }
.guest-name > span { padding: 0 10px; color: var(--faint); font-size: 13px; border-right: 1px solid var(--line); white-space: nowrap; }
.guest-name > .input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.guest-name > .input:focus { outline: none; }

/* ---------- Ankündigungen ---------- */
.announcement.warn { background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .12), transparent); border-bottom-color: rgba(251, 191, 36, .3); color: var(--warn); }
.announcement.warn a { color: inherit; }
.announcement-card h3 { font-size: 17px; }
.announcement-card + .announcement-card { margin-top: 12px; }

/* ---------- Tickets ---------- */
.ticket { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); overflow: hidden; }
.ticket.closed { opacity: .82; }
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ticket-messages { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.ticket-message { padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-1); max-width: 88%; }
.ticket-message.staff { align-self: flex-end; border-color: rgba(168, 85, 247, .35); background: rgba(147, 51, 234, .07); }
.ticket-reply { padding: 14px 18px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 620px) {
  .ticket-message { max-width: 100%; }
  .ticket-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
