:root {
  --paper: #FAFAF7; --paper-2: #F1F1EC; --ink: #0B1221; --ink-2: #3B4456; --ink-3: #5A6375;
  --navy: #0B1221; --navy-800: #1D2951; --signal: #2BD96B; --accent: #0D7A3E;
  --line: #E3E4DE; --line-2: #D5D7D0; --warn: #B45309; --danger: #B91C1C;
  --li-bg: #F4F2EE; --li-text: rgba(0,0,0,.9); --li-muted: rgba(0,0,0,.6);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent); }
.muted { color: var(--ink-3); }
.pad { padding: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--navy); color: #F5F6F8; }
.brand { color: inherit; text-decoration: none; font-weight: 750; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.me { font-size: 13px; color: #A8B0C0; display: flex; gap: 8px; align-items: center; }
.me b { color: #F5F6F8; }
.me .dev { background: var(--warn); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.me select { font: inherit; font-size: 12px; border-radius: 4px; }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 48px; z-index: 9; scrollbar-width: none; }
.tabs a { white-space: nowrap; text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs .n { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 12px; text-align: center; }
.tabs a.on .n { background: var(--signal); color: var(--ink); }

.view { max-width: 1180px; margin: 0 auto; padding: 16px; }

/* Liste */
.list { display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--line-2); box-shadow: 0 1px 6px rgba(11,18,33,.06); }
.thumb { width: 56px; height: 70px; border-radius: 6px; background: var(--paper-2) center/cover no-repeat; }
.card h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.3; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.chip { padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.chip.s-review-autor, .chip.s-review-final { background: #FEF3C7; color: #92400E; }
.chip.s-rework-claude { background: #E0E7FF; color: #3730A3; }
.chip.s-freigegeben { background: #DCFCE7; color: #166534; }
.chip.s-veroeffentlicht { background: var(--ink); color: #fff; }
.chip.s-verworfen { background: #FEE2E2; color: var(--danger); }
.chip.you { background: var(--signal); color: var(--ink); }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 10px; }

/* Detail */
.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 600; }
.detail { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.panel h4 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* LinkedIn-Vorschau */
.li { background: var(--li-bg); padding: 12px; border-radius: 10px; }
.li-post { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); max-width: 555px; margin: 0 auto; color: var(--li-text); font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.li-head { display: flex; gap: 8px; padding: 12px 16px 0; }
.li-head img, .li-head .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--paper-2); }
.li-name { font-weight: 600; font-size: 14px; line-height: 20px; }
.li-sub { font-size: 12px; line-height: 16px; color: var(--li-muted); }
.li-text { position: relative; padding: 8px 16px 4px; font-size: 14px; line-height: 20px; white-space: pre-wrap; word-wrap: break-word; }
.li-text.clamped { max-height: calc(3 * 20px + 12px); overflow: hidden; }
.li-cut { position: absolute; left: 0; right: 0; top: calc(8px + 3 * 20px); border-top: 2px dashed #E11D48; pointer-events: none; }
.li-legend { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; color: var(--ink-3); }
.li-legend-line { width: 24px; border-top: 2px dashed #E11D48; }
.li-more { display: block; margin: 0 16px 8px auto; padding: 0; border: 0; background: none; color: var(--li-muted); font-size: 14px; }
.li-more:hover { color: #0A66C2; text-decoration: underline; }
.li-media { margin-top: 8px; }
.li-media img { display: block; width: 100%; height: auto; }
.li-doc { border-top: 1px solid rgba(0,0,0,.08); }
.li-doc-bar { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 12px; color: var(--li-muted); background: #F3F2EF; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider img { flex: 0 0 100%; scroll-snap-align: center; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px; font-size: 13px; color: var(--li-muted); }
.slider-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: #fff; }
.li-foot { display: flex; justify-content: space-around; padding: 4px 8px 8px; border-top: 1px solid rgba(0,0,0,.08); margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--li-muted); }

/* Forum */
.forum { border-left: 4px solid #FF4500; padding: 12px 16px; background: #fff; border-radius: 0 8px 8px 0; }
.forum .q { font-weight: 600; margin-bottom: 8px; }
.forum pre { white-space: pre-wrap; font: inherit; margin: 12px 0 0; }

/* Aktionen */
.btn { border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 6px; padding: 10px 14px; font-weight: 600; min-height: 44px; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.dark { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .5; cursor: progress; }
.actions { display: grid; gap: 8px; }
.actions .btn { width: 100%; text-align: center; }
.badges { display: flex; gap: 8px; }
.badge { flex: 1; text-align: center; padding: 10px; border-radius: 8px; border: 1px dashed var(--line-2); font-weight: 600; font-size: 14px; }
.badge.ok { border: 1px solid #16A34A; background: #DCFCE7; color: #166534; }
textarea { width: 100%; font: inherit; font-size: 14px; line-height: 20px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; resize: vertical; }
textarea:focus { outline: 2px solid var(--signal); border-color: transparent; }
.count { font-size: 12px; color: var(--ink-3); text-align: right; }
.count.over { color: var(--danger); font-weight: 700; }
.note { padding: 10px 12px; border-radius: 8px; background: var(--paper-2); font-size: 14px; }
.note.warn { background: #FEF3C7; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.hist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hist li:last-child { border: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(11,18,33,.5); }
.dlg { padding: 20px; display: grid; gap: 12px; }
.dlg h3 { margin: 0; }
.dlg p { margin: 0; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: transform .2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

@media (max-width: 560px) {
  .top { padding: 10px 12px; }
  .me .lbl { display: none; }
  .brand { font-size: 14px; }
  .tabs { top: 44px; }
  .view { padding: 12px; }
  .li { padding: 0; background: none; }
}
