/* Kennzahlen-Check (nur vertriebskennzahlen.html) */
.kc-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}
.kc-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.kc-form .ms-top .form-head { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.kc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.kc-form.kc-ready .kc-step:not(.is-active) { display: none; }
.kc-form.kc-ready .kc-step.is-active { animation: kcIn .35s var(--ease); }
.kc-form:not(.kc-ready) .ms-nav, .kc-form:not(.kc-ready) .ms-count, .kc-form:not(.kc-ready) .ms-bar, .kc-form:not(.kc-ready) .kc-skip { display: none; }
.kc-step .ms-q { margin-bottom: 12px; font-size: 1.3rem; line-height: 1.3; }
.kc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kc-tiles .ms-tile span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 76px; }
.kc-tiles .ms-tile small { font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.kc-label { display: block; font-size: 0.86rem; font-weight: 600; color: #c3cad9; margin-bottom: 8px; }
.kc-help { margin: 10px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.kc-help--top { margin: 0 0 16px; }
.kc-skip, .kc-restart {
  margin-top: 12px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 600 0.86rem var(--font-body); color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px;
}
.kc-restart { margin-top: 4px; align-self: center; }
.kc-error { margin: 12px 0 0; font-size: 0.86rem; color: #f0a191; }
.kc-error[hidden] { display: none; }
.kc-form .ms-nav [hidden] { display: none !important; }
.kc-input {
  display: flex; align-items: center;
  background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.kc-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.kc-input input {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font: 700 1.3rem var(--font-head);
  padding: 14px 6px 14px 16px;
}
.kc-input input::placeholder { color: #5d667a; }
.kc-unit { padding-right: 16px; font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.kc-privacy { margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }

.kc-result {
  position: sticky; top: 96px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(200, 163, 90, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
}
.kc-cover-label { margin: 0; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kc-cover-num { margin: 6px 0 10px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--gold-2); }
.kc-cover-num small { font-size: 1rem; font-weight: 600; color: var(--text); }
.kc-cover-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.kc-cover-bar span { display: block; height: 100%; width: 0; background: var(--gold-grad); border-radius: inherit; transition: width .5s var(--ease); }
.kc-cover-text { margin: 10px 0 0; font-size: 0.9rem; color: #c3cad9; }

.kc-ratios { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kc-ratios:empty { display: none; }
.kc-ratios li {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; min-width: 0; animation: kcIn .35s var(--ease);
}
.kc-ratios strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--text); line-height: 1.15; }
.kc-ratios span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }

.kc-hints { display: flex; flex-direction: column; gap: 10px; }
.kc-hint {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(200, 163, 90, 0.08); border: 1px solid rgba(200, 163, 90, 0.28);
  font-size: 0.88rem; line-height: 1.45; color: #d9deea; animation: kcIn .35s var(--ease);
}
.kc-hint::before { content: "!"; flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1407; font-weight: 800; font-size: 0.75rem; margin-top: 1px; }
.kc-hint--alarm { background: rgba(229, 115, 96, 0.1); border-color: rgba(229, 115, 96, 0.4); }
.kc-hint--alarm::before { background: #e57360; }
.kc-hint--ok::before { content: "✓"; }
.kc-hint strong { color: var(--text); }

.kc-actions { display: flex; flex-direction: column; gap: 10px; }
.kc-actions[hidden] { display: none; }
.kc-actions .btn { width: 100%; justify-content: center; }

.kc-formulas {
  margin-top: 32px; padding: 24px 28px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.kc-formulas h3 { margin: 0 0 12px; font-size: 1.05rem; }
.kc-formulas ul { margin: 0 0 12px; padding-left: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.kc-formulas li { color: #c3cad9; font-size: 0.9rem; }
.kc-formulas p { margin: 0; color: var(--muted); font-size: 0.88rem; }

@keyframes kcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kc-ratios li, .kc-hint { animation: none; } .kc-cover-bar span { transition: none; } }

@media (max-width: 999px) {
  .kc-tool { grid-template-columns: minmax(0, 1fr); }
  .kc-result { position: static; }
}
@media (max-width: 640px) {
  .kc-form, .kc-result { padding: 20px; }
  .kc-tiles { grid-template-columns: minmax(0, 1fr); }
  .kc-tiles .ms-tile span { min-height: 60px; }
  .kc-formulas { padding: 20px; }
  .kc-formulas ul { grid-template-columns: 1fr; }
}
.kc-ratios span { overflow-wrap: anywhere; hyphens: auto; }
.kc-done[hidden] { display: none; }
.kc-done { animation: kcIn .35s var(--ease); }
.kc-done .ms-q { margin-bottom: 10px; }

/* Kurz erklärt als Signal (rot) */
.sx-summary.kc-alert-summary {
  background: linear-gradient(160deg, rgba(229, 83, 61, 0.16), rgba(229, 83, 61, 0.06));
  border-color: rgba(239, 102, 80, 0.55);
  box-shadow: 0 18px 50px -22px rgba(229, 83, 61, 0.6);
}
.sx-summary.kc-alert-summary .sx-icon { background: rgba(239, 102, 80, 0.18); border-color: rgba(239, 102, 80, 0.5); color: #ff8a73; }
.sx-summary.kc-alert-summary p strong:first-child { color: #ff8a73; }

/* Sichtweite zentriert */
.kc-cover { text-align: center; }
.kc-cover-num { display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.kc-cover.is-critical .kc-cover-num { color: #ff7a63; }
.kc-cover.is-critical .kc-cover-bar span { background: linear-gradient(90deg, #ff8a73, #e5533d); }

/* Urteil nach dem letzten Schritt */
.kc-verdict[hidden] { display: none; }
.kc-verdict {
  border-radius: var(--radius); padding: 18px 18px 16px; text-align: center;
  background: rgba(200, 163, 90, 0.1); border: 1px solid rgba(200, 163, 90, 0.5);
  animation: kcIn .35s var(--ease);
}
.kc-verdict-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  padding: 6px 14px; border-radius: 99px; font: 800 0.78rem var(--font-head);
  letter-spacing: 0.08em; text-transform: uppercase; color: #1a1407; background: var(--gold-grad);
}
.kc-pulse { width: 10px; height: 10px; border-radius: 50%; background: currentColor; position: relative; flex: 0 0 auto; }
.kc-verdict-title { margin: 0 0 6px; font: 700 1.15rem/1.3 var(--font-head); color: var(--text); }
.kc-verdict-text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #d9deea; }
.kc-verdict.is-acute {
  background: linear-gradient(160deg, rgba(229, 83, 61, 0.22), rgba(229, 83, 61, 0.08));
  border-color: rgba(239, 102, 80, 0.75);
  animation: kcIn .35s var(--ease), kcGlow 2s ease-in-out infinite;
}
.kc-verdict.is-acute .kc-verdict-badge { background: #e5533d; color: #fff; }
.kc-verdict.is-acute .kc-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff;
  animation: kcPulse 1.4s ease-out infinite;
}
@keyframes kcPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }
@keyframes kcGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 83, 61, 0.0); }
  50% { box-shadow: 0 0 0 6px rgba(229, 83, 61, 0.22), 0 0 40px -6px rgba(229, 83, 61, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .kc-verdict.is-acute { animation: none; box-shadow: 0 0 0 3px rgba(229, 83, 61, 0.3); }
  .kc-verdict.is-acute .kc-pulse::after { animation: none; }
}

/* Insolvenz-Statistik in der Problem-Sektion */
.kc-stat {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 32px; align-items: center;
  margin: 8px 0 32px; padding: 30px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(229, 83, 61, 0.12), rgba(229, 83, 61, 0.03));
  border: 1px solid rgba(239, 102, 80, 0.4);
}
.kc-stat-big { margin: 0; font: 800 clamp(2.8rem, 6vw, 4.2rem)/1 var(--font-head); color: #ff7a63; }
.kc-stat-label { margin: 10px 0 0; font-weight: 600; color: var(--text); line-height: 1.4; }
.kc-stat-text p { margin: 0 0 12px; color: #c3cad9; line-height: 1.65; }
.kc-stat-text strong { color: var(--text); }
.kc-stat-text .kc-stat-source { margin: 0; font-size: 0.8rem; color: var(--muted); }
.kc-stat-source a { color: var(--gold-2); }
@media (max-width: 800px) {
  .kc-stat { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; text-align: left; }
}
.kc-actions .btn { white-space: normal; text-align: center; }
@media (max-width: 480px) {
  .kc-verdict-badge { white-space: nowrap; font-size: 0.7rem; letter-spacing: 0.05em; padding: 6px 12px; }
}
