/*
  1. Use a more-intuitive box-sizing model.
*/
@import url("https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,700;1,400&family=Heebo:wght@100;300;400;700&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Montserrat:ital,wght@0,100;0,300;0,400;0,700;1,300;1,400&family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Raleway:ital,wght@0,100;0,300;0,400;0,700;0,800;1,300;1,400&family=Roboto:ital,wght@0,100;0,300;0,400;0,700;1,100;1,300;1,400&family=Work+Sans:ital,wght@0,100;0,300;0,400;0,700;1,100;1,400&display=swap");
*,
*::after,
*::before {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/
body,
html {
  height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
  6. Improve media defaults
*/
canvas,
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
button,
input,
select,
textarea {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
h1,
h2,
h3,
h4,
h5,
h6,
p {
  overflow-wrap: break-word;
}

@media all and (min-width: 1200px) {
  html {
    margin-left: calc(100vw - 100%);
  }
}

body {
  font-family: 'Arimo', sans-serif;
  font-family: 'Lato', sans-serif;
  font-family: 'Montserrat', sans-serif;
  font-family: 'Open Sans', sans-serif;
  font-family: 'Raleway', sans-serif;
  font-family: 'Roboto', sans-serif;
  font-family: 'Work Sans', sans-serif;
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  background-color: #dbe3ec;
}

#wrapper {
  margin: 0 auto;
  min-height: 100%;
  background-color: white;
  width: 1200px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 10px 20px -9px grey;
  position: relative;
}

header {
  background-color: #01a662;
  text-align: center;
  color: white;
  padding: 1rem;
  display: flex;
  min-height: 100px;
  justify-content: space-between;
}

@media all and (max-width: 860px) {
  header {
    flex-direction: column;
  }
}

header .heading-container {
  line-height: 1;
  display: flex;
  gap: 0.25rem;
}

@media all and (max-width: 860px) {
  header .heading-container {
    font-size: 0.8em;
  }
}

header .heading-container h1 {
  text-transform: uppercase;
  align-self: center;
  align-self: flex-end;
}

header .heading-container h1 a {
  color: white;
  text-decoration: none;
}

header .heading-container em {
  font-size: 0.75rem;
  font-style: normal;
  text-align: left;
  display: flex;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  justify-content: flex-end;
  flex-direction: column;
  align-self: flex-end;
  padding-bottom: 0.15rem;
}

.navstart,
nav {
  display: flex;
  gap: 0;
  justify-content: flex-end;
  height: fit-content;
  align-self: center;
  align-self: flex-end;
}

@media all and (max-width: 860px) {
  .navstart,
  nav {
    width: 100%;
    flex-wrap: wrap;
    margin-top: 1em;
  }
}

.navstart a,
nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  border-left: 1px solid #ffffff7a;
}

.navstart a:last-of-type,
nav a:last-of-type {
  border-right: 1px solid #ffffff7a;
}

@media all and (max-width: 600px) {
  .navstart a,
  nav a {
    margin-left: -1px;
    border-right: 1px solid #ffffff7a;
  }
}

.navstart a,
.navstart a:active,
.navstart a:link,
.navstart a:visited,
nav a,
nav a:active,
nav a:link,
nav a:visited {
  color: white;
  padding: 0 0.5em;
  min-width: max-content;
  text-decoration: none;
  /* background-color: #a39d98; */
  /* flex: 1; */
  letter-spacing: 0.05em;
}

.navstart a.active,
.navstart a:active.active,
.navstart a:link.active,
.navstart a:visited.active,
nav a.active,
nav a:active.active,
nav a:link.active,
nav a:visited.active {
  background-color: #29845e;
}

.navstart a:hover,
.navstart a:active:hover,
.navstart a:link:hover,
.navstart a:visited:hover,
nav a:hover,
nav a:active:hover,
nav a:link:hover,
nav a:visited:hover {
  text-decoration: underline;
}

.navstart {
  display: none;
}

@media all and (min-width: 360px) and (min-height: 600px) {
  .navstart {
    clear: both;
    width: 100%;
    display: flex;
    font-size: 1.4rem;
    left: 0;
    box-sizing: border-box;
    z-index: 22;
    backdrop-filter: contrast(1);
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
    font-weight: normal;
    text-transform: uppercase;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1em;
    padding: 0 1em;
  }
  .navstart a,
  .navstart a:active,
  .navstart a:link,
  .navstart a:visited {
    background: #04a963;
    height: 3em;
    border-radius: 3px;
    border: 1px solid darkgreen;
    box-shadow: 2px 2px 5px -1px #4a4a4aa8;
    padding: 0 0.25em;
  }
  .navstart a:hover,
  .navstart a:active:hover,
  .navstart a:link:hover,
  .navstart a:visited:hover {
    text-decoration: none !important;
    background: #005e37;
  }
  .navstart a:last-of-type,
  .navstart a:active:last-of-type,
  .navstart a:link:last-of-type,
  .navstart a:visited:last-of-type {
    border: 1px solid darkgreen;
  }
}

main {
  flex: 1;
  padding: 1rem;
  font-family: 'Heebo', sans-serif;
  font-weight: normal;
  color: #444;
}

@media only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
  main {
    font-weight: 300;
    color: #000;
  }
}

main h2 {
  color: #005e37;
  text-shadow: 2px 2px 2px #043d2630;
  text-align: center;
  margin-bottom: 1rem;
}

main h2 a {
  color: inherit;
  text-decoration: none;
}

@media all and (min-width: 1024px) {
  main {
    padding: 1rem 2rem;
  }
}

main[data-page="start"] {
  padding: 0 !important;
  background-image: url("../img/schalusenbach_panorama@4x.jpg");
  background-image: url("../img/schalusenbach_panorama@4x.webp");
  position: relative;
}

main[data-page="start"]::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px) contrast(0.5) brightness(1.5);
}

main[data-page="start"] h2 {
  text-align: right;
  font-size: 3rem;
  padding-right: 4rem;
  float: right;
  /* width: fit-content; */
  max-width: 800px;
  margin-top: 10%;
  text-transform: uppercase;
  line-height: 1;
  background: white;
  backdrop-filter: blur(4px) contrast(0.5) brightness(1.5);
}

@media all and (min-width: 600px) {
  main[data-page="start"] h2 {
    font-size: 7rem;
  }
}

img {
  clear: both;
  margin: 1em auto;
}

img.left {
  float: left;
  margin: 0 0.5em 0 0;
}

img.right {
  float: right;
  margin: 0 0 0 0.5em;
}

img.left, img.right {
  clear: both;
  max-width: calc(50% - 0.5rem);
  margin-bottom: 0.5rem;
}

@media all and (max-width: 480px) {
  img.left, img.right {
    float: inherit;
    margin: 0.5em auto;
    width: 100%;
    max-width: 100%;
  }
}

@media all and (min-width: 600px) {
  img.left, img.right {
    max-height: 257px;
  }
}

p {
  margin-top: 0.0em;
  margin-bottom: 1.0em;
}

.statistiken th {
  text-align: left;
}

.personenliste dt {
  font-weight: bold;
}

.personenliste dd {
  margin-left: 1em;
  margin-bottom: 1em;
}

.footnotes {
  font-size: 0.8em;
}

.highlight {
  animation-name: highlight;
  animation-duration: 3s;
}

@keyframes highlight {
  from {
    background-color: orange;
  }
  to {
    background-color: inherti;
  }
}

footer {
  color: grey;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.5em;
}

table td {
  padding: 0.25em 0.5em 0.25em 0.25em;
}
