html {
  background-image: url(../Fotos/Hintergruende/mathe_tafel.jpg);
  background-size: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}

/*Hier wird eine Kombination verschiedener Selektoren verwendet, damit die Bilder in der Bildergalerie nicht verkleinert werden.*/
main p img{
  width: 40%; 
  padding-top: 30px;
}

h1 { 
  margin-bottom: 0;
  margin-top: 0px;
}

h2 {
  text-align: left;
}


h3 {
  padding-bottom: 0px;
  font-size: 25px;
  text-align: left;
}


h4 {
  padding-top: 30px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  font-size: large;
}

img { 
  max-width: 100%; 
  height: auto;
}
  
header {
    font-size:40px;
    background-color: #356f9e;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding:30px;
    align-items: center;
    gap: 25px;
    margin-bottom: 16px;
}


header img {
  width: 90px;
}

header a {
  min-width: 60px; /*Damit das Logo im Banner nicht kleiner wird.*/
}


main {
  margin-left: 13%;
  margin-right: 13%;
  margin-bottom: 1rem;
  margin-top: 1rem;
  
  padding-top: 1rem;
  padding-bottom: 5%;
  padding-left: 6%;
  padding-right: 6%;
  
  background-color: rgba(255,255,255,1);
  text-align:justify;
  font-size:large;
}

/*Styling für die Navigationsleiste*/
.flex_nav ul {
  background-color: rgb(0, 0, 102);
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  z-index: 10000;
}




.flex_nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  display: block;
  padding: 0.5rem 1.25rem;
  margin-right:-1rem;
}

/*Drückt man den Button, so verliert die zweite Navigationsbar die Klasse "navbar". Die Eigenschaften in der folgenden Media-Query treffen dann nicht mehr zu. */
@media screen and (min-width: 665px) {
  .menubutton { display: none !important; }
  .flex_nav .navbar_desk {
    flex-direction: row;
    justify-content: center;
    gap: 25px;
    max-height: 100rem;
    
  }

  .menubutton { display: none !important; }
  .flex_nav .navbar_desk2 {
    flex-direction: row;
    justify-content: center;
    gap: 25px;
    max-height: 100rem;
    background-color: white;
    a{
      color: #356f9e;
    }
    
  }
}


@media screen and (max-width: 665px) {
  .flex_nav .navbar_smart {
    flex-direction: column;
    max-height: 100rem;
    transition: max-height 2000ms;
    width: 250px;
    position: absolute;
    font-size: medium;
    a {
      display: inline-block;
    }

   
  }
}

#current a { 
  background-color: white;
  color:rgb(0,0,102);
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 4px;
  padding: 0.5rem 1.25rem;
  font-weight: bold;
}

/*Hier findet eine Zuweisung per id statt, weil bei einer Klasse die Spezifizität zu gering ist. Die Farbeigenschaft würde durch ".flex_nav .navbar_desk2" 
übertroffen werden.*/
#current2 a { 
    color:rgb(0,0,102);
    background-color: white;
}

.menubutton { 
  display: flex;
  width:100%;
  align-items: center; 
  cursor: pointer;
  background: rgb(0, 0, 102);
  color: white;
  font: inherit;
  font-size: medium;
  text-align: center; 
  padding: 0.5rem 1rem; border: 0; margin: 0; 
}

.menubutton::before {
  content: url(Fotos/menuburger.svg); 
  width: 1rem;
  height: 1rem; 
  margin-right: 0.25rem; 
}

.showmenu.menubutton::before {
  content: url(Fotos/menuclose.svg);
}

.submenubutton {
  background-color: rgb(0,0,102);
  color:white;
  border-style: none;
  font-size: medium;
  font-weight: bold;
  padding: 0.5rem 1.25rem;
  padding-right: 0rem;
  cursor: pointer;
}

#smart_first.first_on {
  max-height: 100rem;
  transition: max-height 2000ms;
  display: flex;
  flex-direction: column;
  background-color: white;

  a {
    color: #356f9e;
    font-size: medium;
  }
}

