/* EchoMail Web-UI — OneSystems; ausgelagert aus web_ui, ausgeliefert als /web-assets/css/styles.css */
:root {
  --bg-deep: #020617;
  --bg-mid: #0f172a;
  --surface: rgba(15, 23, 42, 0.45);
  --card-glass: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.08));
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius-lg: 1.25rem;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.45);
  /* files/logo.png: neutrales Grau — leicht aufhellen, näher an --text (#e2e8f0) */
  --brand-logo-toning: brightness(1.2) contrast(1.03);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg-mid) 0%, var(--bg-deep) 80%);
  min-height: 100vh;
  line-height: 1.45;
}
body.band-good { --band-glow: rgba(52, 211, 153, 0.12); }
body.band-mid { --band-glow: rgba(251, 191, 36, 0.1); }
body.band-bad { --band-glow: rgba(248, 113, 113, 0.12); }
body.band-neutral { --band-glow: transparent; }
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2rem;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}
a.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 11rem;
  display: block;
  object-fit: contain;
  filter: var(--brand-logo-toning);
}
.brand-meta h1 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0 0 0.12rem;
  letter-spacing: -0.02em;
}
.brand-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.top-right { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
a.ghost, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 9999px;
  padding: 0.45rem 1.15rem;
  color: var(--text);
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
}
a.ghost:hover, .ghost:hover { background: rgba(148, 163, 184, 0.22); }
.nav-back { margin-bottom: 1rem; }
.nav-back a { font-size: 0.82rem; }
.meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 1rem; }
.page-heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}
.st-card {
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
  margin-bottom: 1rem;
}
.st-card p { margin: 0 0 0.85rem; line-height: 1.55; }
.st-card p:last-child { margin-bottom: 0; }
.mono-addr {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1rem;
  background: rgba(15, 23, 42, 0.45);
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  word-break: break-all;
  margin: 0.5rem 0 0;
}
.mono-addr code { color: var(--accent); }
/* Web-Test: Frist-Hinweis zwischen Nav und Auswertungs-Karte */
.echo-ttl-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
}
.echo-ttl-banner strong {
  color: var(--accent);
  font-weight: 650;
}
.echo-ttl-banner--compact p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .echo-ttl-banner--compact p {
    white-space: normal;
  }
}
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow), 0 0 0 1px var(--band-glow, transparent);
}
.score-ring {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.05;
  border: 3px solid var(--accent);
  background: rgba(15, 23, 42, 0.5);
  flex-shrink: 0;
  color: var(--accent);
}
body.band-good .score-ring { border-color: var(--ok); color: var(--ok); }
body.band-mid .score-ring { border-color: var(--warn); color: var(--warn); }
body.band-bad .score-ring { border-color: var(--bad); color: var(--bad); }
.score-num { font-size: 1.75rem; }
.score-max { font-size: 0.65rem; font-weight: 600; opacity: 0.75; }
.tier { flex: 1; min-width: 12rem; }
.tier-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
body.band-good .tier-title { color: var(--ok); }
body.band-mid .tier-title { color: var(--warn); }
body.band-bad .tier-title { color: var(--bad); }
.sig-stack {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  height: 26px;
  margin-bottom: 0.5rem;
}
.sig-bar {
  width: 9px;
  height: 40%;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.2);
  transition: height 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.sig-bar:nth-child(1) { height: 35%; }
