/* Neravia consent card – a compact sheet at the bottom edge (no full-screen dimming: the first screen and the landing text
   stay readable behind it). Only the card itself takes pointer events. Dark with gold accents like the page; both answers
   ("Alle ablehnen" / "Alle akzeptieren") look exactly the same. */
.nv-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 8px max(8px, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f3e6c4;
}
.nv-consent-box {
  pointer-events: auto;
  width: min(760px, 100%);
  max-height: min(72vh, 620px);
  max-height: min(72dvh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #2c1e12 0%, #1f150c 100%);
  border: 2px solid #c9a227;
  border-bottom-width: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  border-radius: 14px 14px 0 0;
  padding: 16px 20px 14px;
  box-sizing: border-box;
}
.nv-consent h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #f0c64a;
  outline: none;
}
.nv-consent-intro { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #ead9b4; }
.nv-consent-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.nv-consent-btn {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #c9a227;
  background: #4a3120;
  color: #fff3d6;
  cursor: pointer;
}
.nv-consent-btn:hover { filter: brightness(1.15); }
.nv-consent-btn:focus-visible, .nv-consent a:focus-visible, .nv-consent summary:focus-visible { outline: 3px solid #f3d27a; outline-offset: 2px; }
.nv-consent-more { margin-top: 10px; font-size: 14px; }
.nv-consent-more > summary { cursor: pointer; color: #f0c64a; min-height: 40px; display: flex; align-items: center; }
.nv-consent-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.nv-consent-cat {
  background: rgba(255, 243, 214, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
}
.nv-consent-disabled { opacity: 0.75; }
.nv-consent-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nv-consent-cat-title { font-weight: 600; font-size: 15px; color: #fff3d6; }
.nv-consent-cat-text { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #e3d3ad; }
.nv-consent-details { margin-top: 6px; font-size: 12px; }
.nv-consent-details summary { cursor: pointer; color: #f0c64a; }
.nv-consent-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.nv-consent-table td { padding: 4px 6px; vertical-align: top; border-top: 1px solid rgba(201, 162, 39, 0.25); color: #e3d3ad; }
.nv-consent-key { width: 42%; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #f3e6c4; }
.nv-consent-save { width: 100%; }
.nv-consent-links { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #c8b58c; }
.nv-consent-links a { color: #f0c64a; }

/* "Jetzt spielen" before the decision: the card says once more that it is waiting (TemplateData/loader.js). */
.nv-consent-attention { animation: nv-consent-attention 0.5s ease-in-out 2; }
@keyframes nv-consent-attention { 50% { box-shadow: 0 0 0 5px rgba(240, 198, 74, 0.55), 0 -12px 40px rgba(0, 0, 0, 0.6); } }

/* Toggle switch */
.nv-consent-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex: 0 0 auto; }
.nv-consent-switch input { opacity: 0; width: 0; height: 0; }
.nv-consent-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #6b5a44; border-radius: 26px; transition: background 0.2s;
}
.nv-consent-slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff8e6; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.nv-consent-switch input:checked + .nv-consent-slider { background: #2f7a3a; }
.nv-consent-switch input:checked + .nv-consent-slider::before { transform: translateX(22px); }
.nv-consent[dir="rtl"] .nv-consent-switch input:checked + .nv-consent-slider::before { transform: translateX(-22px); }
.nv-consent[dir="rtl"] .nv-consent-slider::before { left: auto; right: 3px; }
.nv-consent-switch input:disabled + .nv-consent-slider { cursor: default; opacity: 0.75; }
.nv-consent-switch input:focus-visible + .nv-consent-slider { outline: 3px solid #f3d27a; }

@media (max-width: 480px) {
  .nv-consent { padding: 0; }
  .nv-consent-box { padding: 14px 14px 12px; border-radius: 12px 12px 0 0; border-left-width: 0; border-right-width: 0; }
  .nv-consent h2 { font-size: 18px; }
  .nv-consent-intro { font-size: 13.5px; }
  .nv-consent-btn { flex-basis: 40%; }
  .nv-consent-key { width: 48%; }
}
@media (prefers-reduced-motion: reduce) { .nv-consent-attention { animation: none; } .nv-consent-slider, .nv-consent-slider::before { transition: none; } }
