@import url("../../css/website-overview.css?v=20261129-szenentitel");
/* Only the dedicated Warum landing begins underneath the site navigation. */
html body:has(#tri_container > [data-module="warum"] > .warum-story) {padding-top:0!important}
body:has(#tri_container > [data-module="warum"] > .warum-story) #tri_header {position:absolute!important;inset:0 0 auto;width:100%;z-index:100}
body:has(#tri_container > [data-module="warum"] > .warum-story) #tri_container>p:has([data-tri-logo-uebergang]) {margin:0;padding:0}
.warum-story {
  --city:url("stadt.webp");--scene-base:#141c20;--intro-bg:#fff;--intro-ink:var(--tri-action-ink,#252a2e);
  --fade-start:#fffffff5;--fade-end:#ffffff50;--accent:var(--tricoma-green);
  --lobby:url("lobby-light.webp");--floorplan:url("tafel-light.webp");--board-ink:#252a2e;--label-filter:brightness(.24);
}
html[data-theme="dark"] .warum-story {
  --city:url("stadt-nacht.webp");--scene-base:#0d141c;--intro-bg:#14181c;--intro-ink:var(--tri-action-ink,#f2f5f6);
  --fade-start:#14181cf2;--fade-end:#14181c50;--lobby:url("lobby-dark.webp");
  --floorplan:url("tafel-dark.webp");--board-ink:#fff;--label-filter:none;
}
.warum-story[data-step="intro"] .w-copy {--accent:var(--tricoma-green)}
html[data-theme="dark"] .warum-story[data-step="intro"] .w-copy {--accent:var(--tricoma-green)}
.warum-story:not([data-step="intro"]) .w-copy,.warum-story .w-next {
  text-shadow:0 1px 4px #081116e0,0 2px 14px #081116a8;
}
.warum-story .w-interact {position:absolute;left:50%;bottom:4%;transform:translateX(-50%);
  font:600 clamp(12px,1cqw,16px)/1.4 "Open Sans",sans-serif;color:white;white-space:nowrap;
  background:#101b20d9;border-radius:100px;padding:.4em 1em;pointer-events:none;visibility:hidden}
.warum-story:is([data-step="firma"],[data-step="orte"]) .w-interact {visibility:visible}
.warum-story[data-step="orte"] .w-interact {bottom:3%}
#tri_container:has(.warum-story) {overflow:clip!important}
.warum-story {
  position:relative;width:100%;height:440vh;height:440svh;background:var(--scene-base);
  color:white;font-family:"Open Sans",sans-serif;isolation:isolate;
}
.warum-story .w-stage {
  position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;container-type:size;
  --world:max(118cqw,208cqh);--zoom:1;--board:0;--company:0;--places:0;--mist:1;
}
.warum-story .w-map,.warum-story .w-objects {
  position:absolute;left:51.8%;top:57%;width:var(--world);aspect-ratio:2730/1536;
  transform:translate(-50%,-50%) scale(1);transform-origin:52.6% 46.3%;
}
.warum-story .w-map,.warum-story .w-zone::before {
  background:transparent var(--city) center / 100% 100% no-repeat;
}
.warum-story .w-map {filter:saturate(1.14) contrast(1.04)}
.warum-story .w-stage {background:var(--scene-base)}
.warum-story .w-sky {position:absolute;inset:0;background:var(--intro-bg);opacity:1}
.warum-story .w-shade {position:absolute;inset:0;pointer-events:none;background:#060a0d;opacity:0}
.warum-story .w-mist {position:absolute;inset:0;pointer-events:none;opacity:1;
  background:linear-gradient(180deg,var(--intro-bg) 0%,var(--intro-bg) 9%,var(--fade-start) 23%,var(--fade-end) 40%,transparent 56%);}
.warum-story .w-zone {background:transparent;appearance:none;box-shadow:none}
.warum-story .w-zone::before {content:"";position:absolute;left:var(--tile-x);top:var(--tile-y);
  width:var(--mw);height:var(--mh);pointer-events:none;
  background-size:var(--image-w) var(--image-h);background-position:var(--mx) var(--my);
  mask:var(--mask) center / 100% 100% no-repeat;
  filter:saturate(.18) brightness(.75) contrast(1.04);transition:filter .45s ease;}
.warum-story .w-objects {pointer-events:none}
.warum-story .w-zone {position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;border-radius:0;
  opacity:0;cursor:pointer;pointer-events:none;}
.warum-story .w-zone[data-zone="firma"] {opacity:var(--company)}
.warum-story .w-hit {position:absolute;pointer-events:none}
.warum-story .w-zone:enabled .w-hit {pointer-events:auto}
.warum-story .w-zone.is-active::before,.warum-story .w-zone.is-zooming::before,.warum-story .w-zone:focus-visible::before {filter:saturate(1.16) brightness(1.08) contrast(1.04)}
.warum-story .w-board {position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:0;
  background:var(--intro-bg)}
.warum-story .w-lobby {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:max(100cqw,177.74cqh);aspect-ratio:2442/1374;background:var(--lobby) center/100% 100% no-repeat}
.warum-story .w-directory {position:absolute;left:23.15%;top:14.15%;width:53.4%;height:56.9%;
  padding:1.1% 1.5%;box-sizing:border-box;display:flex;flex-direction:column;color:var(--board-ink)}
.warum-story .w-directory strong {font-weight:400;line-height:1.2;font-size:clamp(13px,2.15cqw,44px)}
.warum-story .w-floorplan {flex:1;position:relative;background:var(--floorplan) center/contain no-repeat}
.warum-story .w-room-grid::before {content:"";position:absolute;inset:0;pointer-events:none;
  background:var(--floorplan) center/100% 100% no-repeat;filter:var(--label-filter);
  mask-image:linear-gradient(to right,#000 32%,transparent 32%),
    radial-gradient(ellipse 1.1% 2.1% at 8% 7.76%,#000 92%,transparent),
    radial-gradient(ellipse 1.1% 2.1% at 8% 23.62%,#000 92%,transparent),
    radial-gradient(ellipse 1.1% 2.1% at 8% 39.48%,#000 92%,transparent),
    radial-gradient(ellipse 1.1% 2.1% at 8% 55.34%,#000 92%,transparent),
    radial-gradient(ellipse 1.1% 2.1% at 8% 71.21%,#000 92%,transparent),
    radial-gradient(ellipse 1.1% 2.1% at 8% 87.07%,#000 92%,transparent);
  mask-composite:subtract,add,add,add,add,add,add;}
.warum-story .w-board::after {content:"";position:absolute;inset:70% 0 0;background:linear-gradient(transparent,#0b1118c9)}
.warum-story .w-copy {--ov-ink:currentColor;position:absolute;pointer-events:none;z-index:2;left:15%;top:clamp(88px,13cqh,145px);color:var(--intro-ink)}
.warum-story[data-step="firma"] .w-copy {left:4.4%;top:max(14%,76px);color:white}
.warum-story[data-step="tafel"] .w-copy {left:9%;top:auto;bottom:6%;color:white}
.warum-story[data-step="orte"] .w-copy {left:50%;top:50%;width:max-content;max-width:94%;translate:-50% -50%;scale:.85;transform-origin:center;color:white}
@media(max-aspect-ratio:1/1){.warum-story[data-step="orte"] .w-copy{translate:none;width:auto}}
.warum-story .w-next {position:absolute;z-index:3;bottom:10%;left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:8px;
  color:white;background:none;border:0;padding:8px;cursor:pointer;font-family:inherit;}
.warum-story .w-next b {font:700 clamp(10px,.9cqw,15px)/1.2 "Open Sans",sans-serif;text-transform:uppercase}
.warum-story[data-step="tafel"] .w-next {left:82%;bottom:8%}
.warum-story[data-step="orte"] .w-next {display:none}
@media(max-aspect-ratio:1/1){
  .warum-story .w-stage {--world:118cqw}
  .warum-story .w-map,.warum-story .w-objects {top:52%}
  .warum-story .w-copy,.warum-story[data-step="firma"] .w-copy,.warum-story[data-step="orte"] .w-copy {left:6%;right:4%;top:max(88px,12cqh)}
  .warum-story .w-lobby {width:172cqw}.warum-story .w-board::after {inset:69% 0 0}
  .warum-story[data-step="tafel"] .w-copy {bottom:22%;left:6%}
  .warum-story[data-step="tafel"] .w-next {left:50%}
}
@media(prefers-reduced-motion:reduce){.warum-story .w-zone::before {transition:none}.warum-story .w-map,.warum-story .w-objects {transform:translate(-50%,-50%)}.warum-story .w-board {transform:none}}

@media(max-aspect-ratio:1/1){
  .warum-story .w-next,.warum-story[data-step="tafel"] .w-next {bottom:max(15%,92px)}
  .warum-story .w-interact,.warum-story[data-step="orte"] .w-interact {bottom:max(8.5%,64px)}
  .warum-story[data-step="tafel"] .w-copy {bottom:25%}
  .warum-story .w-board::after {display:none}
  html:not([data-theme="dark"]) .warum-story:is([data-step="intro"],[data-step="tafel"]) .w-next,
  html:not([data-theme="dark"]) .warum-story[data-step="tafel"] .w-copy {color:var(--tri-action-ink,#252a2e);text-shadow:none;--accent:var(--tricoma-green)}
}


.warum-story.is-onscreen :is(.w-map,.w-objects) {will-change:transform}
.warum-story.is-onscreen[data-step="firma"] [data-zone="firma"]::before {will-change:filter}
/* The compact header sits over a moving city. Tint its surface once instead
   of sampling the changing map for a backdrop blur on every scroll frame. */
@media(min-width:1201px) {
  body#page_1760 #tri_header .tri-site-bar {will-change:transform}
  body#page_1760 #tri_header .tri-site-bar::before,
  body#page_1760 #tri_header .tri-wave-glass,
  body#page_1760 #tri_header .tri-site-search::before,
  body#page_1760 #tri_header #website-navigation > li > a::before,
  body#page_1760 .tri-theme-toggle::before {
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
  body:has(#tri_container > [data-module="warum"] > .warum-story) #tri_header.is-docked:not(.over-dark) .tri-site-bar::before {background-color:rgb(237 242 245 / .9)}
  body:has(#tri_container > [data-module="warum"] > .warum-story) #tri_header.is-docked.over-dark .tri-site-bar::before {background-color:rgb(43 49 57 / .9)}
}

.warum-story[data-city-ready] .w-map {background:none;filter:none}
.warum-story .w-city-world {position:absolute;left:0;top:0;width:1000px;height:562px;transform-origin:0 0;pointer-events:none}
.w-city-world [data-part],.w-city-world img,.w-city-world canvas {position:absolute;display:block;max-width:none;pointer-events:none}
.w-city-world [data-part] {inset:0}
.w-city-world [data-part="grund"] {width:100%;height:100%}
.w-city-world [hidden] {display:none}
.w-city-world [data-part="verkehr"] canvas {left:0;top:0;width:60px;height:38px}
.warum-story[data-city-ready] .w-zone::before {background:var(--object-image) center/100% 100% no-repeat;mask:none}
.warum-story .w-guide,.warum-story .w-guide-surface {position:absolute;z-index:2;pointer-events:none}
.warum-story .w-guide {width:clamp(226.8px,32.4cqw,567px);aspect-ratio:1;transform:translate(-50%,-50%);opacity:0}
.warum-story[data-step="intro"] .w-guide {width:clamp(306.18px,43.74cqw,765.45px)}
.warum-story .w-guide img,.warum-story .w-guide-surface {inset:0;width:100%;height:100%}
.warum-story .w-guide img {position:absolute;object-fit:contain}
.warum-story .w-guide [hidden],.warum-story .w-guide-surface[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){
  .warum-story .w-guide {animation:w-guide-hover 4.8s ease-in-out infinite}
  @keyframes w-guide-hover {50%{transform:translate(-50%,calc(-50% - 5px))}}
}

/* Diffuse only the street detail directly behind the face and shoulders. */
.warum-story .w-guide::before {
  content:'';position:absolute;inset:0;pointer-events:none;
  background:rgb(235 242 227 / .56);
  -webkit-backdrop-filter:blur(10px) saturate(.62);backdrop-filter:blur(10px) saturate(.62);
  mask-image:radial-gradient(ellipse 17% 25% at 50% 44%,black 69%,transparent),
             radial-gradient(ellipse 13% 17% at 50% 59%,black 58%,transparent),
             radial-gradient(ellipse 26% 10% at 50% 69%,black 52%,transparent);
}
html[data-theme=dark] .warum-story .w-guide::before {background:rgb(13 27 22 / .58)}

.warum-story .w-floorplan {container-type:size}
.warum-story .w-floorplan::after,.warum-story .w-board::after {pointer-events:none}
.w-room-grid {position:absolute;width:min(100cqw,196.2069cqh);aspect-ratio:1138/580;left:50%;top:50%;transform:translate(-50%,-50%)}
.w-room-row::before {content:"";position:absolute;inset:var(--row-y) 0 auto;height:14.36692%;background:var(--row-color);opacity:0;border-radius:5px;transition:opacity .18s}
.w-room-row:has(.w-room:is(:hover,:focus-visible,.is-room-active))::before {opacity:.1}
html[data-theme=dark] .w-room-row:has(.w-room:is(:hover,:focus-visible,.is-room-active))::before {opacity:.12}
.warum-story .w-room {position:absolute;display:grid;place-items:center;padding:0;margin:0;border:0;min-height:0;min-width:0;background:transparent!important;box-shadow:none!important;border-radius:4px;color:white;cursor:pointer;pointer-events:none}
.warum-story[data-step="tafel"] .w-room {pointer-events:auto}
.w-room>span {position:absolute;background:var(--raumakzent);mask:var(--floorplan) var(--motiv-position)/var(--motiv-groesse) no-repeat;opacity:0;transition:opacity .18s;pointer-events:none}
.w-room>svg {position:relative;display:block;width:36%;height:auto;aspect-ratio:1;opacity:0;transition:opacity .18s;pointer-events:none}
.w-room:is(:hover,:focus-visible,.is-room-active)>span {opacity:.58}
.w-room:is(:hover,:focus-visible,.is-room-active)>svg {opacity:1}
.w-room-name {position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding:.24em .6em;background:#252a2e;color:#fff;font:600 clamp(9px,.8vw,14px)/1.3 "Open Sans",sans-serif;border-radius:4px;white-space:nowrap;visibility:hidden;pointer-events:none}
.w-room:is(:hover,:focus-visible,.is-room-active){z-index:2}
.w-room:is(:hover,:focus-visible,.is-room-active) .w-room-name {visibility:visible;transition:visibility 0s .18s}
@media(prefers-reduced-motion:reduce){.w-room>span,.w-room>svg,.w-room-row::before{transition:none}}

.warum-story .w-guide::before {transition:opacity .2s ease-out}
.warum-story .w-guide:is(.is-scattering,.is-brushed)::before {visibility:hidden;opacity:0;transition:none}

.warum-story .w-stage::before {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:var(--scene-base);opacity:var(--camera-cover,0)}
.warum-story .w-copy,.warum-story .w-next {transition:opacity .18s ease}
.warum-story[data-travel] :is(.w-map,.w-objects){transform-origin:50.323% 54.034%}
.warum-story[data-travel] :is(.w-copy,.w-next){opacity:0;pointer-events:none}

/* Stop the coastal highlight at the curb, before the circular traffic lane. */
.warum-story[data-city-ready] [data-zone="strand"]::before {clip-path:polygon(0.00% 0.00%,100.00% 0.00%,100.00% 100.00%,97.49% 97.03%,95.82% 96.10%,90.69% 93.68%,84.52% 90.71%,78.77% 87.92%,73.43% 85.69%,68.10% 83.09%,62.97% 80.86%,58.37% 78.25%,53.35% 76.02%,49.90% 75.09%,46.97% 74.91%,44.14% 74.16%,41.84% 73.23%,39.85% 71.56%,38.28% 69.33%,37.34% 67.10%,36.61% 64.87%,35.88% 62.45%,34.83% 60.22%,33.37% 58.36%,31.69% 56.51%,29.50% 54.83%,26.88% 52.42%,24.79% 50.00%,23.33% 47.77%,22.28% 45.35%,21.44% 42.38%,20.40% 38.85%,18.62% 35.69%,15.17% 32.34%,11.72% 29.18%,0.00% 16.73%)}

/* Keep the extra daylight behind the intro lettering and feather it before the beach. */
html:not([data-theme="dark"]) .warum-story[data-step="intro"] .w-copy::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:10% -4% -24% -4%;
  background:linear-gradient(to bottom,transparent,#fff9 30%,#fffffff0 56%,#ffffffe0 72%,transparent);
  mask-image:linear-gradient(to right,transparent,#000 12%,#000 91%,transparent);
}

/* The static first frame uses the same transparent solar park as the traffic scene. */
.warum-story:not([data-city-ready]) [data-zone="energie"]::before {background:url("stadtverkehr/ladepark-tag.webp") center/100% 100% no-repeat;mask:none}
html[data-theme="dark"] .warum-story:not([data-city-ready]) [data-zone="energie"]::before {background-image:url("stadtverkehr/ladepark-nacht.webp")}
