/* ============================================================
   IS NIS2 Check – Styles
   Corporate Design: Innovate Systems GmbH
   ============================================================ */

:root {
  --nis2-blue:     #2563eb;
  --nis2-navy:     #0f172a;
  --nis2-text:     #1e293b;
  --nis2-muted:    #64748b;
  --nis2-border:   #e2e8f0;
  --nis2-bg:       #f8fafc;
  --nis2-card:     #ffffff;
  --nis2-radius:   14px;
  --nis2-shadow:   0 4px 24px rgba(15,23,42,.10), 0 1px 4px rgba(15,23,42,.06);
}

.nis2-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 660px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: var(--nis2-text);
  line-height: 1.6;
}

.nis2-noscript {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

/* ── Card ── */
.nis2-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,.8);
  border-radius: var(--nis2-radius);
  box-shadow:
    0 4px 6px rgba(15,23,42,.04),
    0 12px 32px rgba(15,23,42,.12),
    0 32px 64px rgba(15,23,42,.10);
  overflow: hidden;
  animation: nis2FadeIn .28s ease;
  transform: translateY(0);
  transition: box-shadow .3s ease, transform .3s ease;
}
.nis2-card:hover {
  box-shadow:
    0 8px 12px rgba(15,23,42,.06),
    0 20px 48px rgba(15,23,42,.15),
    0 48px 80px rgba(15,23,42,.12);
  transform: translateY(-3px);
}

/* ── Disclaimer Card – Glass ── */
.nis2-disclaimer-card {
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 8px 16px rgba(15,23,42,.08),
    0 24px 56px rgba(15,23,42,.18),
    0 0 0 1px rgba(255,255,255,.25) inset !important;
}

@keyframes nis2FadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Disclaimer ── */
.nis2-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--nis2-border);
  background: var(--nis2-navy);
}
.nis2-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(37,99,235,.3);
  color: #93c5fd;
  flex-shrink: 0;
}
.nis2-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .2rem;
}
.nis2-subtitle {
  font-size: .85rem;
  color: #94a3b8;
  margin: 0;
}

.nis2-disclaimer-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1.1rem 1.35rem 1.2rem;
  margin: 1.5rem 1.75rem 0;
}
.nis2-disclaimer-box__header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.nis2-disclaimer-icon {
  color: var(--nis2-blue);
  flex-shrink: 0;
  display: flex;
}
.nis2-disclaimer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nis2-navy);
  letter-spacing: -.01em;
}
.nis2-disclaimer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.nis2-disclaimer-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .875rem;
  color: #1e40af;
  line-height: 1.5;
}
.nis2-disclaimer-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--nis2-blue);
}
.nis2-disclaimer-list strong { color: #1e3a8a; }

.nis2-intro-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 1.75rem 0;
}
.nis2-intro-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--nis2-muted);
}
.nis2-intro-item svg { color: var(--nis2-blue); flex-shrink: 0; }

.nis2-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.25rem 1.75rem 0;
  font-size: .875rem;
  color: var(--nis2-text);
  cursor: pointer;
}
.nis2-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--nis2-blue);
  flex-shrink: 0;
  cursor: pointer;
}

.nis2-legal-note {
  font-size: .78rem;
  color: var(--nis2-muted);
  text-align: center;
  padding: 0 1.75rem 1.5rem;
  margin: 0;
}

/* ── Buttons ── */
.nis2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--nis2-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.5rem;
  font-size: .925rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.nis2-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.nis2-btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.nis2-disclaimer-card .nis2-btn-primary {
  width: calc(100% - 3.5rem);
  margin: 1.25rem 1.75rem 1rem;
  justify-content: center;
  padding: .875rem;
  font-size: 1rem;
}
.nis2-btn-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  color: var(--nis2-muted);
  border: 1px solid var(--nis2-border);
  border-radius: 8px;
  padding: .7rem 1.1rem;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.nis2-btn-back:hover:not(:disabled) { background: var(--nis2-bg); color: var(--nis2-text); }
.nis2-btn-back:disabled { opacity: .35; cursor: not-allowed; }

