/* ══════════════════════════════════════════════════════════════════
   Roadmap – öffentliche Seite
   ════════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────────── */
.rm-hero {
  position: relative;
  padding: 7rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}
.rm-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, .16) 0%, transparent 68%);
  pointer-events: none;
}
.rm-hero > .container { position: relative; z-index: 1; }

.rm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem 1rem;
  border-radius: 30px;
  background: rgba(14, 165, 233, .1);
  border: 1px solid var(--border-accent);
  color: var(--accent-1);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.rm-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: .85rem;
}
.rm-hero p {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
}
.rm-hero-intro {
  margin-top: 1rem !important;
  font-size: .93rem !important;
  color: var(--text-muted) !important;
}

.rm-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.85rem;
}
.rm-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 30px;
  font-size: .82rem;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--s-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--s-color) 28%, transparent);
}
.rm-hero-stat strong { color: var(--s-color); font-weight: 800; }
.rm-hero-stat-emoji { line-height: 1; }

/* ── Section ────────────────────────────────────────────────────── */
.rm-section { padding: 1rem 0 6rem; }
.rm-phases { max-width: 860px; margin: 0 auto; }

/* ── Phase ──────────────────────────────────────────────────────── */
.rm-phase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.rm-phase:last-child { margin-bottom: 0; }
.rm-phase:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(14, 165, 233, .1);
}

.rm-phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.rm-phase-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.rm-phase-emoji { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.rm-phase-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.rm-phase-progress {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.rm-phase-bar {
  width: 120px;
  height: 7px;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
}
.rm-phase-bar span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  transition: width .4s ease;
}
.rm-phase-pct {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
  text-align: right;
}

.rm-phase-desc {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

/* ── Status-Gruppe ──────────────────────────────────────────────── */
.rm-status { margin-top: 1.35rem; }
.rm-status:first-of-type { margin-top: .5rem; }

.rm-status-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .7rem;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--s-color);
}
.rm-status-emoji { font-size: .95rem; line-height: 1; }
.rm-status-count {
  font-size: .68rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--s-color) 16%, transparent);
  border-radius: 20px;
  padding: .05rem .5rem;
  line-height: 1.6;
}

/* ── Eintrag ────────────────────────────────────────────────────── */
.rm-items { display: grid; gap: .6rem; }

.rm-item {
  background: rgba(255, 255, 255, .022);
  border: 1px solid var(--border);
  border-left: 3px solid var(--s-color);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: background .2s, transform .2s;
}
.rm-item:hover {
  background: color-mix(in srgb, var(--s-color) 7%, transparent);
  transform: translateX(2px);
}
.rm-item.is-done { opacity: .72; }

.rm-item-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.rm-item-emoji { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.rm-item-head h4 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.rm-item.is-done .rm-item-head h4 { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--s-color) 60%, transparent); }

.rm-target {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-3);
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .22);
  padding: .1rem .45rem;
  border-radius: 5px;
  white-space: nowrap;
}

.rm-item-desc {
  color: var(--text-secondary);
  font-size: .86rem;
  line-height: 1.6;
  margin: .4rem 0 0;
}

.rm-item-progress {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .6rem;
}
.rm-bar {
  flex: 1;
  max-width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
}
.rm-bar span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: var(--s-color);
  transition: width .4s ease;
}
.rm-pct {
  font-size: .72rem;
  font-weight: 700;
  color: var(--s-color);
  font-variant-numeric: tabular-nums;
}

/* ── Leerzustand ────────────────────────────────────────────────── */
.rm-empty {
  text-align: center;
  max-width: 460px;
  margin: 2rem auto 0;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.rm-empty-icon { font-size: 3.2rem; margin-bottom: 1rem; opacity: .5; }
.rm-empty h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.rm-empty p { color: var(--text-secondary); margin-bottom: 1.75rem; line-height: 1.6; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rm-hero { padding: 5.5rem 0 2.5rem; }
  .rm-phase { padding: 1.2rem 1.15rem; border-radius: 14px; }
  .rm-phase-head { gap: .75rem; }
  .rm-phase-head h2 { font-size: 1.08rem; }
  .rm-phase-progress { width: 100%; }
  .rm-phase-bar { flex: 1; width: auto; }
  .rm-item { padding: .75rem .85rem; }
}
