/* ============================================================
   GARAGIST — Digitales Serviceheft
   World: German technical documentation (Prüfprotokoll × ETKA)
   Paper #F4F5F2 · Ink #17181A · Signal blue fields · Stamp violet
   ============================================================ */

@font-face {
  font-family: "D-DIN";
  src: url("../fonts/D-DIN.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "D-DIN";
  src: url("../fonts/D-DIN-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "D-DIN Condensed";
  src: url("../fonts/D-DINCondensed.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "D-DIN Condensed";
  src: url("../fonts/D-DINCondensed-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../fonts/FragmentMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../fonts/FragmentMono-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --paper: #f4f5f2;
  --paper-deep: #eceee9;
  --card: #fbfcfa;
  --ink: #17181a;
  --ink-60: rgba(23, 24, 26, 0.64);
  --ink-45: rgba(23, 24, 26, 0.5);
  --hair: rgba(23, 24, 26, 0.22);
  --hair-soft: rgba(23, 24, 26, 0.12);
  --blue: #0b4ea2;
  --blue-deep: #093e82;
  --blue-paper: #e8eef7;
  --on-blue-soft: #b9cdea;
  --stamp: #4740a6;
  /* HU-Plakette ring (decorative only) */
  --pl-orange: #e37222; --pl-blue: #2a6ebb; --pl-yellow: #eebe00;
  --pl-brown: #8a5a3b;  --pl-rosa: #d66a9c; --pl-green: #3e8c4e;
  --font-display: "D-DIN Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-display-heavy: "Oswald", "D-DIN Condensed", "Arial Narrow", sans-serif;
  --font-body: "D-DIN", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", "Courier New", monospace;
  --w: min(1180px, calc(100vw - 2 * clamp(16px, 4vw, 48px)));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: #fff; }
body { scrollbar-color: var(--ink-45) var(--paper-deep); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--ink-45); border: 3px solid var(--paper-deep); border-radius: 6px; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 1px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: var(--w); margin-inline: auto; }

.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; text-wrap: balance; letter-spacing: -0.004em; }
h1, .pos-head h2, .band h2 { font-family: var(--font-display-heavy); font-weight: 600; letter-spacing: 0; line-height: 1.08; }

/* ---------- top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.topbar-in {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.55rem; letter-spacing: 0.06em;
}
.brand svg { width: 30px; height: 30px; }
.brand-word { position: relative; display: inline-block; }
/* лёгкая «потёртость» печати: тонкие штрихи, буквы должны читаться целиком */
.brand-word::after {
  content: ""; position: absolute; inset: -2px -1px;
  background: repeating-linear-gradient(100deg,
    transparent 0 26px,
    color-mix(in srgb, var(--paper) 70%, transparent) 26px 27px);
  pointer-events: none;
}
.topnav { display: flex; gap: 1.4rem; margin-left: auto; }
.topnav a {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--ink-60); text-decoration: none; padding: 0.3rem 0;
}
.topnav a:hover { color: var(--ink); }
.lang { display: flex; gap: 0.15rem; font-family: var(--font-mono); font-size: 0.78rem; }
.lang a, .lang span { padding: 0.25rem 0.45rem; text-decoration: none; color: var(--ink-60); border: 1px solid transparent; }
.lang span { color: var(--ink); border-color: var(--hair); }
.lang a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  padding: 0.78rem 1.5rem; border: 1px solid transparent; border-radius: 2px;
  transition: transform 120ms ease-out, background-color 120ms ease-out, box-shadow 120ms ease-out;
}
.btn svg { width: 19px; height: 19px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(11, 78, 162, 0.28); }
.btn-blue:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11, 78, 162, 0.32); }
.btn-blue:active { transform: translateY(0) scale(0.985); }
.btn-line { border-color: var(--hair); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { font-size: 0.98rem; padding: 0.5rem 1rem; }
.btn-on-blue { background: #fff; color: var(--blue-deep); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.btn-on-blue:hover { background: var(--paper); color: var(--blue-deep); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--hair); }
.hero.scrub { height: 175vh; }
.hero.scrub .hero-in {
  position: sticky; top: 0; min-height: 100vh;
  padding: clamp(3.2rem, 8vh, 5.5rem) 0 clamp(1.5rem, 4vh, 3rem);
}
.scroll-hint { color: var(--ink-45); margin-top: 1.6rem; transition: opacity 200ms linear; }
.hero:not(.scrub) .scroll-hint { display: none; }
.hero-in {
  display: grid; grid-template-columns: minmax(300px, 4.6fr) 7.4fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 6vh, 5rem) 0 clamp(2rem, 5vh, 4rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin-bottom: 1.1rem; }
.hero .lede { font-size: 1.125rem; color: var(--ink-60); max-width: 34rem; margin-bottom: 0.9rem; }
.hero .confirm { font-size: 1rem; max-width: 34rem; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.hero-note { color: var(--ink-45); }

/* exploded drawing + callouts */
.blueprint { margin-right: max(calc((var(--w) - 100vw) / 2 + 8px), -140px); }
.bp-frame { position: relative; }
.bp-canvas { position: relative; background: var(--paper); }
.bp-canvas img { mix-blend-mode: multiply; }
.part { position: absolute; will-change: transform, opacity; transform-origin: center; }
.bp-axes { position: absolute; inset: 0; width: 100%; }
.callout {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 0.38rem 0.55rem 0.36rem;
  font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(23, 24, 26, 0.08);
  white-space: nowrap;
  opacity: 0; transform: translateY(6px);
}
.callout.on { opacity: 1; transform: none; transition: opacity 380ms ease-out, transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1); }
.callout b { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.01em; display: flex; align-items: center; gap: 0.4rem; }
.callout .pos {
  display: inline-flex; width: 17px; height: 17px; flex: none;
  border: 1px solid var(--ink); border-radius: 50%;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.66rem;
}
.callout .src { color: var(--stamp); }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.leaders line { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 5 4; opacity: 0.8; }
.leaders circle { fill: var(--ink); r: 0.55px; }
.hero.scrub .leaders:not(.dots-on) circle { opacity: 0; }
.leaders circle { transition: opacity 300ms ease-out; }
.leaders line { transition: opacity 350ms ease-out; }
.hero.scrub .leaders line:not(.on) { opacity: 0; }

/* rubber stamp */
.stamp {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  color: var(--stamp); border: 3px double var(--stamp);
  padding: 0.05em 0.45em; letter-spacing: 0.14em; line-height: 1.25;
  border-radius: 3px; transform: rotate(-7deg);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.82 0.18'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-size: 120px;
}
.hero-stamp { position: absolute; left: 11%; top: 21%; font-size: clamp(0.95rem, 1.6vw, 1.5rem); z-index: 3; }
.stamp-punch { opacity: 0; }
.stamp-punch.on { animation: punch 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes punch {
  0% { opacity: 0; transform: rotate(-7deg) scale(1.9); filter: blur(2px); }
  62% { opacity: 1; transform: rotate(-7deg) scale(0.96); filter: blur(0); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}

/* ---------- section scaffolding: protocol positions ---------- */
section.pos-block { border-bottom: 1px solid var(--hair); }
.pos-head {
  display: flex; align-items: baseline; gap: 1rem;
  padding: clamp(2.2rem, 5vh, 3.6rem) 0 0.4rem;
}
.pos-head .pos-no {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-60);
  border: 1px solid var(--hair); padding: 0.18rem 0.5rem; white-space: nowrap;
}
.pos-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.pos-body { padding: 1.2rem 0 clamp(2.4rem, 5vh, 3.8rem); }
.pos-body .intro { max-width: 46rem; color: var(--ink-60); margin-bottom: 1.8rem; }
.pos-body .intro strong, .prose strong { color: var(--ink); }

/* ---------- stage flow (Beleg -> Protokoll -> PDF) ---------- */
.stages { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: clamp(0.6rem, 1.6vw, 1.4rem); align-items: stretch; }
.stage { border: 1px solid var(--hair); background: var(--card); padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.stage h3 { font-size: 1.35rem; display: flex; align-items: baseline; gap: 0.6rem; }
.stage h3 .mono { color: var(--ink-45); }
.stage .fig { border: 1px solid var(--hair-soft); overflow: hidden; position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background: var(--paper-deep); }
.stage .cap { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-45); }
.stage-arrow { align-self: center; color: var(--ink-60); }
.stage-arrow svg { width: 26px; height: 26px; }

/* protocol card inside stage 2 */
.proto { width: 100%; background: var(--card); font-family: var(--font-mono); font-size: 0.78rem; padding: 0.9rem; position: relative; }
.proto table { width: 100%; border-collapse: collapse; }
.proto caption { text-align: left; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; padding-bottom: 0.45rem; }
.proto td { padding: 0.34rem 0.2rem; border-top: 1px solid var(--hair-soft); }
.proto td.r { text-align: right; white-space: nowrap; }
.proto .proto-stamp { position: absolute; right: 8%; bottom: 7%; font-size: 1.25rem; }

/* voice strip */
.voice-strip { margin-top: 1.6rem; border: 1px solid var(--hair); background: var(--card); padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.bubble { border: 1px solid var(--hair); border-radius: 12px 12px 12px 3px; padding: 0.55rem 0.85rem; font-size: 0.95rem; background: var(--paper); position: relative; }
.bubble.me { border-radius: 12px 12px 3px 12px; background: var(--blue-paper); }
.bubble .waves { display: inline-flex; gap: 2px; align-items: center; margin-right: 0.5rem; vertical-align: middle; }
.bubble .waves i { width: 2px; background: var(--blue); display: inline-block; border-radius: 1px; }

/* ---------- checklist / feature protocol table ---------- */
.ftable { width: 100%; border-collapse: collapse; }
.ftable th {
  text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-45);
  border-bottom: 1px solid var(--ink); padding: 0 0.6rem 0.5rem;
}
.ftable td { border-bottom: 1px solid var(--hair-soft); padding: 0.85rem 0.6rem; vertical-align: top; }
.ftable td:first-child { white-space: nowrap; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-60); }
.ftable td.name { font-weight: 700; white-space: nowrap; }
.ftable td.det { color: var(--ink-60); font-size: 0.98rem; }
.ftable td.chk { text-align: right; white-space: nowrap; }
.chkmark { color: var(--stamp); font-family: var(--font-mono); font-size: 0.8rem; border: 1.5px solid var(--stamp); border-radius: 2px; padding: 0.1rem 0.4rem; display: inline-block; transform: rotate(-4deg); }

/* ---------- blue band (CTA / claims) ---------- */
.band { background: var(--blue); color: #fff; border-bottom: 1px solid var(--blue-deep); }
.band ::selection { background: #fff; color: var(--blue-deep); }
.band-in { padding: clamp(2.2rem, 5vh, 3.4rem) 0; display: grid; gap: 1.1rem; }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.band p { color: var(--on-blue-soft); max-width: 44rem; }
.band p strong, .band .mono { color: #fff; }
.band a:not(.btn) { color: #fff; }

/* ---------- document section ---------- */
.doc-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.doc-page { border: 1px solid var(--hair); box-shadow: 0 10px 30px rgba(23, 24, 26, 0.13), 0 2px 6px rgba(23, 24, 26, 0.08); background: #fff; transform: rotate(-0.6deg); }
.doc-points { display: grid; gap: 1.1rem; }
.doc-points .dp { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.dp .pos { display: inline-flex; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.78rem; margin-top: 0.15rem; }
.dp b { font-size: 1.05rem; }
.dp p { color: var(--ink-60); font-size: 0.98rem; }

/* ---------- comparison ---------- */
.cmp { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.cmp th, .cmp td { padding: 0.7rem 0.75rem; border: 1px solid var(--hair-soft); text-align: left; vertical-align: top; }
.cmp thead th { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--ink); background: var(--paper-deep); }
.cmp thead th.us { background: var(--blue); color: #fff; border-color: var(--blue); }
.cmp td.us { background: var(--blue-paper); font-weight: 700; }
.cmp td .mono { color: var(--ink-45); display: block; margin-top: 0.15rem; font-size: 0.72rem; }
.cmp-scroll { overflow-x: auto; }

/* ---------- audience ---------- */
.aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--hair); background: var(--card); }
.aud > div { padding: 1.3rem 1.2rem 1.4rem; border-right: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); }
.aud h3 { font-size: 1.3rem; margin: 0.5rem 0 0.45rem; }
.aud p { color: var(--ink-60); font-size: 0.96rem; }
.aud .who { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-45); }
.aud .icon { width: 30px; height: 30px; stroke: var(--ink); }

/* ---------- plakette dial ---------- */
.tuv { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.plakette { width: clamp(180px, 26vw, 240px); user-select: none; }
.plakette svg { width: 100%; height: auto; display: block; }
.tuv-controls { display: grid; gap: 0.9rem; max-width: 30rem; }
.tuv-controls label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-60); display: grid; gap: 0.35rem; }
.tuv-controls select {
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--hair); padding: 0.5rem 0.6rem; border-radius: 2px;
}
.tuv-out { border-left: none; border: 1px solid var(--hair); background: var(--card); padding: 0.9rem 1rem; font-size: 1rem; }
.tuv-out b { color: var(--blue-deep); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--hair-soft); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.95rem 0; font-weight: 700; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pos-no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-45); }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--ink-45); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 1.1rem 2.2rem; color: var(--ink-60); max-width: 44rem; }
.faq .a a { color: var(--blue); }

