/* ============================================================
   Website-Check (website-check.html)
   Eigene Datei statt style.css: Die Seite ist die einzige, die das braucht,
   und style.css hat 4.300 Zeilen.
   Farben für die Ampel sind die einzigen neuen — alles andere kommt aus den
   Variablen in style.css.
   ============================================================ */
:root {
  --wc-gut: #35d07f;
  --wc-warn: #ffb020;
  --wc-fehler: var(--red);
  --wc-unklar: rgba(245, 245, 247, 0.38);
}

.wc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Formular ---------- */
.wc-hero { padding-bottom: clamp(16px, 3vw, 32px); }
.wc-form { max-width: 640px; margin: 0 auto; }
.wc-feld {
  display: flex; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.wc-feld:focus-within { border-color: rgba(255, 45, 45, 0.6); box-shadow: var(--glow-red); }
.wc-feld input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 1.08rem; padding: 0 18px;
}
.wc-feld input::placeholder { color: var(--muted); }
.wc-feld .btn { flex-shrink: 0; }
.wc-feld .btn:disabled { opacity: .55; cursor: progress; transform: none; }
.wc-hinweis { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.wc-formfehler {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 45, 45, 0.1); border: 1px solid rgba(255, 45, 45, 0.35);
  color: var(--text); font-size: .95rem;
}

/* ---------- Laden ---------- */
.wc-ergebnis-wrap { scroll-margin-top: 110px; }
.wc-laden {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 940px; margin: 8px auto 40px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.wc-laden[hidden] { display: none; }
.wc-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--red);
  animation: wc-dreh .8s linear infinite;
}
@keyframes wc-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wc-spinner { animation-duration: 2.4s; } }

/* ---------- Ergebnis ---------- */
.wc-ergebnis { max-width: 940px; margin: 8px auto clamp(56px, 8vw, 96px); }
.wc-ergebnis[hidden] { display: none; }

.wc-kopf, .wc-meldung {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 40px);
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.wc-meldung { flex-direction: column; align-items: flex-start; gap: 10px; }
.wc-meldung p { color: var(--muted); line-height: 1.6; max-width: 62ch; margin-bottom: 8px; }

.wc-note { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.wc-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.wc-ring circle { fill: none; stroke-width: 10; }
.wc-ring-hinten { stroke: var(--line); }
.wc-ring-vorn { stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.wc-ring.wc-stufe-gut .wc-ring-vorn { stroke: var(--wc-gut); }
.wc-ring.wc-stufe-ok .wc-ring-vorn { stroke: #9bd84a; }
.wc-ring.wc-stufe-mittel .wc-ring-vorn { stroke: var(--wc-warn); }
.wc-ring.wc-stufe-schlecht .wc-ring-vorn { stroke: var(--wc-fehler); }
.wc-note-zahl {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.wc-note-zahl strong { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--text); }
.wc-note-zahl span { font-size: .78rem; color: var(--muted); margin-top: 4px; }

.wc-domain {
  display: inline-block; font-size: .82rem; letter-spacing: .04em; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 10px;
  word-break: break-all;
}
.wc-kopf-text h2, .wc-meldung h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-bottom: 6px;
}
.wc-kopf-text p { color: var(--muted); line-height: 1.6; }
.wc-kopf-hinweis { margin-top: 8px; font-size: .9rem; }

.wc-bereiche { display: grid; gap: 16px; margin-top: 16px; }
.wc-bereich {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
}
.wc-bereich-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wc-bereich-kopf h3 { font-size: 1.12rem; font-weight: 700; color: var(--text); }
.wc-bereich-note { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.wc-bereich-note.wc-stufe-gut { color: var(--wc-gut); }
.wc-bereich-note.wc-stufe-ok { color: #9bd84a; }
.wc-bereich-note.wc-stufe-mittel { color: var(--wc-warn); }
.wc-bereich-note.wc-stufe-schlecht { color: var(--wc-fehler); }

.wc-liste { list-style: none; margin: 0; padding: 0; }
.wc-punkt { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.wc-punkt:first-child { border-top: 0; }
.wc-marke {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; line-height: 1; margin-top: 1px;
}
.wc-gut .wc-marke { background: rgba(53, 208, 127, 0.14); color: var(--wc-gut); }
.wc-warnung .wc-marke { background: rgba(255, 176, 32, 0.14); color: var(--wc-warn); }
.wc-fehler .wc-marke { background: rgba(255, 45, 45, 0.16); color: var(--wc-fehler); }
.wc-unklar .wc-marke { background: rgba(255, 255, 255, 0.06); color: var(--wc-unklar); }
.wc-punkt-text { min-width: 0; }
.wc-punkt-text strong { display: block; color: var(--text); font-size: .98rem; margin-bottom: 3px; }
.wc-punkt-text p { color: var(--muted); font-size: .93rem; line-height: 1.6; overflow-wrap: anywhere; }
.wc-gut .wc-punkt-text strong { font-weight: 600; }

.wc-fuss { margin-top: 22px; }
.wc-klein { color: var(--muted); font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.wc-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn.wc-neu {
  background: transparent; color: var(--text); border: 1.5px solid var(--line); backdrop-filter: none;
}
.btn.wc-neu:hover { border-color: var(--text); }

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  .wc-feld { flex-direction: column; border-radius: var(--radius); padding: 10px; }
  .wc-feld input { padding: 12px 10px; text-align: center; }
  .wc-feld .btn { justify-content: center; width: 100%; }
  .wc-kopf { flex-direction: column; text-align: center; }
  .wc-note { width: 116px; height: 116px; }
  .wc-aktionen .btn { width: 100%; justify-content: center; }
}

/* ---------- Drucken / PDF ---------- */
@media print {
  .header, .mobile-menu, .bg-grid, .bg-orb, .wc-hero, .ls-section, .cta-band-wrap, .footer, .wc-aktionen, .skip-link { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .wc-ergebnis { margin: 0; max-width: none; }
  .wc-kopf, .wc-bereich { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; break-inside: avoid; }
  .wc-kopf-text h2, .wc-bereich-kopf h3, .wc-punkt-text strong, .wc-note-zahl strong { color: #111 !important; }
  .wc-kopf-text p, .wc-punkt-text p, .wc-klein, .wc-domain, .wc-note-zahl span { color: #444 !important; }
  .wc-punkt { border-color: #ddd !important; }
  .wc-ring-hinten { stroke: #e5e5e5 !important; }
}
