@charset "UTF-8";
/* ============================================================
   MailTester – eigenes Stylesheet (kein Framework)

   Helles Design als Standard, umschaltbar auf ein dunkles.
   Die Farben liegen ausschließlich in Variablen, die im
   Dunkelmodus überschrieben werden.

   Keine externen Ressourcen (Schriften, Skripte, Bilder).
   ============================================================ */

/* --- Farbwerte: helles Design (Standard) ------------------- */

:root {
    /* Flächen */
    --grund:          #f4f7fb;
    --flaeche:        #ffffff;
    --flaeche-2:      #eef3f9;
    --flaeche-code:   #f6f8fa;

    /* Schrift */
    --text:           #1a2332;
    --text-leise:     #5a6b81;
    --text-invers:    #ffffff;

    /* Akzente */
    --marke:          #1a2332;
    --cyan:           #0090ae;
    --cyan-hell:      #00b4d8;
    --cyan-dunkel:    #00738b;
    --cyan-flaeche:   #e3f5fa;

    /* Statusfarben */
    --gruen:          #1d8a56;
    --gruen-flaeche:  #e6f5ee;
    --gelb:           #a97a00;
    --gelb-flaeche:   #fdf4dd;
    --orange:         #c25a00;
    --rot:            #c62232;
    --rot-flaeche:    #fdeaec;

    /* Linien und Schatten */
    --rand:           #dde5ee;
    --rand-stark:     #c3d0e0;
    --schatten:       0 1px 3px rgba(26, 35, 50, .08), 0 4px 16px rgba(26, 35, 50, .06);
    --schatten-klein: 0 1px 2px rgba(26, 35, 50, .08);

    /* Maße */
    --radius:         10px;
    --radius-klein:   6px;
    --breite:         1140px;
    --breite-text:    760px;

    --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono:    ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
}

/* --- Farbwerte: dunkles Design ----------------------------- */

[data-theme="dark"] {
    --grund:          #141c28;
    --flaeche:        #1e2a3a;
    --flaeche-2:      #26344a;
    --flaeche-code:   #0f1620;

    --text:           #e8edf4;
    --text-leise:     #9fb0c6;
    --text-invers:    #0b1420;

    --marke:          #ffffff;
    --cyan:           #35c4e4;
    --cyan-hell:      #5fd4ef;
    --cyan-dunkel:    #00b4d8;
    --cyan-flaeche:   rgba(0, 180, 216, .12);

    --gruen:          #4ad395;
    --gruen-flaeche:  rgba(46, 194, 126, .14);
    --gelb:           #f0c419;
    --gelb-flaeche:   rgba(240, 196, 25, .14);
    --orange:         #ff9a4d;
    --rot:            #ff6b78;
    --rot-flaeche:    rgba(230, 57, 70, .16);

    --rand:           rgba(255, 255, 255, .11);
    --rand-stark:     rgba(255, 255, 255, .2);
    --schatten:       0 2px 6px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --schatten-klein: 0 1px 3px rgba(0, 0, 0, .3);
}

/* ============================================================
   Grundlagen
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Farbwechsel beim Umschalten sanft gestalten */
    transition: background-color .2s ease, color .2s ease;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin: 0 0 .6rem;
    color: var(--text);
    font-weight: 650;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 .9rem; }

a {
    color: var(--cyan-dunkel);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 3px;
}

code, pre, kbd {
    font-family: var(--mono);
}

hr {
    border: 0;
    border-top: 1px solid var(--rand);
    margin: 1.6rem 0;
}

.behaelter {
    width: 100%;
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 1rem;
}

.behaelter-schmal {
    max-width: var(--breite-text);
}

.klein {
    font-size: .85rem;
    color: var(--text-leise);
}

.warnung { color: var(--gelb); }

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

/* Sprungmarke für Tastaturbedienung */
.sprungmarke {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cyan-dunkel);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 0 0 var(--radius-klein) 0;
    z-index: 100;
}

.sprungmarke:focus {
    left: 0;
}

/* ============================================================
   Kopfbereich
   ============================================================ */

.kopf {
    background: var(--flaeche);
    border-bottom: 1px solid var(--rand);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--schatten-klein);
}

.kopf-inhalt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.marke {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--marke);
    font-size: 1.15rem;
    font-weight: 600;
    flex: 0 0 auto;
}

