/*!
 * DD Website-Check – Formular, Fortschritt, Ergebnis.
 * CI v15: Tinte #111827, Gelb #FFE500, Blau #2A67BF, Grautext #4B5563, Linien #E5E7EB, Grund #F3F4F6.
 * Formular-Optik wie .dd-form (CF7-Standard): Beschriftung 14 px/600, Felder 50 px hoch, Rahmen #8A919E, Radius 10 px.
 * Größen in px (html steht auf dem Handy bei 12 px). Schriftstärken nur 400/500/600.
 * Alle Regeln mit .dwc davor: das Theme setzt in .dd-page Abstände auf 0 (.dd-page *).
 */

.dwc {
  --dwc-tinte: #111827;
  --dwc-grau: #4B5563;
  --dwc-linie: #E5E7EB;
  --dwc-rahmen: #8A919E;
  --dwc-grund: #F3F4F6;
  --dwc-gruen: #047857;
  --dwc-gelb: #B45309;
  --dwc-gelb-fuell: #D97706;
  --dwc-rot: #B91C1C;
  --dwc-blau: #2A67BF;
  text-align: left;
  color: var(--dwc-tinte);
  font-size: 16px;
  line-height: 1.55;
}
.dwc [hidden] { display: none !important; }

/* ── Formular ─────────────────────────────────────────────────── */
.dwc .dwc-label {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--dwc-tinte);
}
.dwc .dwc-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.dwc .dwc-feld {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 280px;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 13px 16px;
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  color: var(--dwc-tinte);
  background: #FFFFFF;
  border: 1px solid var(--dwc-rahmen);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.dwc .dwc-feld::placeholder { color: #6B7280; opacity: 1; }
.dwc .dwc-feld:hover { border-color: #6B7280; }
.dwc .dwc-feld:focus {
  outline: none;
  border-color: var(--dwc-tinte);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .13);
}
.dwc .dwc-feld[aria-invalid="true"] {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .10);
}
.dwc .dwc-knopf {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 0;
  padding: 14px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
  background: var(--dwc-tinte);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.dwc .dwc-knopf:hover { background: #1F2937; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(17, 24, 39, .28); }
.dwc .dwc-knopf:focus-visible { outline: 3px solid var(--dwc-blau); outline-offset: 3px; transform: none; }
.dwc .dwc-knopf:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.dwc .dwc-knopf--gelb { color: var(--dwc-tinte); background: #FFE500; }
.dwc .dwc-knopf--gelb:hover { background: #F5DC00; }

.dwc .dwc-haken {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dwc-grau);
  cursor: pointer;
}
.dwc .dwc-haken input {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  background: #FFFFFF center / 14px 14px no-repeat;
  border: 1px solid var(--dwc-rahmen);
  border-radius: 5px;
  cursor: pointer;
}
.dwc .dwc-haken input:checked {
  background-color: var(--dwc-tinte);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  border-color: var(--dwc-tinte);
}
.dwc .dwc-haken input:focus-visible { outline: 3px solid var(--dwc-blau); outline-offset: 2px; }
.dwc .dwc-haken input[aria-invalid="true"] { border-color: #DC2626; }

.dwc p.dwc-fehler {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--dwc-rot);
}
.dwc p.dwc-klein {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dwc-grau);
}
.dwc p.dwc-klein a { color: var(--dwc-tinte); text-decoration: underline; text-underline-offset: 2px; }
.dwc .dwc-falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dwc .dwc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Fortschritt ──────────────────────────────────────────────── */
.dwc p.dwc-lauf-titel {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.dwc p.dwc-lauf-titel strong { font-weight: 600; }
.dwc ol.dwc-schritte {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dwc ol.dwc-schritte li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 34px;
  font-size: 16px;
  color: #6B7280;
}
.dwc ol.dwc-schritte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  box-sizing: border-box;
}
.dwc ol.dwc-schritte li[data-zustand="laeuft"] { color: var(--dwc-tinte); font-weight: 500; }
.dwc ol.dwc-schritte li[data-zustand="laeuft"]::before {
  border-color: #D1D5DB;
  border-top-color: var(--dwc-tinte);
  animation: dwc-drehen .8s linear infinite;
}
.dwc ol.dwc-schritte li[data-zustand="fertig"] { color: var(--dwc-tinte); }
.dwc ol.dwc-schritte li[data-zustand="fertig"]::before {
  background: var(--dwc-gruen) center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  border-color: var(--dwc-gruen);
}
.dwc .dwc-dauer { font-size: 14px; color: var(--dwc-grau); font-weight: 400; }
@keyframes dwc-drehen { to { transform: rotate(360deg); } }

/* ── Ergebnis ─────────────────────────────────────────────────── */
.dwc .dwc-ergebnis:focus { outline: none; }
.dwc .dwc-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--dwc-linie);
}
.dwc p.dwc-eyebrow { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--dwc-blau); }
.dwc p.dwc-host { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dwc .dwc-neu {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--dwc-tinte);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: #FFE500;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.dwc .dwc-neu:hover { text-decoration-color: var(--dwc-tinte); }
.dwc .dwc-neu:focus-visible { outline: 3px solid var(--dwc-blau); outline-offset: 3px; }

.dwc .dwc-ueberblick {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 8px;
}
.dwc .dwc-gesamt { text-align: center; }
.dwc .dwc-ringbox { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.dwc .dwc-ring { display: block; width: 160px; height: 160px; }
.dwc .dwc-ring circle { fill: none; stroke-width: 10; }
.dwc .dwc-ring-grund { stroke: var(--dwc-linie); }
.dwc .dwc-ring-wert { stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.dwc .dwc-ring .dwc-f-gruen { stroke: var(--dwc-gruen); }
.dwc .dwc-ring .dwc-f-gelb { stroke: var(--dwc-gelb-fuell); }
.dwc .dwc-ring .dwc-f-rot { stroke: var(--dwc-rot); }
.dwc .dwc-ringtext {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dwc .dwc-zahl { font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.dwc .dwc-zahl--warten { color: #9CA3AF; }
.dwc .dwc-von { margin-top: 4px; font-size: 13px; color: var(--dwc-grau); }
.dwc p.dwc-urteil { margin: 10px 0 0; font-size: 16px; font-weight: 600; color: var(--dwc-grau); }
.dwc p.dwc-urteil.dwc-t-gruen { color: var(--dwc-gruen); }
.dwc p.dwc-urteil.dwc-t-gelb { color: var(--dwc-gelb); }
.dwc p.dwc-urteil.dwc-t-rot { color: var(--dwc-rot); }

.dwc ul.dwc-bereiche { margin: 0; padding: 0; list-style: none; }
.dwc ul.dwc-bereiche li.dwc-bereich {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--dwc-linie);
}
.dwc ul.dwc-bereiche li.dwc-bereich:last-child { border-bottom: 0; }
.dwc li.dwc-bereich::before { content: none; }
.dwc .dwc-bname { font-weight: 600; font-size: 16px; }
.dwc .dwc-balken { position: relative; display: block; height: 10px; background: var(--dwc-linie); border-radius: 5px; overflow: hidden; }
.dwc .dwc-balken > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transition: width .6s ease; }
.dwc .dwc-balken > .dwc-f-gruen { background: var(--dwc-gruen); }
.dwc .dwc-balken > .dwc-f-gelb { background: var(--dwc-gelb-fuell); }
.dwc .dwc-balken > .dwc-f-rot { background: var(--dwc-rot); }
.dwc .dwc-balken--warten > span {
  width: 35%;
  background: #D1D5DB;
  animation: dwc-warten 1.4s ease-in-out infinite;
}
@keyframes dwc-warten { 0% { left: -35%; } 100% { left: 100%; } }
.dwc .dwc-bwert { font-size: 18px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.dwc .dwc-bereich--warten .dwc-bname,
.dwc .dwc-bereich--warten .dwc-bwert { color: #6B7280; }

.dwc p.dwc-notiz {
  margin: 10px 0 0;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dwc-grau);
  background: var(--dwc-grund);
  border-radius: 10px;
}

.dwc p.dwc-zwischen { margin: 26px 0 10px; font-size: 18px; font-weight: 600; }
.dwc ul.dwc-befunde { margin: 0; padding: 0; list-style: none; }
.dwc ul.dwc-befunde li.dwc-befund {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--dwc-linie);
}
.dwc li.dwc-befund::before { content: none; }
.dwc .dwc-punkt { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: #9CA3AF; }
.dwc .dwc-s-problem .dwc-punkt { background: var(--dwc-rot); }
.dwc .dwc-s-hinweis .dwc-punkt { background: var(--dwc-gelb-fuell); }
.dwc .dwc-s-ok .dwc-punkt { background: var(--dwc-gruen); }
.dwc p.dwc-btitel { margin: 0; font-size: 16px; line-height: 1.45; }
.dwc p.dwc-btitel strong { font-weight: 600; }
.dwc .dwc-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dwc-grau);
  background: var(--dwc-grund);
  border-radius: 999px;
  vertical-align: 1px;
}
.dwc p.dwc-btext { margin: 3px 0 0; font-size: 15px; line-height: 1.55; color: var(--dwc-grau); }

/* Datenschutz-Check: Prüfpunkte statt Bereichsbalken */
.dwc ul.dwc-pruefpunkte { margin: 0; padding: 0; list-style: none; }
.dwc ul.dwc-pruefpunkte li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--dwc-linie);
}
.dwc ul.dwc-pruefpunkte li:last-child { border-bottom: 0; }
.dwc ul.dwc-pruefpunkte li::before { content: none; }
.dwc ul.dwc-pruefpunkte .dwc-punkt { margin-top: 0; }
.dwc .dwc-pname { font-size: 16px; font-weight: 500; }
.dwc .dwc-pstatus { font-size: 14px; color: var(--dwc-grau); text-align: right; }
.dwc .dwc-s-problem .dwc-pstatus { color: var(--dwc-rot); font-weight: 500; }
.dwc .dwc-s-hinweis .dwc-pstatus { color: var(--dwc-gelb); font-weight: 500; }

/* ── Report anfordern ─────────────────────────────────────────── */
.dwc .dwc-tor {
  margin: 26px 0 0;
  padding: 24px;
  background: var(--dwc-grund);
  border-radius: 14px;
}
.dwc .dwc-tor:focus { outline: none; }
.dwc p.dwc-tor-titel { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.dwc p.dwc-tor-text { margin: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--dwc-grau); }
.dwc .dwc-tor--fertig { background: #ECFDF5; border: 1px solid #A7F3D0; }
.dwc .dwc-tor--fertig p.dwc-tor-titel { color: var(--dwc-gruen); }
.dwc .dwc-tor--fertig p.dwc-tor-text { margin: 0; color: var(--dwc-tinte); }

@media (max-width: 600px) {
  .dwc .dwc-knopf { width: 100%; }
  .dwc .dwc-ueberblick { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dwc ul.dwc-bereiche li.dwc-bereich { grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 10px; }
  .dwc p.dwc-host { font-size: 21px; }
  .dwc .dwc-tor { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dwc .dwc-knopf, .dwc .dwc-ring-wert, .dwc .dwc-balken > span { transition: none; }
  .dwc .dwc-knopf:hover { transform: none; }
  .dwc ol.dwc-schritte li[data-zustand="laeuft"]::before { animation-duration: 2.4s; }
  .dwc .dwc-balken--warten > span { animation: none; left: 0; width: 100%; opacity: .5; }
}
