/*
  CSS RESET
*/


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: normal;
  font-size: 16px;
}

ul,
ol {
  list-style: none;
}

img,
video {
  width: 100%;
}

a {
  color: black;
  text-decoration: none;
}

@font-face {
  font-family: "victors";
  src: url("../fonts/victors.otf") format("opentype");
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: "victors";
  padding: 2rem;
  background: #ffffff;
  margin: 0;
}

.corner {
  font-size: 2rem;
  font-family: "victors", sans-serif;
  z-index: 20;
  color: #000;
}

.top-right {
  position: fixed;
  top: 1rem;
  right: 3rem;
}

.bottom-left {
  position: fixed;
  bottom: 2rem;
  left: 1rem;
}

.top-left {
  position:fixed;
  top: 1rem;
  left: 2rem;
}

ul.raster {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  padding: 0;
  margin: 10px;
  list-style: none;
  max-width: 100%;
  box-sizing: border-box;
}

.symbol {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100px;
  justify-self: center;
  box-sizing: border-box;
}

.symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tooltip {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  top: calc(100% + 6px);
  left: 0;
}

.tooltiptext {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  
  background-color: #131313;
  color: #fff;
  font-family: "victors";
  font-size: 0.75rem;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

  max-width: 300px;
  min-width: 200px;
  width: auto;
  
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  z-index: 10;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
ul.raster li:nth-child(6n) .tooltiptext {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 10px;
}


/* Responsive Rastersystem */
@media (min-width: 600px) {
  .tooltiptext {
    max-width: 300px
  }
  ul.raster {
    grid-template-columns: repeat(18, 1fr);
  }
}

@media (min-width: 1024px) {
  .tooltiptext {
    max-width: 301px;
  }
  ul.raster {
    grid-template-columns: repeat(30, 1fr);
  }
}

.hilfe-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  font-family: "victors", sans-serif;
  color: black;
  text-decoration: none;
  z-index: 999;
  padding: 0.25rem 0.6rem;

}