/* idsystems.ch prototype stylesheet. Brand tokens from ids-brand, semantic tokens for light and dark. */
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ids-magenta: #AB005E; --ids-magenta-dark: #8C004D; --ids-magenta-bright: #E94BA2; --ids-magenta-30: #E5B4CF;
  --ids-grey: #585857; --ids-grey-mid: #888887; --ids-ink: #111214; --ids-ink-raised: #1A1A1A; --ids-charcoal: #2C2C2B;
  --ids-paper: #F2F2F0; --ids-line: #DEDEDD; --ids-white: #FFFFFF; --ids-text-on-dark: #F2F2F0; --ids-text-on-dark-2: #C8C9CE; --ids-grey-soft: #9A9A9D;
  --ids-font: "Rajdhani", "Segoe UI", Arial, sans-serif;
  --ids-radius: 6px; --ids-radius-lg: 12px; --rail: 88px; --panel: 340px; --bar: 64px;
  /* semantic, light */
  --page: #FFFFFF; --soft: #F2F2F0; --card: #FFFFFF; --text: #585857; --text-2: #585857; --head: #2C2C2B; --line-c: #DEDEDD;
  --link: #AB005E; --link-hover: #8C004D; --tag-bg: #E5B4CF; --tag-fg: #8C004D; --band: #111214; --field: #FFFFFF; --field-line: #888887;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #111214; --soft: #1A1A1A; --card: #1A1A1A; --text: #C8C9CE; --text-2: #9A9A9D; --head: #F2F2F0; --line-c: rgba(255,255,255,.12);
  --link: #E94BA2; --link-hover: #E5B4CF; --tag-bg: #AB005E; --tag-fg: #FFFFFF; --band: #2C2C2B; --field: #1A1A1A; --field-line: #9A9A9D; color-scheme: dark; } }
:root[data-theme="dark"] {
  --page: #111214; --soft: #1A1A1A; --card: #1A1A1A; --text: #C8C9CE; --text-2: #9A9A9D; --head: #F2F2F0; --line-c: rgba(255,255,255,.12);
  --link: #E94BA2; --link-hover: #E5B4CF; --tag-bg: #AB005E; --tag-fg: #FFFFFF; --band: #2C2C2B; --field: #1A1A1A; --field-line: #9A9A9D; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
body { margin: 0; font-family: var(--ids-font); font-size: 18px; line-height: 1.5; color: var(--text); background: var(--page); }
:where(img, video, svg):not(:where(.ids-page *)) { max-width: 100%; height: auto; display: block; }
:where(a):not(:where(.ids-page *)) { color: var(--link); text-underline-offset: 3px; }
:where(a:hover):not(:where(.ids-page *)) { color: var(--link-hover); }
:where(h1, h2, h3):not(:where(.ids-page *)) { color: var(--head); line-height: 1.12; margin: 0 0 12px; letter-spacing: 0; }
:where(h1):not(:where(.ids-page *)) { font-size: clamp(34px, 4vw, 48px); font-weight: 700; }
:where(h2):not(:where(.ids-page *)) { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; }
:where(h3):not(:where(.ids-page *)) { font-size: 21px; font-weight: 600; }
:where(p):not(:where(.ids-page *)) { margin: 0 0 14px; max-width: 70ch; }
/* Product pages (ID-DIGITIZER, IDS Logistik-App, SteelSight) bring their own type and colours: the base rules above skip them,
   and they start from the browser's defaults, as in their stand-alone versions. */
:where(.ids-page) { display: block; font-size: 16px; line-height: normal; color: #2C2C2B; background: #FFFFFF; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--page); padding: 8px 14px; }

/* ---------- Sidebar (dark in both themes) ---------- */
/* Rail: always visible on desktop, the panel opens over the page */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40; background: var(--ids-ink); border-right: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 14px; gap: 2px; }
.rail a, .rail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: none; border: 0;
  color: var(--ids-text-on-dark-2); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; }
