/* ==========================================================
   Lebensberatung Nils Freyher – Landing-Startseite
   Video-Hero mit animiertem Pfad. Ergänzt style.css.
   ========================================================== */

html, body{ margin: 0; overflow-x: hidden; }

/* ---------------- Overlay header ---------------- */

.site-header-overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--panel-orange-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.nav-overlay{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-overlay{
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 14px rgba(0,0,0,0.3);
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-overlay span{
  font-family: "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 14px rgba(0,0,0,0.3);
  margin-top: 3px;
}

.nav-overlay-links{
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-overlay-links a{
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 14px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.2s ease;
}
.nav-overlay-links a:hover{ background: rgba(255,255,255,0.15); }

.contact-icons{
  display: flex;
  gap: 10px;
}
.contact-icons a{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-icons a:hover{ background: rgba(255,255,255,0.28); transform: translateY(-2px); }
.contact-icons svg{ width: 16px; height: 16px; stroke: currentColor; }

.nav-toggle-overlay{
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 780px){
  .nav-overlay-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel-orange-dark);
    backdrop-filter: blur(6px);
    flex-direction: column;
    padding: 10px 20px 18px;
    gap: 2px;
    display: none;
  }
  .nav-overlay-links.open{ display: flex; }
  .nav-toggle-overlay{ display: block; }
  .nav-overlay{ padding: 22px 28px; }
}

/* ---------------- Hero video ---------------- */

.hero-video-section{
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #16110c;
}

.hero-video-section video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,10,5,0.6) 0%, rgba(18,10,5,0.22) 26%, rgba(18,10,5,0.18) 55%, rgba(18,10,5,0.6) 100%);
}

.hero-video-text{
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8vh 52px 0;
  text-align: center;
  color: var(--white);
}

.hero-video-text .hero-eyebrow{
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}
.hero-video-text .hero-eyebrow.visible{ opacity: 1; transform: translateY(0); }

.hero-video-text h1{
  color: var(--white);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  max-width: 720px;
  margin: 0 0 16px;
  min-height: 1.25em;
}
.hero-video-text h1 .type-cursor{
  display: inline-block;
  width: 3px;
  margin-left: 3px;
  background: var(--white);
  opacity: 0;
  animation: cursor-blink 0.9s step-end infinite;
  vertical-align: -0.1em;
  height: 0.85em;
}
.hero-video-text h1.typing .type-cursor{ opacity: 1; }
@keyframes cursor-blink{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0; }
}

.hero-video-text p.lead{
  max-width: 520px;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}
.hero-video-text p.lead.visible{ opacity: 1; transform: translateY(0); }

/* ---------------- Animated path ---------------- */

