/* Stylesheet für die Übungswebsite */

/* Allgemeine Stile für die gesamte Webseite */
html {
  background-color: whitesmoke;
  color: black;
  scroll-behavior: smooth;
}

/* Stile für das body-Element */
body {
  background-color: white;
  color: black;
  font-family: sans-serif;
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
}

/* Stile für den Header */
.site-header {
  padding: 2rem 1rem;
}

/* Flexible Grafiken  */
img {
  display: block;

  max-width: 100%;
  height: auto;
}

/* Beschriftungen */
figure { 
  margin: 0;
}
figcaption {
  text-align: center;
  font-size: smaller;
  background-color: #cde;
  padding: 0.5rem 1rem;
}


/* Stile für alle Absätze im Header */
.site-header p {
  margin: 0;
  margin-top: 0.25rem;
}

.site-content {
  line-height: 1.5;
  padding: 0 1rem; 
  margin-bottom: 2rem;
}

/* K07 Solution */
.infoboxen {
  background-color: #C8B2E0;
  padding: 1rem;
}
.infobox {
  text-align: center;
  background-color: white;
  padding: 1rem;
  margin-bottom: 1rem;
}


h1 {
  line-height: normal;
  font-weight: 500;
}

a {
  text-decoration-line: underline; 
  text-decoration-style: solid; 
  text-decoration-thickness: 1px; 
  text-underline-offset: 0.25em; 
} 
a:hover, a:focus {
  text-decoration-style: dashed; 
}

.site-nav {
  background-color: black;
  padding: 0 1rem; 
  margin-bottom: 2rem; 
}

.site-nav ul {
  display: flex;
  list-style: none;
  padding: 0; 
  margin: 0; 
}

.site-nav li {
  flex: 1; 
  max-width: 7rem;
  border-left: 1px solid white; 
}
.site-nav li:last-child {
  border-right: 1px solid white; 
}

.site-nav a {
  display: block; 
  color: white; 
  text-decoration-line: none;
  text-align: center;
  padding: 0.5rem 1rem; 
}
.site-nav a[aria-current],
.site-nav a:hover, 
.site-nav a:focus {
  background-color: #533078;
  text-decoration-line: underline;
  text-decoration-style: solid;
}

.site-footer {
  text-align: right; 
  background-color: black;
  color: white;
  font-size: smaller;
  padding: 0.5rem 1rem;
}
.site-footer a {
  color: white;
  text-decoration-line: none;
}
.site-footer a:hover, 
.site-footer a:focus {
  text-decoration-line: underline; 
  text-decoration-style: solid; 
}