:root {
  --main-col: #00790f;
  --dark: #111;
  --dark-grey: #555;
  --grey: #777;
  --lighter: #999;
  --light: #aaa;
  --bright: #eee;
  --white: #fff;
  --transparent-white: #fff3;
  --lime: #1ae056;
  --red: #f14014;
}

@font-face {
  font-family: Catamaran;
  src: url(/Catamaran.ttf);
}

body {
  font-family: Catamaran, Helvetica, sans-serif;
  margin: 0;
  padding-top: 150px;
  overflow-x: hidden;
  transition: padding-top .5s;
}

body.scrolled {
  padding-top: 100px;
}

header {
  height: 150px;
  width: 100vw;
  position: fixed;
  top: 0;
  background-color: var(--main-col);
  padding-right: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: right;
  box-shadow: 0 -15px 20px 22px black;
  color: white;
  transition: all .5s;
  z-index: 99
}

body.scrolled header {
  height: 100px;
}

header .logo {
  filter: drop-shadow(0 0 10px black);
  position: absolute;
  top: 20px;
  left: 30px;
  height: 200px;
  transition: all .5s;
}

body.scrolled header .logo {
  height: 150px;
}

header .links {
  display: flex;
}

header .links .menuicon {
  display: none;
  width: 50px;
  min-height: 50px;
  flex-direction: column;
  justify-content: space-between;
  margin: 50px auto;
  transition: margin .5s;
}

body.scrolled header .links .menuicon {
  margin: 25px auto;
}

header .links .menuicon bar {
  display: block;
  width: 100%;
  background-color: white;
  height: 10px;
  border-radius: 5px;
  transform-origin: 0 center;
  transition: all .2s;
}

header .link {
  padding: 50px 30px;
  transition: all .5s;
}

header a {
  font-weight: 800;
  font-size: 150%;
  color: white;
  text-decoration: none;
  transition: all .5s;
}

body.scrolled header .link {
  padding: 30px;
}

header .link a:hover {
  transform: scale(.9);
  text-shadow: 0 0 3px white;
}

header .link .sub {
  height: 0;
  position: relative;
  top: 20px;
  background: var(--dark);
  overflow: hidden;
  padding: 0 10px;
  padding-top: -80px;
  margin-top: -20px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 0 10px black;
  transition: all .5s ease;
}

header .link:hover .sub,
header .link.expand .sub {
  height: inherit;
  padding: 10px;
}

header .link .sub a {
  font-size: 115%;
}

header .link.search a {
  width: 1.2em;
  aspect-ratio: 1;
  display: block;
  background-image: url(/icon/search.svg);
  background-size: cover;
  background-repeat: no-repeat;
  translate: 0 -7px;
}

body.scrolled header .link.search a {
  translate: 0 -3px;
}

header .link.search {
  padding-right: 20px;
  display: flex;
  align-items: center;
}

.searchbar {
  position: fixed;
  width: min(500px, 80vw);
  left: calc(50vw - min(500px, 80vw) / 2);
  height: 80px;
  top: 0;
  background-color: var(--bright);
  z-index: 98;
  border-radius: 0 0 10px 10px;
  transition: all 1s cubic-bezier(.96, .01, .52, .5);
}

.searchbar.open {
  top: 150px;
  box-shadow: 0 0 10px 2px black;
  transition-timing-function: cubic-bezier(.41, .84, 0, 1);
}

body.scrolled .searchbar.open {
  top: 100px;
}

.searchbar form {
  width: 100%;
  height: 100%;
}

