@charset "UTF-8";
/* CSS Document */
    
/* VARIABLEN */
:root {
  --white: #fff;
  --black: #000;
  --blue: #2250fc;
  --blue2: #0113ff;
  --red: #b61924;
  --grey: #3E3D4F;
  --hover-color: #ff0000;
  --active-color: #ff0000;
  --none: none;
  --footer: #333333;
    
  --fs-h1: clamp(1.8rem, 4.2vw, 3.3rem);
  --fs-h2: clamp(1.4rem, 3.3vw, 2rem);
  --fs-h3: clamp(1.3rem, 3vw, 1.6rem);
  --fs-h4: clamp(1.2rem, 2.1vw, 1.4rem);
  --fs-h5: clamp(1.3rem, 3.0vw, 1.5rem);
  --fs-p: clamp(1.1rem, 1.5vw, 1.1rem);

  --ls-h1: clamp(0.2rem, 1vw, 0.4rem);
  --ls-h2: clamp(0.1rem, 0.5vw, 0.2rem);
  --ls-h3: clamp(0.02rem, 0.1vw, 0.5rem);
  --ls-h4: clamp(0.03rem, 0.03vw, 0.3rem);
  --ls-h5: clamp(0.02rem, 0.02vw, 0.1rem);
  --ls-p: 0.01rem;

/* Empfehlung  
--ls-h1: clamp(0.01em, 0.05vw, 0.1em);
--ls-h2: clamp(0.005em, 0.03vw, 0.07em);
--ls-h3: clamp(0.003em, 0.02vw, 0.05em);
--ls-h4: clamp(0.002em, 0.015vw, 0.03em);
--ls-h5: clamp(0.001em, 0.01vw, 0.02em);
--ls-p: 0.01em;  */

  --nav-gap: clamp(1rem, 2vw, 1.5rem);
  --nav-side-spacing: clamp(1rem, 4vw, 2.5rem);
    
  --fw-h1: 400;
  --fw-h2: 500;
  --fw-h3: 600;
  --fw-h4: 500;
  --fw-h5: 600;
  --fw-p: 400;
}

body{
    font-family:"Poppins",sans-serif;
    font-size:1rem;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-decoration:none;
}

/* TYPOGRAPHIE */
h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-h4); font-weight: var(--fw-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-h4); }
h5 { font-size: var(--fs-h5); letter-spacing: var(--ls-h5); font-weight: var(--fw-h5); }
p  { font-size: var(--fs-p);  letter-spacing: var(--ls-p);  font-weight: var(--fw-h2); }


/* NAVIGATION GLOBAL */
h1, h2, h3, a, ul, li  {
  text-transform: uppercase;
}   
h1, h3, h4, h5, a, ul, li  {    
  text-decoration: none !important;
  list-style-type: none;
  line-height: 1.5;
}  
h2{
    text-decoration: none !important;
    list-style-type: none;
    line-height: 1.6;
    padding-bottom: clamp(.5rem, 1.2vw, .8rem) !important;

    
} 
.h3-black{    
  text-decoration: none !important;
  list-style-type: none;
  padding-bottom: clamp(.8rem, 1.5vw, 1.1rem) !important;
  letter-spacing: var(--ls-h5);
  color: var(--black)!important;
    line-height: 1.4;
}  

a:hover {
  text-decoration: none !important;
  color: var(--hover-color);
}
.lower{
  text-transform: none !important;
} 
.bottom-h1 {
  font-size: var(--fs-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-h1);
  margin-bottom: clamp(.8rem, 1.5vw, 1rem);
}

.bottom-h3 {
  margin: clamp(.8rem, 1.5vw, 1rem) 6rem;
}

.bottom2{
  margin-bottom: clamp(4rem, 10vh, 8rem);
}
.top1 {
  top: 22.5vh;
}
.top2 {
  top: 27.5vh;
}
.top3 {
  top: 35vh;  /*nur fuer home */
}

/* Mobile (max 768) */
@media (max-width: 768px) {
  .top2 {
    top: 20vh; /*nur fuer home */

  }
}

.shadow{
  margin-bottom: 1rem;
}
.black{
  color: var(--black)!important; 
}
.red{
  color: var(--red)!important; 
}
.trans{
  color: var(--none)!important; 
 }   
     
.background-red{
background-color:#b61924;
 }   

.center{  
    text-align: center;
    padding-bottom: 2rem;
}

/* ============================= */
/* Sektionen "überfahren"          */
/* ============================= */

.page-top,
.blue-section,
.bab-video-section,
.service-section,
.text-section,
.info-video-section,
.video-call-section,
.footer{
  position: relative;
  z-index: 2; 
  background: var(--white); /* oder eigener Hintergrund */
}


/* ============================= */
/* Text Fade-In Effekt           */
/* ============================= */



/* Allgemeine Fade-in-Animation (für h2, p, etc.) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 1.5s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.text-header h2 {
    text-align: center;
    
  }  
/* ============================= */
/* TEXT CONTAINER          */
/* ============================= */