.marke:hover { text-decoration: none; }
.marke strong { color: var(--cyan-dunkel); font-weight: 700; }
.marke-symbol { color: var(--cyan-dunkel); display: inline-flex; }

.kopf-rechts {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

/* Hauptnavigation */
.hauptnavi {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
}

.hauptnavi a {
    color: var(--text-leise);
    font-size: .9rem;
    padding: .4rem .7rem;
    border-radius: var(--radius-klein);
    white-space: nowrap;
}

.hauptnavi a:hover {
    background: var(--flaeche-2);
    color: var(--text);
    text-decoration: none;
}

.hauptnavi a[aria-current="page"] {
    color: var(--cyan-dunkel);
    background: var(--cyan-flaeche);
    font-weight: 600;
}

/* Umschalter für das Farbschema */
.theme-schalter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--rand-stark);
    border-radius: var(--radius-klein);
    background: var(--flaeche);
    color: var(--text-leise);
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: background-color .15s ease, color .15s ease;
}

.theme-schalter:hover {
    background: var(--flaeche-2);
    color: var(--text);
}

.theme-schalter .symbol-hell { display: none; }
.theme-schalter .symbol-dunkel { display: block; }

[data-theme="dark"] .theme-schalter .symbol-hell { display: block; }
[data-theme="dark"] .theme-schalter .symbol-dunkel { display: none; }

/* ============================================================
   Hauptbereich
   ============================================================ */

main {
    flex: 1 0 auto;
    padding: 1.8rem 0 3rem;
}

.einleitung {
    text-align: center;
    margin-bottom: 1.8rem;
}

.einleitung h1 {
    font-size: 1.8rem;
    margin-bottom: .7rem;
}

.einleitung p {
    color: var(--text-leise);
    max-width: 660px;
    margin: 0 auto;
}

/* ============================================================
   Karten
   ============================================================ */

.karte {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--schatten);
}

.karte-fehler {
    border-left: 4px solid var(--rot);
}

.schritt {
    display: inline-block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--cyan-dunkel);
    background: var(--cyan-flaeche);
    border-radius: 999px;
    padding: .18rem .75rem;
    margin: 0 0 .6rem;
    font-weight: 700;
}

/* ============================================================
   Testadresse
   ============================================================ */

.adress-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .6rem;
    margin: 1rem 0 .8rem;
}

.testadresse {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    align-items: center;
    background: var(--cyan-flaeche);
    border: 1px dashed var(--cyan);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    font-size: 1.02rem;
    color: var(--cyan-dunkel);
    font-weight: 600;
    word-break: break-all;
    user-select: all;
}

.ablauf-hinweis {
    font-size: .85rem;
    color: var(--text-leise);
    margin: 0;
}

.ablauf-hinweis strong { color: var(--text); }

/* ============================================================
   Schaltflächen
   ============================================================ */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: var(--cyan-dunkel);
    color: #fff;
    border: 1px solid var(--cyan-dunkel);
    border-radius: var(--radius-klein);
    padding: .72rem 1.15rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, transform .08s ease;
}

.knopf:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
    text-decoration: none;
}

.knopf:active { transform: translateY(1px); }

.knopf-rand {
    background: transparent;
    color: var(--cyan-dunkel);
}

.knopf-rand:hover {
    background: var(--cyan-flaeche);
    color: var(--cyan-dunkel);
}

.knopf-klein {
    padding: .42rem .9rem;
    font-size: .85rem;
}

.knopf-kopieren.erfolg {
    background: var(--gruen);
    border-color: var(--gruen);
    color: #fff;
}

/* ============================================================
   Wartebereich
   ============================================================ */

.warte-anzeige {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: .9rem 0;
}

.warte-anzeige p { margin: 0; }

.spinner {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 3px solid var(--rand-stark);
    border-top-color: var(--cyan-dunkel);
    border-radius: 50%;
    animation: drehen .9s linear infinite;
}

.warte-karte.empfangen .spinner {
    border-color: var(--gruen-flaeche);
    border-top-color: var(--gruen);
}

@keyframes drehen {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 3s; }
}

/* ============================================================
   Prüfliste auf der Startseite
   ============================================================ */

.pruef-liste {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
}

