/* ================================
   interior-page.css (final)
   ================================ */

/* --------------------------------
   Variables (global)
--------------------------------- */
:root{
  /* Einheitlicher Seiten-Gutter (Bootstrap px-4 / px-lg-5) */
  --page-gutter: 1.5rem;      /* px-4 = 1.5rem */

	
  /* Fullpage */
  --quote-h: 190px;
  --safe-top: 116px;          /* Desktop: Topbar 64px + Logo-Reserve */
  --topbar-h: 64px;
}

@media (min-width: 992px){
  :root{
    --page-gutter: 8rem;      /* px-lg-5 = 3rem */
  }
}

/* Wenn Logo angedockt ist (klein) -> weniger safe-top */
body.is-logo-docked{
  --safe-top: 82px; /* 64 + 18 */
}


/* Mobile */
@media (max-width: 576px){
  :root{
    --quote-h: 210px;
    --safe-top: 98px;   /* 56 + 42 */
    --topbar-h: 56px;
  }
  body.is-logo-docked{
    --safe-top: 70px; /* 56 + 14 */
  }
}



/* --------------------------------
   Reset / Base
--------------------------------- */
html, body{ height: 100%; }
body{ margin: 0; }

/* --------------------------------
   Fullpage / Snap / Layout
--------------------------------- */

/* Scroll-Container (Lenis Wrapper) */
.fp-viewport{
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
 scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

#fpScroller {
  height: 100vh;
  overflow-y: auto;
}

/* Jede Section ist 100vh */
.fp-section{
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Inner Wrapper */
.fp-inner{
  height: 100vh;
  position: relative;
}

/* Content-Bereich oberhalb Quote */
.fp-inner > .container-fluid.h-100{
  height: calc(100vh - var(--quote-h)) !important;
}

/* Row volle Höhe */
.fp-inner .row.h-100{
  height: 100% !important;
}

/* Content safe-top nur für Text */
.fp-content-safe{
  padding-top: var(--safe-top);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .fp-viewport{ scroll-behavior: auto; }
}

/* --------------------------------
   MEDIA (Background Images)
--------------------------------- */
.fp-media{
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate; /* verhindert ::after bleed */
}

.fp-media .bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   NEW: Simuliere background-size:cover mit <img>
   (additiv, überschreibt nichts Bestehendes)
========================================= */

/* Wenn fp-media jetzt ein echtes <img> enthält, soll es die Fläche wie ein Background füllen */
.fp-media > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* = background-size: cover */
  object-position: center;  /* = background-position: center */
  display: block;
  z-index: 0;
}

/* Deine weichen Kanten liegen via ::after darüber – das passt so.
   Damit Video/Overlays weiterhin korrekt oben liegen: */
.fp-media::after{
  z-index: 2;
}
.fp-media .bg-video{
  z-index: 1; /* Video über Bild, unter Gradient */
}

/* Mobile: du gibst fp-media min-height:60vh und height:auto.
   Damit das absolute Bild trotzdem funktioniert, braucht der Container eine Höhe.
   -> Wir “pin” ihn auf min-height, ohne dein Layout zu ändern. */
@media (max-width: 991.98px){
  .fp-media{
    position: relative; /* hast du schon, aber sicherheitshalber */
  }
}
@media (min-width: 992px){
  .focus-left > img{ object-position: left center; }
  .focus-right > img{ object-position: right center; }
}

/* Desktop Focus helpers */
@media (min-width: 992px){
  .focus-left{ background-position: left center; }
  .focus-right{ background-position: right center; }
}

/* Nur Desktop: weiche Kanten links/rechts */
@media (min-width: 992px){
  .soft-right::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
      to right,
      rgba(0,0,0,0) 70%,
      rgba(0,0,0,0.7) 85%,
      rgba(0,0,0,1) 100%
    );
    pointer-events:none;
  }

  .soft-left::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
      to left,
      rgba(0,0,0,0) 70%,
      rgba(0,0,0,0.7) 85%,
      rgba(0,0,0,1) 100%
    );
    pointer-events:none;
  }
}

/* Nur mobil: weiche Kante unten */
@media (max-width: 991.98px){
  .soft-bottom::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 70%,
      rgba(0,0,0,0.7) 85%,
      rgba(0,0,0,1) 100%
    );
    pointer-events:none;
  }
}

/* DEFAULT (safe): Media startet unter safe-top */
.fp-section:not(.media-bleed) .fp-media{
  margin-top: var(--safe-top);
  height: calc(100% - var(--safe-top));
  min-height: calc(100% - var(--safe-top));
}

