/* ====================================
   GRUNDLAGEN
==================================== */
body {
  padding: 0;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;

}

.body-1 {
    background-image: url("Assets/01/background1.png");
}

.body-2 {
    background-image: url("Assets/02/Hintergrund_Theaterprojekt2.png");
}

.body-3 {
    background-image: url("Assets/02/2-22_Klo.png");
}

.body-4 {
    background-image: url("Assets/04/4-1_Arztzimmer.png");
}

.body-5 {
    background-image: url("Assets/05/Hintergrund_Theaterprojekt5.png");
}

.body-6 {
    background-image: url("Assets/06/6-1_Arztzimmer.png");
}

audio {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 80vw;
  z-index: 250;
  display: none;
}

.control{
  z-index: 200;
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
}

.loader {
  width: 100px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;

  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 180;
}
@keyframes l3 
{ from {transform: translate(-50%, -50%)}
  to {transform: translate(-50%, -50%) rotate(1turn)}
}


/* ====================================
   BILDER
==================================== */

img {
  position: fixed;
  pointer-events: none;
  display: none;
  opacity: 0;
  /* overflow: hidden; */
  
  z-index: 100;
}

.interaction {
    pointer-events: auto;
}

.overflower {
  overflow: visible;
  max-width: 1000px;
  min-width: 500px;
}

.overflower-wide {
  overflow: visible;
  max-width: 3000px;
  min-width: 1000px;
}

/* Zentrierung */
.img-center {
  top: 50%;
  left: 50%;
}

/* Bild einzeln */
.single {
  max-width: 90vw;
  max-height: 90vh;
}

/* Vollbilder */
.fullscreen {
  object-fit: cover;
  
  width: 100vw;
  max-width: 100vh;
  height: 100vh;
}

.fullscreen-right {
  top: 50%;
  left: 70%;
}

.full-width {
  width: 100vw;
  max-width: 100vh;
  max-height: 100vh;
}

.berg{
  max-width: 95vw;
  max-height: 95vh;
  z-index: 120;
}

.dual {
  left: 50%;
  max-width: 40vh;
  max-height: 40vh;
}
.dual-large {
  left: 50%;
  max-width: 60vh;
  max-height: 60vh;
}
.dual-top { top: 27%; }
.dual-bot { top: 73%; }


.triple {
  left: 50%;
  max-width: 30vh;
  max-height: 30vh;
}
.triple-wide {
  left: 50%;
  max-width: 100vw;
  max-height: 30vh;
}
.triple-top { top: 17%; }
.triple-mid { top: 50%; }
.triple-bot { top: 83%; }


.kreuzwegOL, .kreuzwegOR, .kreuzwegUL, .kreuzwegUR {
    max-width: 50vw;
    max-height: 50vh;
}
.kreuzwegOL { top: 20%; left: 25%; }
.kreuzwegOR { top: 20%; left: 75%; }
.kreuzwegUL { top: 80%; left: 25%; }
.kreuzwegUR { top: 80%; left: 75%; }


.dialog-bg {
  top: 49%;
  left: 50%;
  max-width: 150vw;
  max-height: 150vh;
}

.dialog {
  top: 50%;
  max-width: 80vw;
  max-height: 80vh;
  z-index: 110;
}

.dialog-left { left: 20%; }
.dialog-right { left: 70%; }
.dialog-far-right { left: 85%; }

.z-150 {
  z-index: 150;
}

@media (min-width: 1000px) {
  body {
    background-size: 100vh 100vh;
  }

  .button-container {
    max-width: 60vh;
  }

  .dialog-bg {
    display: none!important;
  }

  .fullscreen-right {
  top: 50%;
  left: 50%;
}
}



/* ====================================
   ANIMATIONEN
==================================== */

/* ----------- FADES ----------- */
.fade-in       { animation: fade 0.5s ease forwards; }
.fade-in-slow  { animation: fade 1.5s ease forwards; }
.fade-out      { animation: fade 0.5s ease forwards reverse;} 
.fade-out-slow { animation: fade 1.5s ease forwards reverse; }
@keyframes fade {
    0%   { transform: translate(-50%, -50%); opacity: 0; }
    100% { transform: translate(-50%, -50%); opacity: 1; }
}

