/*
 * Selected homepage directions, 24 Aug 2026.
 * Home uses Tom's approved bright Modularsystem LED rack.
 * Shop and Pack Installer retain directions 02 and 04.
 * All approved source images are integrated unchanged.
 */

body.za-selected-page {
  --za-selected-ink: #0b0907;
  --za-selected-panel: #100e0b;
  --za-selected-panel-soft: #17120d;
  --za-selected-gold: #c8a662;
  --za-selected-gold-bright: #d8b876;
  --za-selected-paper: #f3ead6;
  background: var(--za-selected-ink);
}

/* Compact menu redesign using the existing Modularsystem push-button asset.
   Link order, destinations and controls stay unchanged. */
body.za-selected-page header.site {
  min-height: 0 !important;
  background: #0b0907;
  border-top: 1px solid rgba(200, 166, 98, 0.22);
  border-bottom: 1px solid rgba(200, 166, 98, 0.34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.za-menu-font-pending body.za-selected-page header.site .nav-links,
html.za-menu-font-pending body.za-selected-page header.site .nav-actions {
  visibility: hidden;
}

body.za-selected-page header.site .nav {
  min-height: 58px;
  max-width: 1480px;
  padding: 6px 28px !important;
  gap: 24px;
}

body.za-selected-page header.site .brand-preview {
  display: inline-flex;
  align-items: center;
  min-width: 166px;
  transform: none;
}

body.za-selected-page header.site .brand-preview .brand-wordmark {
  width: 154px;
  height: auto !important;
  max-height: 38px;
  transform: none !important;
  filter: none;
}

body.za-selected-page header.site .nav-links {
  flex: 0 1 auto;
  gap: 3px;
  padding: 3px;
  background: #100e0b;
  border: 1px solid rgba(200, 166, 98, 0.22);
}

body.za-selected-page header.site .nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--za-selected-gold);
  background: #14110f url("modular/bauteile/taster.png") center / 100% 100% no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 4px rgba(0, 0, 0, 0.72);
  transition: transform 40ms linear, color 80ms linear, text-shadow 80ms linear;
}

body.za-selected-page header.site .nav-links a:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.8);
}

body.za-selected-page header.site .nav-links a:hover {
  color: var(--za-selected-gold);
  background: #14110f url("modular/bauteile/taster.png") center / 100% 100% no-repeat;
}

body.za-selected-page header.site .nav-links a.active,
body.za-selected-page header.site .nav-links a[aria-current="page"] {
  color: var(--za-selected-gold-bright);
  background: #14110f url("modular/bauteile/taster.png") center / 100% 100% no-repeat;
  text-shadow: 0 0 12px var(--za-accent-glow);
  transform: translateY(-1px);
  box-shadow:
    inset 0 3px 5px rgba(0, 0, 0, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.85);
}

body.za-selected-page header.site .nav-links a:focus-visible,
body.za-selected-page header.site .sunlight-toggle:focus-visible,
body.za-selected-page header.site .burger:focus-visible {
  outline: 2px solid var(--za-selected-gold-bright);
  outline-offset: 2px;
}

body.za-selected-page header.site .nav-actions {
  gap: 7px;
}

body.za-selected-page header.site .sunlight-toggle,
body.za-selected-page header.site .burger {
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  color: var(--za-selected-gold);
  background: #14110f url("modular/bauteile/taster.png") center / 100% 100% no-repeat;
  text-shadow: none;
}

