/* ═══════════════════════════════════════════════════════════════════════════
   NormScout design system (2026 overhaul). Loaded after style.css on every
   page. Light and neutral, black for actions, gold only as a sparing accent.
   Everything is prefixed .ns- so it never collides with legacy classes.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ns-ink: #141414;
  --ns-paper: #FAF9F6;
  --ns-muted: #55534E;
  --ns-muted-2: #6B6963;
  --ns-body-2: #4A4945;
  --ns-cool: #E6EAEF;
  --ns-warm: #E9E6DF;
  --ns-gold-soft: #F1E7C9;
  --ns-gold: #8A6A1F;
  --ns-gold-ink: #6B5317;
  --ns-line: #E9E6DE;
  --ns-line-2: #EFEDE7;
  --ns-warn-bg: #FBF4E2;
  --ns-warn-line: #F0E2BC;
  --ns-ok: #14532D;
  --ns-ok-bg: #E7F2EA;
  --ns-danger: #9F1D1D;
  --ns-flash: #EEF1F5;

  --ns-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --ns-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ns-mono: var(--ns-sans);  /* references use the text face, no code font */

  --ns-max: 1280px;
  --ns-pad: 40px;
  --ns-ease: cubic-bezier(.2, .7, .2, 1);
  /* Motion system. Things arriving ease out, things leaving ease in and are
     quicker. Durations by how often an interaction happens: the more often,
     the less it animates (hover/press fast, tabs near-instant, once-per-view
     storytelling slow). */
  --ns-ease-out: cubic-bezier(.2, .7, .2, 1);
  --ns-ease-in: cubic-bezier(.4, 0, 1, 1);
  --ns-ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ns-fast: .15s;
  --ns-base: .25s;
  --ns-slow: .45s;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html { scroll-padding-top: 96px; }
