@font-face {
 font-family: 'Montserrat';
 src: url(/assets/fonts/Montserrat-VariableFont_wght.ttf) format('truetype');
 font-display: swap;
 font-style: normal;
 font-weight: 1 1000;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --color-black: #fff;
  --color-white: #000;
  --color-grey: #777;
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  /* System‑sans until webfont loads */
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

html, body {
  overscroll-behavior: none;
  touch-action: pan-y!important;   
}

body {
  overflow-x: hidden;
}

p {
  margin: 30px 0;
}

/* Vertikale Scroll‑Leiste rechts: füllt sich von unten nach oben */
#scrollProgress{
  position: fixed;
  right: 0;
  bottom: 0;          /* bleibt am unteren Fensterrand verankert */
  width: 4px;         /* Strichbreite */
  height: 0%;         /* wird per JS geändert */
  background: var(--color-black);   /* Schwarz */
  z-index: 10000;
  pointer-events: none;
}

.dark-mode #scrollProgress {
  background: var(--color-white);   /* Weiß */
}

/* Für Webkit-basierte Browser (Chrome, Safari) */

::-webkit-scrollbar {
display: none;
}

/* Für Firefox: Versteckt die Scrollleiste in Firefox */

html { 
  scrollbar-width: none;
}

/* Optional für den gesamten Body / Scrollen bleibt möglich / -ms-overflow-style: none; / Versteckt die Scrollleiste im Internet Explorer und Edge */

body {
  moverflow: auto; 
  -ms-overflow-style: none;
}

.header_img_sec7,
.header_img_sec14,
.header_img_sec20 {
  position: relative;
}

#event,
#incentive,
#concept {
  position: absolute;
  top:55%;
}

.main {
  margin-top:0%;
}

.content, article {
  max-width:80%;
  margin: auto;
}

.content h1 , article h1 {
  font-size:6rem!important;
  text-align: left;
  margin:30px 0;
}

/* Styling for the Scroll-to-Top Button */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: var(--color-black);
    border: 1px solid  var(--color-black);
    color: var(--color-white);
    font-size: 32px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s;
    transform: rotate(-90deg);
}

#scrollToTop:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.dark-mode #scrollToTop {
    background-color: var(--color-white);
    color: var(--color-black);
}

.dark-mode #scrollToTop:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

#scrollToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Blur‑/Blue‑Overlay ---------- */
#scrollOverlay{
  position: fixed;
  inset: 0;                       /* top/right/bottom/left:0 */
  backdrop-filter: blur(6px);     /* eigentliche Unschärfe    */
  opacity: 0;                     /* unsichtbar, bis .active  */
  transition: opacity .25s ease;
  pointer-events: none;           /* nichts blockieren        */
  z-index: 9999;                  /* über allem, außer Modals */
}

#scrollOverlay.active{
  opacity: 1;
}

#headnav {
  position: sticky;
  width: 100%;
  height: 150px;
  z-index: 8;
  background-color: var(--color-white);
}

.dark-mode #headnav {
  background-color: var(--color-black);
}

#intro,
#outro  {
      margin-left: auto!important;
    margin-right: auto!important;
    left: 0!important;
    right: 0!important;
    top: 0!important;
}


#intro h1,
#outro h1 {
  padding-top:15%;
}

#number2 {
  margin-top:100vh;
}

#number3 {
z-index:4;
position: relative;
}

.dark-mode {
  --color-text: var(--color-white);
  --color-background: var(--color-black);
}

/* Style the toggle button */
#toggle {
  position: fixed; /* Fix the position of the button */
  top: 64px; /* Set the bottom position to 10 pixels */
  left: 20px; /* Set the right position to 10 pixels */
  cursor: pointer; /* Change the cursor to a pointer */
  z-index: 9;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-black);
  border: 1px solid  var(--color-black);
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  transform: rotate(90deg);
  opacity: 1;
}

.dark-mode #toggle {
  background-color: var(--color-white);
  border: 1px solid  var(--color-white);
  color: var(--color-black);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
cursor: pointer;
top: 12px;
left: 0;
right: 0;
bottom: 12px;
background-color: transparent;
height: 30px;
width: 30px;
left: 1px;
  bottom: 2px;
