/* ==========================================================
   Nils Freyher Unternehmensberatung – Video-Hero-Startseite
   Geradlinig, ruhig, hochwertig. Ergänzt style.css.
   ========================================================== */

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

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

.hero-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(9, 26, 24, 0.65) 0%, rgba(9, 26, 24, 0) 100%);
}

.hero-nav{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-brand{
  color: var(--white);
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero-brand.visible{ opacity: 1; transform: translateY(0); }
.hero-brand span{
  font-family: "Inter", sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 4px;
}

.hero-nav-links{
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-nav-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 20px;
  font-family: "Inter", sans-serif;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(26px) scale(0.82);
  transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease, border-color 0.3s ease;
}
.hero-nav-links a.revealed{ opacity: 1; transform: translateY(0) scale(1); }
.hero-nav-links a:hover{ background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
.hero-nav-links a.nav-cta{
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white) !important;
}
.hero-nav-links a.nav-cta:hover{ background: var(--orange-dark); border-color: var(--orange-dark); }

.hero-nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-nav-toggle.visible{ opacity: 1; }

@media (max-width: 780px){
  .hero-nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 26, 24, 0.96);
    flex-direction: column;
    padding: 8px 20px 20px;
    gap: 2px;
    display: none;
  }
  .hero-nav-links.open{ display: flex; }
  .hero-nav-links a{
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .hero-nav-toggle{ display: block; }
}

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

.hero-video-section{
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink-950);
}
.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(9,26,24,0.62) 0%, rgba(9,26,24,0.32) 45%, rgba(9,26,24,0.72) 100%);
}

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

.hero-video-text .eyebrow{
  color: var(--teal-light);
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-video-text .eyebrow.visible{ opacity: 1; transform: translateY(0); }

.hero-video-text h1{
  color: var(--white);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  max-width: 780px;
  margin: 0 0 18px;
}

.hero-video-text .type-cursor{
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -0.05em;
  opacity: 0;
}
.hero-video-text .typing .type-cursor{
  opacity: 1;
  animation: nfHeroBlink 0.9s steps(1) infinite;
}
@keyframes nfHeroBlink{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}

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

/* Four links to the subpages, presented as small frosted-glass cards that
   rise up and tilt into place (like cards being dealt onto a table) rather
   than interlocking puzzle pieces. Each keeps its own accent colour along
   the top edge — a quieter, more editorial echo of the four-tile idea. */
.reveal-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin-top: 30px;
  perspective: 900px;
}
.reveal-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 168px;
  padding: 20px 18px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  overflow: hidden;
  opacity: 0;
  transform-origin: bottom center;
  transform: translateY(50px) rotateX(-14deg) scale(0.9);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease, border-color 0.25s ease;
}
.reveal-card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--orange));
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.reveal-card:hover::before{ transform: scaleX(1); }
.reveal-card:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-4px) scale(1.02);
}
.reveal-card.revealed{ opacity: 1; transform: translateY(0) rotateX(0) scale(1); }

.reveal-icon{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.reveal-icon svg{ width: 16px; height: 16px; stroke: currentColor; fill: none; }

.reveal-label{
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.28;
  text-align: left;
}

.reveal-arrow{
  margin-top: auto;
  align-self: flex-end;
  font-size: 0.95rem;
  opacity: 0.65;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.reveal-card:hover .reveal-arrow{ transform: translateX(4px); opacity: 1; }

@media (max-width: 560px){
  .reveal-nav{
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    perspective: none;
  }
  .reveal-card{
    width: 100%;
    flex-direction: row;
    align-items: center;
    transform: translateY(24px) !important;
  }
  .reveal-card.revealed{ transform: translateY(0) !important; }
  .reveal-arrow{ margin-top: 0; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce){
  .reveal-card{ transition: opacity 0.4s ease; transform: none !important; }
}

.hero-footnote{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 5;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-footnote.visible{ opacity: 1; }

@media (max-width: 700px){
  .hero-video-text h1{ font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-footnote{ display: none; }
}

/* ---------------- Sound toggle ---------------- */

.hero-sound-toggle{
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9,26,24,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero-sound-toggle.visible{ opacity: 1; transform: translateY(0); }
.hero-sound-toggle:hover{ background: rgba(9,26,24,0.8); border-color: rgba(255,255,255,0.4); }
.hero-sound-toggle svg{ width: 19px; height: 19px; }
.hero-sound-toggle .icon-unmuted{ display: none; }
.hero-sound-toggle.is-on .icon-muted{ display: none; }
.hero-sound-toggle.is-on .icon-unmuted{ display: block; }

@media (max-width: 700px){
  .hero-sound-toggle{ right: 18px; bottom: 18px; width: 38px; height: 38px; }
  .hero-sound-toggle svg{ width: 17px; height: 17px; }
}

.form-note{background:rgba(255,255,255,.12);border-radius:8px;padding:12px 16px;margin:0 0 16px;}
.nav-overlay > *{ min-width:0; }
@media (max-width:860px){
  .hero-video-section{ height:auto; min-height:100vh; min-height:100svh; }
  .hero-video-text{ height:auto; min-height:100vh; min-height:100svh; padding:120px 24px 90px; box-sizing:border-box; }
  .hero-video-text h1{ font-size:clamp(1.6rem,6.6vw,2.4rem); max-width:100%; overflow-wrap:break-word; }
  .hero-video-text p.lead{ max-width:100%; font-size:1rem; }
}
@media (max-width:780px){
  .hero-nav{ padding:16px 16px; gap:12px; }
  .hero-nav-toggle{ font-size:2.3rem; line-height:1; padding:4px 8px; }
  .hero-nav-links{ z-index:60; }
}
