/* CSS Document */
.middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.container {
  position: relative;
  width: 70%;
 text-align: justify;
 text-justify: auto;
 perspective-origin: center;
 padding-top: 15px;
 padding-right: 15px;
 padding-left: 15px;
}

/*#### MEDIA ####*/
@media (min-width:484px){
  .container {
    max-width: 540px;
  }
 .text-size{
    font-size:  60%;
}   
.middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}
}
/*#### MEDIA ####*/
@media (min-width : 484px ){
  .container {
    max-width: 540px;
  }
    .text-size{
        font-size: 50%;
    }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
    .text-size{
        font-size: 80%;
    }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
    .text-size{
        font-size: 100%;
    }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
    .text-size{
        font-size: 150%;
    }
}
    
@media (min-width : 484px ){
  .container, .container-sm {
    max-width: 540px;
  }
    } 
@media (max-width: 100px)
{        .openbtn, .sidenav {
    min-width: 40px;
    font-size: 5px;}
}
 @media (max-width: 484px){
    .container{
        min-width: 120px;
    }   
    }
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body, html {
      height: 100%;
      overflow: hidden;
      font-family: sans-serif;
    }

    .background-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    .bg-image {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 1.5s ease-in-out;
    }

    .bg-image.visible {
      opacity: 1;
    }

    .overlay {
      position: relative;
      z-index: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.00);
      color: white;
      font-size: 2rem;
    }
    
/*############# SIDE NAV */
    
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#main {
  transition: margin-left .5s;
  padding: 16px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}
/*#####################*/
    .nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.nav-link:hover, .nav-link:focus {
  text-decoration: none;
}

.nav-link.disabled {
  color:#000000;
  pointer-events: none;
  cursor: default;
}

    
    
 /*###################*/       
.footer {
   position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   color: white;
   background-color: chocolate;
   text-align: center;
     }
        
.fade-text {
      opacity: 0;
      animation: fadeInOut 15s ease-in-out forwards;
    }

    @keyframes fadeInOut {
      0% { opacity: 0; }
      25% { opacity: 1; }
      75% { opacity: 1; }
      100% { opacity: 0; }
    }


    #oberer-teil {
        background-color:rgba(117,112,112,0.43);
        color: #fff;
        padding: 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    #unterer-teil {
        padding: 20px;
        margin-top: 60px; /* Platz für den oberen Teil */
    }
    /* Stil für den scrollbaren Bereich */
    #scrollbar {
        height: 1200px; /* Höhe des scrollbaren Bereichs */
        overflow-y: auto; /* Vertikales Scrollen aktivieren */
        border: 1px solid #ccc;
        padding: 20px;
        top: 100px;
    }