/* ---------- final CTA ---------- */
.final { text-align: left; }
.final-in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2.6rem, 7vh, 4.6rem) 0; }
.final h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 0.9rem; }
.qr { background: #fff; padding: 10px; border: 1px solid var(--blue-deep); width: 138px; }
.qr svg, .qr img { width: 100%; height: auto; display: block; }
.qr-cap { font-family: var(--font-mono); font-size: 0.68rem; text-align: center; margin-top: 0.5rem; color: var(--on-blue-soft); }

/* ---------- title block footer ---------- */
footer.schriftfeld { border-top: 2px solid var(--ink); background: var(--paper); }
.sf-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; border-inline: 1px solid var(--hair); }
.sf-cell { border-right: 1px solid var(--hair); padding: 0.6rem 0.9rem 0.7rem; min-height: 64px; }
.sf-cell:last-child { border-right: none; }
.sf-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-45); display: block; margin-bottom: 0.2rem; }
.sf-cell .val { font-size: 0.95rem; }
.sf-cell.sf-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em; }
.sf-cell.sf-brand svg { width: 24px; height: 24px; }
.sf-links { border-top: 1px solid var(--hair); padding: 0.8rem 0 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-45); align-items: center; }
.sf-links a { color: var(--ink-60); }

/* ---------- registration corner marks ---------- */
.regmark { position: relative; }
.regmark::before, .regmark::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--hair); border-style: solid; opacity: 0.9;
}
.regmark::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.regmark::after { top: 10px; right: 10px; border-width: 1px 1px 0 0; }

