/* Linux im Browser: Labor-Seite (Hell + Royalblau wie soon.css, Terminal dunkel). */
.lab-w { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lab-head { padding-block: 48px 8px; }
.lab-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; margin-top: 12px; text-wrap: balance; }
.lab-lead { font-size: 18px; line-height: 1.6; color: #4b5674; max-width: 760px; margin-top: 12px; }
.lab-beta { display: inline-flex; font: 600 11.5px "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: #2952e3; background: #eaf0ff; border: 1px solid #c7d4fb; border-radius: 99px; padding: 5px 10px; }

.lab-box { margin-top: 24px; border: 1px solid #e3e8f2; border-radius: 14px; background: #0f172a; overflow: hidden; min-height: 320px; display: grid; }
.lab-box [hidden] { display: none !important; }
.lab-start, .lab-progress { display: grid; gap: 14px; justify-items: center; align-content: center; text-align: center; padding: 40px 20px; color: #cbd5e1; }
.lab-start svg { width: 44px; height: 44px; fill: none; stroke: #93b4ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lab-btn { display: inline-flex; align-items: center; font: 600 16px "Ubuntu Sans", system-ui, sans-serif; color: #fff; background: #2952e3; border: 0; border-radius: 8px; padding: 12px 22px; cursor: pointer; }
.lab-btn:hover { background: #2244c4; }
.lab-btn:focus-visible { outline: 2px solid #93b4ff; outline-offset: 3px; }
.lab-btn:disabled { opacity: .6; cursor: progress; }
.lab-size { font-size: 14px; color: #94a3b8; max-width: 46ch; }
.lab-progress p { font: 500 15px "JetBrains Mono", ui-monospace, monospace; }
.lab-progress progress { width: min(320px, 100%); height: 8px; accent-color: #2952e3; }
.lab-failed .lab-progress p { color: #fecaca; font-family: "Ubuntu Sans", system-ui, sans-serif; max-width: 52ch; }
.lab-term { padding: 10px 4px 6px 10px; height: min(70vh, 540px); min-width: 0; }
.lab-term .xterm { height: 100%; }

/* Geprüfte Aufgaben: rechts neben dem Terminal, schmal darunter */
.lab-split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 24px; }
.lab-split .lab-box { margin-top: 0; }
@media (min-width: 1000px) { .lab-split { grid-template-columns: minmax(0, 1fr) 330px; } }
.lab-tasks { border: 1px solid #e3e8f2; border-radius: 14px; background: #fff; padding: 16px 16px 14px; display: grid; gap: 10px; min-width: 0; }
.lab-tasks h2 { font-size: 18px; font-weight: 700; }
.lab-tasks-set { font: 600 11.5px "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; color: #7480a0; margin-top: -6px; }
.lab-count { justify-self: start; font: 600 13px "JetBrains Mono", ui-monospace, monospace; color: #2952e3; background: #eaf0ff; border: 1px solid #c7d4fb; border-radius: 99px; padding: 4px 10px; }
.lab-count.lab-all { color: #166534; background: #ecfdf3; border-color: #a7e3bd; }
.lab-tasks-note { font-size: 13.5px; line-height: 1.5; color: #4b5674; background: #f5f7fb; border-radius: 8px; padding: 8px 10px; }
.lab-tasks ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: task; }
.lab-task { counter-increment: task; border: 1px solid #e3e8f2; border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.lab-task h3 { font-size: 15px; font-weight: 650; display: flex; gap: 8px; align-items: baseline; }
.lab-task h3::before { content: counter(task); flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: #eaf0ff; color: #2952e3; font: 700 11.5px "JetBrains Mono", ui-monospace, monospace; }
.lab-task p { font-size: 14px; line-height: 1.55; color: #4b5674; overflow-wrap: anywhere; }
.lab-task code, .lab-tasks-note code { font: 12.5px "JetBrains Mono", ui-monospace, monospace; color: #0f172a; background: #f1f4fa; border-radius: 4px; padding: 1px 4px; }
.lab-task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lab-check { font: 600 14px "Ubuntu Sans", system-ui, sans-serif; color: #fff; background: #2952e3; border: 0; border-radius: 7px; padding: 7px 14px; cursor: pointer; }
.lab-check:hover { background: #2244c4; }
.lab-check:focus-visible { outline: 2px solid #2952e3; outline-offset: 2px; }
.lab-check:disabled { opacity: .5; cursor: not-allowed; }
.lab-status { font-size: 13.5px; color: #7480a0; min-width: 0; }
.lab-task.lab-solved { border-color: #a7e3bd; background: #f6fdf8; }
.lab-task.lab-solved h3::before { content: "✓"; background: #dcfce7; color: #166534; }
.lab-solved .lab-status { color: #166534; font-weight: 600; }
.lab-task.lab-task-fail .lab-status { color: #b45309; }
.lab-task.lab-task-busy .lab-status { color: #b45309; }
.lab-hint { background: #fef7ec; border-radius: 8px; padding: 8px 10px; }
.lab-hint b { color: #92400e; }
.lab-login { font-size: 13.5px; line-height: 1.5; color: #4b5674; border-top: 1px solid #e3e8f2; padding-top: 10px; }
.lab-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-size: 14.5px; color: #4b5674; }
.lab-pick select { font: inherit; color: #0f172a; border: 1px solid #e3e8f2; border-radius: 7px; padding: 6px 8px; background: #fff; max-width: 100%; }
.lab-term.lab-wait { visibility: hidden; }

.lab-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.lab-facts li { background: #f5f7fb; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; color: #4b5674; }
.lab-facts b { display: block; color: #0f172a; font-weight: 650; margin-bottom: 2px; }

.lab-more { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 44px; }
.lab-more h2 { font-size: 19px; font-weight: 700; }
.lab-more p { margin-top: 8px; color: #4b5674; line-height: 1.6; }
.lab-try { margin-top: 10px; background: #f5f7fb; border: 1px solid #e3e8f2; border-radius: 10px; padding: 12px 14px; font: 13px/1.7 "JetBrains Mono", ui-monospace, monospace; color: #0f172a; overflow-x: auto; }

.lab-credits { margin-block: 40px 56px; }
.lab-credits p { font-size: 13px; line-height: 1.7; color: #7480a0; border-top: 1px solid #e3e8f2; padding-top: 16px; }
.lab-credits a { color: #4b5674; }

@media (max-width: 640px) {
  .lab-head { padding-block: 32px 4px; }
  .lab-term { padding: 8px 2px 4px 6px; height: 62vh; }
}

/* Knopf in den Kurs-Tagen (course_chapter.html) */
.lab-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; max-width: 48rem; border: 1px solid #c7d4fb; background: #eaf0ff; border-radius: 12px; padding: 14px 16px; }
.lab-cta p { flex: 1 1 260px; min-width: 0; font-size: 14.5px; line-height: 1.5; color: #4b5674; }
.lab-cta p b { color: #0f172a; }
.lab-cta a { display: inline-flex; align-items: center; gap: 8px; font: 600 15px "Ubuntu Sans", system-ui, sans-serif; color: #fff; background: #2952e3; border-radius: 8px; padding: 10px 16px; text-decoration: none; white-space: nowrap; }
.lab-cta a:hover { background: #2244c4; color: #fff; }
.lab-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Kasten „Im Simulator üben“ (Hands-on-Simulator, app/simulator.py); steht er unter dem Linux-Kasten, rückt er heran */
.lab-cta--sim { border-color: #d6dbe8; background: #f5f7fb; }
.lab-cta + .lab-cta--sim { margin-top: 10px; }
.lab-cta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.lab-cta--sim a { white-space: normal; text-align: left; }