border: none!important;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
width: 30px;
  left: 1px;
  bottom: 2px;
  background-color: var(--color-white);
  -webkit-transition: .4s;
  transition: .4s;
}

.dark-mode .slider:before {
  background-color:var(--color-black);
}

.dark-mode .slider:before {
  background-color: var(--color-black);
}

input:checked + .slider {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
  background-color: var(--color-white);
}

.dark-mode input:checked + .slider {
  background-color: var(--color-white);
}

input:focus + .slider {
  border: solid 1px white;
}

input:checked + .slider:before {
  
  background-color: var(--color-black);
}

.dark-mode input:checked + .slider:before {
  background-color: var(--color-black);
}

/* Rounded sliders */
input + .slider.round {
  border-radius: 34px;
  border: solid 1px var(--color-white);
}

.dark-mode input + .slider.round {
  border: solid 1px var(--color-white);
}

input:checked + .slider.round {
  border-radius: 34px;
  border: solid 1px var(--color-white);
}

.slider.round:before {
  border-radius: 50%;
}

.cls-1 {
        fill: #000;
        stroke-width: 0px;
        width:100px;
      }

html {
  font-family: 'Montserrat', var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
}
.no-scroll {
    overflow: hidden;
    position: fixed; /* Verhindert Scrollen */
    width: 100%; /* Verhindert horizontales Scrollen */
}
img {
  width: 100%;
}
body {
  padding: var(--padding);
  max-width: 100vw;
  margin: 0 auto;
}
li {
  list-style: none;
}
a {
  color: var(--color-black);
  text-decoration: none;
}
.dark-mode a {
  color: var(--color-white);
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.ScrollContent {
  top:0;
  position: absolute;
}

.header {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width:100%;
  background-color:var(--color-white);
  z-index: 8;
  top: 47px;
}

.header_img_sec2 img {
  max-width:50%;
}

#number5 {
  z-index: 3;
  position: relative;
}

#flip h2, #flip h3 {
  font-size: clamp(1em, 6vw, 14em);
    font-weight: 900;
}

#flip h2 {
  text-align: left;
  margin: 0 auto;
}

#flip h3 {
    text-align: center;
}

h2#splitcreate {
  line-height:0.75;
  margin-left: auto;
  margin-right: auto;
}

h2.real {
  line-height: 1em;
  text-align: left;
  margin-top: -1.9em!important;
}

.parallex1 {
  height: 95vw;
    overflow: hidden;
}

.parallex2 {
  height: 95vw;
    overflow: hidden;
}

.dark-mode .header {
  background-color: var(--color-black);
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-weight: 900;
  cursor: pointer;
  margin: 0 auto;
  font-size:1.25vw;
  text-transform:uppercase;
  -webkit-animation: text-focus-in 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) 0.5s both;
          animation: text-focus-in 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) 0.5s both;
}

.sup {
  margin-left: 5px;
  margin-top: -5%;
}

