/* ==========================================================
   KzT Solarrechner – SL Rack Wizard
   ========================================================== */
.stepper { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: s; }
.stepper li {
  display: flex; align-items: center; gap: .55rem; cursor: pointer;
  padding: .7rem .9rem; border-radius: 14px; font-weight: 600; font-size: .92rem;
  background: var(--sand); color: var(--muted); border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.stepper li span {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--white); color: var(--blue-dark); font-size: .85rem;
}
.stepper li.is-done { color: var(--blue-dark); }
.stepper li.is-done span { background: var(--blue); color: var(--white); }
.stepper li.is-active { background: var(--blue-dark); color: var(--white); }
.stepper li.is-active span { background: var(--yellow); color: var(--blue-deep); }

.step { display: none; }
.step.is-active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.step > h2 { margin-bottom: 1.2rem; }

.choice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.choice-grid--prod { grid-template-columns: repeat(3, 1fr); }
.choice {
  position: relative; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid rgba(20, 34, 53, .1); border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.choice:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.choice.is-sel { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 109, 176, .15); }
.choice.is-sel::after {
  content: "✓"; position: absolute; top: .7rem; right: .8rem; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: var(--white); display: grid; place-items: center; font-size: .8rem;
}
.choice__icon { font-size: 1.6rem; margin-bottom: .4rem; }
.choice b { display: block; font-size: .95rem; line-height: 1.3; margin-bottom: .25rem; padding-right: 1.6rem; }
.choice small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.choice .tag { margin-top: .5rem; }
.choice a.sl-link { display: inline-block; margin-top: .55rem; font-size: .8rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.choice a.sl-link:hover { text-decoration: underline; }

.check { display: flex !important; align-items: center; gap: .5rem; font-size: .9rem !important; color: var(--ink) !important; font-weight: 500 !important; margin-bottom: .4rem !important; cursor: pointer; }
.check input { width: auto !important; accent-color: var(--blue); }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 2rem; gap: 1rem; }
.wizard-nav button { cursor: pointer; font: inherit; }
.wizard-nav button[disabled] { opacity: .35; pointer-events: none; }

table.bom a { color: var(--blue); text-decoration: none; font-weight: 600; }
table.bom a:hover { text-decoration: underline; }
table.bom tr.grp td { background: var(--sand); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.sl-cta {
  margin-top: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep)); color: var(--white);
  border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.sl-cta h3 { color: var(--white); margin-bottom: .3rem; }
.sl-cta p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 40rem; }
.sl-cta__btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--blue-dark); box-shadow: none; }

/* Sortiment */
.kat { margin-top: 2.4rem; }
.kat h3 { color: var(--blue-dark); display: flex; align-items: center; gap: .6rem; }
.kat h3 a { font-size: .8rem; font-weight: 600; color: var(--red); text-decoration: none; }
.kat ul { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kat li { background: var(--white); border: 1px solid rgba(20, 34, 53, .08); border-radius: 12px; padding: .75rem 1rem; }
.kat li a { font-weight: 600; color: var(--ink); text-decoration: none; font-size: .92rem; }
.kat li a:hover { color: var(--blue); }
.kat li small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; margin-top: .15rem; }