.sig-bar:nth-child(2) { height: 55%; }
.sig-bar:nth-child(3) { height: 72%; }
.sig-bar:nth-child(4) { height: 88%; }
.sig-bar:nth-child(5) { height: 100%; }
body.band-good .sig-bar-on {
  background: linear-gradient(180deg, #6ee7b7, var(--ok));
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}
body.band-mid .sig-bar-on {
  background: linear-gradient(180deg, #fcd34d, var(--warn));
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}
body.band-bad .sig-bar-on {
  background: linear-gradient(180deg, #fca5a5, var(--bad));
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
}
.tier-blurb { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.tier-hint { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-basis: 100%;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 0.85rem;
}
.breakdown li {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.breakdown li:last-child { margin-bottom: 0; }
.breakdown .bd-dot {
  margin-top: 0.42rem;
  flex-shrink: 0;
}
.breakdown .bd-block { flex: 1; min-width: 0; }
.bd-title { font-weight: 600; }
.bd-pts {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.12rem 0.4rem;
  border-radius: 0.45rem;
}
.bd-detail { font-size: 0.86rem; color: var(--muted); margin-top: 0.2rem; }
details.acc {
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin-bottom: 0.65rem;
  overflow: hidden;
}
details.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "▸";
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.45;
  transition: transform 0.15s ease;
}
details.acc[open] summary::after { transform: rotate(90deg); }
.acc-status {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.acc-ok { background: var(--ok); box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25); }
.acc-warn { background: #fb923c; box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.25); }
/* Fehler / harte Ablehnung */
.acc-bad { background: var(--bad); box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35); }
/* Neutral, nicht bewertet, Hinweis — orange */
.acc-neutral,
.acc-neu { background: #ea580c; box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.28); }
/* Nur Anzeige (Roh-Header, Quelle) — grau */
.acc-info { background: #64748b; box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.32); }
.acc-sub { font-weight: 500; color: var(--muted); font-size: 0.88rem; }
.acc-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}
.acc-body > *:first-child { margin-top: 0.85rem; }
table.kv { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.kv th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.75rem 0.35rem 0;
  vertical-align: top;
  width: 11rem;
}
table.kv td { padding: 0.35rem 0; vertical-align: top; }
.mono, .acc-body.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.mono { white-space: pre-wrap; word-break: break-word; }
pre.preblock {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.78rem;
  max-height: 24rem;
  overflow: auto;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
}
a { color: var(--accent); }
a:hover { color: #7dd3fc; }
.footer-link { margin-top: 1.15rem; }
.footer-link a {
  font-size: 0.88rem;
  font-weight: 500;
}
.actions { margin-top: 0.75rem; font-size: 0.88rem; }
.actions a { margin-right: 0.75rem; }
a.cta-primary {
  width: 100%;
  max-width: 28rem;
  height: 54px;
  border-radius: 0.9rem;
  border: none;
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-deep) 75%);
  color: #ecfeff !important;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.35);
  text-decoration: none;
  margin-top: 0.65rem;
  transition: transform 0.08s ease-out;
}
a.cta-primary:hover { color: #f0fdfa !important; filter: brightness(1.05); }
a.cta-primary:active { transform: translateY(1px); }
.hub-wrap { max-width: 1140px; margin: 0 auto; }
/* Werbe-Slots (TOOLS_WEB_ADS_*): klarer Abstand zum Inhalt, zentriert */
.web-ad-slot {
  --ad-slot-gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: var(--ad-slot-gap);
  margin-bottom: var(--ad-slot-gap);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hub-wrap > .web-ad-slot:first-child {
  margin-top: 0.85rem;
}
.web-ad-slot + .web-ad-slot {
  margin-top: calc(var(--ad-slot-gap) * 0.35);
}
.web-ad-slot iframe,
.web-ad-slot img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}
.web-ad-slot > script,
.web-ad-slot > noscript {
  display: block;
  max-width: 100%;
}
.hub-lead { color: var(--muted); font-size: 0.82rem; margin-bottom: 1rem; }
.hub-wrap .alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--text);
}
#toolModalSegments { font-size: 0.88rem; }
#toolModalSegments .tool-http { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.75rem; }
#toolModalSegments .table { --bs-table-bg: transparent; --bs-table-border-color: rgba(148, 163, 184, 0.2); }
#toolModalSegments .tool-kv th {
  width: 30%;
  vertical-align: top;
  white-space: nowrap;
  font-weight: 600;
  color: var(--muted);
}
#toolModalSegments .tool-kv td { vertical-align: top; word-break: break-word; }
#toolModalSegments .tool-pre {
  max-height: 55vh;
  overflow: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(15, 23, 42, 0.65);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  margin: 0;
}
#toolModalSegments .tool-list { margin: 0; padding-left: 1.1rem; }
#toolModalSegments .tool-mono { font-family: ui-monospace, monospace; font-size: 0.82rem; }
#toolModalSegments .tool-subtable { margin-top: 0.35rem; }
.hub-grid .card {
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hub-grid .card-body { color: var(--text); }
.hub-grid .text-muted { color: var(--muted) !important; }
.hub-grid .btn-outline-primary {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent);
}
.hub-grid .btn-outline-primary:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent);
  color: #e0f2fe;
}
.hub-grid .btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--muted);
}
.hub-grid .btn-primary {
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-deep) 75%);
  border: none;
  color: #ecfeff;
}
.tool-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}
.tool-hub-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-weight: 650;
}
.tool-hub-card:hover { border-color: var(--accent); color: var(--accent); }
.tool-hub-card small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

/* --- Responsive (Mobile / Tablet) --- */
.hub-wrap code,
.hub-lead code { word-break: break-word; overflow-wrap: anywhere; }

