body {
    font-family: monospace;
    background-color: #f0f0f0;
    color: black;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: black;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }
.container {
    flex: 1;
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    grid-template-columns: 1fr 6fr 1fr;
    grid-template-areas:
        "header         header          header"
        "left-aside     banner          right-aside"
        "left-aside     main            right-aside"
        "left-aside     low-content     right-aside"
        "full-low       full-low        full-low"
        "footer         footer          footer";
    grid-gap: 0px;
    padding: 0px;
    font-weight: 100;
    font-size: 20px;
    max-width: 100%;
    
}

header {
  grid-area: header;
  height: 100vh;
  background-color: #f0f0f0;
  display: auto;
  justify-content: center;
  align-items: center;
  position: relative;
}
#code, #output {
    white-space: pre-wrap;
    border: 2px solid #000000;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    height: auto;
    background-color: #1c1f26;
    opacity: 1;
    color: white;
    transition: opacity 2s;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-x: auto;
    font-size: 13px;
    font-weight: 100;
    
}

#output {
    display: none;
    text-align: center;
    font-size: 2em;
}
.comment {
    color: limegreen;
}
.cursor {
    display: inline-block;
    background-color: #61dafb;
    width: 10px;
    height: 20px;
    animation: blink 0.7s steps(2) infinite;
}

@keyframes blink {
    0% {
        background-color: #61dafb;
    }

    50% {
        background-color: transparent;
    }

    100% {
        background-color: #61dafb;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#animation-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffffff;
}

/* Logo-Positionierung */
.logo {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: auto;
    z-index: 1001;
}

.nlogo {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 1000;
}

    .nlogo img {
        width: 40px;
        height: auto;
    }

    .nlogo a {
        display: block;
    }

/* Navigation */
.nav-desktop {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: lightgrey;
    color: white;
    padding: 0px 10px;
    z-index: 999;
}

.nav-desktop a {
    color: black;
    text-decoration: none;
    padding: 30px 0;
    margin-left: 20px;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 28px;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
    width: 100%;
}

.nav-desktop a:last-child {
    margin-right: 40px;
}

.menu-icon {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    z-index: 1002;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

    .menu-icon .bar {
        display: block;
        width: 100%;
        height: 4px;
        background-color: black;
        transition: all 0.3s ease;
    }

.sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #333;
    z-index: 1000;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

    .sidebar.open {
        display: block;
        transform: translateX(0);
    }

    .sidebar a {
        display: block;
        color: white;
        padding: 16px 24px;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

        .sidebar a:hover {
            background-color: #555;
        }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 999;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.sidebar.open {
    animation: slideIn 0.5s forwards;
}

.sidebar.closed {
    animation: slideOut 0.5s forwards;
}


.menu-icon.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background-color: white;
}

.menu-icon.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: white;
}



aside.left {
  grid-area: left-aside;
  background-color: #f0f0f0;
  padding: 10px;
}

aside.right {
  grid-area: right-aside;
  background-color: #f0f0f0;
  padding: 10px;
}


.banner {
  grid-area: banner;
  background-color: #f0f0f0;
  padding: 20px;
  overflow: hidden;
  margin: 0px 0px 100px;
}
.banner h2 {
    text-align: center;
    
}


main {
  grid-area: main;
  background-color: #f0f0f0;
  padding: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  margin: 0px 0px 100px;
}
.content {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 50px;
        padding: 0px;
       
    }




.low-content {
  grid-area: low-content;
  background-color: #f0f0f0;
  padding: 0px;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0px 0px 100px;
}


.full-low {
    grid-area: full-low;
    background-color: black;
    color: white;
    font-size: 24px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    border-radius: 0px;
    padding: auto;
    margin: 0px ;
    gap: 0;
}

.full-low a {
    text-decoration: none;
    color: inherit;
}



.section {
    border-radius: 0px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.0);
    scroll-margin-top: 70px;
    
}
#section1 {
    
}
#section2 {
    
}
#section3 {
    
}
#section4 {
    
}

