/* ============================================================
   Website-Check (25.11.2026) — Gestaltung von /website-check
   Baut auf seite.css auf (Farben, Schriften, .recht-*, .fall-*, .gk-faq).
   Navy #14304E · Tiefnavy #101E30 · Blau #275B87 · Hellblau #9AC4E2.
   Ablauf: check.js. Vorlage: design/seiten/website-check.html.
   Die Note ist ein Ring aus fünf Bögen: Länge = Gewicht des Bereichs,
   Füllung = erreichte Punkte.
   ============================================================ */

/* ---- Kopf: Eingabe links, Note rechts ---- */
.ck-held { position: relative; overflow-x: clip; background: #14304E; color: #fff; padding: 40px 0 72px; }
.ck-held-innen { max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; display: grid; gap: 48px; }
.ck-eingabe { min-width: 0; }
.ck-held h1 {
  margin: 0 0 22px; font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0; font-size: clamp(56px, 11vw, 128px); line-height: 1.1;
}
.ck-lead { margin: 0 0 36px; max-width: 52ch; font-size: 19px; color: #C8D3DF; }

.ck-form { max-width: 640px; }
.ck-label { display: block; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #fff; }
.ck-zeile { display: flex; flex-direction: column; gap: 10px; }
.ck-feld {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 60px; padding: 0 20px; border: 0; border-radius: 0;
  background: #fff; color: #101E30; font-size: 18px; font-family: inherit; outline: none;
}
.ck-feld::placeholder { color: #8A96A8; opacity: 1; }
.ck-feld:focus-visible { outline: 3px solid #9AC4E2; outline-offset: 3px; }
.ck-feld[aria-invalid="true"] { box-shadow: inset 0 -4px 0 #FF8F7E; }
.ck-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; padding: 0 26px;
  border: 0; border-radius: 0; cursor: pointer; background: #9AC4E2; color: #14304E;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: background .16s ease;
}
.ck-knopf:hover { background: #CBDFEE; }
.ck-knopf:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ck-knopf svg { flex: none; transition: transform .2s ease; }
@media (hover: hover) { .ck-knopf:hover svg { transform: translateX(3px); } }
.ck-knopf:disabled { cursor: progress; background: #7FA9C8; }
.ck-knopf:disabled svg { display: none; }
@media (min-width: 600px) {
  .ck-zeile { flex-direction: row; gap: 0; }
  .ck-knopf--seite, .ck-zeile .ck-knopf { flex: none; }
}
.ck-hinweis { margin: 12px 0 0; font-size: 14px; color: rgba(255,255,255,.66); }
.ck-noscript { margin: 20px 0 0; color: #fff; }
.ck-noscript a { color: #fff; text-decoration-color: #9AC4E2; }

/* Fehler: helle Fläche auf dem Navy, Weg weiter immer dabei */
.ck-fehler { margin-top: 24px; max-width: 640px; padding: 18px 20px; background: #FEF3F2; border-left: 4px solid #B42318; color: #7A271A; }
.ck-fehler-text { margin: 0; font-size: 17px; line-height: 1.5; }
.ck-fehler-weg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.ck-knopf-leise {
  min-height: 48px; padding: 0 20px; border: 0; cursor: pointer; background: #14304E; color: #fff;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 15px; transition: background .16s ease;
}
.ck-knopf-leise:hover { background: #101E30; }
.ck-knopf-leise[hidden] { display: none; }
.ck-fehler a { display: inline-flex; align-items: center; min-height: 48px; color: #7A271A; font-weight: 600; text-decoration-color: #B42318; }
.ck-fehler a:hover { color: #101E30; }
.ck-fehler :focus-visible { outline-color: #275B87; }

/* ---- Die Note ---- */
.ck-note {
  --ck-akzent: #9AC4E2;
  min-width: 0; text-align: center; scroll-margin-top: 12px;
}
.ck-note[data-stufe="stark"] { --ck-akzent: #7BDCB5; }
.ck-note[data-stufe="solide"] { --ck-akzent: #9AC4E2; }
.ck-note[data-stufe="luecken"] { --ck-akzent: #F2B35E; }
.ck-note[data-stufe="veraltet"] { --ck-akzent: #FF9A8A; }
/* Am Handy erst sichtbar, wenn es etwas zu zeigen gibt */
@media (max-width: 899px) {
  .ck-held[data-zustand="bereit"] .ck-note, .ck-held[data-zustand="fehler"] .ck-note { display: none; }
}

.ck-ring-box { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; }
.ck-ring { display: block; width: 100%; height: 100%; overflow: visible; }
.ck-bahn, .ck-fuell, .ck-scan { fill: none; stroke-width: 14; stroke-linecap: butt; }
.ck-bahn { stroke: rgba(255,255,255,.14); }
.ck-fuell { stroke: var(--ck-akzent); transition: stroke-dasharray .5s cubic-bezier(.22,.61,.36,1), stroke .3s ease, opacity .2s ease; }
.ck-bahn { transition: opacity .2s ease; }
.ck-boegen[data-fokus="0"] circle:not([data-i="0"]), .ck-boegen[data-fokus="1"] circle:not([data-i="1"]),
.ck-boegen[data-fokus="2"] circle:not([data-i="2"]), .ck-boegen[data-fokus="3"] circle:not([data-i="3"]),
.ck-boegen[data-fokus="4"] circle:not([data-i="4"]) { opacity: .3; }
.ck-scan { stroke: #9AC4E2; stroke-dasharray: 7 93; stroke-dashoffset: 0; opacity: 0; }
.ck-held[data-zustand="laeuft"] .ck-scan { opacity: 1; animation: ck-lauf 1.5s linear infinite; }
@keyframes ck-lauf { to { stroke-dashoffset: -100; } }

.ck-zahl-box {
  position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.ck-zahl {
  font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400; font-size: clamp(80px, 24vw, 112px); line-height: 1;
  letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums;
}
.ck-held[data-zustand="bereit"] .ck-zahl, .ck-held[data-zustand="fehler"] .ck-zahl { color: rgba(255,255,255,.32); }
.ck-von { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.66); }

.ck-status { margin: 22px auto 0; max-width: 30ch; font-size: 16px; color: rgba(255,255,255,.78); }
.ck-note[data-stufe] .ck-status {
  max-width: none; font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 4vw, 40px); line-height: 1.1; color: var(--ck-akzent);
}
.ck-stufe-satz { margin: 6px auto 0; max-width: 30ch; font-size: 18px; color: #fff; }

/* Gedeckelte Stufe: der Grund steht direkt bei der Note, damit Zahl und Einstufung nicht widersprüchlich wirken */
.ck-deckel { margin: 14px auto 0; max-width: 34ch; padding: 12px 14px; text-align: left; font-size: 15px; line-height: 1.45; color: #fff; background: rgba(255,255,255,.08); border-left: 3px solid var(--ck-akzent); }
.ck-deckel[hidden] { display: none; }
.ck-legende { list-style: none; margin: 26px auto 0; padding: 0; width: min(100%, 320px); text-align: left; }
.ck-legende li {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 15px; color: rgba(255,255,255,.72);
}
.ck-legende li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.ck-leg-wert { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.5); }
.ck-legende li[data-fertig] .ck-leg-wert { color: #fff; font-weight: 600; }
.ck-legende li[data-fertig] .ck-leg-name { color: #fff; }
.ck-zu-befunden {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px;
  color: #fff; font-weight: 600; font-size: 16px; text-decoration-color: #9AC4E2; text-underline-offset: 4px;
}
.ck-zu-befunden:hover { color: #9AC4E2; }
.ck-zu-befunden[hidden] { display: none; }

@media (min-width: 900px) {
  .ck-held { padding: 48px 0 96px; }
  .ck-held-innen { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 72px; }
  .ck-ring-box { width: min(100%, 340px); }
}

/* ---- Ergebnis ---- */
.ck-ergebnis { background: #F7F7F7; padding: 64px 0 8px; }
.ck-ergebnis-innen { max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.ck-ergebnis.ck-rein .ck-ergebnis-innen { animation: ck-rein .55s cubic-bezier(.22,.61,.36,1) both; }
@keyframes ck-rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ck-ergebnis :focus-visible, .ck-inhalt :focus-visible { outline-color: #275B87; }
.ck-ergebnis .ck-angebot :focus-visible { outline-color: #9AC4E2; }

.ck-ergebnis-kopf h2 {
  margin: 0 0 14px; font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.1; letter-spacing: 0; overflow-wrap: anywhere;
}
.ck-ergebnis-kopf h2:focus { outline: none; }
.ck-stufe-lang { margin: 0 0 24px; max-width: 60ch; font-size: 19px; color: #3E4A5C; }
.ck-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0 0 28px; max-width: 760px; font-size: 15px; }
.ck-meta dt { color: #5E6B7E; }
.ck-meta dd { margin: 0; color: #101E30; overflow-wrap: anywhere; }
.ck-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ck-knopf-hell {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; cursor: pointer;
  background: #fff; color: #101E30; border: 1px solid #C5CED8; border-radius: 0;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 15px; transition: border-color .16s ease, background .16s ease;
}
.ck-knopf-hell:hover { border-color: #275B87; }
.ck-knopf-hell[data-kopiert="1"] { background: #E6F4EC; border-color: #1E7A4C; color: #14573A; }
.ck-knopf-hell svg { flex: none; }
.ck-link-dunkel { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; font-size: 15px; }

.ck-spalten { display: grid; gap: 48px; margin-top: 48px; padding-top: 44px; border-top: 1px solid #E2E6EC; }
.ck-h {
  margin: 0 0 22px; font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: 0; color: #101E30;
}
.ck-links, .ck-rechts { min-width: 0; }
@media (min-width: 900px) {
  .ck-spalten { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

.ck-wichtig { list-style: none; margin: 0; padding: 0; counter-reset: ck; display: grid; gap: 10px; }
.ck-w, .ck-wichtig-leer {
  position: relative; padding: 18px 22px 20px 66px; background: #fff; border: 1px solid #E4E8ED;
  box-shadow: 0 1px 2px rgba(16,30,48,.04), 0 14px 32px -22px rgba(16,30,48,.34);
}
.ck-wichtig-leer { padding-left: 22px; color: #3E4A5C; }
.ck-w { counter-increment: ck; }
.ck-w::before {
  content: counter(ck); position: absolute; left: 20px; top: 14px;
  font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-size: 38px; line-height: 1.1; color: #275B87;
}
.ck-w-gruppe { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #B42318; }
.ck-w-titel { display: block; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; color: #101E30; }
.ck-w-text { margin: 6px 0 0; font-size: 16px; color: #3E4A5C; }

.ck-gruppe { background: #fff; border: 1px solid #E4E8ED; margin-bottom: 10px; }
.ck-g-kopf {
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; column-gap: 14px; row-gap: 10px;
  padding: 18px 22px; cursor: pointer; min-height: 44px;
}
.ck-g-kopf:focus-visible { outline: 2px solid #275B87; outline-offset: -2px; }
.ck-g-oben { grid-column: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ck-g-name { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: #101E30; }
.ck-g-wert { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; color: #101E30; white-space: nowrap; }
.ck-g-balken { grid-column: 1; display: block; height: 8px; background: #E6EAEF; overflow: hidden; }
.ck-g-balken i { display: block; height: 100%; width: var(--p, 0%); background: #275B87; transform-origin: left; }
.ck-ergebnis.ck-rein .ck-g-balken i { animation: ck-fuellen .9s cubic-bezier(.22,.61,.36,1) .2s both; }
@keyframes ck-fuellen { from { transform: scaleX(0); } to { transform: none; } }
.ck-g-unten { grid-column: 1; font-size: 14px; color: #5E6B7E; }
.ck-g-pfeil { grid-column: 2; grid-row: 1 / span 3; justify-self: end; color: #5E6B7E; transition: transform .2s ease; }
.ck-gruppe[open] .ck-g-pfeil { transform: rotate(180deg); }

.ck-punkte { list-style: none; margin: 0; padding: 0 22px 8px; }
.ck-punkt { display: grid; gap: 6px 16px; padding: 14px 0 16px; border-top: 1px solid #E4E8ED; }
@media (min-width: 640px) { .ck-punkt { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.ck-stand { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ck-stand-icon { flex: none; margin-top: 1px; }
.ck-punkt[data-stand="ok"] .ck-stand { color: #1E7A4C; }
.ck-punkt[data-stand="mangel"] .ck-stand { color: #B42318; }
.ck-punkt[data-stand="hinweis"] .ck-stand { color: #275B87; }
.ck-punkt[data-stand="unbekannt"] .ck-stand { color: #5E6B7E; }
.ck-p-inhalt { min-width: 0; }
.ck-p-inhalt strong { display: block; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 16px; color: #101E30; }
.ck-p-inhalt p { margin: 3px 0 0; font-size: 15px; color: #3E4A5C; }
.ck-grenze { margin: 18px 0 0; font-size: 14px; color: #5E6B7E; max-width: 56ch; }

/* ---- Angebot ---- */
.ck-angebot { display: grid; gap: 36px; margin-top: 56px; padding: 44px; border-radius: 12px; background: #101E30; color: #fff; }
.ck-angebot-text, .ck-angebot-form { min-width: 0; }
.ck-angebot h2 {
  margin: 0 0 14px; font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; letter-spacing: 0;
}
.ck-angebot p { margin: 0; color: rgba(255,255,255,.78); }
.ck-angebot .fall-weiter-marke { margin: 0 0 18px; color: #9AC4E2; }
.ck-angebot-text p + p { margin-top: 14px; }
.ck-angebot .ck-angebot-klein { font-size: 15px; color: rgba(255,255,255,.62); }
.ck-angebot a { color: #fff; text-decoration-color: #9AC4E2; text-underline-offset: 3px; }
.ck-angebot a:hover { color: #9AC4E2; }
.ck-fl { display: grid; gap: 7px; margin: 0 0 16px; }
.ck-fl label { font-size: 14px; font-weight: 600; color: #fff; }
.ck-fl em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.62); }
.ck-fl input {
  box-sizing: border-box; width: 100%; min-height: 54px; padding: 12px 16px; border: 0; border-radius: 0; outline: none;
  background: #fff; color: #101E30; font-size: 17px; font-family: inherit;
}
.ck-fl input:focus-visible { outline: 3px solid #9AC4E2; outline-offset: 3px; }
.ck-fl input[aria-invalid="true"] { box-shadow: inset 0 -4px 0 #B42318; }
.ck-angebot .formular-meldung { margin: 0 0 16px; color: #7A271A; }
.ck-angebot .formular-meldung a { color: #7A271A; }
.ck-knopf--voll { width: 100%; min-height: 56px; padding: 12px 24px; white-space: normal; text-align: left; justify-content: space-between; }
.ck-knopf--voll span { min-width: 0; overflow-wrap: anywhere; }
.ck-angebot .ck-a-hinweis { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.66); }
.ck-angebot .ck-a-weg { margin-top: 18px; font-size: 15px; }
.ck-danke { padding: 20px 22px; background: rgba(255,255,255,.08); border-left: 3px solid #9AC4E2; font-size: 17px; line-height: 1.5; color: #fff !important; }
.ck-danke:focus { outline: none; }
@media (min-width: 900px) {
  .ck-angebot { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
}

/* ---- Inhalt darunter ---- */
.ck-inhalt { padding-top: 56px; }

/* ---- Schmale Handys ---- */
@media (max-width: 480px) {
  .ck-held-innen, .ck-ergebnis-innen { padding-left: 20px; padding-right: 20px; }
  .ck-angebot { padding: 28px 22px; }
  .ck-g-kopf { padding: 16px 16px; }
  .ck-punkte { padding: 0 16px 6px; }
  .ck-w { padding-left: 58px; }
  .ck-w::before { left: 16px; }
  .ck-meta { grid-template-columns: 1fr; gap: 0; }
  .ck-meta dd { margin-bottom: 10px; }
  .ck-knopf-hell { width: 100%; justify-content: center; }
}

/* ---- Bewegung reduzieren: alles steht sofort fertig da ---- */
@media (prefers-reduced-motion: reduce) {
  .ck-fuell, .ck-bahn, .ck-g-pfeil, .ck-knopf svg { transition: none; }
  .ck-scan, .ck-held[data-zustand="laeuft"] .ck-scan { animation: none; opacity: 0; }
  .ck-ergebnis.ck-rein .ck-ergebnis-innen, .ck-ergebnis.ck-rein .ck-g-balken i { animation: none; }
}