body.ns {
  margin: 0;
  background: var(--ns-paper);
  color: var(--ns-ink);
  font-family: var(--ns-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.ns a { color: inherit; }
body.ns > main { flex: 1 0 auto; }
body.ns > .ns-footer { flex-shrink: 0; }
body.ns :focus-visible { outline: 2px solid var(--ns-ink); outline-offset: 3px; border-radius: 6px; }
.ns-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ns-wrap { max-width: var(--ns-max); margin: 0 auto; padding: 0 var(--ns-pad); box-sizing: border-box; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.ns-h1 { margin: 0; font-family: var(--ns-display); font-weight: 300; font-size: 100px; line-height: .95; letter-spacing: -4.4px; color: var(--ns-ink); }
.ns-h2 { margin: 0; font-family: var(--ns-display); font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -2.6px; color: var(--ns-ink); }
.ns-h2--60 { font-size: 60px; letter-spacing: -2.4px; }
.ns-h3 { margin: 0; font-family: var(--ns-display); font-weight: 300; font-size: 52px; line-height: 1.04; letter-spacing: -2px; color: var(--ns-ink); }
.ns-h4 { margin: 0; font-family: var(--ns-display); font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -.6px; color: var(--ns-ink); }
.ns-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ns-body-2); }
.ns-lead--muted { color: var(--ns-muted); }
.ns-text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ns-body-2); }
.ns-small { font-size: 13px; color: var(--ns-muted); }
.ns-form-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ns-muted); }
.ns-form-note a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ns-form-note a:hover { color: var(--ns-ink); }
.ns-mono { font-family: var(--ns-sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ns-big { font-family: var(--ns-display); font-weight: 300; font-size: 120px; line-height: .9; letter-spacing: -5.5px; }

/* ── Buttons and pills ────────────────────────────────────────────────── */
.ns-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 400 15px/1 var(--ns-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--ns-fast) var(--ns-ease-out), color var(--ns-fast) var(--ns-ease-out), border-color var(--ns-fast) var(--ns-ease-out), transform .1s var(--ns-ease-out);
  box-sizing: border-box;
}
.ns-btn--primary { background: var(--ns-ink); color: var(--ns-paper) !important; border-color: var(--ns-ink); }
.ns-btn--primary:hover { background: #2B2B2B; }
.ns-btn--secondary { background: #fff; color: var(--ns-ink) !important; border-color: rgba(20,20,20,.15); }
.ns-btn--secondary:hover { border-color: rgba(20,20,20,.35); }
.ns-btn--text { padding: 0 8px; color: var(--ns-ink) !important; background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(20,20,20,.3); }
.ns-btn--text:hover { text-decoration-color: var(--ns-ink); }
.ns-btn--lg { min-height: 50px; padding: 0 22px; }
.ns-btn[disabled] { opacity: .55; cursor: default; }

.ns-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; line-height: 1.3; color: var(--ns-ink);
  background: rgba(255,255,255,.9); border: 1px solid rgba(20,20,20,.08);
  border-radius: 999px; padding: 6px 11px;
}
.ns-chip-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 13px var(--ns-sans); color: var(--ns-ink);
  background: rgba(255,255,255,.65); border: 1px solid rgba(20,20,20,.1);
  transition: border-color var(--ns-fast) var(--ns-ease-out), transform .1s var(--ns-ease-out);
}
.ns-chip-btn:hover { border-color: rgba(20,20,20,.3); }
.ns-chip-btn[aria-pressed="true"], .ns-chip-btn[aria-selected="true"] { background: var(--ns-ink); color: var(--ns-paper); border-color: var(--ns-ink); }
.ns-toggle {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border-radius: 999px; cursor: pointer; font: 500 14px var(--ns-sans);
  background: transparent; color: var(--ns-ink); border: 1px solid #CFCAC0;
  transition: border-color var(--ns-fast) var(--ns-ease-out), transform .1s var(--ns-ease-out);
}
.ns-toggle:hover { border-color: var(--ns-ink); }
.ns-toggle[aria-pressed="true"] { background: var(--ns-ink); color: var(--ns-paper); border-color: var(--ns-ink); }
.ns-tag-gold { font-size: 13px; color: var(--ns-gold-ink); background: var(--ns-gold-soft); padding: 3px 9px; border-radius: 999px; }
.ns-tag-ok { font-size: 12px; color: var(--ns-ok); background: var(--ns-ok-bg); padding: 4px 10px; border-radius: 999px; }

/* Segmented control (glass pill with buttons) */
.ns-seg { display: inline-flex; padding: 5px; gap: 2px; }
.ns-seg-btn {
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 15px var(--ns-sans); background: transparent; color: var(--ns-body-2);
  transition: color var(--ns-fast) var(--ns-ease-out), transform .1s var(--ns-ease-out);
}
.ns-seg-btn:hover { color: var(--ns-ink); }
.ns-seg-btn[aria-selected="true"], .ns-seg-btn[aria-pressed="true"] { background: var(--ns-ink); color: var(--ns-paper); }

/* ── Glass panel ──────────────────────────────────────────────────────────
   Usage: class="ns-glass" plus optional style="--g-a1:.6; --g-a2:.3;
   --g-blur:24px; --g-radius:28px". Only over real content, never over
   decorative fields. Without backdrop-filter it falls back to translucent
   white. */
.ns-glass {
  --g-a1: .62; --g-a2: .28; --g-blur: 24px; --g-radius: 28px;
  --g-shadow: 0 40px 90px rgba(30,40,60,.14);
  background: linear-gradient(160deg, rgba(255,255,255,var(--g-a1)), rgba(255,255,255,var(--g-a2)));
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(170%);
  backdrop-filter: blur(var(--g-blur)) saturate(170%);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: var(--g-radius);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.45), var(--g-shadow);
  box-sizing: border-box;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ns-glass { background: rgba(255,255,255,.9); }
}
.ns-glass--pill { --g-a1: .6; --g-a2: .35; --g-blur: 20px; --g-radius: 999px; --g-shadow: 0 6px 20px rgba(20,20,20,.06); }
.ns-glass--seg { --g-a1: .55; --g-a2: .3; --g-blur: 20px; --g-radius: 999px; --g-shadow: 0 10px 30px rgba(20,20,20,.08); }
.ns-glass--card { --g-a1: .62; --g-a2: .4; --g-blur: 16px; --g-radius: 22px; --g-shadow: 0 16px 40px rgba(20,20,20,.05); }

/* Inner frosted box used inside glass panels */
.ns-box { border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); }

/* ── Inset section (rounded tinted panel inside the page) ─────────────── */
.ns-inset { margin: 0 16px; border-radius: 40px; position: relative; }
.ns-inset--cool { background: var(--ns-cool); }
.ns-inset--warm { background: var(--ns-warm); }

