: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;
  --ok-fill: #c4e6cf; /* kräftiger, damit Gepostetes im grauen Kalender auffällt */
  --err-fill: #f2cfca;
  --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, .brand-mark img { width: 28px; height: 28px; display: block; }
.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
   ===================================================================== */
.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: block; line-height: 1.5; }
.post-item .s .brand-dot { vertical-align: 1px; }
.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: minmax(0, 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; }
}
@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); }
.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; }
.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 .pf-row { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); 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; }
/* Der aktuelle Tag sieht aus wie die kommenden Tage – nur die Tageszahl ist farbig markiert (Wunsch des Nutzers). */
.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(--ok-fill); color: var(--ok); }
.pill.err { background: var(--err-fill); 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; }
/* Gepostet = ganze Karte grün, Problem = rot */
.wcard.ok { background: var(--ok-fill); }
.wcard.err { background: var(--err-fill); }
.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; flex-wrap: wrap; 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 { box-shadow: var(--raise-sm); }
.login-mark > * { width: 100%; height: 100%; display: block; }

@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); }
.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; } }

/* Handy: Monatskalender als kleine Kästchen statt Liste; Termine als kurze Zeit-Leiste in Firmenfarbe */
@media (max-width: 760px) {
  .cal.month { display: grid; gap: 5px; }
  .cal.month .dow { font-size: 10px; letter-spacing: .04em; padding: 0 0 2px; }
  .cal.month .day { min-height: 58px; padding: 4px 3px; border-radius: 11px; gap: 3px; align-items: stretch; }
  .cal.month .d { width: 20px; height: 20px; font-size: 11px; align-self: center; }
  .cal.month .day-add { display: none; }
  .cal.month .pill { padding: 1px 0; justify-content: center; border-left: 3px solid var(--c, var(--gold)); border-radius: 5px; box-shadow: none; color: var(--ink); font-size: 9.5px; font-weight: 600; }
  .cal.month .pill.ok { background: var(--ok-fill); color: var(--ok); }
  .cal.month .pill.err { background: var(--err-fill); color: var(--err); }
  .cal.month .pill.draft { border-left-style: dashed; opacity: .7; }
  .cal.month .pill .tx, .cal.month .pill img { display: none; }
  .agenda { margin-top: 16px; }
}