footer {
  background-color: #333;
  padding: 0px 10px;
  text-align: center;
  color: white;
  font-size: 14px;
  margin-top: auto;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin: 20px auto;
    max-width: 1300px;
    padding: 0 20px;
    box-sizing: border-box;
}

 .grid-item {
     background-color: grey;
     border-radius: 8px;
     padding: 20px;
     text-align: center;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }

        .grid-item img {
            max-width: 80%;
            height: auto;
        }

        .grid-item h2 {
            margin-top: 10px;
            font-size: 18px;
        }

        .grid-item p {
            font-size: 16px;
            margin-top: 8px;
        }




        .slidebox-container {
            position: relative;
            width: 100%;
            max-width: calc(100% - 0px);
            overflow: hidden;
            display: flex;
            margin-top: 100px;
        }

        .slidebox {
            display: flex;
            transition: transform 0.4s ease-in-out;
            width: 100%;
        }

        .slide {
            min-width: 100%;
            box-sizing: border-box;
            padding: 20px;
            background-color: #f0f0f0;
            text-align: center;
            border: 1px solid #000;
        }


        .prev, .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 24px;
            background-color: rgba(0, 0, 0, 0.0);
            color: black;
            border: none;
            padding: 10px;
            cursor: pointer;
            z-index: 1;
        }

        .prev {
            left: 10px;
        }

        .next {
            right: 10px;
        }

.svg-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 100px;
    
   
}

    .svg-container svg {
        width: 100%;
        height: auto;
    }

    .svg-container path {
        fill: none;
        stroke: black;
        stroke-width: 2;
        stroke-dasharray: 4767.199;
        stroke-dashoffset: 4767.199;
        transition: stroke-dashoffset 5s ease;
    }

    .svg-container.animate path {
        stroke-dashoffset: 0;
    }

text {
    font-size: 70px;
    fill: black;
    text-anchor: middle;
    dominant-baseline: middle;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.show {
    opacity: 1;
}

#dateTime {
    color: white;

    padding: 5px;
}

.date {
    font-size: 12px;
}

.time {
    font-size: 20px;
}

@media screen and (max-width: 768px) {
  .container {
    grid-template-rows: auto ;
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "banner"
      "main"
      "low-content"
      "full-low"
      "footer";
  
  }
  aside.left, aside.right {
              display: none;
}
  
  .section {
      padding: 15px;
      scroll-margin-top: 50px;
  }
  
  .grid-container {
      grid-template-columns: repeat(1, 1fr);
  }
  .nav-desktop {
      display: none;
  }
     .nav-mobile {
          display: flex;
          justify-content: flex-end;
          align-items: center;
          gap: 20px;
          position: fixed;
          top: 0;
          width: 100%;
          background-color: rgba(247, 247, 247, 0.1);
          
          color: black;
          padding: 22px 10px;
          z-index: 999;
      }
         @supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
             .nav-mobile {
                 background-color: rgba(247, 247, 247, 0.1);
                 -webkit-backdrop-filter: blur(10px);
                 backdrop-filter: blur(10px);
             }
         }
      .nav-mobile a {
          color: black;
          text-decoration: none;
          padding: 10px 0;
          margin-left: 20px;
          position: relative;
      }
          
      
       .menu-icon {
           display: flex;
           top: 10px;
           flex-direction: column;
           justify-content: space-between;
           padding: 0px;
           margin-top: 0px;
           height: 24px;
       }
       .nav-button {
           display: none;
       }
       
       .logo {
           top: 0px;
           }
       .nlogo {
           display: none;
       }

       #output {
           font-size: 1em;
       }
       .slidebox-container {
                       max-width: 100%;
                       overflow-x: auto; /* Allow horizontal scroll */
                   }

                   .prev, .next {
                       display: none;
                   }
    #dateTime {
                       top: 0px;
                       padding: 1px;
                   }

                   .date {
                       font-size: 8px;
                   }

                   .time {
                       font-size: 14px;
                   }
       
       footer {
         font-size: 10px;
         
       }
