/* =========================================================
   DN SHINE — Hero (Future Automotive Care)
   Scoped under .dns-hero so nothing here leaks into / clashes
   with Bootstrap or the rest of the theme.
========================================================= */

.dns-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;

    font-family: Arial, Helvetica, sans-serif;
    color: #fff;

    background:
        radial-gradient(
            ellipse at 32% 52%,
            #26343d 0%,
            #141b21 30%,
            #080c10 65%,
            #020305 100%
        );
}

.dns-hero * {
    box-sizing: border-box;
}

/* =========================================================
   ATMOSPHERE
========================================================= */

.dns-hero__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    background:
        radial-gradient(
            ellipse at 35% 55%,
            rgba(0,170,255,.18),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 72% 70%,
            rgba(0,90,180,.08),
            transparent 35%
        );
}

/* =========================================================
   FUTURE GRID
========================================================= */

.dns-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;

    opacity: .23;

    background-image:
        linear-gradient(
            rgba(38,174,220,.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(38,174,220,.07) 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent 0%,
            black 40%,
            transparent 100%
        );

    transform:
        perspective(500px)
        rotateX(55deg)
        scale(1.5);

    transform-origin: center bottom;
}

/* =========================================================
   SCENE (car stage)
========================================================= */

.dns-hero__scene {
    position: absolute;
    z-index: 10;

    left: 0;
    top: 0;

    width: 60%;
    height: 100%;

    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --shift: 0px;
    perspective: 1600px;
}

/* =========================================================
   CINEMATIC LIGHT
========================================================= */

.dns-hero__light-beam {
    position: absolute;

    z-index: 20;

    left: 5%;
    top: 12%;

    width: 3px;
    height: 70%;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #20cfff,
            white,
            #20cfff,
            transparent
        );

    box-shadow:
        0 0 15px #00bfff,
        0 0 45px #008cff,
        0 0 100px #006cff;

    opacity: 0;

    pointer-events: none;

    animation:
        dnsHeroScan 8s ease-in-out infinite;
}

@keyframes dnsHeroScan {

    0% {
        transform: translateX(0);
        opacity: 0;
    }

    12% {
        opacity: .85;
    }

    55% {
        transform: translateX(var(--beam-travel, 760px));
        opacity: .9;
    }

    68% {
        opacity: 0;
    }

    100% {
        transform: translateX(var(--beam-travel, 760px));
        opacity: 0;
    }
}

/* =========================================================
   FUTURE HUD
========================================================= */

.dns-hero__hud {
    position: absolute;

    z-index: 40;

    left: 7%;
    bottom: 8%;

    width: 300px;

    padding: 18px 20px;

    background:
        linear-gradient(
            135deg,
            rgba(5,24,34,.72),
            rgba(3,8,12,.38)
        );

    border:
        1px solid rgba(54,211,255,.28);

    -webkit-backdrop-filter:
        blur(16px);
    backdrop-filter:
        blur(16px);

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.35);
}

.dns-hero__hud-title {
    margin-bottom: 15px;

    color: #48dcff;

    font-size: 8px;

    letter-spacing: .3em;
}

.dns-hero__metric {
    display: flex;
    justify-content: space-between;

    margin: 9px 0;

    font-size: 9px;

    color:
        rgba(255,255,255,.58);
}

.dns-hero__metric strong {
    color: #67e6ff;
    font-weight: 500;
}

/* =========================================================
   FLOATING LABELS
========================================================= */

.dns-hero__label {
    position: absolute;

    z-index: 40;

    padding: 8px 12px;

    color: #5fe2ff;

    background:
        rgba(0,18,28,.45);

    border:
        1px solid rgba(60,215,255,.28);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    font-size: 7px;

    letter-spacing: .25em;

    white-space: nowrap;

    opacity: .65;
}

.dns-hero__label--one {
    top: 19%;
    left: 42%;
}

.dns-hero__label--two {
    top: 68%;
    left: 50%;
}

.dns-hero__label--three {
    top: 32%;
    left: 19%;
}