/* ---------- reveal helper (used sparsely) ---------- */
.rv { opacity: 0; transform: translateY(10px); }
.rv.on { opacity: 1; transform: none; transition: opacity 450ms ease-out, transform 450ms cubic-bezier(0.2, 0.9, 0.3, 1); }
@media (prefers-reduced-motion: reduce) {
  .rv, .callout, .stamp-punch, .leaders .draw { opacity: 1 !important; transform: none !important; }
  .stamp-punch { animation: none !important; }
  .leaders .draw { stroke-dashoffset: 0 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .blueprint { margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); }
  .blueprint figcaption { padding-inline: clamp(16px, 4vw, 48px); }
  .stages { grid-template-columns: 1fr; }
  .stage-arrow { transform: rotate(90deg); justify-self: center; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-page { max-width: 380px; }
  .final-in { grid-template-columns: 1fr; }
  .tuv { grid-template-columns: 1fr; }
  .sf-grid { grid-template-columns: 1fr 1fr; }
  .sf-cell:nth-child(2) { border-right: none; }
  .topnav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topbar-in { gap: 0.6rem; }
  .brand { font-size: 1.2rem; gap: 0.4rem; }
  .brand svg { width: 23px; height: 23px; }
  .brand-word::after { display: none; }   /* мелкий кегль — штрихи съедали буквы */
  .topbar-in .btn { white-space: nowrap; font-size: 0.85rem; padding: 0.42rem 0.7rem; gap: 0.35rem; }
  .topbar-in .btn svg { width: 15px; height: 15px; }
  .blueprint { margin-right: calc(-1 * clamp(16px, 4vw, 48px)); }
  .leaders { display: none; }
  .bp-frame { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-inline: clamp(16px, 4vw, 48px); }
  .bp-canvas { flex: 0 0 100vw; width: 100vw; margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); margin-bottom: 0.6rem; }
  .callout { position: static !important; opacity: 1; transform: none; box-shadow: none; }
  .hero.scrub { height: 150vh; }
  .hero-stamp { position: absolute !important; left: auto !important; right: 6%; top: 4%; font-size: 1.05rem; }
  .btn { font-size: 1.05rem; padding: 0.72rem 1.2rem; }
  .ftable thead { display: none; }
  .ftable tr { display: grid; grid-template-columns: auto 1fr auto; column-gap: 0.6rem; padding: 0.75rem 0; border-bottom: 1px solid var(--hair-soft); }
  .ftable td { display: block; border: 0; padding: 0; }
  .ftable td.name { white-space: normal; align-self: center; }
  .ftable td.chk { align-self: center; }
  .ftable td.det { grid-column: 1 / -1; padding-top: 0.3rem; font-size: 0.92rem; }
  .chkmark { font-size: 0.7rem; padding: 0.08rem 0.3rem; }
  .sf-grid { grid-template-columns: 1fr; }
  .sf-cell { border-right: none; border-bottom: 1px solid var(--hair-soft); }
  .callout { font-size: 0.58rem; padding: 0.26rem 0.4rem; }
  .callout b { font-size: 0.66rem; }
  .callout .pos { width: 14px; height: 14px; font-size: 0.56rem; }
}

