/* KI-Sichtbarkeits-Check (/ki-check/). Black Edition, helle Variante über html.tk-white.
   Bewegung nur über transform/opacity, kurze Dauern, „Bewegung reduzieren“ wird respektiert. */

/* ---------- Kopf mit Eingabe ---------- */
.kc-hero.ew-hero { padding: 112px 0 56px; text-align: center; }
.kc-hero .br-crumbs, html.tk-black .kc-hero .label { justify-content: center; }
.kc-hero h1 { max-width: 19ch; margin-left: auto; margin-right: auto; font-size: clamp(2rem, 5.2vw, 3.7rem); }
html.tk-black .kc-hero h1 { line-height: 1.14; }
.kc-hero .lead { max-width: 58ch; margin-left: auto; margin-right: auto; }
@media (max-width: 680px) {
  .kc-hero.ew-hero { padding: 56px 0 36px; }
  .kc-hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); }
}

.kc-form { position: relative; display: flex; gap: 10px; max-width: 640px; margin: 34px auto 0; padding: 8px; border-radius: 20px;
  border: 1px solid rgba(255,90,31,.45); background: var(--bk-glass), var(--surface); box-shadow: var(--bk-glow); }
.kc-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; }
.kc-field svg { width: 22px; height: 22px; flex: none; color: var(--hot); }
.kc-field input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; color: var(--text); font: 500 17px/1.2 var(--body); }
.kc-field input::placeholder { color: var(--muted); opacity: .8; }
.kc-form:focus-within { border-color: var(--hot); }
.kc-go { flex: none; min-height: 52px; padding: 0 24px; border-radius: 14px; }
.kc-go[disabled] { opacity: .75; cursor: progress; }
@media (max-width: 560px) {
  .kc-form { flex-direction: column; padding: 8px; border-radius: 18px; }
  .kc-field { padding: 0 8px; }
  .kc-go { width: 100%; justify-content: center; }
}
.kc-note { margin: 14px 0 0; font: 500 .78rem/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.kc-err { max-width: 640px; margin: 14px auto 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,122,122,.4); background: rgba(255,122,122,.08); color: var(--text); font-size: .95rem; text-align: left; }
.kc-err[hidden] { display: none; }

/* ---------- Drei Kacheln: Google, Maps, KI ---------- */
.kc-tiles { list-style: none; padding: 0; margin: 40px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kc-tile { position: relative; display: grid; justify-items: center; gap: 10px; padding: 22px 12px 18px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bk-glass), var(--surface); box-shadow: var(--bk-edge); }
.kc-tile__ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: var(--hot);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.01)); border: 1px solid rgba(255,90,31,.35);
  box-shadow: 0 14px 30px -14px rgba(255,90,31,.55), inset 0 1px 0 rgba(255,255,255,.1); transform: perspective(300px) rotateX(10deg); }
.kc-tile__ico svg { width: 30px; height: 30px; }
.kc-tile b { font: 700 1rem/1.2 var(--body); color: var(--text); }
.kc-tile small { font: 500 .74rem/1.4 var(--mono); color: var(--muted); }
.kc-tile__bar { width: 100%; max-width: 150px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.kc-tile__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.kc-tile__bar[hidden], .kc-tile__pct[hidden] { display: none; }
.kc-tile__pct { font: 600 1.4rem/1 var(--mono); color: var(--text); }
@media (max-width: 560px) {
  .kc-tiles { gap: 8px; margin-top: 28px; }
  .kc-tile { padding: 16px 6px 14px; border-radius: 16px; gap: 8px; }
  .kc-tile__ico { width: 50px; height: 50px; border-radius: 15px; }
  .kc-tile__ico svg { width: 25px; height: 25px; }
  .kc-tile b { font-size: .86rem; }
  .kc-tile small { display: none; }
  .kc-tile__pct { font-size: 1.15rem; }
}
/* Prüfen läuft: Kacheln leuchten nacheinander auf */
.kc-busy .kc-tile__ico { animation: kc-puls 1.5s ease-in-out infinite; }
.kc-busy .kc-tile:nth-child(2) .kc-tile__ico { animation-delay: .25s; }
.kc-busy .kc-tile:nth-child(3) .kc-tile__ico { animation-delay: .5s; }
@keyframes kc-puls { 0%, 100% { transform: perspective(300px) rotateX(10deg); opacity: 1; } 50% { transform: perspective(300px) rotateX(10deg) translateY(-6px); opacity: .7; } }
.kc-step { min-height: 1.5em; margin: 16px 0 0; font: 500 .82rem/1.5 var(--mono); color: var(--hot); }
@media (prefers-reduced-motion: reduce) {
  .kc-busy .kc-tile__ico { animation: none; }
  .kc-tile__bar i { transition: none; }
}

/* ---------- Ergebnis ---------- */
html.tk-black .section.kc-res { padding: 24px 0 96px; }
.kc-res[hidden] { display: none; }
.kc-res { scroll-margin-top: 84px; }
.kc-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--bk-glass), var(--surface); box-shadow: var(--bk-edge); }
.kc-ring { position: relative; width: 148px; height: 148px; }
.kc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kc-ring circle { fill: none; stroke-width: 10; }
.kc-ring .kc-ring__bg { stroke: var(--line-2); }
.kc-ring .kc-ring__fg { stroke: var(--hot); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.kc-ring__n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 600 2.6rem/1 var(--mono); color: var(--text); }
.kc-ring__n small { display: block; margin-top: 4px; font: 500 .72rem/1 var(--mono); color: var(--muted); }
.kc-sum__host { margin: 0 0 6px; font: 500 .78rem/1.4 var(--mono); color: var(--muted); word-break: break-all; }
html.tk-black .kc-sum h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.kc-sum p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 680px) {
  .kc-sum { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 16px; gap: 16px; }
  .kc-ring { width: 128px; height: 128px; }
}
@media (prefers-reduced-motion: reduce) { .kc-ring .kc-ring__fg { transition: none; } }