.nis2-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--nis2-blue);
  border: 1px solid var(--nis2-blue);
  border-radius: 8px;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.nis2-btn-phone:hover { background: #eff6ff; }

.nis2-btn-restart {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 auto 1.5rem;
  background: transparent;
  color: var(--nis2-muted);
  border: none;
  font-size: .825rem;
  cursor: pointer;
  padding: .5rem;
  transition: color .15s;
}
.nis2-btn-restart:hover { color: var(--nis2-text); }

/* ── Progress Header ── */
.nis2-progress-header {
  padding: 1.25rem 1.5rem 1rem;
  background: var(--nis2-bg);
  border-bottom: 1px solid var(--nis2-border);
}
.nis2-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .625rem;
}
.nis2-progress-block {
  font-size: .8rem;
  font-weight: 600;
  color: var(--nis2-blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nis2-progress-count {
  font-size: .875rem;
  color: var(--nis2-muted);
}
.nis2-progress-count strong { color: var(--nis2-text); }

.nis2-progress-bar-wrap {
  height: 7px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.nis2-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--nis2-blue), #60a5fa);
  border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* Step Dots */
.nis2-progress-steps {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nis2-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: background .2s, transform .2s;
}
.nis2-step-dot--done   { background: #93c5fd; }
.nis2-step-dot--active { background: var(--nis2-blue); transform: scale(1.3); }

/* ── Question Body ── */
.nis2-question-body {
  padding: 1.75rem 1.5rem 1.25rem;
  min-height: 280px;
}
.nis2-screening-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 99px;
  padding: .2rem .75rem;
  margin-bottom: .875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nis2-question-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nis2-navy);
  margin: 0 0 .625rem;
  line-height: 1.45;
}
.nis2-question-hint {
  font-size: .85rem;
  color: var(--nis2-muted);
  margin: 0 0 1.25rem;
  background: var(--nis2-bg);
  border-left: 3px solid var(--nis2-blue);
  padding: .5rem .75rem;
  border-radius: 0 6px 6px 0;
}

/* Options */
.nis2-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.nis2-option {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--nis2-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  background: var(--nis2-card);
  user-select: none;
}
.nis2-option:hover { border-color: #93c5fd; background: #f0f9ff; }
.nis2-option--selected {
  border-color: var(--nis2-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.nis2-option-radio { display: none; }
.nis2-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all .15s;
}
.nis2-option--selected .nis2-option-check {
  background: var(--nis2-blue);
  border-color: var(--nis2-blue);
  color: #fff;
}
.nis2-option-label {
  font-size: .9rem;
  font-weight: 500;
  color: var(--nis2-text);
}
.nis2-option--selected .nis2-option-label { color: #1d4ed8; font-weight: 600; }

/* Screening: more compact options (many choices) */
.nis2-option.nis2-option-compact { padding: .625rem .875rem; }

/* ── Navigation ── */
.nis2-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--nis2-border);
  background: var(--nis2-bg);
}

/* ── Result Card ── */
.nis2-result-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,.8);
  border-radius: var(--nis2-radius);
  box-shadow: 0 4px 6px rgba(15,23,42,.04), 0 12px 32px rgba(15,23,42,.12);
  overflow: hidden;
  animation: nis2FadeIn .28s ease;
}

