@font-face {
  font-family: 'Noto Sans';
  src: url('../assets/fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Animations */
@keyframes buttonBlink {
    0%, 100% {
        background-color: var(--purple-light);
        color: white;
    }
    50% {
        background-color: white;
        color: var(--purple-dark);
    }
}

:root {
  --purple-dark: rgb(70,34,130);
  --pink: #E31EE6;
  --white: #FFFFFF;
  --black: #000000;
  --purple-mid: #482683;
  --pink-light: #B843BA;
  --purple-light: #7B41E7;
  --category-blue-light: #1DB9DE;
  --category-pink: #CC27DF;
  --category-purple: #7B41E7;
  --category-grey: #B6BFC5;
  --button-border-radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

a {
    text-decoration: none;
    color: var(--purple-mid);
}
a:hover {
    color: var(--purple-light);
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow: hidden; /* Temporarily allow scrolling to see grid */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    user-select: none;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.preloader .logo {
    margin-bottom: 2rem;
    text-align: center;
}

.preloader .logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-dark), var(--pink));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    flex-shrink: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    background-color: var(--white);
}

.header.visible {
    opacity: 1;
    visibility: visible;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 3rem;
    width: auto;
    max-width: 100%;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header .logo {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.header .logo:active {
    transform: scale(0.9);
}

.sound-icon {
    width: 40px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sound-icon:active {
    transform: scale(0.9);
}



.sound-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--purple-mid);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.menu-icon:hover {
  background-color: var(--purple-light);
}

.menu-icon:active {
    transform: scale(0.9);
}

.menu-icon img {
    width: 21px;
    height: 19px;
    object-fit: contain;
}

.menu-icon span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.grid-container {
    flex-grow: 1;
    display: grid;
    padding: 5rem 0rem 0rem 0rem;
    gap: 0rem;
    width: 100%;
    aspect-ratio: 16/9;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(16, 1fr);
    grid-auto-rows: unset;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.grid-container.visible {
    opacity: 1;
    visibility: visible;
}

.grid-item {
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255,255,255,0.1);
    background-color: var(--purple-light);
}



.grid-item.viewed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
   
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.grid-item.viewed:hover::after {
    /*opacity: 0;*/
}

.grid-item-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  z-index: 1;
  overflow: hidden;
}

.grid-item-bg.aligned-top {
  background-position: top;
}

.grid-item-bg.aligned-bottom {
  background-position: bottom;
}

.grid-item .grid-item-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1.0);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.0;
}