/* 8 Schritte, Checklisten, Vergleich */
.stepper--8 { grid-template-columns: repeat(8, 1fr); }
.stepper--4 { grid-template-columns: repeat(4, 1fr); }
#rechner { scroll-margin-top: 70px; }
.planer-leiste { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.planer-leiste__titel { background: var(--blue-dark); color: var(--white); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; font-size: .95rem; }
.hint.ok { border-color: #1E7B3C; background: #edf8f0; }
.hint .btn--small { margin-left: .4rem; }
#kosten .hint { margin-top: .8rem; }
.stepper li[hidden] { display: none; }
.stepper li { cursor: pointer; }
.kosten-tab td:last-child, .kosten-tab th:last-child { text-align: right; white-space: nowrap; }
.kosten-tab tr.sum td { font-weight: 700; border-top: 2px solid var(--blue-dark); background: #eaf2fb; }
.kosten-tab tr.sum td b { font-size: 1.25rem; }
.stepper--8 li { padding: .6rem .6rem; font-size: .85rem; }
h3.sub { color: var(--blue-dark); margin: 0 0 .8rem; }
.pair { display: flex; gap: .5rem; }
.pair .unit { flex: 1; }
.pair .unit input { padding-right: 4.2rem; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.check-card { background: var(--white); border: 1px solid rgba(20, 34, 53, .08); border-radius: var(--radius); padding: 1.3rem 1.3rem 1rem; }
.check-card h3 { display: flex; align-items: center; gap: .5rem; color: var(--blue-dark); font-size: 1.02rem; }
.check-card .prog { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 600; }
.check-item { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-top: 1px dashed var(--sand-dark); cursor: pointer; font-size: .9rem; line-height: 1.45; }
.check-item input { margin-top: .25rem; accent-color: var(--blue); flex: none; width: 16px; height: 16px; }
.check-item small { display: block; color: var(--muted); font-size: .78rem; }
.check-item a { color: var(--blue); }
.check-item.is-done > span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(91, 102, 118, .5); }
.check-list .check-item:first-child { border-top: 0; }
table.who td.ok { color: #1E7B3C; font-weight: 700; }
table.who td.no { color: var(--red); font-weight: 700; }
table.who td.mid { color: #A36A00; font-weight: 600; }
table.who td small { display: block; font-weight: 400; color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cmp { cursor: pointer; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 2px solid rgba(20, 34, 53, .1); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.cmp.is-sel { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 109, 176, .15); }
.cmp b { font-size: 1.6rem; color: var(--blue-dark); display: block; line-height: 1.1; }
.cmp span { font-size: .85rem; color: var(--muted); }
.cmp .best { display: inline-block; margin-left: .4rem; font-size: .7rem; background: var(--yellow); color: var(--blue-deep); padding: .1rem .5rem; border-radius: 999px; font-weight: 700; vertical-align: middle; }
.lg-rand { background: rgba(232, 53, 42, .18); }
.dot-y { background: #F7EA3A; }
.checks-out { list-style: none; padding: 0; margin: 0; }
.checks-out li { display: flex; gap: .6rem; padding: .55rem 0; border-top: 1px dashed var(--sand-dark); font-size: .9rem; line-height: 1.45; }
.checks-out li:first-child { border-top: 0; }
.checks-out i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--white); }
.checks-out .ok i { background: #1E7B3C; }
.checks-out .warn i { background: #E0A100; }
.checks-out .bad i { background: var(--red); }
.choice.is-off { opacity: .45; }
.choice.is-off .tag { background: rgba(232, 53, 42, .12); color: var(--red); }

@media (max-width: 1000px) {
  .check-grid { grid-template-columns: 1fr 1fr; }
  .stepper--8 { grid-template-columns: repeat(4, 1fr); }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .choice-grid--prod, .kat ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .check-grid, .compare { grid-template-columns: 1fr; }
  .stepper--8 { grid-template-columns: repeat(4, 1fr); }
  .stepper { grid-template-columns: repeat(5, 1fr); }
  .stepper li { flex-direction: column; font-size: .7rem; padding: .5rem .2rem; gap: .25rem; text-align: center; }
  .choice-grid, .choice-grid--prod, .kat ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .choice-grid, .choice-grid--prod, .kat ul { grid-template-columns: 1fr; }
}

@media print {
  .page-sl .stepper, .page-sl .wizard-nav, .page-sl .step .lead { display: none !important; }
  .page-sl .step { display: none !important; }
  .page-sl .step[data-step="3"], .page-sl .step[data-step="5"], .page-sl .step[data-step="6"] { display: block !important; break-inside: avoid; }
  .page-sl .step[data-step="3"] .panel:first-child, .page-sl .compare { display: none !important; }
  .page-sl .step[data-step="3"] .calc { grid-template-columns: 1fr; }
  table.bom a { color: var(--ink); }
}