body.za-selected-page header.site .sunlight-toggle {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

body.za-selected-page header.site .sunlight-toggle:hover,
body.za-selected-page header.site .burger:hover {
  border-color: rgba(0, 0, 0, 0.8);
  color: var(--za-selected-gold);
  background: #14110f url("modular/bauteile/taster.png") center / 100% 100% no-repeat;
}

body.za-selected-page header.site .sunlight-toggle[aria-pressed="true"] {
  color: #ffcf7a;
  text-shadow: 0 0 5px rgba(255, 170, 60, 0.95), 0 0 12px rgba(255, 140, 30, 0.55);
}

body.za-selected-page header.site .burger span,
body.za-selected-page header.site .burger span::before,
body.za-selected-page header.site .burger span::after {
  background: var(--za-selected-gold-bright);
}

html[data-theme="sunlight"] body.za-selected-page header.site {
  background: var(--bg);
  border-color: var(--hairline-strong);
}

html[data-theme="sunlight"] body.za-selected-page {
  background: var(--bg);
}

html[data-theme="sunlight"] body.za-selected-page header.site .nav-links {
  background: var(--surface-2);
  border-color: var(--hairline);
}

html[data-theme="sunlight"] body.za-selected-page header.site .nav-links a {
  color: var(--text);
  background: var(--surface-3) url("modular/bauteile/taster.png") center / 100% 100% no-repeat;
  background-blend-mode: soft-light;
  border-color: var(--hairline-strong);
}

html[data-theme="sunlight"] body.za-selected-page header.site .nav-links a:hover {
  color: var(--accent);
  background-color: var(--surface-2);
}

html[data-theme="sunlight"] body.za-selected-page header.site .nav-links a.active,
html[data-theme="sunlight"] body.za-selected-page header.site .nav-links a[aria-current="page"] {
  color: var(--accent);
  background-color: var(--bg);
  text-shadow: none;
}

html[data-theme="sunlight"] body.za-selected-page header.site .sunlight-toggle,
html[data-theme="sunlight"] body.za-selected-page header.site .burger {
  color: var(--text);
  background: var(--surface-3) url("modular/bauteile/taster.png") center / 100% 100% no-repeat;
  background-blend-mode: soft-light;
  border-color: var(--hairline-strong);
}

html[data-theme="sunlight"] body.za-selected-page header.site .sunlight-toggle[aria-pressed="true"] {
  color: var(--accent);
  background-color: var(--bg);
  text-shadow: none;
}

html[data-theme="sunlight"] body.za-selected-page header.site .burger span,
html[data-theme="sunlight"] body.za-selected-page header.site .burger span::before,
html[data-theme="sunlight"] body.za-selected-page header.site .burger span::after {
  background: var(--text);
}

/* Shared selected-image hero. */
.za-selected-hero {
  position: relative;
  isolation: isolate;
  height: clamp(640px, calc(100svh - 160px), 690px);
  min-height: 640px;
  overflow: hidden;
  padding: 0;
  background: var(--za-selected-ink);
  border-bottom: 1px solid rgba(200, 166, 98, 0.26);
}

.za-selected-hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.za-selected-hero-inner {
  width: min(var(--max-w), calc(100% - 96px));
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.za-selected-copy {
  grid-column: 1 / span 5;
  align-self: center;
  max-width: 570px;
  color: var(--za-selected-paper);
}

.za-selected-copy .eyebrow {
  color: var(--za-selected-gold-bright);
}

.za-selected-copy h1 {
  margin: 14px 0 0;
  color: var(--za-selected-paper);
  font-size: clamp(54px, 5.35vw, 84px);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.za-selected-copy h1 span {
  display: block;
}

.za-selected-copy h1 span:last-child,
.za-selected-copy h1 em {
  color: var(--za-selected-gold);
  font-style: normal;
}

.za-selected-lead {
  max-width: 52ch;
  margin: 26px 0 30px;
  color: rgba(243, 234, 214, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.za-selected-hero .btn.primary {
  border-color: var(--za-selected-gold);
  border-radius: 0;
  background: var(--za-selected-gold);
  color: #0b0907;
}

.za-selected-hero .btn.primary:hover {
  border-color: var(--za-selected-gold-bright);
  background: var(--za-selected-gold-bright);
}

.za-selected-hero-label {
  position: absolute;
  right: 48px;
  bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: rgba(243, 234, 214, 0.62);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.za-selected-hero-label span {
  color: var(--za-selected-gold);
}

.za-selected-hero-label strong {
  font-weight: 500;
}

/* Direction 01: open-reel machine on the right, copy on the left. */
.za-selected-hero-home .za-selected-hero-visual {
  object-position: center;
  opacity: 0.74;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.88) 68%, #000 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.88) 68%, #000 100%);
}

/* Sunlight is a high-contrast reading mode, independent of the dark brand palette. */
html[data-theme="sunlight"] body.za-selected-page .za-selected-hero {
  background: var(--bg);
  border-bottom-color: var(--hairline);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero-visual {
  opacity: 0.5;
  filter: invert(1) hue-rotate(180deg) grayscale(0.2) contrast(0.86);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-copy,
html[data-theme="sunlight"] body.za-selected-page .za-selected-copy h1 {
  color: var(--text);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-copy .eyebrow,
html[data-theme="sunlight"] body.za-selected-page .za-selected-copy h1 span:last-child,
html[data-theme="sunlight"] body.za-selected-page .za-selected-copy h1 em {
  color: var(--accent);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-lead {
  color: var(--text-muted);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero .btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero .btn.primary:hover {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero-label {
  color: var(--text-muted);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero-label span {
  color: var(--accent);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero-shop .za-selected-copy {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--hairline);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero-shop .za-selected-hero-visual {
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.42) 46%, #000 72%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.42) 46%, #000 72%);
}

html[data-theme="sunlight"] body.za-selected-page .za-selected-hero-installer .za-selected-hero-visual {
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.34) 48%, #000 74%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.34) 48%, #000 74%);
}

/* Direction 02: valve units on the left, framed catalogue copy on the right. */
.za-selected-hero-shop .za-selected-copy {
  grid-column: 8 / span 5;
  padding: 28px 32px 30px;
  background: #100e0b;
  border: 1px solid rgba(200, 166, 98, 0.26);
}

.za-selected-hero-shop .za-selected-copy h1 {
  font-size: clamp(50px, 4.7vw, 72px);
  letter-spacing: -0.03em;
}

.za-shop-filter {
  padding: 24px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.za-shop-filter .tabs {
  margin: 0;
}

/* Direction 04: tape-echo workshop on the right, lower-left workflow copy. */
.za-selected-hero-installer .za-selected-copy {
  align-self: end;
  margin-bottom: 104px;
}

.za-selected-hero-installer .za-selected-copy h1 {
  font-size: clamp(56px, 5.8vw, 90px);
}

.za-selected-page .pack-workspace {
  border-top: 0;
}

@media (max-width: 1120px) {
  body.za-selected-page header.site .nav-links a {
    padding-inline: 9px;
    font-size: 9px;
  }

  body.za-selected-page header.site .brand-preview {
    min-width: 144px;
  }

  body.za-selected-page header.site .brand-preview .brand-wordmark {
    width: 140px;
  }
}

@media (max-width: 980px) {
  body.za-selected-page header.site .nav {
    position: relative;
    padding-inline: 24px !important;
  }

  body.za-selected-page header.site .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    gap: 4px;
    padding: 10px 24px 18px;
    background: #0b0907;
    border: 0;
    border-bottom: 1px solid rgba(200, 166, 98, 0.34);
  }

  body.za-selected-page header.site .nav-links.open {
    display: flex;
  }

  body.za-selected-page header.site .nav-links a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 13px 10px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    font-size: 11px;
  }

  body.za-selected-page header.site .nav-links a:last-child {
    border: 1px solid rgba(0, 0, 0, 0.8);
  }

  body.za-selected-page header.site .burger {
    display: inline-flex;
  }

  html[data-theme="sunlight"] body.za-selected-page header.site .nav-links {
    background: var(--bg);
    border-bottom-color: var(--hairline-strong);
  }

  .za-selected-hero {
    height: clamp(620px, calc(100svh - 190px), 650px);
    min-height: 620px;
  }

  .za-selected-hero-inner {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
  }

  .za-selected-copy,
  .za-selected-hero-shop .za-selected-copy {
    grid-column: 1;
    align-self: end;
    justify-self: stretch;
    max-width: 620px;
    margin: 0 0 58px;
    padding: 22px;
    background: rgba(16, 14, 11, 0.9);
    border: 1px solid rgba(200, 166, 98, 0.24);
  }

  html[data-theme="sunlight"] body.za-selected-page .za-selected-copy,
  html[data-theme="sunlight"] body.za-selected-page .za-selected-hero-shop .za-selected-copy {
    background: rgba(255, 255, 255, 0.94);
    border-color: var(--hairline);
  }

  .za-selected-hero-installer .za-selected-copy {
    margin-bottom: 58px;
  }

  .za-selected-copy h1,
  .za-selected-hero-shop .za-selected-copy h1,
  .za-selected-hero-installer .za-selected-copy h1 {
    font-size: clamp(43px, 9vw, 68px);
  }

  .za-selected-hero-home .za-selected-hero-visual,
  .za-selected-hero-installer .za-selected-hero-visual {
    object-position: 64% center;
  }

  .za-selected-hero-shop .za-selected-hero-visual {
    object-position: 36% center;
  }

  .za-selected-hero-label {
    right: 24px;
    bottom: 20px;
  }
}

@media (max-width: 620px) {
  body.za-selected-page header.site .nav {
    min-height: 54px;
    padding: 5px 18px !important;
    gap: 10px;
  }

  body.za-selected-page header.site .brand-preview {
    min-width: 0;
  }

  body.za-selected-page header.site .brand-preview .brand-wordmark {
    width: 124px;
  }

  body.za-selected-page header.site .sunlight-toggle {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .za-selected-hero {
    height: clamp(600px, calc(100svh - 210px), 630px);
    min-height: 600px;
  }

  .za-selected-hero-inner {
    width: calc(100% - 32px);
  }

  .za-selected-copy,
  .za-selected-hero-shop .za-selected-copy,
  .za-selected-hero-installer .za-selected-copy {
    margin-bottom: 52px;
    padding: 18px;
  }

  .za-selected-copy h1,
  .za-selected-hero-shop .za-selected-copy h1,
  .za-selected-hero-installer .za-selected-copy h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .za-selected-lead {
    margin: 18px 0 22px;
    font-size: 15px;
    line-height: 1.55;
  }

  .za-selected-hero-label strong {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .za-selected-hero-visual {
    transform: none !important;
  }
}


/* ------------------------------------------------------------------
   Kopf- und Menueleiste groesser (Ansage Tom, 25.08.2026).
   Zuerst 70 %, danach auf Ansage 20 % davon wieder zurueckgenommen -
   die Werte hier sind also rund 36 % ueber dem alten Stand.
   Steht bewusst am Dateiende: die Werte oben in dieser Datei sind
   spezifischer als style.css und haben sonst weiter gegolten.
   Rueckgaengig: diesen Block loeschen.
   ------------------------------------------------------------------ */
body.za-selected-page header.site .nav {
  min-height: 78px;
  padding: 8px 28px !important;
  gap: 32px;
}
body.za-selected-page header.site .brand-preview { min-width: 226px; }
body.za-selected-page header.site .brand-preview .brand-wordmark {
  width: 210px;
  max-height: 52px;
}
body.za-selected-page header.site .nav-links { gap: 4px; padding: 4px; }
body.za-selected-page header.site .nav-links a {
  font-size: 14px;
  min-height: 46px;
  padding: 10px 18px;
}
body.za-selected-page header.site .sunlight-toggle {
  font-size: 12px;
  padding: 10px 16px;
  min-height: 49px;
}
body.za-selected-page header.site .burger { min-height: 49px; }

/* Auf schmalen Fenstern nicht ueberlaufen lassen. */
@media (max-width: 1200px) {
  body.za-selected-page header.site .nav { min-height: 61px; gap: 14px; }
  body.za-selected-page header.site .nav-links a { font-size: 11px; padding: 8px 11px; min-height: 37px; }
  body.za-selected-page header.site .brand-preview { min-width: 168px; }
  body.za-selected-page header.site .brand-preview .brand-wordmark { width: 160px; max-height: 40px; }
  body.za-selected-page header.site .sunlight-toggle { font-size: 10px; padding: 8px 11px; min-height: 37px; }
}


/* Der Rahmen um das Menue ist derselbe wie um die Displays an den
   Modulen (Ansage Tom, 25.08.2026): --za-bg innen, --za-line-strong
   als Linie, 4 px Radius. */
body.za-selected-page header.site .nav-links {
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(180deg,
      #050505 0%, #5c5c5c 6%, #2a2a2a 16%,
      #101010 40%, #080808 66%, #3f3f3f 90%, #060606 100%) border-box;
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow:
    0 0 0 2px #14110e,
    inset 0 2px 5px rgba(0,0,0,.95),
    inset 0 0 0 1px rgba(0,0,0,.9);
}
html[data-theme="sunlight"] body.za-selected-page header.site .nav-links {
  background: var(--surface-2);
  border-color: var(--hairline);
  box-shadow: none;
}
