:root {
  --colormainlight: #7d8471;
  --colormaindark: #2d4a2b;

  --colorsecdark: #a4ac86;
  
  --colorhighlight: #faf9f6;
}


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.5s ease;
}

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

/* Top bar */
.bar {
  position: fixed;
  width: 100%;
  margin: auto;
  border-radius: 0 0 8px 8px;
  left: 0;
  right: 0;

  background: var(--colormaindark);
  color: var(--colorhightlight);
  backdrop-filter: blur(15px);
  z-index: 1500;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
}

#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;
}

.logo {
  height: 44px;
  object-fit: cover;
}

/* DROPDOWN MENÜ */

.icon.dropbtn {
  cursor: pointer;
}

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

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

  opacity: 0;

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

  background: var(--colormainlight) !important;

  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));
}

.icon {
  display: block;
  width: 42px;
  height: 42px;
  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));
}
