:root {
  --title-font-family: "Zen Loop", cursive;
  --body-font-family: Simonetta, serif;
  --outer-background-color: hsl(212.37deg 81.29% 66.47%);
  --inner-background-color: hsl(45deg 31.25% 12.55% / 32%);
  --border-color: rgb(172 211 243);
  --nav-background-color: var(--inner-background-color);
  --body-font-color: rgb(255 255 255);
  --title-font-color: var(--body-font-color);
  --nav-font-color: var(--body-font-color);
  --body-font-size: 22px;
  --nav-font-size: 1.5rem;
  --main-shadow: none;
  --logo-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

body {
  font-family: var(--body-font-family);
  font-size: 22px;
  font-weight: 400;
  background-color: var(--outer-background-color);
  position: relative;
  margin: 0;
  padding: 0;
}

main {
  margin: 2rem auto;
  max-width: 840px;
  box-shadow: var(--main-shadow);
  background-color: var(--inner-background-color);
  color: var(--body-font-color);
  position: relative;
  border-radius: 1rem;
  border: 6px solid var(--border-color);
  isolation: isolate;
  z-index: 3;
}

footer {
  h3 {
    border: 0;
  }
}

img {
  max-width: 100%;
  border-radius: calc(1rem - 6px);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

a {
  position: relative;
  color: inherit;
  transition: color 0.3s ease-in-out, text-decoration-color 0.3s ease-in-out;

  &:hover {
    text-decoration-color: white;
  }
}

.fr {
  float: right;
}

.fl,
.ld {
  float: left;
}

img.fl,
img.fr {
  margin: 1rem;
  max-width: 20%;
  filter: drop-shadow(var(--main-shadow));
}

img.ld {
  margin: 1rem;
  max-width: 50%;
  filter: drop-shadow(var(--main-shadow));
}

/*     Mainpage */

.hero {
  position: relative;
}

#menucontrol {
  pointer-events: none;
  position: absolute;
  opacity: 0;
}
nav {
  background-color: var(--nav-background-color);
  color: var(--nav-font-color);
  border-block: 3px solid var(--border-color);
  padding: 0.5rem 1rem 0.7rem;
  display: block;
}

nav .icon {
  filter: drop-shadow(var(--main-shadow));
  margin-right: 1rem;
}

nav .icon path {
  fill: var(--nav-font-color);
}

nav > ul{
 display:grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-flow: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--title-font-family);
  text-shadow: var(--main-shadow);
  font-size: var(--nav-font-size);
  line-height: 1.5em;
  font-weight: 900;
}

nav a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s ease-in-out text-decoration-color 0.15s ease-in-out;
  letter-spacing: 0.8px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;

  &:hover {
    color: rgb(255 255 255 / 0.6);
    text-decoration-color: rgb(255 255 255);
  }
}

nav > ul > li {
  display: inline-flex;
  flex-direction: column;
  flex-basis: min-content;
  margin-block: 0;
}

nav > ul > li:not(:last-child) {
  margin-right: 0.375em;
  padding-left: 0.5rem;
  padding-right: 1.375em;
  border-right: 2px solid var(--border-color);
}

nav ul > li:first-child {
  margin-left: 0;
}