.btn-menu {
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 20px;
   padding-left: 0;
   padding-right: 0;
   border: none;
   background-color: transparent;
   color: inherit;
   cursor: pointer;
   transition: 0.3s ease;
   z-index: 19;
    position: fixed;
    top: 64px;
    right: 20px;
    height: 50px;
    width:50px;
    border: 1px solid var(--color-black);
    background-color:var(--color-black);
    border-radius:100%;
}
.menu-open .btn-menu,
.dark-mode .btn-menu {
  background-color:var(--color-white);
}
.dark-mode .menu-open .btn-menu {
  background-color:var(--color-black);
}
 .btn-menu:focus {
   outline: none;

}
 .btn-menu__text {
   margin-left: 10px;
   font-size: 1.125rem;
   font-weight: 700;
   line-height: 1;
}
 .btn-menu__bars {
   display: block;
   position: relative;
   width: 40px;
   height: 5px;
    border-radius: 5px;
   background-color: var(--color-white);
   transition: 0.3s;
}
 .btn-menu__bars:before, .btn-menu__bars:after {
   content: "";
   display: block;
   position: absolute;
   left: 0;
   width: 30px;
   height: 100%;
   margin-left:5px;
    border-radius: 5px;
   background-color: var(--color-white);
   transition: 0.3s;
}
.dark-mode .btn-menu__bars, 
.dark-mode .btn-menu__bars:before, 
.dark-mode .btn-menu__bars:after {
  background-color: var(--color-black);
}

 .btn-menu__bars:before {
   transform: translate(0, -9px);
}
 .btn-menu__bars:after {
   transform: translate(0, 9px);
}
 .menu-open .btn-menu .btn-menu__bars {
   background-color: transparent;
}
 .menu-open .btn-menu .btn-menu__bars:before {
   transform: rotate(45deg);
   width:40px;
   margin-left:0;
   background-color: var(--color-black);
}
 .menu-open .btn-menu .btn-menu__bars:after {
   transform: rotate(-45deg);
   width:40px;
   margin-left:0;
   background-color: var(--color-black);
}
 .dark-mode .menu-open .btn-menu .btn-menu__bars:before {
   transform: rotate(45deg);
   width:40px;
   margin-left:0;
   background-color: var(--color-white);
}
 .dark-mode .menu-open .btn-menu .btn-menu__bars:after {
   transform: rotate(-45deg);
   width:40px;
   margin-left:0;
   background-color: var(--color-white);
}
 
.visually-hidden {
  display:none;
}

nav.menu {
  position: fixed;
  right: -101vw;
  top: 0;
  width: 100vw;
  background-color: var(--color-black);
  height: 100vh;
  z-index: 9;
  padding-top:10vh;
  transition: .75s;
}

.dark-mode nav.menu {
  background-color: var(--color-white);
}

.menu-open nav.menu {
  right:0;
}

.menu-open #headnav {
  height:100vh!important;
  max-height:100vh!important;
}

.menu-open #scrollToTop.visible,
.modalopen #scrollToTop.visible {
  opacity: 0;
}

.imprint {
  opacity: 0;
  display: none;

}

.menu-open .imprint {
  display: block;
  animation:1s ease 0.5s normal forwards 1 fadein;
-webkit-animation:1s ease 0.5s normal forwards 1 fadein;
}

@keyframes fadein{from{opacity:0}
to{opacity:1}
}

@-webkit-keyframes fadein{from{opacity:0}
to{opacity:1}
}

nav.menu a {
      width: 80%;
    display: block;
    margin: auto;
    border-top: 1px solid var(--color-white);
    height: 5vh;
    padding: 5vh 0;
    color:var(--color-white);
    text-transform:uppercase;
    font-weight: bold;
    font-size:3vh;
    text-align: right;
    position: relative;
}

nav.menu a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 5px;
    border-radius: 5px;
  bottom: calc( -5px / 2);
  left: 0;
  background-color: var(--color-white);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.dark-mode nav.menu a {
  border-top: 1px solid var(--color-black);
  color: var(--color-black);
}

.dark-mode nav.menu a::after {
  background-color: var(--color-black);
}

nav.menu a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

nav.menu a:last-child {
  border-bottom: 1px solid var(--color-white);
}

.dark-mode nav.menu a:last-child {
  border-bottom: 1px solid var(--color-black);
}

.imprint {
  color: var(--color-white);
  position: fixed;
  bottom: 20vh;
  right: calc( -100vw - 10% );
  z-index: 19;
  transition: .75s;
}

.dark-mode .imprint {
  color: var(--color-black);
}

.imprint p {
  text-align: right;
}

#headnav .imprint a {
  color: var(--color-white);
}

.dark-mode #headnav .imprint a {
  color: var(--color-black);
}

.menu-open .imprint {
  right:10%;
}

.social {
  padding: 15px .5rem;
  display: contents;
  text-align: center;
}
.social a {
  padding: 1rem .5rem;
}

.imprint a:hover,
.footer a:hover,
p a:hover {
  text-decoration: underline;
  position: relative;
}

.dark-mode p a:hover {
  color: var(--color-black);
}

.dark-mode footer p a:hover {
    color: var(--color-white);
}

.dark-mode footer p {
  color: var(--color-white);
} 

.imprint a:hover,
.footer a:hover,
#number33 a:hover {
  text-decoration: underline;
}