.pruef-liste li {
    padding: .55rem .8rem;
    background: var(--flaeche-2);
    border-radius: var(--radius-klein);
    font-size: .92rem;
    color: var(--text-leise);
}

.pruef-liste strong { color: var(--text); }

@media (min-width: 700px) {
    .pruef-liste {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   Begriffserklärungen (Tooltip / Modalfenster)
   ============================================================ */

.begriff {
    border: 0;
    background: none;
    padding: 0 0 0 .3rem;
    margin: 0;
    font: inherit;
    color: var(--cyan-dunkel);
    cursor: help;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.begriff-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--schrift);
}

.begriff:hover .begriff-symbol,
.begriff:focus-visible .begriff-symbol {
    background: var(--cyan-dunkel);
    color: #fff;
    border-color: var(--cyan-dunkel);
}

/* Begriffe im Fließtext */
.begriff-text {
    color: var(--cyan-dunkel);
    border-bottom: 1px dotted currentColor;
    cursor: help;
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
}

.begriff-text:hover {
    border-bottom-style: solid;
}

/* Modalfenster */
.modal-hintergrund {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 30, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 90;
    animation: einblenden-sanft .15s ease-out;
}

.modal-hintergrund[hidden] { display: none; }

.modal {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.modal h2 {
    margin: 0 2rem .8rem 0;
    color: var(--cyan-dunkel);
    font-size: 1.2rem;
}

.modal p { color: var(--text); }

.modal-schliessen {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 32px;
    height: 32px;
    border: 0;
    background: var(--flaeche-2);
    color: var(--text-leise);
    border-radius: var(--radius-klein);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-schliessen:hover {
    background: var(--rot-flaeche);
    color: var(--rot);
}

.modal-beispiel {
    margin-top: 1rem;
}

.modal-beispiel-titel {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-leise);
    font-weight: 700;
    margin-bottom: .3rem;
}

@keyframes einblenden-sanft {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   Ergebnisseite: Gesamtnote
   ============================================================ */

.score-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.score-kreis {
    width: 190px;
    height: 190px;
    flex: 0 0 auto;
}

.score-spur {
    fill: none;
    stroke: var(--flaeche-2);
    stroke-width: 14;
}

.score-fortschritt {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 100px 100px;
    animation: kreis-fuellen 1.2s ease-out forwards;
}

@keyframes kreis-fuellen {
    to { stroke-dashoffset: var(--ziel-offset); }
}

@media (prefers-reduced-motion: reduce) {
    .score-fortschritt {
        animation: none;
        stroke-dashoffset: var(--ziel-offset);
    }
}

.score-zahl {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--schrift);
}

.score-max {
    font-size: .95rem;
    fill: var(--text-leise);
}

.score-text {
    width: 100%;
    min-width: 0;
}

.bewertung {
    font-size: 1rem;
    font-weight: 600;
    padding: .75rem 1rem;
    border-radius: var(--radius-klein);
    text-align: left;
}

.bewertung-kritisch  { color: var(--rot);    background: var(--rot-flaeche);    border-left: 4px solid var(--rot); }
.bewertung-schlecht  { color: var(--orange); background: var(--gelb-flaeche);   border-left: 4px solid var(--orange); }
.bewertung-gut       { color: var(--gelb);   background: var(--gelb-flaeche);   border-left: 4px solid var(--gelb); }
.bewertung-sehr-gut  { color: var(--gruen);  background: var(--gruen-flaeche);  border-left: 4px solid var(--gruen); }

.score-fakten {
    display: grid;
    grid-template-columns: 1fr;
    gap: .1rem 1rem;
    text-align: left;
    margin: 1.1rem 0;
    font-size: .9rem;
}

.score-fakten dt {
    color: var(--text-leise);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.score-fakten dd {
    margin: 0 0 .6rem;
    word-break: break-word;
}

.score-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

/* ============================================================
   Ergebnisseite: Einzelprüfungen
   ============================================================ */

.abschnitt-titel {
    margin: 1.8rem 0 .9rem;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-leise);
    font-weight: 700;
}

.pruefung {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-left-width: 4px;
    border-radius: var(--radius);
    margin-bottom: .7rem;
    overflow: hidden;
    box-shadow: var(--schatten-klein);
}

.pruefung-pass { border-left-color: var(--gruen); }
.pruefung-warn { border-left-color: var(--gelb); }
.pruefung-fail { border-left-color: var(--rot); }

.pruefung > summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .95rem 1.1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pruefung > summary::-webkit-details-marker { display: none; }

.pruefung > summary:hover { background: var(--flaeche-2); }

.pruef-symbol {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
}

.pruefung-pass .pruef-symbol { background: var(--gruen-flaeche); color: var(--gruen); }
.pruefung-warn .pruef-symbol { background: var(--gelb-flaeche);  color: var(--gelb); }
.pruefung-fail .pruef-symbol { background: var(--rot-flaeche);   color: var(--rot); }

.pruef-name {
    flex: 1 1 auto;
    font-weight: 650;
    color: var(--text);
    min-width: 0;
}

.pruef-punkte {
    flex: 0 0 auto;
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--text-leise);
    white-space: nowrap;
}

.pruefung > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-leise);
    border-bottom: 2px solid var(--text-leise);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: .2rem;
}

