/*
 * Gemeinsames Stylesheet der DPS-Suite (Modul 63).
 *
 * Bewusst eine statische Datei ohne Build-Step (siehe Modul 7/35/53): kein
 * Node beim Deploy, der Browser speichert sie zwischen. Seitenlokale Regeln
 * bleiben per @push('head') in den Views und kommen NACH dieser Datei — sie
 * dürfen hier also nichts Unerwartetes erben. Deshalb tragen die neuen,
 * einheitlichen Bausteine den Vorsatz `ui-`, und die bisherigen Klassennamen
 * (.card, .badge, .status, .flash …) bleiben unverändert erhalten.
 *
 * Farben NUR über die Tokens unten. Statusfarben sind von der Akzentfarbe
 * getrennt: Rot heißt „handeln", nie „Hinweis"; Grau heißt „keine Aussage" —
 * und „nicht bewertbar" ist ausdrücklich keine Entwarnung.
 */
:root {
    --bg: #f3f5f9;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --ink: #1c2436;
    --ink-2: #3e4a61;
    --muted: #6a7489;
    --line: #e2e6ee;
    --line-2: #cfd5e1;
    --nav: #121a2b;
    --nav-2: #1d2740;
    --nav-ink: #c9d1e1;
    --nav-muted: #7a86a0;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-soft: #e8efff;

    --ok: #15803d;      --ok-bg: #ecfdf3;      --ok-line: #b7e5c8;
    --warn: #a15c07;    --warn-bg: #fff8e6;    --warn-line: #f5d9a3;
    --fail: #b42318;    --fail-bg: #fdeeee;    --fail-line: #f6c4c0;
    --unk: #5b6477;     --unk-bg: #eff1f5;     --unk-line: #d7dce5;
    --legacy: #6941c6;  --legacy-bg: #f3effd;  --legacy-line: #d9ccf7;
    --info: #1e40af;    --info-bg: #eef3ff;    --info-line: #c8d6fb;

    --radius: .5rem;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sidebar: 14.5rem;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

/* ------------------------------------------------------------ Rahmen --- */

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
    background: var(--nav);
    color: var(--nav-ink);
    padding: 1rem .7rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .brand { color: #fff; font-weight: 700; padding: 0 .55rem; letter-spacing: -.01em; }
.sidebar .brand small { display: block; font-weight: 400; color: var(--nav-muted); font-size: .72rem; }
.sidebar .brand:hover { text-decoration: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.nav-group { display: flex; flex-direction: column; gap: .1rem; }
.nav-label {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
    color: var(--nav-muted); font-weight: 600; padding: 0 .55rem .2rem;
}
.sidebar nav a {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    color: var(--nav-ink); padding: .32rem .55rem; border-radius: .375rem; font-size: .92rem;
}
.sidebar nav a:hover { background: var(--nav-2); color: #fff; text-decoration: none; }
.sidebar nav a.is-current { background: #26324a; color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 #7ea2ff; }
.sidebar nav .nav-bottom { margin-top: auto; }
.nav-count {
    font-size: .7rem; font-weight: 700; padding: 0 .4rem; border-radius: 999px;
    background: #4a2330; color: #ffb4ab;
}
.sidebar form { margin: 0; padding: 0 .55rem; }
.sidebar form button { background: none; color: var(--nav-muted); padding: 0; font-size: .85rem; }
.sidebar form button:hover { background: none; color: #fff; }
.sidebar .who { font-size: .78rem; color: var(--nav-muted); padding: 0 .55rem; overflow-wrap: anywhere; }

.shell-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .55rem 1.5rem;
    /* Bewusst NICHT sticky: Auswertung und Crawl-Ansicht haben eigene
       klebende Leisten (top: 0 / 1rem), die sonst darunter verschwänden. */
    position: relative; z-index: 20;
}
.topbar .topbar-right { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.alert-pill {
    font-size: .82rem; border: 1px solid var(--fail-line); background: var(--fail-bg); color: var(--fail);
    border-radius: 999px; padding: .1rem .7rem; white-space: nowrap; font-weight: 600;
}
.alert-pill:hover { text-decoration: none; background: #fbe0de; }
.burger { display: none; }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }

/* Domain-Umschalter — <details>, funktioniert ohne JavaScript. */
.scope { position: relative; }
.scope > summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid var(--line-2); background: var(--surface-2); border-radius: .45rem;
    padding: .28rem .7rem; max-width: 100%;
}
.scope > summary::-webkit-details-marker { display: none; }
.scope > summary::after { content: "▾"; color: var(--muted); font-size: .8rem; }
.scope-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.scope-value { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.scope.is-disabled > summary { cursor: default; opacity: .6; }
.scope.is-disabled > summary::after { content: none; }
.scope-menu {
    position: absolute; top: calc(100% + .35rem); left: 0; z-index: 40;
    width: 20rem; max-width: calc(100vw - 2rem); max-height: 70vh; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: .6rem;
    box-shadow: 0 14px 32px -12px rgba(18, 26, 43, .35); padding: .4rem;
}
.scope-menu input[type=search] { width: 100%; max-width: none; margin: 0 0 .35rem; }
.scope-menu .scope-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .45rem .5rem .15rem; font-weight: 600; }
.scope-menu a {
    display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: .375rem;
    color: var(--ink);
}
.scope-menu a:hover { background: var(--surface-2); text-decoration: none; }
.scope-menu a.is-selected { background: var(--accent-soft); font-weight: 600; }
.scope-menu .scope-note { font-size: .78rem; color: var(--muted); padding: .45rem .5rem .2rem; border-top: 1px solid var(--line); margin-top: .3rem; }

/* Angemeldete Seiten nutzen die ganze Breite neben der Seitenleiste — ohne
   Obergrenze. Der erste Anlauf (Modul 65) deckelte bei 108rem; auf breiten
   Schirmen blieb damit links und rechts ein Rand, und Tabellen mit URLs brachen
   trotzdem um. Lesetexte begrenzen sich selbst (details.ui-method p,
   .card > p.muted), deshalb braucht es keine Seitenbreite. Die Klassen
   `wide`/`full` bleiben als Namen bestehen, damit Seiten, die sie setzen,
   nichts ändern müssen. */
main { width: 100%; max-width: none; margin: 1.5rem 0; padding: 0 1.5rem; }
main.wide, main.full { max-width: none; }

/* URL-Spalten: ohne Mindestbreite quetscht die Tabellenautomatik sie auf
   wenige Zeichen zusammen (word-break: break-all erlaubt das), und aus
   „https://www.dps-bs.de/" werden drei Zeilen. */
td.url-cell { min-width: 16rem; }

/* Ohne Anmeldung (Login): kein Rahmen, zentrierte Karte wie bisher. */
body.guest main { margin: 3rem auto 1.5rem; max-width: 64rem; }
.card > p.muted { max-width: 90ch; }

@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; width: 16rem; z-index: 50;
        transform: translateX(-100%); transition: transform .15s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, .25);
    }
    .nav-toggle:checked ~ .sidebar { transform: none; }
    .nav-toggle:checked ~ .nav-backdrop { display: block; }
    .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(18, 26, 43, .35); z-index: 45; }
    .burger {
        display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
        border: 1px solid var(--line-2); border-radius: .375rem; padding: .22rem .6rem; font-size: .9rem;
    }
    .topbar { padding: .5rem 1rem; }
    main { margin: 1rem auto; padding: 0 1rem; }
    .scope-value { max-width: 10rem; }
    /* Breite Tabellen scrollen auf dem Handy in sich, statt die Seite
       waagerecht zu dehnen — auch dort, wo keine .table-scroll drumsteht. */
    main table { display: block; overflow-x: auto; }
    /* Auf dem Handy sagt der Umschalter direkt darüber schon dasselbe. */
    .ui-scope-note { display: none; }
    .ui-tile-value { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ------------------------------------------------------ Grundelemente --- */

h1 { font-size: 1.35rem; margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.flash {
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    color: #065f46;
    border-radius: var(--radius);
    padding: .6rem 1rem;
    margin-bottom: 1.25rem;
}
.flash--error { background: var(--fail-bg); border-color: var(--fail-line); color: var(--fail); }
.muted { color: var(--muted); }
.error { color: var(--fail); margin: .25rem 0 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr.inactive td { color: #9ca3af; }
/* Gewählte Domain in Listen, die bewusst alle Domains zeigen. */
tr.is-scoped td { background: var(--accent-soft); }

.status { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.dot { width: .65rem; height: .65rem; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status--up .dot, .dot--up { background: #16a34a; }
.status--down .dot, .dot--down { background: #dc2626; }
.status--unknown .dot, .dot--unknown { background: #9ca3af; }
.status--down { color: var(--fail); font-weight: 600; }
/* Erreichbar, aber gestört (fehlende Datei, Inhaltsfehler, Teilstörung): nicht rot wie ein Totalausfall. */
.status--degraded .dot, .dot--degraded { background: #d98a0b; }
.status--degraded { color: var(--warn); font-weight: 600; }

.badge {
    display: inline-block;
    font-size: .75rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    border: 1px solid var(--line);
}
.badge--open { background: var(--fail-bg); border-color: var(--fail-line); color: var(--fail); }
.badge--live { background: var(--ok-bg); border-color: var(--ok-line); color: #047857; }

label.checkbox { font-weight: 600; }
label.checkbox input[type=checkbox] { width: auto; max-width: none; margin: 0 .4rem 0 0; vertical-align: middle; }

label { display: block; margin-bottom: .75rem; font-weight: 600; }
label small { display: block; font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea {
    width: 100%;
    max-width: 24rem;
    padding: .45rem .6rem;
    margin-top: .25rem;
    border: 1px solid #d1d5db;
    border-radius: .375rem;
    font: inherit;
    background: #fff;
}
fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
fieldset:last-child { margin-bottom: 0; }
legend { font-weight: 700; padding: 0 0 .75rem; font-size: 1.05rem; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > label { flex: 1 1 12rem; }
.actions { display: flex; gap: .75rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
button {
    font: inherit;
    padding: .45rem 1rem;
    border: none;
    border-radius: .375rem;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
button:hover { background: var(--accent-hover); }
/* Ein Link, der wie ein Knopf aussieht: für die eine Hauptaktion einer Zeile
   („Ergebnis →“). Als blosser Textlink ging sie neben den Zahlen unter. */
a.ui-btn {
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
    padding: .4rem .9rem; border-radius: .375rem; font-weight: 600; font-size: .9rem;
    background: var(--accent); color: #fff; text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}
a.ui-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
a.ui-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Zweite Aktion daneben („Vergleich“): gleiche Form, zurückhaltender. */
a.ui-btn--ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--line-2); box-shadow: none; }
a.ui-btn--ghost:hover { background: var(--surface-2); color: var(--accent); }
.ui-actions { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Einstellungen, die man selten braucht, über den Ergebnissen: zugeklappt
   als Leiste, damit die Ergebnisse auf den ersten Blick sichtbar bleiben.
   <details> — funktioniert ohne JavaScript. */
details.ui-panel { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; margin: 0 0 1rem; }
details.ui-panel > summary {
    list-style: none; cursor: pointer; padding: .75rem 1rem;
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
details.ui-panel > summary::-webkit-details-marker { display: none; }
details.ui-panel > summary .ui-panel-title { font-weight: 600; color: var(--ink); }
details.ui-panel > summary .ui-panel-title::before { content: "▸ "; color: var(--muted); }
details.ui-panel[open] > summary .ui-panel-title::before { content: "▾ "; }
details.ui-panel > summary .ui-panel-meta { color: var(--muted); font-size: .9rem; }
details.ui-panel > summary .ui-panel-cta { margin-left: auto; }
/* Sieht aus wie ein Knopf, ist aber Teil der Leiste (ein echter <button> im
   <summary> würde das Aufklappen schlucken). */
.ui-btn-like { display: inline-flex; padding: .4rem .9rem; border-radius: .375rem; font-weight: 600; font-size: .9rem; background: var(--accent); color: #fff; }
details.ui-panel[open] > summary .ui-btn-like { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); }
details.ui-panel > .ui-panel-body { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
details.ui-panel .when-open { display: none; }
details.ui-panel[open] .when-open { display: inline; }
details.ui-panel[open] .when-closed { display: none; }
details.ui-panel > .ui-panel-body > .card { box-shadow: none; border: none; padding-left: 0; padding-right: 0; margin-bottom: 0; }
button.secondary { background: #4b5563; }
button.secondary:hover { background: #374151; }
button.link { background: none; color: var(--fail); padding: 0; }
button.link:hover { text-decoration: underline; }
.inline-form { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.inline-form input { margin-top: 0; }

/* Zerstoerende Aktion — darf nicht wie „Speichern" aussehen. */
button.danger { background: #b91c1c; }
button.danger:hover { background: #991b1b; }

/* Hinweis auf eine fehlende Voraussetzung (z. B. Google-OAuth nicht konfiguriert). */
.warning {
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    color: #7a4507;
    border-radius: var(--radius);
    padding: .6rem 1rem;
    margin-bottom: 1.25rem;
}

/* Mehrere Aktionen in einer Tabellenzeile. Die Flexbox gehoert in ein
   <div> INNERHALB der Zelle: ein <td> mit display:flex faellt aus dem
   Tabellen-Layout heraus und sprengt die Spaltenbreiten. */
.row-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row-actions form { margin: 0; }
.row-actions input { max-width: 15rem; margin-top: 0; }
/* Zeilen-Aktionen sind Beiwerk, kein Hauptknopf — entsprechend kleiner. */
.row-actions button { white-space: nowrap; padding: .28rem .7rem; font-size: .85rem; }
.row-actions input { padding: .3rem .5rem; font-size: .85rem; }
.inline-label { margin: 0; font-size: .8rem; color: var(--muted); align-self: center; }
tr.detail td { padding-top: 0; border-bottom: 1px solid var(--line); }

/* Breite Tabellen scrollen in sich, statt die Seite waagerecht zu dehnen. */
.table-scroll { overflow-x: auto; }

/* Reiter (Einstellungs-Bereich, Domain-Seite) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0 0 1.25rem;
    border-bottom: 1px solid var(--line);
}
.tabs a {
    padding: .5rem .9rem;
    color: #4b5563;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: .375rem .375rem 0 0;
    margin-bottom: -1px;
}
.tabs a:hover { color: #111827; background: var(--surface-2); text-decoration: none; }
.tabs a.is-active {
    background: #fff;
    border-color: var(--line);
    border-bottom-color: #fff;
    color: #111827;
    font-weight: 600;
}

/* ------------------------------------------- Einheitliche Bausteine --- */

/* Seitenkopf: Titel links, Bezug (Domain/Zeitraum) rechts. */
.ui-head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.ui-head h1 { margin: 0; }
.ui-scope-note {
    font-size: .85rem; color: var(--ink-2); background: var(--info-bg); border: 1px solid var(--info-line);
    border-radius: .375rem; padding: .2rem .65rem;
}

/* Kachel: Beschriftung, Zahl, optional Veränderung, Kontextzeile.
   Die Kontextzeile ist Pflicht, sobald eine Prozentzahl dasteht. */
.ui-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.ui-tile {
    display: grid; gap: .1rem; align-content: start;
    background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-2);
    border-radius: var(--radius); padding: .65rem .9rem .75rem; color: inherit;
}
a.ui-tile:hover { text-decoration: none; background: var(--surface-2); }
.ui-tile.is-active { outline: 2px solid var(--accent); outline-offset: -1px; }
.ui-tile--ok { border-top-color: var(--ok); }
.ui-tile--fail { border-top-color: var(--fail); background: var(--fail-bg); }
.ui-tile--warn { border-top-color: #d98a0b; }
.ui-tile--unk { border-top-color: #a3abbb; }
.ui-tile--legacy { border-top-color: var(--legacy); }
.ui-tile-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ui-tile-value { font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ui-tile--fail .ui-tile-value { color: var(--fail); }
.ui-tile-context { font-size: .8rem; color: var(--muted); }

/* Status-Pill: überall dieselbe Form. */
.ui-pill {
    display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; border: 1px solid;
    padding: .02rem .55rem; font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.ui-pill--ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.ui-pill--fail { color: var(--fail); background: var(--fail-bg); border-color: var(--fail-line); }
.ui-pill--warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.ui-pill--unk { color: var(--unk); background: var(--unk-bg); border-color: var(--unk-line); }
.ui-pill--legacy { color: var(--legacy); background: var(--legacy-bg); border-color: var(--legacy-line); }
.ui-pill--info { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.ui-chip {
    display: inline-block; font-size: .75rem; border: 1px solid var(--line-2); border-radius: .3rem;
    padding: 0 .4rem; color: var(--ink-2); background: var(--surface-2); white-space: nowrap;
}

/* Hinweis, der die Deutung einer Zahl ändert — steht an der Zahl. */
.ui-hint { border: 1px solid; border-radius: .375rem; padding: .55rem .8rem; margin-bottom: 1rem; font-size: .92rem; }
.ui-hint--warn { background: var(--warn-bg); border-color: var(--warn-line); color: #6d4105; }
.ui-hint--info { background: var(--info-bg); border-color: var(--info-line); color: #1b2f73; }
.ui-hint--fail { background: var(--fail-bg); border-color: var(--fail-line); color: #7a1a12; }

/* „So wird gemessen": Methodik eine Ebene tiefer, aber vollständig im HTML
   (Browser-Suche, Screenreader und Tests finden den Text weiterhin). */
details.ui-method {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0 1rem; margin-bottom: 1.25rem; color: var(--ink-2); font-size: .92rem;
}
details.ui-method > summary { cursor: pointer; padding: .55rem 0; font-weight: 600; color: var(--ink); }
details.ui-method[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
details.ui-method p { max-width: 80ch; }

/* Leerzustand: sagt, WAS fehlt. „Keine Fehler" und „noch nicht geprüft"
   sehen nie gleich aus. */
.ui-empty {
    border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1.1rem; text-align: center;
    color: var(--ink-2); background: var(--surface); margin-bottom: 1.25rem;
}
.ui-empty strong { display: block; color: var(--ink); }

/* Tabellenzeile mit Schwere-Streifen links. */
tr.ui-sev-fail > td:first-child { box-shadow: inset 3px 0 0 var(--fail); }
tr.ui-sev-warn > td:first-child { box-shadow: inset 3px 0 0 #d98a0b; }
tr.ui-sev-legacy > td:first-child { box-shadow: inset 3px 0 0 var(--legacy); }
tr.ui-sev-unk > td:first-child { box-shadow: inset 3px 0 0 #a3abbb; }

/* Reiter innerhalb einer Seite (Domain-Detail). Ohne JavaScript ist alles
   sichtbar; mit JavaScript blenden die Reiter die Abschnitte ein und aus. */
/* Trennlinie als inset-Schatten statt border, Reiter ohne negativen Rand:
   mit margin-bottom:-1px ragten sie 1px über die Leiste, und weil die Leiste
   für schmale Schirme horizontal scrollt (overflow-x), ließ sie sich dadurch
   auch senkrecht scrollen. */
.ui-tabs { display: flex; gap: .15rem; box-shadow: inset 0 -1px 0 var(--line-2); margin: 0 0 1.25rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.ui-tabs a { padding: .45rem .8rem; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.ui-tabs a:hover { text-decoration: none; color: var(--ink); }
.ui-tabs a[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.ui-tabs a .nav-count { background: var(--fail-bg); color: var(--fail); margin-left: .3rem; }
[data-tab-panel][hidden] { display: none !important; }

/* ------------------------------------------ Geteilte Seitenbausteine --- */
/* Standen bis Modul 63 in zwei bis vier Seiten-Stylesheets wortgleich
   nebeneinander (Auswertung, SEO-Chancen, Crawls, Performance). Eine Kopie je
   Seite läuft beim nächsten Nachschärfen auseinander — deshalb hier. */

/* Zeitraum-Voreinstellungen (Auswertung, SEO-Chancen). */
.ranges { display: flex; gap: .35rem; flex-wrap: wrap; }
.ranges a {
    border: 1px solid var(--line); border-radius: .375rem; padding: .3rem .7rem;
    color: var(--ink-2); font-size: .85rem; background: var(--surface);
}
.ranges a:hover { border-color: var(--muted); text-decoration: none; }
.ranges a.is-active { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Bedienleiste über einer Auswertung. */
.toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .6rem .85rem; }
.toolbar__row + .toolbar__row { border-top: 1px solid var(--surface-2); }

/* Datenlage-Hinweis (Nachlauf, Lücke, gesampelt) — dieselbe Form wie
   .ui-hint, damit „Achtung, diese Zahl ist anders zu lesen" überall gleich
   aussieht. .notice--gap ist die graue Fassung: keine Warnung, keine Aussage. */
.notice {
    border: 1px solid var(--warn-line); background: var(--warn-bg); color: #6d4105;
    padding: .55rem .8rem; border-radius: .375rem; font-size: .9rem; margin: 0 0 1rem;
}
.notice--gap { border-color: var(--unk-line); background: var(--unk-bg); color: var(--ink-2); }
.notice ul { margin: .35rem 0 0; padding-left: 1.1rem; }

/* Zahlenspalten rechtsbündig mit Tabellenziffern: sonst lässt sich eine
   Spalte mit 12 und 1.204 nicht mit dem Auge vergleichen. */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem 1rem; flex-wrap: wrap; }

/* Seitenkopf über einer Detailansicht: „← zurück"-Link, Titel, Bezug. */
.ui-back { margin: 0 0 .35rem; font-size: .9rem; }

/* Sprünge ins WordPress der Domain (Crawl-UI, 09.10.2026). Links, die wie
   Knöpfe aussehen — sie öffnen eine fremde Seite in einem neuen Tab und lösen
   nichts aus. Nicht verfügbare stehen ausgegraut mit Grund im title da, damit
   man nicht rätselt, warum einer fehlt. */
.ui-wp { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem; }
.ui-wp a, .ui-wp span {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .35rem .8rem; border-radius: .375rem; font-size: .9rem;
    border: 1px solid var(--line-2); background: var(--surface); color: var(--accent);
    text-decoration: none;
}
.ui-wp a:hover { background: var(--accent-soft); border-color: var(--accent); }
.ui-wp a.is-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ui-wp a.is-primary:hover { background: var(--accent-hover); }
.ui-wp span { color: var(--muted); background: var(--surface-2); cursor: help; }
.ui-wp--compact { gap: .15rem .6rem; margin: .15rem 0 0; }
.ui-wp--compact a, .ui-wp--compact span { padding: 0; border: none; background: none; font-size: .8rem; }
.ui-wp--compact a:hover { background: none; text-decoration: underline; }
.ui-wp--compact span { display: none; }

/* Lange Tabellen zeigen nur die ersten Zeilen (data-collapse="N"); der Knopf
   darunter klappt den Rest auf. Ohne JavaScript bleibt alles sichtbar. */
tr.is-collapsed { display: none; }
button.ui-more {
    background: none; color: var(--accent); padding: .5rem 0 0; font-size: .9rem;
}
button.ui-more:hover { background: none; text-decoration: underline; }