/* ---------- ratgeber articles ---------- */
.art-title { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
.art { max-width: 46rem; }
.art > p { margin-bottom: 1.05rem; }
.art .intro-lede { font-size: 1.15rem; color: var(--ink-60); }
.art h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 2.6rem 0 0.85rem; }
.art h2 .pos-no { font-size: 0.75rem; vertical-align: 0.35em; margin-right: 0.55rem; }
.art h3 { font-size: 1.18rem; margin: 1.7rem 0 0.5rem; }
.art ul, .art ol { margin: 0 0 1.05rem 1.25rem; }
.art li { margin-bottom: 0.4rem; }
.art li::marker { color: var(--ink-45); }
.art .cmp { margin: 1.2rem 0 1.6rem; }
.art-meta { color: var(--ink-45); margin-bottom: 1.6rem; }
.art-cta {
  background: var(--blue); color: #fff; border-radius: 2px;
  padding: 1.15rem 1.3rem; margin: 2rem 0;
  display: grid; gap: 0.7rem; justify-items: start;
}
.art-cta p { margin: 0; color: #fff; }
.art-cta .btn { font-size: 1.02rem; padding: 0.6rem 1.1rem; }
.art-fig { border: 1px solid var(--hair); background: var(--card); padding: 0.85rem; margin: 1.5rem 0; max-width: 22rem; }
.art-fig img { border: 1px solid var(--hair-soft); }
.art-fig figcaption { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-45); padding-top: 0.55rem; }
.crumbs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-45); padding-top: 1.6rem; }
.crumbs a { color: var(--ink-60); }
.art-related { border: 1px solid var(--hair); background: var(--card); padding: 1.1rem 1.2rem; margin-top: 2.4rem; }
.art-related p { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 0.6rem; }
.art-related a { display: block; padding: 0.3rem 0; font-weight: 700; }
/* ratgeber listing rows */
.rg-list { border-top: 1px solid var(--hair); }
.rg-list a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0.2rem; border-bottom: 1px solid var(--hair-soft);
  text-decoration: none; color: var(--ink);
}
.rg-list a:hover { background: var(--card); }
.rg-list .t { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.rg-list .d { grid-column: 2; color: var(--ink-60); font-size: 0.98rem; }
.rg-list .no { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-45); }
.rg-list .go { font-family: var(--font-mono); color: var(--blue); }
@media (max-width: 560px) {
  .rg-list a { grid-template-columns: auto 1fr; }
  .rg-list .go { display: none; }
}