.pruefung[open] > summary::after {
    transform: rotate(-135deg);
}

.pruef-inhalt {
    padding: 1rem 1.1rem 1.1rem;
    border-top: 1px solid var(--rand);
}

.pruef-zusammenfassung {
    font-size: .98rem;
    color: var(--text);
}

/* ============================================================
   Hinweisbox zur Behebung
   ============================================================ */

.infobox {
    background: var(--cyan-flaeche);
    border: 1px solid var(--cyan);
    border-left: 4px solid var(--cyan-dunkel);
    border-radius: var(--radius-klein);
    padding: .85rem 1rem;
    margin: .9rem 0;
    font-size: .92rem;
}

.infobox strong {
    display: block;
    color: var(--cyan-dunkel);
    margin-bottom: .3rem;
}

.infobox p { margin: 0; }

/* ============================================================
   Detaildarstellung

   Wichtig: Die zweispaltige Aufteilung gilt NUR für die
   oberste Ebene. Verschachtelte Angaben werden untereinander
   dargestellt – sonst verengt sich die Wertespalte mit jeder
   Ebene weiter, bis der Text senkrecht umbricht.
   ============================================================ */

.pruef-details { margin-top: 1rem; }

.detail-tabelle {
    margin: 0;
    font-size: .88rem;
}

.detail-tabelle > dt {
    color: var(--text-leise);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    padding-top: .55rem;
}

.detail-tabelle > dd {
    margin: 0 0 .3rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--rand);
    word-break: break-word;
    min-width: 0;
    overflow-wrap: anywhere;
}

.detail-tabelle > dd:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

/* Zweispaltig nur auf der obersten Ebene und nur, wenn Platz ist */
@media (min-width: 720px) {
    .detail-tabelle:not(.verschachtelt) {
        display: grid;
        grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
        column-gap: 1.4rem;
        align-items: start;
    }

    .detail-tabelle:not(.verschachtelt) > dt {
        padding-top: .5rem;
        padding-bottom: .45rem;
        border-bottom: 1px solid var(--rand);
    }
}

/* Verschachtelte Ebenen: immer untereinander, volle Breite */
.detail-tabelle.verschachtelt {
    display: block;
    background: var(--flaeche-2);
    border: 1px solid var(--rand);
    border-radius: var(--radius-klein);
    padding: .6rem .85rem;
    margin-top: .35rem;
}

.detail-tabelle.verschachtelt > dt {
    padding-top: .45rem;
    font-size: .7rem;
}

.detail-tabelle.verschachtelt > dd {
    margin: 0 0 .2rem;
    padding-bottom: .4rem;
}

.detail-tabelle.verschachtelt > dd:last-child {
    border-bottom: 0;
}

/* Listen von Einträgen (z. B. geprüfte Sperrlisten) */
.detail-liste {
    margin: 0;
    padding-left: 1.15rem;
}

.detail-liste li { margin-bottom: .2rem; }

/* Mehrere gleichartige Einträge nebeneinander darstellen.
   auto-fit statt auto-fill: bei einem einzelnen Eintrag bleiben
   sonst leere Spalten stehen und die Karte wird unnötig schmal. */
.detail-karten {
    display: grid;
    gap: .5rem;
    margin-top: .35rem;
}

