@import url('https://fonts.googleapis.com/css?family=Lato');

@media only screen and (min-width: 1000px) {
  * {
    scrollbar-width: 5px;
    scrollbar-color: #00000050 #ffffff00;
  }

  *::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  *::-webkit-scrollbar-track {
    background: #ffffff00;
    width: 5px;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #00000050;
    border-radius: 5px;
  }

  *::-webkit-scrollbar-thumb:hover {
    background-color: #00000088;
    border-radius: 5px;
  }

  body {
    font-family: 'aller', sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    overflow-x: hidden;
  }

  body p {
    font-weight: 200;
  }

  header li {
    display: inline-block;
  }

  .navanchor {
    color: #ffffff;
    opacity: 1;
    margin: 35px;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
  }

  .navanchor:hover {
    filter: invert(50%);
  }

  .burger {
    display: none
  }

  #close {
    display: none;
  }

  #corner {
    display: none;
  }

  .navlinks {
    flex-flow: row;
    justify-content: flex-end;
    display: flex;
    margin-right: 40px;
  }

  #headergrafik {
    filter: invert(100%);
    transition: 0, 3s;
    height: 30px;
    float: left;
    margin-right: auto;
    position: fixed;
    top: 30px;
    left: 30px;
    transition: 0.3s;
  }

  #headergrafik:hover {
    opacity: 50%;
  }

  #navbar {
    position: fixed;
    top: 0px;
    left: 0px;
    padding: 20px;
    background-color: #ffffff00;
    width: 100%;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 0 #000000;
  }

  .headerpicture {
    height: 100vh;
    width: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: -1;
  }

  .headerpicture img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
  }

  .top_headline {
    height: 100vh;
    width: 100%;
  }



  .top_headline h1 {
    font-weight: 800;
    text-align: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    letter-spacing: 20px;
    color: #ffffff;
    text-shadow: 0 0 5px #000000;
  }

  .headline h2 {
    letter-spacing: 10px;
    font-size: 30px;
    color: #ffffff;
    text-shadow: 0 0 5px #000000;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.2s
  }

  #links:hover img {
    filter: brightness(60%);
    transform: scale(1.1)
  }


  .imagelinks {
    width: 500px;
    height: 333px;
    border-radius: 5px;
    overflow: hidden;
  }

  .headlinesubpage {
    height: 100vh;
    width: 100%;
    margin-bottom: 0px
  }

  .headlinesubpage p {
    text-align: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    font-size: 50px;
    letter-spacing: 20px;
  }

  .introcontainer {
    width: 60vw;
    background-color: #ffffff;
    text-align: center;
    border-radius: 5px;
    margin: auto;
    margin-bottom: 10vh;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-style: oblique;
    font-size: 18px;
  }

  main {
    text-align: center;
    position: relative;
  }

  #firstmain {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    margin-top: 5vh;
  }

  main a {
    color: grey;
  }

  .maincontainer {
    margin: auto;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #ffffff;
  }

  .subcontainer {
    margin-top: 38px;
    width: 500px;
    overflow: hidden;
    margin: 20px;
    position: relative;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .subcontainer img {
    border-radius: 5px;
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: 0.2s;
  }

  .galeriecontainer {
    padding-top: 22px;
    padding-bottom: 22px;
    padding-left: 50px;
    padding-right: 50px;
    text-align: middle;
    display: flex;
    overflow: auto;
    margin-left: -50px;
    margin-right: -50px;
  }

  .galeriecontainer img {
    height: 300px;
    transition: 0.2s;
  }

  .galeriecontainer img:hover {
    transform: scale(1.1);
    filter: none;
    z-index: 1;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 10px 0 rgba(0, 0, 0, 0.1);
  }

  .maincontainer p {
    text-align: center;
    font-size: 17px;
  }

  .arrowcontainer {
    display: none;
  }

  .arrow {
    display: none;
  }

  .subcontainer p {
    text-align: left;
    font-size: 18px;
  }


  h3 {
    font-size: 30px;
  }

  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 20px;
    background-color: #ffffff;
  }

  .footercontainer {
    padding-top: 20px;
    margin: auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footercolumn {
    padding: 10px;
  }

  footer a {
    text-decoration: none;
    color: black;
    transition: 0.3s;
  }

  footer a:hover {
    color: #9f9f9f;
  }

  footer .grafik {
    margin-right: 10px;
    float: left;
  }

  footer img {
    width: 25px;
  }

  #subpage p {
    text-align: left;
  }

  #subpage {
    padding-left: 20vw;
    padding-right: 20vw;
    display: block;
    text-align: left;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  @media (prefers-color-scheme: dark) {

    * {
      scrollbar-color: #ffffff50 #15151500;
    }

    *::-webkit-scrollbar-track {
      background: #15151500;
    }

    *::-webkit-scrollbar-thumb {
      background-color: #ffffff50;
    }

    *::-webkit-scrollbar-thumb:hover {
      background-color: #ffffff88;
    }

    body {
      background-color: #151515;
      color: white;
    }

    #navbar {
      background-color: #00000000;
    }

    #header_analog {
      background-image: url("startpicture_analog.jpg");
    }

    .introcontainer {
      background-color: #151515;
    }

    .maincontainer {
      background-color: #151515;
    }

    footer {
      background-color: #151515;
    }

    footer a {
      color: white;
    }

    footer a:hover {
      color: grey;
    }

    footer .grafik {
      filter: invert(100%);
    }
  }
}

