html {
  /* Enable font smoothing for better text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --border: 1px solid rgba(0,0,0,.1);
  --border-solid: 1px solid rgba(0,0,0,1);
}

* {
  position: relative;
  box-sizing: border-box;
}

body {
  margin: unset;
  padding: 40px 0;
}

pre {
  background-color: rgba(0,0,0,.05);
  padding: 1em;
  border-radius: .5em;
}

.augenbraue {
  text-align: center;
  font-family: sans-serif;
  font-size: .8em;
  letter-spacing: .04em;
}

a {
  text-underline-offset: .2em;
}

ul:not([class]) {
  list-style: none;
  padding: unset;
}

ul:not([class]) li {
  padding-left: 1em;
}

ul:not([class]) li::before {
  content: '–';
  position: absolute;
  left: 0;
}

h1 {
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
}

h2 {
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
  max-width: 400px;
  margin: .5em auto 1em;
}

h3 {
  font-weight: 400;
  text-align: center;
  font-family: sans-serif;
  font-size: 1em;
  letter-spacing: .05em;
  margin-top: 2em;
  text-wrap: balance;
}

button {
  font-family: sans-serif;
  font-size: .8em;
  letter-spacing: .04em;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,.1);
  background-color: rgba(0,0,0,.1);
  padding: .35em .8em;
  cursor: pointer;
}

button.minimieren {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 50%;
  background-color: white;
  display: grid;
  place-items: center;
  padding: unset;
  width: 3em;
  height: 1.6em;
}

button.minimieren::after {
  content: '–'
}

button:hover {
  border-color: black;
}

p, li {
  line-height: 140%;
}

summary {
  text-align: center;
  font-family: sans-serif;
  font-size: .8em;
  letter-spacing: .04em;
}

.text-container {
  max-width: 543px;
  margin: 0 auto;
  padding: 40px;
  border: var(--border);
  border-radius: 20px;
}

.text-container[minimiert] {
  height: 40px;
  overflow: hidden;
  padding: 0;
  border: none;
}

.text-container[minimiert] > *:not(button.minimieren) {
  display: none
}

.text-container[minimiert] button.minimieren {
  top: 50%;
  bottom: unset;
  translate: -50% -50%;
}

.text-container[minimiert] button.minimieren::after {
  content: '+'
}

.text-container.gross {
  max-width: 1234px;
}

@media (max-width: 1234px) {
  .text-container.gross {
    border-radius: unset;
    border-left: unset;
    border-right: unset;
  }
}

.text-container.sauber {
  border: unset;
  padding: 20px;
  text-align: center;
  font-size: .8em;
  text-wrap: balance;
}

.kleiner-text {
  font-size: .8em;
}

.text-container + .text-container {
  margin-top: 40px;
}

.bobbles {
  list-style: none;
  margin: unset;
  padding: unset;
  display: flex;
  flex-wrap: wrap;
  gap: .8em;
  justify-content: center;
}

.termine {
  list-style: none;
  margin: unset;
  padding: unset;
  display: grid;
  gap: 1.2em;
  grid-template-columns: repeat(7, 1fr);
  counter-reset: item;
}

@media (max-width: 543px) {
  .text-container {
    margin: 0 10px;
  }

  .termine {
    grid-template-columns: repeat(3, 1fr);
  }
}

.termine a::before {
  content: counter(item);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.termine li:not(.kein-termin) {
  counter-increment: item;
}

.termine li {
  width: 100%;
  padding-bottom: 100%;
}

.termine .hervorgehoben a {
  background-color: currentColor
}

.termine .hervorgehoben a::before {
  color: white  
}

.termine li a,
.termine li > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: var(--border-solid);
  border-radius: 50%;
  font-family: sans-serif;
  font-size: .8em;
  border-color: rgba(0, 0, 255, 0.1); /* Fallback for older browsers */
  border-color: var(--link-color, -webkit-link); /* Use a CSS variable for link color */
}

.termine li.kein-termin {
  width: 60%;
  padding-bottom: 60%;
  place-self: center;
}

.termine li > div {
  border-color: rgba(0,0,0,.1);
}

.termine .hover {
  display: none;
  background-color: white;
  position: absolute;
  bottom: calc(100% + .5em);
  width: 10em;
  border-radius: .5em;
  left: 50%;
  translate: -50% 0;
  border: var(--border);
  color: initial;
  text-align: center;
  padding: 1em;
  z-index: 1;
  line-height: 130%;
}

.termine li:hover .hover {
  display: block;
}

.termine li a:active {
  background-color: -webkit-linkactive;
}

.termine li.aktuell a {
  font-weight: 600;
}

.termine li.vergangenheit {
}

.termine li.vergangenheit a {
}

.termine li.vergangenheit a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 100%;
  transform: rotate(45deg);
  transform-origin: center;
  border-top: var(--border-solid);
  border-color: rgba(0, 0, 255, 0.1); /* Fallback for older browsers */
  border-color: var(--link-color, -webkit-link); /* Use a CSS variable for link color */
}

/* Vast Web Creator */
#vastWebCreatorCanvas {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: var(--border);
  border-radius: 10px;
  overflow: scroll;
}

.objekt[vorlage] {
  display: none;
}

.objekt {
  position: absolute;
  top: 50%;
  left: 50%;
}

.object svg {
  display: none;
}

#vastWebCreatorCanvas .container-buttons {
  display: flex;
  justify-content: center;
  gap: .5em;
}

.container-buttons {
  visibility: hidden;
  margin-top: .5em;
}

.container-buttons button {
  background-color: white
}

.objekt:hover .container-buttons {
  visibility: visible;
}

#deleteZone {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border: 1px dashed rgba(255, 0, 0, 0.3);
  color: red;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

#deleteZone.visible {
  opacity: 1;
  pointer-events: auto;
}

#deleteZone.hover {
  border-color: rgba(255, 0, 0, 0.6);
  color: transparent;
  transform: translateX(-50%) scale(1.1);
}

iframe.plakat {
  width: 160px;
  height: calc(160px * 1.414);
}