@media (min-width: 760px) {
    .detail-karten {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ============================================================
   Sperrlisten-Tabelle
   ============================================================ */

.dnsbl-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: .6rem 0 .4rem;
    font-size: .88rem;
}

.dnsbl-tabelle caption {
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-leise);
    font-weight: 700;
    padding-bottom: .4rem;
}

.dnsbl-tabelle th {
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-leise);
    font-weight: 700;
    padding: .4rem .6rem;
    border-bottom: 2px solid var(--rand-stark);
}

.dnsbl-tabelle th.spalte-status {
    text-align: right;
    width: 7.5rem;
}

.dnsbl-tabelle td {
    padding: .42rem .6rem;
    border-bottom: 1px solid var(--rand);
    vertical-align: top;
}

.dnsbl-tabelle tbody tr:nth-child(odd) {
    background: var(--flaeche-2);
}

.dnsbl-tabelle td.spalte-status {
    text-align: right;
    white-space: nowrap;
    font-weight: 650;
}

.dnsbl-name {
    font-weight: 600;
    color: var(--text);
}

.dnsbl-zone {
    display: block;
    font-family: var(--mono);
    font-size: .76rem;
    color: var(--text-leise);
    margin-top: .1rem;
}

.dnsbl-hinweis {
    display: block;
    font-size: .8rem;
    color: var(--text-leise);
    margin-top: .2rem;
    max-width: 52ch;
}

.status-ok        { color: var(--gruen); }
.status-gelistet  { color: var(--rot); }
.status-unbekannt { color: var(--gelb); }

.status-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: .72rem;
    margin-left: .4rem;
    vertical-align: middle;
}

.status-ok .status-symbol        { background: var(--gruen-flaeche); }
.status-gelistet .status-symbol  { background: var(--rot-flaeche); }
.status-unbekannt .status-symbol { background: var(--gelb-flaeche); }

/* Nur informativ ausgewertete Listen dezenter darstellen */
.dnsbl-tabelle tr.nur-informativ .dnsbl-name {
    font-weight: 500;
    color: var(--text-leise);
}

.dnsbl-hinweis-fuss {
    font-size: .8rem;
    color: var(--text-leise);
    margin: .5rem 0 0;
}

@media (max-width: 560px) {
    .dnsbl-tabelle th.spalte-status { width: 5rem; }
    .dnsbl-zone { font-size: .7rem; }
}

.wert { color: var(--text); }
.wert-ja   { color: var(--gruen); font-weight: 650; }
.wert-nein { color: var(--rot);   font-weight: 650; }
.wert-leer { color: var(--text-leise); font-style: italic; }

/* ============================================================
   Codeblöcke
   ============================================================ */

.codeblock {
    background: var(--flaeche-code);
    border: 1px solid var(--rand);
    border-radius: var(--radius-klein);
    padding: .75rem .9rem;
    margin: .4rem 0;
    font-size: .8rem;
    line-height: 1.55;
    color: var(--text);
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
}

[data-theme="dark"] .codeblock {
    color: #cbd6e6;
}

.codeblock-gross {
    max-height: 480px;
    overflow-y: auto;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}

/* ============================================================
   Aufklappbare Rohdaten
   ============================================================ */

.rohdaten { margin-bottom: .6rem; }

.rohdaten > summary {
    cursor: pointer;
    list-style: none;
    padding: .4rem 0;
}

.rohdaten > summary::-webkit-details-marker { display: none; }

.rohdaten > summary h2 {
    display: inline;
    font-size: 1rem;
}

.rohdaten > summary::before {
    content: "\25B8";
    color: var(--cyan-dunkel);
    margin-right: .5rem;
}

.rohdaten[open] > summary::before {
    content: "\25BE";
}

/* ============================================================
   Textseiten (Impressum, Datenschutz, FAQ)
   ============================================================ */

.textseite {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--schatten);
}

.textseite h1 {
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--cyan-dunkel);
}

.textseite h2 {
    margin-top: 1.8rem;
    color: var(--cyan-dunkel);
}

.textseite h2:first-of-type { margin-top: 0; }

.textseite h3 { margin-top: 1.2rem; }

.textseite ul, .textseite ol {
    padding-left: 1.3rem;
    margin: 0 0 1rem;
}

.textseite li { margin-bottom: .35rem; }

.anschrift {
    background: var(--flaeche-2);
    border-left: 4px solid var(--cyan-dunkel);
    border-radius: var(--radius-klein);
    padding: 1rem 1.2rem;
    margin: 0 0 1.2rem;
    line-height: 1.75;
}

