:root {
  --pkv-hinweis-blau: #0c3f73;
  --pkv-hinweis-dunkelblau: #002e5b;
  --pkv-hinweis-gelb: #ffcc00;
  --pkv-hinweis-hellblau: #ebeff8;
  --pkv-hinweis-text: #020101;
}

.pkv-beratungshinweis {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(0, 46, 91, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.pkv-beratungshinweis.is-visible {
  opacity: 1;
  visibility: visible;
}

.pkv-beratungshinweis__card {
  position: relative;
  width: min(440px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid rgba(12, 63, 115, 0.18);
  border-radius: 18px;
  background: rgba(250, 250, 250, 0.99);
  box-shadow: 0 24px 60px rgba(0, 46, 91, 0.22);
  color: var(--pkv-hinweis-text);
  transform: translateY(26px) scale(0.98);
  transition: transform 240ms ease;
}

.pkv-beratungshinweis.is-visible .pkv-beratungshinweis__card {
  transform: translateY(0) scale(1);
}

.pkv-beratungshinweis__accent {
  height: 7px;
  background: linear-gradient(90deg, var(--pkv-hinweis-gelb) 0%, var(--pkv-hinweis-gelb) 28%, var(--pkv-hinweis-blau) 28%, var(--pkv-hinweis-blau) 100%);
}

.pkv-beratungshinweis__content {
  padding: 30px 30px 26px;
}

.pkv-beratungshinweis__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 4px 11px;
  border: 1px solid rgba(12, 63, 115, 0.16);
  border-radius: 999px;
  background: var(--pkv-hinweis-hellblau);
  color: var(--pkv-hinweis-dunkelblau);
  font: 700 12px/1.2 "Montserrat", "Lato", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pkv-beratungshinweis h2 {
  margin: 0 42px 13px 0;
  color: var(--pkv-hinweis-dunkelblau);
  font: 700 25px/1.24 "Montserrat", "Lato", Arial, sans-serif;
}

.pkv-beratungshinweis p {
  margin: 0;
  color: #274a66;
  font: 400 16px/1.6 "Open Sans", "Lato", Arial, sans-serif;
}

.pkv-beratungshinweis__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.pkv-beratungshinweis__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--pkv-hinweis-blau);
  border-radius: 9px;
  font: 700 14px/1.25 "Open Sans", "Lato", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pkv-beratungshinweis__button:hover,
.pkv-beratungshinweis__button:focus-visible {
  transform: translateY(-1px);
}

.pkv-beratungshinweis__button--primary {
  gap: 10px;
  background: var(--pkv-hinweis-blau);
  color: #fff;
}

.pkv-beratungshinweis__button--primary:hover,
.pkv-beratungshinweis__button--primary:focus-visible {
  border-color: var(--pkv-hinweis-gelb);
  background: var(--pkv-hinweis-gelb);
  color: var(--pkv-hinweis-dunkelblau);
}

.pkv-beratungshinweis__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 20px;
  flex: 0 0 12px;
  color: var(--pkv-hinweis-gelb);
  font: 700 25px/1 Arial, sans-serif;
  transform: translateY(-1px);
  transition: color 180ms ease, transform 180ms ease;
}

.pkv-beratungshinweis__chevron::before {
  content: "›";
  display: block;
}

.pkv-beratungshinweis__chevron::after {
  content: none;
}

.pkv-beratungshinweis__button--primary:hover .pkv-beratungshinweis__chevron,
.pkv-beratungshinweis__button--primary:focus-visible .pkv-beratungshinweis__chevron {
  color: var(--pkv-hinweis-dunkelblau);
  transform: translate(3px, -1px);
}

.pkv-beratungshinweis__button--secondary {
  background: #fff;
  color: var(--pkv-hinweis-blau);
}

.pkv-beratungshinweis__button--secondary:hover,
.pkv-beratungshinweis__button--secondary:focus-visible {
  background: var(--pkv-hinweis-hellblau);
}

.pkv-beratungshinweis__trust {
  margin-top: 17px !important;
  padding-top: 15px;
  border-top: 1px solid rgba(12, 63, 115, 0.14);
  color: var(--pkv-hinweis-dunkelblau) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.pkv-beratungshinweis__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(12, 63, 115, 0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--pkv-hinweis-dunkelblau);
  cursor: pointer;
  font: 400 25px/1 Arial, sans-serif;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.pkv-beratungshinweis__close:hover,
.pkv-beratungshinweis__close:focus-visible {
  background: var(--pkv-hinweis-dunkelblau);
  color: #fff;
  transform: rotate(4deg);
}

@media (max-width: 640px) {
  .pkv-beratungshinweis {
    align-items: flex-end;
    padding: 10px;
  }

  .pkv-beratungshinweis__card {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 16px 16px 10px 10px;
  }

  .pkv-beratungshinweis__content {
    padding: 25px 20px 21px;
  }

  .pkv-beratungshinweis h2 {
    margin-right: 36px;
    font-size: 21px;
  }

  .pkv-beratungshinweis p {
    font-size: 15px;
  }

  .pkv-beratungshinweis__close {
    top: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkv-beratungshinweis,
  .pkv-beratungshinweis__card,
  .pkv-beratungshinweis__button,
  .pkv-beratungshinweis__chevron,
  .pkv-beratungshinweis__close {
    transition: none !important;
  }
}
