@charset "utf-8";

/* Variablen */
:root {
  --page-bg-color: #e6f5fc;
  --content-bg-color: white;
  --seitenweite: 1200px;

  --blau1: #00ADEA;
  --blau2: #004F6F;
  --rot: #DE4721;

  --default-font-size: 1.0rem;
  --font-size-h1: 1.6rem;
  --font-size-h2: 1.2rem;
  --font-size-h3: 1.0rem;

  --smallscreen-font-size: 0.8rem;
  --smallscreen-font-size-h1: 1.4rem;
  --smallscreen-font-size-h2: 1.0rem;
  --smallscreen-font-size-h3: 0.8rem;


  --default-font-wght: 480;
  --default-font-wght-links: 620;

}

/* Ende Variablen */


/* ################################################### */
/* ################################################### */
/* ################################################### */



/* Fonts */
@font-face {
  font-family: OpenSans;
  src: url(./assets/opensans-variable_wdth-wght.woff2);
}

@font-face {
  font-family: OpenSansItalic;
  src: url(./assets/opensans-italic-variable_wdth-wght.woff2);
}


/* ################################################### */
/* ################################################### */
/* ################################################### */




/* general styling */
html {
  background-color: var(--page-bg-color);
  scroll-behavior: smooth;

}


body {

  /* Typography */
  font-family: OpenSans, sans-serif;
  font-size: var(--default-font-size);
  font-variation-settings: "wght" var(--default-font-wght);

  overflow-wrap: break-word;
  hyphens: auto;

  strong {
    font-variation-settings: "wght" 760;
  }



  max-width: var(--seitenweite);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--content-bg-color);

  box-shadow: 4px 4px 19px 0px #636363;

}

hr {
  border-top: 1px solid var(--blau2);
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}


h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
  font-variation-settings: "wght" 700;
}

h3,
h4,
h5,
h6 {
  font-size: var(--font-size-h3);
  font-variation-settings: "wght" 700;
}

@media screen and (max-width: 800px) {
  h1 {
    font-size: var(--smallscreen-font-size-h1);
    font-variation-settings: "wght" 600;
  }

  h2 {
    font-size: var(--smallscreen-font-size-h2);
    font-variation-settings: "wght" 700;
  }

  h3,
  h4,
  h5,
  h6 {
    font-size: var(--smallscreen-font-size-h3);
    font-variation-settings: "wght" 700;
  }
}

iframe {
  width: 100%;
  border: 2px solid var(--blau1);
  overflow: auto;

}



.date {
  font-size: 0.8rem;
  font-variation-settings: "wght" 700;
  display: flex;
  align-items: center;
  margin-top: 3rem;
}

.date:after {
  content: '';
  flex: 1;
  margin-left: 1rem;
  height: 1px;
  background-color: var(--blau2);
}



a,
a:visited {
  text-decoration: none;
  font-variation-settings: "wght" var(--default-font-wght-links);
  color: var(--blau1)
}

a:hover {
  text-decoration: underline;
  color: var(--blau2)
}


/* CONTENT */
main {
  padding: 20px 30px;
}

main img {
  max-width: 100%;
  border-radius: 5px;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.8rem;
}


/* ################################################### */
/* ###########       INHALTSVERZEICHNIS      ######### */
/* ################################################### */

.inhaltsverzeichnis {

  margin-top: 2rem;
  margin-bottom: 3rem;
  


  table {
    border-collapse: separate;
    border-spacing: 0px;
    min-width: 250px;
    text-align: left;
    color: var(--blau2);
    box-shadow:  10px 10px 15px -8px #afd1de;
    border-radius: 10px;
    
  }

  a, th {
    padding: 0.5rem 1rem 0.5rem 1rem;
  }

  a {
    display: block;
    color: var(--blau2);
    font-size: var(--default-font-size);
    font-variation-settings: "wght" var(--default-font-wght);
    
  }

  a:hover {
    text-decoration: none;
    color: white;
  }



  th {
    border-style: solid solid solid solid;
    border-radius: 10px 10px 0px 0px;
    border-width: 1px;
    border-color: var(--blau1);
    
  }

  td {
    border-style: none solid solid solid;
    border-width: 1px;
    border-color: var(--blau1);
    

  }

  tr:last-child td:last-child {
    border-style: none solid solid solid;
    border-radius: 0px 0px 10px 10px;
    border-color: var(--blau1);
  }

  td:hover {
    background-color: var(--blau1);
    color: white;
    transition: background-color 150ms ease;
  }


}

@media screen and (max-width: 800px) {
  .inhaltsverzeichnis {

    table {
      width: 100%;
      min-width: 50px;
    }

    a, th {
      padding: 0.3rem 0.3rem 0.3rem 0.3rem;
    }

    table, a, td {
      font-size: var(--smallscreen-font-size);
    }
  }

}




/* ################################################### */
/* ################################################### */
/* ################################################### */