/* Mobile (default) */
.text-container {
  display: grid;
  grid-template-columns: 1fr;
  /* row-gap: 2rem;*/
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem; /* etwas Luft links/rechts */
}

/* Tablet (768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .text-container {
    max-width: 900px;
    /* row-gap: 2.5rem;*/
    padding: 0 5rem; /* mehr Seitenabstand */
  }
}

/* Desktop (ab 1024px) */
@media (min-width: 1024px) {
  .text-container {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(var(--nav-side-spacing) / 2);
    max-width: 1100px;
    margin: 0 auto;
    /* row-gap: 3rem;*/
    padding: 0 3rem; /* großzügiger Abstand */
  }
}

/* ============================= */
/* SCROLLTOP          */
/* ============================= */

#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: rgba(0,0,0,0.35);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.5s, box-shadow 0.3s cubic-bezier(0.55, 0, 0.1, 1), background-color 0.1s linear;
  overflow: hidden;
  z-index: 99;
  border-radius: 100px;
  border: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Pfeil-Symbol */
#scrollTopBtn .arrow {
  position: relative;
  z-index: 200;
  color: white;
  font-size: 1.6rem;
  line-height: 1;
}

@keyframes fadeSoftBounceBtn {
  0%   { transform: translateY(20px); opacity: 0; }
  60%  { transform: translateY(-4px); opacity: 1; }
  80%  { transform: translateY(2px);  opacity: 1; }
  100% { transform: translateY(0);    opacity: 1; }
}

.fade-soft-bounce-once {
  animation: fadeSoftBounceBtn 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hintergrund-Ebenen */
#scrollTopBtn:after,
#scrollTopBtn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 100px;
}

#scrollTopBtn:after {
  background-color: #2250fc;
  z-index: 50;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
}

#scrollTopBtn:before {
  background-color: rgba(255,255,255,0.25);
  z-index: 40;
  transform: scale(1);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#scrollTopBtn:hover:after {
  transform: scale(1);
}

#scrollTopBtn:active:before {
  opacity: 1;
}

/* Sichtbar schalten beim Scroll */
body.scroll-active #scrollTopBtn {
  opacity: 1;
  pointer-events: auto;
}


/* ===============================
   Navigation: Active & Hover States
   =============================== */

/* Aktiver Link (per .current in HTML gesetzt) */
.nav-links > li > a.current,
.dropdown-menu a.current,
.mobile-navbar a.current,
.mobile-accordion-toggle.current {
  color: var(--active-color);
  font-weight: 600 !important;
}

/* Desktop: Dropdown-Parent beim Hover */
.nav-links li.dropdown:hover > a,
.nav-links li.dropdown:focus-within > a {
  color: var(--hover-color); /* z. B. rot */
}

/* Aktiver Dropdown-Item */
.nav-links li.dropdown > a.current {
  color: var(--active-color);
  font-weight: 600 !important;
}

/* Mobile: Accordion-Toggle aktiv, wenn geöffnet */
.mobile-accordion.open .mobile-accordion-toggle {
  color: var(--active-color);
  font-weight: 600 !important;
}

/* Hover-Effekte für normale Links (Desktop + Mobile) */
.nav-links > li > a:not(.current):hover,
.dropdown-menu a:not(.current):hover,
.mobile-navbar a:not(.current):hover,
.mobile-accordion-toggle:hover {
  color: var(--hover-color); /* z. B. rot */
}

/* Dark-Navbar: aktive Links ebenfalls einfärben */
.dark-navbar .nav-links > li > a.current,
.dark-navbar .dropdown-menu a.current {
  color: var(--active-color);
  font-weight: 600 !important;
}

/* ===============================
   Mobile: Persistente Hover/Active States
   =============================== */

/* Wenn Accordion geöffnet ist, aber nicht current → Hover-Farbe behalten */
.mobile-accordion.open .mobile-accordion-toggle:not(.current) {
  color: var(--hover-color);
}

/* Wenn Accordion geöffnet ist und current → Active-Farbe */
.mobile-accordion.open .mobile-accordion-toggle.current {
  color: var(--active-color);
  font-weight: 600 !important;
}

/* Sicherheit: mobile aktuelle Links */
#mobile-menu > ul > li > a.current {
  color: var(--active-color);
  font-weight: 600 !important;
}
.mobile-accordion-toggle.current {
  color: var(--active-color) !important;
  font-weight: 600 !important;
}


/* Maus: komplett unsichtbar, aber mit Transition */
.mouse {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 45px;
  border: 2px solid white;
  border-radius: 14px;
  opacity: 0;                      /* Startzustand */
  transition: opacity 1.5s ease;   /* gleichmäßig, kein abruptes Ein-/Ausblenden */
  z-index: 1;
}

/* Fade-in Zustand */
.mouse.visible {
  opacity: 0.85;
}

/* Fade-out Zustand */
.mouse.fade-out {
  opacity: 0;
}



.mouse .wheel {
  width: 4px;
  height: 8px;
  background: white;
  margin: 6px auto;
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}