/* =========================================================
   CONTENT
========================================================= */

.dns-hero__content {
    position: absolute;

    z-index: 80;

    right: 6%;
    top: 50%;

    width: 33%;

    transform: translateY(-45%);
}

.dns-hero__content h1 {
    margin: 0 0 18px;

    font-size:
        clamp(28px, 2.2vw, 39px);

    font-weight: 500;

    letter-spacing: -.03em;

    color: #fff;

    white-space: normal;
    overflow-wrap: break-word;
}

.dns-hero__content h2 {
    margin: 0 0 12px;

    font-size:
        clamp(21px, 1.7vw, 30px);

    font-weight: 500;

    letter-spacing: -.03em;

    white-space: normal;
    overflow-wrap: break-word;

    color: #fff;
}

.dns-hero__description {
    margin: 0;

    max-width: 620px;

    color:
        rgba(255,255,255,.88);

    font-size:
        clamp(14px, 1vw, 17px);

    line-height: 1.55;
}

.dns-hero__button {
    display: inline-flex;

    margin-top: 23px;

    padding: 16px 34px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #158ddd,
            #0769af
        );

    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    box-shadow:
        0 12px 40px
        rgba(0,130,220,.28);

    transition: .3s;
}

.dns-hero__button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 55px
        rgba(0,180,255,.45);

    color: white;
}

/* =========================================================
   BOTTOM
========================================================= */

