/* ===================================================================
   WebTest · Glücksgriff Solutions
   Dark industrial identity — black / #ff3300 / Oswald · Bebas · Roboto
   =================================================================== */

:root {
  --bg: #000000;
  --surface: #0c0c0d;
  --surface-2: #141416;
  --surface-3: #1c1c1f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #9b9ba1;
  --muted-2: #6d6d73;

  --brand: #ff3300;
  --brand-dark: #e63900;
  --gold: #d4a017;

  --good: #0cce6b;
  --ok: #ffa400;
  --bad: #ff4e42;

  --maxw: 1120px;
  --display: 'Bebas Neue', 'Oswald', sans-serif;
  --head: 'Oswald', sans-serif;
  --body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
.hidden { display: none !important; }

/* shared icon stroke style for inline svgs */
.strat-btn svg, .how-ico svg, .dl-ico, .to-top svg, .field-ico svg {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: transparent;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.96);
  padding: 10px 40px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-logo img { height: 46px; width: auto; display: block; transition: height .3s ease; }
.nav.scrolled .nav-logo img { height: 38px; }

.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a {
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  transition: color .25s ease;
}
.nav-menu a:hover { color: var(--brand); }
.nav-menu a.active { color: var(--brand); }
.nav-menu .nav-cta {
  border: 2px solid var(--brand);
  padding: 8px 18px;
  color: #fff;
}
.nav-menu .nav-cta:hover { background: var(--brand); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { width: 28px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--brand);
  color: #fff;
  padding: 15px 34px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid #fff;
  border-radius: 0;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { background: #fff; color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .dl-ico { width: 18px; height: 18px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #fff;
  padding: 14px 24px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(124px, 16vh, 200px) 24px 90px;
  background:
    linear-gradient(180deg, #000 0%, #050505 60%, #0a0a0b 100%);
  overflow: hidden;
}
.hero::after {
  /* faint instrument grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,51,0,.22), transparent 70%);
  pointer-events: none;
  will-change: transform, opacity;
  animation: glowBreath 9s ease-in-out infinite;
}

/* ---- ambient light: drifting glows + a hidden magnifier ----
   A couple of soft lights drift and breathe across the hero. One sweeps
   the lower band; as it passes a point that hides a magnifying glass,
   the glass briefly casts its shadow. You never see the glass itself —
   only the shadow the moving light reveals. */
.hero-orbs {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-orbs .orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.orb-drift {
  width: 460px; height: 420px;
  top: 28%; left: 38%;
  opacity: .6;
  background: radial-gradient(closest-side, rgba(255,51,0,.18), transparent 70%);
  animation: orbDrift 30s cubic-bezier(.37, 0, .63, 1) infinite;
}

@keyframes glowBreath {
  0%, 100% { opacity: .82; transform: translateX(-50%) translate(0, 0)      scale(1); }
  34%      { opacity: 1;   transform: translateX(-50%) translate(36px, 16px) scale(1.05); }
  67%      { opacity: .9;  transform: translateX(-50%) translate(-28px, 30px) scale(1.03); }
}
/* a single light wandering a smooth, non-repeating path in varied directions */
@keyframes orbDrift {
  0%   { transform: translate(0, 0)         scale(1);    opacity: .55; }
  17%  { transform: translate(190px, -80px)  scale(1.07); opacity: .82; }
  35%  { transform: translate(70px, 130px)   scale(.97);  opacity: .62; }
  52%  { transform: translate(-150px, 50px)  scale(1.05); opacity: .85; }
  70%  { transform: translate(-80px, -120px) scale(1);    opacity: .7; }
  88%  { transform: translate(120px, 70px)   scale(1.04); opacity: .8; }
  100% { transform: translate(0, 0)         scale(1);    opacity: .55; }
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; width: 100%; }

.eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow-bar { width: 34px; height: 3px; background: var(--brand); display: inline-block; }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.7rem, 10.5vw, 8rem);
  line-height: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.hero h1 .accent { color: var(--brand); }

.sub {
  color: #c4c7d1;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  max-width: 620px;
  margin: 28px auto 0;
}

/* ----- search / form ----- */
.search { max-width: 680px; margin: 44px auto 0; }
.strategy {
  display: inline-flex;
  gap: 0;
  border: 2px solid var(--line-strong);
  margin-bottom: 14px;
}
.strat-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted);
  border: none; cursor: pointer;
  padding: 11px 22px;
  font-family: var(--head); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.strat-btn + .strat-btn { border-left: 2px solid var(--line-strong); }
.strat-btn svg { width: 17px; height: 17px; }
.strat-btn.active { background: var(--brand); color: #fff; }

.search-row {
  display: flex;
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  padding: 7px;
}
.search-row input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--text);
  font-family: var(--body); font-size: 1.18rem;
  padding: 18px 20px;
}
.search-row input::placeholder { color: #80828c; }
.search-row .btn { border-color: var(--brand); padding: 15px 40px; font-size: 1.02rem; }
.search-row .btn:hover { border-color: #fff; }

.search-captcha { display: flex; justify-content: center; margin-top: 18px; min-height: 78px; }
.search-captcha-msg:not(:empty) {
  margin-top: 8px; text-align: center;
  color: #ff9b93; font-size: .88rem; line-height: 1.4;
}

.hint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: .3px;
}
.hint .dot { color: var(--muted-2); margin: 0 8px; }
.hint a { color: var(--brand); font-weight: 500; }
.hint a:hover { color: #fff; }

/* stage wraps loading/error/results so they sit on the page body */
.stage { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== LOADING ===================== */
.loading {
  text-align: center; padding: 80px 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.loading-video {
  width: 420px; max-width: 90%; height: auto; margin: 0 auto 30px;
  display: block; border-radius: 14px;
}
.loading-text {
  font-family: var(--head); font-weight: 600; font-size: 1.4rem;
  text-transform: uppercase; letter-spacing: 2px;
}
.loading-sub { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
.progress {
  width: 280px; max-width: 80%; height: 6px; margin: 22px auto 0;
  background: var(--surface-3); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  width: 0; height: 100%; border-radius: 999px;
  background: var(--brand);
  transition: width 0.3s linear;
}

/* ===================== ERROR ===================== */
.error {
  max-width: 660px; margin: 60px auto;
  background: rgba(255, 78, 66, 0.08);
  border: 1px solid rgba(255, 78, 66, 0.4);
  border-left: 4px solid var(--bad);
  color: #ff9b93;
  padding: 18px 22px;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ===================== RESULTS ===================== */
.results { padding: 56px 0 40px; animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.results-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 30px;
}
.results-label {
  font-family: var(--head); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
}
.results-url {
  display: inline-block; margin-top: 4px;
  font-family: var(--head); font-size: 1.5rem; font-weight: 600;
  word-break: break-all; line-height: 1.2;
}
.results-url:hover { color: var(--brand); }
.results-context { margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.results-context b { color: #fff; font-weight: 500; }
.results-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.report-brand { display: none; }  /* shown only in print */

/* ----- gauges ----- */
.gauges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 30px;
}
.gauge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gscore, var(--brand));
  padding: 26px 16px 22px;
  text-align: center;
}
.ring {
  width: 116px; height: 116px; border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.ring-inner {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 2.6rem; line-height: 1;
}
.gauge-label {
  font-family: var(--head); font-weight: 600; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.gauge-sub {
  font-family: var(--head); font-size: 0.74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px;
}

/* ----- panels ----- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px 28px;
  margin-bottom: 16px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px;
}
.panel-title {
  font-family: var(--head); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.panel-tag {
  font-family: var(--head); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 12px; border: 1px solid currentColor;
}
.panel-note { color: var(--muted); font-size: 0.9rem; margin: -6px 0 16px; }

/* ----- field data ----- */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.field-cell {
  border: 1px solid var(--line);
  border-left: 3px solid var(--fcolor, var(--muted));
  padding: 16px 16px 14px;
  background: var(--surface-2);
}
.field-key {
  font-family: var(--head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.field-val {
  font-family: var(--display); font-size: 2rem; line-height: 1; margin: 8px 0 6px;
  color: var(--fcolor, #fff);
}
.field-cat { font-family: var(--head); font-size: 0.72rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* ----- lab metrics ----- */
.metric {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.metric:last-child { border-bottom: none; }
.metric-name { color: #cfcfd4; font-size: 0.98rem; }
.metric-name small { display: block; color: var(--muted-2); font-size: 0.78rem; }
.metric-val {
  font-family: var(--head); font-weight: 600; font-size: 1.15rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ----- opportunities ----- */
.opp {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.opp:last-child { border-bottom: none; }
.opp-save {
  flex: none; min-width: 84px; text-align: center;
  font-family: var(--head); font-weight: 600; font-size: 0.92rem;
  letter-spacing: .5px;
  padding: 7px 8px; border: 1px solid var(--saveColor, var(--ok));
  color: var(--saveColor, var(--ok));
  white-space: nowrap;
}
.opp-body h4 { font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: .3px; }
.opp-body p { color: var(--muted); font-size: 0.88rem; margin-top: 3px; line-height: 1.5; }
.opp-empty { color: var(--good); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }

.report-foot {
  margin-top: 22px; color: var(--muted-2); font-size: 0.78rem; text-align: center;
}

/* ===================== HOW IT WORKS ===================== */
.how { padding: 90px 24px; background: var(--surface); border-top: 1px solid var(--line); }
.how-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.section-eyebrow { justify-content: center; }
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 48px;
}
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.how-card {
  background: var(--bg); border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 32px 28px;
}
.how-ico {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand); color: var(--brand); margin-bottom: 20px;
}
.how-ico svg { width: 28px; height: 28px; }
.how-card h3 {
  font-family: var(--head); font-weight: 600; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px;
}
.how-card p { color: var(--muted); font-size: 0.96rem; font-weight: 300; }

/* ===================== FOOTER ===================== */
.foot {
  text-align: center; padding: 56px 24px 44px;
  border-top: 1px solid var(--line); background: var(--bg);
}
.footer-links { display: flex; gap: 28px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--head); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  transition: color .25s ease;
}
.footer-links a:hover { color: var(--brand); }
.footer-logo img { height: 46px; width: auto; margin: 0 auto 18px; opacity: .9; }
.footer-copy { color: var(--muted-2); font-size: 0.82rem; }

/* ===================== BACK TO TOP ===================== */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 46px; height: 46px;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease, transform .2s ease, background .25s ease;
}
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1040px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 10px 24px; }
  .hamburger { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: rgba(0,0,0,0.97); border: 1px solid var(--line);
    padding: 24px 30px; min-width: 230px;
    transform: translateX(110%); transition: transform .3s ease;
  }
  .nav-menu.active { transform: translateX(0); }
}
@media (max-width: 720px) {
  .hero { padding: 112px 18px 60px; }
  .hero h1 { font-size: 2.65rem; line-height: 0.96; }
  .orb-drift { width: 300px; height: 280px; }
  .eyebrow, .section-eyebrow { font-size: 0.68rem; letter-spacing: 2px; }
  .sub { font-size: 1rem; }
  .search { margin-top: 30px; }
  .hint { font-size: 0.8rem; }
  .hint .dot { display: none; }
  .hint a { display: inline-block; margin-top: 8px; }
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .stage, .how { padding-left: 18px; padding-right: 18px; }
  .search-row { flex-direction: column; }
  .search-row .btn { padding: 15px; }
  .strategy { display: flex; width: 100%; }
  .strat-btn { flex: 1; justify-content: center; }
  .results-head { flex-direction: column; align-items: flex-start; }
  .results-url { font-size: 1.25rem; }
  .results-actions { width: 100%; }
  .results-actions .btn, .results-actions .btn-ghost { flex: 1; }
  .panel { padding: 22px 18px; }
  .section-title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ===================== TOOL SWITCH (cross-tool launcher) ===================== */
/* appears with the results, right before the report; hidden in print.
   A neutral framed bar holding solid red-gradient buttons so they pop. */
.tool-switch {
  margin: 0 0 32px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brand);
}
.tool-switch-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px; color: #fff; margin-bottom: 16px;
}
.tool-switch-label::before {
  content: ""; width: 22px; height: 3px; background: var(--brand); display: inline-block;
}
.tool-switch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

/* each tool is a solid red-gradient button with depth + an arrow affordance */
.tool-btn {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  padding: 18px 48px 18px 20px;
  color: #fff;
  background: linear-gradient(160deg, #ff5326 0%, var(--brand) 50%, var(--brand-dark) 100%);
  border: 1px solid rgba(255, 120, 80, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 18px rgba(255, 51, 0, 0.22);
  transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
}
.tool-btn::after {
  content: "\2192";                 /* → */
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--head); font-weight: 600; font-size: 1.4rem; line-height: 1;
  color: #fff;
  transition: transform .2s ease;
}
.tool-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 34px rgba(255, 51, 0, 0.42);
}
.tool-btn:hover::after { transform: translate(5px, -50%); }
.tool-btn-label {
  font-family: var(--head); font-weight: 700; font-size: 1.06rem;
  text-transform: uppercase; letter-spacing: 1px; color: #fff;
}
.tool-btn-desc { font-size: 0.82rem; color: rgba(255, 255, 255, 0.85); }

/* ===================== GRADE HERO (security / seo overall) ===================== */
.grade-hero {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-bottom: 26px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--gscore, var(--brand));
}
.grade-badge {
  width: 124px; height: 124px; flex: none;
  border: 3px solid var(--gscore, var(--brand));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 3.6rem; line-height: 1;
  color: var(--gscore, #fff);
}
.grade-meta { flex: 1; min-width: 240px; }
.grade-meta h2 {
  font-family: var(--head); font-weight: 600; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.grade-meta p { color: var(--muted); margin-top: 8px; max-width: 52ch; font-weight: 300; }
.grade-score {
  display: inline-block; margin-top: 12px;
  font-family: var(--head); color: var(--muted); font-size: 0.82rem;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.grade-score b { color: #fff; font-weight: 600; }

/* ===================== CHECK LIST (pass / warn / fail items) ===================== */
.check {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.check:last-child { border-bottom: none; }
.check-ico { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--cColor, var(--muted)); }
.check-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.check-body { flex: 1; min-width: 0; }
.check-body h4 { font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: .2px; }
.check-body p { color: var(--muted); font-size: 0.88rem; margin-top: 3px; line-height: 1.5; word-break: break-word; }
.check-val { font-family: var(--head); font-weight: 600; font-size: 0.95rem; white-space: nowrap; color: var(--cColor, #fff); }

/* severity / status pill */
.sev {
  font-family: var(--head); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border: 1px solid currentColor; white-space: nowrap;
}

/* assessment banner (e.g. Core Web Vitals pass/fail) */
.assessment {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; margin-bottom: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line); border-left: 4px solid var(--abColor, var(--brand));
}
.assessment-ico { flex: none; width: 36px; height: 36px; color: var(--abColor, var(--muted)); }
.assessment-ico svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assessment-text strong { font-family: var(--head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; color: var(--abColor, #fff); }
.assessment-text small { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

/* simple definition rows (e.g. cert details, meta values) */
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv-key { color: var(--muted); font-size: 0.92rem; }
.kv-val { font-family: var(--head); font-weight: 500; text-align: right; word-break: break-word; }

/* ===================== FEEDBACK BUBBLE ===================== */
/* Score-driven "conversation" bubble above the report: mascot + message
   (+ a free-consultation CTA below 90). Deliberately light to pop against
   the dark page and to blend the illustrations' own light backgrounds. */
.feedback {
  display: flex; align-items: center; gap: 20px;
  margin: 0 0 30px;
  animation: feedbackIn .5s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.feedback-char {
  flex: none; width: 164px; height: auto; display: block;
  border-radius: 18px; background: #fff;
}
.feedback-bubble {
  position: relative; flex: 1 1 auto; max-width: 760px;
  background: #f6f6f8; color: #16161b;
  border: 1px solid rgba(0, 0, 0, .08);
  border-left: 5px solid var(--brand);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
}
.feedback-bubble::before {        /* speech tail pointing at the mascot */
  content: ''; position: absolute; left: -8px; top: 34px;
  width: 16px; height: 16px; background: #f6f6f8;
  border-left: 1px solid rgba(0, 0, 0, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transform: rotate(45deg);
}
.feedback-title {
  font-family: var(--head); font-weight: 700; font-size: 1.18rem;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; color: #16161b;
}
.feedback-text { font-size: .98rem; line-height: 1.55; color: #3c3c45; }
.feedback-cta { margin-top: 15px; border-color: var(--brand); }
.feedback-cta:hover { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

@media (max-width: 640px) {
  .feedback { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .feedback-char { width: 132px; }
  .feedback-bubble { border-left: none; border-top: 5px solid var(--brand); }
  .feedback-bubble::before { left: 50%; top: -8px; margin-left: -8px;
    border-left: 1px solid rgba(0, 0, 0, .08); border-bottom: none;
    border-top: 1px solid rgba(0, 0, 0, .08); border-right: 1px solid rgba(0, 0, 0, .08); }
}

/* ===================== CONSULTATION MODAL ===================== */
.cmodal { position: fixed; inset: 0; z-index: 2000; display: flex;
  align-items: center; justify-content: center; padding: 20px; }
.cmodal.hidden { display: none; }
.cmodal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cmodal-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  padding: 32px 28px 28px; max-height: calc(100vh - 40px); overflow-y: auto;
  animation: feedbackIn .35s ease both;
}
.cmodal-x { position: absolute; top: 10px; right: 12px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: none; border-radius: 4px;
  background: var(--surface-2); color: var(--muted);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  transition: background .2s ease, color .2s ease; }
.cmodal-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.cmodal-title { font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; font-size: 1.3rem; margin-bottom: 8px; padding-right: 22px; }
.cmodal-lead { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-bottom: 22px; }
.cform { display: grid; gap: 15px; }
.cfield { display: flex; flex-direction: column; gap: 6px; }
.cfield-label { font-family: var(--head); font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.cfield-label i { color: var(--brand); font-style: normal; }
.cfield-label small { text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.cfield input { background: var(--surface); border: 1px solid var(--line-strong);
  color: #fff; padding: 12px 14px; font-family: var(--body); font-size: .98rem; }
.cfield input:focus { outline: none; border-color: var(--brand); }
.cfield input:disabled { opacity: .55; }
.choney { position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; }
.crecaptcha { min-height: 78px; }
.crecaptcha-note { color: var(--ok); font-size: .85rem; line-height: 1.4; }
.cform-msg:not(:empty) { font-size: .9rem; line-height: 1.45; padding: 2px 0; }
.cform-msg--error { color: #ff9b93; }
.cform-msg--ok { color: var(--good); }
.cform-submit { width: 100%; margin-top: 2px; }
body.cmodal-open { overflow: hidden; }

/* ===================== PRINT / PDF ===================== */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #111; }
  .nav, .hero, .how, .foot, .to-top, .results-actions,
  .feedback, .cmodal,
  .loading, .error, .hint { display: none !important; }
  .stage { padding: 0; max-width: none; }
  .results { padding: 0; animation: none; }

  .report-brand {
    display: flex; align-items: center; gap: 14px;
    border-bottom: 3px solid #ff3300; padding-bottom: 14px; margin-bottom: 22px;
  }
  .report-brand img { height: 40px; }
  .report-brand span {
    font-family: var(--head); font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #111; font-size: 1.1rem;
  }

  .results-head { margin-bottom: 18px; }
  .results-label, .results-context { color: #555; }
  .results-context b { color: #111 !important; }
  .results-url { color: #111; font-size: 1.2rem; }

  .gauge, .panel, .how-card, .field-cell, .search-row {
    background: #fff !important; border-color: #ddd !important;
  }
  .gauge { border-top: 3px solid var(--gscore, #ff3300) !important; }
  .ring-inner { background: #fff; }
  .gauge-label, .panel-title, .results-url, .opp-body h4 { color: #111 !important; }
  .metric-name { color: #222 !important; }
  .metric-name small, .panel-note, .opp-body p, .field-key, .field-cat { color: #666 !important; }
  .field-cell { background: #fafafa !important; }
  .metric, .opp, .panel-head { border-color: #e3e3e3 !important; }
  .panel { break-inside: avoid; page-break-inside: avoid; }
  .gauges { break-inside: avoid; }
  .report-foot { color: #888; border-top: 1px solid #e3e3e3; padding-top: 12px; }

  /* shared report primitives in print */
  .tool-switch { display: none !important; }
  .grade-hero, .check, .kv, .assessment {
    background: #fff !important; border-color: #ddd !important;
  }
  .grade-hero { border-top: 3px solid var(--gscore, #ff3300) !important; break-inside: avoid; }
  .grade-meta h2, .check-body h4, .kv-val, .assessment-text strong { color: #111 !important; }
  .grade-meta p, .check-body p, .grade-score, .kv-key, .assessment-text small { color: #666 !important; }
  .grade-score b { color: #111 !important; }
  .check, .kv { border-color: #e3e3e3 !important; break-inside: avoid; }
  .assessment { background: #fafafa !important; }
}

/* ===================== OBSERVATORY REPORT TABS ===================== */
.obs { margin-bottom: 16px; }

.obs-tabbar {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  margin-bottom: 16px;
}
.obs-tab {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
  border: none; border-bottom: 3px solid transparent;
  padding: 13px 16px;
  font-family: var(--head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.obs-tab + .obs-tab { border-left: 1px solid var(--line); }
.obs-tab:hover { color: #fff; }
.obs-tab.active { color: #fff; background: var(--surface-2); border-bottom-color: var(--brand); }
.obs-tab-count {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}

.obs-panel { display: none; }
.obs-panel.active { display: block; }

/* sub-heading inside a panel */
.sub-h {
  font-family: var(--head); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
  margin: 22px 0 12px;
}

/* score-modifier chip in the Bewertung tab */
.pts {
  font-family: var(--head); font-weight: 700; font-size: 0.95rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ptColor, var(--muted)); min-width: 38px; text-align: right;
}

/* sanitised MDN prose */
.mdn { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.mdn p { margin: 0 0 6px; }
.mdn p:last-child { margin-bottom: 0; }
.mdn ul, .mdn ol { margin: 4px 0 6px 18px; }
.mdn code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em;
  background: var(--surface-3); padding: 1px 5px; color: #e7e7ea; word-break: break-word;
}
.mdn a { color: var(--brand); text-decoration: underline; }
.mdn a:hover { color: #fff; }
.mdn-rec { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--line-strong); }

/* raw policy / code block */
.raw {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 14px 16px; overflow-x: auto; margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem; line-height: 1.5; color: #d7d7db;
  white-space: pre-wrap; word-break: break-word;
}

/* generic tables (cookies, headers) */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th, .tbl td {
  text-align: left; padding: 10px 12px; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl th {
  font-family: var(--head); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.tbl td { color: #d2d2d6; word-break: break-word; }
.tbl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.tbl .yes { color: var(--good); font-weight: 600; }
.tbl .no { color: var(--muted-2); }
/* raw headers: key column tighter, value monospace + wrapping */
.tbl-hdr .hdr-key {
  font-family: var(--head); font-weight: 600; color: var(--muted);
  letter-spacing: .3px; white-space: nowrap; width: 1%;
}
.tbl-hdr .hdr-val { color: #d7d7db; }

/* scan history */
.spark {
  width: 100%; height: 84px; margin: 4px 0 18px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.spark polyline { fill: none; stroke: var(--brand); stroke-width: 2; }
.hist-list { display: flex; flex-direction: column; }
.hist-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.hist-row:last-child { border-bottom: none; }
.gbadge {
  flex: none; min-width: 42px; padding: 3px 9px; text-align: center;
  border: 2px solid var(--gscore, var(--muted)); color: var(--gscore, #fff);
  font-family: var(--display); font-size: 1.1rem; line-height: 1.15;
}
.hist-date { flex: 1; color: #cfcfd4; font-size: 0.92rem; }
.hist-score {
  font-family: var(--head); font-weight: 600; font-size: 0.9rem;
  color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* benchmark distribution */
.bench { display: flex; flex-direction: column; gap: 7px; }
.bench-row {
  display: grid; grid-template-columns: 44px 1fr 72px; align-items: center; gap: 12px;
}
.bench-grade {
  font-family: var(--display); font-size: 1.15rem; line-height: 1; color: var(--muted);
}
.bench-track { background: var(--surface-3); height: 16px; overflow: hidden; border: 1px solid var(--line); }
.bench-fill { display: block; height: 100%; background: linear-gradient(90deg, #6c6c75, #4a4a52); min-width: 2px; }
.bench-val {
  font-family: var(--head); font-weight: 600; font-size: 0.78rem; text-align: right;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.bench-row.me .bench-grade { color: var(--gscore, var(--brand)); }
.bench-row.me .bench-fill { background: var(--gscore, var(--brand)); }
.bench-row.me .bench-val { color: #fff; }

@media (max-width: 720px) {
  .obs-tab { flex: 1 1 40%; font-size: 0.72rem; padding: 11px 10px; letter-spacing: .8px; }
  .bench-row { grid-template-columns: 36px 1fr 60px; gap: 8px; }
  .tbl th, .tbl td { padding: 8px 8px; }
}

/* ----- print: expand every tab, hide the tab bar, light theme ----- */
@media print {
  .obs-tabbar { display: none !important; }
  .obs-panel { display: block !important; break-inside: auto; }
  .obs-panel + .obs-panel { margin-top: 14px; }
  .sub-h { color: #555 !important; }
  .mdn, .mdn p { color: #555 !important; }
  .mdn code { background: #f0f0f0 !important; color: #222 !important; }
  .raw { background: #fafafa !important; border-color: #ddd !important; color: #222 !important; }
  .tbl th { color: #555 !important; }
  .tbl td, .tbl-mono, .tbl-hdr .hdr-val { color: #222 !important; }
  .tbl th, .tbl td { border-color: #e3e3e3 !important; }
  .tbl-hdr .hdr-key { color: #555 !important; }
  .spark { background: #fafafa !important; border-color: #ddd !important; }
  .spark polyline { stroke: #ff3300 !important; }
  .hist-date { color: #222 !important; }
  .hist-row { border-color: #e3e3e3 !important; break-inside: avoid; }
  .bench-track { background: #eee !important; }
  .bench-fill { background: #ccc !important; }
  .bench-row.me .bench-fill { background: var(--gscore, #ff3300) !important; }
  .bench-row.me .bench-val { color: #111 !important; }
  .pts { color: var(--ptColor) !important; }
}