/* ── Document page (decorative backdrop, always aria-hidden) ─────────── */
.ns-doc {
  position: absolute; box-sizing: border-box; width: 280px; height: 396px;
  padding: 22px 22px 34px; border-radius: 1px; overflow: hidden;
  /* paper: faint light falloff, a contact shadow and a soft ambient shadow */
  background: linear-gradient(168deg, #FFFFFF 0%, #FDFDFB 55%, #F7F6F2 100%);
  box-shadow: 0 0 0 .5px rgba(20,20,20,.06), 0 1px 1px rgba(20,20,20,.06), 0 6px 12px -6px rgba(20,20,20,.14), 0 28px 50px -18px rgba(20,20,20,.22);
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; color: #2B2B2B; pointer-events: none; user-select: none;
  -webkit-font-smoothing: antialiased;
}
body .ns-doc p { font-size: 7px; line-height: 1.5; color: #34332F; margin: 0 0 5px; }
body .ns-doc b { font-weight: 700; color: #141414; }
.ns-doc u { color: #141414; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 1.5px; text-decoration-color: rgba(20,20,20,.6); }
/* running header and footer, as on real pages */
.ns-doc .d-run { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 4px; margin-bottom: 12px; border-bottom: .75px solid #B9B6AE; font-size: 6.5px; color: #55534E; }
.ns-doc .d-foot { position: absolute; left: 22px; right: 22px; bottom: 12px; display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; border-top: .75px solid #D6D3CB; font-size: 6px; color: #6B6963; }
.ns-doc .d-h1 { font-size: 10.5px; font-weight: 700; color: #141414; margin: 0 0 7px; }
.ns-doc .d-h2 { font-size: 8.5px; font-weight: 700; color: #141414; margin: 10px 0 4px; }
.ns-doc .d-title { font-size: 11.5px; font-weight: 700; color: #141414; margin: 0 0 2px; letter-spacing: -.1px; }
.ns-doc .d-sub { font-size: 7px; color: #55534E; margin-bottom: 10px; }
.ns-doc .d-brand { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; font-size: 6.5px; color: #55534E; }
.ns-doc .d-logo { width: 11px; height: 11px; border-radius: 2px; background: #141414; }
.ns-doc .d-logo--lab { border-radius: 50%; background: none; border: 2px solid #3352B5; width: 8px; height: 8px; }
.ns-doc .d-warn { display: flex; gap: 6px; align-items: flex-start; padding: 5px 6px; margin: 0 0 6px; border: .75px solid #141414; }
.ns-doc .d-warn svg, .ns-doc .d-weee svg { flex: none; margin-top: 1px; }
.ns-doc .d-warn p, .ns-doc .d-weee p { margin: 0; }
.ns-doc .d-weee { display: flex; gap: 7px; align-items: flex-start; margin-bottom: 5px; }
.ns-doc .d-note { color: #8A6A1F; font-style: italic; }
/* tables (data sheet, test report) */
.ns-doc .d-table { width: 100%; border-collapse: collapse; font-size: 6.8px; color: #34332F; }
.ns-doc .d-table td, .ns-doc .d-table th { padding: 2.6px 0; text-align: left; vertical-align: top; border-bottom: .5px solid #E2DFD8; font-weight: 400; }
.ns-doc .d-table td:last-child { color: #141414; }
.ns-doc .d-table .d-sec th { padding-top: 6px; font-weight: 700; color: #141414; border-bottom: .75px solid #8F8C84; }
.ns-doc .d-table--grid td, .ns-doc .d-table--grid th { padding: 3px 4px; border: .5px solid #D6D3CB; }
.ns-doc .d-table--grid .d-head th { background: #F1F0EC; font-weight: 700; color: #141414; }
.ns-doc .d-table--grid td:first-child { white-space: nowrap; color: #55534E; }
.ns-doc .is-pass { color: #2F6B45 !important; font-weight: 700; }
.ns-doc .is-pending { color: #8A6A1F !important; font-weight: 700; }
.ns-doc .is-na { color: #6B6963 !important; }
/* Official Journal page: serif, masthead rule, centred article heading */
.ns-doc--directive { font-family: 'Times New Roman', Times, 'Liberation Serif', serif; }
.ns-doc--directive .d-oj { display: flex; justify-content: space-between; gap: 6px; padding-bottom: 3px; margin-bottom: 14px; border-bottom: .75px solid #141414; font-size: 6.8px; color: #141414; }
.ns-doc--directive .d-oj span:nth-child(3) { font-style: italic; }
body .ns-doc--directive p { font-size: 7.4px; line-height: 1.42; text-align: justify; hyphens: auto; color: #232220; }
body .ns-doc--directive .d-art { text-align: center; font-style: italic; margin: 0 0 2px; }
body .ns-doc--directive .d-artt { text-align: center; font-weight: 700; margin: 0 0 9px; color: #141414; }
body .ns-doc--directive .d-ind { padding-left: 14px; text-indent: -14px; margin-left: 14px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.ns-header {
  position: sticky; top: 12px; z-index: 50; width: 100%;
  max-width: var(--ns-max); margin: 12px auto 0; padding: 8px var(--ns-pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  box-sizing: border-box;
}
.ns-logo { display: flex; align-items: center; gap: 11px; padding: 8px 16px 8px 8px; text-decoration: none; color: var(--ns-ink) !important; }
.ns-logo-icon { display: block; width: 30px; height: 30px; flex: none; }
.ns-logo-text { font-family: var(--ns-display); font-weight: 500; font-size: 16px; letter-spacing: -.2px; color: var(--ns-ink); }
.ns-nav { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px; font-size: 14px; }
.ns-navlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 400 14px var(--ns-sans); color: var(--ns-ink) !important; text-decoration: none;
  transition: background .2s ease;
}
.ns-navlink:hover, .ns-navlink[aria-expanded="true"] { background: rgba(20,20,20,.06); }
.ns-navlink svg { flex: none; }
.ns-navlink .ns-chev { transition: transform var(--ns-fast) var(--ns-ease-out); }
.ns-navlink[aria-expanded="true"] .ns-chev { transform: rotate(180deg); }
.ns-nav-div { width: 1px; height: 20px; background: rgba(20,20,20,.12); margin: 0 6px; }
.ns-nav-cta { margin-left: 4px; min-height: 40px; padding: 0 18px; font-size: 14px; }
.ns-menubtn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--ns-ink); cursor: pointer; }
.ns-menubtn:hover, .ns-menubtn[aria-expanded="true"] { background: rgba(20,20,20,.06); }

/* Dropdown panels: solid white, never see-through */
.ns-dd {
  position: absolute; top: calc(100% + 10px); z-index: 60;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; visibility: hidden; pointer-events: none;
  transition: opacity .12s var(--ns-ease-in), transform .12s var(--ns-ease-in), visibility 0s linear .12s;
}
.ns-dd.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .18s var(--ns-ease-out), transform .18s var(--ns-ease-out); }
.ns-dd-panel { display: flex; flex-direction: column; padding: 6px; background: #fff; border: 1px solid rgba(20,20,20,.06); border-radius: 16px; box-shadow: 0 30px 70px rgba(30,35,45,.16); }
.ns-dd-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--ns-ink) !important; text-decoration: none; }
.ns-dd-item:hover, .ns-dd-item:focus-visible { background: rgba(20,20,20,.05); }
.ns-dd-item[aria-current="true"] { background: rgba(20,20,20,.05); }
.ns-dd--lang { right: 120px; width: 180px; }
.ns-dd--product { left: 0; width: 560px; }
.ns-dd--product .ns-dd-panel { border-radius: 22px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.ns-dd-label { grid-column: 1 / -1; padding: 8px 12px 2px; font-size: 12px; color: var(--ns-muted-2); }
.ns-dd-featured { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--ns-paper); text-decoration: none; color: var(--ns-ink) !important; }
.ns-dd-featured:hover { background: #F2F0EB; }
.ns-dd-featured strong { display: block; font-weight: 500; font-size: 15px; }
.ns-dd-featured span { font-size: 13px; color: var(--ns-muted); }
.ns-dd-badge { margin-left: auto; font-size: 11px; color: var(--ns-muted-2); border: 1px solid var(--ns-line); border-radius: 999px; padding: 2px 8px; }
.ns-dd-badge--live { color: var(--ns-ok); background: var(--ns-ok-bg); border-color: transparent; }

/* Mobile menu panel: rendered outside the blurred pill (a backdrop-filter
   parent would trap it). */
.ns-menupanel { position: absolute; top: calc(100% + 4px); left: 16px; right: 16px; z-index: 60; }
.ns-menupanel .ns-dd-panel { padding: 10px; border-radius: 20px; }
.ns-menupanel .ns-dd-item { min-height: 48px; font-size: 16px; }
.ns-menupanel .ns-btn { margin-top: 6px; min-height: 48px; }

@media (max-width: 760px) {
  :root { --ns-pad: 16px; }
  .ns-header { gap: 8px; }
  .ns-nav .ns-navlink, .ns-nav .ns-nav-div, .ns-nav .ns-dd { display: none; }
  .ns-menubtn { display: inline-flex; }
  .ns-nav-cta { margin-left: 0; padding: 0 14px; }
  .ns-logo { gap: 10px; padding: 7px 14px 7px 7px; }
  .ns-logo-icon { width: 28px; height: 28px; }
}
@media (max-width: 370px) {  /* small phones: the icon alone, so the header stays on one row */
  .ns-logo { padding: 7px; }
  .ns-logo-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 761px) { .ns-menupanel { display: none; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.ns-footer { margin-top: 0; }
.ns-footer-inner { max-width: var(--ns-max); margin: 0 auto; padding: 64px var(--ns-pad) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; box-sizing: border-box; }
.ns-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.ns-footer-logo { display: flex; align-items: center; gap: 10px; }
.ns-footer-logo img { display: block; width: 28px; height: 28px; flex: none; }
.ns-footer-brand strong { font-family: var(--ns-display); font-weight: 500; font-size: 16px; letter-spacing: -.2px; color: var(--ns-ink); }
.ns-footer-brand span { font-size: 14px; line-height: 1.6; color: var(--ns-muted-2); }
.ns-footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.ns-footer-col { display: flex; flex-direction: column; gap: 0; }
.ns-footer-col-title { color: var(--ns-muted-2); padding-bottom: 6px; }
@media (max-width: 560px) {  /* two even columns, so the second row lines up with the first */
  .ns-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; width: 100%; }
  .ns-footer-col a { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }  /* «Nutzungsbedingungen» at 320px */
}
.ns-footer-col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ns-ink) !important; }
.ns-footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ns-footer-bottom { max-width: var(--ns-max); margin: 0 auto; padding: 20px var(--ns-pad) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--ns-line); font-size: 13px; color: var(--ns-muted-2); box-sizing: border-box; }
.ns-footer-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--ns-muted-2) !important; text-decoration: none; }
.ns-footer-bottom a:hover { color: var(--ns-ink) !important; }

/* ── Press feedback ───────────────────────────────────────────────────────
   Every control answers the moment it is pressed (Doherty threshold), with a
   small squash that releases on mouse-up. */
.ns-btn:active, .ns-chip-btn:active, .ns-toggle:active, .ns-seg-btn:active, .ns-menubtn:active { transform: scale(.97); }
.ns-navlink:active, .ns-dd-item:active { transform: scale(.98); }
.ns-navlink, .ns-dd-item { transition: background var(--ns-fast) var(--ns-ease-out), transform .1s var(--ns-ease-out); }
/* Form messages arrive with a short rise so success or failure is noticed */
@keyframes ns-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.ns .form-status.form-status-success, body.ns .form-status.form-status-error { animation: ns-rise var(--ns-base) var(--ns-ease-out) both; }

/* ── Border beam ──────────────────────────────────────────────────────────
   A short arc of the logo blue that travels around an element's border.
   Used only where something is happening: looping while a form is sending,
   one pass when the hero example is re-read. Added by window.nsBeam(). */
@property --ns-beam-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ns-beam {
  position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--ns-beam-a), transparent 0 64%, rgba(141,162,232,.35) 76%, #8DA2E8 88%, #3352B5 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 3px rgba(51,82,181,.55)) drop-shadow(0 0 8px rgba(141,162,232,.45));
  transition: opacity .2s var(--ns-ease-out);
}
.ns-beam.is-loop { opacity: 1; animation: ns-beam 1.3s linear infinite; }
.ns-beam.is-once { animation: ns-beam-once 1.2s var(--ns-ease-in-out) both; }
@keyframes ns-beam { to { --ns-beam-a: 360deg; } }
@keyframes ns-beam-once { 0% { opacity: 0; --ns-beam-a: 0deg; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; --ns-beam-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .ns-beam { display: none !important; } }

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.ns *, body.ns *::before, body.ns *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── Legacy bridge ────────────────────────────────────────────────────────
   Classes from the old style.css that some pages still use (the EU check's
   landing page). They render in the new language here. */
body.ns { --font-serif: var(--ns-display); --font-family: var(--ns-sans); }
body.ns .hero { background: var(--ns-paper); color: var(--ns-ink); margin-top: 0; padding: 72px 0 64px; }
body.ns .hero::before, body.ns .hero::after { display: none; }
body.ns .hero-title, body.ns .section-title { font-family: var(--ns-display); font-weight: 300; letter-spacing: -1.8px; line-height: 1.04; color: var(--ns-ink); }
body.ns .hero-title { font-size: clamp(40px, 6vw, 72px) !important; letter-spacing: -2.6px; }
body.ns .section-title { font-size: clamp(32px, 4vw, 52px); }
body.ns .hero-subtitle, body.ns .section-subtitle { color: var(--ns-muted); }
body.ns .serif-emphasis { font-family: inherit; font-style: normal; font-weight: inherit; }
body.ns .eyebrow { display: none; }
body.ns .btn { border-radius: 999px; font-weight: 500; }
body.ns .btn-accent { background: var(--ns-ink); color: var(--ns-paper) !important; box-shadow: none; }
body.ns .btn-accent:hover { background: #2B2B2B; }
body.ns .btn-outline { color: var(--ns-ink) !important; border: 1px solid rgba(20,20,20,.15); background: #fff; }
body.ns .btn-outline-light { color: var(--ns-ink) !important; border: 1px solid rgba(20,20,20,.15); background: #fff; }
body.ns .btn-large { min-height: 50px; padding: 0 22px; font-size: 15px; }

/* ── Accessibility ────────────────────────────────────────────────────── */
.ns-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--ns-ink); color: var(--ns-paper) !important; font: 500 14px var(--ns-sans); text-decoration: none; }
.ns-skip:focus { top: 12px; }
body.ns > main:focus { outline: 0; }

/* German compounds (Regulierungskontext, Datenschutzerklärung) hyphenate
   instead of pushing narrow layouts sideways. */
html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* ── Info tooltip (macro info() in _ns.html) ─────────────────────────── */
/* superscript: sits at cap height of whatever text it follows */
.ns-info { position: relative; top: -.58em; display: inline-flex; vertical-align: baseline; line-height: 0; margin-left: .08em; }
.ns-info-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -10px -10px; padding: 0; border: 0; background: none; cursor: help; color: var(--ns-muted); transition: color var(--ns-fast) var(--ns-ease-out); }
.ns-info-btn > span { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor; font: 600 8px/1 var(--ns-sans); font-style: normal; letter-spacing: 0; }
.ns-info-btn:hover, .ns-info.is-open .ns-info-btn { color: var(--ns-ink); }
.ns-info-tip { position: absolute; z-index: 80; bottom: calc(100% + 8px); left: 50%; width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 9px 12px; border-radius: 12px; background: var(--ns-ink); color: var(--ns-paper); font: 400 13px/1.5 var(--ns-sans); letter-spacing: 0; text-align: left; white-space: normal; box-shadow: 0 12px 30px rgba(20,20,20,.18); display: none; transform: translateX(var(--tip-x, -50%)); }
.ns-info:hover .ns-info-tip, .ns-info-btn:focus-visible + .ns-info-tip, .ns-info.is-open .ns-info-tip { display: block; animation: ns-tip .15s var(--ns-ease-out); }
@keyframes ns-tip { from { opacity: 0; } }

/* ── Line breaks ──────────────────────────────────────────────────────────
   Headings balance their lines; running text avoids a lone last word
   ("knowing.", "Switzerland."). Browsers without support wrap as before. */
body.ns h1, body.ns h2, body.ns h3, body.ns h4, body.ns .ns-h1, body.ns .ns-h2, body.ns .ns-h3, body.ns .ns-h4 { text-wrap: balance; }
body.ns p, body.ns li, body.ns figcaption, body.ns blockquote, body.ns dd, body.ns .ns-lead, body.ns .ns-text, body.ns .ns-small, body.ns summary { text-wrap: pretty; }
/* Short texts (intros, card copy, captions, the footer line) read best with
   evenly balanced lines; long running text keeps "pretty". */
body.ns .ns-lead, body.ns .ns-text, body.ns .ns-small, body.ns figcaption, body.ns .ns-footer-brand span,
body.ns .p-card p, body.ns .h-trust li, body.ns .h-why-line, body.ns .p-head-side p { text-wrap: balance; }