.dns-hero__bottom {
    position: absolute;

    z-index: 90;

    left: 6%;
    right: 6%;
    bottom: 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.dns-hero__services {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;

    color: rgba(255,255,255,.42);

    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dns-hero__services span {
    display: inline-flex;
    align-items: center;
}

.dns-hero__services .is-new {
    color: rgba(255,255,255,.9);
}

.dns-hero__services .is-new i {
    font-style: normal;

    margin-left: 8px;
    padding: 2px 7px;

    border-radius: 99px;

    background: linear-gradient(180deg,#4fb2f0,#1170c9);
    color: #06131f;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
}

.dns-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: rgba(255,255,255,.55);

    font-size: 12px;
    letter-spacing: .01em;
    text-decoration: none;

    transition: color .2s;
}

.dns-hero__rating:hover { color: rgba(255,255,255,.85); }

.dns-hero__rating b {
    color: #fff;
    font-weight: 700;
}

.dns-hero__rating .stars {
    color: #f5b731;
    font-size: 13px;
    letter-spacing: .12em;
}

.dns-hero__services span::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin-right: 8px;

    border-radius: 50%;

    background: #3bdcff;

    box-shadow:
        0 0 12px #3bdcff;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:900px) {

    .dns-hero {
        height: auto;
        min-height: 900px;
    }

    .dns-hero__scene {
        position: relative;
        top: 0;
        width: 100%;
        height: 740px;
    }

    .dns-hero__content {
        position: relative;

        right: auto;
        top: auto;

        width: calc(100% - 50px);
        max-width: calc(100% - 50px);
        margin: 0 auto;
        box-sizing: border-box;

        padding: 40px 0 30px;

        transform: none;

        text-align: center;
    }

    .dns-hero__description {
        margin: 0 auto;
    }

    .dns-hero__button {
        margin-left: auto;
        margin-right: auto;
    }

    .dns-hero__label {
        font-size: 6px;
        padding: 6px 9px;
    }

    .dns-hero__label--one {
        top: 20%;
        left: 40%;
    }

    .dns-hero__label--two {
        top: 30%;
        left: 67%;
    }

    .dns-hero__label--three {
        top: 26%;
        left: 6%;
    }

    .dns-hero__hud {
        left: 50%;
        right: auto;
        bottom: 20px;
        transform: translateX(-50%);
        width: calc(100% - 50px);
        max-width: 300px;
        padding: 14px 16px;
    }

    .dns-hero__bottom {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        flex-direction: column;
        align-items: center;

        padding: 0 25px 40px;

        text-align: center;
    }

    .dns-hero__services {
        justify-content: center;
    }
}


/* ===================== FAHRZEUGBILD ===================== */

.dns-hero__car-wrap{
  position:absolute; left:46%; top:50%;
  width:min(86%, 860px);
  transform:translate(calc(-50% + var(--shift)), -50%)
            rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style:preserve-3d;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
  opacity:0;
}
.dns-hero__scene.is-ready .dns-hero__car-wrap{ animation:dnsHeroCarIn 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes dnsHeroCarIn{ from{opacity:0} to{opacity:1} }

/* Beide Bilder liegen exakt uebereinander. Die Schwebe-Animation sitzt
   auf dem gemeinsamen Wrapper, damit sie garantiert synchron laufen. */
.dns-hero__car-float{position:relative; animation:dnsHeroCarFloat 7s ease-in-out infinite}
.dns-hero__car-img{
  display:block; width:100%; height:auto;
  filter:drop-shadow(0 34px 60px rgba(0,0,0,.85))
         drop-shadow(0 0 70px rgba(0,140,255,.20));
}
.dns-hero__car-img--before{position:relative; z-index:2}
/* Das folierte Bild liegt deckungsgleich darueber und wird von links
   (Heck) nach rechts (Front) freigelegt — gesteuert von --pos. */
.dns-hero__car-img--after{
  position:absolute; inset:0; z-index:3;
  clip-path:var(--car-clip, inset(0 100% 0 0));
  /* eigene Compositor-Ebene, sonst rastert der Browser das Bild
     erst beim ersten Sichtbarwerden -> spuerbare Verzoegerung */
  will-change:clip-path;
  transform:translateZ(0);
  backface-visibility:hidden;
}

/* Beim Verlassen faehrt der Regler weich zurueck; waehrend der
   Mausbewegung gibt es bewusst KEINEN Uebergang, damit die Kante
   exakt am Zeiger klebt. */
.dns-hero__scene.no-anim .dns-hero__car-img--after{transition:none !important}
@keyframes dnsHeroCarFloat{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* Lichtstreifen wandert ueber die Karosserie. Die Maske ist dasselbe Bild,
   dadurch bleibt der Streifen exakt auf der Fahrzeugsilhouette. */
.dns-hero__car-sweep{
  position:absolute; inset:0; z-index:4; pointer-events:none;
  background:linear-gradient(104deg, transparent 36%,
    rgba(190,225,255,.50) 47%, rgba(255,255,255,.26) 52%, transparent 64%);
  background-size:260% 100%;
  -webkit-mask-image:var(--car-mask); mask-image:var(--car-mask);
  -webkit-mask-size:100% 100%; mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  mix-blend-mode:screen; opacity:.9;
  animation:dnsHeroCarSweep 7.5s ease-in-out 1.4s infinite;
}
@keyframes dnsHeroCarSweep{ 0%{background-position:150% 0} 60%,100%{background-position:-150% 0} }

.dns-hero__car-shadow{
  position:absolute; z-index:1; left:10%; right:10%; bottom:-1%; height:15%;
  background:radial-gradient(closest-side, rgba(0,0,0,.85), rgba(0,0,0,.32) 55%, transparent 78%);
  filter:blur(12px);
}

.dns-hero__model-note{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  z-index:40; display:grid; justify-items:center; gap:.5rem; text-align:center;
  transition:opacity .5s; pointer-events:none;
}
.dns-hero__model-note.is-off{ opacity:0 }
.dns-hero__model-note b{ font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; color:#8fa3b8; font-weight:600 }
.dns-hero__model-note span{ font-size:.8rem; color:#7d8b9c; max-width:34ch; line-height:1.5 }
.dns-hero__model-note.is-error b{ color:#ff9a9a }

@media (max-width:900px){ .dns-hero__car-wrap{ left:50%; width:min(92%, 560px) } }

@media (prefers-reduced-motion:reduce){
  .dns-hero__car-img, .dns-hero__car-sweep{ animation:none }
  .dns-hero__scene.is-ready .dns-hero__car-wrap{ opacity:1; animation:none }
  .dns-hero__car-img--after{transition:none}
}