nav ul > li > ul {
  font-size: 0.75em;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

nav li li {
  margin-right: 0.375rem;
  white-space: nowrap;
}

nav a.current {
  text-decoration: underline;
}

.icon {
  display: none;
}

.logo {
  display: flex;
  margin-bottom: 0;
  position: relative;
  z-index: -1;
}

h1,
h2,
h3 {
  font-family: var(--title-font-family);
  font-weight: normal;
  margin: 3rem 2rem 1rem;
}

p {
  margin: 1rem 2rem;
}

input[type="submit"] {
  background-color: white;
  border-radius: 100vh;
  padding: 0.5rem 2rem;
  margin: 0.5rem 0;
  display: inline-block;
  text-decoration: none;
  color: rgb(58 52 101);
  font-size: 100%;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  &:hover {
    background-color: var(--border-color);
    /* color: var(--body-font-color);*/
  }
}

.button {
  a {
    font-family: var(--title-font-family);
    font-size: 2rem;
    font-weight: 900;
    background-color: rgb(255 255 255 / 0.6);
    border-radius: 100vh;
    padding: 0.5rem 2rem;
    margin: 0.5rem 0;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    &:hover {
      background-color: rgb(255 255 255);
      color: var(--outer-background-color);
    }
  }
}

h1 {
  text-transform: uppercase;
  font-size: 3rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.6rem;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
    border-bottom: 3px solid rgb(255 255 255 / 0.4);

}

hr {
  border-color: var(--border-color);
}

ul {
  margin-right: 1rem;
}

.list {
  list-style: none;
  list-style-type: circle;
  list-style-position: inside;

  li {
    margin-bottom: 0.4em;

  }

  li:nth-child(1)::marker {
    content: "🍳  ";
  }

  li:nth-child(2)::marker {
    content: "🌍  ";
  }

  li:nth-child(3)::marker {
  content: "🍀  ";
  }

  li:nth-child(4)::marker {
    content: "🔒  ";
  }
}

.faq > li {
  margin-bottom: 1.5rem;
}

.videoContainer {
  position: relative;
  width: 80%;
  height: 0;
  padding-bottom: 56.25%;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.language {
  bottom: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 1rem;
  z-index: 1;
}

picture {
  display: block;
  margin-bottom: -6px;
}

.language li {
  display: inline-block;
  margin: 0.5rem 0 0 0.5rem;
}

.language img {
  display: inline-block;
  height: auto;
  max-width: 30px;
}

form {
  /*display: flex;*/
  display: block;
  flex-wrap: wrap;
}

.form_error {
  color: red;
  width: 100%;
}

.form_msg {
  color: #11dd11;
  width: 100%;
}

.regbox {
  max-width: 100%;
  display: block;
}

form h3,
form p {
  width: 100%;
}

form label,
form label b {
  display: inline-flex;
  padding: 0.3rem;
  margin: 0.2rem;
  flex: 1 30%;
  flex-direction: column;
  max-width: 100%;
}

formlabel[for="f_sponsor"] {
  flex-direction: row;
  align-items: center;
}

@media screen and (max-width: 840px) {
  nav {
    align-items: flex-start;
    padding: 0;
  }
  nav > ul {
    display: block;
    margin: 0.75rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }
  .icon {
    display: block;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .icon::before {
    content: "Menu";
    font-family: var(--title-font-family);
    text-shadow: var(--main-shadow);
    position: absolute;
    left: 60px;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    pointer-events: all;
    font-size: 2rem;
    height: 30px;
  }
  #menucontrol:checked + .icon {
    width: auto;
  }
  #menucontrol:checked + .icon::before {
    opacity: 0;
    pointer-events: none;
  }
  #menucontrol:checked + .icon + ul {
    opacity: 1;
    max-height: 800px;
  }
  nav ul > li {
    display: block;
  }

  nav ul > li:first-child {
    margin-left: unset;
  }
  nav ul ul {
    margin-left: 0.75rem;
  }
  nav > ul > li:not(:last-child) {
    margin-inline: 0;
    padding-inline: 0;
    border: 0;
  }
  img.fl,
  img.fr,
  img.ld {
    float: unset;
    max-width: 100%;
  }
  .mascot__wrapper {
    --_mascot-translate: 20%;
  }
}

.next {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;

  picture,
  button {
    grid-row: 1;
    grid-column: 1;
  }

  button {
    z-index: 1;
    justify-self: start;
    align-self: end;
  }
}

::backdrop {
  backdrop-filter: blur(3px);
}

button[popovertarget] {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

[popover] {
  background-color: transparent;
  overflow: hidden;
  border: 0;
}

body:has(:popover-open) {
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  :root {
    --outer-background-color: hsl(212.37deg 81.29% 16.47%);
    --inner-background-color: hsl(45deg 31.25% 12.55% / 64%);
    --border-color: rgb(172 211 243 / 0.5);
    --nav-background-color: var(--inner-background-color);
    --body-font-color: rgb(255 255 255);
    --title-font-color: var(--body-font-color);
    --nav-font-color: var(--body-font-color);
    --main-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    --logo-shadow: none;
  }
}