/* User refinement, 19 October 2026: extend the approved translucent Home copy
   card to every page hero, with blue headings and dark body text. Preserve
   the photographs and top-to-bottom fading navigation shade. Existing AI
   concept artwork only; photographs remain decorative.

   Include this stylesheet globally and after v2-hero.css inside the existing
   Home shadow root. All paths resolve relative to the generated assets folder.
   No animations, image edits, additional controls or changes to the established
   platform drawing, product marks and light/dark Home cards. */

body[data-design="v2"] .page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  --v2-atmosphere-opacity: 1;
  --v2-atmosphere-position: 58% 50%;
}

body[data-page="industrie"] .page-hero {
  --v2-atmosphere-image: url("images/industry-hero.webp");
  --v2-atmosphere-position: 58% 45%;
}
body[data-page="rail"] .page-hero {
  --v2-atmosphere-image: url("images/application-highspeed.webp");
  --v2-atmosphere-position: 64% 53%;
}
body[data-page="plattform"] .page-hero {
  --v2-atmosphere-image: url("images/platform.webp");
  --v2-atmosphere-position: 62% 54%;
}
body[data-page="config"] .page-hero {
  --v2-atmosphere-image: url("images/hardware-development-lab-etenar-rack-v3.webp");
  --v2-atmosphere-position: 58% 52%;
}
body[data-page="safe"] .page-hero {
  --v2-atmosphere-image: url("images/software-validation-station-etenar-rack-v3.webp");
  --v2-atmosphere-position: 54% 43%;
}
body[data-page="safety-security"] .page-hero {
  --v2-atmosphere-image: url("images/safety-validation-rig-etenar-rack-v4.webp");
  --v2-atmosphere-position: 64% 50%;
}
body[data-page="engineering"] .page-hero {
  --v2-atmosphere-image: url("images/engineering-system-integration-etenar-rack-v4.webp");
  --v2-atmosphere-position: 60% 48%;
}
body[data-page="unternehmen"] .page-hero {
  --v2-atmosphere-image: url("images/technology-development-center-etenar-rack-v3.webp");
  --v2-atmosphere-position: 58% 45%;
}
body[data-page="kontakt"] .page-hero {
  --v2-atmosphere-image: url("images/contact-project-conversation-v1.webp");
  --v2-atmosphere-position: 68% 56%;
}
body[data-page="impressum"] .page-hero {
  --v2-atmosphere-image: url("images/technology-development-center-etenar-rack-v3.webp");
  --v2-atmosphere-position: 57% 44%;
}
body[data-page="datenschutz"] .page-hero {
  --v2-atmosphere-image: url("images/software-validation-station-etenar-rack-v3.webp");
  --v2-atmosphere-position: 55% 35%;
}
body[data-page="medien"] .page-hero {
  --v2-atmosphere-image: url("images/home-prototype-development.webp");
  --v2-atmosphere-position: 60% 50%;
}

body[data-design="v2"] .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  user-select: none;
  background-image: var(--v2-atmosphere-image, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--v2-atmosphere-position);
  opacity: var(--v2-atmosphere-opacity);
  filter: none;
  mask-image: none;
}
body[data-design="v2"] .page-hero,
:host .hero {
  --v2-top-shade: linear-gradient(180deg, #071f31c7 0, #071f31b3 65px, #071f3166 125px, #071f3100 220px);
}
body[data-design="v2"] .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--v2-top-shade);
  opacity: 1;
  mask-image: none;
  pointer-events: none;
}
body[data-design="v2"] #main .page-hero>.v2-hero-origin-wrap {
  display:block!important;position:relative;margin-top:24px;z-index:1;
}
body[data-design="v2"] .v2-hero-image-origin {
  display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;
  margin:0;padding:4px 7px;color:#c3dce8;background:#071f31a6;
  border-radius:4px;font-size:9px;line-height:1.7;
}
body[data-design="v2"] .v2-hero-image-origin>span {
  font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#b2e6f4;
}
body[data-design="v2"] #main .page-hero>.v2-hero-origin-wrap+.hero-topics { margin-top:24px; }

/* Home retains its already established Industry/Rail image in the shadow DOM;
   the full photograph is visible outside the navigation and copy shades. */
