  :root {

    --u-white: #fff;
    --u-white2: #f1f1f1;
    --u-litegrey: #ccc;
    --u-greyrev: grey;
    --u-black: #333;
    --u-red: red;
    --u-blue: #007bff;
    --u-yellow: yellow;
    --u-green: green;
    --primar-color: var(--u-white2);
    --second-color: var(--u-black);
    --navhover-color: grey;

  }

  html {
    scroll-behavior: smooth;
  }

  .darkstile {

    --primar-color: var(--u-black);
    --second-color: var(--u-white);
    --u-litegrey: grey;
    --u-greyrev: #ccc;
    --navhover-color: #ccc;


  }


  body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--primar-color);
    transition: 0.75s;
    /*filter: blur(5px);*/

  }

  /* Header-Stil */
  .header {
    background-color: var(--u-black);
    color: var(--u-white);
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    justify-content: left;
    align-items: center;
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, red, yellow, orange, rgb(0, 255, 21), green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157)); 
    border-image-slice: 1; 
    overflow: hidden;
    animation: colorCycle 8s linear infinite;
  }


  @keyframes colorCycle {/*BY JOJO*/
    0% {
      border-image-source: linear-gradient(to right, red, yellow, orange, rgb(0, 255, 21), green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157));
    }
    10% {
      border-image-source: linear-gradient(to right,  rgb(255, 0, 157), red, yellow, orange,  rgb(0, 255, 21), green, rgb(0, 225, 255), blue, rgb(183, 0, 255));
    }
    20% {
      border-image-source: linear-gradient(to right,   rgb(183, 0, 255), rgb(255, 0, 157), red, yellow, orange,  rgb(0, 255, 21), green, rgb(0, 225, 255), blue);
    }
    30% {
      border-image-source: linear-gradient(to right,  blue, rgb(183, 0, 255), rgb(255, 0, 157), red, yellow, orange, rgb(0, 255, 21), green, rgb(0, 225, 255));
    }
    40% {
      border-image-source: linear-gradient(to right, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157), red, yellow, orange, rgb(0, 255, 21), green);
    }
    50% {
      border-image-source: linear-gradient(to right, green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157), red, yellow, orange, rgb(0, 255, 21));
    }
    60% {
      border-image-source: linear-gradient(to right, rgb(0, 255, 21),green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157), red, yellow, orange);
    }
    70% {
      border-image-source: linear-gradient(to right, orange, rgb(0, 255, 21),green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157), red, yellow);
    }
    80% {
      border-image-source: linear-gradient(to right, yellow, orange, rgb(0, 255, 21),green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157), red);
    }
    100% {
      border-image-source: linear-gradient(to right, red, yellow, orange, rgb(0, 255, 21), green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157));
    }
   
  }
  

  .menu-toggle {
    cursor: pointer;
    font-size: 25px;
    padding: 5px;
    margin-right: 20px;
  }

  .logo {
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    
  }

  .logo a {

    text-decoration: none;
    color: var(--u-white);
  }

  #logo_index {
    cursor:help;
  }



  /* Navigationsleiste */
  .navigation {
    width: 250px;
    height: 100%;
    background-color: var(--u-litegrey);
    position: fixed;
    top: 0;
    left: 0;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
  }

  .navigation a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--second-color);
  }

  .navigation a:hover {

    background-color: var(--navhover-color);
  }
  #adate {
    color: var(--second-color);
    border: 1px solid var(--second-color);
    border-radius: 5px;
    padding: 8px;
    margin: 15px;
    text-align: center;
    height: 90px;
    position: absolute;
    bottom: 55px;
    left: 20px;
  }

  /* Hauptbereich */
  .main {
    margin-top: 60px;
    padding: 20px;
    transition: 0.3s;
    display: flex;
    height: calc(100% - 60px);
    margin-left: 250px;
    margin-bottom: 30px;
    transition: 0.5s;
    overflow-x: hidden;
  }

  .video-container {
    flex: 3;
    margin-right: 20px;
    background-color: rgba(0, 0, 0, 0);
    margin-bottom: 15px;
    
  }

  .playvideo {

    position: absolute;
    z-index: 10;
    color: white;
    top: 45%;
    left: 50%;
    font-size: 50px;
    opacity: 0;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;


  }




  .video-item {
    position: relative;
    cursor: pointer;
    
  }