/* OPTION (bleed): Media läuft bis oben */
.fp-section.media-bleed .fp-media{
  margin-top: 0 !important;
  height: 100% !important;
  min-height: 100% !important;
}

/* --------------------------------
   Quote-Bar
--------------------------------- */

.quote-bar{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--quote-h);

  background: rgba(90,90,90,0.55);
  border-top: 1px solid rgba(255,255,255,0.14);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* dein Außenpadding */
  padding-left: calc(var(--page-gutter) * 1.0);
  padding-top: clamp(18px, 2.4vh, 30px);
  padding-bottom: clamp(18px, 2.4vh, 30px);

  display: flex;
  align-items: center;
  z-index: 20;
}

.quote-bar--wide{
  padding-left: calc(var(--page-gutter) * 1.5);
}

/* Wrapper für Balken-Positionierung */
.quote-bar .container-fluid{
  position: relative;

  /* Platz für gelben Balken + Abstand zum Text */
  padding-left: 1.5rem;
}

/* Gelber Balken */
.quote-bar .container-fluid::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 4px;
  background: #fed136;
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(254,209,54,0.25);
}

/* NEU: horizontales Layout (Text links, Button rechts) */
.quote-content{
  display: flex;
  align-items: center;              /* vertikal zentriert */
  justify-content: space-between;
  gap: 2rem;
}

/* Textblock bleibt untereinander */
.quote-textblock{
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vh, 14px);
  flex: 1 1 auto;
}

/* Button (optional) */
.quote-btn{
  flex: 0 0 auto;
  white-space: nowrap;
  padding: .55rem 1.35rem;
  border: 1px solid #fed136;
  color: #fed136;
  text-decoration: none;
  font-weight: 300;
  line-height: 1;
}

.quote-btn:hover{
  background: #fed136;
  color: #000;
}

/* Mobile: Balken schmaler */
@media (max-width: 576px){
  .quote-bar .container-fluid::before{
    width: 3px;
  }
}

