/* =========================================================
   Security Header Check – Styles (Basis: assets/css/tool-ui.css)
   ========================================================= */
.sh { display: grid; gap: 20px; }
.sh .tu-card__head { flex-wrap: wrap; }
.sh-form .tu-card__title { margin-bottom: 14px; }
.sh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.sh-input { height: 54px; font-size: 17px; }
.sh-go { height: 54px; padding: 0 26px; font-size: 15px; }
.sh-go:disabled { opacity: .6; cursor: progress; }
.sh-form .tu-hint { margin: 10px 0 0; }
.sh-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(91,140,255,.08); overflow-wrap: anywhere; }
.sh-status[hidden] { display: none; }
.sh-status[data-level="err"] { background: rgba(209,52,56,.08); color: #8f1f1a; }
.sh-spin { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid rgba(91,140,255,.25); border-top-color: var(--blue); animation: shSpin .8s linear infinite; }
@keyframes shSpin { to { transform: rotate(360deg); } }
.sh-result { display: grid; gap: 20px; }
.sh-result[hidden] { display: none; }
.sh.is-busy .sh-result { opacity: .45; transition: opacity .2s; }

/* Zusammenfassung */
.sh-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.sh-grade { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 24px; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: #fff; background: #8b90aa; }
.sh-grade[data-grade="Aplus"], .sh-grade[data-grade="A"] { background: linear-gradient(140deg, #22c08c, #12996c); }
.sh-grade[data-grade="B"] { background: linear-gradient(140deg, #8fc84b, #5ea52c); }
.sh-grade[data-grade="C"] { background: linear-gradient(140deg, #f2b84b, #e09a2c); }
.sh-grade[data-grade="D"], .sh-grade[data-grade="E"] { background: linear-gradient(140deg, #f0904b, #dc6a2a); }
.sh-grade[data-grade="F"] { background: linear-gradient(140deg, #e5534b, #c42d2d); }
.sh-sum__url { margin: 0; font-size: 21px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.sh-sum__line { margin: 4px 0 12px; font-size: 15px; color: var(--text); }
.sh-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-pills li { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.sh-pills [data-level="ok"] { color: #0f7a52; background: rgba(34,192,140,.15); }
.sh-pills [data-level="warn"] { color: #a8561a; background: rgba(240,160,75,.18); }
.sh-pills [data-level="err"] { color: #b42318; background: rgba(209,52,56,.1); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sh-sum__actions { display: grid; gap: 8px; }
.sh-sum__actions .tu-btn { justify-content: flex-start; }

/* Prüfliste */
.sh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sh-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(15,19,48,.035); }
.sh-item[data-level="warn"] { background: rgba(232,150,72,.1); }
.sh-item[data-level="err"] { background: rgba(209,52,56,.07); }
.sh-item[data-level="info"] { background: rgba(91,140,255,.07); }
.sh-dot { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ok); }
.sh-item[data-level="warn"] .sh-dot { background: #e89648; }
.sh-item[data-level="err"] .sh-dot { background: var(--err); }
.sh-item[data-level="info"] .sh-dot { background: var(--blue); }
.sh-item__body { min-width: 0; }
.sh-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sh-item__head b { font-size: 14.5px; color: var(--ink); }
.sh-item__head code { font-size: 11.5px; color: var(--muted); }
.sh-item p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.sh-value { display: block; margin-top: 8px; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; background: rgba(15,19,48,.05); word-break: break-all; max-height: 7.5em; overflow: auto; }
.sh-list--small .sh-item__head b { font-size: 14px; }
.sh-none { padding: 12px; font-size: 13.5px; color: var(--muted); }

/* CSP-Details */
.sh-csp { margin: 0; display: grid; gap: 0; }
.sh-csp > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid rgba(15,19,48,.07); }
.sh-csp > div:first-child { border-top: 0; padding-top: 0; }
.sh-csp dt { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.sh-csp dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.sh-src { padding: 2px 8px; border-radius: 6px; font-family: var(--mono); font-size: 11.5px; background: rgba(15,19,48,.06); word-break: break-all; }
.sh-src.is-bad { color: #b42318; background: rgba(209,52,56,.1); }
.sh-src.is-none { color: #0f7a52; background: rgba(34,192,140,.14); }
.sh-cspinfo { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: rgba(91,140,255,.07); }

/* Seitenleiste */
.sh-pre { max-height: 420px; font-size: 12px; white-space: pre; overflow: auto; }
.sh #shCopy[hidden] { display: none; }
.sh-hops { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sh-hops li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.sh-hops b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.sh-hops small { display: block; color: var(--err); }
.sh-code { display: grid; place-items: center; height: 26px; border-radius: 7px; font-weight: 800; font-size: 12.5px; color: #fff; background: var(--ok); }
.sh-hops [data-ok="false"] .sh-code { background: var(--err); }
.sh .tu-details > summary .tu-card__title { margin: 0; }
.sh-raw { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.sh-raw th, .sh-raw td { padding: 6px 0; vertical-align: top; text-align: left; border-top: 1px solid rgba(15,19,48,.07); }
.sh-raw th { width: 40%; padding-right: 10px; font-family: var(--mono); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sh-raw td { font-family: var(--mono); color: var(--text); word-break: break-all; }
.sh-meta { margin: 0; text-align: center; }

@media (max-width: 900px) {
  .sh-sum { grid-template-columns: auto minmax(0, 1fr); }
  .sh-sum__actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 560px) {
  .sh-row { grid-template-columns: minmax(0, 1fr); }
  .sh-grade { width: 72px; height: 72px; font-size: 34px; border-radius: 18px; }
  .sh-sum { gap: 16px; }
  .sh-sum__url { font-size: 18px; }
  .sh-csp > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .sh-spin { animation-duration: 2.4s; } }
