/* WUNDER-Blick — WUNDERbare MÖGLICHkeiten n.e.V. */
:root {
  --bg: #0b1e0f;
  --bg-elev: #112415;
  --bg-card: #152a19;
  --bg-sidebar: #091a0c;
  --border: #1e3d24;
  --border-strong: #2a5532;
  --ink: #f2f9ee;
  --ink-dim: #b5d4ab;
  --ink-muted: #6a9870;
  --accent: #7cc520;
  --accent-bright: #98e028;
  --accent-deep: #4a7a12;
  --sun: #f5d000;
  --danger: #e07060;
  --success: #7cc520;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --sidebar-w: 320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ─── App shell ─────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ─── Sidebar ──────────────────────────────────────────── */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar-head {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.sync-btn {
  margin-left: auto;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sync-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #0a1a0c;
}
.sync-btn:disabled { opacity: 0.6; cursor: wait; }

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #0a1a0c;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(124,197,32,0.3);
}
.brand-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--accent);
}
.brand-sub {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px;
}

.new-btn {
  width: 100%;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.15s;
}
.new-btn:hover {
  background: var(--accent);
  color: #0a1a0c;
  border-color: var(--accent);
}

.search-wrap {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.search-wrap input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color 0.15s;
}
.search-wrap input::placeholder { color: var(--ink-muted); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--accent-deep);
}

.library-section {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 20px;
}
.library-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--ink-muted);
  padding: 10px 24px 14px;
  display: flex;
  gap: 8px;
}
.library-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-group {
  margin-bottom: 8px;
  border-radius: 4px;
  transition: background 0.15s, box-shadow 0.15s;
}
.cat-group.drag-over {
  background: rgba(124,197,32,0.12);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cat-group.drag-over .cat-header { color: var(--accent); }
.cat-group.empty .cat-header { opacity: 0.55; }
.cat-group.empty .cat-list { min-height: 6px; }

.library-item[draggable="true"] { cursor: grab; }
.library-item.dragging { opacity: 0.4; cursor: grabbing; }
.cat-header {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  padding: 10px 20px 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.15s;
}
.cat-header:hover { color: var(--accent); }
.cat-chevron {
  font-size: 10px;
  color: var(--accent);
  transition: transform 0.2s;
  width: 10px;
  display: inline-block;
}
.cat-group.collapsed .cat-chevron { transform: rotate(-90deg); }
.cat-name { flex: 1; text-align: left; }
.cat-count {
  font-size: 11px;
  color: var(--ink-muted);
  background: rgba(124,197,32,0.08);
  padding: 1px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.cat-group.collapsed .cat-list { max-height: 0; }

.cat-pill {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.library-empty {
  display: none;
  padding: 30px 24px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  font-style: italic;
}

.library-item {
  padding: 12px 20px 12px 24px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.library-item:hover { background: rgba(124,197,32,0.04); }
.library-item.active {
  background: rgba(124,197,32,0.08);
  border-left-color: var(--accent);
}
.li-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.li-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--bg-elev);
}
.li-icon {
  width: 60px;
  height: 45px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.li-fav-inline {
  color: var(--accent);
  margin-right: 4px;
}
.li-main { flex: 1; min-width: 0; }
.li-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.li-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.li-date {
  font-size: 10px;
  color: var(--accent-deep);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.li-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.35;
  font-style: italic;
}

/* ─── Main area ────────────────────────────────────────── */
.main {
  padding: 60px 64px 80px;
  max-width: 1600px;
  background:
    radial-gradient(ellipse 900px 500px at 50% -150px, rgba(124,197,32,0.07), transparent 60%),
    var(--bg);
}

.hidden { display: none !important; }

/* ─── Source Tabs ──────────────────────────────────────── */
.source-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.source-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-muted);
  padding: 10px 18px 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  letter-spacing: 0.3px;
}
.source-tab:hover { color: var(--ink-dim); }
.source-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── View: New ────────────────────────────────────────── */
.hero { max-width: 760px; }
.kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 16px 0 20px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  font-size: 17px;
  max-width: 600px;
  color: var(--ink-dim);
  margin: 0 0 32px;
}