.fade-in-button { animation: fadeInButton 2s ease forwards; }
@keyframes fadeInButton {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.hide { opacity: 0; }
.show { opacity: 1; transform: translate(-50%, -50%); }

.op-30 { animation: op30 1s linear forwards; }
@keyframes op30 {
  from { transform: translate(-50%, -50%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 0.3; }
}
.op-60 { animation: op60 1s linear forwards; }
@keyframes op60 {
  from { transform: translate(-50%, -50%); opacity: 0.3; }
  to   { transform: translate(-50%, -50%); opacity: 0.6; }
}
.op-100 { animation: op100 1s linear forwards; }
@keyframes op100 {
  from { transform: translate(-50%, -50%); opacity: 0.6; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}

/* ----------- POPS ----------- */
.pop-in { animation: pop 0.1s ease-out forwards; }
@keyframes pop {
  from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}
.pop-in-strong {  animation: popInStrong 0.5s ease-out forwards; }
@keyframes popInStrong {
  from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ----------- BLURS ----------- */
.blur-in  { animation: blur 1.5s ease forwards; }
.blur-out { animation: blur 1.5s ease forwards reverse; }
@keyframes blur {
  0% {
    filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.02);
  }
  100% {
    filter: blur(0px);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ----------- PANS ----------- */
.from-left { animation: fromLeft 5s ease-out forwards; }
@keyframes fromLeft {
  0% { transform: translate(-200vw, -50%); opacity: 0; }
  5% {  opacity: 1; }
  100% { transform: translate(-50%, -50%); opacity: 1; }
}
.from-left-small { animation: fromLeftSmall 5s ease-out forwards; }
@keyframes fromLeftSmall {
  from { transform: translate(-100vw, -50%); opacity: 0; }
  5% {  opacity: 1; }
  to   { transform: translate(-50%, -50%);  opacity: 1; }
}
.from-left-mid { animation: fromLeftMid 10s ease forwards; }
@keyframes fromLeftMid {
  0% { transform: translate(-100vw, -50%); opacity: 0; }
  5% {  opacity: 1; }
  100% { transform: translate(-40%, -50%); opacity: 1; }
}

.from-right { animation: fromRight 4s ease forwards; }
.to-right   { animation: fromRight 2s ease forwards reverse; }
@keyframes fromRight {
  0% { transform: translate(200vw, -50%); opacity: 0; }
  5% {  opacity: 1; }
  100% { transform: translate(-50%, -50%); opacity: 1; }
}

.from-top { animation: fromTop 2s ease forwards; }
.to-top   { animation: fromTop 2s ease forwards reverse; }
@keyframes fromTop {
  0% { transform: translate(-50%, -300vh); opacity: 0; }
  5% {  opacity: 1; }
  100% { transform: translate(-50%, -50%); opacity: 1; }
}

.from-bottom { animation: fromBottom 2s ease forwards; }
.to-bottom { animation: fromBottom 2s ease forwards reverse; }
.to-bottom-fast { animation: fromBottom 1s ease forwards reverse; }
@keyframes fromBottom {
    0% { transform: translate(-50%, 150vh); opacity: 0; }
    5% {  opacity: 1; }
    100% { transform: translate(-50%, -50%); opacity: 1; }
}

.pan-schulhof { animation: panSchulhof 8s linear forwards; }
@keyframes panSchulhof {
  0% { transform: translate(250vw, -50%); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translate(-350vw, -50%); opacity: 0; }
}

.pan-flashback { animation: panFlashback 12.5s linear forwards reverse; }
@keyframes panFlashback {
  0% { transform: translate(-100%, -70%) scale(1.4); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(0%, -30%) scale(1.4); opacity: 0; }
}

.pan-klassenzimmer { animation: panKlassenzimmer 6s ease-out forwards; }
@keyframes panKlassenzimmer {
  from { transform: translate(50%, -50%); opacity: 0; }
  5% { opacity: 1; }
  to   { transform: translate(-50%, -50%);  opacity: 1; }
}

.pan-gossip { animation: panGossip 20s linear forwards; }
@keyframes panGossip {
  0% { transform: translate(-250vw, -50%); opacity: 0; }
  5%  { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translate(100vw, -50%); opacity: 0; }
}

.pan-weggehen { animation: panWeggehen 3s linear forwards; }
@keyframes panWeggehen {
  from { transform: translate(60%, -50%); opacity: 0; }
  5%  { opacity: 1; }
  95%  { opacity: 1; }
  to   { transform: translate(-160%, -50%);  opacity: 0; }
}

.pan-abschied { animation: panAbschied 6s linear forwards; }
@keyframes panAbschied {
  from { transform: translate(70%, -50%); opacity: 0; }
  5%  { opacity: 1; }
  95% { opacity: 1; }
  to   { transform: translate(-150%, -50%);  opacity: 0; }
}

.pan-mutter { animation: panMutter 3s ease-out forwards; }
@keyframes panMutter {
  0%   { transform: translate(150%, -50%); opacity: 0; }
  5%   { opacity:1; }
  100% { transform: translate(-70%, -50%);  opacity: 1; }
}

.pan-detail-1 { animation: panDetail 12s linear forwards; }
.pan-detail-2 { animation: panDetail 7s linear forwards; }
@keyframes panDetail {
  0%   { transform: translate(-20%, -50%); opacity: 0; }
  10%  { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translate(-80%, -50%);  opacity: 0; }
}

/* ----------- ROTATES ----------- */
.rotate-450 {
  animation: rotate450 2s ease forwards;
}
@keyframes rotate450 {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-180deg) scale(0.3); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(+270deg) scale(0.5); }
}



/* ----------------------------------------- 
               BUTTONS 
   ----------------------------------------- */
   
@font-face {
    font-family: LexendGiga;
    src: url("wissen/font/LexendGiga-Variable.ttf");
}

.button-container {
    width: 80vw;

    position: relative;
    bottom: 0;
    margin: 50vh auto 0;

    z-index: 250;

    display: none;
}

.button {
    width: 100%;

    position: relative;
    bottom: 0;
    padding: 15px 3%;
    margin: 20px 0;
    
    text-align: center;
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.button-wr {
    flex-direction: column!important;
    border: 5px solid;
    box-sizing: border-box;
    background: white;
}

.button img {
    width: 15%;
    position: relative;
    display: block;
    opacity: 1;
}

.button-wr img {
    width: 100%!important;
    margin-bottom: 10px;
}

.button p {
    font-family: LexendGiga, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    margin: 0;
}

.button-wr p {
    font-size: 0.7rem!important;
}

.col-1 {
    border-color: #FFDE00;
}

.button-weiter-1 {
    background: #FFDE00;
    background: linear-gradient(88deg,rgba(255, 222, 0, 1) 0%, rgba(235, 220, 0, 1) 85%, rgba(196, 217, 0, 1) 100%);
}

.col-2 {
    border-color: #1B7FFF;
}

.button-weiter-2 {
    background: #1B7FFF;
    background: linear-gradient(88deg,rgba(27, 127, 255, 1) 0%, rgba(20, 112, 255, 1) 75%, rgba(0, 70, 255, 1) 100%);
}

.col-3 {
    border-color: #FF3DBD;
}

.button-weiter-3 {
    background: #FF3DBD;
    background: linear-gradient(88deg, rgba(255, 61, 189, 1) 0%, rgba(245, 46, 201, 1) 80%, rgba(214, 0, 238, 1) 100%);
}

.col-4 {
    border-color: #FF3B05;
}

.button-weiter-4 {
    background: #FF3B05;
    background: linear-gradient(88deg, rgba(255, 59, 5, 1) 0%, rgba(243, 43, 5, 1) 80%, rgba(212, 0, 5, 1) 100%);
}

.col-5 {
    border-color: #A526E8;
}

.button-weiter-5 {
    background: #A526E8;
    background: linear-gradient(88deg, rgba(165, 38, 232, 1) 0%, rgba(155, 27, 238, 1) 80%, rgba(128, 0, 255, 1) 100%);
}

.col-6 {
    border-color: #00DCCC;
}

.button-weiter-6 {
    background: #00DCCC;
    background: linear-gradient(88deg, rgba(0, 220, 204, 1) 0%, rgba(0, 229, 193, 1) 80%, rgba(0, 255, 163, 1) 100%);
}

a {
  text-decoration: none;
}

#play-container {
    display: none;
}