.grid-item.touched .grid-item-bg::after {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.grid-item-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.grid-item-bg.aligned-top video {
  object-position: top !important;
}

.grid-item-bg.aligned-bottom video {
  object-position: bottom !important;
}

.grid-item.touched {
    /*transform: scale(1.025);*/
    
    z-index: 500;
    /*opacity: 0.5;*/
}

.grid-item.touched .grid-item-bg {
    /*transform: scale(1.0);
    opacity: 0.25;*/
}

.grid-item-content {
    color: rgba(255, 255, 255, 1.0);
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
    opacity: 0.01;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    width: 100%;
    position: relative;
    z-index: 3;
}

.grid-item.touched .grid-item-content {
    opacity: 1;
}

.grid-item.active .grid-item-content {
   /*opacity: 0;
    transition-delay: 0s;*/
}

/*.grid-item.show {
    opacity: 1;
}

.grid-item {
    opacity: 0;
}
*/
.item-1  { grid-column: 1 / 5;  grid-row: 1 / 5; }   /* Top left, wide */
.item-2  { grid-column: 5 / 9;  grid-row: 1 / 9; }   /* Top center */
.item-3  { grid-column: 9 / 12;  grid-row: 1 / 4; }   /* Top right, small */
.item-4  { grid-column: 12 / 17; grid-row: 1 / 5; }   /* Top right, small */
.item-5  { grid-column: 1 / 5;  grid-row: 5 / 13; }   /* 2nd row, left */

.item-6  { grid-column: 9 / 12;  grid-row: 4 / 9; }   /* 2nd row, center right */
.item-7  { grid-column: 12 / 17; grid-row: 5 / 9; }   /* 2nd row, right */
.item-8  { grid-column: 5 / 8;  grid-row: 9 / 13; }   /* 2nd row, center left */

.item-9  { grid-column: 8 / 11;  grid-row: 9 / 13; }   /* 3rd row, left */
.item-10 { grid-column: 11 / 17;  grid-row: 9 / 13; }   /* 3rd row, center */

.item-11 { grid-column: 1 / 4; grid-row: 13 / 17; }   /* 3rd row, right */
.item-12 { grid-column: 4 / 9;  grid-row: 13 / 17;  }   /* 4th row, left */
.item-13 { grid-column: 9 / 12;  grid-row: 13 / 17;  }   /* 4th row, center left */
.item-14 { grid-column: 12 / 14;  grid-row: 13 / 17;  }   /* 4th row, center right */
.item-15 { grid-column: 14 / 17; grid-row: 13 / 17;  }   /* 4th row, right */


/* --- Responsive & Aspect Ratio Logic --- */

/* Landscape (16:9 forced aspect ratio) */
@media (orientation: landscape) {
    body {
        justify-content: center;
    }
    .grid-container {
        flex-grow: 0;
        /*width: calc((100vh - 11rem) * (16 / 9));*/
        width: calc((100vw));
        height: calc(100vh);
        max-width: calc(100vw);
        /*grid-template-columns: repeat(8, 1fr);
        grid-auto-rows: minmax(50px, 1fr);*/
    }
}

/* Portrait (flowing layout) */
@media (orientation: portrait) {
    body {
        overflow: auto; /* Allow scrolling in portrait mode */
    }
    
    .grid-container {
        aspect-ratio: auto;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px; /* Taller rows in portrait mode */
        min-height: 100vh;
        /*padding: 6rem 1rem 2rem 1rem;*/ /* Reduced padding for mobile */
    }



    
    /*.item-1 { grid-column: span 4; grid-row: span 2; }
    .item-2 { grid-column: span 2; grid-row: span 1; }
    .item-3 { grid-column: span 2; grid-row: span 1; }
    .item-4 { grid-column: span 2; grid-row: span 2; }
    .item-5 { grid-column: span 2; grid-row: span 2; }
    .item-6 { grid-column: span 2; grid-row: span 1; }
    .item-7 { grid-column: span 4; grid-row: span 1; }
    .item-8 { grid-column: span 2; grid-row: span 2; }
    .item-9 { grid-column: span 1; grid-row: span 1; }
    .item-10 { grid-column: span 1; grid-row: span 1; }
    .item-11 { grid-column: span 4; grid-row: span 1; }
    .item-12 { grid-column: span 2; grid-row: span 2; }
    .item-13 { grid-column: span 4; grid-row: span 1; }*/
}



/* Mobile */
@media (max-width: 767px) {

    .header {
        
        padding: 2rem 1rem;
        
    }

    .grid-item-content {
        font-size: 4vw;
    }
    .grid-container {
        padding: 6rem 1rem 1rem 1rem;
        gap: 0.5rem;
    }
}



/* -- Flip Animation Styles -- */

.grid-container.inactive .grid-item:not(.active),
.grid-container.transitioning .grid-item {
    opacity: 0.2;
    pointer-events: none;
}

.grid-item.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    border-radius: 0;
    pointer-events: auto !important;
    opacity: 1 !important;
    cursor: default;
}

.grid-item.active:hover {
    transform: none;
    background-color: #3a1a52;
}


.grid-item .grid-item-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.grid-item .grid-item-bg video.video-left {
  object-position: left;
}

.grid-item .grid-item-bg video.video-right {
  object-position: right;
}

.grid-item.touched .grid-item-bg video {
  opacity: 1.0;
}

.grid-item.playing .grid-item-bg video {
  opacity: 1.0;
}