.url-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
}
.url-form input[type="url"],
.url-form input[type="text"] {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 18px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url-form input::placeholder { color: var(--ink-muted); }
.url-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,197,32,0.15);
}
.url-form button {
  background: var(--accent);
  color: #0a1a0c;
  border: none;
  border-radius: 4px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.url-form button:hover:not(:disabled) {
  background: var(--accent-bright);
  transform: translateY(-1px);
}
.url-form button:disabled { opacity: 0.5; cursor: wait; }
.btn-arrow { font-size: 18px; transition: transform 0.2s; }
.url-form button:hover:not(:disabled) .btn-arrow { transform: translateX(3px); }

/* PDF Upload Form */
.pdf-form {
  max-width: 720px;
}
.pdf-drop {
  border: 2px dashed var(--border-strong);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-elev);
}
.pdf-drop:hover, .pdf-drop.drag-active {
  border-color: var(--accent);
  background: rgba(124,197,32,0.04);
}
.pdf-drop-icon { font-size: 36px; margin-bottom: 12px; }
.pdf-drop-text {
  font-size: 15px;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.pdf-drop-hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.pdf-file-input { display: none; }
.pdf-select-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.pdf-select-btn:hover {
  background: var(--accent);
  color: #0a1a0c;
}
.pdf-selected {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(124,197,32,0.08);
  border: 1px solid var(--accent-deep);
  border-radius: 6px;
}
.pdf-selected.visible { display: flex; }
.pdf-filename {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.pdf-analyze-btn {
  background: var(--accent);
  color: #0a1a0c;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pdf-analyze-btn:hover:not(:disabled) { background: var(--accent-bright); }
.pdf-analyze-btn:disabled { opacity: 0.5; cursor: wait; }

/* ─── Contributor field ────────────────────────────────── */
.contributor-wrap {
  max-width: 720px;
  margin-top: 12px;
}
.contributor-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 10px 4px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13.5px;
  transition: border-color 0.2s, color 0.2s;
}
.contributor-wrap input::placeholder { color: var(--ink-muted); opacity: 0.7; }
.contributor-wrap input:focus {
  outline: none;
  border-bottom-color: var(--accent);
  color: var(--ink);
}

/* ─── Star Rating ──────────────────────────────────────── */
.rating-block {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stars-display {
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}
.stars-display .star-filled { color: var(--sun); }
.stars-display .star-empty  { color: var(--border-strong); }
.rating-meta {
  font-size: 13px;
  color: var(--ink-muted);
}
.rating-meta strong { color: var(--ink-dim); }

.stars-input {
  display: flex;
  gap: 4px;
  align-items: center;
}
.stars-input button {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: transform 0.1s;
  color: var(--border-strong);
}
.stars-input button:hover,
.stars-input button.hovered { color: var(--sun); transform: scale(1.2); }
.stars-input button.selected { color: var(--sun); }
.stars-voted {
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
}

.li-rating {
  font-size: 11px;
  color: var(--sun);
  letter-spacing: 1px;
}

.li-contributor {
  font-size: 10.5px;
  color: var(--accent-deep);
  letter-spacing: 0.5px;
}

.detail-contributor {
  font-size: 13px;
  color: var(--accent);
  margin-top: 6px;
  font-style: italic;
}

.status {
  min-height: 24px;
  margin: 20px 4px 0;
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.3px;
}
.status.loading { color: var(--accent); }
.status.loading::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse 1.2s ease-in-out infinite;
}
.status.error { color: var(--danger); }
.status.success { color: var(--success); }
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ─── View: Detail ─────────────────────────────────────── */
.view-detail { animation: fadein 0.4s ease; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}
.back-btn {
  background: transparent;
  color: var(--ink-dim);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 0;
  transition: color 0.15s;
}
.back-btn:hover { color: var(--accent); }

.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-btn {
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  transition: all 0.15s;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.icon-btn.active { color: var(--accent); border-color: var(--accent); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* Cards & content */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px 34px;
  margin-bottom: 22px;
}

.video-card .video-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.video-info {
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.video-info a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-muted);
}
.video-info a:hover { color: var(--accent); border-color: var(--accent); }
.video-info .dot { margin: 0 10px; opacity: 0.5; }

.themen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(124,197,32,0.08);
  border: 1px solid var(--accent-deep);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: lowercase;
}

.kern {
  background: linear-gradient(135deg, rgba(124,197,32,0.08), rgba(124,197,32,0.02));
  border-color: var(--accent-deep);
}
.kern .kernbotschaft {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}

.tldr .tldr-text {
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  line-height: 1.75;
}

.section-h {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin: 44px 0 22px;
  color: var(--ink);
  letter-spacing: -0.2px;
}

/* Learnings grid */
.learnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.learning-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.learning-card:hover {
  border-color: var(--accent-deep);
  transform: translateY(-2px);
}
.learning-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.learning-card h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.25;
  color: var(--ink);
}
.learning-text {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.7;
}
.learning-why {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}
.learning-why span {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Two-col */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.two-col .card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--ink);
}
.questions-list, .actions-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: q;
}
.questions-list li {
  counter-increment: q;
  font-size: 16px;
  color: var(--ink);
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
}
.questions-list li:last-child { border-bottom: none; }
.questions-list li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 13px;
  font-family: var(--serif);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
}
.actions-list li {
  font-size: 16px;
  color: var(--ink);
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.actions-list li:last-child { border-bottom: none; }
.actions-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 13px;
  color: var(--accent);
  font-weight: 600;
}
.actions-list .action-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.actions-list .action-text { flex: 1; }

