/* Mail-Check – Oberfläche. Schwestergestaltung zum Consent-Check: gleiche
   Farben, gleiche Kartenformen, gleiche Abstände. Ergänzt unterseite.css. */

:root {
  --mc-rot: #c0392b;
  --mc-rot-hell: #fdf2f0;
  --mc-rot-rand: #f2cdc7;
  --mc-gelb: #b07d20;
  --mc-gelb-hell: #fdf8ee;
  --mc-gelb-rand: #eeddb8;
  --mc-gruen: #3e7d5a;
  --mc-gruen-hell: #f1f8f4;
  --mc-gruen-rand: #c6e2d2;
  --mc-grau: #9a908a;
}

.mc-bereich { max-width: 860px; margin: 0 auto; }

/* ---------- Eingabe ---------- */

.mc-form { background: #fff; border-radius: 22px; padding: 28px 26px;
  box-shadow: 0 18px 50px rgba(78, 64, 55, .10); }
.mc-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.mc-eingabereihe { display: flex; gap: 12px; flex-wrap: wrap; }
.mc-eingabereihe input[type=text] {
  flex: 1 1 320px; min-width: 0; font: inherit; font-size: 17px; color: #4e4037;
  padding: 14px 16px; border: 1px solid #ded7d1; border-radius: 12px; background: #fdfcfb;
}
.mc-eingabereihe input[type=text]:focus { outline: 2px solid #0098da; outline-offset: 1px; border-color: #0098da; }
.mc-form button[type=submit] {
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  background: #0098da; color: #fff; border: 0; border-radius: 12px; padding: 14px 26px;
  transition: background .2s;
}
.mc-form button[type=submit]:hover { background: #007cb3; }
.mc-form button[type=submit][disabled] { background: #b9d7e6; cursor: default; }
#mc-eingabefehler { margin-top: 10px; color: var(--mc-rot); font-weight: 700; font-size: 15px; }
.mc-datenhinweis { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: #7d7069; }

/* Aufklappbare Zusatzangaben für DKIM – im Regelfall sieht man sie gar nicht. */
.mc-mehr { margin-top: 16px; border-top: 1px solid #efeae6; padding-top: 14px; }
.mc-mehr > summary { cursor: pointer; font-size: 15px; color: #6d625c; font-weight: 700; list-style: none; }
.mc-mehr > summary::-webkit-details-marker { display: none; }
.mc-mehr > summary::before { content: "＋ "; color: #0098da; }
.mc-mehr[open] > summary::before { content: "－ "; }
.mc-mehr .feld { margin-top: 14px; }
.mc-mehr label { font-size: 15px; margin-bottom: 6px; }
.mc-mehr input[type=text], .mc-mehr textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: #4e4037;
  padding: 11px 13px; border: 1px solid #ded7d1; border-radius: 11px; background: #fdfcfb;
}
.mc-mehr textarea { min-height: 120px; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; }
.mc-mehr .erlaeuterung { font-size: 14px; color: #7d7069; margin: 6px 0 0; line-height: 1.55; }

/* ---------- Fortschritt ---------- */

.mc-lauf { background: #fff; border-radius: 22px; padding: 30px 26px; text-align: center;
  box-shadow: 0 18px 50px rgba(78, 64, 55, .10); }
.mc-balken-huelle { height: 8px; background: #efeae6; border-radius: 99px; overflow: hidden; margin: 20px 0 16px; }
.mc-balken { height: 100%; width: 6%; background: #0098da; border-radius: 99px; transition: width .5s ease; }
#mc-lauf-text { font-weight: 700; font-size: 18px; }
#mc-lauf-unter { color: #7d7069; font-size: 15px; margin-top: 6px; min-height: 1.5em; overflow-wrap: anywhere; }

/* ---------- Urteil ---------- */

.mc-urteil { border-radius: 18px; padding: 26px 28px; border: 1px solid; margin-bottom: 26px; }
.mc-urteil.rot { background: var(--mc-rot-hell); border-color: var(--mc-rot-rand); }
.mc-urteil.gelb { background: var(--mc-gelb-hell); border-color: var(--mc-gelb-rand); }
.mc-urteil.gruen { background: var(--mc-gruen-hell); border-color: var(--mc-gruen-rand); }
.mc-stufe { font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.mc-stufe::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.mc-urteil.rot .mc-stufe { color: var(--mc-rot); }
.mc-urteil.gelb .mc-stufe { color: var(--mc-gelb); }
.mc-urteil.gruen .mc-stufe { color: var(--mc-gruen); }
.mc-urteil p { font-size: 21px; line-height: 1.45; margin: 0; }

/* ---------- Kennzahlen ---------- */

/* 190 px Mindestbreite statt 160: zwei der vier Kacheln tragen ein Wort
   („Handlungsbedarf"), und das brach sonst mitten im Wort um. */
.mc-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 30px; }
.mc-zahl { background: #fff; border-radius: 14px; padding: 18px 18px 16px;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .07); }
.mc-zahl b { display: block; font-size: 34px; line-height: 1.05; font-weight: 700; }
/* Zwei Kacheln tragen ein Wort statt einer Zahl – in Zahlengröße läuft
   „Mit Einschränkungen" aus der Kachel heraus. */
.mc-zahl b.wort { font-size: 17px; line-height: 1.25;
  /* „Handlungsbedarf" passt bei 390 px nicht in eine halbe Kachel und bricht
     von sich aus nicht um – ohne diese Zeile schiebt ein einziges Wort die
     ganze Seite in die Waagerechte. */
  overflow-wrap: anywhere; hyphens: auto; }
.mc-zahl b.rot { color: var(--mc-rot); }
.mc-zahl b.gelb { color: var(--mc-gelb); }
.mc-zahl b.gruen { color: var(--mc-gruen); }
.mc-zahl span { display: block; margin-top: 6px; font-size: 14px; color: #7d7069; line-height: 1.4; }

/* ---------- Befunde ---------- */

#mc-ergebnis { scroll-margin-top: 96px; }
#mc-ergebnis h3 { font-size: 24px; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid #e6dfd9; }
#mc-ergebnis h3:first-of-type { margin-top: 34px; }

.mc-befund { background: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .07); border-left: 4px solid var(--mc-grau); }
.mc-befund.schwer { border-left-color: var(--mc-rot); }
.mc-befund.mittel { border-left-color: var(--mc-gelb); }
.mc-befund-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.mc-befund h4 { font-size: 19px; margin: 0 0 2px; line-height: 1.3; }
.mc-befund .bereich { font-size: 13.5px; color: #8b807a; }
.mc-befund p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.mc-marke { flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; background: #f4f0ed; color: #7d7069; white-space: nowrap; }
.mc-marke.schwer { background: var(--mc-rot-hell); color: var(--mc-rot); }
.mc-marke.mittel { background: var(--mc-gelb-hell); color: var(--mc-gelb); }
.mc-gemessen { font-size: 14px; background: #f7f5f3; border-radius: 9px; padding: 8px 12px; margin-bottom: 10px;
  overflow-wrap: anywhere; }
.mc-gemessen code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.mc-mehr { margin: 12px 0 0; font-size: 15px; }
.mc-mehr a { font-weight: 700; text-decoration: none; border-bottom: 1px solid #cfe7f2; }
.mc-mehr a:hover { border-bottom-color: #0098da; }
.mc-loesung { font-size: 15.5px; line-height: 1.6; background: #f1f8fb; border-radius: 10px; padding: 11px 14px; margin: 0; }

/* ---------- Werte-Übersicht ---------- */

.mc-werte { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .07); }
.mc-werte td { padding: 11px 16px; border-bottom: 1px solid #f2eeeb; font-size: 15px; vertical-align: top; }
.mc-werte tr:last-child td { border-bottom: none; }
.mc-werte td.bez { width: 220px; color: #7d7069; font-size: 14px; white-space: nowrap; }
.mc-werte td.wert { overflow-wrap: anywhere; }
.mc-werte code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: #f7f5f3; border-radius: 5px; padding: 1px 6px; }
.mc-pkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px;
  vertical-align: middle; background: var(--mc-grau); }
.mc-pkt.gruen { background: var(--mc-gruen); }
.mc-pkt.rot { background: var(--mc-rot); }
.mc-pkt.gelb { background: var(--mc-gelb); }
@media (max-width: 620px) {
  .mc-werte td.bez { width: auto; display: block; border: none; padding-bottom: 0; white-space: normal; }
  .mc-werte td.wert { display: block; }
}

/* ---------- Fuß des Ergebnisses ---------- */

.mc-tipps { background: #f7f5f3; border-radius: 16px; padding: 22px 24px; margin-top: 8px; }
.mc-tipps h4 { margin: 0 0 4px; font-size: 17.5px; }
.mc-tipps li { margin-bottom: 14px; list-style: none; }
.mc-tipps li:last-child { margin-bottom: 0; }
.mc-tipps ul { margin: 0; padding: 0; }
.mc-tipps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #6d625c; }
.mc-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.mc-aktionen a.knopf { font-weight: 700; background: #0098da; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 13px 22px; transition: background .2s; }
.mc-aktionen a.knopf:hover { background: #007cb3; }
.mc-aktionen a.knopf.sekundaer { background: #fff; color: #0098da; box-shadow: inset 0 0 0 1px #bfe0ef; }
.mc-aktionen a.knopf.sekundaer:hover { background: #f1f8fb; }
.mc-aktionen button.neu { font: inherit; font-weight: 700; background: none; border: 0; cursor: pointer;
  color: #6d625c; text-decoration: underline; padding: 13px 4px; }
.mc-fussnote { margin-top: 22px; font-size: 14px; color: #8b807a; line-height: 1.6; }

/* ---------- Erklärseiten unter /mail-check/<thema>/ ---------- */

.mc-themen { max-width: 860px; margin: 0 auto 28px; padding: 14px 18px;
  background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(78, 64, 55, .07);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.mc-themen > b { font-size: 13.5px; color: #7d7069; letter-spacing: .04em; text-transform: uppercase; }
.mc-themen ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.mc-themen li { margin: 0; font-size: 15.5px; }
.mc-themen a { text-decoration: none; border-bottom: 1px solid #cfe7f2; }
.mc-themen a:hover { border-bottom-color: #0098da; }
.mc-themen li[aria-current] b { color: #0098da; }

.mc-zurueck { max-width: 860px; margin: 40px auto 0; padding: 26px 28px;
  background: #f1f8fb; border-radius: 18px; }
.mc-zurueck b { display: block; font-size: 20px; margin-bottom: 6px; }
.mc-zurueck p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: #5c524c; }

/* Abschnitte, auf die ein Befund verweist: nach dem Sprung kurz hervorheben,
   sonst sucht man auf einer langen Seite, wo man gelandet ist. */
.artikel-inhalt h2[id], .artikel-inhalt h3[id] { scroll-margin-top: 96px; }
.artikel-inhalt h2[id]:target, .artikel-inhalt h3[id]:target {
  background: linear-gradient(transparent 62%, #ffeeba 62%); }

/* ---------- Selektor nachreichen, direkt im Befund ---------- */

.mc-nachpruefen { margin-top: 14px; padding: 14px 16px; background: #fbf7ef;
  border: 1px solid #efe2c9; border-radius: 12px; }
.mc-nachpruefen label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.mc-nach-reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.mc-nach-reihe input[type=text] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 15.5px;
  color: #4e4037; padding: 10px 13px; border: 1px solid #ded7d1; border-radius: 10px; background: #fff; }
.mc-nach-reihe input[type=text]:focus { outline: 2px solid #0098da; outline-offset: 1px; border-color: #0098da; }
.mc-nach-reihe button { font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer;
  background: #0098da; color: #fff; border: 0; border-radius: 10px; padding: 10px 20px; transition: background .2s; }
.mc-nach-reihe button:hover { background: #007cb3; }
.mc-nach-hinweis { margin: 9px 0 0; font-size: 14px; line-height: 1.55; color: #7d7069; }
