/* ===== PodcastMaster – Cookie-Consent-Banner (geteilt, für alle Unterseiten) =====
   Extrahiert aus dem Consent-Popup auf der Startseite. Nutzt dieselben CSS-Variablen
   (--dark-gray, --mid-gray, --blue, --off-white, --light-gray), die bereits in jeder
   Seite definiert sind. Die Startseite selbst bleibt unverändert und nutzt weiter ihr
   eigenes, eingebautes Banner-CSS. */

#consentOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeOverlay 0.35s ease both;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#consentOverlay.hiding {
  animation: fadeOverlay 0.25s ease reverse both;
  pointer-events: none;
}

#consentBox {
  background: #fff;
  border-radius: 24px;
  padding: 36px 36px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  animation: popUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
}

@keyframes popUp {
  from { opacity: 0; transform: scale(0.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#consentBox .consent-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

#consentMain h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

#consentMain > p {
  font-size: 0.875rem;
  color: var(--mid-gray);
  line-height: 1.65;
  margin-bottom: 24px;
}

#consentMain > p a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.consent-accept {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  background: var(--dark-gray);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.consent-accept:hover {
  background: #000;
  transform: scale(1.02);
}

.consent-decline {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  background: var(--off-white);
  color: var(--mid-gray);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--light-gray);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}

.consent-decline:hover {
  background: var(--light-gray);
}

.consent-note {
  font-size: 0.72rem;
  color: #b0b0b5;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
}

@media (max-width: 500px) {
  #consentBox {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }
  .consent-btns {
    flex-direction: column;
  }
}