#number33 a:hover {
  color: var( --color-black);
}

#number27 p a::before {
  background-color: var(--color-white);
  content: "";
  display: block;
  width: calc( 100% + 10px);
  height:0;
  position: absolute;
  top:0;
  left:-5px;
  z-index: -1;
  transition: 0.25s all ease;
}

.dark-mode #number27 p a::before {background-color: var(--color-black);}

#number27 p a:hover::before {
  background-color: var(--color-black);
  content: "";
  height:20px;
}

.dark-mode #number27 p a:hover::before {
  background-color: var(--color-white);}

#rollin h3 {
  font-size: clamp(1em, 6vw, 14em);
  font-weight: 900;
  position: absolute;
  top: 0;
  width:100%;
  left:0;
  text-align: center;
}

#rollin {
      height: 100vh;
      overflow: hidden; /* Damit der Text innerhalb der Box abgeschnitten wird */
      position: relative;
    }

    .tiletitle {
      transform-origin: bottom; /* Text wird von unten gedreht */
      overflow: hidden; /* Damit der Text innerhalb der Box abgeschnitten wird */
    }

.parallex2 {
  margin-bottom:50vh;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

h1 {
  font-size: 14rem;
  line-height: 10rem;
  display: table;
  margin: 0 auto 0;
  font-weight: 900;
  font-variation-settings: "wght" 900;
}

h1.sectionhead {
  color:white;
}

h2 {
  display: table;
  margin: 0 auto;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-size:clamp(1em, 14vw, 14em);
  text-align: center;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro ,
.outro {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

#intro h1,
#outro h1 {
  -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1s both;
          animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1s both;
}

/**
 * ----------------------------------------
 * animation text-focus-in
 * ----------------------------------------
 */
@-webkit-keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}
@keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}


#intro h2,
#outro h2 {
 animation: 0.75s top-to-bottom 3s forwards;
 opacity: 0;
font-size: 2.3rem;
margin-top:30px;
 } 

@keyframes top-to-bottom {
 from {
   transform: translateY(-48px);
   opacity: 0;
  }
 to {
   transform: translateY(0);
   opacity: 1;
  }
}

.parallex {
  position: relative;
}

.parallex,
.parallex2,
.parallex3 {
  overflow: hidden;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  padding: 20rem 0 1rem;
  line-height: 1.5em;
  text-align: center;
}
.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,
.footer p {
  color: var(--color-black);
}
.dark-mode .footer ul {
  color: var(--color-black);
}
.footer a:hover {
  text-decoration: underline;
}

.footer .social a {
  margin-top:15px;
}

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

.mobil {
  display:none;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

.references {
    max-width: 100%;
    padding: 0 10%;
    margin: 100px auto;
}

.modtrigger {
    text-decoration: none;
    color: inherit;
    width:100%;
    display: block; /* Falls es inline ist */
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
    text-decoration: none; /* Falls es sich wie ein Link verhält */
}

.modtrigger:hover .reference h3 {
  color: var(--color-black);
  text-shadow: none;
}

.dark-mode .modtrigger:hover .reference h3 {
  color: var(--color-white);
}

.modtrigger:hover .reference h4 {
  text-shadow: var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px;
  color: var(--color-white);
  border-bottom: 1px solid var(--color-black);
}

.reference-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Zwei Spalten */
    gap: 40px 40px; /* Abstand zwischen den Feldern */
}

.modtrigger:nth-child(odd) {
    justify-self: start; /* Linksbündig */
}

.modtrigger:nth-child(even) {
    justify-self: end; /* Rechtsbündig */
}


/* Einzelne Referenz */
.reference {
  box-sizing: border-box; /* Für konsistente Breiten- und Höhenberechnung */
}

/* Grundlegendes Styling für die Referenzen */
.reference {
  background-color: var(--color-black);
  box-sizing: border-box;
  position: relative;
}

.reference {
  background-color: var(--color-white);
}

/* Styling für den Modtrigger-Link */
.modtrigger {
  text-decoration: none;
  color: inherit;
}