.rail svg { width: 24px; height: 24px; }
.rail a:hover, .rail button:hover { color: var(--ids-white); background: rgba(255,255,255,.05); }
.rail .rail__menu { color: var(--ids-white); border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; padding-bottom: 14px; }
.rail .is-here { color: var(--ids-white); }
.rail .is-here::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--ids-magenta-bright); box-shadow: 0 0 6px 1px rgba(233,75,162,.75); }
.rail .rail__first { margin-top: auto; color: var(--ids-magenta-bright); }
.i-open, .i-close { display: block; line-height: 0; }
.i-close, .l-close { display: none; }
body.nav-open [data-toggle-nav]:not([data-search]) .i-open, body.nav-open [data-toggle-nav]:not([data-search]) .l-open { display: none; }
body.nav-open [data-toggle-nav]:not([data-search]) .i-close { display: block; }
body.nav-open [data-toggle-nav]:not([data-search]) .l-close { display: inline; }
.side { position: fixed; top: 0; bottom: 0; left: var(--rail); width: var(--panel); max-width: calc(100vw - var(--rail)); background: var(--ids-ink); color: var(--ids-text-on-dark);
  display: flex; flex-direction: column; z-index: 35; border-right: 1px solid rgba(255,255,255,.08); padding-top: env(safe-area-inset-top, 0px);
  transform: translateX(calc(-100% - var(--rail))); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
body.nav-open .side { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
body.nav-open { overflow: hidden; }
.side :focus-visible { outline-color: var(--ids-magenta-bright); }
.side__head { padding: 22px 20px 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side__logo img { width: 176px; }
.side__claim { margin: 12px 0 0; font-size: 15px; font-weight: 500; color: var(--ids-text-on-dark-2); }
.side__close { display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 1px solid rgba(255,255,255,.2); border-radius: var(--ids-radius); color: var(--ids-text-on-dark); cursor: pointer; }
.side__close svg { width: 20px; height: 20px; }
.side__first { display: flex; align-items: center; gap: 12px; margin: 0 20px 12px; padding: 12px 14px; border-radius: var(--ids-radius); background: var(--ids-ink-raised);
  border-left: 3px solid var(--ids-magenta-bright); color: var(--ids-white); font-weight: 600; text-decoration: none; }
.side__first svg { width: 22px; height: 22px; color: var(--ids-magenta-bright); }
.side__first:hover { background: var(--ids-charcoal); color: var(--ids-white); }
.side__search { padding: 4px 20px 10px; }
.side__search label { position: absolute; left: -9999px; }
.side__search input { width: 100%; font: inherit; font-size: 16px; padding: 9px 12px; border-radius: var(--ids-radius);
  border: 1px solid rgba(255,255,255,.16); background: var(--ids-ink-raised); color: var(--ids-text-on-dark); }
.side__search input::placeholder { color: var(--ids-grey-soft); }
.side__nav { flex: 1; overflow-y: auto; padding: 6px 10px 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.side__empty { display: none; padding: 8px 14px; color: var(--ids-grey-soft); font-size: 15px; }
.side.is-filtering .side__empty.is-shown { display: block; }
.side__foot { padding: 14px 24px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.lang { display: flex; gap: 4px; margin-bottom: 12px; }
.lang a, .lang span { padding: 3px 9px; border-radius: 4px; font-weight: 600; text-decoration: none; color: var(--ids-text-on-dark-2); }
.lang [aria-current] { background: var(--ids-magenta); color: var(--ids-white); }
.lang .is-later { color: #6b6b6e; cursor: default; }
.side__foot a.tel { color: var(--ids-text-on-dark); font-weight: 600; font-size: 18px; text-decoration: none; }
.side__foot small { display: block; color: var(--ids-grey-soft); font-size: 14px; }
.nav, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav__row { position: relative; display: flex; align-items: stretch; border-radius: var(--ids-radius); }
.nav__row:hover { background: rgba(255,255,255,.05); }
.nav a, .nav__label { flex: 1; display: block; padding: 8px 12px 8px 16px; color: var(--ids-text-on-dark); text-decoration: none;
  font: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.nav__toggle { width: 40px; flex: none; background: none; border: 0; cursor: pointer; color: var(--ids-grey-soft); border-radius: var(--ids-radius); }
.nav__toggle::before { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.nav__toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav__toggle:hover { color: var(--ids-white); }
.nav > li > .nav__row a, .nav > li > .nav__row .nav__label { font-size: 18px; font-weight: 600; }
.nav ul ul a, .nav ul .nav__label { font-size: 16px; font-weight: 500; color: var(--ids-text-on-dark-2); }
.nav ul { padding-left: 10px; }
.nav ul ul { margin-left: 16px; padding-left: 0; border-left: 1px solid rgba(255,255,255,.1); }
.nav ul ul a { font-size: 15px; font-weight: 400; padding: 6px 10px 6px 14px; }
.nav ul[hidden] { display: none; }
/* the aiming beam: marks where you are, like a scanner's target line */
.nav a[aria-current="page"] { color: var(--ids-white); font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -2px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--ids-magenta-bright); box-shadow: 0 0 6px 1px rgba(233,75,162,.75); border-radius: 2px; }
.nav li.is-trail > .nav__row > a, .nav li.is-trail > .nav__row > .nav__label { color: var(--ids-white); }
.bottombar { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; background: var(--ids-ink); padding: 12px 48px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.topbar img { width: 150px; }
.topbar .lang { margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--ids-ink); }

/* ---------- Main column ---------- */
.main { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1140px; padding: 0 48px; }
.proto { background: var(--soft); border-bottom: 1px solid var(--line-c); font-size: 15px; }
.proto .wrap { padding-top: 8px; padding-bottom: 8px; }
.section { padding: 56px 0; }
.section--paper { background: var(--soft); }
.section--dark { background: var(--band); color: var(--ids-text-on-dark-2); }
.section--dark h2, .section--dark h3 { color: var(--ids-white); }
.section--dark a { color: var(--ids-magenta-bright); }
.rule { display: flex; align-items: center; gap: 10px; color: var(--link); font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.rule::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .rule { color: var(--ids-magenta-bright); }
.crumbs { font-size: 15px; margin: 28px 0 18px; color: var(--text-2); }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs span[aria-hidden] { margin: 0 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--ids-radius); font: inherit; font-weight: 600;
  text-decoration: none; border: 2px solid var(--ids-magenta); background: var(--ids-magenta); color: var(--ids-white); cursor: pointer; }
.btn:hover { background: var(--ids-magenta-dark); border-color: var(--ids-magenta-dark); color: var(--ids-white); }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn--ghost:hover { background: var(--ids-magenta); border-color: var(--ids-magenta); color: var(--ids-white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tag { display: inline-block; font-size: 14px; font-weight: 600; padding: 1px 9px; border-radius: 4px; background: var(--tag-bg); color: var(--tag-fg); }
.lead { font-size: 21px; color: var(--head); font-weight: 500; }
.cols { display: grid; gap: 28px; }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Home ---------- */
.stage { position: relative; overflow: hidden; isolation: isolate; background: var(--ids-ink); color: var(--ids-text-on-dark); padding: 72px 0 132px; }
.stage__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; max-width: none; }
.stage h1 { color: var(--ids-white); font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; max-width: 11ch; margin-bottom: 18px; }
.stage p { font-size: 21px; max-width: 44ch; color: var(--ids-text-on-dark); }
.stage .stage__note { font-size: 16px; color: var(--ids-text-on-dark-2); margin: 18px 0 0; }
.btn--light { background: transparent; color: var(--ids-white); border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: var(--ids-white); color: var(--ids-ink); border-color: var(--ids-white); }
.beam { animation: sweep 2.4s cubic-bezier(.55,.05,.25,1) .25s both; }
@keyframes sweep { 0% { transform: translateY(-250px); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
.news { padding: 0 0 56px; }
.news__sheet { position: relative; background: var(--page); border-radius: 14px 14px 0 0; margin: -88px -28px 0; padding: 28px 28px 0; }
.news__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.news__head h2 { margin: 0; }
.news__head p { margin: 0; color: var(--text-2); }
.news__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.feature { background: var(--ids-ink); color: var(--ids-text-on-dark-2); border-radius: var(--ids-radius-lg); overflow: hidden; border: 1px solid var(--line-c); }
.feature__body { padding: 34px 34px 30px; border-top: 4px solid var(--ids-magenta); }
.feature h2 { color: var(--ids-white); font-size: clamp(30px, 3.2vw, 42px); margin: 14px 0 16px; }
.feature p { font-size: 19px; }
.feature a { color: var(--ids-magenta-bright); }
.feature .tag { background: var(--ids-magenta); color: var(--ids-white); }
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line-c); display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.newslist li:last-child { border-bottom: 0; }
.newslist h3 { margin: 6px 0; }
.newslist h3 a { color: var(--head); text-decoration: none; }
.newslist h3 a:hover { color: var(--link); }
.newslist p { font-size: 17px; margin: 0; }
.newslist img { width: 84px; border-radius: var(--ids-radius); background: var(--soft); }
.industry h3 a { color: var(--head); text-decoration: none; }
.industry h3 a:hover { color: var(--link); }
.industry ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.industry li { padding: 7px 0; border-top: 1px solid var(--line-c); }
.industry li b, .checks b, .doc, .stub dt { color: var(--head); }
.pillar h3 { font-size: 26px; border-bottom: 2px solid var(--ids-magenta); padding-bottom: 8px; }
.pillar li { padding: 4px 0; }
.pillar a { text-decoration: none; }
.pillar a:hover { text-decoration: underline; }
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-c); }
.services div { padding: 16px 18px 4px 0; }
.services h3 { margin-bottom: 4px; }
.services h3 a { color: inherit; text-decoration: none; }
.services p { font-size: 16px; }
.customers { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; font-size: 19px; font-weight: 600; color: var(--head); }

/* ---------- Content pages ---------- */
.hero { padding-bottom: 48px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.media { border-radius: var(--ids-radius-lg); overflow: hidden; background: var(--ids-charcoal); aspect-ratio: 16 / 9; }
.media video { width: 100%; height: 100%; object-fit: cover; }
.media--link { display: grid; place-items: center; text-decoration: none; color: var(--ids-text-on-dark); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line-c); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--card); border-left: 3px solid var(--ids-magenta); padding: 8px 14px; border-radius: 0 var(--ids-radius) var(--ids-radius) 0; font-weight: 500; color: var(--head); }
.awards li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 20px; font-weight: 600; color: var(--ids-white); }
.ref { border-top: 2px solid var(--head); padding-top: 12px; }
.ref h3 { font-size: 19px; }
.ref p { font-size: 16px; }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-c); background: var(--card); border-radius: var(--ids-radius); text-decoration: none; font-weight: 600; }
.doc:hover { border-color: var(--link); color: var(--link); }
.doc span { flex: none; width: 40px; height: 50px; border: 2px solid var(--link); border-radius: 3px 10px 3px 3px; display: grid; place-items: center; font-size: 12px; color: var(--link); }
.doc small { display: block; font-weight: 400; color: var(--text-2); }
.stub { padding-bottom: 64px; }
.stub dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 24px 0; font-size: 17px; }
.stub dt { font-weight: 600; }
.stub dd { margin: 0; }

/* product catalogue */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filters button { font: inherit; font-weight: 600; font-size: 16px; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-c); background: var(--card); color: var(--head); }
.filters button[aria-pressed="true"] { background: var(--ids-magenta); border-color: var(--ids-magenta); color: var(--ids-white); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-c); border-radius: var(--ids-radius-lg); overflow: hidden; }
.product[hidden] { display: none; }
.pic { aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; color: var(--text-2); position: relative; }
.pic svg { width: 46%; }
.pic small { position: absolute; bottom: 8px; right: 12px; font-size: 13px; }
.product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product .tag { align-self: flex-start; }
.product h3 { margin: 8px 0 6px; font-size: 22px; }
.product p { font-size: 16px; }
.product ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 15px; }
.product li { padding: 5px 0; border-top: 1px solid var(--line-c); }
.product .more { margin-top: auto; font-weight: 600; }
.also { font-size: 17px; }