.searchbar input {
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.searchbar input[type="text"] {
  width: 80%;
  box-sizing: border-box;
  padding-left: 20px;
}

.searchbar input[type="submit"] {
  width: 20%;
  float: right
}

.searchbar input:focus-visible {
  border: none;
  outline: none;
}

footer {
  width: 100vw;
  height: fit-content;
  background: var(--main-col);
  border-top: 3px solid black;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer > * {
  width: 30%;
}

footer a {
  color: #E8E8E8;
  transition: all .15s;
}

footer a:hover {
  color: white;
}

footer form input {
  background: transparent;
  border: 2px solid black;
  color: white;
  padding: 3px;
  transition: all .25s;
}

footer form input:hover,
footer form input:focus {
  background: white;
  color: black;
  padding: 3px;
}

footer .watermark {
  height: 3em;
  color: #E8E8E8;
}

date {
  color: var(--dark-grey);
  padding-left: 1.2em;
  background-image: url(/icon/clock-history.svg);
  background-position: 0 center;
  background-repeat: no-repeat;
  background-size: 1em;
}

code {
  font-family: monospace;
  padding: 5px;
  border: 1px solid var(--grey);
  border-radius: 5px;
}

code.inline,
code.il {
  display: inline-block;
}

timer {
  width: 511px;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  margin: 0 auto;
  background-color: var(--lime);
  container-name: timer;
  container-type: inline-size;
}

timer::before {
  content: "in";
  display: inline-block;
  margin-left: 5px;
}

timer[isneg="true"] {
  background-color: var(--red);
}

timer[isneg="true"]::before {
  content: "vor";
}

timer > div {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  overflow: hidden;
}

timer > * > div:not(.tag) {
  position: absolute;
  width: 80px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  color: #fff;
  background-color: #333;
}

.next {
  z-index: 2;
}

timer > * > .tag {
  position: absolute;
  bottom: 0;
  font-size: small;
  color: white;
}

img.rechts {
  width: 40%;
  float: right;
  margin: 0;
  margin-left: 10px;
}

img.links {
  width: 40%;
  float: left;
  margin: 0;
  margin-right: 10px;
}

color.rot {
  color: #e23f29
}
color.orange {
  color: #f16f23
}
color.gelb {
  color: #f5e61d
}
color.grün {
  color: #57dd45
}
color.dunkelgrün {
  color: #0e5c1f
}
color.hellblau {
  color: #1af3e8
}
color.blau {
  color: #173ff0
}
color.magenta {
  color: #f019f0
}
color.lila {
  color: #a21df0
}
color.grau {
  color: #9c9c9c
}
color.dunkelgrau {
  color: #555555
}

flrg {
  float: right;
}

table {
  width: 100%;
}

@media screen and (max-width: 1504px) {
  header .links .menuicon {
    display: flex;
  }

  header .links {
    max-height: 150px;
    flex-direction: column;
    overflow: hidden;
    height: fit-content;
    border-radius: 0 0 50px 50px;
    transition: all .4s;
  }

  header .links .link {
    position: relative;
  }

  body.scrolled header .links {
    max-height: 100px;
  }

  body.scrolled header .links .link {
    padding: 20px 30px;
  }

  body:not(.mobile) header .links:hover,
  body.mobile header .links.expand {
    max-height: 100vh !important;
    background: #000a;
    overflow-y: scroll;
  }

  body:not(.mobile) header .links:hover bar:nth-child(1),
  body.mobile header .links.expand bar:nth-child(1) {
    transform: rotate(45deg);
    width: 113%;
  }

  body:not(.mobile) header .links:hover bar:nth-child(2),
  body.mobile header .links.expand bar:nth-child(2) {
    height: 0;
  }

  body:not(.mobile) header .links:hover bar:nth-child(3),
  body.mobile header .links.expand bar:nth-child(3) {
    transform: rotate(-45deg);
    width: 113%;
  }

  body:not(.mobile) header .link:hover .sub,
  body.mobile header .link.expand .sub {
    height: fit-content;
  }

  header .link {
    height: 1em;
    padding: 20px;
  }

  header .link .sub {
    top: -1em;
    left: 25px;
    z-index: 3;
  }
}

@media screen and (max-width: 852px) {
  .searchbar {
    z-index: 100;
    top: -80px !important;
  }

  .searchbar.open {
    top: 0px !important;
  }
}

@media screen and (max-width: 672px) {
  footer {
    flex-direction: column;
  }

  footer > * {
    width: 90%;
  }

  header > a,
  .list .post:last-child {
    display: none;
  }
}

@media screen and (max-width: 410px) {
  header .logo {
    height: calc(100vw * 0.4878);
    /* left: calc(30px - 100vw / 10); */
  }

  header .links .menuicon {
    margin-right: 5px !important;
  }
}

@media screen and (max-width: 342px) {
  .watermark {
    display: none;
  }
}

@container timer (width < 415px) {
  timer > * > div:not(.tag) {
    font-size: 35px;
  }
}