/* Domain-Check wie auf der Landingpage (public/landingpage.html): Feld und Knopf als
   Pille, Ergebnis als Karte mit Zeilen. Nur innerhalb von .msmc-check, damit das Theme
   sonst unberührt bleibt. Schriften kommen vom Theme. */
.msmc-check { --msmc-ink: #15171c; --msmc-text: #3a3f4a; --msmc-muted: #5b616e; --msmc-line: #e3e0d8;
	display: flex; flex-direction: column; gap: 14px; max-width: 960px; }
.msmc-check .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msmc-check-form { display: flex; gap: 12px; max-width: 760px; }
.msmc-check-form input { flex: 1; min-width: 0; min-height: 60px; padding: 12px 26px; border: 2px solid var(--msmc-ink);
	border-radius: 999px; background: #fff; color: var(--msmc-ink); font: inherit; font-size: 20px; }
/* Fokus und Fehler in den Farben aus den Theme-Einstellungen, statt des Browser-Leuchtens */
.msmc-check-form input:focus, .msmc-check-form input:focus-visible { outline: none; box-shadow: none; border-color: var(--color-primary); }
.msmc-check-form input[aria-invalid="true"], .msmc-check-form input[aria-invalid="true"]:focus { border-color: var(--color-error); }
.msmc-check .msmc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 28px;
	border: 2px solid var(--msmc-ink); border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
	text-align: center; text-decoration: none; cursor: pointer; }
.msmc-check .msmc-btn-dunkel { background: var(--msmc-ink); color: #f4f2ec; }
.msmc-check .msmc-btn-dunkel:hover { color: #f4f2ec; }
.msmc-check .msmc-btn-linie { background: transparent; color: var(--msmc-ink); }
/* Knöpfe sind Links – die Link-Regeln des Themes (Unterstreichung, Farbe) gelten hier nicht */
.msmc-check { --body-link-text-decoration: none; --body-link-text-decoration-hover: none; }
.msmc-check a.msmc-btn, .msmc-check a.msmc-btn:is(:hover, :focus, :active, :visited) { text-decoration: none; }
.msmc-check .msmc-btn { transition: background-color .15s, color .15s, border-color .15s; }
.msmc-check .msmc-btn-dunkel:is(:hover, :focus-visible) { background: #2c2f37; border-color: #2c2f37; color: #f4f2ec; }
.msmc-check .msmc-btn-linie:is(:hover, :focus-visible) { background: var(--msmc-ink); color: #f4f2ec; }
.msmc-check .msmc-btn:focus-visible { outline: 3px solid var(--msmc-ink); outline-offset: 3px; }
.msmc-check-form .msmc-btn { min-height: 60px; flex-shrink: 0; }
.msmc-check-form .msmc-btn:disabled { opacity: .6; cursor: wait; }
.msmc-check-hinweis { margin: 0; font-size: 15px; color: var(--msmc-muted); }

.msmc-ergebnis { background: #fff; border: 1px solid var(--msmc-line); border-radius: 16px; box-shadow: 0 30px 60px -40px rgba(21,23,28,.35);
	padding: clamp(24px,3vw,36px); display: flex; flex-direction: column; gap: 24px; margin-top: 10px; }
.msmc-ergebnis[hidden] { display: none; }
.msmc-ergebnis-kopf { display: flex; align-items: flex-start; gap: 16px; }
.msmc-punkt { width: 16px; height: 16px; border-radius: 8px; flex-shrink: 0; margin-top: 12px; }
.msmc-ergebnis-kopf .msmc-domain { font-size: 15px; color: var(--msmc-muted); font-weight: 500; }
.msmc-ergebnis-kopf h3 { margin: 0; font-weight: 800; font-size: clamp(28px,3vw,40px); line-height: 1.1; letter-spacing: -.02em; }
.msmc-ergebnis-text { margin: 0; color: var(--msmc-text); max-width: 720px; }
.msmc-zeilen { display: flex; flex-direction: column; border-top: 1px solid var(--msmc-line); margin: 0; }
.msmc-zeile { display: grid; grid-template-columns: 260px 1fr; gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--msmc-line); }
/* Linke Spalte so breit wie die längste Bezeichnung, alle Zeilen bündig – ohne Umbruch */
@supports (grid-template-columns: subgrid) {
	.msmc-zeilen { display: grid; grid-template-columns: max-content 1fr; column-gap: 24px; }
	.msmc-zeile { grid-column: 1 / -1; grid-template-columns: subgrid; }
}
.msmc-zeile dt { color: var(--msmc-muted); }
.msmc-zeile dd { margin: 0; font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.msmc-zeichen { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; transform: translateY(-1px); }
.msmc-ok { background: var(--color-success); } .msmc-warn { background: var(--color-warning); }
.msmc-bad { background: var(--color-error); } .msmc-info { background: #9aa0ab; }
.msmc-aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.msmc-check a.msmc-neu { align-self: flex-start; font-size: 15px; color: var(--msmc-muted); text-decoration: underline; text-underline-offset: 3px; }
.msmc-check a.msmc-neu:hover { color: var(--msmc-ink); }
.msmc-laden { display: flex; align-items: center; gap: 14px; }
.msmc-dreher { width: 22px; height: 22px; border: 3px solid var(--msmc-line); border-top-color: var(--msmc-ink); border-radius: 50%; animation: msmc-dreh .8s linear infinite; }
@keyframes msmc-dreh { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
	.msmc-check-form { flex-direction: column; }
	.msmc-zeilen { display: flex; }
	.msmc-zeile { grid-template-columns: 1fr; }
}

/* Beispielmail neben dem Check: klebt im selben Abstand unter der Kopfleiste, auf den
   auch die Ergebniskarte scrollt (--msmc-oben setzt check.js). */
.is-position-sticky:has(.msmc-beispiel-von) {
  top: var(--msmc-oben, calc(var(--header-height, 0px) + 32px));
  transition: top .2s ease;
}