/* Grundlegendes Styling für die Modal-Fenster */
.refmodal {
  position: absolute;
  right: -100%;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  overflow: auto;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
   display: flex;
    
    justify-content: center; 
    align-items: stretch; 
    /* flex-flow: row nowrap; */ 
    flex-direction: row; 
    flex-wrap: nowrap; 
    align-content: stretch;
}
.refmodal {

  right: -100%;
    width: 100vw; /* Oder eine sinnvolle Breite */
    height: 100%; /* Passt sich dem Inhalt an */
    background: var(--color-white);
    z-index: 1000;
    overflow: auto;
    display: none; /* Standardmäßig versteckt */
    padding: 20px;
    box-sizing: border-box;
}

.refmodal.visible {
    display: flex; /* Zeigt das Modal an */
    right: 0;
}

.dark-mode .refmodal {
  background: var(--color-black);
}

/* Stellt sicher, dass der Body bei geöffnetem Modal nicht scrollt */
.modal-open {
    width: 100%;
    overflow: hidden;
}

/* Styling für das Schließen-Icon */
.refmodal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-black);
  border: 1px solid var(--color-black);
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  text-align: center;
      font-size: 3em;
    line-height: 1em;
  z-index: 1000;
  transition: all 0.5s;
}

.refmodal .close:hover {
  background-color: var(--color-white);
  border: 1px solid var(--color-black);
  color: var(--color-black);
}

.refmodal {
  display: flex;
  height: 100vh;
  padding: 0;
  box-sizing: border-box;
}

.modtext {
  flex-grow:1;
  padding: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Inhalte vertikal anordnen */
  justify-content: center; /* Vertikale Zentrierung */
  height: 100%; /* Höhe des Containers */
  width: 33.333%;
}

.scroll-wrapper {
    position: relative; /* Positionierung des Containers relativ, um den Button innerhalb zu platzieren */
    width: 100%;
    overflow: hidden; /* Verhindert, dass über den Container hinausgehende Bilder sichtbar sind */
}

.scroll-container {
  flex-grow: 2;
    flex-shrink: 1;
    white-space: normal;
    flex-direction: row;
    display: flex;
    height: 80%;
/*    width: 66.6666%;*/
    padding-top:5%;
    column-gap: 50px;
    transition: transform 0.3s ease-in-out; /* Animierter Übergang beim Scrollen */

}

.scroll-container img {
  flex-shrink: 0;
  object-fit: cover; /* Bild wird zugeschnitten, um den verfügbaren Raum auszufüllen */
  max-width: 90%;
  transition: transform 0.5s ease-in-out;
}

.scroll-right {
  width: 50px;
  height:50px;
    border-radius: 50px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 5px;
    cursor: pointer;
    z-index: 1000;
    font-size: 20px;
    transition: background-color 0.5s ease-in-out;
    font-size: 32px;
    border: 1px solid var(--color-black);
}

.dark-mode .scroll-right,
.scroll-right:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.dark-mode .scroll-right:hover {
  background-color: var(--color-black);
    color: var(--color-white);
}

.close {
  position:relative;
}

.close hr {
  width:33px;
  border-radius:50px;
  position:absolute;
  margin:0;
  top: 21px;
  left: 9px;
  height: 6px;
  background-color: var(--color-white);
}

.close hr.first {
  transform:rotate(-45deg);
}

.close hr.second {
  transform:rotate(45deg);
}

.dark-mode .close hr,
.close:hover hr {
  background-color: var(--color-black);
}

.reference h3,
.reference h4,
.modtext h3,
.modtext h4 {
  font-size: 2rem;
  font-weight: 900;
  transition: all 0.25s ease;
}

.reference h3,
.modtext h3 {
  color:var(--color-white);
  text-shadow: var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px;
  letter-spacing: 3px;
}

.dark-mode .reference h3,
.dark-mode .modtext h3 {
  color:var(--color-black);
  text-shadow: var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px;
  letter-spacing: 3px;
}

.reference h4,
.modtext h4 {
  color: var(--color-black);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-black);
}

.dark-mode .reference h4,
.dark-mode .modtext h4 {
  color: var(--color-white);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-white);
}

