/* NOVVIA Popup – Produktberater, Kalender, SMS/WhatsApp-Feld (P10)
   Klassen beginnen mit nvp- und benennen die Sache auf Deutsch (kein "ad", "promo", "banner" usw.), damit
   Filterlisten sie nicht treffen (tools/blocker-wache.mjs prüft das). */

/* ===== gemeinsam ===== */
.nvp-quiz [hidden], .nvp-kal [hidden] { display: none !important; }
.nvp-quiz .hp-field, .nvp-kal .hp-field { position: absolute !important; left: -9999px !important; height: 0 !important; width: 0 !important; opacity: 0 !important; }
.nvp-quiz-sr, .nvp-kal-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Produktberater ===== */
.nvp-quiz { text-align: center; }
.nvp-quiz-text { margin-bottom: 1rem; }
.nvp-quiz-start, .nvp-kal-knopf {
  background: var(--nv-primary, #1e293b); color: #fff; border: 0; border-radius: 8px; padding: .8rem 1.5rem; font-weight: 700; font-size: 1em; cursor: pointer;
}
.nvp-quiz-start:disabled, .nvp-kal-knopf:disabled { opacity: .6; cursor: default; }
.nvp-quiz-fortschritt { display: flex; align-items: center; gap: 10px; margin-bottom: .9rem; font-size: .85em; color: #475569; }
.nvp-quiz-leiste { flex: 1; height: 8px; border-radius: 999px; background: rgba(15,23,42,.14); overflow: hidden; }
.nvp-quiz-fuell { display: block; height: 100%; border-radius: 999px; background: var(--nv-primary, #1e293b); transition: width .3s ease; }
.nvp-quiz-titel { font-weight: 700; font-size: 1.2em; line-height: 1.35; margin-bottom: .9rem; }
.nvp-quiz-bild { display: block; max-width: 100%; max-height: 200px; margin: 0 auto .9rem; border-radius: 8px; object-fit: cover; }
.nvp-quiz-antworten { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.nvp-quiz-antwort {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: .75rem 1rem; text-align: center;
  background: #fff; color: #1e293b; border: 2px solid rgba(15,23,42,.25); border-radius: 10px; font-size: 1em; font-weight: 600; cursor: pointer; font-family: inherit;
}
.nvp-quiz-antwort:hover { border-color: var(--nv-primary, #1e293b); }
.nvp-quiz-antwort.is-gewaehlt { background: var(--nv-primary, #1e293b); color: #fff; border-color: var(--nv-primary, #1e293b); }
.nvp-quiz-abild { max-width: 100%; max-height: 110px; border-radius: 6px; object-fit: cover; }
.nvp-quiz-rueck {
  margin-top: .9rem; background: transparent; color: inherit; border: 2px solid currentColor; border-radius: 8px; padding: .55rem 1.1rem; font-weight: 600; font-size: .95em; cursor: pointer;
}
.nvp-quiz-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; text-align: left; }
.nvp-quiz-form .nvp-quiz-titel { text-align: center; }
.nvp-quiz-feld input[type="email"] { border: 1px solid rgba(15,23,42,.25); border-radius: 8px; padding: 10px 14px; font-size: 15px; width: 100%; box-sizing: border-box; font-family: inherit; }
.nvp-quiz-einw, .nvp-kal-einw { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: #475569; }
.nvp-quiz-einw input, .nvp-kal-einw input { margin-top: 3px; }
.nvp-quiz-einw a, .nvp-kal-einw a { color: #1d4ed8; text-decoration: underline; }
.nvp-quiz-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nvp-quiz-fehler, .nvp-kal-fehler { background: #fee2e2; color: #991b1b; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-top: 8px; text-align: left; }
.nvp-quiz-ergebnis { margin-top: .5rem; }
.nvp-quiz-ergebnis-name { font-size: 1.5em; font-weight: 800; margin: .2rem 0 .5rem; }
.nvp-quiz-ergebnis-text { white-space: pre-line; margin-bottom: .8rem; }
.nvp-quiz-hinweis { font-size: .8em; color: #475569; margin-top: .9rem; }
.nvp-quiz-code-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-top: .8rem; }
.nvp-quiz-start:focus-visible, .nvp-kal-knopf:focus-visible, .nvp-quiz-antwort:focus-visible, .nvp-quiz-rueck:focus-visible,
.nvp-quiz-feld input:focus-visible, .nvp-kal-feld input:focus-visible, .nvp-kal-tuer:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.nvp-quiz .nvp-prod { text-align: left; }

/* ===== Kalender ===== */
.nvp-kal { text-align: center; }
.nvp-kal-text { margin-bottom: .9rem; }
.nvp-kal-raster { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 1rem; }
.nvp-kal-tuer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 0 0 84px; min-height: 68px; padding: .4rem; font-family: inherit;
  border-radius: 10px; border: 2px solid var(--nv-primary, #1e293b); background: var(--nv-primary, #1e293b); color: #fff; cursor: pointer;
}
.nvp-kal-nr { font-size: 1.5em; font-weight: 800; line-height: 1; }
.nvp-kal-tag { font-size: .72em; font-weight: 600; }
.nvp-kal-tuer.is-zu { background: #e2e8f0; color: #334155; border-color: #cbd5e1; cursor: not-allowed; }
.nvp-kal-tuer.is-auf { background: #fff; color: #047857; border-color: #047857; }
.nvp-kal-tuer.is-gewaehlt { box-shadow: 0 0 0 3px rgba(29,78,216,.5); }
.nvp-kal-inhalt { margin: .5rem 0 1rem; padding: 1rem; border-radius: 10px; border: 2px solid #047857; background: #f0fdf4; color: #14532d; text-align: center; }
.nvp-kal-inhalt-titel { font-weight: 800; font-size: 1.2em; margin-bottom: .4rem; }
.nvp-kal-inhalt-text { white-space: pre-line; }
.nvp-kal-inhalt-bild { display: block; max-width: 100%; max-height: 220px; margin: .6rem auto 0; border-radius: 8px; object-fit: cover; }
.nvp-kal-code-label { font-size: 11px; color: #166534; text-transform: uppercase; letter-spacing: .06em; margin-top: .8rem; }
.nvp-kal-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; text-align: left; }
.nvp-kal-titel { font-weight: 700; text-align: center; }
.nvp-kal-feld input[type="email"] { border: 1px solid rgba(15,23,42,.25); border-radius: 8px; padding: 10px 14px; font-size: 15px; width: 100%; box-sizing: border-box; font-family: inherit; }

/* ===== SMS/WhatsApp-Feld im Anmeldeformular ===== */
.nvp-kanal .nvp-kanal-haken { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: #475569; }

@media (max-width: 480px) {
  .nvp-quiz-antworten { grid-template-columns: 1fr; }
  .nvp-kal-tuer { flex-basis: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .nvp-quiz-fuell { transition: none; }
}
