/* ───────────── Grundlagen ───────────── */
:root {
  --bg: #07090f;
  --bg-2: #0c1018;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --dim: #646d80;
  --accent: #4facfe;
  --accent-2: #00f2fe;
  --green: #3ddc84;
  --red: #ff5c6c;
  --gold: #ffc53d;
  --yellow: #ffd866;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(79, 172, 254, 0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(142, 45, 226, 0.14), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(0, 242, 254, 0.08), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.grad {
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────────── Kopfzeile ───────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.cube {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(79, 172, 254, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
  position: relative;
}
.cube::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: rgba(255,255,255,.28); }
.topbar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.navlink { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; background: none; border: 0; font-family: inherit; }
.navlink:hover { color: var(--text); background: var(--panel); text-decoration: none; }

/* ───────────── Buttons & Felder ───────────── */
.btn {
  --b1: var(--accent); --b2: var(--accent-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); color: #06121f;
  background: linear-gradient(135deg, var(--b1), var(--b2));
  box-shadow: 0 10px 30px -10px var(--b1);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px var(--b1); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--panel); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--border-strong); }
.btn.green { --b1: #2fbf71; --b2: #6ee7a8; }
.btn.red { --b1: #ff5c6c; --b2: #ff8a7a; color: #fff; }
.btn.gold { --b1: #f7971e; --b2: #ffd200; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }

label.field { display: block; margin-bottom: 20px; }
.field-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field-label .req { color: var(--red); margin-left: 3px; }
.field-hint { font-size: 12px; color: var(--dim); font-weight: 500; }
input[type=text], input[type=password], input[type=number], input[type=url], textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: 15px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.15); background: rgba(0,0,0,.5); }
select option { background: #111621; }
.invalid { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(255, 92, 108, 0.12) !important; }

/* Auswahl-Pillen */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel);
  color: var(--muted); font: 500 14px var(--font); cursor: pointer; transition: all .15s;
}
.choice:hover { border-color: var(--border-strong); color: var(--text); }
.choice.on { color: #06121f; border-color: transparent; background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2))); font-weight: 600; }

/* Schalter */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); }
.switch input { display: none; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: linear-gradient(135deg, var(--c1, var(--green)), var(--c2, #6ee7a8)); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .switch-text { font-weight: 500; font-size: 15px; }

/* Schieberegler */
.slider-row { display: flex; align-items: center; gap: 16px; }
input[type=range] { flex: 1; accent-color: var(--c1, var(--accent)); height: 6px; }
.slider-val { min-width: 54px; text-align: center; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); font-weight: 700; font-family: var(--font-display); }

/* ───────────── Karten ───────────── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.green { color: var(--green); background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .25); }
.badge.red { color: var(--red); background: rgba(255, 92, 108, .1); border-color: rgba(255, 92, 108, .25); }
.badge.gold { color: var(--gold); background: rgba(255, 197, 61, .1); border-color: rgba(255, 197, 61, .25); }
.badge.yellow { color: var(--yellow); background: rgba(255, 216, 102, .08); border-color: rgba(255, 216, 102, .22); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ───────────── Startseite ───────────── */
.hero { padding: 84px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
.hero p.lead { max-width: 640px; margin: 18px auto 26px; color: var(--muted); font-size: 18px; }
.hero .badge { margin-bottom: 18px; }

.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding: 20px 0 80px; }
.rank-card {
  position: relative; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 12px; min-height: 250px;
  transition: transform .2s ease, border-color .2s ease;
}
.rank-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.rank-card::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, var(--c1), transparent 70%); opacity: .14; transition: opacity .25s;
}
.rank-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.rank-card:hover::after { opacity: .3; }
.rank-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 30%, transparent), color-mix(in srgb, var(--c2) 20%, transparent));
  border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent);
}
.rank-card h3 { font-size: 24px; margin: 4px 0 0; }
.rank-card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.rank-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-card .more { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* ───────────── Formular ───────────── */
.flow { max-width: 760px; margin: 40px auto 80px; }
.flow-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.flow-head .rank-icon { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
.flow-head h2 { margin: 0; font-size: 26px; }
.steps { display: flex; gap: 6px; margin: 0 0 22px; }
.steps span { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.steps span.done::after, .steps span.now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.steps span.now::after { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.step-label { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.flow .card h3 { font-size: 22px; }
.flow-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; font-size: 15px; border: 1px solid; }
.alert.error { background: rgba(255, 92, 108, .09); border-color: rgba(255, 92, 108, .3); color: #ffc2c8; }
.alert.info { background: rgba(79, 172, 254, .08); border-color: rgba(79, 172, 254, .25); color: #c7e4ff; }
.alert.gold { background: rgba(255, 197, 61, .08); border-color: rgba(255, 197, 61, .3); color: #ffe4a3; }
.alert.success { background: rgba(61, 220, 132, .08); border-color: rgba(61, 220, 132, .3); color: #b9f5d3; }
.player-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); margin-bottom: 18px; }
.player-preview img { width: 48px; height: 48px; border-radius: 10px; image-rendering: pixelated; background: rgba(255,255,255,.05); }
.summary-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.summary-item:last-child { border-bottom: 0; }
.summary-item .q { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.summary-item .a { white-space: pre-wrap; word-break: break-word; }
.summary-page { font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 22px 0 2px; }

/* ───────────── Rang-Detail (Modal) ───────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 50; background: rgba(3, 5, 10, .72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade .2s ease;
}
.modal { max-width: 620px; width: 100%; max-height: calc(100vh - 40px); overflow: auto; position: relative; animation: pop .25s ease; }
.modal .close { position: absolute; top: 14px; right: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.desc-lines { margin: 16px 0 20px; color: var(--muted); }
.desc-lines p { margin: 0 0 8px; }
.desc-lines .bullet { display: flex; gap: 10px; margin: 0 0 8px; }
.desc-lines .bullet::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; margin-top: 9px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.fact { padding: 12px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); text-align: center; }
.fact b { display: block; font-family: var(--font-display); font-size: 20px; }
.fact span { font-size: 12px; color: var(--dim); }

/* ───────────── Status ───────────── */
.status-hero { text-align: center; padding: 10px 0 6px; }
.status-hero .rank-icon { margin: 0 auto 14px; width: 72px; height: 72px; font-size: 36px; border-radius: 20px; }
.timeline { list-style: none; margin: 20px 0 0; padding: 0 0 0 8px; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 4px var(--bg); }
.timeline li.ok::before { background: var(--green); }
.timeline li.gold::before { background: var(--gold); }
.timeline li.bad::before { background: var(--red); }
.timeline li.wait::before { background: var(--yellow); animation: pulse 1.6s infinite; }
.timeline .t { font-size: 13px; color: var(--dim); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, monospace; font-size: 13px; }

.footer { text-align: center; color: var(--dim); font-size: 13px; padding: 30px 0 40px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: #151b27; border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  font-weight: 500; animation: pop .2s ease;
}
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 24px; }
  .card { padding: 18px; border-radius: 16px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .flow { margin-top: 20px; }
  .flow-actions .btn { flex: 1; }
  .topbar .navlink.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═════════════ Admin-Panel ═════════════ */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--border);
  background: rgba(7, 9, 15, .75); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 4px;
}
.sidebar .brand { padding: 4px 10px 18px; }
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0;
  background: none; color: var(--muted); font: 500 14px var(--font); cursor: pointer; text-align: left;
}
.side-link:hover { background: var(--panel); color: var(--text); }
.side-link.on { background: linear-gradient(90deg, rgba(79,172,254,.16), rgba(79,172,254,.02)); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side-link .ico { width: 20px; text-align: center; }
.side-link .count { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--text); font-weight: 600; }
.side-link .count.hot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121f; }
.side-sep { height: 1px; background: var(--border); margin: 10px 8px; }
.side-foot { margin-top: auto; padding: 10px; font-size: 13px; color: var(--dim); }
.admin-main { padding: 28px 32px 60px; min-width: 0; }
.admin-main > .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-main > .head h1 { font-size: 28px; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; cursor: default; }
.stat.click { cursor: pointer; transition: transform .15s, border-color .15s; }
.stat.click:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat .v { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 8px; font-weight: 500; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); transition: background .15s, border-color .15s;
  font: inherit; color: inherit; text-align: left; width: 100%;
}
.list-row:hover { background: var(--panel-2); border-color: var(--border-strong); }
.list-row img, .avatar { width: 40px; height: 40px; border-radius: 9px; image-rendering: pixelated; background: rgba(255,255,255,.06); flex: none; }
.list-row .name { font-weight: 600; }
.list-row .sub { font-size: 13px; color: var(--dim); }
.rank-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #06121f; background: linear-gradient(135deg, var(--c1), var(--c2)); white-space: nowrap; }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input { max-width: 280px; }
.filters select { max-width: 220px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.detail .side-col { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.detail-head .avatar { width: 64px; height: 64px; border-radius: 14px; }
.answer { padding: 14px 0; border-bottom: 1px solid var(--border); }
.answer:last-child { border-bottom: 0; }
.answer .q { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.answer .a { white-space: pre-wrap; word-break: break-word; }
.note { padding: 10px 12px; border-radius: 10px; background: rgba(196, 113, 245, .07); border: 1px solid rgba(196, 113, 245, .2); margin-bottom: 8px; }
.note .meta { font-size: 12px; color: var(--dim); margin-bottom: 2px; }
.card h4 { font-size: 15px; margin-bottom: 12px; }
.actions { display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; word-break: break-word; }

/* Editor */
.editor-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.editor-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.page-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; background: rgba(0,0,0,.18); }
.page-box > .row { margin-bottom: 12px; }
.q-box { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: var(--panel); }
.q-box .row { gap: 8px; }
.q-box label.field { margin-bottom: 12px; }
.q-box .tools { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(255,92,108,.4); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
input[type=color] { width: 100%; height: 48px; padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0,0,0,.35); cursor: pointer; }
.savebar {
  position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  padding: 12px 16px; margin-top: 20px; border-radius: 14px; background: rgba(12, 16, 24, .92); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 400px; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .detail { grid-template-columns: 1fr; }
  .detail .side-col { position: static; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; background: rgba(7,9,15,.9); backdrop-filter: blur(12px); }
  .mobile-nav .side-link { width: auto; white-space: nowrap; }
  .admin-main { padding: 20px 16px 60px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}

/* Logo */
.brand-logo { height: 32px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.hero-logo { display: block; max-height: 150px; max-width: min(80%, 420px); margin: 0 auto 22px; object-fit: contain; filter: drop-shadow(0 12px 40px rgba(79, 172, 254, .25)); }
@media (max-width: 640px) { .hero-logo { max-height: 110px; } }

/* Hintergrundbild */
body.has-bg::before {
  background:
    linear-gradient(180deg, rgba(7, 9, 15, var(--bg-dim, .75)), rgba(7, 9, 15, min(1, calc(var(--bg-dim, .75) + .12)))),
    var(--bg-image) center / cover no-repeat;
}
body.has-bg::after { display: none; }
body.has-bg .card { backdrop-filter: blur(10px); }
