/* NOVA Netzwerk – Roadmap-Seite (Zeitstrahl in Phasen, Fortschritt live aus roadmap.json) */

.rm-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 150px 0 110px;
  background:
    linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, .07) 38% 58%, transparent 58%),
    linear-gradient(180deg, #3a72ec 0%, var(--blue) 55%, #2c5ad2 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.rm-hero-inner { text-align: center; }
.rm-hero h1 { font-size: clamp(42px, 6.4vw, 72px); }

.rm-total {
  width: min(620px, 100%); margin: 38px auto 0; padding: 20px 22px 18px; text-align: left;
  border-radius: 14px; border: 2px solid #050812; background: #0d1325; box-shadow: 0 5px 0 #050812;
}
.rm-total-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rm-total-top span { font: 400 13px/1.4 var(--pixel); letter-spacing: .05em; text-transform: uppercase; color: #9fb0e6; }
.rm-total-top b { font: 800 30px/1 var(--head); color: var(--yellow); }
.rm-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-weight: 700; color: var(--muted); font-size: 15px; }
.rm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.rm-legend b { color: #fff; }

.rm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rm-dot.done { background: var(--green); }
.rm-dot.progress { background: var(--yellow); }
.rm-dot.planned { background: #4a5680; }

/* Fortschrittsbalken (pixelig gestreift, wie eine XP-Leiste) */
.rm-bar { position: relative; height: 12px; border-radius: 6px; background: #070b17; border: 2px solid #050812; overflow: hidden; }
.rm-bar-lg { height: 18px; margin-top: 12px; border-radius: 8px; }
.rm-bar i {
  position: absolute; inset: 0 auto 0 0; display: block; border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(0, 0, 0, .14) 10px 12px),
    linear-gradient(180deg, #ffd65a, var(--yellow) 50%, var(--yellow-2));
  transition: width .9s cubic-bezier(.2, .8, .2, 1);
}
.rm-bar.full i { background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(0, 0, 0, .14) 10px 12px), linear-gradient(180deg, #6df096, var(--green) 50%, #23a852); }

/* ---------------------------------------------------------------- Zeitstrahl */
.rm-section { padding-top: 90px; }
.rm-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.rm-timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--green) var(--rm-fill, 0%), #24315a var(--rm-fill, 0%));
}
.rm-phase { position: relative; padding-left: 84px; }
.rm-phase + .rm-phase { margin-top: 64px; }

.rm-node {
  position: absolute; left: 0; top: 0; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 14px; border: 2px solid #050812; background: #1a2442; box-shadow: 0 5px 0 #050812;
  font: 800 24px/1 var(--head); color: #8d99c4;
}
.rm-node svg { width: 26px; height: 26px; }
.rm-phase.done .rm-node { background: var(--green); color: #06301a; }
.rm-phase.current .rm-node { background: var(--yellow); color: #2a1a00; animation: rm-pulse 2.4s ease-in-out infinite; }
@keyframes rm-pulse {
  0%, 100% { box-shadow: 0 5px 0 #050812, 0 0 0 0 rgba(255, 195, 31, .55); }
  50% { box-shadow: 0 5px 0 #050812, 0 0 0 12px rgba(255, 195, 31, 0); }
}

.rm-phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 58px; }
.rm-phase-title { flex: 1 1 260px; min-width: 0; }
.rm-when { margin: 0 0 4px; font: 700 13px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.rm-phase.done .rm-when { color: var(--green); }
.rm-phase.later .rm-when { color: #8d99c4; }
.rm-phase h2 { font-size: clamp(28px, 3.4vw, 38px); }
.rm-phase-text { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.rm-phase-meter { flex: 0 1 220px; min-width: 180px; }
.rm-phase-meter-top { display: flex; justify-content: space-between; margin-bottom: 7px; font-weight: 800; font-size: 14px; color: var(--muted); }
.rm-phase-meter-top b { color: #fff; }
.rm-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; margin-left: 10px; vertical-align: 6px;
  font: 700 12px/1 var(--pixel); letter-spacing: .06em; background: var(--yellow); color: #2a1a00;
}

/* Karten */
.rm-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 26px; }
.rm-item {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; align-content: start;
  padding: 16px 16px 16px 14px; border-radius: 14px; border: 2px solid #050812; background: var(--navy-2);
  box-shadow: 0 5px 0 #050812; transition: transform .15s ease, box-shadow .15s ease;
}
.rm-item:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #050812; }
.rm-item::before { content: ""; position: absolute; left: -2px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: #4a5680; }
.rm-item.done::before { background: var(--green); }
.rm-item.progress::before { background: var(--yellow); }
.rm-icon {
  grid-row: span 3; width: 48px; height: 48px; padding: 7px; border-radius: 11px; background: #0d1325; border: 2px solid #0a0f1e;
  image-rendering: pixelated; object-fit: contain;
}
.rm-item.planned .rm-icon { filter: grayscale(.65) brightness(.85); }
.rm-item h3 { margin: 2px 0 0; font: 800 19px/1.2 var(--head); }
.rm-item p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rm-state { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rm-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; flex: none;
  font: 700 11.5px/1 var(--pixel); letter-spacing: .05em; text-transform: uppercase;
}
.rm-pill.done { background: rgba(61, 220, 111, .14); color: #6df096; }
.rm-pill.progress { background: rgba(255, 195, 31, .14); color: var(--yellow); }
.rm-pill.planned { background: rgba(141, 153, 196, .13); color: #a3add3; }
.rm-state .rm-bar { flex: 1; height: 10px; }
.rm-state small { font-weight: 800; color: #fff; font-size: 13px; min-width: 36px; text-align: right; }

.rm-updated { margin: 56px 0 0; text-align: center; color: var(--dim); font-weight: 700; font-size: 14px; }
.rm-empty { padding: 40px 0; text-align: center; color: var(--muted); }

@media (max-width: 640px) {
  .rm-hero { padding: 130px 0 90px; }
  .rm-timeline::before { left: 19px; }
  .rm-phase { padding-left: 0; }
  .rm-node { position: static; width: 42px; height: 42px; border-radius: 11px; font-size: 19px; margin-bottom: 12px; }
  .rm-node svg { width: 20px; height: 20px; }
  .rm-timeline::before { display: none; }
  .rm-phase-meter { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-phase.current .rm-node { animation: none; }
  .rm-bar i { transition: none; }
}