/* ── Result Header ── */
.nis2-result-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  background: #031237;
}
.nis2-result-meta { flex: 1; min-width: 0; }
.nis2-result-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid;
  border-radius: 99px;
  padding: .2rem .75rem;
  margin-bottom: .75rem;
  letter-spacing: .02em;
}
.nis2-result-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 .35rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.nis2-result-company {
  font-size: .8rem;
  color: #94a3b8;
  margin: 0 0 .875rem;
  line-height: 1.6;
}
.nis2-result-company span { color: #64748b; }
.nis2-nis2-status {
  font-size: .825rem;
  border-radius: 8px;
  padding: .45rem .875rem;
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}
.nis2-status--affected { background: rgba(220,38,38,.18); color: #fca5a5; }
.nis2-status--clear    { background: rgba(22,163,74,.18);  color: #86efac; }
.nis2-status--supply   { background: rgba(234,88,12,.18);  color: #fdba74; }

/* Score Ring */
.nis2-result-score-wrap { flex-shrink: 0; }
.nis2-result-ring {
  position: relative;
  width: 120px;
  height: 120px;
}
.nis2-ring-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.nis2-ring-bg   { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 8; }
.nis2-ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.nis2-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nis2-ring-pct { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.nis2-ring-sub { font-size: .65rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* ── Sections ── */
.nis2-blocks-section {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--nis2-border);
  background: #fff;
}
.nis2-blocks-title,
.nis2-recs-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nis2-navy);
  margin: 0 0 1.1rem;
  letter-spacing: -.01em;
}
.nis2-blocks-grid { display: flex; flex-direction: column; gap: .7rem; }
.nis2-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.nis2-block-name  { font-size: .83rem; color: var(--nis2-text); font-weight: 500; }
.nis2-block-score { font-size: .83rem; font-weight: 700; }
.nis2-block-bar-wrap { height: 6px; background: #e9edf5; border-radius: 99px; overflow: hidden; }
.nis2-block-bar { height: 100%; border-radius: 99px; transition: width .7s cubic-bezier(.4,0,.2,1); }

/* ── Recommendations ── */
.nis2-recs-section {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--nis2-border);
  background: #fff;
}
.nis2-recs-list { display: flex; flex-direction: column; gap: .875rem; }
.nis2-rec-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e9edf5;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.nis2-rec-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #294395;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.nis2-rec-body { flex: 1; min-width: 0; }
.nis2-rec-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .3rem;
}
.nis2-rec-top strong { font-size: .875rem; color: var(--nis2-navy); font-weight: 700; flex: 1; }
.nis2-rec-item p { font-size: .82rem; color: var(--nis2-muted); margin: 0; line-height: 1.55; }

.nis2-prio-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .15rem .6rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nis2-prio--high     { background: #fff1e6; color: #c05c00; border: 1px solid #fdd9b5; }
.nis2-prio--critical { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.nis2-well-done { text-align: center; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 1rem; margin: 0; font-size: .9rem; }

/* ── Kontext-Warnblock ── */
.nis2-context-alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0 2rem 0;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: .875rem;
  line-height: 1.55;
}
.nis2-context-alert--risk   { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.nis2-context-alert--supply { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a5f; }
.nis2-context-alert__icon { flex-shrink: 0; margin-top: 2px; opacity: .75; }
.nis2-context-alert strong { display: block; margin-bottom: .35rem; font-size: .925rem; }
.nis2-context-alert p { margin: 0; }

/* ── CTA ── */
.nis2-cta-section {
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #031237 0%, #294395 100%);
}
.nis2-cta-inner   { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nis2-cta-inner h3 { font-size: 1rem; font-weight: 700; color: #fff !important; margin: 0 0 .35rem; }
.nis2-cta-inner p  { font-size: .825rem; color: #94a3b8; margin: 0; }
.nis2-cta-buttons  { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .nis2-app             { padding: 0; }
  .nis2-disclaimer-box  { margin-left: 0; margin-right: 0; border-radius: 0; }
  .nis2-intro-grid      { padding-left: 1rem; padding-right: 1rem; }
  .nis2-checkbox-label  { padding-left: 1rem; padding-right: 1rem; }
  .nis2-disclaimer-list { flex-direction: column; }
  .nis2-result-header     { flex-direction: column; align-items: flex-start; }
  .nis2-result-score-wrap { order: -1; align-self: flex-start; margin-top: 0; }
  .nis2-cta-inner       { flex-direction: column; }
  .nis2-cta-buttons     { width: 100%; flex-direction: column; }
  .nis2-btn-phone       { justify-content: center; }
  .nis2-option          { padding: .7rem .875rem; }
  .nis2-question-text   { font-size: 1rem; }
  .nis2-blocks-section,
  .nis2-recs-section,
  .nis2-cta-section     { padding: 1.25rem 1rem; }
  .nis2-context-alert   { margin: 0; }
}