.dark-mode .modtrigger:hover .reference h4 {
  text-shadow: var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px, var(--color-white) 0px 0px 2px;
  border-bottom: 1px solid var(--color-white);
  color: var(--color-black);
}

.modtext h4 {
  border-bottom: none;
}

.reference span {
  position: absolute;
  position: absolute;
    right: 5%;
    top: calc(50% - 1em);
    font-weight:bold;
}

.reference span:after {
  content: ' ➜';
  font-size:2em;
      color: var(--color-black);
      transform:rotate(-45deg);
      display: inline-block;
          padding-left: 5px;
}

.dark-mode .reference span:after {
  content: ' ↗';
  font-size:2em;
      color: var(--color-white);
}

#number10,
#number17 {
  position: relative;
  z-index: 3;
}

#number7 h2,
#number14 h2,
#number20 h2 {
  margin-top:clamp(-1em, -10vw, 14em);
    color: var(--color-black);
    z-index: 3;
    position: absolute;
    left: calc( 10% - 10px );
}

.dark-mode #number7 h2,
.dark-mode #number14 h2,
.dark-mode #number20 h2 {
  color: var(--color-white);
}

#number2 h2,
#number9 h2,
#number16 h2,
#number23 h2 {
  line-height:clamp(1em, 10vw, 14em);
}

#number19 .header_img_sec2:empty + #number18 {
    transform: translate(0%, 0%) translate3d(0px, 0px, 0px)!important;
}

#number22 {
  display: table;
  margin: 0 auto;
  height:100vh;
  padding-top: calc(50% - 88px);
}

#number22 h3 {
  font-size:3em;
  letter-spacing: 0.1em;
  color: var(--color-white);
    font-weight: 900;
    text-shadow: var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px, var(--color-black) 0px 0px 2px;
    text-transform: uppercase;
}

.circleblk {
  width:600px;
  margin: 0 auto;
  height: 612px;
  position: relative;
}

.circleblk .bg-image {
  width: 600px;
  height: 612px;
  background-color: var(--color-black);
  -webkit-mask-image: url('../images/gemerf.svg');
  mask-image: url('../images/gemerf.svg');
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  background-repeat: no-repeat;
  mask-size: 90% 90%;
mask-position: center;
  display: block;
  position: absolute;
      transform-origin: 50% 50%;
    -moz-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    -o-transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
}

.dark-mode .circleblk .bg-image {
  background-color: var(--color-white);
}

a.instagram {
  background-color: var(--color-black);
  -webkit-mask-image: url('../icons/instagram.svg');
  mask-image: url('../icons/instagram.svg');
  width:16px;
  height:0;
  display:inline-block;
  background-repeat: no-repeat;
  background-size: cover;
  margin-right:15px;
  margin-left:15px;
  transform: scale(1);
  transition: all 0.25s ease;
}

a.linkedin {
  background-color: var(--color-black);
  -webkit-mask-image: url('../icons/linkedin.svg');
  mask-image: url('../icons/linkedin.svg');
  width:16px;
  height:0;
  display:inline-block;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
    transition: all 0.25s ease;
        mask-repeat: no-repeat;
    mask-size: cover;
}

#headnav a.instagram,
#headnav a.linkedin {
  background-color: var(--color-white);
}

.dark-mode #headnav a.instagram,
.dark-mode #headnav a.linkedin {
  background-color: var(--color-black);
}

a.instagram:hover,
a.linkedin:hover {
  transform: scale(1.5);
}

.dark-mode a.instagram,
.dark-mode a.linkedin {
  background-color: var(--color-white);
}

.blendin {
  position: absolute;
  top:250px;
  left: 160px;
}

.blendin h2 {
  color: var(--color-black);
  opacity: 0;
  top: 1.5rem;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    width: 6vw;
    text-align: center;
    font-size: 3rem;
}

.blendin h2:first-child {
  opacity: 1;
      position: relative;
    top: auto;
}

.parallex4 {
  margin-top:50vh;
  overflow: hidden;
}

#number24,
#number25 {
  width: 50%;
  float: left;

}

#number29 {
  overflow: hidden;
  height:75vh;
}

#number26 {
  overflow: hidden;
  height:50vh;
}

