@charset "utf-8";
/* ==========================================================================
   BE UA Suite – gekapseltes Stylesheet für die TYPO3-Seite
   --------------------------------------------------------------------------
   - Alle Regeln hängen unter dem Wrapper .be-ua (kein Einfluss auf custom.css
     bzw. das Theme).
   - Kein globaler Reset (html, body, *, h1–h4, a, img, svg, button ...) mehr
     außerhalb von .be-ua.
   - Generische Klassennamen wurden umbenannt, damit sie nicht mit Bootstrap /
     Theme kollidieren:  .container -> .ua-container
                         .button    -> .ua-button
                         .primary   -> .ua-button--primary
                         .hero      -> .ua-hero
                         .contact-section -> .ua-contact-section
   ========================================================================== */

/* ---------- Wrapper, Variablen, Grundtypografie ---------- */
.be-ua {
  color-scheme: light;
  --ink: #001836;
  --muted: #405b66;
  --muted-dark: #c1d4da;
  --teal: #61baea;
  --teal-hover: #2098d1;
  --aqua: #9cd2e4;
  --paper: #ffffff;
  --wash: #efefef;
  --line: #cfdee1;
  --navy: #001836;
  --navy-line: #001836;
  --content: 1200px;
  --gutter: clamp(20px, 5vw, 76px);
  --font: inherit; /* übernimmt die Schrift der Hauptseite */

  display: block;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

html:has(.be-ua) { scroll-behavior: smooth; }

.be-ua, .be-ua *, .be-ua *::before, .be-ua *::after { box-sizing: border-box; }
.be-ua [hidden] { display: none !important; }

/* Reset gegen globale Theme-/custom.css-Regeln (z. B. h4 { uppercase; 32px }) */
.be-ua :is(h1, h2, h3, h4, p, figure, ul, dl, dt, dd, li) {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-align: inherit;
  color: inherit;
}
.be-ua :is(strong, b) { font-family: var(--font); text-transform: none; letter-spacing: normal; }

.be-ua img { display: block; max-width: 100%; }
.be-ua svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.be-ua .icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.be-ua a { color: inherit; border: 0; }
.be-ua a:hover, .be-ua a:focus { color: inherit; }
.be-ua button { font: inherit; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.be-ua a { -webkit-tap-highlight-color: transparent; }
.be-ua :focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.be-ua ::selection { background: var(--aqua); color: var(--ink); }

.be-ua .ua-container { width: min(var(--content), calc(100% - 2 * var(--gutter))); max-width: none; margin-inline: auto; padding-inline: 0; float: none; }
.be-ua h2 { font-size: clamp(32px, 3.4vw, 49px); line-height: 1.08; letter-spacing: -.045em; font-weight: 660; }

/* ---------- Gemeinsame Links ---------- */
.be-ua .text-link:hover, .be-ua .tool a:hover, .be-ua .replay-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.be-ua .ua-button b, .be-ua .text-link b { font-weight: 500; }

/* ---------- Hero ---------- */
.be-ua .ua-hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.be-ua .hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center; gap: clamp(28px, 5vw, 78px); padding-block: clamp(60px, 7.2vw, 112px) 68px; }
.be-ua .hero-copy { padding-block-end: 31px; }
.be-ua .ua-hero h1 { max-width: 525px; font-size: clamp(42px, 4.75vw, 68px); font-weight: 680; line-height: 1.02; letter-spacing: -.059em; text-wrap: balance; }
.be-ua .hero-tagline { max-width: 440px; margin-top: 16px; color: var(--teal); font-size: clamp(21px, 2.45vw, 35px); font-weight: 635; letter-spacing: -.033em; line-height: 1.17; }
.be-ua .protocol { white-space: nowrap; }
.be-ua .hero-intro { max-width: 415px; margin-top: 23px; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.48; }
.be-ua .hero-actions { margin-top: 30px; }
.be-ua .ua-button { display: inline-flex; min-height: 48px; align-items: center; gap: 21px; justify-content: center; padding: 12px 17px; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; }
.be-ua .ua-button--primary, .be-ua .ua-button--primary:hover, .be-ua .ua-button--primary:focus { background: var(--teal); color: var(--paper); }
.be-ua .ua-button--primary:hover { background: var(--teal-hover); }
.be-ua .hero-frame { aspect-ratio: 800 / 486; overflow: hidden; border: 1px solid #adc5cc; border-radius: 9px; background: var(--paper); box-shadow: 0 16px 38px #102b3a1a; }
.be-ua .hero-frame img { width: 100%; height: 100%; object-fit: contain; }
.be-ua .hero-visual figcaption { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.be-ua .hero-caption { display: flex; align-items: center; gap: 9px; }
.be-ua .caption-rule { height: 2px; width: 23px; flex: 0 0 23px; background: var(--teal); }
.be-ua .replay-toggle { color: var(--teal); background: transparent; padding: 7px 3px; min-height: 44px; border: 0; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }

/* ---------- SDK ---------- */
.be-ua .sdk-section { padding-block: 60px 66px; }
.be-ua .sdk-section h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 19px; }
.be-ua .sdk-grid { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 2fr); gap: clamp(24px, 4.5vw, 62px); }
.be-ua .sdk-grid article { border-top: 1px solid var(--line); padding-top: 17px; }
.be-ua .sdk-grid h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.033em; font-weight: 670; }
.be-ua .sdk-grid p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.be-ua .suite-platforms .platform-label { color: var(--teal); font-size: 18px; font-weight: 670; }
.be-ua .sdk-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); margin: 14px 0 10px; padding-top: 12px; }
.be-ua .sdk-metrics dt { color: var(--teal); font-size: clamp(17px, 2vw, 27px); font-weight: 690; letter-spacing: -.03em; }
.be-ua .sdk-metrics dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.34; }
.be-ua .platform-group { margin-top: 15px; }
.be-ua .platform-group h4 { margin: 0 0 5px; font-size: 13px; font-weight: 690; line-height: 1.55; text-transform: none; }
.be-ua .platform-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 16px; margin: 0; padding: 0; list-style: none; }
.be-ua .platform-marks li { display: flex; gap: 5px; align-items: center; min-height: 23px; font-size: 12px; color: var(--muted); }
.be-ua .platform-marks img { width: 25px; height: 17px; object-fit: contain; }
.be-ua .platform-marks [data-platform="vxworks"] img { width: 51px; padding: 3px; border-radius: 2px; background: #102b3a; }
.be-ua .sdk-architecture { max-width: 840px; margin-top: 30px; }
.be-ua .sdk-architecture-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.be-ua .sdk-architecture-heading h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.025em; font-weight: 670; }
.be-ua .architecture-stack { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); }
.be-ua .architecture-sdk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, .27fr); gap: 6px; }
.be-ua .architecture-core { display: grid; gap: 4px; }
.be-ua .architecture-stack :is(.architecture-application, .architecture-fx, .architecture-ua, .architecture-network, .architecture-hal, .architecture-os, .architecture-media) { display: flex; align-items: baseline; gap: 3px 9px; flex-wrap: wrap; min-height: 28px; border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; background: var(--paper); font-size: 12px; line-height: 1.3; }
.be-ua .architecture-stack strong { font-weight: 690; }
.be-ua .architecture-stack span { color: var(--muted); }
.be-ua .architecture-stack :is(.architecture-fx, .architecture-os) { background: #e3f3fb; border-color: #b9dff3; color: var(--teal-hover); }
.be-ua .architecture-stack .architecture-os { flex-direction: column; justify-content: center; }

/* ---------- Produkt-Tour ---------- */
.be-ua .tour-section { padding-block: 72px 88px; }
.be-ua .tour-section h2, .be-ua .directory-section h2, .be-ua .tsn-section h2 { margin-bottom: 31px; }
.be-ua .tour { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 22px; }
.be-ua .tour-tabs { display: flex; min-width: 0; flex-direction: column; padding-block: 6px; }
.be-ua .tour-tabs button { min-height: 44px; border: 0; border-inline-start: 2px solid var(--line); border-radius: 0; padding: 7px 11px 7px 15px; text-align: left; color: var(--muted); background: var(--paper); cursor: pointer; font-size: 14px; font-weight: 560; }
.be-ua .tour-tabs button:hover { background: var(--wash); color: var(--ink); }
.be-ua .tour-tabs button[aria-selected="true"] { background: #e3f3fb; border-inline-start-color: var(--teal); color: var(--teal-hover); font-weight: 700; }
.be-ua .tour-tabs button:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.be-ua .tour-display { min-width: 0; }
.be-ua .tour-figure { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.be-ua .tour-screen { display: grid; place-items: center; width: 100%; aspect-ratio: 1.76; background: #e8eff1; }
.be-ua .tour-screen a, .be-ua .tour-screen video { display: block; width: 100%; height: 100%; min-height: 0; }
.be-ua .tour-screen a:focus-visible { outline-offset: -4px; }
.be-ua .tour-screen img { width: 100%; height: 100%; object-fit: contain; }
.be-ua .tour-screen video { object-fit: contain; background: #102b3a; }
.be-ua .tour-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 5px 8px 5px 17px; border-top: 1px solid var(--line); background: var(--paper); }
.be-ua .tour-label { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.be-ua #tour-name { font-size: 15px; font-weight: 680; }
.be-ua #tour-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.be-ua .tour-controls { display: flex; align-items: center; gap: 2px; }
.be-ua .tour-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--teal); border: 0; border-radius: 4px; background: var(--paper); cursor: pointer; }
.be-ua .tour-controls button:hover, .be-ua .tour-controls button[aria-pressed="true"] { background: #e3f3fb; }
.be-ua .tour-controls svg { width: 18px; height: 18px; }
.be-ua .tour-controls #tour-play { display: inline-flex; width: auto; padding: 0 12px; gap: 6px; color: var(--paper); background: var(--teal); font-size: 13px; font-weight: 670; white-space: nowrap; }
.be-ua .tour-controls #tour-play:hover { background: var(--teal-hover); }
.be-ua .tour-error { margin: 0; padding: 8px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.be-ua .tour-error a, .be-ua .tour-error a:hover { color: inherit; text-decoration: underline; }
.be-ua #tour-previous svg { transform: rotate(180deg); }

/* ---------- Tool-Verzeichnisse (OPC UA / TSN) ---------- */
.be-ua .directory-section { padding-block: 69px 75px; background: var(--wash); border-top: 1px solid var(--line); }
.be-ua .tool-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(26px, 5vw, 80px); }
.be-ua .tool { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: start; gap: 16px; min-width: 0; padding: 21px 0 23px; border-top: 1px solid var(--line); }
.be-ua .tool > svg { margin-top: 3px; color: var(--teal); }
.be-ua .tool h3 { font-size: clamp(19px, 1.8vw, 25px); letter-spacing: -.027em; line-height: 1.23; font-weight: 670; }
.be-ua .tool h3 a { text-decoration: none; }
.be-ua .tool ul { margin: 9px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; line-height: 1.54; }
.be-ua .tool li + li { margin-top: 3px; }
.be-ua .tsn-section { background: var(--navy); color: var(--paper); padding-block: 73px 78px; }
.be-ua .tsn-section .tool { border-color: var(--navy-line); }
.be-ua .tsn-section .tool > svg, .be-ua .tsn-section .tool a:hover { color: var(--aqua); }
.be-ua .tsn-section .tool ul { color: var(--muted-dark); }
.be-ua .tsn-section :focus-visible { outline-color: var(--aqua); }

/* ---------- Textlinks, Kontakt ---------- */
.be-ua .text-link, .be-ua .text-link:hover, .be-ua .text-link:focus { color: var(--teal); }
.be-ua .text-link { display: inline-block; font-size: 14px; font-weight: 650; text-decoration: none; }
.be-ua .ua-contact-section { background: var(--wash); border-block: 1px solid var(--line); padding-block: 44px; }
.be-ua .contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.be-ua .contact-inner h2 { font-size: clamp(27px, 3vw, 40px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .be-ua .hero-grid { gap: 27px; padding-block: 60px 44px; }
  .be-ua .ua-hero h1 { font-size: clamp(38px, 5.35vw, 48px); }
  .be-ua .tour { grid-template-columns: 178px minmax(0, 1fr); gap: 14px; }
  .be-ua .tour-tabs button { font-size: 13px; }
}

@media (max-width: 690px) {
  .be-ua .hero-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 34px; }
  .be-ua .hero-copy { padding-block-end: 0; }
  .be-ua .ua-hero h1 { font-size: clamp(40px, 9.7vw, 58px); }
  .be-ua .hero-tagline { margin-top: 11px; }
  .be-ua .hero-intro { margin-top: 16px; }
  .be-ua .hero-actions { margin-top: 20px; }
  .be-ua .hero-visual figcaption { margin-top: 3px; }
  .be-ua .hero-caption { font-size: 12px; }
  .be-ua .caption-rule { display: none; }
  .be-ua .tour-section, .be-ua .directory-section, .be-ua .tsn-section { padding-block: 46px 49px; }
  .be-ua .tour-section h2, .be-ua .directory-section h2, .be-ua .tsn-section h2 { margin-bottom: 23px; }
  .be-ua .sdk-section { padding-block: 33px 37px; }
  .be-ua .sdk-grid { grid-template-columns: 1fr; gap: 18px; }
  .be-ua .architecture-sdk { grid-template-columns: minmax(0, 1fr); }
  .be-ua .architecture-stack .architecture-os { flex-direction: row; justify-content: flex-start; }
  .be-ua .architecture-stack { padding: 6px; }
  .be-ua .sdk-architecture-heading .text-link { font-size: 12px; white-space: nowrap; }
  .be-ua .tour { grid-template-columns: 1fr; gap: 11px; }
  .be-ua .tour-tabs { padding: 0 0 4px; flex-direction: row; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .be-ua .tour-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid var(--line); padding-inline: 10px; white-space: nowrap; }
  .be-ua .tour-tabs button[aria-selected="true"] { border-color: var(--teal); }
  .be-ua .tour-caption { gap: 3px; padding-inline: 10px 4px; }
  .be-ua .tour-label { flex-wrap: wrap; gap: 0 8px; }
  .be-ua #tour-name { font-size: 13px; }
  .be-ua #tour-count { font-size: 12px; }
  .be-ua .tour-controls { gap: 0; }
  .be-ua .tour-controls #tour-play { padding-inline: 8px; gap: 4px; font-size: 12px; }
  .be-ua .tool-grid { grid-template-columns: 1fr; }
  .be-ua .tool { padding-block: 17px 19px; gap: 11px; }
  .be-ua .tool ul { font-size: 14px; }
  .be-ua .ua-contact-section { padding-block: 33px; }
  .be-ua .contact-inner { flex-wrap: wrap; gap: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.be-ua) { scroll-behavior: auto; }
}
