body {
  scroll-behavior: smooth;
}

h1 {
  font-size: 100px;
  margin-bottom: 0;
  text-align: center;
}

.tabs {
  display: flex;
  flex-direction: row;
  width: fit-content;
  margin: 0 auto 20px;
  gap: 20px;
}

.tabs * {
  padding: 5px 10px;
  border: 1px solid #a0a0a0;
  cursor: pointer;
}

.tabs .sel {
  color: var(--main-col);
  border-bottom: 5px solid var(--main-col);
}

main {
  margin: 0 33% 100px;
  width: 50%;
  min-width: 500px;
}

section {
  width: 100%;
  display: none;
}

main.koenige section.koenige {
  display: block;
}

main.kinder section.kinder {
  display: block;
}

main.jugend section.jugend {
  display: block;
}

.entry {
  margin-top: 15px;
  transition: background-color 5s;
}

.entry year {
  font-size: 70px;
  font-weight: 1000;
  font-style: italic;
  position: relative;
  left: -3em;
  top: -.5em;
  height: 0;
  display: block;
  color: var(--light);
}

.entry name {
  font-weight: 600;
  font-size: 30px;
}

.entry .img {
  width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.entry .img img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.entry:not(.expand) .img {
  max-height: 10px;
}

.entry.highlight {
  background-color: #ff0;
  transition: none;
}

aside {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 200px;
  right: -50px;
  width: 100px;
  padding: 5px 10px;
  border: 1px solid var(--light);
  border-radius: 15px;
  max-height: calc(100vh - 300px);
  overflow-y: scroll;
  background: white;
  box-shadow: 0 0 5px var(--light);
}

aside a {
  color: black;
  text-decoration: none;
}

@media screen and (max-width: 869px) {
  main {
    margin: 0 30px 100px;
    width: fit-content;
  }

  h1 {
    line-height: 0.9;
    margin-bottom: 20px;
    font-size: 80px;
  }

  section {
    width: 100%;
    min-width: unset;
  }

  .entry year {
    position: unset;
    height: unset;
    margin-bottom: -30px;
  }

  aside {
    right: -111px;
    transition: all .5s;
  }

  aside:hover,
  aside:active {
    right: -50px;
  }
}

@media screen and (max-width: 869px) and (pointer:coarse) {
  section {
    margin: 0;
    width: calc(100vw - 90px);
  }

  aside {
    right: -70px !important;
  }
}