@media (max-width: 768px) {
  .page { padding: 1rem 0.85rem 2.25rem; }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  a.brand {
    flex-wrap: wrap;
    min-width: 0;
    gap: 0.75rem;
  }
  .brand-logo {
    height: 44px;
    max-width: min(11rem, 42vw);
  }
  .brand-meta { min-width: 0; flex: 1 1 auto; }
  .brand-meta h1 {
    font-size: 1.08rem;
    line-height: 1.25;
    word-break: break-word;
  }
  .brand-meta p { font-size: 0.76rem; }
  .top-right {
    width: 100%;
    justify-content: flex-start;
  }
  a.ghost, .ghost { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .page-heading { font-size: 1rem; }
  .meta { font-size: 0.78rem; word-break: break-word; }
  .st-card { padding: 1rem 0.95rem; border-radius: 1rem; }
  .mono-addr { font-size: 0.88rem; padding: 0.7rem 0.8rem; }
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem;
    gap: 1rem;
  }
  .score-ring {
    align-self: center;
    width: 5rem;
    height: 5rem;
  }
  .tier { min-width: 0; width: 100%; }
  .tier-blurb { font-size: 0.9rem; }
  details.acc summary {
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    align-items: flex-start;
  }
  details.acc summary::after {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
  }
  .acc-sub { min-width: 0; word-break: break-word; }
  .acc-body { padding: 0 0.85rem 0.9rem; }
  pre.preblock { max-height: min(50vh, 22rem); font-size: 0.74rem; }
  a.cta-primary {
    max-width: 100%;
    height: 50px;
    font-size: 0.95rem;
  }
  .hub-wrap { padding-left: 0; padding-right: 0; max-width: 100%; }
  .hub-grid .card-body { padding: 1rem; }
  #toolModal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
  #toolModalSegments .tool-kv th {
    width: 34%;
    white-space: normal;
    font-size: 0.8rem;
  }
  #toolModalSegments .tool-kv td { font-size: 0.8rem; }
  #toolModalSegments .tool-pre { max-height: min(48vh, 20rem); font-size: 0.76rem; }
}

@media (max-width: 520px) {
  .page { padding: 0.75rem 0.65rem 1.75rem; }
  a.brand { flex-direction: column; align-items: flex-start; }
  .brand-logo { max-width: 10rem; height: 40px; }
  table.kv th {
    width: auto;
    display: block;
    padding: 0 0 0.15rem;
  }
  table.kv td {
    display: block;
    padding: 0 0 0.65rem;
  }
  table.kv tr { display: block; margin-bottom: 0.5rem; }
  table.kv tr:last-child td:last-child { padding-bottom: 0; }
  .bd-pts { margin-left: 0; margin-top: 0.2rem; }
  .breakdown .bd-title { display: block; }
  .actions a {
    display: inline-block;
    margin: 0 0.5rem 0.35rem 0;
  }
}

@media (max-width: 380px) {
  .brand-meta h1 { font-size: 1rem; }
  .score-num { font-size: 1.5rem; }
}

/* Modaltabellen: nur oberste Ebene stapeln, nicht verschachtelte tool-kv in Zellen */
@media (max-width: 520px) {
  #toolModalSegments .tool-modal-table-seg > table.tool-kv > tbody,
  #toolModalSegments .tool-modal-table-seg > .table-responsive > table.tool-kv > tbody,
  #toolModalSegments .tool-modal-table-seg > table.table-bordered.tool-kv > tbody {
    display: block;
  }
  #toolModalSegments .tool-modal-table-seg > table.tool-kv > tbody > tr,
  #toolModalSegments .tool-modal-table-seg > .table-responsive > table.tool-kv > tbody > tr,
  #toolModalSegments .tool-modal-table-seg > table.table-bordered.tool-kv > tbody > tr {
    display: block;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 0.35rem;
  }
  #toolModalSegments .tool-modal-table-seg > table.tool-kv > tbody > tr > th,
  #toolModalSegments .tool-modal-table-seg > .table-responsive > table.tool-kv > tbody > tr > th,
  #toolModalSegments .tool-modal-table-seg > table.table-bordered.tool-kv > tbody > tr > th {
    display: block;
    width: 100% !important;
    padding-bottom: 0.2rem;
    border-bottom: none;
  }
  #toolModalSegments .tool-modal-table-seg > table.tool-kv > tbody > tr > td,
  #toolModalSegments .tool-modal-table-seg > .table-responsive > table.tool-kv > tbody > tr > td,
  #toolModalSegments .tool-modal-table-seg > table.table-bordered.tool-kv > tbody > tr > td {
    display: block;
    width: 100%;
    padding-top: 0;
    border-top: none;
  }
}

