/* Demo2: The window shutters use pixel-aligned crops from the architectural
   photograph. They are not independent tiles floating over the picture. */
:root{--facade-frame:#191c1c;--facade-glow:#f3bc6e}
.demo2{background:#071a21;height:100dvh;min-height:420px;overflow:hidden}
.demo2 .ambient-wall{position:absolute;inset:-28px;background:linear-gradient(#07182291,#061a20ae),url('heise-fassade-demo2-desktop.webp') center/cover no-repeat;filter:blur(25px) saturate(.8);transform:scale(1.06);pointer-events:none}
.demo2 .architecture-stage{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,177.58dvh);aspect-ratio:1671/941;max-height:100dvh;isolation:isolate}
.demo2 .architecture-picture,.demo2 .architecture-picture img{display:block;width:100%;height:100%}
.demo2 .architecture-picture .backdrop{position:static;object-fit:fill;object-position:center;z-index:auto;max-width:none}
.demo2 .doors{position:absolute;inset:12.6% 6.15% 11.2% 6.45%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:23.5fr 26fr 25.2fr 25.3fr;gap:0;pointer-events:auto}
.demo2 .door{order:var(--order-desktop);position:relative;min-width:0;min-height:0;border:0;background:transparent;perspective:900px;transform:none!important;filter:none!important;cursor:pointer;padding:0;outline-offset:-5px;overflow:visible}
.demo2 .door:hover:not(:disabled){z-index:4}
.demo2 .door.opening{z-index:10}
.demo2 .door-glow{position:absolute;inset:5px 7px 7px 5px;background:radial-gradient(circle at 50% 62%,#ffe4a8cc,#f3aa3b80 65%,transparent);opacity:0;filter:blur(5px);pointer-events:none;transition:opacity .28s}
.demo2 .door-reveal{position:absolute;inset:6px 8px 8px 7px;background:linear-gradient(115deg,#ffe9a335,transparent 38%,#eda63835);box-shadow:inset 0 0 20px #e9a74e43;opacity:0;transition:opacity .3s;pointer-events:none}
.demo2 .door-leaf{position:absolute;inset:5px 6px 6px 6px;border:0;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background-color:transparent;background-repeat:no-repeat;box-shadow:inset 0 0 0 1px #fae4a832;backface-visibility:hidden;transform-origin:1% 50%;transition:transform 650ms cubic-bezier(.16,.75,.3,1),filter .3s;overflow:hidden;filter:none}
.demo2 .door-leaf::before{content:"";position:absolute;inset:0;border:0;background:linear-gradient(145deg,#071a2058 0%,#091a2028 55%,#f0bc6330);box-shadow:none;pointer-events:none}
.demo2 .door-leaf::after{content:"";position:absolute;right:5px;top:50%;width:4px;height:15px;border-radius:4px;background:linear-gradient(#f5d79a,#a46c2c);box-shadow:0 0 4px #0008;transform:translateY(-50%);pointer-events:none}
.demo2 .door strong{position:relative;z-index:1;color:var(--surface,#fff4d6);font:normal clamp(25px,3.35vw,51px)/1 Georgia,serif;text-shadow:0 2px 2px #041719,0 4px 16px #000,0 0 16px #c58536a0;font-variant-numeric:lining-nums;line-height:1}
.demo2 .door small{position:relative;z-index:1;letter-spacing:.14em;font-size:clamp(8px,.78vw,11px);font-weight:800;color:#ffdfac;text-shadow:0 2px 4px #000b}
.demo2 .door:hover:not(:disabled) .door-leaf{transform:rotateY(-9deg);filter:brightness(1.13)}
.demo2 .door:hover:not(:disabled) .door-glow{opacity:.38}
.demo2 .door.visited .door-leaf{transform:rotateY(-19deg);filter:sepia(.23) saturate(1.08)}
.demo2 .door.visited .door-glow{opacity:.44}
.demo2 .door.visited .door-reveal{opacity:.65}
.demo2 .door.visited small{color:#ffe5ad}
.demo2 .door.opening .door-leaf,.demo2 .door.visited.opening .door-leaf{transform:rotateY(-102deg);filter:brightness(1.38)}
.demo2 .door.opening .door-glow{opacity:.95}
.demo2 .door.opening .door-reveal{opacity:1}
.demo2 .door:disabled{cursor:not-allowed;opacity:1}
.demo2 .door:disabled .door-leaf{filter:brightness(.77)}
.demo2 .door.christmas{z-index:1;transform:none!important}
.demo2 .door.christmas .door-leaf{border:0;box-shadow:inset 0 0 0 1px #ffd99d70,0 0 10px #dca65e43}
.demo2 .topbar{height:92px;background:linear-gradient(#061720ef 0,#06172099 55%,transparent);z-index:12}
.demo2 .topbar>img{filter:drop-shadow(0 2px 9px #0008)}
.demo2 .top-title{color:#f6e4bd;text-shadow:0 2px 10px #0008}
.demo2 .topbar nav button{background:#0f2c30d6;border:1px solid var(--accent,#e5c98d)}
.demo2 .bottom{z-index:12;background:linear-gradient(transparent,#061923f2 72%);color:#f3e5d0}
.demo2 .progress{font-size:clamp(18px,2vw,23px);text-shadow:0 1px 6px #0009}
.demo2.is-tiles .door-leaf::before{background:linear-gradient(145deg,color-mix(in srgb,var(--primary,#14372d) 43%,transparent),color-mix(in srgb,var(--accent,#e4c58a) 25%,transparent));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent,#e4c58a) 80%,transparent)}
.demo2.is-tiles .door strong{text-shadow:0 2px 2px #041719,0 4px 16px #000,0 0 17px var(--secondary,#823d43)}
.demo2 .overlay{z-index:30}
.demo2 .modal{border:1px solid #dbca9c;box-shadow:0 25px 90px #000b}
@media(max-width:1000px) and (orientation:portrait){
  .demo2 .ambient-wall{background-image:linear-gradient(#071822b0,#061a20be),url('heise-fassade-demo2-mobile.webp')}
  .demo2 .architecture-stage{width:min(100vw,62.55dvh);aspect-ratio:992/1586;max-height:100dvh}
  .demo2 .doors{inset:20.35% 7.15% 11.7% 6.8%;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr))}
  .demo2 .door{order:var(--order-mobile)}
  .demo2 .door strong{font-size:clamp(25px,4.6vw,42px)}
  .demo2 .door small{font-size:clamp(8px,.95vw,11px)}
}
@media(max-width:700px){
  .demo2 .topbar{height:75px;padding:8px 12px}
  .demo2 .topbar>img{width:clamp(136px,36vw,174px)}
  .demo2 .top-title{display:none}
  .demo2 .topbar nav button{font-size:12px}
  .demo2 .bottom{padding:18px 13px 12px;min-height:64px}
  .demo2 .progress{font-size:17px}
  .demo2 .door-leaf{inset:3px 5px 4px 5px}
  .demo2 .door-glow,.demo2 .door-reveal{inset:4px 5px 5px}
  .demo2 .door strong{font-size:clamp(21px,7.2vw,33px)}
  .demo2 .door small{font-size:8px;letter-spacing:0}
  .demo2 .door-leaf::after{right:3px;width:3px;height:11px}
}
@media(max-height:500px) and (orientation:landscape){
  .demo2 .topbar{height:45px;padding:3px 15px}
  .demo2 .topbar>img{width:120px;max-height:39px}
  .demo2 .top-title{display:none}
  .demo2 .topbar nav button{padding:6px 10px;font-size:11px}
  .demo2 .topbar nav button:first-child{height:32px;width:32px;font-size:15px}
  .demo2 .bottom{min-height:41px;padding:5px 15px 7px}
  .demo2 .bottom a{font-size:10px}
  .demo2 .door strong{font-size:clamp(21px,4vh,31px)}
  .demo2 .door small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.demo2 .door-leaf{transition:none}.demo2 .door.opening .door-leaf,.demo2 .door.visited.opening .door-leaf{transform:rotateY(-20deg)}}
