/* Webblickfang: Szenen der Seite Kontakt (Grundlage: webblickfang-kontakt-v1.html).
   Haken: wbs-kontakt-hero, wbs-kontakt-form, wbs-kontakt-step, wbs-kontakt-chip, wbs-kontakt-danach, wbs-kontakt-ende.
   Alles, was die Seite "umbaut" (Schritte ausblenden), gilt erst, wenn kontakt.js die Führung aktiviert hat (.is-wz).
   Ohne Skript und im Editor stehen alle drei Schritte untereinander und das Formular bleibt vollständig bedienbar. */

/* ===== HERO ===== */
.wb-hero.wbs-kontakt-hero{min-height:min(100svh,960px);display:flex;align-items:center;overflow:hidden}
.wb-hero.wbs-kontakt-hero>.wb-wrap{width:100%}
.wb-hero.wbs-kontakt-hero::before{left:74%;top:46%;width:min(1000px,100%);height:auto;aspect-ratio:1;transform:translate(-50%,-50%)}
.wbs-kontakt-hero .wb-h1>span{display:block}
.wbs-kontakt-hero .wb-lead b{color:#F5F6F4;font-weight:500}
.wbs-kontakt-hero .wb-stack a{color:inherit;text-decoration:none}
.wb-js .wbs-kontakt-hero .wb-h1{animation:none}
.wb-js .wbs-kontakt-hero .wb-h1>span:nth-child(1){animation:wb-up 1.1s var(--wb-ease) .1s both}
.wb-js .wbs-kontakt-hero .wb-h1>span:nth-child(2){animation:wb-up 1.1s var(--wb-ease) .28s both}
.wb-js .wbs-kontakt-hero .wb-lead{animation-delay:.45s}
.wb-js .wbs-kontakt-hero .wb-stack>div:nth-of-type(1){animation:wb-up 1.1s var(--wb-ease) .58s both}
.wb-js .wbs-kontakt-hero .wb-stack>div:nth-of-type(2){animation:wb-up 1.1s var(--wb-ease) .7s both}
.wb-js .wbs-kontakt-form{animation:wb-up 1.4s var(--wb-ease) .4s both}
@media (max-width:1024px){.wb-hero.wbs-kontakt-hero{min-height:0}}

/* ===== FORMULAR IN SCHRITTEN (native Elementor-Felder) ===== */
.wbs-kontakt-form{scroll-margin-top:110px}
.wbs-kontakt-form form{width:100%}
/* Fortschritt */
.wbs-kontakt-form form>div:first-child>div::after{content:"";display:block;height:100%;width:var(--wp,33.3%);border-radius:9px;background:var(--wb-grad);transition:width .7s var(--wb-ease)}
.wbs-kontakt-form:not(.is-wz) form>div:first-child{display:none}
/* Schritte: erst mit aktiver Führung wird immer nur einer gezeigt */
.wbs-kontakt-form.is-wz .wbs-kontakt-step{display:none}
.wbs-kontakt-form.is-wz .wbs-kontakt-step.is-on{display:grid;animation:wb-up .7s var(--wb-ease) both}
.wbs-kontakt-form:not(.is-wz) .wbs-kontakt-step+.wbs-kontakt-step{margin-top:14px;padding-top:26px;border-top:1px solid rgba(255,255,255,.08)}
.wbs-kontakt-form:not(.is-wz) button:not([type=submit]){display:none}
.wbs-kontakt-form [hidden]{display:none!important}
.wbs-kontakt-form button{font-family:Inter,"Helvetica Neue",Arial,sans-serif}
.wbs-kontakt-form .wb-btn{box-shadow:0 12px 26px -12px rgba(80,190,160,.75);transition:transform .5s var(--wb-ease),box-shadow .5s var(--wb-ease)}
.wbs-kontakt-form .wb-btn:hover{transform:translateY(-2px);box-shadow:0 18px 34px -12px rgba(80,190,160,.85)}
.wbs-kontakt-form input.wb-input,.wbs-kontakt-form textarea.wb-input{transition:border-color .3s,box-shadow .3s}
.wbs-kontakt-form input.wb-input:focus,.wbs-kontakt-form textarea.wb-input:focus{outline:none;box-shadow:0 0 0 4px rgba(109,214,204,.12)}
.wbs-kontakt-form textarea.wb-input{resize:vertical}
@media (max-width:520px){.wbs-kontakt-step>.wb-field{grid-column:1/-1}}

/* Auswahl als Pille: das native Kästchen bzw. Optionsfeld liegt unsichtbar über der ganzen Fläche */
.elementor .wbs-kontakt-chip{position:relative;display:inline-flex;align-items:center;width:auto;min-width:0;padding:.85em 1.2em;font-size:.92rem;border-radius:99px;background:#121212;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13);cursor:pointer;transition:background .3s,box-shadow .3s}
.elementor .wbs-kontakt-chip::before{content:none}
.elementor .wbs-kontakt-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:99px;background:none;opacity:0;cursor:pointer;z-index:1;appearance:none;-webkit-appearance:none}
.elementor .wbs-kontakt-chip label{font:400 1em/1.65 Inter,"Helvetica Neue",Arial,sans-serif;color:#cfd0cd;margin:0;transition:color .3s;pointer-events:none;white-space:nowrap}
.elementor .wbs-kontakt-chip:hover{box-shadow:inset 0 0 0 1px #6DD6CC}
.elementor .wbs-kontakt-chip:has(input:checked){background:var(--wb-grad);box-shadow:none}
.elementor .wbs-kontakt-chip:has(input:checked) label{color:#1D1E1C;font-weight:500}
.elementor .wbs-kontakt-chip:has(input:focus-visible){outline:2px solid #6DD6CC;outline-offset:3px}
@media (max-width:420px){.elementor .wbs-kontakt-chip label{white-space:normal}}

/* ===== ABLAUF NACH DER ANFRAGE: Linie füllt sich beim Scrollen ===== */
.wbs-kontakt-danach{background:linear-gradient(rgba(24,24,24,.16),rgba(24,24,24,.16)) 0 19px/100% 1px no-repeat}
.elementor .wbs-kontakt-danach::before{content:none}
.wbs-kontakt-danach::after{content:"";position:absolute;left:0;right:0;top:19px;height:1px;background:var(--wb-grad);transform-origin:left;transform:scaleX(var(--np,0));transition:transform .2s linear}
.wbs-kontakt-danach>div>p:first-child{transition:background .5s,color .5s,box-shadow .5s}
.wbs-kontakt-danach>div.is-s>p:first-child{background:var(--wb-grad)!important;box-shadow:0 0 0 6px rgba(109,214,204,.18)!important;color:#16210f!important}
@media (max-width:1024px){
  .wbs-kontakt-danach{background-position:19px 0;background-size:1px 100%}
  .wbs-kontakt-danach::after{left:19px;right:auto;top:0;bottom:0;width:1px;height:auto;transform-origin:top;transform:scaleY(var(--np,0))}
}

/* ===== ABSCHLUSS ===== */
.wbs-kontakt-ende>.wb-gridcv{-webkit-mask-image:radial-gradient(ellipse 70% 70% at 50% 40%,#000 20%,transparent 80%);mask-image:radial-gradient(ellipse 70% 70% at 50% 40%,#000 20%,transparent 80%)}
.wbs-kontakt-ende a{transition:opacity .4s}
.wbs-kontakt-ende a:hover{opacity:.82}

@media (prefers-reduced-motion:reduce){
  .wbs-kontakt-danach::after{transition:none}
}
