/* ==========================================================================
   1. FIXED HEADER, GLASSMORPHISM & SCROLL-PADDING
   ========================================================================== */

header, .header, #header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

html.html--fixed {
    overflow: hidden;
}

.mod_article, .ce_text {
    scroll-margin-top: 80px;
}


/* ==========================================================================
   2. MOBILE NAVIGATION
   ========================================================================== */

.nav-toggler {
    display: block !important;
}

/* Grundeinstellung: Im geschlossenen Zustand unsichtbar */
.nav--mobile {
    display: none !important;
}

/* Wenn aktiv: Perfekt unter dem Header positioniert, scrollbar und untereinander */
.nav--mobile.nav--mobile--active {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
	
    /* 'top' wird dynamisch vom Nutshell-JS (headerHeight) gesetzt */
    width: 30vH !important;
    height: 50vh !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px 20px !important;
    margin: 0 !important;
}

/* Die innere Contao-Liste (level_1) als vertikale Spalte */
.nav--mobile.nav--mobile--active ul.level_1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* Listenelemente untereinander */
.nav--mobile.nav--mobile--active li {
    display: block !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 10px 0 !important;
    text-align: center !important;
    float: none !important;
}

/* Links füllen den Block aus */
.nav--mobile.nav--mobile--active li a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    float: none !important;
    font-size: 1.1rem;
}


/* ==========================================================================
   3. SUBMENÜ (Dropdown)
   ========================================================================== */

.menu-container {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.menu-container .submenu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column !important;
    align-items: center !important;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 15px;
    list-style: none;
    border-radius: 8px;
    margin: 0;
}

.menu-container.open .submenu {
    display: flex !important;
}

.menu-container .submenu li {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 !important;
    text-align: center !important;
}

.menu-container .submenu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block !important;
    width: 100% !important;
}

.menu-container .submenu li a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   4. FULLSCREEN INTRO OVERLAY & SVG ANIMATION
   ========================================================================== */

.logo-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.logo-intro-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.logo-intro-container {
    width: 80%;
    max-width: 450px;
    padding: 20px;
}

.animated-logo {
    width: 100%;
    height: auto;
    overflow: visible;
}

.logo-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s cubic-bezier(0.4, 0, 0.2, 1) forwards, fillPath 0.5s ease 1.8s forwards;
}

.logo-path.delay-1 {
    animation-delay: 0.3s, 2s;
}

.logo-path.delay-2 {
    animation-delay: 0.6s, 2.2s;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

@keyframes fillPath {
    to { fill: #22325c; }
}



/* ==========================================================================
   5. ALLGEMEINE DESIGN-ANPASSUNGEN & LAYOUTS
   ========================================================================== */



/* Grundlegende Übergänge für das Hover-Verhalten */
.animate.content-gallery ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 15px; /* Abstand zwischen den Bildern (optional anpassbar) */
}

.animate.content-gallery li {
  overflow: hidden; /* Verhindert unsaubere Ränder bei Animationen */
}

.animate.content-gallery img {
  display: block;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

/* 1. Bild, 3. Bild, 5. Bild: Bewegen sich beim Hover nach oben */
.animate.content-gallery li:nth-child(odd) img:hover {
  transform: translateY(-15px);
}

/* 2. Bild, 4. Bild, 6. Bild: Bewegen sich beim Hover etwas weiter oder in die entgegengesetzte Richtung (z.B. -25px) */
.animate.content-gallery li:nth-child(even) img:hover {
  transform: translateY(-25px);
}





.row .ce_columns .line_r{
 border-right: 1px solid #1b1b1b;
 padding-right:	30px;
}


.section-style-1.fullbleed-wrap {
  background: #1b1b1b;
  color: #fff;
}



.content-image.border-r-12 img {
    border-radius: 12px;
}

blockquote h2 {
    display: block;
    width: 80px;
    border-right: 5px solid;
}

.img-round img {
    border-radius: 20px;
}

.nav--main a, 
.nav--main a.trail, 
.nav--main strong.active, 
.nav--main strong.trail, 
.nav--main strong.forward {
    color: #999;
}

.nav--main a {
    color: #22325c;
}

.nav--main {
    font-family: var(--base-font-family-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ce_form {
    --card-padding: 0;
    background-image: url("/files/ulle/lay/bg-image.png");
}

input.text, input.captcha, textarea.textarea, select.select {
    background-color: #666666;
}

p a, ul a, ol a {
    text-decoration: none;
}

.logo {
    padding-bottom: 0px;
}

.mod_article > .inside {
    padding-top: 20px;
    padding-bottom: 20px;
}

.mod_article.fullbleed-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mod_article.fullbleed-wrap .fullbleed-img.wrap {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
    height: 100vh;
}

.mod_article.fullbleed-wrap .fullbleed-img.wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ce_columns.ce_colStart.fullbleed-wrap {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
}

cto-toolbar {
    display: none;
}






.ce_hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.ce_hero .hero__background {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
}

.ce_hero .hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  filter: grayscale(100%);
  transform: scale(1);
  
  transition: filter 3s ease-in-out, transform 3s ease-in-out;
}

.ce_hero.is-colored .hero__background img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

.ce_hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
  z-index: 2;
  pointer-events: none;
}

/* 4. Textinhalt ganz oben */
.ce_hero .hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 3rem;
  box-sizing: border-box;
  color: #ffffff;
}

.hero__description h3,
.hero__description h1,
.hero__description h4{
	font-family: 'Barlow';
	font-weight: 300;
	color: #ffffff;
}
.hero__description h3{
	text-transform: uppercase;
	font-weight: 700 !important;
	font-size: 0.9em;
	letter-spacing: 0.3em;
}
.hero__description h4{
	font-size: 1.1em;
}

/* 1. Den normalen Inhaltsbereich auf 72em zentrieren */
#main > .inside {
  max-width: 72em;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-spacing-sides);
  padding-right: var(--layout-spacing-sides);
}

[id="footer"] > .inside {
  max-width: 74em;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-spacing-sides);
  padding-right: var(--layout-spacing-sides);
}

/* 2. Den Hero-Bereich (Fullbleed) über die volle Bildschirmbreite ausbrechen lassen */
#main .fullbleed-wrap,
#main .ce_hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

/* 3. WICHTIG: Den Textinhalt im Hero wieder auf die 72em einmessen, 
   damit er nicht am linken Rand klebt, während das Bild 100vw breit ist */
.ce_hero .hero__content {
  max-width: 72em;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: var(--layout-spacing-sides);
  padding-right: var(--layout-spacing-sides);
}

[id="wrapper"] {
   margin-top: 80px;
}
/* 1. Die Row selbst bleibt im normalen Layout-Fluss (kein Ausbrechen der Inhalte) */
.row.ce_rowStart.section-style-1 {
  position: relative;
  background-color: transparent !important; /* Verhindert doppelte Hintergrund-Farben */
}

/* 2. Der Hintergrund wird über ein Pseudo-Element exakt auf 100vw gezogen */
.row.ce_rowStart.section-style-1::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw; /* Zentriert das 100vw-Element unabhängig vom Elterncontainer */
  background-color: #333333;
  z-index: -1; /* Legt den Hintergrund hinter den Inhalt */
}