/* test.tooltec.network — the public website's look (tooltec.de "Design B", kk-lab/tooltec-de assets/css/tooltec-b.css,
   tooltec.css, fonts.css): tokens and component shapes copied, not invented. The website is light-only, so is this page.
   Fonts: DM Sans (text) + Yantramanav (headings), self-hosted, SIL OFL 1.1 (ofl.txt). */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/dm-sans-400-800-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/dm-sans-400-800-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Yantramanav'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/yantramanav-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Yantramanav'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/yantramanav-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Yantramanav'; font-style: normal; font-weight: 900; font-display: swap;
  src: url(/static/yantramanav-900-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Yantramanav'; font-style: normal; font-weight: 900; font-display: swap;
  src: url(/static/yantramanav-900-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* tooltec-b.css :root */
  --b-ink: #1a1a2e;
  --b-text: #596171;
  --b-strong: #44423f;
  --b-base: #bf2472;
  --b-grad: linear-gradient(135deg, #bf2472, #d64a8f);
  --b-tint: #f8f5fa;
  --b-chip: #f8f0f5;
  --b-hair: #e9e6ee;
  --b-ease: cubic-bezier(.16, 1, .3, 1);
  --b-bar-h: 72px;
  /* tooltec.css :root */
  --tooltec-font: "DM Sans", sans-serif;
  --tooltec-heading-font: "Yantramanav", sans-serif;
  --tooltec-black: #44423f;
  /* status ink for results (the website's own palette has none; AA on white) */
  --ok: #1a7431; --warn: #8f5b00; --bad: #c4001a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--b-text); font-family: var(--tooltec-font); font-size: 16px; line-height: 1.625; }
h1, h2, h3 { font-family: var(--tooltec-heading-font); color: var(--b-ink); }
a { color: var(--b-base); }
.b-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 575px) { .b-wrap { padding: 0 16px; } }

/* ---------- Kopfzeile (.b-bar) ---------- */
.b-bar { position: sticky; top: 0; z-index: 990; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--b-hair); box-shadow: 0 6px 20px rgba(26, 26, 46, .06); }
.b-bar__inner { display: flex; align-items: center; gap: 20px; height: var(--b-bar-h); }
.b-bar__logo img { display: block; height: 34px; width: auto; }
.lang { margin-left: auto; display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--b-tint); }
.lang button { border: 0; background: transparent; color: var(--b-ink); font: inherit; font-weight: 600; font-size: 14px;
  padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--b-base); box-shadow: 0 2px 8px rgba(26, 26, 46, .08); }
@media (max-width: 1199px) { :root { --b-bar-h: 64px; } .b-bar__logo img { height: 30px; } }

/* ---------- Hero (.b-hero, kompakt) ---------- */
.b-hero { position: relative; overflow: hidden; background: var(--b-tint); padding: clamp(32px, 5vw, 56px) 0 clamp(36px, 5vw, 60px); }
.b-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -240px; border-radius: 50%;
  pointer-events: none; background: radial-gradient(circle, rgba(191, 36, 114, .14), transparent 65%); }
.b-tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b-base); margin: 0; }
.b-hero h1 { position: relative; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.01em; margin: 12px 0 14px; }
.b-hero h1 span { background: var(--b-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-lead { position: relative; font-size: 19px; line-height: 1.6; color: var(--b-text); max-width: 640px; margin: 0; }
@media (max-width: 575px) { .b-lead { font-size: 17px; } }

/* ---------- Karten (.b-card, ruhig: keine Hover-Bewegung — Werkzeug, keine Werbefläche) ---------- */
main.b-wrap { display: grid; gap: 22px; padding-top: 32px; padding-bottom: 56px; }
.card { position: relative; min-width: 0; background: linear-gradient(135deg, #fff, #fbf8fd); border: 1px solid #f1e8ef;
  border-radius: 22px; padding: 28px; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--b-grad); }
@media (max-width: 575px) { .card { padding: 22px 18px; border-radius: 18px; } }
.card h2 { font-size: 26px; line-height: 1.15; margin: 0 0 12px; }
.card h3 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 767px) { .cols { grid-template-columns: 1fr; } }
.hint { color: var(--b-text); font-size: 15.5px; line-height: 1.6; margin: 0 0 14px; }

/* Status-Zeilen (wie .b-badge / .b-flow__trust: Chip-Fläche, Punkt) */
.banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px;
  background: var(--b-tint); border: 1px solid var(--b-hair); color: var(--b-ink); font-weight: 600; font-size: 15.5px; }
