body::before {
  filter: brightness(1);
  transition: filter 0.8s ease;
}

body.dimmed::before {
  filter: brightness(0.4);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  z-index: -10;
  transition: all 0.6s ease;
}

#overlay.open {
  opacity: 1;
  z-index: 800;
  backdrop-filter: blur(15px);
}

.text {
  max-width: 500px;
  text-align: center;
  margin: 0 auto;
  color: var(--colorhightlight);
  padding: 5px;
}

/* Top bar */
.bar {
  position: fixed;
  width: 98%;
  margin: auto;
  border-radius: 0 0 20px 20px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--colormaindark);
  color: var(--colorhightlight);
  backdrop-filter: blur(15px);
  z-index: 1000;
}

#topbar {
  top: 0;
  box-shadow: 4px 16px 20px rgba(0, 0, 0, 0.3);
}

#footer {
  bottom: 0;
  height: 24px;
  box-shadow: 4px -16px 20px rgba(0, 0, 0, 0.3); /* leichter Schatten nach oben */
  border-radius: 20px 20px 0 0;
}

.bar .left {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
  gap: 20px;
}

.bar .controls {
  display: flex;
  padding: 20px;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

#top {
  scroll-margin-top: 120px;
}

.btn {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--colormainlight);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  height: 16px;
}

/* DROPDOWN MENÜ */

.icon.dropbtn {
  background-image: url("images/menu.svg");
  cursor: pointer;
}

.dropcontent {
  position: fixed;
  top: 50px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  text-align: center;
  padding: 16px;

  opacity: 0;

  z-index: 900;
  border-radius: 10px;
  margin: 0 auto;
  max-width: 90%;

  background: var(--colormaindark);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.6s ease;
  transform: translateY(-500px);
  backdrop-filter: blur(10px);
}

.dropcontent.open {
  margin-top: 32px;
  opacity: 1;
  transform: translateY(0);
}

.dropcontent a {
  display: flex;
  padding: 12px;
  color: var(--colorhightlight);
  text-decoration: none;
  font-weight: 600;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}

#homebutton {
  display: block;
}

.menubar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 98%;
  margin: auto;
  border-radius: 20px;
  background: var(--colormaindark); /* halbtransparent */
  backdrop-filter: blur(15px); /* Blur-Effekt */
  box-shadow: 4px -16px 20px rgba(0, 0, 0, 0.3); /* leichter Schatten nach oben */
  z-index: 1000; /* immer über dem Inhalt */
  padding: 16px;
}

.icon {
  display: block;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.icon:hover {
  filter: brightness(1.3);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

@media (max-width: 400px) {
  .btn {
    padding: 8px 10px;
  }
}
