/* ============================================================================
 * roadmap.css — Einheitliche Roadmap & Changelog Komponente
 *
 * Gilt für: roadmap.html, studynexus.html, html-cv.html,
 *           portfolio-meta.html, alle zukünftigen Projektseiten
 * ============================================================================ */

/* ── 1. ROADMAP — Vertikale Timeline ──────────────────────────────────────── */

.roadmap-wrapper {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding-left: 50px;
}

.roadmap-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(157, 0, 255, 0.7) 0%,
    rgba(157, 0, 255, 0.25) 60%,
    rgba(157, 0, 255, 0) 100%
  );
  z-index: 0;
}

.roadmap-node {
  position: relative;
  margin-bottom: 20px;
}
.roadmap-node:last-child {
  margin-bottom: 0;
}

/* ── 2. NODE MARKER ──────────────────────────────────────────────────────── */

.node-marker {
  position: absolute;
  left: -40px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--border-strong);
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}

.node-marker.done {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(34, 201, 63, 0.45);
}

.node-marker.in-progress,
.node-marker.active {
  background: transparent;
  border-color: #f59e0b;
  border-width: 2px;
  animation: pulse-amber 2s ease-in-out infinite;
}

.node-marker.planned,
.node-marker.future {
  background: var(--surface-1);
  border-color: rgba(157, 0, 255, 0.45);
}

@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 6px rgba(245, 158, 11, 0.2); }
  50%       { box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(245, 158, 11, 0.5); }
}

/* ── 3. ROADMAP CARD ─────────────────────────────────────────────────────── */

.roadmap-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(157, 0, 255, 0.25);
  padding: 18px 22px;
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s;
}

/* Status-abhängige linke Akzentlinie */
.roadmap-node--completed .roadmap-card {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.025);
}

.roadmap-node--in-progress .roadmap-card {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.025);
}

.roadmap-node--planned .roadmap-card {
  border-left-color: rgba(157, 0, 255, 0.35);
}

/* Completed-Karten etwas abgedimmt — sie sind Geschichte */
.roadmap-node--completed .rm-title {
  color: var(--text-2);
}

.roadmap-node--completed .rm-desc {
  color: var(--text-3);
}

/* ── 4. STATUS TAG (rm-tag) ──────────────────────────────────────────────── */

.rm-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 10px 3px 8px;
  border-radius: 20px;
  border: 1px solid transparent;
  margin-bottom: 8px;
}

.rm-tag.status-done {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}

.rm-tag.status-done::before  { content: '✓ '; }

.rm-tag.status-active,
.rm-tag.status-progress {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.rm-tag.status-active::before  { content: '● '; animation: blink-pulse 1.4s ease-in-out infinite; }
/* @keyframes blink-pulse → definiert in utilities.css */

.rm-tag.status-planned {
  background: rgba(157, 0, 255, 0.07);
  color: rgba(200, 160, 255, 0.7);
  border-color: rgba(157, 0, 255, 0.2);
}

/* ── 5. CARD TYPOGRAPHY ──────────────────────────────────────────────────── */

.rm-title {
  font-size: 1.05rem;
  color: var(--text-1);
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.3;
}

.rm-desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}

/* ── 6. EMPTY STATE ──────────────────────────────────────────────────────── */

.roadmap-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  border: 1px dashed var(--border);
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-empty-state p { margin: 0; font-size: 0.9rem; }

/* ── 7. /roadmap.html — PAGE STYLES ─────────────────────────────────────── */

.roadmap-page-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.roadmap-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.roadmap-page-hero p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.timeline-zone-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 60px 0 32px;
}

.timeline-zone-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }

.timeline-zone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.timeline-zone-subtitle {
  font-size: 0.82rem;
  color: var(--text-3);
  margin: 3px 0 0;
}

/* • JETZT • Trennlinie */
.timeline-now-divider {
  position: relative;
  text-align: center;
  margin: 60px 0;
}

.timeline-now-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(157, 0, 255, 0.35) 20%,
    rgba(157, 0, 255, 0.35) 80%,
    transparent
  );
}

.timeline-now-label {
  position: relative;
  display: inline-block;
  background: var(--bg);
  padding: 6px 22px;
  border: 1px solid rgba(157, 0, 255, 0.3);
  border-radius: 99px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-color, #9d00ff);
  font-weight: 700;
}

/* ── 8. CHANGELOG — Styles in css/pages/changelog.css ───────────────────── */
/* Alle .changelog-* Klassen wurden nach changelog.css ausgelagert (DRY).    */
/* roadmap.html lädt changelog.css zusätzlich — Teaser nutzt dieselben Karten. */

/* ── 9. ROADMAP TEASER (portfolio-meta.html) ─────────────────────────────── */

.roadmap-teaser {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
  padding: 40px;
  background: rgba(157, 0, 255, 0.04);
  border: 1px solid rgba(157, 0, 255, 0.14);
  border-radius: 16px;
}

.roadmap-teaser p {
  color: var(--text-2);
  font-size: 1rem;
  margin: 0 0 24px;
  line-height: 1.6;
}

.roadmap-teaser a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color, #9d00ff);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(157, 0, 255, 0.3);
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.roadmap-teaser a:hover {
  background: rgba(157, 0, 255, 0.1);
  border-color: rgba(157, 0, 255, 0.5);
}

/* ── 10. RESPONSIVE ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .roadmap-wrapper { padding-left: 36px; }
  .roadmap-line    { left: 12px; }

  .node-marker {
    left: -30px;
    width: 16px;
    height: 16px;
    top: 14px;
  }

  .roadmap-card    { padding: 14px 16px; }

  .rm-title        { font-size: 0.97rem; }
  .timeline-zone-header { margin: 36px 0 24px; }
  .roadmap-page-hero    { padding: 100px 0 40px; }
}