.daten-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 0 1.2rem;
    font-size: .95rem;
}

.daten-liste dt {
    color: var(--text-leise);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    padding-top: .5rem;
}

.daten-liste dd {
    margin: 0 0 .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--rand);
}

@media (min-width: 620px) {
    .daten-liste {
        grid-template-columns: minmax(140px, 200px) 1fr;
        column-gap: 1.5rem;
    }

    .daten-liste dt {
        padding-top: .5rem;
        padding-bottom: .5rem;
        border-bottom: 1px solid var(--rand);
    }
}

/* FAQ */
.faq-eintrag {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    margin-bottom: .6rem;
    overflow: hidden;
}

.faq-eintrag > summary {
    padding: .95rem 1.1rem;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.faq-eintrag > summary::-webkit-details-marker { display: none; }

.faq-eintrag > summary:hover { background: var(--flaeche-2); }

.faq-eintrag > summary::after {
    content: "";
    margin-left: auto;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-leise);
    border-bottom: 2px solid var(--text-leise);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.faq-eintrag[open] > summary::after { transform: rotate(-135deg); }

.faq-inhalt {
    padding: 0 1.1rem 1.1rem;
    color: var(--text);
}

.faq-inhalt p:last-child { margin-bottom: 0; }

.faq-navi {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.5rem;
}

.faq-navi a {
    font-size: .85rem;
    padding: .35rem .8rem;
    background: var(--flaeche-2);
    border: 1px solid var(--rand);
    border-radius: 999px;
    color: var(--text-leise);
}

.faq-navi a:hover {
    background: var(--cyan-flaeche);
    color: var(--cyan-dunkel);
    border-color: var(--cyan);
    text-decoration: none;
}

/* ============================================================
   Fußbereich
   ============================================================ */

.fuss {
    flex: 0 0 auto;
    border-top: 1px solid var(--rand);
    padding: 2rem 0 1.2rem;
    background: var(--flaeche);
    margin-top: 2rem;
}

.fuss-spalten {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
}

@media (min-width: 640px) {
    .fuss-spalten { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 940px) {
    .fuss-spalten { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.fuss-spalte h3 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-leise);
    margin-bottom: .7rem;
    font-weight: 700;
}

.fuss-spalte ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fuss-spalte li { margin-bottom: .4rem; }

.fuss-spalte a {
    font-size: .9rem;
    color: var(--text-leise);
}

.fuss-spalte a:hover { color: var(--cyan-dunkel); }

.fuss-marke {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--marke);
    margin-bottom: .6rem;
}

.fuss-marke strong { color: var(--cyan-dunkel); }

.fuss-beschreibung {
    font-size: .88rem;
    color: var(--text-leise);
    margin: 0 0 .8rem;
    max-width: 34ch;
}

.extern-symbol {
    display: inline-block;
    width: .7em;
    height: .7em;
    margin-left: .25em;
    vertical-align: baseline;
    opacity: .65;
}

.fuss-unten {
    border-top: 1px solid var(--rand);
    padding-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    align-items: center;
    justify-content: space-between;
    font-size: .84rem;
    color: var(--text-leise);
}

.fuss-unten p { margin: 0; }

.fuss-rechtlich {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================================
   Kurzmeldung (Kopieren bestätigt)
   ============================================================ */

.hinweis-blase {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    background: var(--gruen);
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: var(--schatten);
    z-index: 95;
    animation: einblenden .25s ease-out;
}

@keyframes einblenden {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   Ab Tablet-Breite
   ============================================================ */

@media (min-width: 640px) {
    h1 { font-size: 1.9rem; }

    .einleitung h1 { font-size: 2.1rem; }

    .karte { padding: 1.7rem; }

    .textseite { padding: 2.2rem; }

    .score-karte {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 2rem;
    }

    .score-kreis {
        width: 200px;
        height: 200px;
    }

    .score-aktionen { justify-content: flex-start; }

    .score-fakten {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
    }
}

/* Druckausgabe */
@media print {
    .kopf, .fuss, .score-aktionen, .theme-schalter { display: none; }
    body { background: #fff; color: #000; }
    .pruefung, .karte { break-inside: avoid; box-shadow: none; }
    details { open: open; }
}
