/* Grundfarben – gerne auf deinen Brand anpassen */
:root{
  --brand: #7c4dff;        /* Violett-Akzent */
  --brand-2: #e6e0ff;      /* helle Variante */
  --ink: #1b1f24;          /* Text dunkel */
  --bg: #ffffff;           /* Seite */
  --hair-steel: #bfc8cf;   /* Klinge */
}

/* ---------- Intro Overlay ---------- */
#introOverlay{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;    /* robust auf mobilen Browsern */
  z-index: 9999;
  pointer-events: none;     /* keine Interaktion */
  overflow: hidden;
}

#introOverlay .panel{
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background:
    radial-gradient(1200px 200px at 50% -100px, rgba(0,0,0,.08), transparent 70%) ,
    linear-gradient(180deg, var(--brand-2), #fff);
  box-shadow: 0 0 24px rgba(0,0,0,.08);
  will-change: transform;
}

#introOverlay .panel-left { left: 0; transform: translateX(0); }
#introOverlay .panel-right{ right: 0; transform: translateX(0); }

#introOverlay .cut-line{
  position: absolute;
  top: -100vh;       /* beginnt oberhalb */
  left: 50%;
  width: 2px;
  height: 300vh;     /* reicht sicher durch */
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,.35) 0 10px,
      rgba(255,255,255,.1) 10px 20px
    );
  filter: drop-shadow(0 0 3px rgba(0,0,0,.1));
  opacity: 0;
}

/* Schere mittig, startet leicht außerhalb des Viewports */
#introOverlay .scissor{
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-90px);
  top: 0;
  opacity: 0;
}

/* Animationszustand (wird per JS gesetzt) */
#introOverlay.play .scissor{
  animation: cutDown 2.8s ease-in-out forwards;
}
#introOverlay.play .cut-line{
  animation: lineIn 0.6s ease-out forwards, lineFade 2.4s ease-in 0.6s forwards;
}
#introOverlay.play .panel-left{
  animation: openLeft 2.2s cubic-bezier(.2,.8,.2,1) 0.8s forwards;
}
#introOverlay.play .panel-right{
  animation: openRight 2.2s cubic-bezier(.2,.8,.2,1) 0.8s forwards;
}

/* Keyframes */
@keyframes cutDown{
  0%   { transform: translateX(-50%) translateY(-120px); opacity: 0 }
  8%   { opacity: 1 }
  100% { transform: translateX(-50%) translateY(calc(100dvh - 40px)); opacity: 1 }
}

@keyframes lineIn{
  from { opacity: 0; transform: translateX(-50%) translateY(60px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes lineFade{
  0%   { opacity: 1 }
  100% { opacity: 0.1 }
}

@keyframes openLeft{
  0%   { transform: translateX(0) }
  40%  { transform: translateX(-10%) }
  100% { transform: translateX(-102%) }
}
@keyframes openRight{
  0%   { transform: translateX(0) }
  40%  { transform: translateX(10%) }
  100% { transform: translateX(102%) }
}

/* Falls jemand reduzierte Bewegung wählt: Animation überspringen */
@media (prefers-reduced-motion: reduce){
  #introOverlay { display: none !important; }
}

/* ---------- Seite ---------- */
body{
  background: var(--bg);
  color: var(--ink);
}

.navbar .brand-accent{ color: var(--brand); }

.hero{
  min-height: 72dvh;
  background:
    linear-gradient(120deg, rgba(124,77,255,.75), rgba(124,77,255,.45)),
    url('Images/Friseur_1.png') center/cover no-repeat;
}
.hero .btn{ box-shadow: 0 6px 20px rgba(0,0,0,.2); }

.site{ outline: none; }

/* Dev: Replay-Button dezent */
#replayIntro{
  opacity: .7;
}
#replayIntro:hover{
  opacity: 1;
}
