 * { margin: 0; padding: 0; box-sizing: border-box; }
 body {
  overscroll-behavior: none; /* Verhindert das typische mobile "Bouncen" am Ende */
  overflow-x: hidden;
}

.navigation {
  position: fixed;
  top: 0;
  left: 0;
  padding: 10px;
  display: flex;
  justify-content: space-between; /* Links und Rechts verteilen */
  flex-direction: row; /* Sicherstellen, dass alles in einer Zeile bleibt */
  align-items: center;
  align-items: flex-start; /* Oben ausrichten */
  z-index: 9999;  
}

.menu-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Menü selbst bleibt rechtsbündig */
}


.menu-toggle {
    display: flex;           /* WICHTIG: Aktiviert Flexbox für Zentrierung */
    align-items: center;     /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
    
    width: 60px;
    height: 60px;
    padding: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    
    /* Box-Sizing hilft, dass das Padding die Breite nicht sprengt */
    box-sizing: border-box; 
}

/* Wenn der Toggle versteckt werden soll */
.menu-toggle.hidden {
    display: none !important;
}

.menu-toggle:hover{
   background: rgba(255, 255, 255, 0.15); 
}



.mainmenu {
    display: none;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);        /* Glas-Effekt */
    border-radius: 10px;

  
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    align-items: center;     /* Horizontal zentrieren */
    justify-content: center; /* Vertikal zentrieren */
}

/* Zustand wenn offen */
.mainmenu.open {

      border: 1px solid rgba(255, 255, 255, 0.3);
   width: 60px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* Styling der Links darin */
.mainmenu a {
      font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    padding: 10px;
}

.mainmenu a:hover {
    color: #ebeec7;
}



.mainmenu a.active {
  color: #cece98; /* Deine Highlight-Farbe */
  font-weight: bold;
  background: rgba(155, 219, 155, 0.425); /* Subtiler Hintergrund für den aktiven Link */
}


section {
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center; /* Zentriert horizontal */
  align-items: center;     /* Zentriert vertikal */
  padding: 50px;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Zentriert den Block vertikal im Container */
  align-items: center; /* Zentriert die Boxen selbst untereinander */
  text-align: center;  /* Zentriert den Text innerhalb der Boxen */
  gap: 10px;           /* Ersetzt deine <br>-Tags durch saubere Abstände */
  width: 100%;
  min-height: 300px; /* Oder was auch immer für deine 3 Zeilen passt */
    position: relative;
}

.ani_txt_line1 {
  font-size: clamp(24px, 9vw, 56px);
  color: aliceblue;
  display: inline-block;
  will-change: transform, opacity;
  opacity: 0; /* Versteckt den Text beim ersten Laden */
  visibility: hidden; /* Verhindert, dass er Platz einnimmt, bevor er geladen ist */
}




.ani_txt_line2,
.ani_txt_line3,
.ani_txt_line4 {
  font-size: clamp(24px, 9vw, 56px);
  color: aliceblue;
  display: inline-block;
  will-change: transform, opacity;
}

.eins {
  height: 100vh; /* Die Sektion füllt immer den ganzen Screen */
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Zentriert den Inhalt perfekt */
  overflow: hidden;
}

.zwei {
    overflow: hidden; /* Verhindert ungewollte Scrollbalken der ganzen Seite */
}


.carousel-container {
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
    height: 600px;
    background-color: #102c103f;
    position: relative;
    display: flex;
    align-items: center;
     pointer-events: auto;
touch-action: pan-y pan-x;
    /* ÄNDERUNG HIER: */
    overflow: hidden;         /* WICHTIG: Nicht 'auto'! */
    scrollbar-width: none;    /* Versteckt Scrollbalken */
    scroll-snap-type: none;   /* Deaktivieren, da GSAP übernimmt */
}

.carousel {
    display: flex;
    height: 100%;
    gap: 10px;
    padding-left: 20px;
    align-items: center;
    flex-wrap: nowrap;
    width: max-content;
   pointer-events: auto;
   touch-action: pan-y pan-x;
}

.carousel-text {
    /* Layout & Flex */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    flex: 0 0 auto;
    
    /* Maße */
    height: 60svh;
    max-height: 600px;
    aspect-ratio: 9 / 16;
    
    /* Box-Modell */
    box-sizing: border-box;
    margin-right: 20px;
    padding: 20px; /* Wichtig: Text klebt nicht mehr am Rand */
    border-radius: 15px;
    border: 5px solid red;
    
    /* Optik */
    background: rgba(255, 255, 255, 0.15);
    color: aliceblue;
    font-size: clamp(16px, 4vw, 26px); /* Text passt sich an */
    
    /* Interaktion & Verhalten */
    pointer-events: auto;
    cursor: pointer;
    touch-action: pan-y pan-x;
    scroll-snap-align: start;
    
    /* Überlauf-Handling */
    overflow: hidden; 
    position: relative;
    transition: none; /* Deaktiviert, da GSAP übernimmt */
}

/* Fix für das letzte Element, damit der Slider nicht springt */
.carousel-text:last-child {
    margin-right: 0;
}

/* Wenn das Gerät breit genug ist (Querformat), schalte um */
@media (orientation: landscape) {
    .carousel-text {
        aspect-ratio: 4 / 3;
        height: 60svh; 
    }
}






/* EINZIGE Definition für das Video */
.carousel-text video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* EINZIGE Definition für das Overlay */
.carousel-text-overlay {
    position: relative; 
    z-index: 1;
    width: 100%;
    padding: 20px; /* Hier das Padding rein, nicht in den Link */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.nav-link {
    /* Layout-Struktur */
    display: flex;              /* Zwingt den Link in eine eigene Zeile */
    width: fit-content;          /* Link wird nur so breit wie der Text + Padding */
    padding: 16px 32px;
    font-size: 1.5rem;
    font-weight: 600;
    color: aliceblue;
    background-color: #142b1265;
    text-decoration: none;
    border-radius: 15px;
}


.carousel-wrapper {
    position: relative;
    width: 100%;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
z-index: 1443;
    background: rgba(12, 4, 44, 0.523);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    color: rgb(235, 233, 240);
    font-size: 20px;
    backdrop-filter: blur(15px);
}

.nav-arrow.left { left: -40px; }
.nav-arrow.right { right: -40px; }



.vier {
    padding-bottom: 50px;
    display: flex;
}

.impressum-content {
    margin-top: auto;
    font-size: 1.8rem;
    width: 100%;
    color: #0d8309;
    background-color: #ccc;
    clear: Left;
    padding: 20px;
}




 .eins { background-color: #0d0431;}
 .zwei { background-color: #000000;}
 .drei { background-color: #29286e;}
 .vier { background-color: #32583f;}


