/* =============================================
   WISSENSCHAFT PAGE — FIVE MOVES
   Neural Constellation Mindmap + Research Grid
   ============================================= */

:root {
  --sci-dark: #1A1A1A;
  --sci-glow: #C11D6F;
  --sci-glow-dim: rgba(193, 29, 111, 0.3);
  --sci-glow-faint: rgba(193, 29, 111, 0.08);
  --sci-text: #2D2D2D;
  --sci-text-sec: #5a5a5a;
  --sci-text-dim: #7a7a7a;
  --sci-warm: #F5F3F0;
  --sci-white: #fff;
  --sci-stone: #E0D6CC;
  --sci-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sci-font: 'Plus Jakarta Sans', sans-serif;
}

/* === HERO === */
.sci-hero {
  position: relative;
  min-height: 88vh;
  background: var(--sci-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 60px 100px;
  overflow: hidden;
}
.sci-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 600px at 50% 50%, var(--sci-glow-faint) 0%, transparent 65%);
  animation: sci-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sci-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.sci-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.sci-label {
  display: block;
  font-family: var(--sci-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sci-glow);
  margin-bottom: 34px;
}
.sci-h1 {
  font-family: var(--sci-font);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 300;
  color: var(--sci-white);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 0 0 34px;
}
.sci-h1 strong { color: var(--sci-glow); font-weight: 600; }
.sci-sub {
  font-family: var(--sci-font);
  font-size: 15px;
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
  margin: 0 auto 55px;
  max-width: 440px;
}

