/* Santo City Dashboard – Design: ruhige dunkle Oberfläche, ein Akzent, klare Hierarchie */
:root {
  --bg: #0a0c10; --bg-2: #0e1116; --panel: #12151c; --card: #161a22; --card-2: #1b202a; --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --text: #eceff5; --muted: #8b93a7; --faint: #5e6678;
  --accent: #eb1f6a; --accent-2: #ff5a93; --accent-soft: rgba(235,31,106,.14);
  --ok: #3ddc97; --warn: #f5b942; --danger: #ff5d6c; --info: #6ea8ff;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
a { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.muted { color: var(--muted); }
.svg-icon { flex: none; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, rgba(235,31,106,.18), transparent 60%), var(--bg); }
.login-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 38px 34px; text-align: center; box-shadow: var(--shadow-lg); }
.login-card h1 { margin: 16px 0 8px; font-size: 26px; }
.login-card p { color: var(--muted); margin: 0 0 26px; }
.logo { width: 60px; height: 60px; border-radius: 16px; }
.notice { background: rgba(255,93,108,.1); border: 1px solid rgba(255,93,108,.3); color: #ffb9c1; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; text-align: left; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; cursor: pointer; color: #fff; text-decoration: none; background: linear-gradient(180deg, #f2337a, var(--accent)); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 14px rgba(235,31,106,.28); transition: filter .15s, transform .05s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 12px 22px; font-size: 15px; width: 100%; }
.btn.ghost { background: transparent; box-shadow: none; border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--card-2); filter: none; border-color: rgba(255,255,255,.2); }
.btn.small { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: linear-gradient(180deg, #ee4a58, #d83a47); box-shadow: 0 4px 14px rgba(216,58,71,.28); }
.btn.ghost.danger { background: transparent; color: #ff8a95; box-shadow: none; border-color: rgba(255,93,108,.35); }
.btn.ghost.danger:hover { background: rgba(255,93,108,.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; display: inline-flex; }
.icon-btn:hover { color: var(--text); background: var(--card); }

/* Rahmen: Seitenleiste + Inhalt */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px; }
.brand img, .brand .ph { width: 38px; height: 38px; border-radius: 11px; background: var(--card); object-fit: cover; }
.brand strong { display: block; line-height: 1.2; font-size: 15px; }
.brand span { color: var(--muted); font-size: 12px; }
.palette-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; text-align: left; }
.palette-btn:hover { border-color: var(--line-2); color: var(--text); }
.palette-btn span { flex: 1; }
kbd { font: 11px var(--font); color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 7px 11px; border-radius: 9px; color: #c3c9d8; text-decoration: none; font-weight: 500; position: relative; }
.nav-item .svg-icon { color: var(--faint); transition: color .15s; }
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item:hover .svg-icon { color: var(--muted); }
.nav-item.active { background: var(--accent-soft); color: #fff; }
.nav-item.active .svg-icon { color: var(--accent-2); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-section { margin-top: 10px; }
.nav-group { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; cursor: pointer; border-radius: 8px; }
.nav-group:hover { color: var(--muted); }
.nav-group .svg-icon { transition: transform .15s; }
.nav-section.closed .nav-group .svg-icon { transform: rotate(-90deg); }
.nav-section.closed .nav-list { display: none; }
.nav-list { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.userbox { margin-top: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 10px; align-items: center; background: var(--card); }
.userbox img, .userbox .ph { width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); }
.userbox div { min-width: 0; flex: 1; }
.userbox strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox small { color: var(--muted); display: block; }
.userbox button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.userbox button:hover { color: var(--danger); background: rgba(255,93,108,.1); }

.content { min-width: 0; background: radial-gradient(700px 360px at 85% -60px, rgba(235,31,106,.07), transparent 70%); }
.topbar { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; z-index: 30; }
.main { padding: 34px 40px 120px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* Seitenkopf */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.ph-text { min-width: 0; }
.crumb { color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.page-head h1 { margin: 0; font-size: 30px; line-height: 1.15; }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 720px; }
.progress { color: var(--accent-2); font-size: 13px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meter { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.meter-bar { width: 180px; height: 6px; border-radius: 6px; background: var(--card-2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; }
.meter small { color: var(--muted); }

/* Startseite */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 30px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tile small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tile b { display: block; font-size: 28px; margin-top: 4px; letter-spacing: -.03em; }
.block-section { margin-bottom: 30px; }
.block-section > h2 { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.todo { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.todo:hover { border-color: var(--line-2); transform: translateY(-1px); }
.todo b { font-size: 26px; letter-spacing: -.03em; }
.todo.warn b { color: var(--warn); } .todo.ok b { color: var(--ok); }
.todo span { color: var(--muted); } .todo .svg-icon { color: var(--faint); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.mod { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, background .15s; }
.mod:hover { border-color: rgba(235,31,106,.45); background: var(--card-2); transform: translateY(-1px); }
.mod-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.mod h3 { margin: 0 0 3px; font-size: 15px; }
.mod p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Einstellungsseiten */
.search { width: 100%; margin-bottom: 18px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.section > h2 { margin: 0; padding: 14px 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.2fr); gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.changed { background: rgba(245,185,66,.06); box-shadow: inset 3px 0 0 var(--warn); }
.row label { font-weight: 600; }
.row small { display: block; color: var(--faint); font-weight: 400; word-break: break-all; font-size: 12px; margin-top: 2px; }
.row.hidden { display: none; }
input[type=text], input[type=number], select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; min-height: 40px; transition: border-color .15s, box-shadow .15s; }
input[type=text]:hover, textarea:hover { border-color: rgba(255,255,255,.2); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: var(--faint); }
textarea { min-height: 92px; resize: vertical; }
select { color-scheme: dark; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
option { background: #12151c; color: #eceff5; }
input[type=color] { width: 56px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); padding: 3px; cursor: pointer; }
.switch { position: relative; width: 44px; height: 25px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #2b3140; border-radius: 25px; cursor: pointer; transition: background .15s; }
.switch span::before { content: ""; position: absolute; height: 19px; width: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(19px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.savebar { position: fixed; left: calc(264px + (100vw - 264px) / 2); transform: translateX(-50%); bottom: 22px; width: min(640px, calc(100vw - 48px)); background: rgba(22,26,34,.92); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 14px 12px 20px; display: none; gap: 12px; align-items: center; justify-content: space-between; z-index: 40; }
.savebar.show { display: flex; }
.savebar span { color: var(--warn); font-weight: 600; }
.savebar div { display: flex; gap: 8px; }
.toast { position: fixed; top: 18px; right: 18px; padding: 12px 18px; border-radius: 12px; background: #12251d; border: 1px solid rgba(61,220,151,.35); color: #c5f4de; opacity: 0; transform: translateY(-8px); transition: all .2s; pointer-events: none; z-index: 90; box-shadow: var(--shadow); max-width: 420px; }
.toast.error { background: #2a1519; border-color: rgba(255,93,108,.4); color: #ffc9cf; }
.toast.show { opacity: 1; transform: none; }
.empty { color: var(--muted); padding: 48px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Auswahlliste */
.combo { position: relative; }
.combo-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; min-height: 40px; transition: border-color .15s, box-shadow .15s; }
.combo-btn:hover { border-color: rgba(255,255,255,.22); }
.combo.open .combo-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.combo-label { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.combo-caret { color: var(--muted); font-size: 12px; }
.combo-pop { display: none; position: fixed; z-index: 100; min-width: 220px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.combo.open .combo-pop { display: block; }
.combo-search { margin-bottom: 6px; }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.combo-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo-item:hover, .combo-item.active { background: var(--accent-soft); }
.combo-item.selected { background: rgba(235,31,106,.2); }
.combo-item.selected::after { content: "✓"; margin-left: auto; color: var(--accent-2); }
.combo-item small { color: var(--muted); margin-left: auto; padding-left: 10px; white-space: nowrap; }
.combo-icon { width: 20px; text-align: center; color: var(--muted); }
.combo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-empty { padding: 12px; color: var(--muted); text-align: center; }
.combo-avatar { width: 22px; height: 22px; border-radius: 50%; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #99aab5; flex: none; }
.action-menu { min-width: 150px; }
.action-menu .combo-btn { background: var(--accent-soft); border-color: rgba(235,31,106,.4); font-weight: 600; min-height: 34px; padding: 4px 12px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.chip button:hover { color: var(--danger); }

/* Tabellen */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--panel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255,255,255,.025); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; }
.table tr.hidden { display: none; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #262b3a; color: #c9cee0; }
.pill.ok { background: rgba(61,220,151,.13); color: #7fe3b4; } .pill.warn { background: rgba(245,185,66,.14); color: #f7d27a; }
.pill.bad { background: rgba(255,93,108,.14); color: #ff9aa8; } .pill.info { background: rgba(110,168,255,.14); color: #9bc0ff; } .pill.mute { background: #232836; color: #98a0b8; }
a.ext { text-decoration: none; font-weight: 600; }

/* Dialoge */
.overlay { position: fixed; inset: 0; background: rgba(4,5,8,.66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.dialog { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; width: min(540px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.dialog h2 { margin: 0 0 16px; font-size: 19px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 600; }
.form-row small { color: var(--faint); }
.hist { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist small { display: block; color: var(--muted); }
.hist p { margin: 4px 0 0; white-space: pre-wrap; }
.palette { align-items: flex-start; padding-top: 14vh; z-index: 120; }
.palette-box { width: min(580px, 100%); background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 4px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { background: none; border: 0; box-shadow: none !important; font-size: 16px; min-height: 48px; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: #c3c9d8; }
.palette-list li.active { background: var(--accent-soft); color: #fff; }
.palette-list .pl-title { flex: 1; } .palette-list small { color: var(--faint); }
.pl-empty { justify-content: center; color: var(--muted); }

/* Nachrichten-Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ed-panel, .ed-preview { display: grid; gap: 14px; }
.ed-preview { position: sticky; top: 20px; }
.ed-preview > h3 { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.ed-top { display: flex; gap: 18px; align-items: end; flex-wrap: wrap; }
.block { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.block.inner { background: var(--bg-2); border-radius: 12px; }
.block-head, .block-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.block-body { display: grid; gap: 8px; }
.add-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 7px; margin-right: 14px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.btn-row { display: grid; grid-template-columns: 130px 1fr 80px auto; gap: 6px; align-items: center; }
.btn-row.sel { grid-template-columns: 1fr 80px auto; }
.action-edit { display: grid; gap: 6px; }
.image-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.upload { display: inline-flex; } .file-hidden { display: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 6px 13px; cursor: pointer; color: var(--muted); }
.tab.active { border-color: rgba(235,31,106,.5); background: var(--accent-soft); color: #fff; }
.pv { background: #313338; color: #dbdee1; border-radius: 14px; padding: 16px; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; box-shadow: var(--shadow); }
.pv-head { display: flex; gap: 8px; align-items: center; }
.pv-bot { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.pv-container { background: #2b2d31; border-left: 4px solid #eb1f6a; border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.pv-loose, .pv-embeds { display: grid; gap: 8px; }
.pv-text { overflow-wrap: anywhere; }
.pv .md-h { margin: 2px 0; } .pv h2.md-h { font-size: 22px; } .pv h3.md-h { font-size: 18px; } .pv h4.md-h { font-size: 16px; }
.pv code { background: #1e1f22; padding: 1px 4px; border-radius: 4px; }
.pv pre { background: #1e1f22; padding: 8px; border-radius: 6px; white-space: pre-wrap; margin: 4px 0; }
.pv .mention { background: #5865f240; color: #c9cdfb; padding: 0 3px; border-radius: 3px; }
.pv .md-sub { opacity: .6; display: block; }
.pv-sep { height: 8px; } .pv-sep.large { height: 20px; }
.pv-sep.line { border-bottom: 1px solid #4e5058; height: 0; margin: 4px 0; } .pv-sep.line.large { margin: 10px 0; }
.pv-section { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.pv-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.pv-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px; }
.pv-gallery img, .pv-image { width: 100%; border-radius: 8px; }
.pv-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-btn { background: #4e5058; padding: 6px 14px; border-radius: 6px; font-size: 14px; }
.pv-btn.primary { background: #5865f2; } .pv-btn.success { background: #248046; } .pv-btn.danger { background: #da373c; } .pv-btn.secondary, .pv-btn.link { background: #4e5058; } .pv-btn.off { opacity: .5; }
.pv-select { background: #1e1f22; border: 1px solid #3a3c43; border-radius: 6px; padding: 8px 12px; display: flex; justify-content: space-between; color: #b5bac1; }
.spoiler { filter: blur(14px); } .spoiler-box { opacity: .7; outline: 2px dashed #4e5058; }
.pv-embed { background: #2b2d31; border-left: 4px solid #eb1f6a; border-radius: 6px; padding: 10px 14px; display: grid; gap: 6px; position: relative; max-width: 520px; }
.pv-title { font-weight: 700; font-size: 16px; }
.pv-author, .pv-footer { font-size: 13px; opacity: .85; }
.pv-mini { width: 20px; height: 20px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pv-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-field { grid-column: 1 / -1; } .pv-field.inline { grid-column: auto; }
.pv-thumb.abs { position: absolute; top: 10px; right: 10px; }

/* Responsiv */
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .ed-preview { position: static; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { display: flex; }
  .sidebar { position: fixed; z-index: 80; left: 0; top: 0; width: 286px; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  .main { padding: 22px 16px 120px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .savebar { left: 50%; }
  .page-head h1 { font-size: 24px; }
  .btn-row { grid-template-columns: 1fr 1fr; }
}

/* V2: Container-Karten und Datei-Vorschau */
.container-card { border: 1px solid rgba(235,31,106,.35); background: linear-gradient(180deg, rgba(235,31,106,.06), transparent 120px), var(--card); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }
.container-card .block { background: var(--bg-2); }
.pv-file { display: flex; align-items: center; gap: 10px; background: #1e1f22; border-radius: 8px; padding: 10px 12px; color: #dbdee1; }