@media only screen and (max-width: 1000px) {
  * {
    scrollbar-width: 5px;
    scrollbar-color: #ffffff50 #ffffff00;
  }

  *::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  *::-webkit-scrollbar-track {
    background: #ffffff00;
    width: 5px;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #00000050;
    border-radius: 5px;
  }

  *::-webkit-scrollbar-thumb:hover {
    background-color: #00000088;
    border-radius: 5px;
  }

  body {
    font-family: 'aller', sans-serif;
    margin: 0;
  }

  main p {
    font-weight: 200;
  }

  .navanchor {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 30px;
    color: white;
    display: block;
    transition: 0.3s;
    margin: 10px;
  }

  .navlinks #close {
    position: absolute;
    top: 15;
    right: 15px;
    font-size: 60px;
    cursor: pointer;
    color: white;
    text-decoration: none;
  }

  .navanchor:hover,
  #close:hover {
    filter: invert(50%);
  }

  .navlinks {
    height: 100%;
    width: 0px;
    position: fixed;
    z-index: 2;
    top: -16px;
    background-color: #151515;
    overflow-x: hidden;
    transition: 0.3s;
    left: -40px;
  }

  .burger {
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
  }

  .line {
    width: 40px;
    height: 4px;
    background-color: white;
    margin: 7px;
    border-radius: 2px;
    transition: 0.3s;
  }

  #headergrafik {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    filter: invert(100%);
    transition: 0.3s;
    margin: 5px;
    height: 30px;
  }

  #headergrafik:hover {
    opacity: 50%;
  }

  .headerpicture {
    height: 100vh;
    width: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: -1;
  }

  .headerpicture img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
  }

  #corner {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    background-color: #ffffff;
    position: fixed;
    z-index: 0;
    height: 10px;
    top: 100vh;
    margin-top: -5px;
    width: 100%;
  }

  .top_headline {
    height: 60vh;
    width: 100%;
  }

  .top_headline h1 {

    margin-bottom: 0px;
    text-align: center;
    position: relative;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    letter-spacing: 10px;
    color: white;
    text-shadow: 0 0 5px #000000;
  }

  .headline h2 {
    letter-spacing: 10px;
    font-size: 30px;
    color: #ffffff;
    text-shadow: 0 0 5px #000000;
    z-index: 2;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.2s
  }

  #links:hover img {
    filter: brightness(60%);
  }

  #links:hover h2 {
    letter-spacing: 12px;
  }


  .introcontainer {
    width: 60vw;
    background-color: #ffffff;
    text-align: center;
    border-radius: 5px;
    margin: auto;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-style: oblique;
    font-size: 17px;
    margin-top: -10vh;
    margin-bottom: 10vh;
  }

  main {
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .maincontainer {
    margin: auto;
    text-align: middle;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: white;
  }

  #firstmain {
    padding-top: 20px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
  }

  .subcontainer {
    width: 500px;
    overflow: hidden;
    margin-right: 20px;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    position: relative;
    border-radius: 5px;

  }

  .subcontainer img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
    height: auto;
    transition: 0.2s;
  }

  .galeriecontainer {
    text-align: middle;
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    height: 200px;
    overflow: hidden;
  }

  .galeriecontainer a:hover {
    filter: brightness(60%);
    cursor: pointer
  }

  .galeriecontainer a {
    flex: 0 0 33%;
    /* Jeder Link (und damit das Bild) nimmt 50% der Containerbreite ein */
    max-width: 33%;
    width: 33vw;
    height: 33vw;
    display: grid;
    place-items: center;
    overflow: hidden;
  }


  .galeriecontainer img {
    width: auto;
    /* Das Bild füllt den gesamten verfügbaren Platz des Links aus */
    height: auto;
    max-width: 30vw;
    max-height: 30vw;
    /* Beibehaltung des Seitenverhältnisses */
    display: inline-block;
    vertical-align: middle;
  }

  .arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 10px;
    rotate: 45deg;
    margin: 10px;
    cursor: pointer;
  }

  .arrow:hover {
    opacity: 50%;
  }

  .arrowcontainer {
    box-shadow: rgba(0, 0, 0, 0.2) 0px -20px 12px 0px;
    z-index: 5;
    width: 100%;
  }

  .maincontainer p {
    text-align: left;
    font-size: 17px;
  }

  h3 {
    font-size: 30px;
    line-height: 0px;
  }

  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 20px;
    background-color: #ffffff;
  }

  .footercontainer {
    padding-top: 20px;
    margin: auto;
    max-width: 1200px;
    text-align: center;
    z-index: 1;
  }

  .footercolumn {
    padding: 10px;
  }

  footer a {
    text-decoration: none;
    color: black;
    transition: 0.3s;
  }

  footer a:hover {
    color: #9f9f9f;
  }

  footer .grafik {
    position: relative;
    filter: invert(0%);
  }

  footer img {
    width: 25px;
  }

  #subpage {
    padding: 20px;
    display: block;
    text-align: left;
  }

  #subpage p {
    text-align: left;
    text-decoration: none;
  }

  @media (prefers-color-scheme: dark) {

    * {
      scrollbar-color: #ffffff50 #15151500;
    }

    *::-webkit-scrollbar-track {
      background: #15151500;
    }

    *::-webkit-scrollbar-thumb {
      background-color: #ffffff50;
    }

    *::-webkit-scrollbar-thumb:hover {
      background-color: #ffffff88;
    }

    body {
      background-color: #151515;
      color: white;
    }

    .navlinks {
      background-color: #151515;
    }

    #corner {
      background-color: #151515;
    }


    .introcontainer {
      background-color: #151515;
    }

    main a {
      color: grey;
    }

    .maincontainer {
      background-color: #151515;
    }

    .arrow {
      border: solid white;
      border-width: 0 3px 3px 0;
    }


    footer {
      background-color: #151515;
    }

    footer a {
      color: white;
    }

    footer .grafik {
      filter: invert(100%)
    }
  }
}