.close-btn {
    position: absolute;
    top: 5.1rem;
    /*right: 3rem;*/
    right:-40px;
    width: 40px;
    height: 40px;
    /* background: rgba(0,0,0,0.3); */
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 400;
    opacity: 0;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.close-btn:active {
    transform: scale(0.9);
}

.close-btn:before,
.close-btn:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    /*background-color: white;*/
    background-color: var(--purple-dark);
    border-radius: 2px;
}

.close-btn:before {
    transform: rotate(45deg);
}

.close-btn:after {
    transform: rotate(-45deg);
}

.close-btn:hover {
  background-color: var(--purple-light);
}

.close-btn:hover:before,
.close-btn:hover:after {
    background-color: var(--white);
}

#fullscreen-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.95);
}

#fullscreen-overlay.active {
    pointer-events: auto;
}

.grid-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    pointer-events: none;
}
.grid-overlay.active {
    display: block !important;
    pointer-events: auto;
}
.overlay-item {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 201;
    border-radius: 0;
    pointer-events: auto;
    opacity: 1;
    cursor: default;
    box-shadow: 0 0 40px 10px rgba(0,0,0,0.4);
    background-size: cover;
    background-position: center;
}
.overlay-item .close-btn {
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay-item.show-close .close-btn {
    opacity: 0;
    pointer-events: auto;
}

.overlay-item .grid-item-content {
    opacity: 0 !important;
}

.dropdown-menu {
    position: fixed;
    top: 4rem;
    right: 3rem;
    width: 200px;
    background: var(--white);
    color: var(--purple-dark);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 500;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.25s;
}

.dropdown-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0 0rem 0;
}

.dropdown-menu li {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid rgba(70,34,130,0.07);
}

.dropdown-menu li a {
    text-decoration: none;
}

