/* September 2026: original Scanwork colours, a more open composition and considered motion. */
:root {
  --soft-blue: #e5ecf4;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --radius-large: 28px;
}
body { background: #fff; }
.header {
  height: 96px;
  border-bottom-color: transparent;
  background: rgba(255,255,255,.94);
  transition: box-shadow .35s ease, background .35s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header.is-scrolled { box-shadow: 0 5px 28px rgba(0,40,85,.08); }
.button {
  justify-content: center;
  gap: 0;
  min-height: 52px;
  padding: 15px 27px;
  border-radius: 999px;
  letter-spacing: .005em;
  transition: transform .3s var(--ease-out), box-shadow .3s ease, background .3s ease;
}
.button:hover {
  background: #003c7a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #00489120;
}
.button:active { transform: translateY(0); box-shadow: none; }
.button.light:hover { background: var(--soft-blue); box-shadow: 0 8px 25px #001e4429; }
.nav .button { padding: 13px 24px; }
.text-link {
  gap: 0;
  position: relative;
  border-color: #c2cddb;
  padding: 12px 0 8px;
  transition: border-color .25s ease, color .25s ease;
}
.text-link:after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.text-link:hover:after { transform: scaleX(1); }
.eyebrow { letter-spacing: .12em; }
.hero { padding-top: 38px; }
.hero-intro {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  align-items: end;
  gap: 65px;
  padding: 12px 0 42px;
}
.hero-heading > .eyebrow { color: var(--blue); margin-bottom: 29px; }
.hero h1 {
  color: var(--ink);
  font-size: clamp(70px,7.2vw,112px);
  line-height: 1.03;
  letter-spacing: -.065em;
  margin: 0;
}
.hero h1 .headline-line { display: block; color: inherit; }
.hero h1 .headline-accent { color: var(--blue); }
.hero-summary { padding-bottom: 7px; }
.hero-summary p { font-size: 17px; line-height: 1.65; max-width: 360px; color: var(--muted); }
.hero-summary .button { margin-top: 27px; }
.hero-panorama {
  height: clamp(370px,32vw,490px);
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: #142333;
  isolation: isolate;
}
.hero-panorama > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transform: scale(1.045) translateY(var(--hero-shift, 0px));
}
.hero-panorama:after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #03142880);
  pointer-events: none;
}
.hero-panorama figcaption {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 1;
  border: 1px solid #ffffff3d;
  border-radius: 14px;
  background: #ffffffee;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
}
.hero-panorama figcaption .eyebrow { color: var(--blue); font-size: 12px; }
.hero-meta { border: 0; padding-top: 21px; }
.section { padding-top: 115px; padding-bottom: 115px; }
.section-intro { margin-bottom: 56px; }
.section-intro > .eyebrow { color: var(--blue); padding-top: 8px; }
.section-intro h2 { font-size: clamp(38px,4.1vw,63px); letter-spacing: -.05em; line-height: 1.08; }
.services { gap: 24px; align-items: start; }
.service {
  padding: 12px 12px 27px;
  border: 1px solid #e8edf3;
  border-radius: var(--radius-large);
  background: #f5f7fa;
  min-width: 0;
  transition: box-shadow .4s ease, background .4s ease;
}
.service:nth-child(2) { margin-top: 54px; background: var(--soft-blue); border-color: transparent; }
.service:hover { background: #edf2f8; box-shadow: 0 18px 40px #0d315011; }
.service-image { border-radius: 18px; aspect-ratio: 1.22; margin-bottom: 28px; }
.service-image img { transition: transform .75s var(--ease-out); }
.service-image:hover img { transform: scale(1.055); }
.service > .eyebrow, .service > h3, .service > p { margin-left: 16px; margin-right: 16px; }
.service > h3 { font-size: clamp(23px,2vw,31px); line-height: 1.14; }
.service > p { margin-top: 17px; }
.service > .text-link { margin-left: 16px; margin-top: 21px; }
.service > .eyebrow { color: var(--blue); }
.workshop {
  max-width: 1430px;
  margin: 0 auto;
  width: 89.4%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  grid-template-columns: 1.08fr 1fr;
}
.workshop-photo { min-height: 630px; position: relative; }
.workshop-photo > img { position: absolute; object-position: 46% center; }
.workshop-copy { padding: 60px 10%; }
.workshop-copy > .eyebrow { color: #c5d8ed; }
.workshop h2 { font-size: clamp(34px,3.35vw,52px); letter-spacing: -.05em; }
.workshop p { color: #e1ebf7; font-size: 16px; }
.workshop .text-link { color: #fff; border-color: #ffffff65; }
.workshop .text-link:after { background: #fff; }
.workshop .text-link:hover { color: #fff; }
.process-grid { gap: 28px; }
.process-grid article {
  background: #f5f7fa;
  border-radius: 24px;
  padding: 28px;
  border: 0;
  position: relative;
  overflow: hidden;
}
.process-grid article:before {
  content: '';
  display: block;
  height: 2px;
  background: #aec4dd;
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
}
.process-grid article > span { font-size: 54px; line-height: 1; letter-spacing: -.07em; color: var(--blue); }
.process-grid h3 { font-size: 25px; line-height: 1.15; margin-top: 37px; }
.footer {
  border-radius: 36px 36px 0 0;
  padding-top: 80px;
  overflow: hidden;
}
.footer h2 { font-size: clamp(42px,5.8vw,86px); letter-spacing: -.055em; }
.footer-top { align-items: center; }
.footer-contact .data-link { gap: 0; }
.footer-bottom { margin-top: 80px; }
.breadcrumb { padding-top: 24px; padding-bottom: 24px; }
.category-hero, .detail-hero { padding-top: 40px; padding-bottom: 75px; }
.category-hero figure, .detail-visual { border-radius: var(--radius-large); }
.category-hero figure figcaption { padding: 28px; }
.category-hero h1, .detail-heading h1 { letter-spacing: -.055em; line-height: 1.05; }
.category-hero .eyebrow, .detail-heading .eyebrow { display: inline-block; }
.product-card-photo { border-radius: 22px; background: #eaf0f6; aspect-ratio: 1.2; }
.product-card-photo.contain > img, .detail-visual.contain > img { background: #f3f6fa; }
.product-card-photo > img { transition: transform .7s var(--ease-out); }
.product-card:hover .product-card-photo > img { transform: scale(1.05); }
.product-card h3 { margin-top: 22px; transition: color .25s ease; }
.product-card p { line-height: 1.6; }
.product-grid { gap: 52px 30px; }
.facts { border-radius: 24px; padding: 33px; }
.download { border-radius: 0; gap: 0; }
.image-label { padding: 13px 24px; font-size: 13px; }
.spec-table { border-radius: 18px; overflow: hidden; }
.spec-table h3 { padding-left: 12px; }
.diagram, .gallery-item { border-radius: 18px; }
.gallery-item > span { border-radius: 14px 0 0 0; padding-right: 3px; width: 42px; height: 42px; }
.related-links a { transition: padding-left .3s var(--ease-out), color .25s ease; }
.related-links a:hover { padding-left: 8px; }
.portrait { border-radius: 22px; }
.team-section { background: #f5f7fa; padding-bottom: 60px; border-radius: 32px; }
.person-info { padding-bottom: 18px; }
.contact-address, .map-placeholder { border-radius: 28px; }
.map-section iframe { border-radius: 28px; }
.search-form input { border-radius: 16px; padding-left: 20px; }
.search-form .button { min-width: 116px; }
.lightbox { border-radius: 22px; padding: 18px 24px; }
.lightbox-toolbar { gap: 20px; }
.lightbox-navigation { display: flex; align-items: center; gap: 20px; }
.lightbox-prev, .lightbox-next {
  font-size: 14px;
  width: auto;
  min-width: 76px;
  height: 44px;
  padding: 8px 17px;
  border-radius: 999px;
}
.lightbox-stage > img { width: 100%; height: 70dvh; border-radius: 6px; }
.lightbox-counter { min-width: 52px; text-align: center; }
.lightbox-close { gap: 14px; }
.menu-toggle { border-radius: 999px; }

/* Progressive enhancement: all content remains visible without JavaScript. */
[data-reveal] {
  transition: opacity .75s var(--ease-out), translate .75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-pending { opacity: 0; translate: 0 25px; }
.reveal-visible { opacity: 1; translate: 0 0; }
@keyframes headline-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-heading > .eyebrow { animation: headline-in .6s var(--ease-out) both; }
  .hero h1 .headline-line { animation: headline-in .85s var(--ease-out) .08s both; }
  .hero h1 .headline-line + .headline-line { animation-delay: .17s; }
  .hero-summary { animation: headline-in .8s var(--ease-out) .24s both; }
  .hero-panorama { animation: headline-in .95s var(--ease-out) .2s both; }
}
@media (min-width:1600px) {
  .hero-intro { padding-bottom: 50px; }
}
@media (max-width:1200px) {
  .hero-intro { gap: 35px; grid-template-columns: 1.7fr 1fr; }
  .hero h1 { font-size: 7.25vw; }
  .workshop-copy { padding: 48px 9%; }
  .workshop-photo { min-height: 650px; }
  .service { padding-left: 10px; padding-right: 10px; }
  .service > h3 { font-size: 24px; overflow-wrap: anywhere; }
  .process-grid h3 { font-size: 23px; }
  .nav .button { padding: 12px 19px; }
}
@media (max-width:1050px) {
  .nav.open { top: 95px; border-radius: 0 0 24px 24px; max-height: calc(100dvh - 96px); }
  .hero-intro { grid-template-columns: 1.6fr 1fr; gap: 28px; }
  .hero h1 { font-size: 7.1vw; }
  .hero-summary p { font-size: 16px; }
  .hero-heading > .eyebrow { margin-bottom: 24px; }
  .hero-panorama { height: 370px; }
  .service > h3 { font-size: 22px; }
  .service > .eyebrow, .service > h3, .service > p, .service > .text-link { margin-left: 10px; margin-right: 10px; }
  .workshop { width: 92%; }
  .workshop h2 { font-size: 35px; }
  .process-grid article { padding: 24px; }
}
@media (max-width:800px) {
  .header { height: 80px; }
  .nav.open { top: 79px; max-height: calc(100dvh - 80px); }
  .hero { padding-top: 28px; }
  .hero-intro { grid-template-columns: 1fr; padding: 0 0 30px; gap: 26px; }
  .hero h1 { font-size: clamp(52px,10vw,80px); margin: 0; }
  .hero-heading > .eyebrow { margin-bottom: 23px; }
  .hero-summary { display: flex; align-items: center; gap: 35px; padding: 0; }
  .hero-summary p { max-width: 440px; }
  .hero-summary .button { margin: 0; white-space: nowrap; flex-shrink: 0; }
  .hero-panorama { height: 340px; border-radius: 22px; }
  .hero-panorama figcaption { left: 18px; bottom: 18px; padding: 12px 16px; }
  .hero-meta { padding-top: 17px; padding-bottom: 0; }
  .section { padding-top: 75px; padding-bottom: 75px; }
  .section-intro { margin-bottom: 35px; }
  .services { gap: 24px; }
  .service:nth-child(2) { margin-top: 0; }
  .service { padding: 12px 12px 28px; }
  .service-image { aspect-ratio: 1.65; margin-bottom: 25px; }
  .service > h3 { font-size: 31px; overflow-wrap: normal; }
  .service > .eyebrow, .service > h3, .service > p, .service > .text-link { margin-left: 15px; margin-right: 15px; }
  .workshop { grid-template-columns: 1fr; border-radius: 26px; }
  .workshop-photo { height: 370px; min-height: 0; }
  .workshop-photo > img { object-position: center 35%; }
  .workshop-copy { padding: 38px 7% 45px; }
  .workshop h2 { font-size: clamp(35px,5.5vw,46px); }
  .process-grid { gap: 20px; }
  .process-grid article { padding: 28px; }
  .process-grid h3 { margin-top: 26px; font-size: 27px; }
  .process-grid article > span { font-size: 46px; }
  .footer { border-radius: 28px 28px 0 0; padding-top: 58px; }
  .footer-top { align-items: stretch; }
  .footer h2 { font-size: clamp(42px,7vw,61px); }
  .footer-bottom { margin-top: 50px; }
  .category-hero, .detail-hero { padding-top: 22px; padding-bottom: 45px; }
  .category-hero figure, .detail-visual { border-radius: 22px; }
  .category-hero h1, .detail-heading h1 { font-size: clamp(45px,7.5vw,62px); }
  .product-grid { gap: 38px 22px; }
  .product-card-photo { border-radius: 18px; }
  .facts { border-radius: 22px; }
  .team-section { border-radius: 24px; }
  .contact-address, .map-placeholder { border-radius: 22px; }
  .lightbox { border-radius: 16px; padding: 12px; max-width: 96vw; }
  .lightbox-toolbar { align-items: center; gap: 5px; }
  .lightbox-navigation { gap: 7px; }
  .lightbox-prev, .lightbox-next { min-width: 62px; padding: 8px 12px; width: auto; }
  .lightbox-counter { font-size: 12px; min-width: 46px; }
  .lightbox-close { font-size: 0; gap: 0; padding: 4px 10px; }
  .lightbox-close span { font-size: 32px; }
  .lightbox-stage > img { width: 100%; height: 65dvh; }
}
@media (max-width:540px) {
  .hero-summary { display: block; }
  .hero-summary .button { margin-top: 23px; }
  .hero h1 { font-size: clamp(43px,11.6vw,61px); letter-spacing: -.06em; }
  .hero-panorama { height: 300px; }
  .hero-panorama > img { object-position: 43% center; }
  .hero-panorama figcaption { left: 14px; right: 14px; bottom: 14px; background: #ffffffee; padding: 12px 15px; }
  .hero-panorama figcaption .eyebrow { font-size: 12px; }
  .section-intro h2 { font-size: 37px; }
  .workshop-photo { height: 300px; }
  .service-image { aspect-ratio: 1.3; }
  .service > h3 { font-size: 28px; }
  .category-hero figure { height: 300px; }
  .detail-visual { height: 340px; }
  .button { white-space: normal; }
  .person { grid-template-columns: 1fr; gap: 18px; }
  .person-info { padding: 0 3px 20px; }
  .portrait { max-height: 390px; }
  .team-grid { gap: 35px; }
  .person h3 { font-size: 29px; }
  .person-info a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
  [data-reveal], .reveal-pending { opacity: 1 !important; translate: none !important; }
  .hero-panorama > img { transform: none !important; }
  .button:hover, .service-image:hover img, .product-card:hover .product-card-photo > img { transform: none; }
}

/* Direct access to every service, with native-colour controls on iOS. */
.menu-toggle, .submenu-toggle {
  -webkit-appearance: none;
  appearance: none;
  color: #111;
  -webkit-text-fill-color: #111;
  background: #fff;
  font: inherit;
  touch-action: manipulation;
}
.menu-toggle {
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
  font-size: 14px;
  gap: 12px;
}
.menu-icon { position: relative; display: block; width: 16px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu-icon::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.menu-toggle[aria-expanded="true"] .menu-icon { border-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; transform: translateY(-50%) rotate(-45deg); }
/* The category name opens the submenu; a fine line indicates its state. */
.nav { gap: 24px; }
.nav-group { position: relative; }
.nav-group-heading { display: flex; align-items: center; }
.submenu-toggle.nav-category-link {
  display: block;
  width: auto;
  min-height: 44px;
  padding: 13px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  font: inherit;
  text-align: left;
  white-space: nowrap;
}
.nav-label { display: inline-block; position: relative; }
.nav-label::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.submenu-toggle:hover .nav-label::after,
.submenu-toggle:focus-visible .nav-label::after,
.nav-group.is-active .nav-label::after,
.nav-group.is-open .nav-label::after { transform: scaleX(1); }
.nav > a:not(.button)::after { height: 1px; }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: -24px;
  width: 350px;
  padding: 22px;
  border: 1px solid #e1e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px #132a4521;
  max-height: calc(100dvh - 115px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-submenu[hidden] { display: none; }
.nav-submenu-produktion { width: 600px; left: auto; right: -60px; }
.nav-submenu-displays { width: 440px; left: auto; right: 0; }
.submenu-overview { display: block; padding: 10px 12px 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--blue); }
.submenu-overview:hover { text-decoration: underline; text-underline-offset: 3px; }
.submenu-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.submenu-heading { margin: 4px 12px 10px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.submenu-links { list-style: none; padding: 0; margin: 0; }
.submenu-links a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 16px; line-height: 1.4; }
.submenu-links a:hover, .submenu-links a[aria-current="page"] { background: var(--soft-blue); color: var(--blue); }
.nav-submenu-displays > .submenu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (min-width: 1051px) and (max-width: 1200px) {
  .nav { gap: 12px; }
  .nav .button { padding-left: 15px; padding-right: 15px; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1050px) {
  .nav.open { gap: 0; padding: 14px 5.3% max(24px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .submenu-toggle.nav-category-link { width: 100%; font-size: 17px; padding: 16px 0; }
  .nav-submenu { position: static; width: 100%; max-height: none; padding: 0 0 16px; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .submenu-overview { padding: 12px; margin: 0 0 8px; border: 0; border-radius: 10px; background: #f3f6fa; }
  .submenu-columns, .nav-submenu-displays > .submenu-links { display: block; }
  .submenu-columns > div + div { margin-top: 18px; }
  .submenu-heading { margin-top: 14px; }
  .submenu-links a { padding: 12px; min-height: 46px; }
  .nav > a:not(.button) { padding: 16px 0; font-size: 17px; }
  .nav > a:not(.button)::after { display: none; }
  .nav > .button { margin-top: 10px; flex-shrink: 0; }
}
@media (max-width: 480px) {
  .wordmark img { width: min(220px, calc(100vw - 150px)); }
}