/* Hero Stats Bar */
.sci-stats {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
  max-width: 580px;
  margin: 0 auto;
}
.sci-stat {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sci-stat-n {
  font-family: var(--sci-font);
  font-size: 28px;
  font-weight: 300;
  color: var(--sci-white);
  line-height: 1;
}
.sci-stat-l {
  font-family: var(--sci-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.sci-stat-div { width: 1px; background: rgba(255,255,255,0.07); flex-shrink: 0; }

/* Hero Scroll Indicator */
.sci-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.sci-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sci-glow), transparent);
  animation: sci-scroll-anim 2.2s ease-in-out infinite;
}
@keyframes sci-scroll-anim {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.sci-scroll-lbl {
  font-family: var(--sci-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* Hero Fade-in */
@keyframes sci-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.sci-fi { animation: sci-fade-up .7s var(--sci-ease) both; }
.sci-d1 { animation-delay: .15s; }
.sci-d2 { animation-delay: .3s; }
.sci-d3 { animation-delay: .48s; }


/* =============================================
   NEURAL CONSTELLATION MAP
   ============================================= */

.constellation-section {
  background: #F5F3F0;
  padding: 100px 24px 120px;
  position: relative;
  overflow: hidden;
}
.constellation-header {
  text-align: center;
  margin-bottom: 55px;
  position: relative;
  z-index: 3;
}
.constellation-header .sci-label { margin-bottom: 21px; color: var(--sci-glow); }
.constellation-wrap { position: relative; z-index: 1; }
.constellation-title {
  font-family: var(--sci-font);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 300;
  color: var(--sci-text);
  line-height: 1.2;
  margin: 0;
}
.constellation-title strong { color: var(--sci-glow); font-weight: 600; }
.sci-section-dark .constellation-title { color: var(--sci-white); }

/* SVG Container */
.constellation-wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.constellation-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Glow Filters */
.constellation-svg .glow-soft { filter: url(#glowSoft); }
.constellation-svg .glow-strong { filter: url(#glowStrong); }

/* Node Styles — Organic Bubbles */
.c-node {
  cursor: pointer;
  transition: transform 0.5s var(--sci-ease), filter 0.5s ease;
}
.c-node:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 8px 30px rgba(193, 29, 111, 0.25));
}
.c-node-label {
  font-family: var(--sci-font);
  font-weight: 600;
  fill: var(--sci-text);
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 1.5px;
}
.c-node-sub {
  font-family: var(--sci-font);
  font-weight: 400;
  fill: var(--sci-text-sec);
  text-anchor: middle;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.3px;
}

/* Central Node */
.c-center-label {
  font-family: var(--sci-font);
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  font-size: 16px;
}
.c-center-sub {
  font-family: var(--sci-font);
  font-weight: 400;
  fill: rgba(255,255,255,0.7);
  text-anchor: middle;
  font-size: 11px;
}

/* Connection Lines */
.c-line {
  stroke: var(--sci-glow);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.12;
  transition: opacity 0.5s ease, stroke-width 0.5s ease;
}
.c-line.active {
  opacity: 0.4;
  stroke-width: 2;
}

/* Particle Animation on Lines */
.c-particle {
  fill: var(--sci-glow);
  opacity: 0;
}
.c-particle.active {
  opacity: 0.8;
  animation: particleFlow 3s linear infinite;
}

/* Central Node — gentle scale breathe, anchored to center */
.c-center-bubble {
  transform-origin: 600px 400px;
  animation: centralBreathe 5s ease-in-out infinite;
}
@keyframes centralBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Outer Bubble Breathe — visible scale */
@keyframes bubbleBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.c-bubble-sicherheit { transform-origin: 600px 130px; animation: bubbleBreathe 5s ease-in-out infinite; }
.c-bubble-interoception { transform-origin: 220px 270px; animation: bubbleBreathe 5.5s ease-in-out infinite; }
.c-bubble-ownership { transform-origin: 980px 270px; animation: bubbleBreathe 4.8s ease-in-out infinite; }
.c-bubble-memory { transform-origin: 220px 540px; animation: bubbleBreathe 5.2s ease-in-out infinite; }
.c-bubble-embodiment { transform-origin: 980px 540px; animation: bubbleBreathe 4.5s ease-in-out infinite; }
.c-bubble-verankerung { transform-origin: 600px 680px; animation: bubbleBreathe 5.8s ease-in-out infinite; }

/* Detail Panel */
.constellation-detail {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.06);
  box-shadow: -20px 0 60px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: right 0.5s var(--sci-ease);
  overflow-y: auto;
  padding: 60px 40px 40px;
}
.constellation-detail.open { right: 0; }
.constellation-detail-close {
  position: absolute;
  top: 21px;
  right: 21px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  color: var(--sci-text-dim);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.constellation-detail-close:hover {
  border-color: var(--sci-glow);
  color: var(--sci-glow);
}
.constellation-detail-tag {
  display: inline-block;
  font-family: var(--sci-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sci-glow);
  margin-bottom: 21px;
}
.constellation-detail h3 {
  font-family: var(--sci-font);
  font-size: 26px;
  font-weight: 600;
  color: var(--sci-text);
  margin: 0 0 13px;
  line-height: 1.2;
}
.constellation-detail p {
  font-family: var(--sci-font);
  font-size: 14px;
  color: var(--sci-text-sec);
  line-height: 1.7;
  margin: 0 0 21px;
}
.constellation-detail-researcher {
  padding: 21px;
  background: var(--sci-warm);
  border: none;
  border-radius: 8px;
  margin-bottom: 13px;
}
.constellation-detail-researcher h4 {
  font-family: var(--sci-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--sci-text);
  margin: 0 0 4px;
}
.constellation-detail-researcher .inst {
  font-family: var(--sci-font);
  font-size: 11px;
  color: var(--sci-glow);
  margin: 0 0 8px;
}
.constellation-detail-researcher p {
  font-size: 13px;
  color: var(--sci-text-sec);
  margin: 0;
}
.detail-badge-new {
  display: inline-block;
  font-family: var(--sci-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--sci-glow);
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Overlay */
.constellation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.constellation-overlay.open {
  opacity: 1;
  pointer-events: auto;
}


/* =============================================
   MOBILE CONSTELLATION (DNA Helix)
   ============================================= */

.constellation-mobile {
  display: none;
  padding: 0 24px;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

/* Central spine line */
.constellation-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--sci-glow),
    var(--sci-glow-dim) 15%,
    var(--sci-glow-dim) 85%,
    transparent
  );
  opacity: 0.2;
}

/* Central top node */
.cm-center {
  text-align: center;
  padding: 34px 0;
  position: relative;
  z-index: 2;
}
.cm-center-dot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,29,111,0.2) 0%, rgba(193,29,111,0.05) 50%, transparent 70%);
  margin: 0 auto 13px;
  animation: bubblePulseSlow 5s ease-in-out infinite;
}
.cm-center-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sci-glow);
  margin: -78px auto 13px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(193,29,111,0.3);
}
.cm-center-icon {
  font-size: 20px;
  color: #fff;
}
.cm-center h3 {
  font-family: var(--sci-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--sci-text);
  margin: 0 0 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cm-center p {
  font-family: var(--sci-font);
  font-size: 11px;
  color: var(--sci-text-dim);
  margin: 0;
}

/* Helix nodes */
.cm-node {
  position: relative;
  z-index: 2;
  width: 75%;
  padding: 21px;
  background: #fff;
  border: none;
  border-radius: 13px;
  margin-bottom: 21px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.cm-node:hover,
.cm-node:active {
  box-shadow: 0 4px 24px rgba(193, 29, 111, 0.12);
  transform: translateY(-2px);
}
.cm-node:nth-child(odd) {
  margin-left: auto;
  margin-right: 8%;
}
.cm-node:nth-child(even) {
  margin-left: 8%;
  margin-right: auto;
}

/* Connecting curve from spine to node */
.cm-node::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--sci-glow);
  opacity: 0.15;
}
.cm-node:nth-child(odd)::before {
  left: -30px;
}
.cm-node:nth-child(even)::before {
  right: -30px;
}