.kc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 960px) { .kc-groups { grid-template-columns: 1fr; } }
.kc-group { padding: 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bk-glass), var(--surface); box-shadow: var(--bk-edge); }
@media (max-width: 680px) { .kc-group { padding: 18px 16px; } }
.kc-group__h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.kc-group__h svg { width: 22px; height: 22px; color: var(--hot); flex: none; }
.kc-group__h h3 { margin: 0; flex: 1; font: 700 1.05rem/1.2 var(--body); }
.kc-group__h span { font: 600 1rem var(--mono); color: var(--text); white-space: nowrap; }
.kc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kc-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.kc-item b { display: block; font: 700 .95rem/1.35 var(--body); color: var(--text); }
.kc-item p { margin: 3px 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.kc-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; }
.kc-dot svg { width: 13px; height: 13px; }
.kc-dot--ok { color: #0b0b0c; background: #5fd38d; }
.kc-dot--halb { color: #0b0b0c; background: #ffc163; }
.kc-dot--fehlt { color: #fff; background: var(--hot); }
.kc-okay { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.kc-okay summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font: 600 .88rem var(--body); color: var(--muted); min-height: 32px; }
.kc-okay summary::-webkit-details-marker { display: none; }
.kc-okay summary::after { content: "+"; margin-left: auto; font: 500 1.1rem var(--mono); }
.kc-okay[open] summary::after { content: "–"; }
.kc-okay .kc-list { margin-top: 10px; }

.kc-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 16px; padding: 26px 28px; border-radius: 22px;
  border: 1px solid rgba(255,90,31,.45); background: linear-gradient(120deg, rgba(255,90,31,.12), rgba(255,90,31,.02) 60%), var(--surface); }
.kc-next h3 { margin: 0 0 6px; font: 700 1.2rem/1.3 var(--body); }
.kc-next p { margin: 0; color: var(--muted); max-width: 62ch; }
.kc-next__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.kc-again { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--muted); font: 600 .9rem var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
@media (max-width: 760px) {
  .kc-next { grid-template-columns: 1fr; padding: 20px 16px; }
  .kc-next__btns { justify-content: stretch; }
  .kc-next__btns .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Was geprüft wird ---------- */
.kc-what { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .kc-what { grid-template-columns: 1fr; } }
.kc-what > li { padding: 24px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bk-glass), var(--surface); box-shadow: var(--bk-edge); }
.kc-what h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 1.1rem/1.2 var(--body); }
.kc-what h3 svg { width: 22px; height: 22px; color: var(--hot); }
.kc-what ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kc-what ul li { position: relative; padding-left: 18px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.kc-what ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--hot); transform: rotate(45deg); }
.kc-honest { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: .95rem; }
.kc-honest b { color: var(--text); }

/* ---------- Helle Variante ---------- */
html.tk-white .kc-form { background: #fff; }
html.tk-white .kc-tile, html.tk-white .kc-sum, html.tk-white .kc-group, html.tk-white .kc-what > li { background: #fff; border-color: rgba(28,20,12,.12); }
html.tk-white .kc-tile__ico { background: linear-gradient(160deg, #fff, #f6f1ea); box-shadow: 0 14px 28px -14px rgba(255,90,31,.5), inset 0 1px 0 #fff; }
html.tk-white .kc-next { background: linear-gradient(120deg, rgba(255,90,31,.1), rgba(255,90,31,.02) 60%), #fff; }
html.tk-white .kc-err { background: #fff3f1; border-color: rgba(200,60,40,.35); }
html.tk-white .kc-dot--ok { background: #2fae63; color: #fff; }
html.tk-white .kc-dot--halb { background: #e6a321; color: #fff; }
