:root {
  /* Immer hell – unabhängig vom Dunkelmodus des Geräts */
  --bg: #f7f5f1;
  --panel: #ffffff;
  --panel-2: #fbfaf7;
  --ink: #1f1f21;
  --ink-2: #4a4844;
  --muted: #8c877d;
  --line: #e8e3da;
  --line-2: #d9d2c5;
  --accent: #1f1f21;
  --accent-ink: #ffffff;
  --gold: #c9b38a;
  --ok: #24603b;
  --ok-bg: #e6f2ea;
  --warn: #8a6414;
  --warn-bg: #f6eed9;
  --err: #a8322b;
  --err-bg: #f9e7e4;
  --info: #6b5a36;
  --info-bg: #f2ece0;
  --side: #1f1f21;
  --side-2: #2a2a2d;
  --side-ink: #ecebe7;
  --side-muted: #8e8b85;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(31, 31, 33, .04), 0 8px 28px rgba(31, 31, 33, .06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; text-decoration: none; padding: 2px 6px 8px; letter-spacing: -.01em; }
.brand-mark svg { width: 28px; height: 28px; display: block; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); }
.side-nav a:hover, .side-list a:hover { background: var(--line); color: var(--ink); }
.side-nav a.is-active, .side-list a.is-active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.side-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px 0; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-list a span.n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .empty { padding: 8px 10px; color: var(--muted); font-size: 13px; }

