html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header); 
}


:root{
  --bg-color: #E7F2EF;
  --sec-bg-color: #D7E1E1;
  --text-color: #19183B;
  --sec-text-color: #19183b53;
  --header: 17.73vh;
}

.darkmode{
  --bg-color:#030712;
  --sec-bg-color:#10141E;
  --text-color:white;
  --sec-text-color:#74D4FF;
}

#theme-switch{
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--sec-bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

#theme-switch svg{
  color: var(--text-color);
}

#theme-switch svg:last-child{
  display: none;
  
}

.darkmode #theme-switch svg:first-child{
  display: none;
  
}

.darkmode #theme-switch svg:last-child{
  display: block;
  
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  line-height: 10vh;
}

.grid-row-template {
    grid-template-columns: 1fr 1fr 1fr; /* gleichmässig */
    grid-auto-rows: auto; /* nur so viele Rows wie Inhalt */
    height: auto; /* Höhe nach Inhalt */
}


.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#lightbox {
  z-index: 2000;
  position: fixed;
  top: 0;
  width: 100%;
  justify-content: center;
  justify-items: center;
  align-items: center;
  height: 100%;
  background-color: rgba(0,0,0, .9);
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease;
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  object-fit: contain;
}

#toolbar {
  will-change: transform;        /* Layer-Promotion */
  transform: translateZ(0);      /* besonders für iOS */
  backface-visibility: hidden;
}



