/* Impressum & Datenschutz Overlay */

.impressum-bar {
  padding: 42px 0;
  background: #ffffff;
}

.impressum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: #f1c232;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(241, 194, 50, 0.28);
}

.impressum-btn:hover {
  background: #d9a600;
  color: #ffffff;
}

#impressum-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(3, 16, 19, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#impressum-overlay.active {
  display: flex;
}

.impressum-inner {
  position: relative;
  width: min(100%, 980px);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 22px;
  background: #fffdfa;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(241, 194, 50, 0.32);
}

.impressum-box {
  max-height: 88vh;
  overflow-y: auto;
  padding: 42px;
  color: #1f2a37;
}

.impressum-box h2 {
  color: #031013;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.impressum-box h2:not(:first-child) {
  margin-top: 38px;
}

.impressum-box h3 {
  color: #b88900;
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 26px;
  margin-bottom: 12px;
}

.impressum-box h4 {
  color: #031013;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 22px;
  margin-bottom: 10px;
}

.impressum-box p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 16px;
}

.impressum-box a {
  color: #b88900;
  font-weight: 700;
  text-decoration: none;
}

.impressum-box a:hover {
  color: #f1c232;
}

#close-impressum {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  background: #f1c232;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

#close-impressum:hover {
  background: #d9a600;
}

@media (max-width: 768px) {
  #impressum-overlay {
    padding: 14px;
  }

  .impressum-inner {
    border-radius: 18px;
    max-height: 90vh;
  }

  .impressum-box {
    padding: 32px 22px 26px;
    max-height: 90vh;
  }

  .impressum-box h2 {
    font-size: 1.55rem;
  }

  .impressum-box h3 {
    font-size: 1.1rem;
  }

  .impressum-box p {
    font-size: 0.92rem;
  }

  #close-impressum {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
#impressum-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(3, 16, 19, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#impressum-overlay.active {
  display: flex !important;
}

.impressum-inner {
  position: relative;
  width: min(100%, 980px);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 22px;
  background: #fffdfa;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(241, 194, 50, 0.32);
}

.impressum-box {
  max-height: 88vh;
  overflow-y: auto;
  padding: 42px;
}

#close-impressum {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #f1c232;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}