:root {
  --color-weak: rgb(59, 31, 126);
  --color-strong: rgb(157, 67, 187);
  --bg-accent: rgb(248, 241, 252);
  --bg-default: white;
  --border-radius: 0.3em;
  --hamburger-slice-color: black;
  --size: max(16px, min(10vmin, 60px));
  --slice-height: 0.25em;
  --font-color: black;
}

.sr-only {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

[data-theme="dark"] {
  --bg-default: #323447;
  --bg-accent: #3d4752;
  --color-weak: #a2c2ba;
  --color-strong: #8fcb9f;
  --font-color: #d3dbe9;
  color: #d3dbe9;
  color: var(--font-color);
}

#theme-toggler {
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  background-color: rgb(248, 241, 252);
  background-color: var(--bg-accent);
  border-radius: 1.2em;

  padding: 0;
}

#theme-toggler svg {
    border: solid rgb(59, 31, 126) 2px;
    border: solid var(--color-weak) 2px;
    border-radius: 0.3em;
    border-radius: var(--border-radius);
  }

#theme-toggler svg:hover {
    border: solid rgb(157, 67, 187) 2px;
    border: solid var(--color-strong) 2px;
  }

#theme-toggler svg {
    border: solid transparent 2px;
    fill: rgb(59, 31, 126);
    fill: var(--color-weak);
    padding: 0.5em;
    border-radius: 1.2em;
  }

#theme-toggler:hover svg {
    fill: rgb(157, 67, 187);
    fill: var(--color-strong);
  }

.event-box {
  border: solid rgb(157, 67, 187) 1px;
  border: solid var(--color-strong) 1px;
  border-radius: 0.3em;
  border-radius: var(--border-radius);
  margin-top: 1em;
  margin-bottom: 1em;
}

.event-box:hover {
    box-shadow: 0 0 0 1px rgb(157, 67, 187);
    box-shadow: 0 0 0 1px var(--color-strong);
  }

.event-box a {
    -webkit-text-decoration: none;
    text-decoration: none;
    color: black;
    color: var(--font-color);
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 1em;
    box-sizing: border-box;
  }

.event-box a:hover {
      color: black;
      color: var(--font-color);
    }

#alle-termine {
  background-color: rgb(248, 241, 252);
  background-color: var(--bg-accent);
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
  gap: 2em;
}

footer a {
    -webkit-text-decoration: none;
    text-decoration: none;
    text-align: left;
  }

footer nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 0;
  }

footer li {
    width: -moz-max-content;
    width: max-content;
  }

@media (max-aspect-ratio: 3/4) {

footer {
    justify-content: flex-end;
}
    footer #impressum {
      width: -moz-min-content;
      width: min-content;
      flex-grow: 1;
    }

footer {

    flex-wrap: wrap;
    /* a {
      text-align: right;
    } */

    /* nav {
      flex-grow: 1;
    } */
}
  }

header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  flex-wrap: wrap;
  position: sticky;
  top: 0px;
  padding-top: 2em;
  background-color: white;
  background-color: var(--bg-default);
  box-shadow: 0 0 2em 2.5em white;
  box-shadow: 0 0 2em 2.5em var(--bg-default);
  width: 100%;
}

header img {
    height: 10vh;
  }

#site-logo {
  z-index: 10;
}

@media (min-width: 66em) {
    #site-logo img {
      max-width: 30vw;
    }
  }

.mapbox,
#map {
  margin-top: 1em;
}

#map {
  background-color: rgb(248, 241, 252);
  background-color: var(--bg-accent);
  border-radius: 0.3em;
  border-radius: var(--border-radius);
  padding: 1em;
}

.dsgvo-consent-container {
  background-color: white;
  background-color: var(--bg-default);
  max-width: 30em;
  padding: inherit;
  border-radius: inherit;
}

.dsgvo-consent-container h4 {
    color: rgb(59, 31, 126);
    color: var(--color-weak);
    font-size: 1.3em;
    margin-top: 1em;
    margin-bottom: 1em;
  }

.dsgvo-consent-container button {
    font-size: inherit;
    padding: 0.5em 1em;
    margin-top: 1em;
    margin-bottom: 1em;
    border: solid black 0.5px;
    width: 100%;
  }

.dsgvo-consent-container button:hover {
      background-color: rgb(248, 241, 252);
      background-color: var(--bg-accent);
      border: solid rgb(157, 67, 187) 0.5px;
      border: solid var(--color-strong) 0.5px;
    }

.dsgvo-consent-container input,.dsgvo-consent-container label,.dsgvo-consent-container button {
    cursor: pointer;
  }

.dsgvo-consent-container input:hover,.dsgvo-consent-container label:hover,.dsgvo-consent-container button:hover {
      color: rgb(157, 67, 187);
      color: var(--color-strong);
    }

.dsgvo-consent-container input {
    accent-color: rgb(59, 31, 126);
    accent-color: var(--color-weak);
  }