/* HEADER */
header {
  margin-top: 30px;
  padding: 28px 28px;
  display: flex;
  justify-content: space-between;
}



#headerrustlogo {
  width: 68%;
  /* Weiten-Verhältnis zw. headerwappen zu headerrustlogo  */
  display: inline-block;
  text-align: left;
}

#headerwappen {
  width: 30%;
  /* Weiten-Verhältnis zw. headerwappen zu headerrustlogo  */
  display: inline-block;
  text-align: right;

}

#headerrustlogo img,
#headerwappen img {
  max-width: 100%;
  max-height: 100%;
  display: inline-block;
}



@media screen and (max-width: 600px) {
  header {
    margin-top: 0px;
    padding: 10px 10px;
  }

}



/* ################################################### */
/* ################################################### */
/* ################################################### */





/* NAVIGATION */


#navbar {
  background-color: var(--blau2);

}

#navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  background-color: var(--blau2);

}

#navbar li {
  display: flex;
  text-align: center;


}

#navbar a {
  display: flex;
  text-decoration: none;
  color: white;
  padding: 0.7rem 2rem;
  transition: background-color 150ms ease;
  align-items: center
}

@media screen and (max-width: 980px) {
  #navbar a {
    padding: 0.7rem 1rem;
  }
}

#navbar a:hover {
  background-color: var(--blau1);
  text-decoration: none;
  color: white;
}

#navbar a.active-link {
  background-color: var(--blau1);
}




#open-sidebar-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  background-color: var(--blau2);
  width: 100%;
  text-align: right;
  padding-right: 1rem;
}

#close-sidebar-button {
  display: none;
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
}

#navigationoverlay {
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
}





/* NAVIGATION MOBILE  */
@media screen and (max-width: 700px) {

  #open-sidebar-button,
  #close-sidebar-button {
    display: block;

  }


  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(20rem, 100%);
    z-index: 10;
    border-left: 1px solid var(--hover-color);
    transition: right 200ms ease-in-out;
  }

  nav.show {
    right: 0;
  }

  nav.show~#navigationoverlay {
    display: block;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
  }

  nav a {
    width: 100%;
    padding-left: 1.5rem;
  }

  nav a.active-link {
    border-bottom: none;
  }

}






/* ################################################### */
/* ################################################### */
/* ################################################### */


















/* GRID */
.grid {
  display: grid;
  grid-gap: 1.2rem;
  width: 100%;
}

.grid img {
  width: 100%;
}

.g5050 {
  grid-template-columns: 1fr 1fr;
}

.g3366 {
  grid-template-columns: 1fr 2fr;
}

.g6633 {
  grid-template-columns: 2fr 1fr;
}

.g333333 {
  grid-template-columns: 1fr 1fr 1fr;

}


.divdemo {
  padding: 10px;
  border-style: solid;
  border-width: 2px;
  border-radius: 8px;
  height: 220px;
}




/* ################################################### */
/* ################################################### */
/* ################################################### */



/* FOOTER */
footer {
  color: white;
  font-size: 0.8rem;
  padding: 20px 20px;

  background-color: var(--blau2);
  background-image: url(./assets/wellen.svg);
  background-repeat: repeat-x;




}

footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: white;

}


footer a:visited {
  color: white;
 
}

footer a {
  color: white;
  line-height: 180%;
}

footer li a {
  color: white;
  line-height: 180%;
}

footer li a:hover {
  color: white;
}


/* ################################################### */
/* ################################################### */
/* ################################################### */






/* Screens */

@media screen and (max-width: 800px) {
  body {
    font-size: var(--smallscreen-font-size);
  }

  figcaption {
    font-size: 0.6rem;
  }


}


@media screen and (max-width: 600px) {

  body {
    font-size: var(--smallscreen-font-size);
    box-shadow: none;
  }



  main {
    padding: 10px 10px;
  }

  .grid {
    display: block;
    width: 100%;

    div {
      margin-top: 1rem;
    }
  }

  .grid img {
    width: auto;
    max-height: 450px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}


/* ################################################### */
/* ################################################### */
/* ################################################### */



/* 3D */

model-viewer {
  width: 100%;
  height: 700px;
  filter: drop-shadow(10px 10px 15px rgb(102, 125, 148));
  /* filter: drop-shadow(0px 30px 15px rgb(87, 87, 87)); */

}

@media screen and (max-width: 600px) {
  model-viewer {
    height: 500px;
  }
}




.Hotspot {
  background: rgb(0, 0, 0);
  border-radius: 22px;
  border: 6px solid white;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px;
  box-sizing: border-box;
  height: 20px;
  padding: 4px;
  position: relative;
  width: 20px;
}

.HotspotAnnotation {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px;
  color: rgba(0, 0, 0, 0.8);
  display: block;

  font-size: 1em;
  left: calc(100% + 1em);
  max-width: 120px;
  overflow-wrap: break-word;
  padding: 0.4em 0.4em;
  position: absolute;
  top: 50%;
  width: max-content;
}