.cm-node-tag {
  font-family: var(--sci-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sci-glow);
  margin-bottom: 8px;
  display: block;
}
.cm-node h4 {
  font-family: var(--sci-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--sci-text);
  margin: 0 0 8px;
  line-height: 1.3;
}
.cm-node p {
  font-family: var(--sci-font);
  font-size: 12px;
  color: var(--sci-text-sec);
  line-height: 1.5;
  margin: 0;
}
.cm-node-researchers {
  font-family: var(--sci-font);
  font-size: 11px;
  color: var(--sci-text-dim);
  margin-top: 8px;
}


/* =============================================
   RESEARCH GRID SECTIONS
   ============================================= */

.sci-section {
  padding: 100px 60px;
  background-color: white;
}
.sci-section-warm { background-color: var(--sci-warm); }
.sci-section-dark {
  background-color: var(--sci-dark);
  color: var(--sci-white);
}
.sci-container {
  max-width: 1200px;
  margin: 0 auto;
}
.sci-section-header {
  text-align: center;
  margin-bottom: 55px;
}
.sci-section-label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sci-glow);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 21px;
  font-family: var(--sci-font);
}
.sci-section-title {
  font-size: 42px;
  font-weight: 600;
  color: var(--sci-text);
  font-family: var(--sci-font);
  line-height: 1.2;
  margin-bottom: 0;
}
.sci-section-title span { color: var(--sci-glow); }

/* Scientist Cards */
.sci-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 21px;
  margin-top: 55px;
}
.sci-card {
  background: var(--sci-warm);
  padding: 34px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.sci-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.sci-card-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 21px;
}
.sci-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sci-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sci-card-avatar span {
  font-size: 18px;
  font-weight: 600;
  color: white;
  font-family: var(--sci-font);
}
.sci-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--sci-text);
  margin: 0;
  font-family: var(--sci-font);
}
.sci-card-role {
  font-size: 12px;
  color: var(--sci-text-dim);
  margin: 0;
  font-family: var(--sci-font);
}
.sci-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--sci-text);
  margin-bottom: 13px;
  font-family: var(--sci-font);
}
.sci-card-label {
  font-size: 12px;
  color: var(--sci-text);
  font-weight: 500;
  margin-bottom: 8px;
  font-family: var(--sci-font);
}
.sci-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 13px;
  font-size: 13px;
  color: var(--sci-text-sec);
  font-family: var(--sci-font);
  line-height: 1.5;
}
.sci-card .sci-card-consequence {
  font-size: 13px;
  color: var(--sci-text-sec);
  margin: 0;
  font-family: var(--sci-font);
  line-height: 1.5;
}
.sci-badge-nobel {
  display: inline-block;
  background: var(--sci-glow);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 3px;
  margin-bottom: 13px;
  font-family: var(--sci-font);
}
.sci-badge-update {
  display: inline-block;
  background: rgba(193,29,111,0.1);
  color: var(--sci-glow);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  margin-left: 8px;
  font-family: var(--sci-font);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}


/* =============================================
   FORSCHUNG 2025 HIGHLIGHT SECTION
   ============================================= */

