/* =============================================
   Assmann PVR – Cookie Consent Banner
   ============================================= */

/* Basis ausgeblendet */
#pvr-consent {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
#pvr-consent.pvr-consent--visible {
  opacity: 1;
  pointer-events: all;
}
#pvr-consent.pvr-consent--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Backdrop */
.pvr-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Box – mittig (wichtig: darf nicht übersehen werden) */
.pvr-consent__box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 2rem 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
  font-family: 'Inter', system-ui, sans-serif;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.pvr-consent--visible .pvr-consent__box {
  transform: translateY(0);
}

/* Header */
.pvr-consent__header {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0d1b2a;
  margin-bottom: .85rem;
}
.pvr-consent__header svg {
  color: #1B5FA8;
  flex-shrink: 0;
}

/* Text */
.pvr-consent__text {
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.pvr-consent__text a {
  color: #1B5FA8;
  text-decoration: underline;
}

/* Details */
.pvr-consent__details {
  margin-bottom: 1.25rem;
}
.pvr-consent__details details {
  font-size: .84rem;
  color: #666;
}
.pvr-consent__details summary {
  cursor: pointer;
  color: #1B5FA8;
  font-weight: 600;
  user-select: none;
  margin-bottom: .5rem;
  list-style: none;
}
.pvr-consent__details summary::before {
  content: '▶ ';
  font-size: .75rem;
}
.pvr-consent__details details[open] summary::before {
  content: '▼ ';
}
.pvr-consent__details ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: .5rem;
}
.pvr-consent__details li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.badge--green { background: #dcfce7; color: #15803d; }
.badge--grey  { background: #f1f5f9; color: #64748b; }

/* Buttons */
.pvr-consent__actions {
  display: flex;
  gap: .75rem;
  margin-bottom: .85rem;
}
.pvr-consent__btn {
  flex: 1;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .22s, transform .15s, box-shadow .22s;
  text-align: center;
  white-space: nowrap;
}
.pvr-consent__btn:hover  { transform: translateY(-1px); }
.pvr-consent__btn:active { transform: translateY(0); }

.pvr-consent__btn--secondary {
  background: #f1f5f9;
  color: #475569;
}
.pvr-consent__btn--secondary:hover { background: #e2e8f0; }

.pvr-consent__btn--primary {
  background: #F5C518;
  color: #0d1b2a;
  box-shadow: 0 4px 18px rgba(245, 197, 24, .4);
  font-size: 1rem;
}
.pvr-consent__btn--primary:hover {
  background: #d4a800;
  box-shadow: 0 6px 24px rgba(245, 197, 24, .55);
}

/* Legal links */
.pvr-consent__legal {
  text-align: center;
  font-size: .78rem;
  color: #aaa;
}
.pvr-consent__legal a {
  color: #999;
  text-decoration: underline;
  margin: 0 .3rem;
}
.pvr-consent__legal a:hover { color: #1B5FA8; }

/* Sticky Badge */
@keyframes fadeInBadge {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

#pvr-consent-badge {
  position: fixed;
  bottom: 2rem;
  left: 1.25rem;
  z-index: 9998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d1b2a;
  color: rgba(255, 255, 255, .7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .28);
  opacity: 0;
  animation: fadeInBadge .4s .1s ease forwards;
  transition: background .22s, color .22s, transform .15s, box-shadow .22s;
}
#pvr-consent-badge:hover {
  background: #1B5FA8;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(27, 95, 168, .4);
}
#pvr-consent-badge:active {
  transform: scale(1);
}

/* Mobil */
@media (max-width: 480px) {
  .pvr-consent__box { padding: 1.5rem 1.25rem 1.25rem; border-radius: 12px 12px 0 0; }
  .pvr-consent__actions { flex-direction: column; }
  .pvr-consent__btn--secondary { order: 2; }
  .pvr-consent__btn--primary   { order: 1; }
}