:host .hero .hero-background-poster {
  opacity: 1 !important;
  filter: none !important;
}
/* The approved navigation fade stays separate from the copy treatment. */
:host .hero::after {
  background: var(--v2-top-shade) !important;
}
:host .hero .hero-lead::before { display: none; }
:host .hero .hero-actions { text-shadow: none; }

/* Shared copy card: the first wrapper contains only the left-hand text on
   every non-Home page; illustrations and section navigation stay outside. */
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child,
:host .hero .hero-copy {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-width: 0;
  padding: 32px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #09273e !important;
  border: 1px solid #d5e1e7 !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 40px #00121c24 !important;
  backdrop-filter: none !important;
  text-shadow: none;
}
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child {
  max-width: 800px;
  overflow-wrap: break-word;
  hyphens: auto;
}
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child::before,
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child::after,
:host .hero .hero-copy::before,
:host .hero .hero-copy::after { display: none !important; }
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child h1 {
  color: #0066bb !important;
  overflow-wrap: break-word;
  hyphens: auto;
  text-shadow: none;
}
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child h1 em {
  color: #0492cd !important;
}
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child .eyebrow {
  color: #456576 !important;
}
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child .eyebrow::before {
  background: #087f9e;
}
body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child :is(.lead, .technology-context) {
  color: #23485e !important;
  border-color: #d9e4e9;
}
:host .hero .hero-copy h1,
:host .hero .hero-copy .hero-strapline {
  color: #09273e !important;
  text-shadow: none;
}
/* Match the original ETENAR-IR Home headline's two brand blues. */
:host .hero .hero-copy h1 > span { color: var(--blue) !important; }
:host .hero .hero-copy h1 em { color: var(--blue-mid) !important; }
:host .hero .hero-copy .eyebrow { color: #456576 !important; }
:host .hero .hero-copy .eyebrow > span { background: #087f9e !important; }
:host .hero .hero-copy .ir-innovation-label { color: #006bbb !important; }
:host .hero .hero-copy .hero-motto,
:host .hero .hero-copy .hero-motto span,
:host .hero .hero-copy .hero-lead,
:host .hero .hero-copy .hero-facts,
:host .hero .hero-copy .hero-facts li { color: #23485e !important; }
:host .hero .hero-copy .hero-facts { border-color: #d9e4e9 !important; }
:host .hero .hero-copy .hero-facts li > span {
  color: #087f9e !important;
  flex-shrink: 0;
  white-space: nowrap;
}
:host .hero .hero-copy .button-secondary {
  background: transparent !important;
  border-color: #91b3c3 !important;
  color: #09273e !important;
}
:host .hero .hero-copy .button-secondary:hover { background: #eaf4f8 !important; }
:host .hero .hero-copy a:focus-visible { outline-color: #006bbb !important; }
:host .hero .hero-copy .hero-image-origin {
  width: auto !important;
  max-width: 100% !important;
  color: #536b7a !important;
}
@media (max-width: 1080px) {
  body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child,
  :host .hero .hero-copy { padding: 25px !important; }
}
@media (max-width: 700px) {
  body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child,
  :host .hero .hero-copy { padding: 24px 20px !important; border-radius: 18px !important; }
}
@media (max-width: 350px) {
  body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child,
  :host .hero .hero-copy { padding: 22px 16px !important; }
  body[data-design="v2"] #main .page-hero > .wrap:first-child > div:first-child h1 {
    font-size: 30px !important;
  }
}

@media (max-width: 700px) {
  body[data-design="v2"] .page-hero,
  :host .hero {
    --v2-top-shade: linear-gradient(180deg, #071f31c7 0, #071f31ad 55px, #071f3152 110px, #071f3100 180px);
  }
}

@media print {
  body[data-design="v2"] .page-hero::after { display: none; background-image: none; }
  body[data-design="v2"] .page-hero::before,
  body[data-design="v2"] .page-hero > .wrap:first-child > div:first-child::before,
  :host .hero .hero-copy::before,
  :host .hero::after { display: none !important; }
  :host .hero .hero-background { display: none !important; }
  body[data-design="v2"] .page-hero > .wrap:first-child > div:first-child,
  body[data-design="v2"] .page-hero h1,
  :host .hero .hero-copy,
  :host .hero h1 { text-shadow: none; }
}