#smart_second.second_on {
  max-height: 100rem;
  transition: max-height 2000ms;
  display: flex;
  flex-direction: column;
  background-color: white;

  a {
    color: #356f9e;
    font-size: medium;
  }
}



/*Styling für den Fußbereich*/
footer {
  background-color: rgb(0, 0, 102);
  padding: 0.5rem;
  margin: 1rem 0;
  text-align: right;
}

footer a {
  color: white;
  text-decoration: none;
}

footer li {
  display: inline; 
  margin-right: 2.5rem;
}

footer ul {
  display: flex;
  justify-content: flex-end;
  gap: 25px;     
  padding: 0;
  margin-left: 5%;
  margin-top: 0%;
  margin-bottom: 0%;
}

footer ul li:first-child {
  margin-right: auto;
}

/*Zurück-Button (z. B. Hommage, Foto-Gallerie,...)*/
.back {
  padding-bottom: 30px; 
  text-align: left;
}


/*Klassen und Pseudoklassen für die Galerie-Auswahl (Fotos, Rückblicke und Hommage)*/
div.flex_basis {
  display: flex;
  justify-content: space-between;
  padding-bottom: 50px;
  flex-wrap: wrap;
}

div.polaroid1 {
  width: 30%;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin-bottom: 20px;
  border-radius: 6%;
  text-align: center;
  padding: 8px 8px;
}

div.container {
  text-align: center;
  padding: 10px 20px;
  font-weight: bolder;
  font-size: 18px;
}

.polaroid1:hover {
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.polaroid1:active {
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  opacity: 0.5;
}

/*Media-Queries; Weitere, spezielle Media-Queries befinden sich im style-Bereich der HTML-Dokumente "preisträger", "andere Angebote" und "Koordinatoren". */
/*Version für große Tablets*/
@media screen and (max-width: 1200px) {

  header{
    font-size: 30px;
  }

  header img{
    width: 75px;
  }

  main{
    margin-left: 12%;
    margin-right: 12%;
    font-size:medium;
  }

  div.container {
    font-size: 12px;
  }

}

/*Version für mittlere Tablets*/
@media screen and (max-width: 920px){

  header{
    font-size: 22px;
  }

  header img{
    width:60px;
  }

  main{
    margin-left: 8%;
    margin-right: 8%;
    font-size: small;
  }

  nav{
    font-size: x-small;
  }

  footer{
    font-size: x-small;
  }

  div.flex_basis {
    flex-direction: column;
    align-items: center;
  }

  div.container {
    font-size: 18px;
  }

  div.polaroid1 {
      width: 50%;
  }

  h3 {
    font-size: medium;
  }

}

/*Version für kleine Tablets*/
@media screen and (max-width: 719px){

  header{
    font-size: 20px;
  }

  header img{
    width: 60px;
  }


  main {
    margin-left: 0%;
    margin-right: 0%;
    font-size: small;
  }

  nav{
    font-size: xx-small;
  }

  footer {
    font-size: xx-small;
  }

  /*Damit der Strich unter dem ausgewählten Link in der unteren Navigationsbar keinen Overflow verursacht*/
  #current a { 
    text-decoration-thickness: 2px;
  }
}

/*Version für sehr kleine Tablets und große Smartphones*/
@media screen and (max-width: 665px){

  header {
    font-size: 17px;
  }

  footer li {
    display: inline; 
    margin-right: 1.0rem;
  }

  

}

/*Version für Smartphones*/
@media screen and (max-width: 385px) {

  header {
    font-size: 11px;
  }


  main{
    margin-left: -3%;
    margin-right: -3%;
    padding-left: 4%;
    padding-right: 4%;
    font-size: x-small;
  }


  header, 
  nav,
  footer {
    margin-left: -3%;
    margin-right: -3%;
  }


  header img{
    width: 45px;
  }

  header a {
    min-width: 45px;
  }

  footer li {
    display: inline; 
    margin-right: 0.5rem;
  }

  h3 {
    font-size: small;
  }

  div.container {
    font-size: 12px;
  }

}