#myVideo{
  border-radius: 10px;
  border: none;
}


  .video-thumbnail {
    width: 100%;
    height: auto;
    border: 2px solid black;
    /*border-radius: 15px;*/
    transition: 0.3s;


  }


  .video-name {
    margin-top: 10px;
    text-align: center;
    color: var(--second-color);
  }

  .video-list {
    flex: 1;
    padding-right: 20px;
    padding: 20px;
    /*border-radius: 15px;
    background-color: var(--u-litegrey);
    overflow-y: scroll;
    min-height: 150px;
    max-height: 750px;*/


  }

  .video-list-item {
    display: flex;
    padding: 5px;
    padding-top: 0;

  }

  .video-list-thumbnail {
    width: 155px;
    height: auto;
    max-height: 105px;
    border-radius: 8px;
    margin-right: 10px;
  }

  .video-list-item:hover {
    scale: 1.075;

  }

  .video-portrait {
    width: auto;
    height: 100%;
    border: 2px solid var(--second-color);
    border-radius: 15px;
    margin-left: 30%;
    transition: 0.3s;
  }

  .video-list-name {
    flex: 1;
    color: var(--second-color);

  }

  #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    /* Standardmäßig ausgeblendet */
    opacity: 0;
    /* Standardmäßig transparent */
    transition: visibility 0s linear 0.5s, opacity 0.5s;
  }

  #loading-overlay.active {
    visibility: visible;
    /* Angezeigt */
    opacity: 1;
    /* Vollständig sichtbar */
    transition-delay: 0s, 0s;
    /* Sofortige Anzeige */
  }

  #loading-overlay img {
    max-width: 100%;
    max-height: 100%;
  }


  #loading-overlay_index {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    visibility: hidden;
    /* Standardmäßig ausgeblendet */
    opacity: 0;
    /* Standardmäßig transparent */
    transition: visibility 0s linear 0.5s, opacity 0.5s;
  }

  #loading-overlay_index.active {
    visibility: visible;
    /* Angezeigt */
    opacity: 1;
    /* Vollständig sichtbar */
    transition-delay: 0s, 0s;
    /* Sofortige Anzeige */
  }

  #loading-overlay_index img {
    max-width: 100%;
    max-height: 100%;
  }

  #fehler_index {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: rgba(0, 0, 0, 1);
    color: white;
    z-index: 9999;
    visibility: hidden;
    /* Standardmäßig ausgeblendet */
    opacity: 0;
    /* Standardmäßig transparent */
    transition: visibility 0s linear 0.5s, opacity 0.5s;
  }

  #fehler_index.active {
    visibility: visible;
    /* Angezeigt */
    opacity: 1;
    /* Vollständig sichtbar */
    transition-delay: 0s, 0s;
    /* Sofortige Anzeige */
  }

  #errtex {
    width: 250px;
    margin-left: 50px;
  }

  .video-container_index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 20px;
    transition: 0.5s;
    width: 100%;
  }

  .video-item_index {
    position: relative;
    cursor: pointer;

  }


  .video-thumbnail_index {
    width: 100%;
    height: auto;
    border-radius: 15px;
    opacity: 1;
    transition: 0.5s;
    height: 200px;



  }

  .video-thumbnail_index:hover {

    opacity: 0.5;
    box-shadow: 0 0 15px 5px var(--second-color);
    scale: 1.075;

  }



  .play-icon {
    position: absolute;
    top: 43%;
    left: 53%;
    transform: translate(-50%, -50%);
    color: var(--u-white);
    font-size: 48px;
    opacity: 0.75;
  }



  .video-item_index:hover .play-icon {
    opacity: 1;
    scale: 1.25;
    transition: 0.5s;
  }

  .video-item_index:not(hover) .play-icon {
    opacity: 0.75;
    scale: 1;
    transition: 0.5s;
  }



  .video-name_index {
    margin-top: 10px;
    text-align: center;
    z-index: 10;
    color: var(--second-color);
  }


  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    width: 300px;
    padding: 20px;
    text-align: center;
    color: var(--u-white);
    display: none;
    transition: 0.5s;
    animation: liteB 2.5s ease-in-out;

  }

  .backmordal {

    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(18, 18, 18, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
  }


  #reloadButt {

    margin-left: 35px;
  }

  .modal-content {
    margin-bottom: 20px;
  }

  button {
    padding: 10px 20px;
    background-color: #007bff;
    border: none;
    color: var(--u-white);
    cursor: pointer;
    border: 1px solid black;
    height: 40px;
  }

  button:hover {

    border: 1px solid var(--u-white);
  }

  #downloadButton {

    margin-left: 10px;
    margin-top: 10px;
  }

  .listItemActive {

    border: 1px solid var(--second-color);
    border-radius: 5px;
    background-color: var(--u-greyrev);
    padding: 5px;
    margin-bottom: 8px;
    height: auto;

    .video-list-name {

      color: var(--primar-color);
    }
  }


  #stilemode {