#number26 h1,
#number29 h1 {
  white-space: nowrap;
  margin-top: 60px;
  margin-bottom: 60px;
}

#number26 h1 {
  padding-top:5%;
}

#number29 h1 {
  padding-top:25%;
}

#number27,
#number28 {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Vertikale Zentrierung */
}

#number32 {
  width:30vw;
  margin-top:100vh;
}

#number33 {
  text-align: center;
}

#outro {
  padding-top:25vh;
  height:50vh;
}

.txt_mel, .img_mel_grey,
.txt_sven, .img_sven_grey {
  flex: 1 1 50%;
  box-sizing: border-box;
}

.txt_mel,
.txt_sven {
  padding: 100px;
}

.txt_mel p,
.txt_sven p {
  padding-bottom:15px;
}

.txt_mel p a:hover,
.txt_sven p a:hover {
  text-decoration:none;
  color: var(--color-white);;
}

.img_mel_grey,
.img_sven_grey {
  display: flex;
  justify-content: right;
  align-items: center;
}

.img_mel_grey img,
.img_sven_grey img {
  max-width: 100%;
  height: auto;
  max-height: 100vh;
    width: auto;
}

footer h3 {
  text-align: center;
}


.dark-mode .reference {
  background-color: var(--color-black);
}

.dark-mode .reference h4 {
  border-bottom: 1px solid var(--color-white);
}

.dark-mode #number7 h1, 
.dark-mode #number14 h1, 
.dark-mode #number20 h1,
.dark-mode h1.sectionhead,
.dark-mode .blendin h2,
.dark-mode  #number22 h3 {
  color: var(--color-white);
}

#number13 {
  padding-bottom: 50vh;
}

.dark-mode #number22 h3 {
  text-shadow: 1px 1px 0px var(--color-white), -1px -1px 0px var(--color-white), -1px 1px 0px var(--color-white), 1px -1px 0px var(--color-white);
  color: var(--color-black);
}

.switch.seemobile,
.menmobil {
  display:none;
}

@media (max-width: 1280px) {
  .reference-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .modtrigger:hover .reference h4 {
    text-shadow:none;
    color: var(--color-black);
  }
  .dark-mode .modtrigger:hover .reference h4 {
    text-shadow:none;
    color: var(--color-white);
  }
  .menmobil {
    display:block;
  }
  .invisible {
    display:none;
  }
  #number24, #number25 {
    height:75vh;
  }

  .img_mel, .img_sven, .img_mel img, .img_sven img {
    height:100%;
    width:50vw;
    overflow-x:hidden;
    position: relative;
  }
  .img_mel img, .img_sven img {
    width:auto;
  }
  .img_mel img {
    right:-17vh;
    position: absolute;
  }
  .img_sven img {
    left:-6vh;
    position: absolute;
  }

  #headnav .switch {
    display:none;
  }
  .switch.seemobile {
    display: inline-block;
bottom: 20px;
right: 20px;
position: fixed;
/* width: 40px; */
width: 50px;
height: 50px;
/* border: none; */
border-radius: 50%;
background-color: var(--color-black);
border: 1px solid  var(--color-black);
color: var(--color-white);
font-size: 20px;
cursor: pointer;
transform: rotate(90deg);
z-index:7;
opacity:1;
  }
  .switch.seemobile.hidden {
    opacity: 0;
    transition: all 0.3s;
  }
  .dark-mode .switch.seemobile {
    background-color: var(--color-white);
border: 1px solid  var(--color-white);
  }
  .dark-mode input:checked + .slider {
    background-color: transparent;
  }
  .dark-mode input:checked + .slider:before {
background-color: var(--color-black);
}
  .slider {
    position: absolute;
    cursor: pointer;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 12px;
    background-color: transparent;
    height: 30px;
    width: 30px;
    border:none!important;
    }
    .slider:before {
      height: 30px;
      width: 30px;
    }
    .dark-mode .slider {
      left:-17px;
    }
  .footer {
    padding:20rem 30px 1rem;
  }
  .mobil {
    display:block;
  } 
  body {padding:0;}
  .menu-open .imprint {
    right: 5%;
    left: 5%;
    text-align:center;
  }
  input:checked + .slider:before {
    transform: translateX(18px);
  }
  h1 {
    font-size: 14vw;
    line-height: 0rem;
  }
  .header_img_sec7, .header_img_sec14, .header_img_sec20 {
    height: 70vh;
  }
  .header_img_sec7 img, .header_img_sec14 img, .header_img_sec20 img {
    height: 100%;
width: auto;
margin: 0 auto;
right: 25%;
position: relative;
  }
  #intro {
    padding-top:35%;
  }
  #flip h2{
    font-size:14vw;
  }
  #rollin h3 {
    font-size:2em;
  }
  .header {
        top: 7px;
    left: 30px;
    text-align: left;
  }
  .btn-menu {
    right: 30px;
        top: 25px;
        width: 40px;
        display:none;
  }
  .btn-menu__bars {
    width:40px;
  }
  .btn-menu.menmobil {
    right: auto;
        top: auto;
        bottom:20px;
        left:20px;
        width: 50px;
        display:block;
        padding-left:5px;
  }
  #toggle {
    right: 30px;
        left: auto;
        top: 24px;
        width: 40px;
  }
  .logo {
    font-size: 6.25vw;
    margin-top: 0px;
        margin-left: 0;
        padding-left: 0;
  }
  #headnav {
    height: 100px!important;
