/* Abschnitt „So wird das JET-Modul“ (Umbau-Stand).
   Nur Tokens der Seite (styles.css :root), keine eigenen Farben.
   Status-Chips kommen aus bereiche.css (.s-st.gebaut / .arbeit / .geplant). */

.ju .ju-head { margin-bottom: 8px; }
.ju .ju-lead { color: var(--text-dim); max-width: 46em; margin: 0 0 34px; }

/* ---------- 1. Zeitleiste ---------- */
.ju-tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}
.ju-step {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-wrap: anywhere;
}
.ju-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--border-strong);
}
.ju-step.is-done::before { background: var(--success); }
.ju-step.is-active::before { background: var(--accent); }
.ju-step .ju-nr {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ju-step h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.ju-step p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.ju-step .ju-note { font-size: 12.5px; color: var(--text-faint); }
.ju-step .s-st { align-self: flex-start; }

/* ---------- 2. Vorschau-Karten ---------- */
.ju-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 40px;
}
.ju-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, opacity .7s cubic-bezier(.16, 1, .3, 1);
}
.ju-card .ju-kopf { display: flex; flex-direction: column; gap: 8px; }
.ju-card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.ju-tag {
  align-self: flex-start;
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--bg-card-2);
  color: var(--text-dim);
  border: 1px dashed var(--border-strong);
}
.ju-hinweis { margin: 0; font-size: 12.5px; color: var(--text-faint); }

/* Karte a: Abgleich-Kacheln */
.ju-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ju-tile {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card-2);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ju-tile b { font-size: 13.5px; line-height: 1.2; }
.ju-tile span { font: 600 20px/1 var(--font-mono); color: var(--text); }
.ju-tile.ok { border-left-color: var(--success); }
.ju-tile.ok span { color: var(--success); }
.ju-tile.diff { border-left-color: var(--danger); }
.ju-tile.diff span { color: var(--danger); }
.ju-tile.nop { border-left-color: var(--warn); }
.ju-tile.nop span { color: var(--warn); }
.ju-tile.zero { border-left-color: var(--text-faint); }
.ju-tile.zero span { color: var(--text-faint); }

/* Karte b: Parameterblatt */
.ju-sheet {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card-2);
  padding: 4px 12px;
}
.ju-sheet div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.ju-sheet div:last-child { border-bottom: 0; }
.ju-sheet dt { color: var(--text-dim); margin: 0; }
.ju-sheet dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }

/* Karte c: Sperr-Zeile */
.ju-lock { display: flex; flex-direction: column; gap: 10px; }
.ju-lock-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.ju-lock-label b { font-weight: 700; }
.ju-lock-label span { font: 600 12px/1 var(--font-mono); color: var(--text-dim); }
.ju-bar {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ju-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  border-radius: 99px;
  background: var(--accent);
}
.ju-bar-marks { display: flex; justify-content: space-between; font: 500 11.5px/1.2 var(--font-mono); color: var(--text-faint); gap: 8px; }
.ju-bar-marks span:last-child { text-align: right; }

/* ---------- 3. Empfehlung ---------- */
.ju-tipp {
  margin-top: 34px;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--bg-card-2);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 46em;
}
.ju-tipp b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.ju-tipp p { margin: 0; font-size: 16px; color: var(--text); }

/* ---------- 4. Fußzeile ---------- */
.ju-foot {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.ju-foot span { font-size: 13px; color: var(--text-faint); }

/* ---------- Mausgerät: Hover nur mit Zeiger ---------- */
@media (hover: hover) {
  .ju-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .ju-step:hover { box-shadow: var(--shadow-lg); }
}

/* ---------- Telefon ---------- */
@media (max-width: 960px) {
  .ju-tl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ju .wrap { padding-left: 16px; padding-right: 16px; }
  .ju-tl { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ju-step { padding: 14px 14px 14px 18px; }
  .ju-step::before { top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .ju-card { padding: 16px; }
  .ju-tipp { padding: 16px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .ju *, .ju *::before, .ju *::after { transition: none !important; animation: none !important; }
  .ju .reveal { opacity: 1; transform: none; }
}