/* Quotes */
.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quotes-list blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  padding: 26px 32px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 4px 4px 0;
}

/* ─── Modal ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadein 0.2s ease;
  padding: 24px;
}
.modal-backdrop.hidden { display: none; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--accent-deep);
  border-radius: 8px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 40px;
}
.modal h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.modal .modal-sub {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0 0 20px;
  line-height: 1.6;
}
.modal textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 18px 20px;
  color: var(--ink);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
  min-height: 220px;
  margin-bottom: 18px;
}
.modal textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.modal-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.modal-btn:hover { border-color: var(--ink-dim); }
.modal-btn.primary {
  background: var(--accent);
  color: #0a1a0c;
  border-color: var(--accent);
}
.modal-btn.primary:hover { background: var(--accent-bright); }
.modal-btn.success {
  background: var(--success);
  color: #0a1a0c;
  border-color: var(--success);
}

/* ─── Scrollbar ────────────────────────────────────────── */
.library-section::-webkit-scrollbar { width: 6px; }
.library-section::-webkit-scrollbar-track { background: transparent; }
.library-section::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.library-section::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .library-section {
    overflow-y: visible !important;
    max-height: none !important;
    min-height: 0;
  }
  .cat-group.collapsed .cat-list {
    max-height: 0 !important;
  }
  .cat-group:not(.collapsed) .cat-list {
    max-height: none !important;
  }
  .main { padding: 32px 18px 60px; }
  .url-form { flex-direction: column; }
  .url-form button { padding: 16px; justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .contributor-wrap input { font-size: 16px; }
  .learnings-grid { grid-template-columns: 1fr; }
}

/* ─── Vollbild-Lesemodus ─────────────────────────────── */
body.fullscreen .sidebar { display: none; }
body.fullscreen .app { grid-template-columns: 1fr; }
body.fullscreen .main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 80px 100px;
}
body.fullscreen .learnings-grid { grid-template-columns: 1fr; }
body.fullscreen .learning-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 48px;
}
body.fullscreen .learning-card h4 { font-size: 30px; }
body.fullscreen .learning-text { font-size: 19px; line-height: 1.75; }
body.fullscreen .kern .kernbotschaft { font-size: 36px; }
body.fullscreen .tldr .tldr-text { font-size: 21px; }
body.fullscreen .section-h { font-size: 36px; text-align: center; }
