/* Einwilligungsbanner (assets/js/consent.js). Eigene Datei, weil Leistungsseiten kein shared.css laden.
   Kleine Karte unten links, Seite bleibt bedienbar. "Ablehnen" und "Ok" sind gleich groß. */
.rn-consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  width: 360px;
  max-width: calc(100vw - 32px);
  font-family: 'Red Hat Display', 'RHD Fallback Arial', 'RHD Fallback Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.rn-consent[hidden] { display: none; }
.rn-consent-box {
  background: #ffffff;
  color: #0B1220;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  box-shadow: 0 12px 32px -12px rgba(16, 24, 40, 0.25);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rn-consent-text { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: #475467; }
.rn-consent-text a { color: #0B1220; text-decoration: underline; text-underline-offset: 2px; }
.rn-consent-options { display: grid; gap: 6px; }
.rn-consent-options[hidden] { display: none; }
.rn-consent-opt { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; color: #475467; cursor: pointer; }
.rn-consent-opt input { width: 16px; height: 16px; margin: 0; accent-color: #0B1220; flex-shrink: 0; }
.rn-consent-opt strong { color: #0B1220; }
.rn-consent-actions { display: flex; gap: 8px; align-items: center; }
.rn-consent-link {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 36px;
  padding: 6px 4px;
  margin-right: auto;
  border: 0;
  background: none;
  color: #475467;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.rn-consent-link:hover { color: #0B1220; }
.rn-consent-btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 36px;
  min-width: 84px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #0B1220;
  background: #0B1220;
  color: #ffffff;
  cursor: pointer;
}
.rn-consent-btn:hover { background: #1d2939; border-color: #1d2939; }
.rn-consent-btn-secondary { background: #ffffff; color: #0B1220; }
.rn-consent-btn-secondary:hover { background: #F2F4F7; color: #0B1220; border-color: #0B1220; }
.rn-consent-btn[hidden], .rn-consent-link[hidden] { display: none; }
.rn-consent.is-settings .rn-consent-actions { justify-content: flex-end; }
.rn-consent-btn:focus-visible, .rn-consent-link:focus-visible, .rn-consent-opt input:focus-visible, .rn-consent-text a:focus-visible {
  outline: 2px solid #0A789F;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .rn-consent { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; }
  .rn-consent-box { padding: 12px 14px; }
}