time {
  font-size: 1.4em;
  color: rgb(59, 31, 126);
  color: var(--color-weak);
}

nav ul {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li {
    background-color: white;
    background-color: var(--bg-default);
  }

#top-menu .active-page {
  border: solid rgb(59, 31, 126) 2px;
  border: solid var(--color-weak) 2px;
  border-radius: 0.3em;
  border-radius: var(--border-radius);
}

#top-menu .active-page:hover {
    border: solid rgb(157, 67, 187) 2px;
    border: solid var(--color-strong) 2px;
  }

#footer-menu .active-page {
  font-weight: bold;
}

#hamburger-toggle {
  opacity: 0;
  cursor: pointer;
  position: absolute;
}

.navigation {
  position: absolute;
  top: 0;
  left: 0;
  padding-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
}

#hamburger {
  display: block;
  cursor: pointer;
  width: max(16px, min(10vmin, 60px));
  width: var(--size);
  height: max(16px, min(10vmin, 60px));
  height: var(--size);
  box-sizing: content-box;
  transition: transform 0.2s ease;
}

#hamburger .slice {
  display: block;
  position: relative;
  width: 100%;
  height: 0.25em;
  height: var(--slice-height, 2px);
  border-radius: 0.25em;
  border-radius: var(--slice-height);
  transition: all 0.2s ease;
  background-color: rgb(157, 67, 187);
  background-color: var(--color-strong);
  opacity: 0.9;
}

#hamburger .slice {
  margin-top: 22%; /* Fallback to produce something hamburger-ish if calc is not available */
  margin-top: calc(33% - 0.25em);
  margin-top: calc(33% - var(--slice-height));
  top: calc((33% - 0.25em) / -2);
  top: calc((33% - var(--slice-height)) / -2);
}

#top-menu {
  display: flex;
  flex-direction: column;
  background-color: white;
  background-color: var(--bg-default);
  width: calc(100vw - 4em);
  align-items: flex-end;
  height: 100vh;
  justify-content: flex-start;
  align-items: center;
  z-index: 5;
}

.navigation:has(#hamburger-toggle:checked) {
  background-color: white;
  background-color: var(--bg-default);
  z-index: 10;
}

#hamburger-toggle:checked ~ #top-menu {
  visibility: visible;
  transform: rotateX(0deg);
  opacity: 1;
}

#hamburger-toggle:checked ~ #hamburger .slice:nth-child(1) {
  top: calc(50% - 33% + 0.25em / 2);
  top: calc(50% - 33% + var(--slice-height) / 2);
  transform: rotate(45deg);
}

#hamburger-toggle:checked ~ #hamburger .slice:nth-child(2) {
  opacity: 0;
}

#hamburger-toggle:checked ~ #hamburger .slice:nth-child(3) {
  top: calc(-50% + 0.25em / 2);
  top: calc(-50% + var(--slice-height) / 2);
  transform: rotate(-45deg);
}

@media (min-width: 66em) {
  #hamburger {
    display: none;
  }

  #top-menu {
    clip: auto;
    clip-path: none;
    height: auto;
    overflow: visible;
    position: static;
    width: auto;
    flex-direction: row;
    background-color: transparent;
  }
}

.navigation a {
  -webkit-text-decoration: none;
  text-decoration: none;
  padding: 0.8em;
  border-radius: 0.3em;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  border: solid transparent 2px;
  display: inline-block;
  font-size: 1.1rem;
}

.navigation a:hover {
    border: solid rgb(157, 67, 187) 2px;
    border: solid var(--color-strong) 2px;
  }

@font-face {
  font-family: "Lexend";
  src: url("../fonts/Lexend-Variable.ttf") format("truetype-variations");
}

* {
  font-family: "Lexend", sans-serif;
}

body {
  margin: 2em;
  margin-top: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: white;
  background-color: var(--bg-default);
}

/* HEADINGS */

h1 {
  margin-top: 6vw;
}

h2 {
  margin-top: 2em;
  margin-bottom: 1em;
}

h3 {
  color: rgb(157, 67, 187);
  color: var(--color-strong);
}

/* BASIC BLOCKS */

p {
  line-height: 150%;
  margin: 0;
}

a {
  color: rgb(59, 31, 126);
  color: var(--color-weak);
}

a:hover {
  color: rgb(157, 67, 187);
  color: var(--color-strong);
}

@media (min-width: 66em) {

section {
    max-width: calc(48em + 10vw);
}
  }

main {
  align-self: center;
  min-height: 70vh;
}

@media (min-width: 66em) {

main {
    width: calc(40em + 20vw);
    max-width: 100%;
}
  }

svg {
  width: 5vh;
  height: 5vh;
}

svg path {
    fill: rgb(59, 31, 126);
    fill: var(--color-weak);
  }

svg:hover path {
      fill: rgb(157, 67, 187);
      fill: var(--color-strong);
    }

/* CLASSES */

.text-content p {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#alle-termine a {
  font-size: 1.2em;
}
