/* HB Photography – Intro & Bewegung (Demo). Ohne Bibliotheken. */

/* ---------- Intro beim ersten Besuch ---------- */
/* Deckt die Seite ab, bis hb-motion.js übernimmt. Fallback: verschwindet nach 4 s von selbst. */
html.hb-intro-pending body::before{content:"";position:fixed;inset:0;z-index:9998;background:#fff;animation:hb-cover-fallback .01s 4s forwards}
@keyframes hb-cover-fallback{to{opacity:0;visibility:hidden}}
html.hb-intro-running body::before{content:none}
html.hb-intro-running{overflow:hidden}

.hb-intro{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;pointer-events:auto;cursor:pointer}
@property --hb-r{syntax:'<length>';inherits:false;initial-value:0px}
.hb-intro__iris{position:absolute;inset:0;background:#fff;--hb-r:0px;-webkit-mask:radial-gradient(circle at 50% 50%,transparent var(--hb-r),#000 calc(var(--hb-r) + 1px));mask:radial-gradient(circle at 50% 50%,transparent var(--hb-r),#000 calc(var(--hb-r) + 1px))}
.hb-intro__stage{position:relative;display:grid;justify-items:center;gap:clamp(14px,2.4vh,26px);text-align:center;padding:0 24px}
.hb-intro__logo-wrap{position:relative;width:min(420px,72vw);aspect-ratio:1000/692;overflow:hidden}
.hb-intro__logo{display:block;width:100%;height:100%;opacity:0;filter:blur(14px);transform:scale(1.08);animation:hb-focus 1.1s cubic-bezier(.2,.7,.1,1) .15s forwards}
@keyframes hb-focus{60%{opacity:1}to{opacity:1;filter:blur(0);transform:scale(1)}}
/* Lichtreflex, der einmal über das Logo fährt */
.hb-intro__glint{position:absolute;inset:-10% -60%;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.95) 50%,transparent 58%);mix-blend-mode:screen;transform:translateX(-70%);animation:hb-glint 1s cubic-bezier(.5,0,.2,1) 1.05s forwards}
@keyframes hb-glint{to{transform:translateX(70%)}}
/* Funkeln am Diamanten im Logo */
.hb-intro__spark{position:absolute;left:37.5%;top:23%;width:18%;aspect-ratio:1;transform:translate(-50%,-50%) scale(0) rotate(0);opacity:0;background:radial-gradient(circle,rgba(255,255,255,1) 0 6%,rgba(201,169,110,.55) 7%,transparent 22%),conic-gradient(from 0deg,transparent 0 11%,rgba(201,169,110,.9) 12.5%,transparent 14% 36%,rgba(201,169,110,.9) 37.5%,transparent 39% 61%,rgba(201,169,110,.9) 62.5%,transparent 64% 86%,rgba(201,169,110,.9) 87.5%,transparent 89%);-webkit-mask:radial-gradient(circle,#000 0 30%,transparent 62%);mask:radial-gradient(circle,#000 0 30%,transparent 62%);animation:hb-spark .9s ease-out 1.2s forwards}
@keyframes hb-spark{35%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(25deg)}to{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(70deg)}}
.hb-intro__line{width:0;height:1px;background:#C9A96E;animation:hb-line .9s cubic-bezier(.6,0,.2,1) .9s forwards}
@keyframes hb-line{to{width:min(220px,40vw)}}
.hb-intro__tagline{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(22px,3.2vw,38px);line-height:1.15;color:#1F3B30;letter-spacing:.005em}
.hb-intro__tagline span{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em}
.hb-intro__tagline span>i{display:inline-block;font-style:normal;transform:translateY(110%);animation:hb-rise .8s cubic-bezier(.2,.7,.1,1) forwards}
.hb-intro__tagline em{font-style:italic}
@keyframes hb-rise{to{transform:none}}
.hb-intro__eyebrow{margin:0;font:600 11px/1 Arial,Helvetica,sans-serif;letter-spacing:.32em;text-transform:uppercase;color:#9b885f;opacity:0;animation:hb-fade .8s ease 1.5s forwards}
@keyframes hb-fade{to{opacity:1}}
.hb-intro__skip{position:absolute;right:clamp(16px,3vw,36px);bottom:clamp(16px,3vw,32px);border:0;background:none;padding:10px 4px;font:600 11px/1 Arial,Helvetica,sans-serif;letter-spacing:.24em;text-transform:uppercase;color:#1F3B30;opacity:.55;cursor:pointer;border-bottom:1px solid currentColor}
.hb-intro__skip:hover,.hb-intro__skip:focus-visible{opacity:1}
/* Ausblenden + Blende öffnet sich */
.hb-intro.is-leaving .hb-intro__stage{transition:opacity .45s ease,transform .7s cubic-bezier(.6,0,.2,1);opacity:0;transform:scale(.96)}
.hb-intro.is-leaving .hb-intro__skip{transition:opacity .3s;opacity:0}
.hb-intro.is-opening .hb-intro__iris{transition:--hb-r 1.1s cubic-bezier(.7,0,.15,1),opacity .4s ease .8s;--hb-r:75vmax;opacity:0}
.hb-intro.is-opening{pointer-events:none}

/* ---------- Hero-Auftritt ---------- */
.hb-motion .hero .seo-subline{overflow:hidden}
.hb-motion .hero .hb-line{display:block;overflow:hidden;padding-bottom:.06em}
.hb-motion .hero .hb-line>span{display:inline-block;transform:translateY(105%);transition:transform 1.1s cubic-bezier(.2,.7,.1,1)}
.hb-motion .hero-copy>*:not(.seo-subline){opacity:0;transform:translateY(18px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.1,1)}
/* Bild bleibt technisch sichtbar (gut für LCP), ein cremefarbener Vorhang gleitet weg */
.hb-motion .hero-photo{position:relative;overflow:hidden}
.hb-motion .hero-photo::after{content:"";position:absolute;inset:0;background:var(--cream,#F7F4EE);transform-origin:top;transition:transform 1.4s cubic-bezier(.7,0,.15,1)}
.hb-motion .hero-photo img{transform:scale(1.18);transition:transform 2.4s cubic-bezier(.2,.7,.1,1);will-change:transform}
.hb-motion.hb-hero-in .hero .hb-line>span{transform:none}
.hb-motion.hb-hero-in .hero-copy>*:not(.seo-subline){opacity:1;transform:none}
.hb-motion.hb-hero-in .hero-photo::after{transform:scaleY(0)}
.hb-motion.hb-hero-in .hero-photo img{transform:scale(1.02)}

/* ---------- Scroll-Enthüllungen ---------- */
.hb-motion [data-hb-reveal]{opacity:0;transform:translateY(34px);transition:opacity 1s ease var(--hb-delay,0s),transform 1.1s cubic-bezier(.2,.7,.1,1) var(--hb-delay,0s)}
.hb-motion [data-hb-reveal="image"]{opacity:1;transform:none;clip-path:inset(12% 6% 12% 6%);transition:clip-path 1.3s cubic-bezier(.7,0,.15,1) var(--hb-delay,0s)}
.hb-motion [data-hb-reveal="image"] img{transform:scale(1.15);transition:transform 1.8s cubic-bezier(.2,.7,.1,1) var(--hb-delay,0s)}
.hb-motion [data-hb-reveal].is-in{opacity:1;transform:none}
.hb-motion [data-hb-reveal="image"].is-in{clip-path:inset(0 0 0 0)}
.hb-motion [data-hb-reveal="image"].is-in img{transform:scale(1)}
/* Goldlinie unter den Überschriften-Labels */
.hb-motion .eyebrow{position:relative}
.hb-motion .eyebrow[data-hb-reveal]::after{content:"";display:block;width:56px;height:1px;margin-top:12px;background:#C9A96E;transform:scaleX(0);transform-origin:left;transition:transform 1.1s cubic-bezier(.6,0,.2,1) calc(var(--hb-delay,0s) + .25s)}
.hb-motion .eyebrow.is-in::after{transform:scaleX(1)}

/* ---------- Feine Interaktionen ---------- */
.hb-motion .price-cards article{transition:transform .6s cubic-bezier(.2,.7,.1,1),box-shadow .6s ease}
.hb-motion .price-cards article:hover{transform:translateY(-8px);box-shadow:0 26px 50px -30px rgba(31,59,48,.45)}
.hb-motion .service-image img{transition:transform 1.2s cubic-bezier(.2,.7,.1,1)}
.hb-motion .price-cards article:hover .service-image img{transform:scale(1.05)}
.hb-motion .button,.hb-motion .header-contact{position:relative;overflow:hidden;isolation:isolate}
.hb-motion .button::after,.hb-motion .header-contact::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,transparent 35%,rgba(201,169,110,.45) 50%,transparent 65%);transform:translateX(-120%);transition:transform .9s cubic-bezier(.2,.7,.1,1)}
.hb-motion .button:hover::after,.hb-motion .header-contact:hover::after{transform:translateX(120%)}
/* Header wird beim Scrollen kompakt und leicht transparent */
.hb-motion header{transition:background-color .5s ease,box-shadow .5s ease,backdrop-filter .5s ease}
.hb-motion.hb-scrolled header{background:rgba(247,244,238,.86);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(201,169,110,.35)}
/* Kundenliste als ruhiges Laufband */
.hb-motion .client-list.hb-marquee{display:flex;flex-wrap:nowrap;overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.hb-motion .hb-marquee__track{display:flex;flex:none;gap:clamp(36px,6vw,90px);padding-right:clamp(36px,6vw,90px);animation:hb-marquee 38s linear infinite}
.hb-motion .hb-marquee:hover .hb-marquee__track{animation-play-state:paused}
.hb-motion .hb-marquee__track a{flex:none;white-space:nowrap}
@keyframes hb-marquee{to{transform:translateX(-100%)}}

@media (prefers-reduced-motion:reduce){
  html.hb-intro-pending body::before{content:none}
  .hb-intro{display:none}
  .hb-motion *,.hb-motion *::before,.hb-motion *::after{transition:none!important;animation:none!important}
  .hb-motion [data-hb-reveal],.hb-motion .hero-copy>*,.hb-motion .hero .hb-line>span{opacity:1!important;transform:none!important;clip-path:none!important}
  .hb-motion .hero-photo img{transform:none!important}.hb-motion .hero-photo::after{content:none!important}
}