/* Optional: Mobile Button unter Text */
@media (max-width: 768px){
  .quote-content{
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Typography */

.quote-title{
  margin: 0;   /* wichtig: kein margin-bottom */
  font-weight: 300;
  font-size: clamp(1.35rem, 1.25vw + 1rem, 2rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.01em;
}

.quote-text{
  margin: 0;
  font-weight: 200;
  font-size: clamp(1.1rem, 0.9vw + 0.9rem, 1.55rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  max-width: 1200px;
}

/* Quote Next Button */
.quote-next{
  position: absolute;

  left: 50%;
  transform: translateX(-50%);

  bottom: 10px; /* Abstand vom unteren Rand */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  color: #fed136;

  text-decoration: none;
  z-index: 30;

  /* Pulse Animation */
  animation: quotePulse 1.6s ease-in-out infinite;
}

/* Hover optional */
.quote-next:hover{
  color: #fff;
}

/* Optional: Mobile Button unter Text */
@media (max-width: 768px){
  .quote-next{
left: 90%;
  }
}


/* Pulse Animation */
@keyframes quotePulse{
  0%{
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }

  50%{
    transform: translateX(-50%) scale(1.25);
    opacity: 1;
  }

  100%{
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
}


/* --------------------------------
   Dots rechts
--------------------------------- */
.fp-dots{
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1500;
  gap: 14px;
  flex-direction: column;
  pointer-events: auto;
}

.fp-dots .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(254,209,54,.85);
  background: rgba(0,0,0,.25);
  cursor:pointer;
  padding:0;
}

.fp-dots .dot.is-active{
  background:#fed136;
  box-shadow: 0 0 0 4px rgba(254,209,54,.18);
}

/* --------------------------------
   Topbar + Floating Logo
--------------------------------- */
.topbar{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--topbar-h);
  z-index: 1500;
  pointer-events: none;
}

.topbar-inner{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content: center;
}

.brand{
  display: inline-flex;
  align-items:center;
  gap: .6rem;
  text-decoration:none;
  pointer-events:auto;
}

.brand--top img{
  height: 28px;
  width:auto;
  opacity: 0; /* topbar logo bleibt "unsichtbar" im Zielzustand */
}

.brand--floating{
  position: fixed;
  z-index: 1600;
  left: var(--page-gutter);
  top: 100px; /*22px;*/
  transform-origin: left top;
  transition:
    transform 600ms cubic-bezier(.2,.9,.2,1),
    left 600ms cubic-bezier(.2,.9,.2,1),
    top 600ms cubic-bezier(.2,.9,.2,1);
}

.brand--floating img{
  height: 90px;
  width:auto;
  transition: height 600ms cubic-bezier(.2,.9,.2,1);
}

.brand--floating.is-docked{
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  transform-origin: center top;
}

.brand--floating.is-docked img{
  height: 40px;
}

@media (max-width: 576px){
  .brand--floating{ left: var(--page-gutter); top: 14px; }
  .brand--floating img{ height: 40px; }
  .brand--floating.is-docked{ top: 14px; }
  .brand--floating.is-docked img{ height: 24px; }
}

/* Menü immer über allem */
.menu_button{ z-index: 2000; }
#main-nav{ z-index: 2000; }


/* --------------------------------
   Section 1 Video Hero
--------------------------------- */
.fp-hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  flex-direction: column;
  background:#000;
  overflow:hidden;
}

/*.fp-hero-media{
  position: relative;
  width: 100%;
  max-height:80vh;
  overflow: hidden;
  background:#000;
}*/

/*.fp-hero-video{
  width: 75vw;
  margin-left: 10vw;
  height: auto;
  object-fit: cover;
  object-position: center;
  display:block;
}*/

/*.fp-hero-overlay{
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 40%,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.75)
  );
  z-index: 1;
  pointer-events:none;
}*/

.fp-hero-content{
  position: relative;
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
  z-index: 2;
}

.fp-hero-claim{
 /* margin:0;*/
  color:#fff;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 3rem);
}


@media (max-width: 576px){
  .fp-hero-claim{

    position: absolute;
    bottom: 5vh;	  
	  
    font-size: clamp(1.35rem, 3.8vw + .9rem, 2.2rem);
    padding-inline: 2rem;
}   

  .fp-hero-video{
    width: 140vw;
    margin-left: -20vw;
    margin-top: 10vh;
  }
}

/*@media (min-width: 768px){
  .fp-hero-media{
    height: 100vh;
    max-height: none;
  }

  .fp-hero-content{
    position:absolute;
    inset:0;
    background: transparent;
    align-items: flex-end;
    padding-bottom: 2.5rem;
    z-index: 2;
    pointer-events:none;
  }

  .fp-hero-content a,
  .fp-hero-content button{
    pointer-events:auto;
  }
}*/

/* --------------------------------
   MOBILE: Fullpage-Snap entschärfen
--------------------------------- */
@media (max-width: 991.98px){

  .fp-section{
    height:auto;
    min-height: 100vh;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .fp-inner{
    height:auto;
    min-height: 100vh;
  }

  .fp-inner > .container-fluid.h-100{
    height:auto !important;
  }

  .fp-inner .row.h-100{
    height:auto !important;
  }

  .quote-bar{
    position: relative;
    left:auto; right:auto; bottom:auto;
    min-height: 0;
    margin: 0;
  }

  .fp-media{
    width: 100%;
    min-height: 60vh !important;
    height: auto !important;
    margin-top: 0 !important;
    display:block;
  }

  .fp-section:not(.media-bleed) .fp-media,
  .fp-section.media-bleed .fp-media{
    height:auto !important;
    min-height: 60vh !important;
  }
}
/* --------------------------------
   Section 1 (3 Rows) – Fullpage safe
--------------------------------- */

#s1 .fp-inner{
  height: 100vh;            /* wichtig für Fullpage */
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

/* der Container muss wirklich die volle Höhe einnehmen */
#s1 .hero-grid{
  height: 100%;
  min-height: 100%;
}

/* Row 2 (Video-Row) soll den restlichen Platz bekommen */
#s1 .hero-row-video{
  flex: 1 1 auto;
  min-height: 0;            /* super wichtig in flex layouts */
}

/* Video-Wrapper innerhalb der Row */
#s1 .hero-video-wrap{
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

/* Video selbst: füllt die Fläche */
#s1 .hero-video{
  height: 100%;
width: 100%;
  object-fit: contain;        /* oder 'contain' wenn nix abgeschnitten werden soll */
  object-position: center;
  display: block;
}

/* Claim-Row: fix unten, mit safe padding */
#s1 .hero-row-claim{
  padding-bottom: clamp(16px, 4vh, 56px);
}

/* header space*/
#s1 .headerspace{
  height: 20vh;
}

/* Video-Wrapper innerhalb der Row */
.video-wrap-40vh{
  height: 40vh;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrap-50vh{
  height: 50vh;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

/* Video selbst: füllt die Fläche */
.video-40vh{
  height: 40vh;
width: 100%;
  object-fit: contain;        /* oder 'contain' wenn nix abgeschnitten werden soll */
  object-position: center;
  display: block;
}

.video-50vh{
  height: 50vh;
width: 100%;
  object-fit: contain;        /* oder 'contain' wenn nix abgeschnitten werden soll */
  object-position: center;
  display: block;
}

.hidden {
  display: none;
}