.main { padding: 36px clamp(20px, 4vw, 56px) 80px; max-width: 1240px; width: 100%; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Bausteine ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2 { font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.card h2 .step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: 13px; flex: none; }
.card .desc { color: var(--muted); margin: 6px 0 16px; font-size: 14px; }
.card + .card { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { opacity: .9; border-color: var(--accent); }
.btn-danger { color: var(--err); }
.btn-danger:hover { border-color: var(--err); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--line); border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.err { background: var(--err-bg); color: var(--err); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.run { background: var(--info-bg); color: var(--info); }
.chip.run::before { animation: pulse 1.2s ease-in-out infinite; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--gold); } .dot.err { background: var(--err); } .dot.run { background: var(--info); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.err { background: var(--err-bg); color: var(--err); }
.notice.info { background: var(--info-bg); color: var(--info); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice a { font-weight: 600; }
.notice .grow { flex: 1; }

/* ---------- Formular ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; background: var(--panel); box-shadow: var(--shadow); }
legend { float: left; width: 100%; font-weight: 700; font-size: 16px; padding: 0; margin: 0 0 16px; }
legend + * { clear: both; }
fieldset .hint { color: var(--muted); font-size: 13px; margin: -2px 0 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 13.5px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field .help { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=tel], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.more > summary::before { content: "▸"; transition: transform .2s; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more[open] > summary { margin-bottom: 16px; }
.form-actions { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }

.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; background: var(--panel-2); }
.drop:hover, .drop.is-over { border-color: var(--ink-2); background: var(--panel); color: var(--ink-2); }
.drop strong { color: var(--ink); }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.logo img { object-fit: contain; padding: 10px; background: repeating-conic-gradient(#0000000d 0 25%, transparent 0 50%) 0 0 / 14px 14px; }
.thumb button { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.thumb .tag { position: absolute; left: 5px; bottom: 5px; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; }

/* ---------- Projektansicht ---------- */
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv dd a { color: var(--info); }
.frame-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); aspect-ratio: 16 / 10; }
.frame-wrap iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
.frame-wrap .open { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(0, 0, 0, .35); color: #fff; font-weight: 700; text-decoration: none; transition: opacity .2s; }
.frame-wrap:hover .open { opacity: 1; }
.empty-state { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty-state .big { font-size: 40px; margin-bottom: 8px; }

.live { border-color: color-mix(in srgb, var(--info) 35%, var(--line)); }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.live-shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 12px; }
.live-shot img { display: block; width: 100%; max-height: 360px; object-fit: cover; object-position: top; }
.live-shot .cap { font-size: 12px; color: var(--muted); padding: 6px 10px; }
.log { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.log li { display: grid; grid-template-columns: 54px 18px 1fr; gap: 6px; padding: 5px 4px; border-radius: 6px; align-items: start; }
.log li time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.log li .i { text-align: center; }
.log li.text, .log li.summary { color: var(--ink); font-weight: 600; }
.log li.subtext { color: var(--ink-2); font-style: italic; }
.log li.tool, .log li.shot, .log li.status { color: var(--ink-2); }
.log li.error { color: var(--err); background: var(--err-bg); }
.log li.done { color: var(--ok); font-weight: 600; }
.log li.phase { color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin: -4px 0 14px; }
.progress i { display: block; height: 100%; width: 40%; background: var(--info); border-radius: 4px; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.history { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.history li { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.history li .t { flex: 1; white-space: pre-wrap; }
.pages { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.pages a { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.pages a:hover { border-color: var(--ink-2); }
.todo { font-size: 13.5px; background: var(--warn-bg); color: var(--ink); border-radius: 10px; padding: 12px 14px 12px 30px; margin: 0; }
.todo li + li { margin-top: 4px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Übersicht ---------- */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--panel-2); }
td .name { font-weight: 700; }
td .sub { color: var(--muted); font-size: 13px; }
.copy { font-family: var(--mono); font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; cursor: copy; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--panel); padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); color: #fff; }

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-list { max-height: 180px; overflow: auto; }
  .fields { grid-template-columns: 1fr; }
  .main { padding: 24px 16px 80px; }
  .page-head h1 { font-size: 24px; }
}

/* =====================================================================
   Social-Agent – Ergänzungen
   ===================================================================== */
.brand-mark path { stroke-width: 2.2; }
.side-list .badge, .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.side-list .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.side-add { font-size: 13px; color: var(--muted); padding: 6px 10px; text-decoration: none; }
.side-add:hover { color: var(--ink); }

.chip.muted { background: var(--line); color: var(--muted); }
.pf { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.pf svg { width: 16px; height: 16px; flex: none; }

/* Drop & Reihenfolge */
.drop.big { padding: 40px 22px; }
.drop .big-ico { font-size: 34px; display: block; margin-bottom: 6px; }
.thumbs.sortable .thumb { cursor: grab; }
.thumbs.sortable .thumb.dragging { opacity: .4; }
.thumbs.sortable .thumb.over { outline: 2px solid var(--gold); outline-offset: 2px; }
.thumb .num { position: absolute; left: 5px; top: 5px; min-width: 22px; height: 22px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: var(--panel-2); font-weight: 600; font-size: 14px; user-select: none; }
.check input { margin: 0; accent-color: var(--ink); }
.check.off { opacity: .45; cursor: not-allowed; }
.check:has(input:checked) { border-color: var(--ink-2); background: var(--panel); }

/* Post-Ansicht */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -22px 18px; padding: 0 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button .n { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--err-bg); color: var(--err); }
.tabs button .n.warn { background: var(--warn-bg); color: var(--warn); }
.counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.counter.over { color: var(--err); font-weight: 700; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
textarea.caption { min-height: 260px; font-size: 14.5px; }
.findings { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.findings li { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.findings li.block { background: var(--err-bg); color: var(--err); }
.findings li.warn { background: var(--warn-bg); color: var(--warn); }
.findings li .ico { grid-row: span 3; font-size: 16px; }
.findings li b { color: var(--ink); }
.findings li .ex { color: var(--ink-2); font-style: italic; }
.findings li .sug { color: var(--ink-2); }
.findings li .src { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.media-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.media-strip a, .media-strip div { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--line); display: block; }
.media-strip img, .media-strip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-strip .num { position: absolute; left: 5px; top: 5px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; }
.video-main { width: 100%; max-height: 460px; border-radius: 12px; background: #000; display: block; }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.results li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.results li .grow { flex: 1; min-width: 0; }
.results li .msg { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.results li a { color: var(--info); font-weight: 600; font-size: 13px; }
.action-bar { display: flex; flex-direction: column; gap: 10px; }
.action-bar .row > * { flex: 1; }
.override { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 10px 12px; background: var(--err-bg); color: var(--err); border-radius: 10px; cursor: pointer; }
.override input { margin-top: 3px; accent-color: var(--err); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }

/* Listen / Karten */
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.post-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.post-item:hover { border-color: var(--ink-2); }
.post-item .pic { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--line); flex: none; display: grid; place-items: center; font-size: 20px; }
.post-item .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-item .grow { flex: 1; min-width: 0; }
.post-item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.post-item .s { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.brand-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.brand-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--gold)); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.brand-card h3 { font-size: 16px; }
.brand-card .nums { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.brand-card .nums b { color: var(--ink); }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }

/* Produkte im Firmen-Formular */
.products { display: flex; flex-direction: column; gap: 10px; }
.product { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.product textarea { grid-column: 1 / -1; min-height: 60px; }
.product .del { align-self: start; }

/* Planer */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-head h2 { font-size: 20px; min-width: 190px; letter-spacing: -.01em; }
.cal-head select { width: auto; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal .dow { background: var(--panel-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; font-weight: 700; }
.cal .day { background: var(--panel); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; transition: background .12s; }
.cal .day.other { background: var(--panel-2); }
.cal .day.other { background: var(--bg); min-height: 0; }
.cal .day[data-drop] { cursor: pointer; }
.cal .day .day-add { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--line); opacity: 0; transition: opacity .12s, color .12s, border-color .12s; }
.cal .day[data-drop]:hover .day-add, .cal .day .day-add:focus-visible { opacity: 1; }
.cal .day .day-add:hover { color: var(--ink); border-color: var(--gold); }
@media (hover: none) { .cal .day .day-add { opacity: .7; } }
.cal .day.past { background: var(--panel-2); }
.cal .day.today .d { background: var(--ink); color: var(--panel); }
.cal .day.drop-ok { background: color-mix(in srgb, var(--gold) 16%, var(--panel)); }
.cal .d { font-size: 12px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.pill { display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 3px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--gold)); font-size: 12px; text-decoration: none; cursor: pointer; min-width: 0; }
.pill[draggable=true] { cursor: grab; }
.pill img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; flex: none; }
.pill .tm { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; color: var(--ink-2); }
.pill.draft { border-style: dashed; border-left-style: solid; opacity: .85; }
.pill.ok { background: var(--ok-bg); }
.pill.err { background: var(--err-bg); }
.pill:hover { border-color: var(--ink-2); }
.drafts { position: sticky; top: 20px; }
.drafts .pill { padding: 6px 8px 6px 6px; }
.drafts .pill img { width: 34px; height: 34px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid var(--line-2); }
.agenda { display: none; }

@media (max-width: 1100px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .drafts { position: static; }
}
@media (max-width: 760px) {
  .cal { display: none; }
  .agenda { display: block; }
  .product { grid-template-columns: 1fr; }
  .tabs { margin: 0 -16px 16px; padding: 0 16px; }
}
.brand-mark circle { fill: none; stroke: var(--gold); stroke-width: 2.2; }
@media (max-width: 1300px) { .cal .pill img { display: none; } .cal .pill { padding-left: 5px; } }

/* Pop-up beim Posten */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 19, 16, .45); display: grid; place-items: center; padding: 16px; z-index: 200; animation: fade .15s ease-out; }
.modal { background: var(--panel); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); padding: 28px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; text-align: center; animation: pop .2s ease-out; }
.modal h2 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 4px; }
.modal-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 26px; font-weight: 700; }
.modal-ico.ok { background: var(--ok-bg); color: var(--ok); }
.modal-ico.warn { background: var(--warn-bg); color: var(--warn); }
.modal-ico.err { background: var(--err-bg); color: var(--err); }
.modal-ico.run { background: var(--info-bg); color: var(--info); }
.spin { width: 24px; height: 24px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }

/* Ablagefläche Neuer Post */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.drop.big { padding: 36px 22px; min-height: 180px; border-width: 2px; border-radius: 16px; }
.drop-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); margin-bottom: 6px; transition: transform .15s; }
.drop-ico svg { width: 24px; height: 24px; }
.drop:hover .drop-ico, .drop.is-over .drop-ico { transform: translateY(-2px); color: var(--ink); }
.drop-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.drop-title u { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.drop-sub { font-size: 12.5px; color: var(--muted); }

/* Dunkle Seitenleiste (Graphit & Champagner) */
.side { background: var(--side); border-right-color: var(--side); color: var(--side-ink); }
.brand { color: var(--side-ink); }
.brand-mark rect { fill: var(--gold); }
.brand-mark path, .brand-mark circle { stroke: var(--side); }
.side .btn-primary { background: var(--gold); border-color: var(--gold); color: #1f1f21; }
.side .btn-primary:hover { background: #d6c4a0; border-color: #d6c4a0; opacity: 1; }
.side-nav a, .side-list a { color: var(--side-muted); }
.side-nav a:hover, .side-list a:hover { background: var(--side-2); color: var(--side-ink); }
.side-nav a.is-active, .side-list a.is-active { background: var(--side-2); color: var(--side-ink); box-shadow: inset 2px 0 0 var(--gold); }
.side-title { color: #6f6c66; }
.side-list .empty, .side-add { color: var(--side-muted); }
.side-add:hover { color: var(--side-ink); }
.side .badge { background: var(--gold); color: #1f1f21; }
.side :focus-visible { outline-color: var(--gold); }
@media (max-width: 760px) { .side { border-bottom-color: var(--side); } }

/* Wunschfeld unter den Texten */
.revise { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--info-bg); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); display: flex; flex-direction: column; gap: 8px; }
.revise label { font-weight: 600; font-size: 14px; }
.revise textarea { min-height: 64px; background: var(--panel); }


/* Anmeldung */
body.login-mode .side { display: none; }
body.login-mode .layout { grid-template-columns: 1fr; }
body.login-mode .main { max-width: none; }
.login { min-height: calc(100vh - 120px); display: grid; place-items: center; }
.login-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.login-card h1 { font-size: 24px; letter-spacing: -.01em; }
.login-mark { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 4px; display: block; }
.login-card input { text-align: center; }

/* =====================================================================
   Neumorphism – eine matte Fläche, Elemente weich heraus- oder hineingedrückt
   ===================================================================== */
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #e3e3e4;
  --panel: #e3e3e4;
  --panel-2: #dcdcde;
  --ink: #0e0e10;
  --ink-2: #3c3c40;
  --muted: #838388;
  --line: #d2d2d5;
  --line-2: #c7c7cb;
  --gold: #1f6a74;
  --gold-soft: #c9d9db;
  --grad: linear-gradient(125deg, #3d9aa1 0%, #16354f 38%, #2a1020 58%, #9b3046 80%, #d9a3a8 100%);
  --dark: rgba(140, 140, 150, .32);
  --light: rgba(255, 255, 255, .7);
  --raise: 6px 6px 14px var(--dark), -6px -6px 14px var(--light);
  --raise-sm: 4px 4px 9px var(--dark), -4px -4px 9px var(--light);
  --raise-xs: 2px 2px 4px var(--dark), -2px -2px 4px var(--light);
  --inset: inset 3px 3px 7px var(--dark), inset -3px -3px 7px var(--light);
  --inset-sm: inset 2px 2px 5px var(--dark), inset -2px -2px 5px var(--light);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: var(--raise);
  --ease: cubic-bezier(.2, .75, .25, 1);
}
body { font-size: 14.5px; background: var(--bg); }
::selection { background: color-mix(in srgb, var(--gold) 40%, transparent); }
.page-head h1, .display { font-weight: 700; letter-spacing: -.03em; }
.display em { font-style: normal; color: var(--gold); }
.page-head h1 { font-size: 34px; }
.section-title { font-size: 11.5px; letter-spacing: .14em; margin: 34px 0 16px; }

/* Flächen: herausgedrückt */
.card, fieldset, .stat, .brand-card, .table-wrap, .login-card, .post-item, .next-card, .modal, .wcard {
  background: var(--bg); border: 0; box-shadow: var(--raise);
}
.card, fieldset, .stat, .brand-card { border-radius: var(--radius); }
.card h2 { font-size: 16px; font-weight: 650; }
.post-item { border-radius: 18px; padding: 12px; }
.post-item .pic, .post-item .pic img { border-radius: 12px; }
.post-item, .stat, .brand-card, .next-card, .wcard { transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.post-item:hover, .stat:hover, .brand-card:hover, .next-card:hover, .wcard:hover { box-shadow: var(--raise-sm); transform: none; }
.post-item:active, .stat:active, .next-card:active, .wcard:active { box-shadow: var(--inset-sm); }

/* Knöpfe */
.btn { border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: var(--raise-sm); font-weight: 600; transition: box-shadow .2s var(--ease), color .2s; }
.btn:hover { border: 0; box-shadow: var(--raise-xs); color: var(--ink); }
.btn:active { box-shadow: var(--inset-sm); transform: none; }
.btn-primary, .btn-gold, .side .btn-primary { background: var(--gold); color: #1f1f21; box-shadow: var(--raise-sm); }
.btn-primary:hover, .btn-gold:hover, .side .btn-primary:hover { background: var(--gold); opacity: 1; box-shadow: var(--raise-xs); }
.btn-primary:active, .btn-gold:active { box-shadow: inset 3px 3px 6px rgba(0, 0, 0, .25), inset -2px -2px 5px rgba(255, 255, 255, .25); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: transparent; box-shadow: var(--raise-xs); }
.btn-danger { color: var(--err); }
.btn-icon { width: 36px; padding: 7px 0; }
.btn[disabled] { box-shadow: var(--inset-sm); opacity: .6; }

/* Eingaben: hineingedrückt */
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], textarea, select {
  background: var(--bg); border: 0; border-radius: 14px; box-shadow: var(--inset-sm); padding: 11px 14px;
}
input:focus, textarea:focus, select:focus { border: 0; box-shadow: var(--inset-sm), 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent); }
.drop { background: var(--bg); border: 0; box-shadow: var(--inset); }
.drop:hover, .drop.is-over { background: var(--bg); box-shadow: var(--inset), 0 0 0 2px var(--gold); }
.drop-ico { background: var(--bg); border: 0; box-shadow: var(--raise-sm); }
.thumb { border: 0; box-shadow: var(--raise-xs); border-radius: 14px; }
.check { background: var(--bg); border: 0; box-shadow: var(--raise-xs); border-radius: 12px; }
.check:has(input:checked) { box-shadow: var(--inset-sm); color: var(--ink); background: var(--bg); }
.check input { accent-color: var(--gold); }
.switch input { background: var(--bg); box-shadow: var(--inset-sm); }
.switch input::after { background: var(--bg); box-shadow: var(--raise-xs); }
.switch input:checked { background: var(--gold); }
.notice { border-radius: 16px; }

/* Seitenleiste: gleiche Fläche, aktiver Punkt eingedrückt */
.side { background: var(--bg); color: var(--ink); border-right: 0; padding: 24px 18px; box-shadow: 6px 0 14px -10px var(--dark); }
.brand { color: var(--ink); font-size: 17px; }
.brand-mark rect { fill: var(--gold); }
.brand-mark path, .brand-mark circle { stroke: #fff; }
.side-nav { gap: 6px; margin-top: 6px; }
.side-nav a, .side-list a { color: var(--ink-2); padding: 10px 12px; border-radius: 14px; font-weight: 500; transition: box-shadow .2s, color .2s; }
.side-nav a svg { width: 18px; height: 18px; flex: none; }
.side-nav a:hover, .side-list a:hover { background: transparent; color: var(--ink); box-shadow: var(--raise-xs); }
.side-nav a.is-active, .side-list a.is-active { background: transparent; color: var(--ink); box-shadow: var(--inset-sm); font-weight: 600; }
.side-nav a.is-active svg { color: var(--gold); }
.side-title { color: var(--muted); }
.side-list .empty, .side-add { color: var(--muted); }
.side-add:hover { color: var(--ink); }
.side .badge { background: var(--gold); color: #1f1f21; }

/* Seiten-Einblendung (dezent) */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.main.enter > * { animation: rise .35s var(--ease) both; }

/* Plattform-Logos */
.pf svg.pf-ico { width: 15px; height: 15px; }
.pf-ico { width: 16px; height: 16px; flex: none; display: inline-block; }
.pf-instagram { color: #e1306c; }
.pf-tiktok { color: var(--ink); }
.pf-youtube { color: #ff0000; }
.pf-pinterest { color: #bd081c; }
.pf-row { display: inline-flex; gap: 6px; align-items: center; }
.pf-row .pf-ico { width: 14px; height: 14px; }

/* ---------- Übersicht ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 4px 0 30px; }
.hero .display { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 6px 0 8px; }
.hero .sub { color: var(--ink-2); font-size: 15.5px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.stats { gap: 22px; margin-bottom: 6px; }
.stat { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 20px 22px 18px; }
.stat b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: 14px; }
.stat-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); box-shadow: var(--inset-sm); color: var(--gold); flex: none; }
.stat-ico svg { width: 19px; height: 19px; }
.stat.hot .stat-ico { color: var(--warn); }
.stat.bad .stat-ico { color: var(--err); }

.next-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 250px); gap: 22px; overflow-x: auto; padding: 14px 14px 26px; margin: -14px -14px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.next-card { scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); padding: 10px; }
.nc-media { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--bg); box-shadow: var(--inset-sm); display: block; overflow: hidden; }
.nc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-ph { display: grid; place-items: center; height: 100%; font-size: 34px; }
.nc-date { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; padding: 5px 10px 4px; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; box-shadow: var(--raise-xs); }
.nc-date b { font-size: 20px; line-height: 1.1; }
.nc-kind { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; }
.nc-body { padding: 12px 6px 4px; display: flex; flex-direction: column; gap: 6px; }
.nc-when { font-size: 12px; color: var(--muted); font-weight: 500; }
.nc-when em { color: var(--warn); font-style: normal; font-weight: 600; }
.nc-title { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.nc-foot { display: flex; align-items: center; gap: 6px; }
.nc-foot .pf-row { margin-left: auto; }
.empty-cta { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recent-grid a { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: block; padding: 6px; background: var(--bg); box-shadow: var(--raise-sm); transition: box-shadow .2s; }
.recent-grid a:hover { box-shadow: var(--raise-xs); }
.recent-grid img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 13px; }
.recent-grid span { position: absolute; left: 12px; bottom: 12px; padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.recent-grid .pf-tiktok { color: #111; }
.brand-card h3 { display: flex; align-items: center; gap: 10px; }
.bc-mark { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg); box-shadow: var(--inset-sm); color: var(--c); font-size: 14px; font-weight: 700; }
.chip { box-shadow: none; }

/* ---------- Schreiben-Animation ---------- */
.gen { text-align: center; padding: 34px 26px 28px; }
.gen-orb { position: relative; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; }
.gen-orb i { position: absolute; border-radius: 50%; }
.gen-orb i:nth-child(1) { inset: 0; background: var(--bg); box-shadow: var(--raise); }
.gen-orb i:nth-child(2) { inset: 16px; background: var(--bg); box-shadow: var(--inset-sm); }
.gen-orb i:nth-child(3) { inset: 34px; background: var(--gold); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.6); opacity: .6; } }
.gen-title { justify-content: center; font-size: 20px !important; margin-bottom: 4px; }
.dots i { font-style: normal; animation: blink 1.4s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .15; } 40% { opacity: 1; } }
.steps { list-style: none; padding: 0; margin: 24px auto 0; max-width: 300px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: var(--muted); font-weight: 500; transition: box-shadow .3s, color .3s; }
.st-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: var(--raise-xs); font-size: 12px; font-weight: 700; flex: none; }
.steps li.done { color: var(--ink-2); }
.steps li.done .st-dot { box-shadow: var(--inset-sm); color: var(--ok); }
.steps li.now { color: var(--ink); box-shadow: var(--inset-sm); }
.steps li.now .st-dot { border: 2px solid var(--gold); border-top-color: transparent; box-shadow: none; animation: spin 1s linear infinite; color: transparent; }

/* ---------- Handy-Vorschau ---------- */
.preview-card { display: flex; flex-direction: column; }
#pv { display: grid; place-items: center; margin-top: 16px; }
.phone { position: relative; width: min(290px, 100%); aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 11px; background: var(--bg); box-shadow: var(--raise); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; color: #111; font-size: 12.5px; line-height: 1.4; box-shadow: 0 0 0 3px #1c1c1e; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 82px; height: 22px; border-radius: 20px; background: #000; z-index: 5; }
.phone-screen > div { height: 100%; }
.pv-media { position: relative; background: #111; overflow: hidden; }
.pv-media img, .pv-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.pv-media.r45 { aspect-ratio: 4 / 5; }
.pv-media.full { position: absolute; inset: 0; }
.pv-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #333, #111); }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #111; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; }
.pv-count { position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 600; }
.pv-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 12px; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e1306c; }
.pv-tag { color: #00376b; }
.pv-text { overflow: auto; scrollbar-width: none; }
.pv-ig { display: flex; flex-direction: column; overflow: auto; scrollbar-width: none; }
.pv-ig > *, .pv-pin > * { flex: none; }
.pv-bar { display: flex; justify-content: space-between; align-items: center; padding: 46px 14px 8px; }
.pv-logo { font-family: Georgia, serif; font-style: italic; font-size: 21px; }
.pv-bar span:last-child, .pv-acts span { display: inline-flex; gap: 12px; }
.pv-ig svg, .pv-pin svg { width: 21px; height: 21px; }
.pv-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.pv-head .pv-more { margin-left: auto; font-weight: 700; }
.pv-acts { display: flex; justify-content: space-between; padding: 10px 12px 6px; }
.pv-ig .pv-text { padding: 0 12px 20px; overflow: visible; }
.pv-cap { white-space: pre-wrap; word-break: break-word; }
.pv-vert { position: relative; background: #000; color: #fff; }
.pv-vert::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.pv-side { position: absolute; right: 10px; bottom: 120px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pv-side .pv-av { box-shadow: 0 0 0 2px #fff; }
.pv-side svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.pv-text.over { position: absolute; left: 12px; right: 56px; bottom: 22px; z-index: 2; max-height: 42%; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.pv-text.over .pv-cap { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.pv-text.over .pv-tag { color: #fff; font-weight: 700; }
.pv-ttl { font-weight: 700; margin-top: 4px; }
.pv-chan { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-weight: 600; }
.pv-chan i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.pv-chan em { font-style: normal; background: #fff; color: #111; padding: 3px 9px; border-radius: 999px; font-size: 11px; margin-left: 4px; text-shadow: none; }
.pv-badge { position: absolute; left: 14px; top: 48px; z-index: 2; font-weight: 700; font-size: 14px; }
.pv-pin { padding: 44px 10px 14px; overflow: auto; scrollbar-width: none; display: flex; flex-direction: column; }
.pv-media.pin { border-radius: 22px; aspect-ratio: 2 / 3; }
.pv-pin-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; }
.pv-pin-row span:first-child { display: inline-flex; gap: 14px; }
.pv-save { background: #e60023; color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.pv-pin .pv-ttl { font-size: 15px; }
.pv-pin .pv-cap { color: #444; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pv-pin .pv-chan i { width: 26px; height: 26px; }
.media-strip button { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--bg); border: 0; padding: 4px; cursor: pointer; box-shadow: var(--raise-xs); }
.media-strip button.is-on { box-shadow: var(--inset-sm); }
.media-strip button img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 9px; }

/* Post-Ansicht */
.tabs { border-bottom: 0; gap: 8px; padding: 6px; margin: 0 0 20px; border-radius: 16px; box-shadow: var(--inset-sm); }
.tabs button { border: 0; border-radius: 11px; padding: 9px 12px; margin: 0; }
.tabs button.is-active { box-shadow: var(--raise-xs); background: var(--bg); }
.revise { background: var(--bg); border: 0; box-shadow: var(--inset-sm); border-radius: 18px; }
.results li, .history li { background: var(--bg); border: 0; box-shadow: var(--inset-sm); border-radius: 14px; }
.override { border-radius: 14px; }

/* ---------- Planer ---------- */
.cal-head { gap: 12px; margin-bottom: 18px; }
.cal-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; min-width: 0; padding: 0 6px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--bg); box-shadow: var(--inset-sm); }
.seg a { padding: 6px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13px; color: var(--muted); transition: box-shadow .2s, color .2s; }
.seg a.is-on { color: var(--ink); box-shadow: var(--raise-xs); }
.cal { background: transparent; border: 0; box-shadow: none; gap: 10px; overflow: visible; border-radius: 0; }
.cal .dow { background: transparent; text-align: center; padding: 0 0 2px; }
.cal .day { background: var(--bg); border-radius: 16px; box-shadow: var(--raise-sm); padding: 8px; transition: box-shadow .2s; }
.cal .day[data-drop]:hover { background: var(--bg); box-shadow: var(--raise-xs); }
.cal .day.other { background: transparent; box-shadow: none; min-height: 0; }
.cal .day.past { background: var(--bg); box-shadow: none; opacity: .6; }
.cal .day.today { background: var(--bg); box-shadow: var(--inset-sm); }
.cal .day.today .d { background: var(--gold); color: #1f1f21; }
.cal .day.drop-ok { background: var(--bg); box-shadow: var(--inset-sm), 0 0 0 2px var(--gold); }
.cal.month .day { min-height: 118px; }
.cal .pill { background: var(--bg); border: 0; border-left: 3px solid var(--c, var(--gold)); border-radius: 9px; box-shadow: var(--raise-xs); }
.cal .pill:hover { border-color: var(--c, var(--gold)); box-shadow: var(--inset-sm); }
.pill.ok { background: var(--bg); color: var(--ok); }
.pill.err { background: var(--bg); color: var(--err); }
.pill.draft { border: 0; border-left: 3px dashed var(--c, var(--gold)); opacity: .8; }
.cal.month .pill img { width: 24px; height: 24px; border-radius: 6px; }
.cal .day .day-add { border: 0; box-shadow: var(--raise-xs); }
.cal .day .day-add:hover { box-shadow: var(--inset-sm); color: var(--ink); }
.drafts .pill { background: var(--bg); border: 0; box-shadow: var(--raise-xs); border-left: 3px solid var(--c, var(--gold)); border-radius: 10px; }
.legend i { border: 0; box-shadow: var(--raise-xs); }
.cal.week .day { min-height: 460px; padding: 10px 8px; gap: 10px; }
.cal .wd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.cal .wd .d { width: 34px; height: 34px; font-size: 15px; letter-spacing: 0; }
.wk-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 18px 0; opacity: .7; }
.wcard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; text-decoration: none; padding: 6px; box-shadow: var(--raise-xs); }
.wcard[draggable=true] { cursor: grab; }
.wcard.draft { opacity: .85; }
.wc-media { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--bg); box-shadow: var(--inset-sm); display: block; }
.wc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-body { padding: 8px 4px 2px; display: flex; flex-direction: column; gap: 5px; border-left: 3px solid var(--c); padding-left: 7px; margin-top: 6px; }
.wc-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 13px; }
.wc-top .chip { font-size: 10px; padding: 1px 6px; }
.wc-top .chip::before { display: none; }
.wc-title { font-size: 12px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal.week .day-add { align-self: stretch; text-align: center; padding: 6px; }
@media (max-width: 1100px) { .cal.week .wc-top .chip { display: none; } }

/* Pop-up, Toast, Anmeldung */
.modal { border-radius: 26px; box-shadow: var(--raise), 0 30px 80px -30px rgba(0, 0, 0, .4); }
.modal-bg { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.modal-ico { background: var(--bg) !important; box-shadow: var(--inset-sm); }
.toast { border-radius: 14px; }
.login-card { border-radius: 26px; padding: 40px 32px; }
.login-mark { border-radius: 50%; box-shadow: var(--raise-sm); }

@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .main { min-width: 0; }
  .side { position: sticky; top: 0; z-index: 50; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px 12px; height: auto; box-shadow: 0 6px 14px -10px var(--dark); }
  .side .brand { padding: 0; }
  .side > .btn-primary { width: auto; margin-left: auto; padding: 8px 14px; }
  .side-nav { order: 3; flex-direction: row; width: 100%; overflow-x: auto; margin: 0; padding: 4px; scrollbar-width: none; }
  .side-nav a { flex: none; padding: 7px 10px; }
  .side-title, #side-list, .side-add:not(#logout) { display: none; }
  #logout { margin-top: 0 !important; order: 2; }
  .cal.week { display: grid; grid-template-columns: 1fr; }
  .cal.week .day { min-height: 0; padding: 10px 12px; }
  .cal.week .wd { flex-direction: row; justify-content: flex-start; gap: 8px; }
  .cal.week .wd .d { width: auto; height: auto; padding: 2px 6px; border-radius: 8px; }
  .cal.week .wcard { flex-direction: row; gap: 8px; }
  .cal.week .wc-media { width: 76px; height: 76px; flex: none; aspect-ratio: auto; }
  .cal.week .wc-body { flex: 1; min-width: 0; margin-top: 0; }
  .cal.week .day-add { opacity: .8; }
  .cal.week .wk-empty { display: none; }
  .cal-head h2 { font-size: 22px; flex: 1 1 100%; order: -1; padding: 0; }
  .page-head h1 { font-size: 28px; }
  .stat b { font-size: 28px; }
  .stats { gap: 14px; }
  .next-strip { grid-auto-columns: 78%; }
}

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

/* ---------- Farbverlauf-Thema (helles Grau, schwarze Schrift, weicher Verlauf) ---------- */
/* Großer, weicher Farbfleck hinter allem */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: min(860px, 70vw); aspect-ratio: 1.2; right: -8vw; top: -14vh;
  background:
    radial-gradient(closest-side at 34% 34%, #3d9aa1, transparent 85%),
    radial-gradient(closest-side at 46% 56%, #16354f, transparent 85%),
    radial-gradient(closest-side at 58% 66%, #2a1020, transparent 80%),
    radial-gradient(closest-side at 72% 60%, #9b3046, transparent 85%),
    radial-gradient(closest-side at 84% 44%, #d9a3a8, transparent 80%);
  filter: blur(48px); opacity: .9; border-radius: 50%;
}
body { background: var(--bg); isolation: isolate; }
.side { box-shadow: 1px 0 0 var(--line); }

/* Schrift: schwarz, groß, mit Kontur-Zeile wie im Plakat */
.page-head h1 { letter-spacing: -.035em; }
.hero .display { font-size: clamp(44px, 6vw, 76px); letter-spacing: -.045em; font-weight: 600; line-height: .98; }
.hero .outline { display: block; font-style: italic; font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--ink); letter-spacing: -.03em; }
.display em { color: inherit; }

/* Akzente: Schwarz statt Gold, Verlauf nur an kleinen Stellen */
.btn-primary, .btn-gold, .side .btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover, .btn-gold:hover, .side .btn-primary:hover { background: var(--ink); color: var(--bg); }
.brand-mark rect { fill: var(--ink); }
.brand-mark path, .brand-mark circle { stroke: var(--bg); }
.side-nav a.is-active svg { color: var(--ink); }
.side .badge { background: var(--ink); color: var(--bg); }
.stat-ico { color: var(--ink); }
.stat.hot .stat-ico { color: #9b3046; }
.cal .day.today .d { background: var(--grad); color: #fff; }
.gen-orb i:nth-child(3) { background: var(--grad); }
.switch input:checked { background: var(--grad); }
.check input { accent-color: var(--ink); }
.steps li.now .st-dot { border-color: var(--ink); border-top-color: transparent; }
.drop:hover, .drop.is-over { box-shadow: var(--inset), 0 0 0 1.5px var(--ink); }
input:focus, textarea:focus, select:focus { box-shadow: var(--inset-sm), 0 0 0 1.5px var(--ink); }
:focus-visible { outline-color: var(--ink); }
.nc-date b { letter-spacing: -.03em; }
.cal .day.past { opacity: 1; box-shadow: var(--inset-sm); }
.cal .day.past .d, .cal .day.past .pill { opacity: .55; }

/* Kleines Pop-up unten rechts */
#notes { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.note { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 360px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--bg); color: var(--ink); text-decoration: none; box-shadow: var(--raise), 0 18px 40px -18px rgba(0, 0, 0, .35); cursor: pointer;
  transform: translateX(calc(100% + 40px)); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.25, .35, 1), opacity .3s; }
.note.in { transform: translateX(0); opacity: 1; }
.note.out { transform: translateX(calc(100% + 40px)); opacity: 0; transition: transform .35s ease-in, opacity .35s; }
.note-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; background: var(--grad); }
.note.err .note-ico { background: var(--err); }
.note-tx { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.note-tx span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { #notes { left: 16px; right: 16px; bottom: 16px; align-items: stretch; } .note { max-width: none; } }