.research-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  margin-top: 55px;
}
.research-highlight-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 34px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.research-highlight-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.research-highlight-card .rh-year {
  font-family: var(--sci-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sci-glow);
  margin-bottom: 13px;
  display: block;
}
.research-highlight-card h4 {
  font-family: var(--sci-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--sci-white);
  margin: 0 0 13px;
  line-height: 1.3;
}
.research-highlight-card .rh-source {
  font-family: var(--sci-font);
  font-size: 12px;
  color: var(--sci-glow);
  margin-bottom: 13px;
  display: block;
}
.research-highlight-card p {
  font-family: var(--sci-font);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0;
}
.research-highlight-card .rh-stat {
  font-family: var(--sci-font);
  font-size: 34px;
  font-weight: 300;
  color: var(--sci-white);
  display: block;
  margin-bottom: 8px;
}


/* =============================================
   DIVIDER
   ============================================= */

.sci-divider {
  padding: 80px 60px;
  text-align: center;
  background: var(--sci-warm);
}
.sci-divider p {
  font-size: 26px;
  font-weight: 500;
  color: var(--sci-text);
  font-family: var(--sci-font);
  margin: 0;
}
.sci-divider span { color: var(--sci-glow); }


/* =============================================
   SOURCES SECTION
   ============================================= */

.sci-sources {
  padding: 100px 60px;
  background: var(--sci-dark);
}
.sci-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 55px;
}
.sci-source-link {
  display: block;
  padding: 16px 21px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sci-source-link:hover {
  border-color: var(--sci-glow-dim);
  background: rgba(193,29,111,0.04);
}
.sci-source-name {
  font-family: var(--sci-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--sci-white);
  margin-bottom: 4px;
}
.sci-source-desc {
  font-family: var(--sci-font);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.sci-source-badge {
  display: inline-block;
  font-family: var(--sci-font);
  font-size: 9px;
  font-weight: 600;
  color: var(--sci-dark);
  background: var(--sci-glow);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}


/* =============================================
   CTA SECTION
   ============================================= */

.sci-cta {
  padding: 80px 60px;
  text-align: center;
  background: var(--sci-warm);
}
.sci-cta h2 {
  font-family: var(--sci-font);
  font-size: 42px;
  font-weight: 300;
  color: var(--sci-text);
  margin: 0 0 34px;
}
.sci-cta h2 strong { color: var(--sci-glow); font-weight: 600; }
.sci-cta-buttons {
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
}
.sci-cta-btn {
  display: inline-block;
  font-family: var(--sci-font);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 34px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sci-cta-btn-primary {
  background: var(--sci-glow);
  color: white;
}
.sci-cta-btn-primary:hover { opacity: 0.85; }
.sci-cta-btn-secondary {
  background: transparent;
  color: var(--sci-text);
  border: 1px solid rgba(0,0,0,0.12);
}
.sci-cta-btn-secondary:hover { border-color: var(--sci-glow); color: var(--sci-glow); }


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 800px) {
  .sci-hero { padding: 88px 24px 60px; min-height: auto; }
  .sci-h1 { letter-spacing: -1px; }
  .sci-stats { max-width: 100%; flex-wrap: wrap; }
  .sci-stat { min-width: 45%; }
  .sci-stat-n { font-size: 22px; }

  .constellation-section { padding: 55px 0 80px; }
  .constellation-wrap { display: none; }
  .constellation-mobile { display: block; }

  .sci-section { padding: 60px 24px; }
  .sci-section-title { font-size: 26px; }
  .sci-grid { grid-template-columns: 1fr; }

  .research-highlight-grid { grid-template-columns: 1fr; }

  .sci-divider { padding: 55px 24px; }
  .sci-divider p { font-size: 22px; }

  .sci-sources { padding: 60px 24px; }
  .sci-sources-grid { grid-template-columns: 1fr; }

  .sci-cta { padding: 55px 24px; }
  .sci-cta h2 { font-size: 26px; }

  .constellation-detail {
    width: 100%;
    max-width: 100%;
    right: -100%;
  }
}

@media (max-width: 480px) {
  .sci-hero { padding: 88px 16px 55px; }
  .sci-section { padding: 55px 16px; }
  .sci-section-title { font-size: 22px; }
  .sci-card { padding: 21px; }
  .research-highlight-card { padding: 21px; }
}