.path-layer{
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.path-layer svg{ width: 100%; height: 100%; display: block; overflow: visible; }
.path-layer path{
  fill: none;
  stroke: rgba(255,255,255,0.92);
  stroke-width: 0.22;
  stroke-linecap: round;
  opacity: 0;
}
.path-layer .path-origin-dot{
  fill: var(--white);
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0.2);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.path-layer .path-origin-dot.visible{ opacity: 1; transform: scale(1); }
.path-layer .path-origin-ring,
.path-layer .path-ring{
  fill: none;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 0.3;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(1);
}
.path-layer .path-origin-ring.pulse,
.path-layer .path-ring.pulse{
  animation: origin-pulse 1.8s ease-out 1;
}
@keyframes origin-pulse{
  0%{ opacity: 0.9; transform: scale(0.6); }
  100%{ opacity: 0; transform: scale(2.6); }
}
.path-layer .path-checkpoint{
  fill: var(--white);
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0.2);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.path-layer .path-checkpoint.visible{ opacity: 1; transform: scale(1); }

.path-btn{
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
  z-index: 6;
}
.path-btn.visible{ opacity: 1; pointer-events: auto; }

.path-btn a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  max-width: 165px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.path-btn a:hover{
  background: rgba(255,255,255,0.32);
  border-color: var(--white);
  transform: translateY(-3px);
}

.path-btn.path-btn-end a{
  background: rgba(255,255,255,0.22);
  border-color: var(--orange-light);
  padding: 14px 24px;
  font-size: 0.9rem;
  max-width: 175px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.path-btn.path-btn-end a:hover{
  background: rgba(255,255,255,0.4);
  border-color: var(--orange-light);
}

/* Non-clickable caption next to the origin point — same pill look as the
   buttons, but plain text with no link and no hover/interaction. */
.path-btn.path-label{
  pointer-events: none !important;
  transform: translate(0, -50%);
}
.path-btn.path-label span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 11px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: normal;
  max-width: 165px;
}

@media (max-width: 700px){
  .path-btn a{ padding: 9px 13px; font-size: 0.72rem; max-width: 27vw; }
  .path-btn.path-btn-end a{ padding: 10px 16px; font-size: 0.76rem; max-width: 30vw; }
  .path-btn.path-label span{
    padding: 8px 12px;
    font-size: 0.66rem;
    white-space: normal;
    max-width: 27vw;
    text-align: center;
  }
  .hero-video-text{ padding: 6vh 26px 0; }
}

.form-note{background:var(--turquoise-tint);border-radius:10px;padding:12px 16px;margin:0 0 16px;color:var(--text);}

/* ---------------- Responsive: Startseiten-Hero (Tablet & Handy) ---------------- */
.nav-overlay > *{ min-width: 0; }
@media (max-width: 600px){
  .contact-icons{ gap: 6px; }
  .contact-icons a{ width: 32px; height: 32px; }
  .contact-icons svg{ width: 14px; height: 14px; }
  .nav-overlay{ gap: 12px; }
  .brand-overlay{ font-size: 1.05rem; }
  .brand-overlay span{ font-size: 0.56rem; letter-spacing: 0.12em; }
}

/* Unter 860px: der horizontale Weg wird zu einer senkrechten Liste unter dem Text */
@media (max-width: 860px){
  .hero-video-section{
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-bottom: 110px;
  }
  .hero-video-text{
    height: auto;
    padding: 108px 24px 28px;
    flex: none;
  }
  .hero-video-text h1{ font-size: clamp(1.7rem, 7.4vw, 2.4rem); max-width: 100%; }
  .hero-video-text p.lead{ font-size: 1rem; max-width: 100%; }
  .path-layer{ visibility: hidden; }

  .path-btn,
  .path-btn.path-label{
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    align-self: flex-start;
    margin: 0 24px 16px 54px;
    max-width: calc(100% - 78px);
    z-index: 6;
  }
  .path-btn a,
  .path-btn.path-btn-end a,
  .path-btn.path-label span{
    max-width: none;
    min-height: 54px;
    padding: 10px 18px;
    font-size: 0.86rem;
    justify-content: flex-start;
    text-align: left;
    box-sizing: border-box;
  }
  /* Punkte und Verbindungslinie */
  .path-btn::before{
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
  }
  .path-btn::after{
    content: '';
    position: absolute;
    left: -25px;
    top: calc(50% + 8px);
    height: calc(100% + 8px);
    width: 1px;
    background: rgba(255,255,255,0.7);
  }
  .path-btn.path-btn-end::after{ display: none; }
  .path-btn.path-label{ margin-top: 6px; }
}

/* ---- Mobile Startseite: weniger Zoom im Bild + Linie/Punkte animiert ---- */
@media (max-width:860px){
  /* Knöpfe selbst bleiben im Fluss; nur ihr Inhalt blendet ein, damit Punkt und Linie davon unabhängig animieren */
  .path-btn, .path-btn.visible{ opacity:1 !important; }
  .path-btn a, .path-btn.path-label span{ opacity:0; transform:translateX(-10px); transition:opacity .8s ease, transform .8s ease, background .2s ease; }
  .path-btn.visible a, .path-btn.path-label.visible span{ opacity:1; transform:none; }
  .path-btn::before{ opacity:0; transform:scale(.2); transition:opacity .5s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
  .path-btn.dot-on::before{ opacity:1; transform:scale(1); animation:nfDotPulse 1.5s ease-out 1; }
  .path-btn::after{ transform:scaleY(0); transform-origin:top; transition:transform 1.6s linear; }
  .path-btn.line-go::after{ transform:scaleY(1); }
  .path-btn.instant::before, .path-btn.instant::after, .path-btn.instant a, .path-btn.instant span{ transition:none !important; animation:none !important; }
}
@keyframes nfDotPulse{ 0%{ box-shadow:0 0 0 0 rgba(255,255,255,.7); } 100%{ box-shadow:0 0 0 14px rgba(255,255,255,0); } }