width: 100%!important;
max-height: none!important;
  }
  .menu-open .imprint {
    right: 10%;
    left: 10%;
    line-height: 30px;
  }
  #headnav a.instagram, #headnav a.linkedin {margin-top:5px;}
   #intro h1 {
    font-size: 6rem;
    line-height: 5rem;
  }
  #outro h1 {
    font-size: 6rem;
    line-height: 5rem;
    margin-top: 40%;
  }
  #intro h2, #outro h2 {
    font-size: 1rem;
    margin-top: 10px;
  }
  #number2 h2, #number9 h2, #number16 h2, #number23 h2,
  #number3 h2, #number17 h2, #number10 h2 {
    font-size:14vw;
  }
  #number22 {
    padding-top: 80%!important;
padding-left: 5%!important;
padding-right: 5%!important;
word-break: break-all;
width: 90%!important;
  }
  .header_img_sec1 img {
    height: 50vh;
    width:auto;
    margin: 0 auto;
    margin-left: -25%;
  }
  .parallex1,
  .parallex2,
  .parallex3 {
    height: 150vw;
  }
  .reference h3, .modtext h3, .reference h4, .modtext h4 {
    font-size: 4.5vw;
  }
  .reference span {
    color: transparent;
  }
  .refmodal.visible {
    display:block;
  }
  .modtext {
    height:auto;
    width: 100%;
    padding: 50px 20px 20px 20px;
  }
  .txt_mel, .img_mel_grey, .txt_sven, .img_sven_grey {
    flex: 1 1 100%;
  }
  .circleblk .bg-image {
    width:100vw;
    height:100vw;
  }
  .blendin {
    top:20vh;
    left:17%;
  }
  .blendin h2 {
    font-size: clamp(1em, 8vw, 14em);
    top: 0.5rem;
  }
/* Ausblendungen  */
  .header_img_sec2 {
    display:none;
  }
  #number22 h3 {
    font-size: 8vw;
  }
  #number27, #number28 {
    flex-direction: column-reverse;
  }
  .txt_mel, .txt_sven {
    padding: 30px;
  }
  #number29 {
    height:25vh;
  }
  #number32 {
    width: 90%;
  }
  .parallex5 {
    padding-bottom:50px;
  }
  .content, article {
    margin-left: 30px;
  }
  .content h1, article h1 {
    font-size:3em!important;
  }

  .reference h3,
  .modtext h3 {
    color:var(--color-black);
    text-shadow: none;
    letter-spacing: 3px;
    font-size:5vw;
  }

  .dark-mode .reference h3,
  .dark-mode .modtext h3 {
    color:var(--color-white);
    text-shadow: none;
    letter-spacing: 3px;
    font-size:5vw;
  }


@media (max-width: 600px) {
  .references {
    grid-template-columns: 1fr; /* Einspaltiges Layout auf kleineren Bildschirmen */
  }
}
