/* ═══════════════════════════════════════════════════════════
   STUDIEN — Quellendatenbank (v2 2026-05-08)
   Basis: styles.min.css
═══════════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────────── */
.db-wrap { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Compact Intro ────────────────────────────────────────── */
.db-intro { padding: 10rem 0 1.75rem; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--primary-color, #3b82f6);
  text-decoration: none; margin-bottom: 1.75rem;
  opacity: 0.8; transition: opacity 0.15s;
}
.back-link:hover { opacity: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--primary-color, #3b82f6);
  padding: 0.35rem 1rem 0.35rem 0.7rem;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.18);
  border-radius: 100px; margin-bottom: 1.25rem;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-color, #3b82f6);
  animation: s-pulse 2.2s ease-in-out infinite;
}
@keyframes s-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}
.db-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 1rem;
}
.db-intro h1 em { font-style: normal; color: var(--primary-color, #3b82f6); }

.hero-meta {
  display: flex; align-items: center; gap: 0.5rem 1.25rem;
  flex-wrap: wrap; font-size: 0.78rem;
  color: var(--text-muted, #94a3b8); margin-bottom: 1rem;
}
.hero-meta-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-muted, #94a3b8); opacity: 0.35; flex-shrink: 0;
}
.db-intro-sub {
  font-size: 0.92rem; line-height: 1.7;
  color: var(--text-muted, #94a3b8); max-width: 600px;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.db-stats-bar {
  display: flex; gap: 0 2rem; flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--card-border, rgba(255,255,255,0.07));
  border-radius: 12px; margin-bottom: 1.25rem;
}
.dbs-item .dbs-num {
  font-size: 1.2rem; font-weight: 800;
  color: var(--primary-color, #3b82f6); line-height: 1.1;
}
.dbs-item .dbs-lbl {
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted, #94a3b8);
}

/* ── Filter Bar ───────────────────────────────────────────── */
.db-filter-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 999;
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  padding: 0.65rem 0;
  background: var(--bg-color, #0f172a);
  border-bottom: 1px solid var(--card-border, rgba(255,255,255,0.07));
  margin-bottom: 1.25rem;
  transition: top 0.3s ease;
}
.header-hidden .db-filter-bar {
  top: 0;
}
.filter-label {
  font-size: 0.63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted, #94a3b8);
  margin-right: 0.2rem;
}
.filter-sep { width: 1px; height: 18px; background: var(--card-border, rgba(255,255,255,0.08)); }

.db-filter-chip {
  padding: 0.28rem 0.72rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  border: 1px solid var(--card-border, rgba(255,255,255,0.1));
  background: transparent; color: var(--text-muted, #94a3b8);
  cursor: pointer; transition: all 0.15s;
}
.db-filter-chip[aria-pressed="true"] {
  background: var(--primary-color, #3b82f6);
  border-color: var(--primary-color, #3b82f6); color: #fff;
}
.db-filter-chip.chip-red { border-color: rgba(239,68,68,0.25); color: #ef4444; }
.db-filter-chip.chip-red[aria-pressed="true"] {
  background: #ef4444; border-color: #ef4444; color: #fff;
}

.db-search {
  margin-left: auto; padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border, rgba(255,255,255,0.1));
  border-radius: 8px; color: var(--text-color, #e2e8f0);
  font-size: 0.76rem; width: 175px;
}
.db-search:focus { outline: 2px solid var(--primary-color, #3b82f6); outline-offset: 1px; }

/* ── Source List ──────────────────────────────────────────── */
.db-source-list { display: flex; flex-direction: column; gap: 0.65rem; }

.db-no-results {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--text-muted, #94a3b8); font-size: 0.9rem; display: none;
}
.db-no-results.visible { display: block; }

/* ── Source Card ──────────────────────────────────────────── */
.source-card {
  border: 1px solid var(--card-border, rgba(255,255,255,0.08));
  border-radius: 14px; background: rgba(255,255,255,0.02);
  overflow: hidden; transition: border-color 0.2s;
}
.source-card:hover  { border-color: rgba(255,255,255,0.14); }
.source-card.open   { border-color: rgba(59,130,246,0.35); }
.source-card.zombie { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.015); }
.source-card.zombie:hover { border-color: rgba(239,68,68,0.3); }
.source-card.zombie.open  { border-color: rgba(239,68,68,0.4); }

/* Card Header */
.card-header {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; user-select: none;
}
.card-header:hover { background: rgba(255,255,255,0.015); }
.source-card.zombie .card-header:hover { background: rgba(239,68,68,0.03); }

.card-col-left  { display: flex; flex-direction: column; gap: 0.4rem; }
.card-top       { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.card-col-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }

/* Quality Badges */
.qual-badge {
  display: inline-flex; align-items: center;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.18rem 0.55rem;
  border-radius: 100px; border: 1px solid;
  white-space: nowrap; flex-shrink: 0;
}
.qual-primary   { background: rgba(16,185,129,0.1);  color: #10b981; border-color: rgba(16,185,129,0.2); }
.qual-secondary { background: rgba(245,158,11,0.1);  color: #f59e0b; border-color: rgba(245,158,11,0.2); }
.qual-zombie    { background: rgba(239,68,68,0.1);   color: #ef4444; border-color: rgba(239,68,68,0.2); }

.cat-tag {
  font-size: 0.62rem; font-weight: 600;
  color: var(--text-muted, #94a3b8);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--card-border, rgba(255,255,255,0.07));
  border-radius: 100px;
}

.card-title { font-size: 0.92rem; font-weight: 700; color: var(--text-color, #e2e8f0); line-height: 1.3; }
.card-pub   { font-size: 0.72rem; color: var(--text-muted, #94a3b8); }

/* Key Stats Badges */
.card-keystats { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.ks {
  font-size: 0.7rem; font-weight: 800;
  padding: 0.22rem 0.58rem; border-radius: 8px;
  border: 1px solid; white-space: nowrap;
}
.ks-blue   { background: rgba(59,130,246,0.08);  border-color: rgba(59,130,246,0.2);  color: #3b82f6; }
.ks-green  { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.2);  color: #10b981; }
.ks-amber  { background: rgba(245,158,11,0.08);  border-color: rgba(245,158,11,0.2);  color: #f59e0b; }
.ks-purple { background: rgba(139,92,246,0.08);  border-color: rgba(139,92,246,0.2);  color: #8b5cf6; }
.ks-red    { background: rgba(239,68,68,0.08);   border-color: rgba(239,68,68,0.2);   color: #ef4444; }

/* Card Actions */
.card-actions { display: flex; align-items: center; gap: 0.4rem; }
.btn-cite {
  font-size: 0.66rem; font-weight: 700;
  padding: 0.22rem 0.58rem; border-radius: 7px;
  border: 1px solid var(--card-border, rgba(255,255,255,0.1));
  background: transparent; color: var(--text-muted, #94a3b8);
  cursor: pointer; transition: all 0.15s;
}
.btn-cite:hover { color: var(--primary-color, #3b82f6); border-color: rgba(59,130,246,0.3); }
.expand-icon {
  font-size: 0.68rem; color: var(--text-muted, #94a3b8);
  transition: transform 0.22s; display: inline-block;
  pointer-events: none;
}
.source-card.open .expand-icon { transform: rotate(180deg); }

/* ── Card Detail ──────────────────────────────────────────── */
.card-detail { display: none; border-top: 1px solid var(--card-border, rgba(255,255,255,0.07)); }
.source-card.open .card-detail { display: block; }
.card-detail-inner { padding: 1.5rem; }

.detail-lead {
  font-size: 0.9rem; line-height: 1.75;
  color: var(--text-color, #e2e8f0);
  margin-bottom: 1.5rem; max-width: 680px;
}

/* Stat Showcase Grid */
.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.stat-box  { padding: 1.1rem 1rem; border-radius: 12px; border: 1px solid; text-align: center; }
.stat-num  { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-desc { font-size: 0.78rem; line-height: 1.45; color: var(--text-muted, #94a3b8); }

.bg-blue   { background: rgba(59,130,246,0.06);  border-color: rgba(59,130,246,0.15); }
.bg-amber  { background: rgba(245,158,11,0.06);  border-color: rgba(245,158,11,0.18); }
.bg-pink   { background: rgba(236,72,153,0.06);  border-color: rgba(236,72,153,0.18); }
.bg-green  { background: rgba(16,185,129,0.06);  border-color: rgba(16,185,129,0.18); }
.bg-purple { background: rgba(139,92,246,0.06);  border-color: rgba(139,92,246,0.18); }

.c-blue   { color: #3b82f6; }
.c-amber  { color: #f59e0b; }
.c-pink   { color: #ec4899; }
.c-green  { color: #10b981; }
.c-purple { color: #8b5cf6; }
.c-red    { color: #ef4444; }

/* Bar Chart inside detail */
.detail-bar-chart { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.5rem; }
.detail-bar-row   { display: grid; grid-template-columns: 165px 1fr 48px; align-items: center; gap: 0.65rem; }
@media (max-width: 480px) { .detail-bar-row { grid-template-columns: 110px 1fr 40px; } }
.detail-bar-lbl { font-size: 0.78rem; font-weight: 600; color: var(--text-color, #e2e8f0); text-align: right; line-height: 1.3; }
.detail-bar-track { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.05); overflow: hidden; }
.detail-bar-fill  { height: 100%; border-radius: 100px; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(0.4,0,0.2,1); }
.detail-bar-fill.animated { transform: scaleX(1); }
.detail-bar-val   { font-size: 0.74rem; font-weight: 700; color: var(--text-muted, #94a3b8); }

.bar-blue   { background: #3b82f6; }
.bar-amber  { background: #f59e0b; }
.bar-pink   { background: #ec4899; }
.bar-green  { background: #10b981; }
.bar-purple { background: #8b5cf6; }

/* Facts List */
.detail-facts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.detail-facts li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.85rem; line-height: 1.65;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border, rgba(255,255,255,0.06));
  border-radius: 9px;
}
.detail-facts li::before { content: '→'; font-weight: 700; flex-shrink: 0; color: var(--primary-color, #3b82f6); font-size: 0.8rem; margin-top: 0.05em; }

/* Insight Callout */
.detail-insight {
  border-left: 3px solid; padding: 0.9rem 1.25rem;
  border-radius: 0 10px 10px 0; margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.015);
}
.detail-insight .insight-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
.detail-insight p { font-size: 0.85rem; line-height: 1.7; margin: 0; }
.di-blue   { border-color: #3b82f6; }  .di-blue   .insight-label { color: #3b82f6; }
.di-amber  { border-color: #f59e0b; }  .di-amber  .insight-label { color: #f59e0b; }
.di-green  { border-color: #10b981; }  .di-green  .insight-label { color: #10b981; }
.di-purple { border-color: #8b5cf6; }  .di-purple .insight-label { color: #8b5cf6; }

/* Methodology Note */
.detail-method {
  font-size: 0.75rem; color: var(--text-muted, #94a3b8);
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--card-border, rgba(255,255,255,0.06));
  border-radius: 8px; margin-bottom: 1.25rem;
  line-height: 1.55; font-style: italic;
}

/* Cite Block */
.cite-block {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--card-border, rgba(255,255,255,0.08));
  border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1.25rem;
}
.cite-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted, #94a3b8); margin-bottom: 0.35rem; }
.cite-text  { font-size: 0.75rem; font-family: 'Courier New', monospace; color: var(--text-muted, #94a3b8); line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
.btn-copy   { margin-top: 0.5rem; font-size: 0.68rem; font-weight: 700; color: var(--primary-color, #3b82f6); background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); border-radius: 6px; padding: 0.28rem 0.7rem; cursor: pointer; transition: all 0.15s; }
.btn-copy:hover { background: rgba(59,130,246,0.15); }

/* Detail Footer */
.detail-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--card-border, rgba(255,255,255,0.06)); padding-top: 1rem; margin-bottom: 0.75rem; }
.source-ext-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--primary-color, #3b82f6); text-decoration: none; padding: 0.38rem 0.85rem; border: 1px solid rgba(59,130,246,0.25); border-radius: 8px; transition: all 0.18s; }
.source-ext-link:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.4); }
.qual-stars { font-size: 0.72rem; color: #f59e0b; }
.qual-stars .qs-empty { color: rgba(255,255,255,0.12); }

/* Internal Link Chips */
.detail-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.detail-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; color: var(--text-muted, #94a3b8); text-decoration: none; padding: 0.3rem 0.75rem; border: 1px solid var(--card-border, rgba(255,255,255,0.08)); border-radius: 100px; transition: all 0.15s; }
.detail-chip:hover { color: var(--primary-color, #3b82f6); border-color: rgba(59,130,246,0.3); }

/* Timeline inside card */
.detail-timeline { position: relative; padding-left: 2.25rem; margin-bottom: 1.5rem; }
.detail-timeline::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(to bottom, rgba(139,92,246,0.6), rgba(139,92,246,0.1)); }
.tl-item { position: relative; margin-bottom: 1.35rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -2.25rem; top: 3px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid #8b5cf6; display: flex; align-items: center; justify-content: center; }
.tl-dot-inner { width: 6px; height: 6px; border-radius: 50%; background: #8b5cf6; }
.tl-dot.faded { border-color: rgba(139,92,246,0.35); }
.tl-dot.faded .tl-dot-inner { background: rgba(139,92,246,0.35); }
.tl-date  { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8b5cf6; margin-bottom: 0.2rem; }
.tl-date.faded { color: rgba(139,92,246,0.5); }
.tl-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.2rem; }
.tl-desc  { font-size: 0.8rem; color: var(--text-muted, #94a3b8); line-height: 1.55; }

/* GBP Box inside card */
.detail-gbp { border: 1px solid rgba(16,185,129,0.2); border-radius: 14px; padding: 1.25rem; background: rgba(16,185,129,0.03); margin-bottom: 1.5rem; }
.detail-gbp h4 { font-size: 0.9rem; font-weight: 700; color: #10b981; margin-bottom: 0.4rem; }
.detail-gbp > p { font-size: 0.82rem; color: var(--text-muted, #94a3b8); line-height: 1.65; margin-bottom: 1rem; }
.gbp-mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.65rem; }
.gbp-mini-stat { text-align: center; }
.gbp-mini-num  { font-size: 1.35rem; font-weight: 800; color: #10b981; line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.gbp-mini-text { font-size: 0.7rem; color: var(--text-muted, #94a3b8); line-height: 1.4; }
.gbp-action { margin-top: 1rem; padding: 0.85rem 1rem; background: rgba(16,185,129,0.07); border-radius: 9px; border-left: 3px solid #10b981; font-size: 0.82rem; line-height: 1.6; }

/* Zombie Detail */
.zombie-detail-text { font-size: 0.85rem; color: var(--text-muted, #94a3b8); line-height: 1.7; margin-bottom: 1rem; }
.zombie-detail-text strong { color: #ef4444; }
.zombie-note { font-size: 0.78rem; color: var(--text-muted, #94a3b8); padding: 0.65rem 0.9rem; border: 1px solid rgba(239,68,68,0.15); border-radius: 8px; font-style: italic; line-height: 1.6; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