/* Hauptnavigation (Dropdowns) + Werkzeug-Seiten */
.tools-navbar {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(18px);
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1050;
}
.tools-navbar .dropdown-menu {
  z-index: 1060 !important;
}
.layout-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.tools-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.tools-nav-logo {
  max-height: 40px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  display: block;
  filter: var(--brand-logo-toning) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.tools-navbar .navbar-brand {
  font-weight: 650;
  color: var(--text) !important;
}
.tools-navbar .nav-link {
  color: var(--muted) !important;
  font-size: 0.9rem;
}
.tools-navbar .nav-link:hover,
.tools-navbar .nav-link:focus {
  color: var(--accent) !important;
}
.tools-navbar .nav-link.active {
  color: var(--accent) !important;
  font-weight: 600;
}
.tools-navbar .dropdown-menu {
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.tools-navbar .dropdown-item {
  color: var(--text);
  font-size: 0.88rem;
}
.tools-navbar .dropdown-item:hover,
.tools-navbar .dropdown-item:focus {
  background: rgba(56, 189, 248, 0.12);
  color: #f8fafc;
}
.tools-navbar .dropdown-item.active {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
}
.tools-navbar .dropdown-item.disabled {
  opacity: 0.55;
}
.werkzeug-panel.card {
  display: flex;
  flex-direction: column;
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  overflow: hidden;
}
.werkzeug-panel.card .card-body {
  padding: 1.25rem 1.35rem;
}
.werkzeug-panel.card .card-footer {
  border-top: 1px solid var(--border);
}
.werkzeug-curl-footer {
  font-size: 0.7rem;
  line-height: 1.35;
}
.werkzeug-curl-footer code {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  color: var(--muted);
}
.werkzeug-heading {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
}
a.hub-tool-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.hub-tool-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent);
  box-shadow: 0 6px 24px rgba(8, 47, 73, 0.35);
}
a.hub-tool-card small {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}
a.hub-tool-card:hover small {
  color: var(--muted);
}
.werkzeug-cat-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.5rem;
}
.werkzeug-cat-title:first-child { margin-top: 0; }
.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer p { margin: 0; }
.site-footer-links a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer-links a:hover { text-decoration: underline; }
.werkzeug-card-header {
  background: rgba(15, 23, 42, 0.55) !important;
  padding: 1rem 1.35rem !important;
}
.werkzeug-card-header .werkzeug-heading { margin-bottom: 0.35rem; }
@media (max-width: 991px) {
  .tools-navbar .dropdown-menu { margin-bottom: 0.35rem; }
}

/* RBL-Check: farbige Status-Icons in der Ergebnistabelle */
.tool-rbl-table td:first-child,
.tool-rbl-table th:first-child { width: 2.75rem; }
.rbl-status-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  vertical-align: middle;
  line-height: 0;
}
.rbl-status-ico svg {
  width: 0.88rem;
  height: 0.88rem;
  display: block;
}
.rbl-status-clean {
  background: rgba(52, 211, 153, 0.2);
  color: var(--ok);
}
.rbl-status-listed {
  background: rgba(248, 113, 113, 0.22);
  color: var(--bad);
}
.rbl-status-warn {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warn);
}

/* Subdomains-Stichprobe: Zeilen / Zellen */
#toolModalSegments .subdomains-probe-table .probe-row--good {
  background: rgba(34, 197, 94, 0.09);
}
#toolModalSegments .subdomains-probe-table .probe-row--partial {
  background: rgba(234, 179, 8, 0.1);
}
#toolModalSegments .subdomains-probe-table .probe-row--bad {
  background: rgba(239, 68, 68, 0.09);
}
#toolModalSegments .probe-cell-ok { color: #86efac; }
#toolModalSegments .probe-cell-warn { color: #fde68a; }
#toolModalSegments .probe-cell-bad { color: #fca5a5; }
#toolModalSegments .probe-cell-muted { color: var(--muted); }

/* Secure DNS: AD + Resolver-Hinweis */
#toolModalSegments .dnssec-ad-yes { color: #86efac; font-weight: 600; }
#toolModalSegments .dnssec-ad-no { color: var(--muted); }
#toolModalSegments .probe-resolver-note {
  border-left: 3px solid rgba(56, 189, 248, 0.45);
  padding-left: 0.75rem;
}