.banner::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #b5b0c2; }
.banner.ok::before { background: var(--ok); } .banner.warn::before { background: #d98a00; } .banner.bad::before { background: var(--bad); }
.banner.warn { background: #fff8ec; border-color: #f3e2bf; }
.banner.bad { background: #fff0f1; border-color: #f4c9ce; }
.banner[hidden] { display: none; }

.path { background: #fff; border: 1px solid var(--b-hair); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.path h3 { display: flex; align-items: center; gap: 8px; }
.path h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #b5b0c2; flex: none; }
.path.ok h3::before { background: var(--ok); } .path.warn h3::before { background: #d98a00; } .path.bad h3::before { background: var(--bad); }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 15px; }
dt { color: var(--b-text); } dd { margin: 0; color: var(--b-ink); overflow-wrap: anywhere; }

table.kv { border-collapse: collapse; width: 100%; font-size: 15px; }
table.kv td { padding: 7px 10px 7px 0; vertical-align: top; color: var(--b-ink); overflow-wrap: anywhere; border-bottom: 1px solid #f2eff4; }
table.kv tr:last-child td { border-bottom: 0; }
table.kv td:first-child { color: var(--b-text); white-space: nowrap; width: 1%; padding-right: 18px; }
@media (max-width: 575px) { table.kv td:first-child { white-space: normal; width: 40%; overflow-wrap: normal; hyphens: auto; } }
table.mono td { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--b-chip);
  color: var(--b-strong); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }

/* Buttons (.b-btn--primary .b-btn--sm) */
button.go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; color: #fff;
  background: var(--b-grad); box-shadow: 0 10px 24px rgba(191, 36, 114, .25);
  transition: transform .3s var(--b-ease), box-shadow .3s var(--b-ease); }
button.go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(191, 36, 114, .32); }
button.go:disabled { background: #d9d6e0; box-shadow: none; cursor: progress; transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(191, 36, 114, .45); outline-offset: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input[type=number] { width: 120px; min-height: 44px; padding: 0 12px; font: inherit; color: var(--b-ink); background: #fff;
  border: 1.5px solid var(--b-hair); border-radius: 12px; }
label.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0 14px 10px 0; color: var(--b-strong); font-size: 15px; }
input[type=checkbox] { accent-color: var(--b-base); width: 18px; height: 18px; }

/* IPv6-Ergebnis */
.score { font-family: var(--tooltec-heading-font); font-weight: 900; font-size: 44px; line-height: 1; margin: 4px 0 14px;
  background: var(--b-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { ul.checks { grid-template-columns: 1fr; } }
ul.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--b-ink); font-size: 15px; }
ul.checks li > span:first-child { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
ul.checks li small { grid-column: 2; color: var(--b-text); font-size: 13px; }
.y { background: #e8f4ec; color: var(--ok); } .n { background: #fdecee; color: var(--bad); } .p { color: var(--b-text); }

/* Messwerte (.b-card-Kacheln) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { background: #fff; border: 1px solid var(--b-hair); border-radius: 16px; padding: 14px 16px; }
.tile b { display: block; font-family: var(--tooltec-heading-font); font-weight: 900; font-size: 26px; line-height: 1.1; color: var(--b-ink); }
.tile span { color: var(--b-text); font-size: 13.5px; }

/* Traceroute */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.hops { border-collapse: collapse; width: 100%; font-size: 13.5px; background: #fff; border: 1px solid var(--b-hair); border-radius: 12px; }
table.hops th { background: var(--b-tint); color: var(--b-strong); font-weight: 700; }
table.hops th, table.hops td { text-align: right; padding: 6px 8px; border-bottom: 1px solid #f2eff4; white-space: nowrap; color: var(--b-ink); }
table.hops th:nth-child(2), table.hops td:nth-child(2) { text-align: left; white-space: normal; overflow-wrap: anywhere; min-width: 160px; }
table.hops td.lossy { color: var(--bad); font-weight: 700; }
.verdict-line { font-weight: 600; color: var(--b-ink); margin: 4px 0 10px; min-height: 1.2em; }
details { margin-top: 14px; } summary { cursor: pointer; color: var(--b-base); font-weight: 600; }

/* ---------- Fußzeile (.main-footer__bottom) ---------- */
.foot { background: var(--tooltec-black); padding: 36px 0 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.foot__top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot__top img { height: 30px; width: auto; display: block; }
.foot__top p { margin: 0; max-width: 640px; }
.foot__bottom { margin-top: 28px; background: #181A1D; border-radius: 10px 10px 0 0; padding: 18px 28px; }
.foot__bottom p { margin: 0; }
.foot a { color: #e84a9c; text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: #fff; }
@media (max-width: 767px) { .foot__bottom { text-align: center; padding: 16px 18px; } }

@media (prefers-reduced-motion: reduce) { button.go { transition: none; } button.go:hover { transform: none; } }