/* product detail */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 26px 0 0; border-top: 2px solid var(--head); }
.facts div { padding: 14px 18px 4px 0; }
.facts dt { font-size: 15px; color: var(--text-2); }
.facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; color: var(--head); }
.pic--hero { border-radius: var(--ids-radius-lg); aspect-ratio: 4 / 3; }
.variants { margin: 0; }
.variants div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-c); }
.variants dt { font-weight: 700; color: var(--ids-white); background: var(--ids-magenta); border-radius: var(--ids-radius); text-align: center; height: 34px; line-height: 34px; }
.variants dd { margin: 0; }
.variants b { color: var(--head); }
.table-wrap { overflow-x: auto; }
.spec { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 17px; }
.spec th, .spec td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-c); vertical-align: top; }
.spec th { color: var(--head); font-weight: 600; width: 34%; }
.videos li { padding: 10px 0; border-top: 1px solid var(--line-c); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 56px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; color: var(--head); font-size: 16px; margin-bottom: 4px; }
.form label abbr { color: var(--link); text-decoration: none; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 17px; padding: 10px 12px; color: var(--head);
  background: var(--field); border: 1px solid var(--field-line); border-radius: var(--ids-radius); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.form-note { grid-column: 1 / -1; font-size: 15px; color: var(--text-2); margin: 0; }
.form-done { grid-column: 1 / -1; border-left: 3px solid var(--ids-magenta); background: var(--soft); padding: 12px 16px; color: var(--head); }
.box { border-top: 2px solid var(--head); padding: 14px 0 6px; margin-bottom: 18px; }
.box h2 { font-size: 22px; }
.box a.big { font-size: 28px; font-weight: 700; text-decoration: none; }

/* ---------- CTA band and footer ---------- */
.cta { background: var(--ids-magenta); color: var(--ids-white); padding: 40px 0; }
.cta h2, .cta p { color: var(--ids-white); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta a.big { color: var(--ids-white); font-size: 30px; font-weight: 700; text-decoration: none; display: block; }
.cta a.mail { font-size: 20px; font-weight: 600; }
.cta .btn { background: var(--ids-white); color: var(--ids-magenta); border-color: var(--ids-white); }
.cta .btn:hover { background: var(--ids-ink); color: var(--ids-white); border-color: var(--ids-ink); }
.foot { margin-top: auto; background: var(--ids-ink); color: var(--ids-text-on-dark-2); padding: 40px 0 28px; font-size: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.foot .cols { grid-template-columns: 1.2fr 1fr 1fr; }
.foot h3 { color: var(--ids-white); font-size: 17px; }
.foot a { color: var(--ids-text-on-dark); }
.foot img { width: 150px; margin-bottom: 14px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 1023px) {
  body { padding-bottom: var(--bar); }
  .rail { display: none; }
  .main { margin-left: 0; }
  .wrap { padding: 0 20px; }
  .side { left: 0; width: 100%; max-width: 440px; transform: translateX(-102%); }
  .side__logo img { width: 150px; }
  .side__nav { padding-bottom: calc(var(--bar) + 12px); }
  .nav a, .nav__label { padding-top: 11px; padding-bottom: 11px; }
  .nav__toggle { width: 48px; }
  .topbar { padding: 12px 20px; }
  .topbar img { width: 132px; }
  .bottombar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--ids-ink); border-top: 1px solid rgba(255,255,255,.1); }
  .bottombar a, .bottombar button { height: var(--bar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; color: var(--ids-text-on-dark); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .bottombar svg { width: 24px; height: 24px; }
  .news__grid, .hero__grid, .cols--2, .contact { grid-template-columns: 1fr; }
  .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols--3, .foot .cols { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .stage { padding: 44px 0 104px; }
  .stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,18,20,.88), rgba(17,18,20,.45)); }
  .stage p { font-size: 19px; }
  .news__sheet { margin: -72px -12px 0; padding: 22px 12px 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cols--4, .services, .form, .facts { grid-template-columns: 1fr; }
  .newslist li { grid-template-columns: 1fr; }
  .newslist img { display: none; }
  .cta a.big { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .beam { animation: none; } }
.cols > *, .hero__grid > *, .contact > *, .news__grid > * { min-width: 0; }

/* ---------- Effects: stage reader and two quiet echoes ---------- */
.stage__art .reticle { opacity: 0; transition: opacity .2s ease; }
.stage__art .reticle.is-on { opacity: 1; }
.stage__art .readout { font-family: var(--ids-font); font-weight: 600; font-size: 26px; fill: #E94BA2; letter-spacing: .02em; }
.stage__art .flash { opacity: 0; }
.stage__art .code.is-read .flash { animation: readflash .9s ease-out forwards; }
@keyframes readflash { 0% { opacity: .9; } 100% { opacity: .28; } }
.pic { overflow: hidden; }
.pic::after { content: ""; position: absolute; left: 10%; right: 10%; top: 12%; height: 2px; background: var(--ids-magenta-bright);
  box-shadow: 0 0 8px 1px rgba(233,75,162,.7); opacity: 0; pointer-events: none; }
.product { transition: border-color .2s ease; }
.product:hover { border-color: var(--link); }
.product:hover .pic { color: var(--head); }
.product:hover .pic::after { animation: cardscan .9s ease-out; }
@keyframes cardscan { 0% { top: 12%; opacity: 0; } 15% { opacity: 1; } 100% { top: 86%; opacity: 0; } }
.nav a:not([aria-current]):hover::before, .rail a:not(.is-here):hover::before, .rail button:not(.is-here):hover::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; margin-top: -1px; background: rgba(233,75,162,.55); }
.rail a:not(.is-here):hover::before, .rail button:not(.is-here):hover::before { top: 21px; margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .stage__art .code.is-read .flash { animation: none; opacity: .28; }
  .product:hover .pic::after { animation: none; }
}

/* ---------- Languages and product pages ---------- */
.lang a:hover { color: var(--ids-white); }
.nav a[data-de]::after { content: "DE"; margin-left: 8px; padding: 0 5px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ids-grey-soft); vertical-align: 2px; }
.crumbbar { background: var(--ids-ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.crumbbar .crumbs { margin: 0; padding: 11px 0; color: var(--ids-text-on-dark-2); }
.crumbbar .crumbs a { color: var(--ids-text-on-dark); }
.crumbbar .crumbs a:hover { color: var(--ids-magenta-bright); }
.is-product .proto { background: var(--ids-ink-raised); border-bottom-color: rgba(255,255,255,.08); color: var(--ids-text-on-dark-2); }
.pad-rule { margin-top: 26px; }
@media (max-width: 860px) { .pad-rule { margin-top: 8px; } }
