/* Einrichtungsassistent – nutzt die Variablen aus dashboard.css. Ebenfalls Safari-12-tauglich. */
body.setup { overflow: auto; }
.setup-title { font-size: 28px; font-weight: 300; }
.setup-notice { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.wizard { display: flex; max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; align-items: flex-start; }
.steps { width: 230px; flex-shrink: 0; margin-right: 16px; background: var(--panel); border-radius: var(--radius); padding: 8px; }
.step-link { display: flex; align-items: center; padding: 11px 10px; border-radius: 10px; cursor: pointer; }
.step-link + .step-link { margin-top: 2px; }
.step-link.active { background: var(--panel-2); }
.step-link .num { width: 26px; height: 26px; line-height: 26px; flex-shrink: 0; margin-right: 10px; border-radius: 50%; text-align: center; font-size: 13px; background: var(--panel-2); color: var(--muted); }
.step-link.active .num { background: var(--accent); color: #fff; }
.step-link.done .num { background: var(--green); color: #fff; }
.step-link.err .num { background: var(--red); color: #fff; }
.step-link .t { font-size: 14px; }
.step-link .s { font-size: 11px; color: var(--muted); }

.step-content { flex: 1; min-width: 0; background: var(--panel); border-radius: var(--radius); padding: 18px 20px; }
.step-content h2 { margin: 0 0 4px; font-size: 22px; font-weight: 400; color: var(--text); text-transform: none; letter-spacing: 0; padding: 0; display: block; }
.step-content .intro { color: var(--muted); margin-bottom: 16px; }

.todo { display: flex; padding: 12px 0; border-top: 1px solid var(--line); }
.todo .mark { width: 28px; flex-shrink: 0; font-size: 18px; line-height: 22px; }
.todo .mark.ok { color: var(--green); }
.todo .mark.open { color: var(--sun); }
.todo .mark.err { color: var(--red); }
.todo .body { flex: 1; min-width: 0; }
.todo .title { font-weight: 500; margin-bottom: 4px; }
.todo .sub { color: var(--muted); font-size: 13px; }
.howto { margin: 8px 0; padding: 10px 12px 10px 30px; background: var(--panel-2); border-radius: 8px; font-size: 13px; }
.howto li + li { margin-top: 4px; }
.link-btn { display: inline-block; margin: 6px 8px 4px 0; padding: 7px 12px; border-radius: 8px; background: rgba(79, 156, 249, .15); color: var(--accent); text-decoration: none; font-size: 13px; }

.inline { display: flex; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.inline input[type=text], .inline input[type=password], .inline input[type=number], .step-content textarea {
  padding: 9px 11px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; -webkit-appearance: none;
}
.inline input { flex: 1; min-width: 160px; margin: 0 8px 8px 0; }
.inline .btn { margin: 0 8px 8px 0; }
.step-content textarea { width: 100%; min-height: 110px; font-family: Menlo, monospace; font-size: 12px; margin-top: 8px; }
.checks label { display: block; padding: 6px 0; }
.checks input { margin-right: 8px; }

a.btn, a.btn:visited { color: inherit; text-decoration: none; }
.btn.primary { width: auto; font-size: 15px; padding: 9px 16px; }
.btn[disabled] { opacity: .5; }
.nav-buttons { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.result { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); font-size: 13px; }
.result.ok { border-left: 4px solid var(--green); }
.result.fail { border-left: 4px solid var(--red); }
.result ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }

.dev-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.dev-table td, .dev-table th { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dev-table th { color: var(--muted); font-weight: 500; }

.warn { padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: rgba(245, 184, 46, .12); color: var(--sun); font-size: 14px; }

@media (max-width: 760px) {
  .wizard { display: block; }
  .steps { width: auto; margin: 0 0 12px; }
}

.step-content select, .dev-table select {
  padding: 9px 11px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; margin: 0 8px 8px 0;
}

/* Kalender: Auswahl links, Farbwähler rechts neben dem Namen */
.cal-list { max-width: 460px; }
.cal-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cal-row label { flex: 1; padding: 10px 0; }
.cal-color { width: 52px; height: 36px; padding: 0 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; }
.topright .btn + .btn { margin-left: 8px; }

/* Bewegungserkennung je Kamera */
.num-input { width: 90px; }
.switch-label { white-space: nowrap; }
.switch-label input { width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; }

.inline label { margin-right: 16px; white-space: nowrap; }
.check-row { display: block; padding: 8px 0; font-size: 16px; }
.check-row input { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
