/* Shared themes and accessibility preferences; no third-party overlay. */
:root {
  --header-bg: #02060cef;
  --button-text: #02101b;
  --button-hover: #93e5ff;
  --control-border: #61869d;
  --focus: #58d6ff;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8fb;
  --surface: #fff;
  --surface-soft: #eaf2f7;
  --text: #102c40;
  --muted: #435e70;
  --cyan: #006a8b;
  --mint: #007951;
  --line: #b7cbd8;
  --header-bg: #f4f8fbf5;
  --button-text: #fff;
  --button-hover: #005470;
  --control-border: #5c798d;
  --focus: #005f83;
}
html { font-size: 100%; scroll-padding-bottom: 120px; }
html[data-large-text="true"] { font-size: 125%; }
body { font-size: 1rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
button, select, input { font: inherit; }
button, a, input, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:where(a, button, input, summary):focus { scroll-margin-top: 120px; scroll-margin-bottom: 140px; }
section:focus-visible, article:focus-visible, main:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }
a, button, p, li, h1, h2, h3 { overflow-wrap: break-word; }
.site-header { height: auto; min-height: 96px; gap: 20px; padding-block: 16px; background: var(--header-bg); }
.main-nav { margin-left: auto; gap: 22px; }
.main-nav a { font-size: .8125rem; }
.brand-line { display: none; }
.display-tools { position: fixed; z-index: 60; bottom: 20px; left: 20px; display: flex; gap: 8px; padding: 7px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 28px #0003; }
.display-tools:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
.display-control, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: .75rem; cursor: pointer; }
.display-control:hover, .icon-button:hover { color: var(--cyan); border-color: var(--cyan); }
.display-control[aria-pressed="true"] { border-color: var(--cyan); }
.display-control svg { flex: 0 0 20px; }
[data-theme-icon] { font-size: 1.2rem; line-height: 1; }
.menu-toggle { order: 4; flex-shrink: 0; border-color: var(--control-border); }
.button, .main-nav .nav-contact, .cookie-button.primary { background: var(--cyan); color: var(--button-text); }
.button:hover, .main-nav .nav-contact:hover { background: var(--button-hover); color: var(--button-text); }
.button-outline { background: transparent; color: var(--cyan); border-color: var(--control-border); }
.button-outline:hover { background: var(--surface-soft); color: var(--text); }
.skip-link { color: var(--button-text); }
.main-nav a, .brand-line, .connection-grid > p, .module-list li, .check-list li, .equipment-details summary, .footer-bottom, .news-meta { color: var(--muted); }
.footer-grid a, .footer-bottom a { min-height: 28px; display: inline-flex; align-items: center; }
.footer-grid a { display: flex; }
.footer-bottom > div { flex-wrap: wrap; }
.footer, .legal-footer { padding-bottom: 110px; }
.footer-grid h3 { line-height: 1.5; }
.footer-grid a, .footer-grid p, .footer-bottom, .fine-print, .product-copy .fine-print, .preview-caption, .news-meta, .contact-actions small { font-size: .75rem; }
.check-list li, .product-copy > p:not(.kicker):not(.fine-print):not(.cooperation), .jacket-copy > p:not(.kicker), .news-card > p { font-size: .9375rem; }
.sensor-list p, .workflow small, .connection-grid small { font-size: .8125rem; }
.sensor-list h3, .workflow strong, .connection-grid strong { font-size: .9375rem; }
.kicker, .product-copy .kicker, .contact-card .kicker, .news-card .kicker, .hero .kicker { font-size: .6875rem; }
.hero-signature, .hero-caption, .hero-caption small { font-size: .75rem; }
.connection-grid > p { font-size: .875rem; }
.connection-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
.workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-copy { width: 63%; }
.hero-inner { height: auto; }
.product-card { min-width: 0; }
.section-intro > *, .jacket-grid > *, .contact-card > *, .news-grid > * { min-width: 0; }
.app-screenshots { flex-wrap: wrap; }
.module-list li { font-size: .75rem; }
.connection-strip, .jacket-section { background: var(--surface-soft); }
.contact-card { background: radial-gradient(ellipse at 100% 0, #58d6ff13, transparent 65%), var(--surface); border-color: var(--line); }
.news-card, .legal-card { background: var(--surface-soft); }
.platform-card { background: radial-gradient(ellipse at 86% 0, #58d6ff12, transparent 60%), var(--surface); }
.cookie-banner { background: var(--surface); border-color: var(--control-border); }
.cookie-button { background: var(--surface-soft); color: var(--text); border-color: var(--control-border); }
.cookie-button.primary { border-color: var(--cyan); }
.back-top { background: var(--surface); border-color: var(--control-border); }
/* Product photos and interface previews keep their original dark backgrounds. */
.platform-preview, .product-visual, .jacket-visual, .app-visual, .hero-caption {
  --text: #e8f6fc; --muted: #b0c8d6; --cyan: #58d6ff; --mint: #49ffb7; --focus: #58d6ff;
}
.platform-preview { background: #02080f; }
.preview-caption { color: var(--muted); }
.product-visual figcaption, .jacket-visual figcaption { font-size: .75rem; }
.app-visual { padding: 24px 16px; background: #07131f; border-radius: 12px; overflow: hidden; }
.app-visual-label { font-size: .75rem; text-align: center; }
:root[data-theme="light"] .brand img,
:root[data-theme="light"] .footer-brand img,
:root[data-theme="light"] .legal-footer > img { filter: brightness(0) saturate(100%) invert(13%) sepia(21%) saturate(1480%) hue-rotate(159deg) brightness(93%) contrast(98%); }
:root[data-theme="light"] .floriax-logo { background: #07131f; padding: 12px; border-radius: 6px; width: 200px; max-height: none; }
:root[data-theme="light"] .hero { background: var(--bg); }
:root[data-theme="light"] .hero::before { background: linear-gradient(90deg, #f4f8fb 9%, #f4f8fbfc 30%, #f4f8fbe8 44%, #f4f8fb44 66%, transparent 86%), linear-gradient(0deg, #f4f8fb, transparent 28%); }
:root[data-theme="light"] .hero-lead,
:root[data-theme="light"] .hero-signature { color: #254458; }
:root[data-theme="light"] .hero-caption { color: #e8f6fc; }
:root[data-theme="light"] .hero-caption .status-dot { background: #49ffb7; }
:root[data-theme="light"] .module-list li { border-color: var(--line); background: var(--surface-soft); }
:root[data-theme="light"] .cooperation { color: var(--cyan); }
:root[data-theme="light"] .main-nav { background: var(--header-bg); }
/* Native dialog supplies modal focus containment and Escape handling. */
.display-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--control-border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 30px 100px #0006; }
.display-dialog::backdrop { background: #0009; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 1.6rem; line-height: 1.3; letter-spacing: -.03em; }
.icon-button { flex: 0 0 44px; font-size: 1.5rem; }
.display-dialog p { color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.theme-options { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 16px; margin: 24px 0; border: 1px solid var(--control-border); border-radius: 8px; }
.theme-options legend { padding-inline: 6px; font-size: .9375rem; font-weight: 650; }
.theme-options label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: .9375rem; cursor: pointer; }
.display-dialog input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--cyan); }
.reading-preset { width: 100%; font-size: 1rem; }
.display-dialog .settings-hint { font-size: .8125rem; margin-top: 10px; }
.display-options { margin-top: 16px; }
.display-options label { display: flex; gap: 14px; padding-block: 17px; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.display-options strong { display: block; font-size: 1rem; font-weight: 650; }
.display-options small { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.settings-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.settings-footer a, .text-button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--cyan); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body:has(.display-dialog[open]) { overflow: hidden; }
/* Local, server-rendered articles remain readable without JavaScript. */
.article-page { padding-block: 36px 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 45px; color: var(--muted); font-size: .875rem; }
.breadcrumbs a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; min-height: 32px; display: inline-flex; align-items: center; }
.article-heading { max-width: 900px; margin: 0 auto 40px; }
.article-heading h1 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.15; }
.article-meta { margin-top: 22px; color: var(--muted); font-size: .875rem; }
.article-lead { margin-top: 25px; font-size: 1.25rem; line-height: 1.65; }
.article-image { max-width: 900px; margin: 0 auto 40px; }
.article-image img { width: 100%; max-height: 600px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.article-image figcaption { margin-top: 14px; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.article-body { max-width: 740px; margin-inline: auto; }
.article-body > p { margin-block: 25px; font-size: 1.0625rem; line-height: 1.9; }
.article-body h2 { margin-top: 38px; font-size: 1.5rem; line-height: 1.4; letter-spacing: -.02em; }
.archive-note { padding: 20px 24px; margin-bottom: 32px; border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; background: var(--surface); }
.archive-note p { font-size: .875rem; line-height: 1.8; color: var(--muted); }
.article-download { margin-top: 38px; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.article-download h2 { margin-top: 0; }
.article-download p { margin-block: 18px; color: var(--muted); }
.article-download .button { flex-wrap: wrap; text-align: center; }
.article-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); }
.article-navigation a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; max-width: 100%; }
.legal-card > .button { margin-top: 22px; }
.legal-card h2 { line-height: 1.4; }
.legal-card p { font-size: 1rem; line-height: 1.85; }
/* Higher contrast can be combined with either color scheme. */
:root[data-high-contrast="true"] {
  --bg: #000; --surface: #080808; --surface-soft: #111; --text: #fff; --muted: #fff;
  --cyan: #70e2ff; --mint: #7dffca; --line: #aaa; --control-border: #eee; --header-bg: #000; --focus: #ffeb57;
}
:root[data-theme="light"][data-high-contrast="true"] {
  --bg: #fff; --surface: #fff; --surface-soft: #f2f2f2; --text: #000; --muted: #161616;
  --cyan: #004467; --mint: #005235; --line: #333; --control-border: #111; --header-bg: #fff; --focus: #003f77;
}
:root[data-high-contrast="true"] .hero { background: var(--bg); }
:root[data-high-contrast="true"] .hero::before { background: none; }
:root[data-high-contrast="true"] .hero-picture { opacity: .25; }
:root[data-high-contrast="true"] .hero-copy { padding: 24px; border-radius: 8px; background: var(--bg); }
:root[data-high-contrast="true"] .hero-lead,
:root[data-high-contrast="true"] .hero-signature { color: var(--text); }
:root[data-high-contrast="true"] .hero-caption { display: none; }
:root[data-high-contrast="true"] .contact-card,
:root[data-high-contrast="true"] .platform-card { background: var(--surface); }
:root[data-high-contrast="true"] .status-dot { box-shadow: none; }
:root[data-highlight-links="true"] a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
:root[data-reduce-motion="true"] *,
:root[data-reduce-motion="true"] *::before,
:root[data-reduce-motion="true"] *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
:root[data-reduce-motion="true"] .screen-1,
:root[data-reduce-motion="true"] .screen-2 { transform: none; }
:root[data-large-text="true"] .hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
:root[data-large-text="true"] .hero-copy { width: 70%; }
:root[data-large-text="true"] .section-intro,
:root[data-large-text="true"] .contact-card,
:root[data-large-text="true"] .product-card { grid-template-columns: 1fr; }
:root[data-large-text="true"] .product-visual { order: 2; }
:root[data-large-text="true"] .product-visual img { max-height: 500px; }
:root[data-large-text="true"] .platform-preview { max-width: 820px; }
:root[data-large-text="true"] .equipment-grid { grid-template-columns: 1fr; }
@media (max-width: 1100px) {
  .site-header { min-height: 80px; padding-block: 12px; gap: 14px; }
  .brand-line { display: none; }
  .display-tools { margin-left: 0; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: calc(100% + 8px); left: 24px; right: 24px; padding: 14px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--surface); box-shadow: 0 15px 30px #0005; max-height: calc(100dvh - 120px); overflow-y: auto; }
  .menu-open .main-nav { display: grid; gap: 4px; }
  .main-nav a { min-height: 48px; padding: 12px 16px; }
  .main-nav .nav-contact { margin-top: 7px; justify-content: space-between; }
  .connection-grid { grid-template-columns: 1fr 1fr; }
  :root[data-theme="light"] .hero::before { background: linear-gradient(90deg, #f4f8fbfd, #f4f8fbe8 55%, #f4f8fb66), linear-gradient(0deg, #f4f8fb, transparent 50%); }
  .hero-copy { width: 76%; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 76px; gap: 10px; }
  .display-tools { gap: 6px; }
  .display-control { padding-inline: 8px; font-size: .6875rem; }
  [data-theme-label] { display: none; }
  .brand img { width: 60px; }
  .hero-copy, :root[data-large-text="true"] .hero-copy { width: 100%; }
  .hero-inner { min-height: 860px; padding-bottom: 330px; }
  :root[data-theme="light"] .hero::before { background: linear-gradient(180deg, #f4f8fb 0, #f4f8fb 49%, #f4f8fbdd 59%, #f4f8fb00 78%, #f4f8fb 100%); }
  .hero-picture { height: 380px; }
  .connection-grid { grid-template-columns: 1fr; gap: 20px; }
  .connection-grid > div { border-left: none; padding-left: 0; }
  .connection-grid > p { font-size: .9375rem; }
  .connection-grid strong { font-size: 1rem; }
  .product-copy h3 { font-size: 1.9rem; }
  .workflow { grid-template-columns: 1fr; gap: 18px; }
  .workflow li { display: flex; align-items: baseline; gap: 14px; }
  .workflow strong { margin-top: 0; }
  .module-list li { font-size: .75rem; }
  .app-visual { padding: 20px 10px; }
  .app-visual-label { flex-wrap: wrap; }
  .contact-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid a, .footer-grid p { font-size: .875rem; }
  .footer-bottom { font-size: .8125rem; }
  .footer-bottom > div { gap: 15px; }
  .display-dialog { padding: 20px; }
  .dialog-heading h2 { font-size: 1.3rem; }
  .article-page { padding-top: 22px; }
  .breadcrumbs { margin-bottom: 25px; }
  .article-heading h1 { font-size: 2rem; }
  .article-lead { font-size: 1.125rem; }
  .article-body > p { font-size: 1rem; }
  .article-download { padding: 20px; }
  :root[data-large-text="true"] .hero h1 { font-size: 2rem; }
  :root[data-high-contrast="true"] .hero-copy { padding: 16px; }
}
@media (max-width: 600px) {
  .display-tools { left: 12px; bottom: 12px; padding: 5px; gap: 5px; border-radius: 10px; }
  .display-tools .accessibility-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .display-tools .display-control { width: 44px; padding: 8px; }
  .cookie-banner { bottom: 84px; max-height: calc(100dvh - 110px); overflow-y: auto; }
  .menu-toggle { margin-left: auto; }
}
@media (max-width: 380px) {
  .accessibility-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .display-control { min-width: 44px; }
}
@media (forced-colors: active) {
  .button, .display-control, .icon-button, .menu-toggle, .cookie-button, .product-card, .news-card { border: 1px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
  .hero-picture, .hero::before, .app-orbit { display: none; }
  .hero-copy { background: Canvas; color: CanvasText; }
  a { text-decoration: underline; }
}