.dropdown-menu li:hover a {
    color: var(--white);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li:hover {
    background: var(--purple-light);
    color: var(--white);
}

.popup-content {
  position: absolute;
  /*top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);*/
  /*width: 90%;
  max-width: 1400px;*/
  width: 100%;
  height: calc(100% - 5rem);
  text-align: left;
  z-index: 310;
  padding: 0rem 0rem 0rem 0rem;
  
  

  top: 5rem; 
  left: 0; 
  /*width: 100vw; height: 100vh;
  z-index: 1000; */ 
  
}

.popup-content-inner {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-sizing: border-box;
}

.popup-title {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
  opacity: 1.0;
  transform: translateY(50px);
  line-height: 1.0;
  pointer-events: auto;
}



.video-container {
  position: absolute;
  width: 100%;
  height: 100%;
  /*max-width: 1200px;*/
  top: 0;
  left: 0;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container.paused {
  pointer-events: none;
}

.video-container .video-overlay{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0.0;
}

.video-container.paused .video-overlay{
    opacity: 0.5;
}

.video-progress-bar {
  position: fixed;
  top: 0rem;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  /*border-radius: 2px;*/
  margin-bottom: 8px;
  overflow: hidden;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

.video-container.paused .video-progress-bar {
  pointer-events: none;
}

.video-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--purple-mid);
  /*border-radius: 30px;*/
  transition: width 0.5s ease-out;
}

.video-player {
  width: 100%;
  height: 100%;
  /*max-width: 1200px;
  max-height: 70vh;*/
  display: block;
  margin: 0 auto;
  border-radius: 0px;
  box-shadow: 0 0 40px 10px rgba(0,0,0,0.4);
  background: #000;
  opacity: 1;
  /*transform: scale(0.95);*/
  object-fit: cover;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.video-play-pause-btn {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.2s ease;
  pointer-events: auto;
  display: none;
}

.video-play-pause-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.video-play-pause-btn svg {
  width: 32px;
  height: 32px;
  color: white;
}

.video-play-pause-btn .play-icon {
  display: none;
}

.video-container.paused .video-play-pause-btn .play-icon {
  display: block;
}

.video-container.paused .video-play-pause-btn .pause-icon {
  display: none;
} 



.stage-bg-holder {
  padding: 4rem 3rem 3rem 3rem;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  opacity: 0;
  background: url('../images/bg-antwort-sceen.jpg') no-repeat center center;
  background-size: cover;
  transition: opacity 0.4s ease;
}

.stage-bg-holder::before {
  content: "";
  display: block; /* Or position: absolute; */
  position: absolute; /* This makes positioning with top/right/bottom/left work */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.50;
  background-color: var(--purple-dark); /* Semi-transparent black */
  /* z-index: 1; */ /* Add if needed to ensure it's above the background */
}

.stage-bg-holder.active {
  opacity: 1;
}
  
  
  .stage-header {
      max-width: 1000px;
      /*margin: 0 auto;*/
    }

    .stage-header h2 {
      max-width: 80ch;
      /*margin: 0 auto;*/
    }

    .stage-header p {
      /*max-width: 70ch;*/
      /*margin: 0 auto;*/
    }
  
  .stage-header p {
    white-space: pre-line;
}

/* Ensure other text elements with translations preserve whitespace */
[data-i18n] {
    white-space: pre-line;
}
  
  .stage-holder {
      padding: 4.5rem 3rem 3rem 3rem;
      pointer-events: none;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      text-align: left;
      opacity: 0;
  }

  
  .stage-holder.active {
      opacity: 1;
      pointer-events: none;
  }

  .stage-holder.active .interface-element {
    opacity: 1;
    pointer-events: auto;
  }
  
  .stage-holder h2 {
  
      color: var(--white);
    font-size: 2.2rem;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    line-height: 1.2;
    letter-spacing: 0.5px;
  
  }

  .stage-holder h3 {
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  .stage-holder p {
  
      color: var(--white);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    
    /*margin: 0 auto;*/
    opacity: 0.9;
    letter-spacing: 0.2px;
  
    margin-bottom: 2rem;
  
  }
  


  .stage-content {
    max-width: 1000px;
    padding-right: 1rem;
    height: auto;
    max-height: calc(100vh - 34.5rem);
    overflow-y: auto;
    padding-right: 3rem;
  }

  .stage-content.thinner {
    max-height: calc(100vh - 36rem);
  }

  .stage-holder.stage-02 .stage-content {
    max-height: calc(100vh - 38rem);
  }

  .stage-holder.active > .stage-content {
    pointer-events: all;
  }

  .stage-holder.active .program-content.active > .stage-content {
    pointer-events: all;
  }


  .stage-content::-webkit-scrollbar {
    width: 20px; /* Width of the scrollbar */
  }
  
  .stage-content::-webkit-scrollbar-track {
    background: #f1f1f114; /* Color of the track */
    border-radius: 5px;
  }
  
  .stage-content::-webkit-scrollbar-thumb {
    background: #ffffffa3; /* Color of the scrollbar thumb */
    border-radius: 5px; /* Roundness of the scrollbar thumb */
    transition: all 0.3s ease;
  }
  
  .stage-content::-webkit-scrollbar-thumb:hover {
    background: #ffffff; /* Color on hover */
  }


  .stage-content {
    scrollbar-width: auto; /* "auto" or "thin" */
    scrollbar-color: #ffffffa3 #f1f1f114; /* thumb color track color */
  }


  .antworten-holder {
    /*width: auto;
    right: auto;*/
    /*width: fit-content;*/
    width: 1000px;
    min-width: 1000px;
    
  }



.antworten-holder h2 {
  
  color: var(--white);
  font-size: 3.0rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 2rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
   margin-left: -0.15rem;
}

.antworten-holder h3 {
  font-size: 1.7rem !important;
  font-weight: 500 !important;
}

.antworten-holder p, .stage-content p {

  font-size: 1.2rem;
  font-weight: 400;

}
  

.program-content h2{
  margin-top: 0.5rem;
  font-size: 2.2rem !important;
  text-transform: none !important;
}



/* --- Stage 01 --- */

.stage-01 {
  opacity: 0;
  /*transition: opacity 0.5s ease;*/
  
}

.stage-01.active {
  opacity: 1;
  
}

.stage-01 .stage-title-01 {
  text-transform: uppercase;
}

.stage-01 .stage-title-02 {
  text-transform: none;

}

.stage-01 .stage-title {
  opacity: 0;
}

.stage-01 .popup-title {
  /*display: none;*/
  text-transform: none;
  
  opacity: 1;
  /*padding: 0px 10px;
  max-width: 40ch;*/
  cursor: pointer;
  
}



.stage-01 .popup-title-01 {
    position: absolute;
    bottom: 10rem;
    /*transform: translateX(-200%);*/
    max-width: 45ch;
}


@keyframes pulseText {
    0% {
      /*transform: scale(1.05);*/
      background-color: var(--purple-dark);
        color: var(--white);
        
    }
    50% {
        /*transform: scale(1);*/
        
        background-color: var(--white);
      color: var(--purple-dark);
    }
    100% {
      /*transform: scale(1.05);*/
      background-color: var(--purple-dark);
        color: var(--white);
        
    }
}

.stage-01 .popup-title div {
    background-color: var(--purple-dark);
    display: inline;
    padding: 0.5rem 1rem;
    /*transition: all 0.3s ease;*/
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 2.0;
    
    max-width: 45ch;
    border-radius: var(--button-border-radius);
    white-space: pre-line;
}

/*.stage-01 .popup-title.animated div {
    animation: pulseText 2s ease-in-out infinite;
}*/

/*.stage-01 .popup-title:hover {
    transform: scale(1.05);
    background-color: var(--white);
    color: var(--purple-dark);
    animation: none; 
    transition: all 0.3s ease;
}

.stage-01 .popup-title:active {
    transform: scale(0.95);
    animation: none;
}*/

.stage-01 .popup-title-02 {
  position: absolute;
  bottom: 10rem;
  right: 3.0rem;
  /*display: flex;*/
  /*transform: translateX(200%);*/
}
/* --- Stage 02 --- */

.stage-02 {
  opacity: 0;
  /*transition: opacity 0.5s ease;*/
  
}

.stage-02.active {
  opacity: 1;
}




  .stage-02 h2 {
    
  }
  
  .stage-02 p {
    
  }
  
  .button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    /*max-width: 700px;*/
    max-width: 1200px;
  }
  
  .topic-button, .text-button {
    background-color: var(--purple-light);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--button-border-radius);
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /*min-width: 300px;*/
  }



  button {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }

  
  .topic-button:hover, .text-button:hover {
    background-color: var(--white);
    color: var(--purple-light);
    /*transform: translateY(-2px);*/
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  .topic-button:active, .text-button:active {
    transform: scale(0.9);
  }
  
  .close-session-button {
    /*position: absolute;
    bottom: 0rem;
    right: 0rem;*/
    z-index: 1000;
    pointer-events: auto;
    opacity: 0.0;
    transition: all 0.3s ease;
  }

  .close-session-button.active {
    opacity: 1.0;
    pointer-events: auto;
    transition: all 0.3s ease;
  }

.next-module-button {
    background-color: var(--black);
    /*position: absolute;
    bottom: 3rem;
    left: 3rem;*/
    z-index: 1000;
    pointer-events: auto;
    opacity: 0.0;
    transition: all 0.3s ease;
    animation: buttonBlink 2s ease-in-out infinite;
}


.next-module-button.active {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s ease;
    animation: buttonBlink 2s ease-in-out infinite;
}

.next-module-button:hover {
    animation: none;
    background-color: white;
    color: var(--purple-dark);
}




/*.next-module-button:hover {
    background-color: var(--purple-dark);
    transform: translateY(-2px);
}

.next-module-button:active {
    transform: translateY(0);
}*/

/* --- Stage 03 --- */


.stage-03 {
    opacity: 0.0;
}

.stage-03.active {
  opacity: 1;
}
  
  
  
  

  .programs-overview {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: start;
    align-items: stretch;
    width: 1500px;
  }
  
  .program-card {
    background: #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    width: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.0;
    scale: 1.0;
    transform: scale(0.2);
}

.program-card.visible {
    opacity: 1.0;
    transform: scale(1.0);
    transition: transform 0.35s cubic-bezier(.59,1.46,.65,1);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.program-card:active {
    /*transform: translateY(-2px);*/
    box-shadow: 0 6px 28px rgba(0,0,0,0.22);
    transform: scale(0.9);
}

.program-card.intro {
    scale: 0.25;
    opacity: 0.0;
}

/* Make the button look integrated with the card */
.program-detail-btn {
    pointer-events: none; /* Let the parent card handle the click */
    /*opacity: 0.7;*/
}

.program-card:hover .program-detail-btn {
   /*opacity: 1;*/
    color: var(--purple-light);
}
  
  .program-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .program-info {
    padding: 1.0rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.3rem;
    height: 100%;
  }
  
  .program-category {
    color: #8d4be4;
    font-weight: 500;
    font-size: 1rem;
  }
  
  .program-title {
    color: #2d1a4d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .program-detail-btn {
    background: none;
    border: none;
    color: var(--black);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-top: auto;
    transition: color 0.2s;
  }
  
  .program-detail-btn:hover {
    color: #e31ee6;
  }

.program-content {
    display: block;
    position: absolute;
    /*display: none;*/
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 100%;
}

.program-content.active {
    
    opacity: 1;
}

.program-content .program-video {
  pointer-events: none;
  
}

.program-video {
  width:100%;
  max-width:800px;
  display:block;
}
@media (max-height: 1000px) {
  .program-video {
    max-width: 550px !important;
  }
}

.program-content.active .program-video {
  pointer-events: auto;
}

.stage-04 {
    opacity: 0;
}

.stage-04.active {
    opacity: 1;
}
/*
.stage-04 .program-content[style*="display: block"] {
    opacity: 1;
}*/

/*.stage-04 .close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  opacity: 1;
  pointer-events: auto;
}*/
/*.stage-04 .stage-header {
  max-width: 1200px;
  margin: 0 auto;
}
.stage-04 h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.stage-04 h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.stage-04 p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}*/

/* Small Popups (Contact, Imprint, etc.) */
.small-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--purple-dark);
}

.small-popup .popup-content {
    position: relative;
    background-color: white;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform-origin: center;
    pointer-events: auto;
    height: fit-content;
    top: 0px;
    min-height: 40%;
    display: flex;
    flex-direction: column;
}

/* Animation classes */
.small-popup.fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.small-popup.fade-out {
    animation: fadeOut 0.2s ease-in-out;
}

.small-popup.fade-in .popup-content {
    animation: scaleIn 0.75s cubic-bezier(.27,1.67,.29,1);
}

.small-popup.fade-out .popup-content {
    animation: scaleOut 0.2s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0;
    }
    to { 
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1;
    }
    to { 
        opacity: 0;
    }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from { 
        transform: scale(1);
        opacity: 1;
    }
    to { 
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Popup Content Styles */

.small-popup .close-btn {
  background-color: var(--purple-dark);
  opacity: 1.0;
  pointer-events: auto;
  transition: all 0.3s ease;
  top: 1.5rem;
  right: 1.5rem;
}

.small-popup .close-btn:hover {
  background-color: var(--purple-light);
}

.small-popup .close-btn:before,
.small-popup .close-btn:after {
  background-color: var(--white);
}

.small-popup .close-btn:hover:before,
.small-popup .close-btn:hover:after {
  background-color: var(--white);
}



.small-popup .contact-title {
    color: var(--purple-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.small-popup .contact-subtitle {
    color: var(--purple-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.small-popup .contact-subheading {
    color: var(--purple-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.small-popup .contact-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.small-popup .contact-info {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.small-popup .contact-info p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.small-popup .contact-info a {
    color: var(--purple-dark);
    text-decoration: none;
}

.small-popup .contact-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.imprint-popup .contact-footer {
    justify-content: flex-end;
}

.small-popup .contact-footer a {
    color: var(--text-color);
    text-decoration: none;
}

.small-popup .contact-footer .copyright {
    color: var(--text-color);
}

.small-popup .imprint-btn {
  transition: all 0.3s ease;
}

.small-popup .imprint-btn:hover {
  color: var(--purple-light);
}

.small-popup .popup-scroll-content {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 2rem;
}

.small-popup .popup-scroll-content p {
  margin-bottom: 1.1rem;
}

.small-popup .popup-scroll-content p {
  color: var(--text-color);
  line-height: 1.6;
}

.small-popup .popup-scroll-content h5 {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 2.0rem;
}

.small-popup .popup-scroll-content::-webkit-scrollbar {
  width: 20px; /* Width of the scrollbar */
}

.small-popup .popup-scroll-content::-webkit-scrollbar-track {
  background: rgb(70 34 130 / 4%); /* Color of the track */
  border-radius: 5px;
}

.small-popup .popup-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(70, 34, 130, 0.9); /* Color of the scrollbar thumb */
  border-radius: 5px; /* Roundness of the scrollbar thumb */
  transition: all 0.3s ease;
}

.small-popup .popup-scroll-content::-webkit-scrollbar-thumb:hover {
  background: rgba(97, 55, 166, 0.9); /* Color on hover */
}


.small-popup .popup-scroll-content {
  scrollbar-width: auto; /* "auto" or "thin" */
  scrollbar-color: rgba(70, 34, 130, 0.9) rgb(70 34 130 / 4%); /* thumb color track color */
}


/* Developer Mode Timer */
.dev-timer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(70, 34, 130, 0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    z-index: 9999;
    min-width: 120px;
    display: none; /* Hidden by default */
    pointer-events: none;
}

.dev-timer.visible {
    display: block;
}

.dev-timer .timer-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dev-timer .timer-count {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.dev-timer .timer-stats {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.dev-timer.warning .timer-count {
    color: #ff9900;
}

.dev-timer.danger .timer-count {
    color: #ff3300;
}

.dev-timer.paused {
    opacity: 0.5;
}

.dev-timer.paused .timer-count::after {
    content: ' (paused)';
    font-size: 12px;
    opacity: 0.8;
}

/* Viewed Modules Counter */
.dev-viewed-modules {
    position: fixed;
    bottom: 20px;
    /*left: 20px;*/
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(70, 34, 130, 0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    z-index: 9999;
    min-width: 200px;
    max-width: 300px;
    display: none; /* Hidden by default */
    pointer-events: none;
}

.dev-viewed-modules.visible {
    display: block;
}



.ui-holder {
  opacity: 0;
}

.ui-holder.active {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.upper-right-ui {
  position: absolute;
  top: 3rem;
  right: 3rem;
  
  pointer-events: none;
  transition: all 0.3s ease;
}
.upper-right-ui.active {

}


.speechbubble-icon {
  width: 130px;
  height: 130px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.speechbubble-icon:active {
  transform: scale(0.9);
}



.speechbubble-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.upper-left-ui {
    position: absolute;
    top: 3rem;
    left: 3rem;
    
    pointer-events: none;
    transition: all 0.3s ease;
}
.upper-left-ui.active {

}

.upper-left-ui .module_title {
  color: var(--white);
  font-size: 1.0rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.3;
}

.lower-right-ui {

  pointer-events: none;
  transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    gap: 1.5rem;
    align-items:center;
}

.lower-right-ui.active {

}

.lower-left-ui {

  pointer-events: none;
  transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    gap: 1.5rem;
    align-items: flex-start;
}

.lower-left-ui.active {

}



.viewed-modules-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.viewed-modules-title {
    font-size: 0.6rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.viewed-modules-list {
    font-size: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.viewed-module-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.viewed-module-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.viewed-module-number {
    color: var(--purple-light);
    min-width: 30px;
}

.viewed-module-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visited-modules-container {
    /*position: absolute;
    bottom: 3rem;
    left: 3rem;*/
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 0.1rem;
    display: flex;
    flex-direction: column;
    font-weight: 600;

}

.visited-modules-container.active {
    opacity: 1;
}

.visited-modules-container h2 {
    color: var(--white);
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: none;
    line-height: 1.3;
}

.visited-modules-container .visited-modules-list {
  display: flex;
  flex-direction: row;
  gap:0.25rem;
  margin-bottom: 1rem;
}

.visited-modules-container .module-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /*max-width: 1000px;*/
    
}

.visited-modules-container .module-number {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    /*clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);*/
    transition: transform 0.3s ease;
    position: relative;
    z-index: 20;
}

.visited-modules-container .module-number::before, .grid-item .module-number::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;

  position: absolute;
  top: 0;
  left: 0;

  z-index: 10;
}

.visited-modules-container .module-number::before, .grid-item .module-number::before {
  background-color: var(--black);
}

.visited-modules-container .module-number[data-category="category_secure_society"]::before, .grid-item .module-number[data-category="category_secure_society"]::before {
    background-color: var(--category-pink);
    /*clip-path: polygon(50% 0%, 0% 100%, 100% 100%);*/
}

.visited-modules-container .module-number[data-category="category_secure_society"] {
  /*margin-right: 0.6rem;*/
}

.visited-modules-container .module-number[data-category="category_secure_society"] .module-number-text, .grid-item .module-number[data-category="category_secure_society"] .module-number-text {
  /*margin-top: 1rem;*/
}

.visited-modules-container .module-number[data-category="category_secure_systems"]::before, .grid-item .module-number[data-category="category_secure_systems"]::before {
    background-color: var(--category-grey);
    /*clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);*/
}

.visited-modules-container .module-number[data-category="category_key_technologies"]::before,.grid-item .module-number[data-category="category_key_technologies"]::before {
    background-color: var(--category-blue-light);
    /*clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);*/
}



.visited-modules-container .module-number[data-category="category_key_technologies"] {
    /*margin-right: 0.6rem;*/
}

.visited-modules-container .module-number-text, .grid-item .module-number-text {
  position: relative;
  z-index: 20;
}

.visited-modules-container .visited-modules-list .category_secure_society {
  color: var(--category-pink);
}

.visited-modules-container .visited-modules-list .category_secure_systems {
  color: var(--category-grey);
}

.visited-modules-container .visited-modules-list .category_key_technologies {
  color: var(--category-blue-light);
  
}



.grid-item .module-number {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  transition: transform 0.3s ease;
  opacity: 0;
  z-index: 5;
}

.grid-item.touched .module-number {
  opacity: 1;
}

/*.grid-item .module-number[data-category="category_secure_society"] {
  background-color: var(--category-pink);
}

.grid-item .module-number[data-category="category_secure_systems"] {
  background-color: var(--category-purple);
}

.grid-item .module-number[data-category="category_key_technologies"] {
  background-color: var(--category-blue-light);
}

.grid-item .module-number .module-number-text {
  transform: translateY(-1px);
}
*/
.grid-item.viewed .module-number {
    opacity: 1;
}

/* Let's Talk Popup Specific Styles */
.lets-talk-popup {
    position: fixed;
    top: 3rem;
    right: 3rem;
    width: 400px;
    z-index: 1000;
    transform: translateX(140%);
    transition: transform 0.3s ease-in;
}

.lets-talk-popup.active {
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(.23,.83,.39,.99);
}

.lets-talk-popup .info-popup-content {
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 0px;
    padding: 22px;
    position: relative;
}

.lets-talk-popup .info-popup-title {
    color: var(--purple-dark);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.lets-talk-popup .info-popup-text {
    color: var(--purple-dark);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 60px;
}

.lets-talk-popup .ok-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--purple-dark);
    color: white;
    padding: 10px 20px;
    border-radius: var(--button-border-radius);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lets-talk-popup .ok-button:hover {
    background-color: var(--purple-light);
}






/*.visited-modules-container .module-number:hover {
    transform: scale(1.1);
}*/