@media (max-width: 760px) {
  .recent-grid { gap: 10px; }
  .recent-grid a { border-radius: 14px; padding: 4px; }
  .recent-grid img { border-radius: 10px; }
  .recent-grid .pf-row { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 5px; gap: 3px; }
  .recent-grid .pf-row .pf-ico { width: 11px; height: 11px; }
}
@media (hover: none) { .no-touch { display: none; } }
@media (max-width: 760px) {
  .post-item .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .post-item .chip { font-size: 11px; padding: 3px 8px; }
}
@media (max-width: 760px) {
  .form-actions { margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -10px 18px -14px var(--dark); }
  .form-actions > * { flex: 1; justify-content: center; text-align: center; }
  .notice { flex-direction: column; gap: 8px; }
}
@media (max-width: 1100px) { .post-h1 { font-size: 28px; line-height: 1.2; } }
@media (max-width: 760px) { .post-h1 { font-size: 22px; line-height: 1.25; } }
@media (max-width: 760px) {
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn-danger { order: 3; flex-basis: 100%; margin: 0; padding: 4px; min-height: 0; }
}
/* Tablet: Farbnebel kleiner und weiter in die Ecke, damit Text darüber lesbar bleibt */
@media (max-width: 1200px) and (min-width: 761px) {
  body::before { width: 46vw; right: -16vw; top: -16vh; opacity: .7; }
}
@media (max-width: 760px) {
  .side .brand { flex: 1 1 0; min-width: 0; }
  .side .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side > .btn-primary { margin-left: 0; }
}
.time24 { display: inline-flex; align-items: center; gap: 4px; }
.time24 select { width: auto; padding-right: 30px; font-variant-numeric: tabular-nums; }
.time24 b { font-weight: 600; }
.pv-link { display: inline-block; font-size: 11px; font-weight: 600; color: #111; background: #efefef; border-radius: 999px; padding: 3px 9px; margin-bottom: 6px; }
.pf-facebook { color: #0866ff; }
/* Facebook-Vorschau: Text über dem Bild, blaue Wortmarke */
.pv-fb .pv-fb-logo { color: #0866ff; font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
.pv-fb .pv-av { box-shadow: none; width: 32px; height: 32px; }
.pv-fb-who { display: flex; flex-direction: column; line-height: 1.2; }
.pv-fb-who small { font-size: 10.5px; color: #65676b; }
.pv-fb .pv-text { padding: 0 12px 10px; }
.pv-url { color: #0866ff; word-break: break-all; }
.pv-fb-acts { display: flex; justify-content: space-around; padding: 10px 6px 18px; font-size: 11.5px; font-weight: 600; color: #65676b; border-top: 1px solid #e4e6eb; margin-top: 8px; }

/* ---------- Kooperationen ---------- */
.coop { display: flex; flex-direction: column; gap: 12px; }
.coop-body { display: flex; flex-direction: column; gap: 10px; }
.coop-body[hidden] { display: none; }
.coop-seg { flex-wrap: wrap; align-self: flex-start; }
.coop-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; transition: box-shadow .2s, color .2s; }
.coop-seg button.is-on { color: var(--ink); box-shadow: var(--raise-xs); }
.coop-badge { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #ece4f6; color: #5a3c8c; white-space: nowrap; }
.wc-body .coop-badge { align-self: flex-start; font-size: 10px; padding: 1px 6px; }
.pill-coop { flex: none; margin-left: auto; font-style: normal; font-size: 9px; font-weight: 800; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: #5a3c8c; color: #fff; }
.coop-box { border: 1.5px solid #c9b6e6; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: #5a3c8c; color: #fff; }

/* Feste Meldung unten rechts – bleibt, bis alles erledigt ist */
#coop-dock { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(380px, calc(100vw - 32px)); background: var(--bg); border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(30, 20, 50, .45), var(--raise-sm); border: 1.5px solid #c9b6e6; overflow: hidden; }
#coop-dock[hidden] { display: none; }
.coop-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.coop-head small { display: block; font-size: 12px; color: var(--muted); }
.coop-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; background: #5a3c8c; animation: coop-pulse 2.4s ease-in-out infinite; }
@keyframes coop-pulse { 50% { box-shadow: 0 0 0 7px rgba(90, 60, 140, .15); } }
@media (prefers-reduced-motion: reduce) { .coop-ico { animation: none; } }
.coop-chev { color: var(--muted); }
.coop-list { display: none; max-height: min(60vh, 460px); overflow: auto; padding: 0 14px 14px; border-top: 1px solid var(--line); }
#coop-dock.open .coop-list { display: block; }
.coop-item { display: flex; gap: 12px; padding-top: 14px; }
.coop-pic { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--line); }
.coop-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coop-t { display: block; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coop-item .grow { min-width: 0; }
.coop-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.coop-links .btn { gap: 5px; }
.coop-links .pf-ico { width: 14px; height: 14px; }
body.has-coop #notes { bottom: 96px; }
@media (max-width: 760px) {
  #coop-dock { right: 16px; left: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
  body.has-coop .main { padding-bottom: 96px; }
  body.has-coop .form-actions { bottom: 84px; }
}

/* Alle Posts: Auswahl-Modus zum Löschen (nur Admin) */
.sel-bar { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--bg); box-shadow: var(--raise-sm); }
.sel-bar[hidden] { display: none; }
#list.selecting > li[data-id] { position: relative; }
#list.selecting > li[data-id] .post-item { padding-left: 46px; cursor: pointer; }
#list.selecting > li[data-id]::before { content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; width: 20px; height: 20px; border-radius: 6px; box-shadow: var(--inset-sm); background: var(--bg); pointer-events: none; }
#list.selecting > li.sel::before { content: "✓"; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; box-shadow: none; }
#list.selecting > li.sel .post-item { box-shadow: var(--inset-sm); }
#list.selecting > li.locked { opacity: .45; }
@media (max-width: 760px) { .sel-bar { top: 118px; } }

/* =====================================================================
   Abo-Version: Verbrauch, verbundene Konten, Kunden, Einrichtung
   ===================================================================== */
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.quota { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-radius: 16px; box-shadow: var(--inset-sm); text-decoration: none; font-size: 12.5px; color: var(--ink-2); }
.quota-top b { color: var(--ink); }
.quota-bar { display: block; height: 6px; border-radius: 999px; background: var(--bg); box-shadow: var(--inset-sm); overflow: hidden; }
.quota-bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold); transition: width .4s var(--ease); }
.quota.near .quota-bar i { background: var(--warn); }
.quota.full .quota-bar i { background: var(--err); }
.quota.inline { box-shadow: none; padding: 0; min-width: 150px; }
.quota.inline.wide { max-width: 420px; font-size: 14px; }
@media (max-width: 760px) {
  .side-foot { margin: 0; order: 2; flex-direction: row; align-items: center; }
  .side-foot .quota { display: none; }
}

/* Verbundene Konten */
.conn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.conn-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; box-shadow: var(--inset-sm); }
.conn-list li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-list li a { text-decoration: none; }
.products.simple .product { grid-template-columns: 1fr 1fr auto; }
@media (max-width: 760px) { .products.simple .product { grid-template-columns: 1fr; } }

/* Kundenliste */
.cust-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cust { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(110px, .8fr) minmax(150px, 1fr) minmax(130px, .9fr) auto; align-items: center; gap: 18px; padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--raise-sm); text-decoration: none; transition: box-shadow .2s; }
.cust:hover { box-shadow: var(--raise-xs); }
.cust > span:not(.chip) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cust-main b, .cust-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust .chip { justify-self: end; }
.cust-meta .over { color: var(--err); font-weight: 600; }
@media (max-width: 980px) {
  .cust { grid-template-columns: 1fr 1fr; }
  .cust .chip { justify-self: start; }
}
.stats div.stat b { margin-top: 0; }
.cred { margin-bottom: 4px; }

/* Einrichtung beim ersten Anmelden */
.ob { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 12px 0; }
.ob-card { width: min(680px, 100%); border-radius: 26px; padding: 36px 34px 28px; background: var(--bg); box-shadow: var(--raise); display: flex; flex-direction: column; gap: 22px; }
.ob-head h1 { font-size: 28px; letter-spacing: -.03em; font-weight: 700; margin: 16px 0 6px; }
.ob-steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.ob-steps li { width: 34px; height: 6px; border-radius: 999px; box-shadow: var(--inset-sm); }
.ob-steps li.done { background: var(--gold); box-shadow: none; opacity: .4; }
.ob-steps li.now { background: var(--gold); box-shadow: none; }
.ob-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ob-card .conn-card { box-shadow: none; padding: 0; background: transparent; border: 0; }
.ob-card .conn-card h2, .ob-card .conn-card .desc { display: none; }
.tone-seg { flex-wrap: wrap; align-self: flex-start; }
.tone-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; transition: box-shadow .2s, color .2s; }
.tone-seg button.is-on { color: var(--ink); box-shadow: var(--raise-xs); }
@media (max-width: 760px) { .ob-card { padding: 26px 20px 22px; } .ob-head h1 { font-size: 24px; } }

/* Anmeldung: Der Hinweistext im Feld („E-Mail", „Passwort") verschwindet, sobald man hineinklickt */
.login-card input::placeholder { transition: opacity .15s; }
.login-card input:focus::placeholder { opacity: 0; }

/* Testmodus: Zugangsdaten des Testkunden unter der Anmeldung */
.test-box { margin-top: 6px; padding: 14px 16px; border-radius: 16px; box-shadow: var(--inset-sm); text-align: left; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.test-box b { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.test-box code { font-family: var(--mono); font-size: 13px; user-select: all; }
.test-box .btn { align-self: flex-start; margin-top: 4px; }

/* =====================================================================
   Postelle · Farbwelt 17 (vom Nutzer gewählt am 16.11.2026)
   Ein heller, einfarbiger Grund, weiße Flächen, dunkle Schrift.
   Der Verlauf Flieder → Rosa → Pfirsich sitzt nur im Logo, in den Hauptknöpfen und an kleinen Stellen.
   Dieser Block überschreibt das ältere graue Aussehen weiter oben.
   ===================================================================== */
:root {
  --bg: #FAF7FF;
  --panel: #FFFFFF;
  --panel-2: #F4EFFD;
  --ink: #1E1A2B;
  --ink-2: #4A4560;
  --muted: #8C87A1;
  --line: #EDE7F8;
  --line-2: #DDD4F0;
  --gold: #8B7BF0;
  --gold-soft: #E4DCFF;
  --grad: linear-gradient(120deg, #9C8CFF 0%, #FF9DBB 52%, #FFD08A 100%);
  --info: #5746B8;
  --info-bg: #EFEAFF;
  --dark: rgba(84, 64, 160, .10);
  --light: transparent;
  /* statt „herausgedrückt/hineingedrückt": weiche Schatten und feine Linien */
  --raise: 0 1px 2px rgba(30, 26, 43, .04), 0 10px 30px rgba(84, 64, 160, .08);
  --raise-sm: 0 1px 2px rgba(30, 26, 43, .05), 0 4px 14px rgba(84, 64, 160, .08);
  --raise-xs: 0 1px 2px rgba(30, 26, 43, .07);
  --inset: inset 0 0 0 1.5px var(--line-2);
  --inset-sm: inset 0 0 0 1px var(--line-2);
  --shadow: var(--raise);
}
/* Der Hintergrund ist eine einzige Farbe – kein Farbnebel mehr */
body::before { display: none; }
body { background: var(--bg); }
::selection { background: #E4DCFF; }

/* Flächen: weiß mit weichem Schatten */
.card, fieldset, .stat, .brand-card, .table-wrap, .login-card, .post-item, .next-card, .modal, .wcard, .ob-card, .cust { background: var(--panel); box-shadow: var(--raise-sm); }
.post-item:hover, .stat:hover, .brand-card:hover, .next-card:hover, .wcard:hover, .cust:hover { box-shadow: var(--raise); }
.post-item:active, .stat:active, .next-card:active, .wcard:active { box-shadow: var(--raise-xs); }
.cell.light, .light { background: var(--panel); }

/* Knöpfe: weiß mit feiner Linie; der Hauptknopf trägt den Verlauf */
.btn { background: var(--panel); box-shadow: var(--inset-sm), var(--raise-xs); }
.btn:hover { box-shadow: inset 0 0 0 1px var(--gold), var(--raise-xs); }
.btn:active { box-shadow: inset 0 0 0 1px var(--gold); }
.btn-primary, .btn-gold, .side .btn-primary { background: var(--grad); color: var(--ink); box-shadow: 0 6px 18px rgba(156, 140, 255, .28); }
.btn-primary:hover, .btn-gold:hover, .side .btn-primary:hover { background: var(--grad); color: var(--ink); box-shadow: 0 8px 22px rgba(156, 140, 255, .38); filter: saturate(1.08); }
.btn-primary:active, .btn-gold:active { box-shadow: 0 2px 8px rgba(156, 140, 255, .3); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--panel-2); box-shadow: none; }
.btn[disabled] { box-shadow: var(--inset-sm); opacity: .55; filter: grayscale(.4); }

/* Eingaben: weiß mit feiner Linie, beim Anklicken Flieder */
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(--panel); box-shadow: var(--inset-sm); }
input:focus, textarea:focus, select:focus { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px rgba(156, 140, 255, .18); outline: none; }
.drop { background: var(--panel-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.drop:hover, .drop.is-over { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--gold); }
.drop-ico { background: var(--panel); }
.check { background: var(--panel); box-shadow: var(--inset-sm); }
.check:has(input:checked) { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
.check input { accent-color: var(--gold); }
.switch input { background: var(--line-2); box-shadow: none; }
.switch input::after { background: #fff; box-shadow: var(--raise-xs); }
.switch input:checked { background: var(--grad); }
.seg { background: var(--panel-2); box-shadow: none; }
.seg a.is-on, .coop-seg button.is-on, .tone-seg button.is-on { background: var(--panel); box-shadow: var(--raise-xs); }

/* Seitenleiste */
.side { background: var(--bg); box-shadow: 1px 0 0 var(--line); }
.side-nav a:hover, .side-list a:hover { background: var(--panel-2); box-shadow: none; }
.side-nav a.is-active, .side-list a.is-active { background: var(--panel); box-shadow: var(--raise-xs); }
.side-nav a.is-active svg { color: var(--gold); }
.side .badge { background: var(--grad); color: var(--ink); }
.quota { background: var(--panel); box-shadow: var(--raise-xs); }
.quota.inline { background: transparent; box-shadow: none; }
.quota-bar { background: var(--panel-2); box-shadow: none; }
.quota-bar i { background: var(--grad); }

/* Kleine Stellen mit Verlauf: dunkle Schrift, weil der Verlauf hell ist */
.cal .day.today .d { background: var(--grad); color: var(--ink); }
.note-ico { background: var(--grad); color: var(--ink); }
.stat-ico { background: var(--panel-2); box-shadow: none; color: var(--ink); }
.stat.hot .stat-ico { color: #C2416C; }
.hero .outline { -webkit-text-stroke: 1px var(--ink); }
.conn-list li { background: var(--panel-2); box-shadow: none; }
.test-box { background: var(--panel-2); box-shadow: none; }
.icons, .cell.icons { background: var(--panel-2); }
.ob-steps li { background: var(--line-2); box-shadow: none; }
.ob-steps li.done, .ob-steps li.now { background: var(--grad); opacity: 1; }
.ob-steps li.done { opacity: .5; }

/* Das Logo: zwei Karten + „Post" fett, „elle" dünn */
.brand { gap: 9px; padding: 2px 6px 10px; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-word { font-size: 21px; letter-spacing: -.03em; line-height: 1; }
.brand-word b { font-weight: 800; }
.brand-word span { font-weight: 300; }
.login-mark { width: 54px; height: 54px; box-shadow: none; border-radius: 0; }
.login-card h1 .brand-word { font-size: 30px; }

/* =====================================================================
   Öffentliche Seite: Startseite, Ausprobieren ohne Konto, Konto anlegen, Pakete
   Gleiche Farbwelt 17: ein einfarbiger Grund, weiße Karten, der Verlauf nur an kleinen Stellen.
   ===================================================================== */
body.login-mode .main:has(.lp) { padding-top: 20px; padding-bottom: 36px; margin: 0 auto; }
.lp { width: min(1120px, 100%); margin: 0 auto; }
.lp a:not(.btn) { text-underline-offset: 3px; }
.lp-err { color: var(--err); min-height: 1.2em; }
.lp-note { text-align: center; }

/* Kopfzeile */
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lp-logo-mark svg { width: 34px; height: 34px; display: block; }
.lp-logo .brand-word { font-size: 24px; }
.lp-top nav { display: flex; align-items: center; gap: 4px; }
.lp-top nav a:not(.btn) { padding: 9px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.lp-top nav a:not(.btn):hover { background: var(--panel-2); color: var(--ink); }
.lp-top nav .btn { margin-left: 8px; }
.lp-short { display: none; }

.lp-grad { background: var(--grad) no-repeat 0 90% / 100% .2em; padding: 0 .04em .02em; margin: 0 -.04em; border-radius: 4px; }
.lp-lead { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: var(--ink-2); margin-top: 24px; max-width: 29em; }
.lp-ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 11px; font-weight: 500; font-size: 15.5px; }
.lp-ticks li { display: flex; align-items: center; gap: 11px; }
.lp-ticks li::before, .plan li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235746B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.4 2.7 2.7L14.2 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Die Karte zum Ausprobieren */
.lp-try { background: var(--panel); border-radius: 28px; padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--raise); display: flex; flex-direction: column; gap: 16px; }
.lp-try h2 { font-size: 22px; letter-spacing: -.025em; font-weight: 700; line-height: 1.2; }
.lp-try form { display: flex; flex-direction: column; gap: 12px; }
.lp-drop { padding: 30px 18px; min-height: 196px; border-radius: 20px; }
.lp-drop.has-file { padding: 20px 18px; }
.lp-drop .drop-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-prev { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; flex: none; background: var(--panel-2); display: grid; place-items: center; }
.lp-prev.big { width: 104px; height: 104px; border-radius: 20px; background: var(--panel); margin-bottom: 6px; }
.lp-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-thumb-ph svg { width: 40px; height: 40px; display: block; }

.lp-writing { display: flex; gap: 16px; align-items: center; }
.lp-writing p { margin-top: 4px; }
.lp-try .steps { margin: 0; max-width: none; }
.lp-try .steps li.now { background: var(--panel-2); box-shadow: none; }
.lp-try .st-dot { background: var(--panel-2); box-shadow: none; }
.lp-try .steps li.done .st-dot { background: var(--gold-soft); color: #5746B8; box-shadow: none; }
.lp-try .steps li.now .st-dot { background: transparent; border-color: var(--gold); border-top-color: transparent; }
.dots i { font-style: normal; animation: blink 1.2s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

/* Die Schranke: erste Zeile lesbar, darunter ein Platzhalter-Text, weich verschwommen und nach unten ausgeblendet.
   Der Weichzeichner liegt auf dem Absatz; abgeschnitten wird erst am Kartenrand (16 px weiter außen) und unten
   deckt ein Farbverlauf in der Kartenfarbe ab – so entsteht nirgends eine harte Kante. */
.lp-gate { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 0; border-radius: 20px; background: var(--panel-2); overflow: hidden; }
.lp-gate-top { display: flex; gap: 14px; align-items: flex-start; }
.lp-gate-text { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lp-teaser { font-weight: 700; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.lp-blur { position: relative; margin: 0 -16px; padding: 16px 16px 0; height: 150px; overflow: hidden; user-select: none; pointer-events: none; }
.lp-blur p { color: var(--ink); opacity: .8; font-size: 14px; line-height: 1.6; filter: blur(4.5px); }
.lp-blur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(244, 239, 253, 0) 0%, rgba(244, 239, 253, 0) 28%, rgba(244, 239, 253, .6) 66%, var(--panel-2) 97%); }
.lp-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--panel); box-shadow: var(--raise-sm); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.lp-lock svg { width: 17px; height: 17px; flex: none; }
.lp-signup { display: flex; flex-direction: column; gap: 10px; }
.lp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); text-align: left; line-height: 1.45; cursor: pointer; }
.lp-check input { margin: 2px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--gold); }

/* Abschnitte */
.lp-sec { padding: clamp(40px, 6vw, 76px) 0; }
.lp-sec > h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.04em; font-weight: 800; text-align: center; line-height: 1.1; }
.lp-sec-sub { text-align: center; color: var(--muted); margin: 10px auto 0; font-size: 16px; max-width: 38em; }
.lp-steps, .lp-examples, .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.lp-steps > div { background: var(--panel); border-radius: 24px; padding: 26px; box-shadow: var(--raise-sm); }
.lp-steps b { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: 16px; }
.lp-steps h3 { font-size: 19px; margin: 18px 0 6px; letter-spacing: -.02em; }
.lp-steps p { color: var(--ink-2); line-height: 1.55; }

/* Beispiele: der Text steht im Mittelpunkt */
.lp-examples { align-items: start; }
.lp-ex { background: var(--panel); border-radius: 24px; padding: 22px; box-shadow: var(--raise-sm); display: flex; flex-direction: column; gap: 14px; }
.lp-ex-who { display: flex; align-items: center; gap: 12px; }
.lp-ex-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--ink); }
.lp-ex-ico svg { width: 22px; height: 22px; }
.lp-ex-ico.t1 { background: #FFEBCB; }
.lp-ex-ico.t2 { background: #FFE0EA; }
.lp-ex-ico.t3 { background: #E4DCFF; }
.lp-ex-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lp-ex-name span { font-size: 12.5px; color: var(--muted); }
.lp-ex-text { color: var(--ink-2); line-height: 1.55; font-size: 14.5px; }
.lp-ex-tags { color: #6B5BD6; font-size: 13.5px; font-weight: 500; }

/* Pakete */
.plan-switch { display: flex; width: fit-content; margin: 28px auto 0; }
.plan-switch button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 16px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: box-shadow .2s, color .2s, background .2s; }
.plan-switch button.is-on { background: var(--panel); color: var(--ink); box-shadow: var(--raise-xs); }
.plan-switch em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: #5746B8; }
.plans { margin-top: 30px; align-items: stretch; }
.plan { position: relative; background: var(--panel); border-radius: 26px; padding: 30px 26px 26px; box-shadow: var(--raise-sm); display: flex; flex-direction: column; }
.plan.popular { box-shadow: var(--raise); }
.plan.popular::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-tag { position: absolute; top: -13px; left: 26px; padding: 4px 13px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.plan h3 { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; min-height: 46px; }
.plan-price b { font-size: 42px; letter-spacing: -.045em; font-weight: 800; line-height: 1; }
.plan-price b.word { font-size: 30px; letter-spacing: -.035em; }
.plan-price span { color: var(--muted); font-weight: 500; }
.plan-sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; min-height: 2.9em; line-height: 1.45; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 14px 0 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); line-height: 1.4; }
.plan .btn[aria-disabled] { opacity: .6; cursor: default; box-shadow: var(--inset-sm); }
.plans-app .plan-switch { margin: 0; }
.plans-app .plans { margin-top: 26px; }

/* Fußzeile, Anmelden, Rechtstexte */
.lp-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding-top: 26px; margin-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.lp-foot nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.lp-foot a { color: var(--muted); text-decoration: none; }
.lp-foot a:hover { color: var(--ink); }
.lp .login { min-height: calc(100vh - 250px); padding: 36px 0; }
.lp .login-card { width: min(400px, 100%); }
.lp .login-card .lp-check { margin: 2px 0; }
.lp-legal { max-width: 720px; margin: 0 auto; }
.lp-legal > h2 { text-align: left; }
.lp-legal .card { margin: 24px 0 20px; }

/* In der App: Test-Paket und Hinweis zur Einrichtung */
.quota-cta { font-weight: 600; color: var(--ink); }
.quota.inline .quota-cta { display: none; }
.setup-hint { align-items: center; }
.setup-hint .btn { flex: none; }

@media (max-width: 940px) {
  .lp-steps, .lp-examples, .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .plans { gap: 26px; }
  .plan-sub { min-height: 0; }
}
@media (max-width: 560px) {
  .lp-nav-plans, .lp-long { display: none; }
  .lp-short { display: inline; }
  .lp-top nav a:not(.btn) { padding: 9px 10px; }
  .lp-top nav .btn { margin-left: 4px; padding: 9px 13px; }
  .lp-logo .brand-word { font-size: 21px; }
  .lp-logo-mark svg { width: 30px; height: 30px; }
  .lp-foot { flex-direction: column; align-items: flex-start; }
}
.login-card .lp-err:empty { display: none; }
.count-hint { color: var(--ink-2); }
.count-hint:empty { display: none; }

/* Konto-Seiten: Kündigen, Widerrufen, Passwort vergessen, E-Mail bestätigen */
.lp-form { max-width: 640px; margin: 0 auto; }
.lp-form > h2, .lp-form > .lp-sec-sub { text-align: left; margin-left: 0; }
.lp-form > .lp-sec-sub { margin-top: 12px; max-width: none; line-height: 1.55; }
.lp-form .card { margin-top: 26px; padding: 26px; border-radius: 24px; }
.lp-inapp .lp-sec { padding-top: 0; }
.lp-fields { display: flex; flex-direction: column; gap: 16px; }
.lp-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.lp-fields label .opt { font-weight: 400; color: var(--muted); }
.lp-fields .btn-lg { align-self: flex-start; }
.lp-choice { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; display: flex; flex-direction: column; gap: 8px; }
.lp-choice legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 4px; float: none; }
.lp-choice label { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.lp-choice input[type=radio] { margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.lp-done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lp-receipt { display: flex; flex-direction: column; gap: 16px; }
.lp-receipt table { border-collapse: collapse; width: 100%; }
.lp-receipt th { text-align: left; font-weight: 500; color: var(--muted); padding: 7px 18px 7px 0; vertical-align: top; white-space: nowrap; width: 1%; }
.lp-receipt td { padding: 7px 0; white-space: pre-line; overflow-wrap: anywhere; }
.lp-receipt tr + tr { border-top: 1px solid var(--line); }
.lp-foot-btn { color: var(--ink-2) !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
.side-legal { font-size: 12px; padding-top: 2px; padding-bottom: 2px; }
.verify-hint { align-items: center; }
.verify-hint .btn { flex: none; }
.sec-h { font-size: 18px; letter-spacing: -.02em; margin-bottom: 12px; }
.outbox { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.outbox details { background: var(--panel-2); border-radius: 12px; padding: 10px 14px; }
.outbox summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; cursor: pointer; list-style: none; }
.outbox .no-body summary { cursor: default; }
.outbox pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 var(--font); margin: 12px 0 2px; color: var(--ink-2); }
@media print {
  .side, .lp-top, .lp-foot, .no-print, #toast, #notes { display: none !important; }
  body { background: #fff; }
  .lp-form .card { box-shadow: none; padding: 0; }
}

/* Rechtstexte */
.lp-legal { max-width: 760px; }
.legal-wrap { max-width: 760px; }
.legal { padding: 30px 32px; border-radius: 24px; line-height: 1.6; color: var(--ink-2); }
.legal h2 { font-size: 18px; letter-spacing: -.02em; color: var(--ink); margin: 28px 0 10px; text-align: left; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal b { color: var(--ink); }
.legal mark { background: var(--warn-bg); color: var(--warn); padding: 1px 5px; border-radius: 6px; }
.legal a { overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal { padding: 22px 18px; } }
.lp-form > .lp-note { margin-top: 16px; }
.legal h3 { font-size: 15.5px; color: var(--ink); margin: 20px 0 8px; }
.keep-hint { align-items: center; }
.keep-hint .btn { flex: none; }

/* Leise Hinweise auf Pro für Starter-Kunden */
.pro-tag { display: inline-block; font-size: 10.5px; font-weight: 700; line-height: 1.4; padding: 1px 7px; border-radius: 999px; background: var(--grad); color: var(--ink); margin-left: 6px; vertical-align: 1px; }
.pro-nudge { color: var(--muted); }
.pro-nudge a { color: var(--ink-2); font-weight: 600; }
.quota-forecast { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.quota.inline .quota-forecast { font-size: 13.5px; }

/* „Abo beenden": Angebote und Kündigen stehen gleich gut sichtbar untereinander */
.leave-offers { display: flex; flex-direction: column; gap: 0; }
.leave-offer { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px 0; }
.leave-offer + .leave-offer { border-top: 1px solid var(--line); }
.leave-offer:first-child { padding-top: 0; }
.leave-offer h3 { font-size: 18px; letter-spacing: -.02em; }
.leave-offer p { color: var(--ink-2); line-height: 1.5; margin-bottom: 6px; }

/* Paket verwalten: Kündigen direkt und gut sichtbar; nach der Kündigung das Bleibe-Angebot */
.manage-cancel { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.manage-cancel .desc { margin-bottom: 0; }
.after-cancel { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.after-cancel h3 { font-size: 18px; letter-spacing: -.02em; }
.after-cancel p { color: var(--ink-2); line-height: 1.5; }
.keep-close { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--info); cursor: pointer; padding: 2px 6px; border-radius: 8px; flex: none; }
.keep-close:hover { background: rgba(87, 70, 184, .12); }
.lp-receipt table { min-width: 0; }

/* =====================================================================
   Startseite ganz oben: „Ein Klick. Fünf Plattformen." (vom Nutzer am 16.11.2026 gewählt)
   Ein Video, ein Klick, fünf Plattform-Karten fächern auf und bekommen ihren Haken.
   Die Bühne ist fest gebaut und wird von app.js (bindFanHero) als Ganzes passend vergrößert oder verkleinert.
   ===================================================================== */
.lp-fan { padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); }
.lp-fan-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-fan h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.03; letter-spacing: -.048em; font-weight: 800; }
.lp-fan h1 .lp-grad { white-space: nowrap; }
.lp-fan .lp-lead { max-width: 33em; }
.lp-ticks-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 24px; font-size: 15px; }
/* darunter: links der Fächer, rechts der Kasten zum Ausprobieren (oben ausgerichtet, damit nichts springt, wenn der Kasten wächst) */
.lp-fan-cols { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(30px, 4.4vw, 54px); }
.lp-fan-side { min-width: 0; }
.lp-fan-row { display: flex; justify-content: center; }
.lp-fan-note { text-align: center; margin-top: 18px; }
.lp-fan-cols .lp-try { margin-top: clamp(0px, 2.8vw, 44px); }
.fan-box { flex: none; }
.fan-stage { position: relative; height: 480px; transform-origin: top left; }
.fan-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fan-lines path { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s ease calc(var(--i) * 90ms); }
.fan-stage.is-out .fan-lines path { stroke-dashoffset: 0; }
.fan-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--panel); box-shadow: var(--raise-xs); }
.fan-ico .pf-ico { width: 20px; height: 20px; display: block; }
.fan-ico .pf-tiktok { color: #111; }
.fan-thumb { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
/* Das „Video": das Postelle-Zeichen in Bewegung, Schleife von sechs Sekunden (alle Teile laufen im selben Takt) */
.pv { width: 58%; display: block; overflow: visible; }
.pv-front, .pv-back, .pv-star, .pv-shine { transform-box: fill-box; transform-origin: center; }
.pv-front { animation: pv-front 6s cubic-bezier(.3, 1.2, .5, 1) infinite; }
.pv-back { animation: pv-back 6s cubic-bezier(.3, 1.2, .5, 1) infinite; }
.pv-shine { opacity: 0; animation: pv-shine 6s ease-in-out infinite; }
.pv-star { opacity: 0; animation: pv-star 6s ease-in-out infinite; }
.pv-star.s2 { animation-delay: .22s; }
.pv-star.s3 { animation-delay: .44s; }
@keyframes pv-front {
  0% { transform: translate(11px, -11px) scale(.35); opacity: 0; }
  9% { transform: translate(11px, -11px) scale(1.07); opacity: 1; }
  13%, 18% { transform: translate(11px, -11px) scale(1); opacity: 1; }
  30%, 86% { transform: none; opacity: 1; }
  94% { transform: translate(11px, -11px) scale(1); opacity: 1; }
  100% { transform: translate(11px, -11px) scale(.35); opacity: 0; }
}
@keyframes pv-back {
  0%, 16% { transform: translate(-11px, 11px) scale(.92); opacity: 0; }
  18% { transform: translate(-11px, 11px) scale(.92); opacity: 1; }
  30%, 86% { transform: none; opacity: 1; }
  94% { transform: translate(-11px, 11px) scale(.92); opacity: 1; }
  95%, 100% { transform: translate(-11px, 11px) scale(.92); opacity: 0; }
}
@keyframes pv-shine {
  0%, 36% { transform: translateX(0); opacity: 0; }
  38% { opacity: .55; }
  52% { transform: translateX(112px); opacity: .55; }
  53%, 100% { transform: translateX(112px); opacity: 0; }
}
@keyframes pv-star {
  0%, 44% { transform: scale(0) rotate(-45deg); opacity: 0; }
  52% { transform: scale(1.2) rotate(0deg); opacity: 1; }
  60% { transform: scale(.9) rotate(12deg); opacity: 1; }
  72%, 100% { transform: scale(0) rotate(45deg); opacity: 0; }
}
/* Laufbalken wie bei einem Video */
.fan-vid-bar { position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.fan-vid-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left center; animation: pv-bar 6s linear infinite; }
@keyframes pv-bar { to { transform: scaleX(1); } }
.fan-src { position: absolute; left: 0; top: var(--src-top, 108px); width: var(--src-w, 170px); padding: 12px 12px 14px; border-radius: 22px; background: var(--panel); box-shadow: var(--raise); display: flex; flex-direction: column; gap: 9px; z-index: 2; }
.fan-src b { font-size: 14px; }
.fan-src-lines { display: flex; flex-direction: column; gap: 6px; }
.fan-src-lines i { height: 7px; border-radius: 4px; background: var(--panel-2); }
.fan-src-lines i:last-child { width: 62%; }
.fan-src-btn { align-self: stretch; text-align: center; padding: 9px 0; border-radius: 12px; background: var(--grad); font-weight: 700; font-size: 13.5px; transition: transform .16s ease, filter .16s ease; }
.fan-src-btn.is-press { transform: scale(.93); filter: saturate(1.25) brightness(.96); }
.fan-card { position: absolute; left: var(--x); top: var(--y); width: var(--card-w, 246px); height: 68px; padding: 0 12px; border-radius: 18px; background: var(--panel); box-shadow: var(--raise-sm); display: flex; align-items: center; gap: 11px; opacity: 0; z-index: 1; transform: translate(calc(-1 * var(--x) + 30px), calc(-1 * var(--y) + 200px)) scale(.5); transition: transform .75s cubic-bezier(.2, .85, .25, 1) calc(var(--i) * 90ms), opacity .35s ease calc(var(--i) * 90ms); }
.fan-stage.is-out .fan-card { opacity: 1; transform: rotate(var(--r)); }
.fan-card-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.fan-card-text b { font-size: 14px; }
.fan-card-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan-state { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--panel-2); color: transparent; transition: background .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.fan-state svg { width: 16px; height: 16px; }
.fan-card.is-busy .fan-state { background: transparent; box-shadow: inset 0 0 0 2px var(--line-2); border-top: 2px solid var(--gold); animation: fan-spin .7s linear infinite; }
.fan-card.is-done .fan-state { background: var(--grad); color: var(--ink); transform: scale(1.12); }
@keyframes fan-spin { to { transform: rotate(360deg); } }
@media (max-width: 940px) {
  .lp-fan-cols { grid-template-columns: minmax(0, 1fr); }
  .lp-fan-cols .lp-try { margin-top: 10px; width: min(520px, 100%); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card, .fan-lines path, .fan-state { transition: none; }
  .pv-front, .pv-back, .pv-shine, .pv-star, .fan-vid-bar::after { animation: none; }
}

/* =====================================================================
   Bewegung auf der Startseite (vom Nutzer am 16.11.2026 gewünscht):
   Abschnitte und Karten gleiten weich herein, sobald sie ins Bild kommen; Karten und Knöpfe reagieren auf die Maus.
   Die Klasse „rv" setzt app.js (bindReveal) und nimmt sie danach wieder weg – ohne JavaScript bleibt alles sichtbar.
   ===================================================================== */
/* zügig: rund ein Drittel Sekunde, kleiner Weg */
.lp .rv { opacity: 0; transform: translateY(14px); }
.lp .rv.is-in { opacity: 1; transform: none; transition: opacity .26s ease-out var(--rv-d, 0ms), transform .34s cubic-bezier(.2, .8, .2, 1) var(--rv-d, 0ms); }
@media (hover: hover) {
  .lp-steps > div, .lp-ex, .lp .plan { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
  .lp-steps > div:hover, .lp-ex:hover, .lp .plan:hover { transform: translateY(-4px); box-shadow: var(--raise); }
  .lp .plan.popular:hover { box-shadow: 0 2px 4px rgba(30, 26, 43, .05), 0 16px 40px rgba(84, 64, 160, .14); }
  .lp .btn-primary { transition: transform .18s ease, box-shadow .2s var(--ease), filter .2s; }
  .lp .btn-primary:not([disabled]):hover { transform: translateY(-2px); }
  .lp .btn-primary:not([disabled]):active { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp .rv, .lp .rv.is-in { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Mitlaufender Hinweis am Handy: „2 Posts gratis testen" (vom Nutzer am 16.11.2026 gewünscht).
   Nur auf schmalen Bildschirmen; app.js (bindSticky) blendet ihn ein und aus.
   ===================================================================== */
.lp-sticky { display: none; }
@media (max-width: 760px) {
  .lp-sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 16px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 12px 32px rgba(30, 26, 43, .3); transform: translateY(150%); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, visibility 0s .35s; }
  .lp-sticky.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
  .lp-sticky-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .lp-sticky-text b { font-size: 14.5px; }
  .lp-sticky-text span { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
  .lp-sticky .btn { flex: none; padding: 9px 14px; font-size: 14px; }
  .lp-sticky-x { flex: none; width: 32px; height: 36px; border: 0; background: none; color: rgba(255, 255, 255, .7); font-size: 20px; line-height: 1; cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .lp-sticky, .lp-sticky.is-on { transition: none; } }

/* =====================================================================
   Übersicht: Zahlen-Zeile (vom Nutzer am 16.11.2026 gewählt). Bei „online" stehen die Plattformen mit ihrer Zahl dabei,
   der Verbrauch des Pakets ist ein Ring. Eine Kachel „mit Problemen" gibt es nicht mehr.
   ===================================================================== */
.stat .ring { width: 46px; height: 46px; flex: none; margin: -2px 0 -2px -2px; }
.ring-bg { fill: none; stroke: var(--panel-2); stroke-width: 5; }
.ring-fg { fill: none; stroke: url(#ring-g); stroke-width: 5; stroke-linecap: round; }
.stat b small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.stat-pf { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; }
.stat .stat-pf span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.stat .stat-pf span.zero { color: var(--muted); font-weight: 500; }
.stat-pf .pf-ico { width: 15px; height: 15px; }
.stat-pf span.zero .pf-ico { opacity: .45; }

/* =====================================================================
   Eigene Verbinden-Seite (vom Nutzer am 16.11.2026 gewählt): je Plattform eine Zeile mit Zeichen, Stand und Knopf.
   ===================================================================== */
.conn-rows { gap: 10px; }
.conn-rows li.conn-row { align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 13px 16px; border-radius: 18px; }
.conn-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--panel); box-shadow: var(--raise-xs); display: grid; place-items: center; flex: none; }
.conn-ico .pf-ico { width: 21px; height: 21px; }
.conn-ico .pf-tiktok { color: #111; }
.conn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.conn-text b { font-size: 15.5px; }
.conn-sub { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-sub.ok { color: #1E7A4E; font-weight: 600; }
.conn-sub.warn { color: var(--warn); font-weight: 600; }
.conn-hint { flex: 0 0 100%; box-sizing: border-box; padding-left: 58px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.conn-row .btn, .conn-row .chip { flex: none; }
.conn-foot { margin-top: 14px; gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .conn-rows li.conn-row { gap: 6px 10px; padding: 12px; }
  .conn-ico { width: 38px; height: 38px; border-radius: 12px; }
  .conn-ico .pf-ico { width: 19px; height: 19px; }
  .conn-sub { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  /* „verbunden" steht schon im Text – das Schildchen wäre hier doppelt und nimmt den Platz weg */
  .conn-row .chip { display: none; }
  .conn-row .btn { padding: 9px 13px; font-size: 14px; }
  .conn-hint { padding-left: 0; }
}

/* =====================================================================
   Bestellseite: links die Zusammenfassung, rechts Bezahlen und der Knopf „Zahlungspflichtig bestellen".
   ===================================================================== */
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.order-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.order-price b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.order-price span { color: var(--muted); font-size: 15px; }
.order-rows { margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.order-rows div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.order-rows dt { color: var(--muted); font-size: 13.5px; }
.order-rows dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.order-pay { display: flex; flex-direction: column; gap: 14px; }
.order-pay .notice { margin-bottom: 0; }
.pay-el { min-height: 120px; }
.order-consent { padding: 14px 16px; border-radius: 16px; background: var(--panel-2); font-size: 14px; color: var(--ink); }
.order-consent input { width: 18px; height: 18px; margin-top: 1px; }
.order-total { text-align: center; }
#order-err:empty { display: none; }
.order-done { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 32px; }
.order-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: inline-grid; place-items: center; margin-bottom: 16px; }
.order-ok svg { width: 30px; height: 30px; }
@media (max-width: 900px) { .order { grid-template-columns: minmax(0, 1fr); } }
/* Paketwechsel: der Betrag, der jetzt berechnet wird */
.order-due { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--panel-2); }
.order-due span { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.order-due b { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.order-due small { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }

/* =====================================================================
   Auswahl-Menüs in der Seite (statt der Auswahl vom Betriebssystem) – siehe „Auswahl-Menüs" in app.js
   ===================================================================== */
.dd { position: relative; display: block; min-width: 0; }
.dd.dd-inline { display: inline-block; vertical-align: middle; }
.dd[hidden] { display: none; }
.dd-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; margin: 0; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 14px; background: var(--panel); box-shadow: var(--inset-sm); padding: 11px 16px 11px 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: box-shadow .15s ease; }
.dd-btn:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.dd-btn:focus-visible, .dd-btn.is-open { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px rgba(156, 140, 255, .18); outline: none; }
.dd-btn:disabled { opacity: .55; cursor: not-allowed; }
.dd-label { display: grid; min-width: 0; }
.dd-label > * { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-ghost { visibility: hidden; height: 0; }
.dd-arrow { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .18s ease; }
.dd-btn.is-open .dd-arrow { transform: rotate(180deg); color: var(--ink); }
.dd-list { position: fixed; z-index: 1000; margin: 0; padding: 6px; list-style: none; overflow-y: auto; max-width: calc(100vw - 16px); background: var(--panel); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 14px 40px rgba(84, 64, 160, .18); font-size: 14.5px; animation: dd-in .12s ease-out; }
.dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.dd-list li.is-active { background: var(--panel-2); }
.dd-list li.is-sel { font-weight: 600; }
.dd-list li.is-off { color: var(--muted); cursor: not-allowed; }
.dd-list li svg { width: 17px; height: 17px; flex: none; color: var(--gold); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dd-list { animation: none; } .dd-arrow { transition: none; } }

/* =====================================================================
   Bestellen ohne Seitenleiste: nur das Logo oben, damit nichts ablenkt (Wunsch des Nutzers vom 16.11.2026)
   ===================================================================== */
.focus-top { display: none; }
body.focus-mode:not(.login-mode) .side { display: none; }
body.focus-mode:not(.login-mode) .layout { grid-template-columns: 1fr; }
body.focus-mode:not(.login-mode) .main { max-width: 1080px; margin: 0 auto; }
body.focus-mode:not(.login-mode) .focus-top { display: flex; margin-bottom: 26px; }

/* =====================================================================
   Durchsicht vom 16.11.2026: Kleinigkeiten, die beim Rundgang durch alle Seiten aufgefallen sind
   ===================================================================== */
/* Häkchen und Auswahl-Punkte überall in der Farbe der Seite (vorher an manchen Stellen das Blau des Betriebssystems) */
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }

@media (max-width: 760px) {
  /* Der Kopf wurde bei kurzen Seiten in die Höhe gezogen (das Raster verteilte den freien Platz auf Kopf und Inhalt) */
  body:not(.login-mode):not(.focus-mode) .layout { grid-template-rows: auto minmax(0, 1fr); }
  /* statt der schwarzen Linie aus einem alten Entwurf: eine feine helle */
  .side { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
}
@media (max-width: 520px) {
  /* Menü am Handy: alle Punkte passen nebeneinander (Symbol oben, Wort darunter), nichts ist mehr abgeschnitten */
  .side-nav { padding: 2px 0; gap: 4px; }
  .side-nav a { flex: 1 0 auto; flex-direction: column; gap: 3px; padding: 7px 6px; font-size: 12px; text-align: center; }
}