/*
    position: absolute;
    top: 15px;
    right: 25px;
*/
    cursor: pointer;
  }
  

  .weiterVideo {

    color: var(--second-color);
    border: 1px solid var(--second-color);
    border-radius: 15px;
    min-height: 35px;
    margin: 30px 30%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;

  }

  .weiterVideo a {

    color: var(--second-color);
    text-decoration: none;
    padding: 15px;
    border: 1px solid var(--second-color);
    border-radius: 15px;
    margin: 5px;
    cursor: pointer;
  }

  #Werbebalken {
    display: none;
    color: white;
    border-radius: 10px;
    height: 250px;
    margin-top: 75px;
    margin-left: 20px;
    margin-right: 20px;
    background-image: url(Media/HeadPics/Header_SV001.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
  }

  #Werbebalken:hover {
    
    height: 350px;
    border: 3px solid;
    border-image: linear-gradient(to right, red, yellow, orange, rgb(0, 255, 21), green, rgb(0, 225, 255), blue, rgb(183, 0, 255), rgb(255, 0, 157)); 
    border-image-slice: 1; 
    animation: colorCycle 8s linear infinite;
  }

  #wclose {
    color: white;
    position: absolute;
    top: 90px;
    right: 35px;
    font-size: 32px;
    cursor: pointer;

  }


  #weiterV_back {
    color: #007bff;
    border: none;
    font-size: 25px;
  }

  #weiterV_vor {
    color: #007bff;
    border: none;
    font-size: 25px;
  }


  footer {

    border-top: 2px solid #ccc;
    margin: 20px;
    margin-top: 100px;
    transition: 0.5s;

  }

  footer ul {

    list-style: none;
  }

  footer li {

    padding: 10px;
  }

  footer li a {

    color: var(--second-color);
    text-decoration: none;
    opacity: 0.8;
  }

  footer li a:hover {

    text-decoration: underline 2px solid;
    opacity: 1;
  }

  footer ul h2 {

    color: var(--second-color);
  }

  .footer-ul {

    width: 20%;
  }

  .footer-stuff {

    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    transition: 0.5s;
  }


  #ZVNummer {

    margin-left: 20px;
    width: 80%;
    height: 30px;
    margin-top: 20px;
  }

  #ZVNummerI {

    margin-left: 20px;
    width: 80%;
    height: 30px;
    margin-top: 20px;
  }

  #theVButton {

    margin-left: 25%;
  }

  #BFehler {

    margin-left: 30px;
    color: red;
    font-weight: bold;
  }

  #kopieLink {

    position: fixed;
    bottom: 10px;
    left: 40%;
    color: var(--primar-color);
    background-color: var(--second-color);
    height: 20px;
    padding: 5px;
    border: 1px solid var(--primar-color);
    border-radius: 10px;
    font-family: Arial, sans-serif;
    display: none;
  }

  #pfadwahl {
    position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      height: 250px;
      width: 250px;
      border: 1px solid var(--primar-color);
      border-radius: 10px;
      padding: 10px;
      z-index: 9999999999999999999;
      background-color: var(--second-color);
      color: var(--primar-color);
      visibility: hidden;
  }





  @keyframes scale {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.5);
    }

    100% {
      transform: scale(1);
    }
  }


  /* Media Query für mobile Geräte mit max. Breite 585px */
  @media (max-width: 585px) {

    .video-list,
    .video-item,
    .main {
      display: block;
      width: 95%;
    }

    .video-list {
      padding: 10px;
      width: 90%;
    }

    .video-container {
      width: 100%;
    }

    .video-container_index {
      width: 95%;
      margin: 0 auto;
      display: block;
    }

    .video-portrait {
      width: auto;
      max-width: 100%;
      height: 100%;
      border: 2px solid black;
      border-radius: 15px;
      margin-left: 0;
      transition: 0.3s;
    }

    .weiterVideo {
      margin: 30px 20px;
    }

    .footer-stuff {
      display: block;
      transition: 0.5s;
    }


  }

  @media (min-width: 586px) and (max-width: 768px) {

    .video-list,
    .video-item,
    .main {
      display: block;
      width: 90%;
    }

    .video-list {
      padding: 15px;
      width: 85%;
    }

    .video-container {
      width: 100%;
    }

    .video-container_index {
      width: 90%;
      margin: 0 auto;
      display: block;
    }

    .weiterVideo {
      margin: 30px 20px;
    }

    .footer-stuff {
      display: block;
      transition: 0.5s;
    }



  }

  @media (min-width: 769px) and (max-width: 1024px) {

    .video-list,
    .video-item,
    .main {
      display: block;
      width: 85%;
    }

    .video-list {
      padding: 20px;
      width: 80%;
    }

    .video-container {
      width: 100%;
    }

    .video-container_index {
      width: 85%;
      margin: 0 auto;
      display: block;
    }

    .weiterVideo {
      margin: 30px 20px;
    }

    .footer-stuff {
      display: block;
      transition: 0.5s;
    }


  }


  @keyframes liteB {
    0% {
      transform: scale(0.025);
    }

    100% {}

  }

  /* Weitere Medienabfragen für andere Bildschirmgrößen */