/* B.6: Bereichstöne und atmosphärische, unverzerrte Hauptmotive. */
body[data-area]{
  --b6-accent:#744052;
  --b6-accent-soft:#33212a;
  --b6-panel:#231d22;
  --b6-line:#63505a;
  --b6-glow:#5a273c;
  background:#141214!important;
  color:#f4f0eb;
}
body[data-area="start"],body[data-area="kontakt"]{--b6-accent:#824253;--b6-accent-soft:#39212b;--b6-panel:#271d23;--b6-line:#76505d;--b6-glow:#67263c}
body[data-area="leistungen"]{--b6-accent:#69566a;--b6-accent-soft:#29232d;--b6-panel:#211f26;--b6-line:#655966;--b6-glow:#49384f}
body[data-area="funktionen"]{--b6-accent:#946951;--b6-accent-soft:#332820;--b6-panel:#29231f;--b6-line:#806550;--b6-glow:#69422e}
body[data-area="erleben"]{--b6-accent:#4b7978;--b6-accent-soft:#1d3033;--b6-panel:#1d282b;--b6-line:#4e7273;--b6-glow:#285456}
body[data-area="apps"]{--b6-accent:#626b96;--b6-accent-soft:#25283b;--b6-panel:#202330;--b6-line:#5f678b;--b6-glow:#374263}
body[data-area="zusammenarbeit"]{--b6-accent:#96744e;--b6-accent-soft:#342a20;--b6-panel:#28231d;--b6-line:#806b51;--b6-glow:#695031}
body[data-area="ueber"]{--b6-accent:#767b5b;--b6-accent-soft:#2a2d23;--b6-panel:#252820;--b6-line:#6e7258;--b6-glow:#4d5436}

/* Die Bildquelle behält ihr Seitenverhältnis. Die Größe der Bildbox darf variieren,
   das Bild selbst wird weder gezoomt noch zugeschnitten. */
body[data-area] .b6-atmosphere.home-hero,
body[data-area] .wrap>.b6-atmosphere.b3-hero,
body[data-area] .b3-inquiry>.b6-atmosphere.b3-hero{
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-height:clamp(520px,70svh,900px)!important;
  width:100%;
  max-width:none;
  padding:clamp(44px,6vw,100px) clamp(26px,5vw,100px)!important;
  margin:0 auto 52px!important;
  border:0!important;
  border-radius:0!important;
  isolation:isolate;
  overflow:hidden;
  background:radial-gradient(ellipse 65% 80% at 80% 55%,var(--b6-glow),transparent 82%),#141214!important;
}
body[data-area] .b6-atmosphere::after{
  content:"";
  display:block!important;
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(90deg,#141214 0%,#141214f2 28%,#141214a8 53%,#14121424 82%,#14121455 100%),linear-gradient(0deg,#141214a8,transparent 28%,transparent 76%,#14121466);
}
body[data-area] .b6-atmosphere>.hero-art,
body[data-area] .b6-atmosphere>.b3-backdrop{
  position:absolute!important;
  inset:0 0 0 auto!important;
  display:block!important;
  width:min(78%,1500px)!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  z-index:-1!important;
  opacity:.72!important;
  transform:none!important;
  animation:none!important;
  mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 90%,transparent 100%)!important;
}
body[data-area] .b6-atmosphere>img.hero-art,
body[data-area] .b6-atmosphere>.b3-backdrop img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:right center!important;
  transform:none!important;
  animation:none!important;
}
body[data-area] .b6-atmosphere>.hero-content,
body[data-area] .b6-atmosphere>.b3-hero-copy{
  position:relative;
  z-index:1;
  grid-column:auto;
  grid-row:auto;
  width:min(100%,780px)!important;
  max-width:780px!important;
  padding:0!important;
  margin:0!important;
}
body[data-area] .b6-atmosphere :is(.art-note,.b3-image-note){display:none!important}
body[data-area] .b6-atmosphere .eyebrow,
body[data-area] .b6-atmosphere .b3-eyebrow{
  background:var(--b6-accent-soft)!important;
  border-color:var(--b6-line)!important;
  color:#f4e9e5!important;
}

/* Bereichsakzente nur auf bestehende Oberflächen und Navigation anwenden.
   Funktionsbilder, Demo-Screens und Formulare bleiben bei ihren B.5-Regeln. */
body[data-area] .site-header nav [aria-current=page]{background:var(--b6-accent-soft)!important;box-shadow:inset 0 -2px var(--b6-accent)!important}
body[data-area] .site-header nav .nav-cta{border-color:var(--b6-line)!important}
body[data-area] [data-content-b4]>:is(section,.editorial-grid):not(.closing):not(.b3-hero):not(.split){background:var(--b6-panel)!important;border-color:var(--b6-line)!important}
body[data-area] [data-content-b4]>.editorial-grid .number{background:var(--b6-accent-soft)!important;border-color:var(--b6-line)!important}
body[data-area] .site-footer{border-top-color:var(--b6-line)!important}
body[data-area] :is(.hero-content,.b3-hero-copy,.j3-intro) :is(.button,.text-link):focus-visible{outline:3px solid #f4e2c4;outline-offset:4px}

/* Size the picture box itself to the source ratio, so the mask fades the actual
   image edges instead of the empty letterbox around a contain-rendered image. */
body[data-area] .b6-atmosphere>img.hero-art,
body[data-area] .b6-atmosphere>.b3-backdrop{
  inset:50% 0 auto auto!important;
  width:min(100%,calc(clamp(520px,70svh,900px) * 1.5))!important;
  height:auto!important;
  aspect-ratio:3/2!important;
  transform:translateY(-50%)!important;
  mask-image:linear-gradient(90deg,transparent,#000 28%,#000 94%,transparent),linear-gradient(0deg,transparent,#000 12%,#000 88%,transparent)!important;
  mask-composite:intersect;
}
body[data-area] .b6-atmosphere.home-hero{padding-inline:max(clamp(26px,5vw,100px),calc((100% - 2200px)/2))!important}

@media(max-width:700px){
  body[data-area] .b6-atmosphere.home-hero,
  body[data-area] .wrap>.b6-atmosphere.b3-hero,
  body[data-area] .b3-inquiry>.b6-atmosphere.b3-hero{
    min-height:600px!important;
    justify-content:flex-start;
    padding:clamp(35px,7vw,52px) 24px 180px!important;
  }
  body[data-area] .b6-atmosphere>img.hero-art,
  body[data-area] .b6-atmosphere>.b3-backdrop{
    inset:auto 0 0 0!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:3/2!important;
    transform:none!important;
    mask-image:linear-gradient(0deg,transparent 0%,#000 15%,#000 48%,transparent 100%)!important;
  }
  body[data-area] .b6-atmosphere>img.hero-art,
  body[data-area] .b6-atmosphere>.b3-backdrop img{object-position:center bottom!important}
  body[data-area] .b6-atmosphere::after{
    background:linear-gradient(0deg,#14121466 0%,#14121410 25%,#141214aa 57%,#141214f5 80%,#141214 100%);
  }
  body[data-area] .b6-atmosphere>.hero-content,
  body[data-area] .b6-atmosphere>.b3-hero-copy{width:100%!important;max-width:none!important}
}
