/* ==========================================================
   HERO SLIDESHOW – Push + Stencil + Content
   ========================================================== */
.hero {
  position: relative;
  width: 100%; height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-dark);
  isolation: isolate;
  z-index: 1;
}

/* --- Slide-Container --- */
.hero-slide {
  position: absolute; inset: 0;
  transform: translateX(100%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero-slide.active {
  transform: translateX(0);
  pointer-events: auto;
  z-index: 5;
}

/* --- PUSH-Transition --- */
.hero-slide.slide-entering {
  z-index: 6;
  pointer-events: none;
  animation: pushFromRight 800ms var(--ease-smooth) forwards;
}

.hero-slide.slide-exiting {
  z-index: 4;
  pointer-events: none;
  animation: pushToLeft 800ms var(--ease-smooth) forwards;
}

@keyframes pushFromRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes pushToLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* --- Imagebild --- */
.slide-image {
  position: absolute; inset: 0;
  z-index: 1;
}

.slide-image-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
}

.slide-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 26, 43, 0.50) 0%,
    rgba(15, 26, 43, 0.20) 60%,
    rgba(15, 26, 43, 0.45) 100%
  );
}

.hero-slide.active .slide-image-bg {
  animation: slowZoomOut 14s var(--ease-smooth) forwards;
}

@keyframes slowZoomOut {
  from { transform: scale(1.10); }
  to   { transform: scale(1); }
}

/* --- STENCIL: Scherenschnitt --- */
.slide-stencil {
  position: absolute; inset: 0;
  z-index: 2;
  /*mix-blend-mode: screen;   */
  clip-path: inset(50% 0% 50% 0%);
  will-change: clip-path, transform;
  overflow: hidden;
}

.slide-stencil-bg {
  position: absolute; inset: 0;
  /*background: var(--color-white);   */

  /* Leicht milchig: */
  /*background: rgba(255, 255, 255, 0.85);*/

  /* Deutlich transparent: */
  background: rgba(255, 255, 255, 0.5);

  /* Ganz leichter Hauch: */
  /*background: rgba(255, 255, 255, 0.2);*/

  /* Komplett durchsichtig: */
  /*background: transparent;*/
}

.slide-stencil-content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1;
}

.slide-stencil-logo {
  height: clamp(220px, 40vw, 560px);
  width: auto;
  max-width: 80%;
  object-fit: contain;
  /*filter: brightness(0); */
}


.slide-stencil-name {
  display: none;
}


.slide-stencil-name span {
  display: block;
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 0.9;
  transform: scaleX(1.08);
  transform-origin: center;
}

.hero-slide[data-slide-type="segment"] .slide-stencil-name span {
  font-size: clamp(2.5rem, 7vw, 6rem);
}

/* Stencil EXPAND */
.hero-slide.phase-stencil .slide-stencil {
  animation: stencilExpand 600ms var(--ease-smooth) forwards;
}

@keyframes stencilExpand {
  0%   { clip-path: inset(49.5% 0% 49.5% 0%); }
  100% { clip-path: inset(0% 0% 0% 0%); }
}

/* Stencil EXIT */
.hero-slide.phase-stencil-exit .slide-stencil {
  clip-path: inset(0% 0% 0% 0%);
  animation: stencilSlideLeft 600ms var(--ease-smooth) forwards;
}

@keyframes stencilSlideLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-102%); }
}

/* --- CONTENT (links unten) --- */
.slide-content {
  position: absolute;
  z-index: 3;
  bottom: clamp(60px, 10vh, 120px);
  left: var(--side-padding);
  width: clamp(280px, 38vw, 480px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-white);
}

.slide-content-motto {
  margin-top: -40px;
}


.slide-content-row {
  opacity: 0;
  transform: translateX(50px);
  will-change: opacity, transform;
}

.slide-content-header {
  display: contents;
}



/*.slide-content-logo {
  height: clamp(48px, 8vw, 120px) !important;
  width: auto !important;
  max-width: 280px;
  object-fit: contain;
  opacity: 1;
}*/

.slide-content-logo {
  display: block;
  width: clamp(200px, 36vw, 460px);
  height: auto;
  max-width: none;
  object-fit: contain;
  opacity: 0;
  transform: translateX(50px);
  will-change: opacity, transform;
  /*border: 2px solid red;*/
}



.slide-content-name {
  display: none;
}



.slide-content-motto {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.slide-content-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s ease;
  width: fit-content;
}

.slide-content-cta:hover { background: transparent; }

.slide-content-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
}

.slide-content-cta:hover svg { transform: translateX(4px); }

/* Gestaffeltes Einblenden */
.hero-slide.phase-content .slide-content-row:nth-child(1) {
  animation: contentSlideIn 500ms var(--ease-smooth) 0ms forwards;
}
.hero-slide.phase-content .slide-content-row:nth-child(2) {
  animation: contentSlideIn 500ms var(--ease-smooth) 200ms forwards;
}
.hero-slide.phase-content .slide-content-row:nth-child(3) {
  animation: contentSlideIn 500ms var(--ease-smooth) 450ms forwards;
}

@keyframes contentSlideIn {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-slide.phase-content .slide-content-logo {
  animation: contentSlideIn 500ms var(--ease-smooth) 0ms forwards;
}


/* --- Indicators, Progress, Scroll-Hint --- */
.hero-indicators {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 20;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 280px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--color-accent);
  z-index: 20;
}

.hero-progress.running {
  animation: progressFill var(--slide-duration) linear forwards;
}

@keyframes progressFill {
  from { width: 0; } to { width: 100%; }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px; right: var(--side-padding);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  z-index: 20;
}

.hero-scroll-indicator::after {
  content: ''; width: 1px; height: 36px;
  background: rgba(255,255,255,0.4);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* --- Hero Responsive --- */
@media (max-width: 768px) {
  .hero-scroll-indicator { display: none; }

  .slide-stencil-name span {
    font-size: clamp(2.2rem, 12vw, 4.5rem);
    transform: scaleX(1.05);
  }

  .hero-slide[data-slide-type="segment"] .slide-stencil-name span {
    font-size: clamp(1.8rem, 9vw, 3.5rem);
  }

  .slide-content {
    width: clamp(240px, 75vw, 400px);
    bottom: clamp(50px, 8vh, 90px);
  }

  .slide-content-motto {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .hero-indicators {
    max-width: 220px;
    gap: 6px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }
}

/* ---- Division-Badge auf Hero-Slides (statisch, Fußleiste links, oberste Ebene) ---- */
.slide-badge{
  position:absolute; left:0; bottom:0; z-index:6;      /* > overlay(≤2) und content(3) */
  margin:0; padding:.55em 1.4em .55em var(--side-padding,1.4em);
  font-size:.72rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:#fff; background:rgba(0,0,0,.40);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  border-top-right-radius:10px; pointer-events:none;
}
@media(max-width:600px){ .slide-badge{ font-size:.62rem; padding:.45em 1em; } }
