/* ==========================================================================
   BoligAV forside v5 (25.10.2026) – hero (Nivo-slider) + tekstbjælke
   Lægges i /images/boligav/ccs/ og linkes øverst i forsidens indhold:
   <link href="/images/boligav/ccs/boligav-forside-v5.css" rel="stylesheet" />
   Rører kun section.hero, section.teasers og .bav-strip.
   Ny udgave = nyt filnavn (-v2), da serveren ikke sender cache-regler.
   ========================================================================== */

/* --- Hero: fuld bredde, mørkt lag, guld hårlinje -------------------------- */
section.hero{position:relative;background:#0f0f0e;overflow:hidden;box-shadow:inset 0 -1px 0 rgba(247,201,2,.35);width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
section.hero .slider-align{text-align:left!important}
section.hero .slider-wrapper{margin:0;padding:0;max-width:none}
section.hero .nivoSlider,section.hero .slider-wrapper:hover .nivoSlider{opacity:1!important}
section.hero .nivoSlider{position:relative;z-index:1;overflow:hidden;background:#0f0f0e;min-height:560px;max-height:720px;height:44vw!important;padding-bottom:0!important;margin-bottom:0!important;box-shadow:none}
section.hero .nivoSlider .nivo-main-image{width:100%!important;height:100%!important;left:0!important;top:0!important;transform:none!important;object-fit:cover;object-position:center;display:block;animation:bav-kb 25s cubic-bezier(.2,.7,.2,1) forwards;transform-origin:center}
section.hero .nivoSlider .nivo-slice img,section.hero .nivoSlider .nivo-box img{width:100%!important;height:100%!important;left:0!important;top:0!important;transform:none!important;object-fit:cover}
@keyframes bav-kb{from{transform:scale(1)}to{transform:scale(1.05)}}

/* Mørkt lag: tungt til venstre og i bunden */
section.hero .nivoSlider:after{content:"";position:absolute;inset:0;z-index:8;pointer-events:none;background:
  linear-gradient(90deg,rgba(15,15,14,.95) 0%,rgba(15,15,14,.86) 30%,rgba(15,15,14,.55) 50%,rgba(15,15,14,.2) 72%,rgba(15,15,14,.08) 100%),
  linear-gradient(180deg,rgba(15,15,14,.1) 0%,rgba(15,15,14,0) 30%,rgba(15,15,14,0) 55%,rgba(15,15,14,.85) 100%)}

/* Temaets egne prikker, pile og caption: væk */
section.hero .nivo-controlNav,section.hero .nivo-directionNav,section.hero .nivo-caption,section.hero #nivo-full-height{display:none!important}

/* Hele billedet er et link; det ligger under laget med tekst */
section.hero .nivo-imageLink{z-index:5!important}

/* --- Tekstlaget pr. slide (temaets .nivo-dynamic-text) ----------------------- */
section.hero .nivo-dynamic-text{position:absolute!important;inset:0!important;z-index:20!important;width:100%;height:100%;pointer-events:none;background:none!important}
section.hero .nivo-dynamic-text .nivo-dynamic-text-inner-content{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;height:100%;max-width:1280px;margin:0 auto;padding:64px 64px 112px;box-sizing:border-box;text-align:left}
section.hero .nivo-dynamic-text .nivo-dynamic-text-inner-content>div{width:100%;max-width:none;float:none;padding:0;margin:0;text-align:left;position:relative}

/* Eyebrow: teksten kommer fra data-eyebrow på bjælkens link (scriptet kopierer den) */
section.hero .nivo-dynamic-text .nivo-dynamic-text-inner-content-left[data-eyebrow]:before{content:attr(data-eyebrow);display:block;font:700 11px/1 Lato,Helvetica,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#f7c902;margin-bottom:14px;padding-left:38px}
section.hero .nivo-dynamic-text .nivo-dynamic-text-inner-content-left[data-eyebrow]:after{content:"";position:absolute;left:0;top:5px;width:28px;height:1px;background:#f7c902}

section.hero .nivo-dynamic-text .nivo-dynamic-text-header{font:900 52px/1.05 Lato,Helvetica,Arial,sans-serif;letter-spacing:-.015em;color:#fff;text-transform:none!important;text-shadow:none;max-width:12ch;margin:0 0 12px;padding:0!important;background:none;white-space:normal}
section.hero .nivo-dynamic-text .nivo-dynamic-text-header em{font-style:normal;color:#f7c902}
section.hero .nivo-dynamic-text .nivo-dynamic-text-teaser{font:300 17px/1.5 Lato,Helvetica,Arial,sans-serif;color:rgba(255,255,255,.78);max-width:44ch;margin:0 0 28px;padding:0!important;text-shadow:none;background:none;display:block!important}
section.hero .nivo-dynamic-text .nivo-dynamic-text-link,section.hero .nivo-dynamic-text .nivo-dynamic-text-link:hover{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 22px;border-radius:10px;border:0;background:linear-gradient(180deg,#fbd535,#f5c700);color:#1a1a1a;font:700 13px/1 Lato,Helvetica,Arial,sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 6px 16px rgba(247,201,2,.25);text-transform:none;margin:0;min-width:200px;pointer-events:auto;transition:transform .16s cubic-bezier(.2,.7,.2,1)}
section.hero .nivo-dynamic-text .nivo-dynamic-text-link:after{content:" →";margin-left:6px}
section.hero .nivo-dynamic-text .nivo-dynamic-text-link:active{transform:translateY(1px)}

/* Indløb: kun på laget, der er aktivt (.bav-in sættes af scriptet i tidySenseTeaser1).
   Uden scriptet vises teksten bare med det samme – aldrig usynlig. */
section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-header,section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-teaser,section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-link{animation:bav-rise .5s cubic-bezier(.2,.7,.2,1) both}
section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-header{animation-delay:.2s}
section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-teaser{animation-delay:.28s}
section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-link{animation-delay:.36s}
@keyframes bav-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* --- Tekstbjælken (HTML'en ligger i tidySenseTeaser1) ------------------------- */
.bav-strip{position:relative;z-index:20;margin:-56px auto 0;max-width:1280px;padding:0 24px;box-sizing:border-box;font-family:Lato,Helvetica,Arial,sans-serif}
.bav-strip-in{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:radial-gradient(120% 160% at 0% 0%,#2a2a27,#171716 48%,#0f0f0e);border-radius:14px;box-shadow:0 2px 4px rgba(26,26,20,.06),0 18px 40px rgba(26,26,20,.14),inset 0 1px 0 rgba(247,201,2,.35);overflow:hidden}
.bav-strip a{position:relative;display:flex;align-items:center;gap:16px;padding:22px 26px;color:#fff;text-decoration:none;border-left:1px solid rgba(255,255,255,.1);transition:background .16s}
.bav-strip a:first-child{border-left:0}
.bav-strip a:hover,.bav-strip a:focus{background:rgba(255,255,255,.05);color:#fff;text-decoration:none;outline:0}
.bav-strip a:focus-visible{box-shadow:inset 0 0 0 2px #f7c902}
.bav-strip .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.bav-strip .ey{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#f7c902;display:flex;align-items:center;gap:8px}
.bav-strip .ey:before{content:"";width:18px;height:1px;background:#f7c902}
.bav-strip .ti{font-size:18px;font-weight:700;line-height:1.2;color:#fff;margin:0}
.bav-strip .ar{width:36px;height:36px;border-radius:50%;border:1px solid rgba(247,201,2,.45);display:flex;align-items:center;justify-content:center;color:#f7c902;flex:none;transition:background .16s,color .16s}
.bav-strip a:hover .ar,.bav-strip a.on .ar{background:#f7c902;color:#1a1a1a}
.bav-strip a.on:after{content:"";position:absolute;left:26px;right:26px;bottom:0;height:1px;background:#f7c902;opacity:.9}
.bav-strip .sh{display:none}

/* --- Udvalgte produkter: luft efter bjælken og eyebrow'en -------------------- */
body.webshop-frontpage section.frontpage-products{padding-top:56px}
body.webshop-frontpage section.frontpage-products .heading-line{margin:0 0 50px!important}
body.webshop-frontpage section.frontpage-products .heading-line:before{content:"Kompromisløs kvalitet til enhver bolig"!important}

/* --- Mobil ------------------------------------------------------------------ */
@media (max-width:767px){
  section.hero .nivoSlider{height:480px!important;min-height:0;max-height:none}
  section.hero .nivoSlider:after{background:linear-gradient(180deg,rgba(15,15,14,.1) 0%,rgba(15,15,14,.45) 40%,rgba(15,15,14,.93) 100%)}
  section.hero .nivo-dynamic-text .nivo-dynamic-text-inner-content{padding:24px 16px 64px}
  section.hero .nivo-dynamic-text .nivo-dynamic-text-header{font-size:32px!important;line-height:1.08!important;max-width:none;margin:0 0 10px}
  section.hero .nivo-dynamic-text .nivo-dynamic-text-teaser{font-size:14.5px!important;margin:0 0 20px;color:rgba(255,255,255,.82)}
  section.hero .nivo-dynamic-text .nivo-dynamic-text-link{width:100%;height:48px}
  .bav-strip{margin-top:-24px;padding:0 16px}
  .bav-strip-in{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;border-radius:12px}
  .bav-strip-in::-webkit-scrollbar{display:none}
  .bav-strip a{flex:1 0 auto;height:52px;padding:0 20px;justify-content:center;scroll-snap-align:start}
  .bav-strip .ey,.bav-strip .ar,.bav-strip .ti{display:none}
  .bav-strip .sh{display:block;font-size:13px;font-weight:700;color:rgba(255,255,255,.7);white-space:nowrap}
  .bav-strip a.on .sh{color:#fff}
  .bav-strip a.on:after{left:14px;right:14px;height:2px}
  body.webshop-frontpage section.frontpage-products{padding-top:36px}
  body.webshop-frontpage section.frontpage-products .heading-line{margin:0 0 30px!important}
}

@media (prefers-reduced-motion:reduce){
  section.hero .nivoSlider .nivo-main-image{animation:none}
  section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-header,section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-teaser,section.hero .nivo-dynamic-text.bav-in .nivo-dynamic-text-link{animation:none}
}
