/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Perulatus brand colors (extracted from perulatus.com) */
  --navy:          #162b4b;
  --navy-light:    #243f6b;
  --navy-dark:     #0e1a30;
  --gold:          #c2a259;
  --gold-light:    #d5c38a;
  --gold-bg:       #faf6ec;
  --gold-border:   #d5c38a;
  --burgundy:      #771f28;     /* Perulatus primary CTA */
  --burgundy-dark: #5a161e;
  --bg:            #f4f6f9;
  --surface:       #ffffff;
  --border:        #dce4ef;
  --text:          #1a2e4a;
  --muted:         #5a6e8a;
  --success:       #16a34a;
  --success-bg:    #dcfce7;
  --success-border:#86efac;
  --danger:        #b91c1c;
  --danger-bg:     #fee2e2;
  --danger-border: #fca5a5;
  --radius:        6px;                                /* Perulatus-style: less rounded */
  --shadow:        0 1px 4px rgba(22,43,75,0.06);     /* subtler */
  --shadow-lg:     0 4px 16px rgba(22,43,75,0.10);    /* subtler */
}

/* Navy background on HTML + body — covers overscroll/pull-down at top AND bottom */
html, body {
  background: var(--navy);
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 960px;
  font-weight: 400;
}

/* (Screen-wrapper bg defined later — set to navy to match the rest of the page) */

/* Perulatus heading style: semi-bold (600), not heavy */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3em; }
h1 { font-size: 2.25rem; line-height: 1.4em; }   /* 36px */
h2 { font-size: 1.875rem; }                        /* 30px */
h3 { font-size: 1.5rem; }                          /* 24px */
h4 { font-size: 1.25rem; line-height: 1.2em; }     /* 20px */
h5 { font-size: 1.125rem; line-height: 1.2em; }    /* 18px */
h6 { font-size: 1rem; line-height: 1.25em; }       /* 16px */

/* ===== PROGRESS NAV ===== */
.progress-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy);
  height: 60px;
  display: flex; align-items: center;
  padding: 0 2.5rem;
  box-shadow: 0 2px 16px rgba(29,52,97,0.25);
}
.progress-nav-inner {
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo-small {
  display: flex; align-items: center; gap: 0.6rem;
  white-space: nowrap;
}
.nav-logo {
  height: 36px; width: auto;
  /* Transparent background + gold color looks great on navy */
}
.nav-brand-text {
  font-size: 0.88rem; font-weight: 600; color: #fff;
  letter-spacing: 0.01em;
}
.step-dots { display: flex; align-items: center; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.step-dot.active {
  background: var(--gold); border-color: var(--gold);
  color: #fff; box-shadow: 0 0 0 3px rgba(200,149,42,0.35);
}
.step-dot.done {
  background: var(--success); border-color: var(--success); color: #fff;
}
.step-line { width: 32px; height: 2px; background: rgba(255,255,255,0.15); flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.step-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); font-weight: 600; white-space: nowrap; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-toggle { display: flex; align-items: center; gap: 0.35rem; }
.lang-btn {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; padding: 0.3rem 0.75rem;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.lang-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lang-btn.active {
  background: var(--gold); color: #fff;
  border-color: var(--gold);
}

/* ===== SCREEN SYSTEM ===== */
.screen-wrapper { padding-top: 60px; background: var(--navy); }
.screen { display: none; min-height: calc(100vh - 60px); background: var(--bg); }
/* Screen 1 + Screen 6 have their own bg sections — keep them transparent here */
#screen-1, #screen-6 { background: transparent; }
.screen.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SCREEN 1: LANDING ===== */
.landing-bg {
  min-height: calc(100vh - 60px);
  background: var(--bg);
  display: flex; flex-direction: column;
}

/* Hero strip – navy, like reference header */
.landing-hero {
  background: var(--navy);
  padding: 5rem 2.5rem;
  min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.landing-hero-inner {
  max-width: 1100px; width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 3rem;
}
.landing-content { padding-top: 0.5rem; }
.landing-visual {
  position: relative; width: 300px; height: 300px; flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 60px;   /* aligns shield top with title top */
  z-index: 1;
}
.shield-big-svg {
  width: 130px; height: 130px;
  color: var(--gold-light);
  filter: drop-shadow(0 0 24px rgba(200,149,42,0.45));
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
/* Floating cards around the shield (restored position) */
.floating-card {
  position: absolute;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 600;
  padding: 0.38rem 0.85rem; border-radius: 20px;
  backdrop-filter: blur(4px); white-space: nowrap;
}
.fc-1 { top: 8%;    left: -30%;  animation: float 4s ease-in-out infinite; }
.fc-2 { bottom: 20%; right: -25%; animation: float 4s ease-in-out infinite 1.3s; }
.fc-3 { bottom: 4%;  left: -5%;   animation: float 4s ease-in-out infinite 2.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.landing-content { max-width: 520px; position: relative; z-index: 1; }
.landing-badge {
  display: inline-flex; align-items: center;
  background: rgba(200,149,42,0.18); color: var(--gold-light);
  font-size: 0.7rem; font-weight: 700;
  padding: 0.28rem 0.9rem; border-radius: 4px;
  border: 1px solid rgba(200,149,42,0.35);
  margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.landing-title {
  font-size: 3rem; font-weight: 600; line-height: 1.2;
  color: var(--gold-light); margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.landing-title span { color: var(--gold-light); font-weight: 600; }
.landing-sub {
  color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.75;
  margin-bottom: 1.5rem; max-width: 500px;
}

/* User stats — shown on result page if user has completed training before */
.user-stats {
  margin: 0 auto 1.75rem;
  max-width: 480px;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(213,195,138,0.3);
  border-radius: 6px;
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.user-stats strong { color: var(--gold-light); font-weight: 600; }
.user-stats-text, .user-stats-last { display: inline-block; }

/* Onboarding modal (shown only on first visit) */
.onboarding-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(14, 26, 48, 0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.onboarding-card {
  background: var(--surface);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 2.5rem 3rem;
  max-width: 560px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  animation: fadeUp 0.4s ease;
}
.onboarding-card h2 {
  font-size: 1.5rem; font-weight: 600;
  color: var(--navy); margin-bottom: 1rem;
}
.onboarding-card p {
  font-size: 0.95rem; line-height: 1.65;
  color: var(--text); margin-bottom: 1rem;
}
.onboarding-list {
  list-style: none; padding: 0;
  margin: 1.25rem 0;
  counter-reset: step;
}
.onboarding-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.3rem;
  font-size: 0.9rem; line-height: 1.5;
  counter-increment: step;
  color: var(--text);
}
.onboarding-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.45rem;
  width: 1.65rem; height: 1.65rem;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.onboarding-note {
  font-size: 0.83rem !important;
  color: var(--muted) !important;
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 1.25rem !important;
}
.btn-onboarding {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  background: var(--burgundy); color: #fff;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  padding: 0.85rem; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.02em;
}
.btn-onboarding:hover {
  background: var(--gold); color: #000; border-color: var(--gold);
}

/* Subtle fade-in for landing modules on scroll */
.landing-module {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s, background 0.2s;
}
.landing-module.revealed { opacity: 1; transform: translateY(0); }

/* Quiz question subtle slide animation when answered */
.question-block .feedback.correct,
.question-block .feedback.wrong {
  animation: feedbackSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes feedbackSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Perulatus-style three-word tagline */
.landing-tagline {
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

/* Perulatus button: burgundy → gold on hover, no radius (Perulatus uses square buttons) */
.btn-start {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--burgundy); color: #fff;
  border: 1px solid var(--burgundy); border-radius: 4px;
  padding: 0.95rem 2.4rem; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-transform: none; letter-spacing: 0.01em;
}
.btn-start:hover {
  background: var(--gold); color: #000; border-color: var(--gold);
}
.btn-arrow { font-size: 1.05rem; transition: transform 0.2s; }
.btn-start:hover .btn-arrow { transform: translateX(4px); }

@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.floating-card {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 600;
  padding: 0.38rem 0.85rem; border-radius: 20px;
  backdrop-filter: blur(4px); white-space: nowrap;
}

/* Module strip – white */
.landing-modules-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2.5rem 4rem;
  display: flex; flex-direction: column; align-items: center;
}

/* Perulatus-style section header (eyebrow + big headline) */
.modules-header {
  max-width: 1100px; width: 100%;
  margin-bottom: 3rem;
  text-align: left;
}
.modules-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}
.modules-headline {
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  max-width: 780px;
  margin: 0;
}
.landing-modules-section > div {
  max-width: 1100px; width: 100%;
}
.landing-modules-section h3 {
  font-size: 0.7rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em;
  text-align: left;
  padding-top: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 1100px; width: 100%;
}
.landing-modules {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  max-width: 1100px; width: 100%;
}
.landing-module {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  min-height: 200px;
}
.landing-module:hover {
  border-color: var(--gold);
}
.landing-module:active { background: var(--surface); }
.lm-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;                 /* Perulatus-style: bigger icons */
  background: var(--gold-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.lm-icon svg { width: 26px; height: 26px; }
.lm-time {
  display: inline-flex !important; align-items: center; gap: 0.3rem;
  font-size: 0.7rem; color: var(--muted);
  margin-top: 0.3rem; font-weight: 600;
}
.time-icon { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; }
.meta-icon { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.meta-dot { color: var(--muted); }

/* Badge icon */
.badge-icon { width: 14px; height: 14px; margin-right: 0.4rem; vertical-align: -2px; }
.landing-badge { display: inline-flex; align-items: center; }

/* Floating card icons (used by the cards defined above) */
.fc-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold-light); }
.landing-module strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; line-height: 1.3; }
.landing-module span { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* Meta + start */
.landing-footer-section {
  background: var(--bg); padding: 3.5rem 2.5rem 4rem;
  display: flex; justify-content: center;
}
.landing-footer-inner {
  max-width: 1100px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.landing-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.82rem; color: var(--muted);
}
.landing-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ===== INNER PAGE (screens 2, 3, 4) ===== */
.inner-page { max-width: 860px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.page-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.page-num {
  display: inline-block;
  background: var(--gold-bg); color: var(--gold);
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; padding: 0.22rem 0.75rem; border-radius: 4px;
  border: 1px solid var(--gold-border);
  margin-bottom: 0.6rem;
}
.page-header h2 { font-size: 1.65rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.page-header p { color: var(--muted); font-size: 0.95rem; }

/* ===== VIDEO ===== */
.video-box {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; background: #0f172a;
  box-shadow: var(--shadow-lg); margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}
.video-thumb-link { display: block; width: 100%; height: 100%; position: relative; text-decoration: none; cursor: pointer; }
.video-thumb-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-player { width: 100%; height: 100%; }
.video-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.38);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem;
  transition: background 0.2s;
}
.video-thumb-link:hover .play-overlay { background: rgba(0,0,0,0.54); }
.play-btn {
  width: 72px; height: 72px; background: #ff0000; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45); transition: transform 0.15s;
}
.video-thumb-link:hover .play-btn { transform: scale(1.08); }
.play-overlay span { color: #fff; font-size: 0.85rem; font-weight: 600; background: rgba(0,0,0,0.4); padding: 0.3rem 1rem; border-radius: 5px; }
.video-source { font-size: 0.73rem; color: var(--muted); text-align: right; margin-bottom: 1.5rem; }

.key-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem;
}
.key-fact {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow);
}
.key-fact .kf-icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: 0.5rem; }
.key-fact strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.key-fact span:last-child { font-size: 0.78rem; color: var(--muted); }

/* ===== SCREEN 3: EMAIL ANIMATION ===== */
.attack-banner {
  background: #fff7ed; border: 1px solid #fed7aa;
  border-left: 4px solid #f97316; border-radius: var(--radius);
  padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 0.85rem;
  margin-bottom: 1.5rem; font-size: 0.9rem;
}
.attack-banner > span { font-size: 1.4rem; flex-shrink: 0; }
.attack-icon { width: 28px; height: 28px; flex-shrink: 0; color: #c2410c; }
.attack-banner strong { display: block; font-weight: 600; color: #9a3412; margin-bottom: 0.2rem; }
.attack-banner span { color: #c2410c; font-size: 0.83rem; }

.anim-email {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.anim-email-bar {
  background: #f1f5f9; border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.25rem; display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
}
.email-dots { display: flex; gap: 0.4rem; }
.email-dot { width: 12px; height: 12px; border-radius: 50%; }
.email-dot.red    { background: #f87171; }
.email-dot.yellow { background: #fbbf24; }
.email-dot.green  { background: #4ade80; }
.anim-email-body { padding: 1.5rem 1.75rem; }
.anim-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem; font-size: 0.875rem;
}
.anim-label { font-weight: 700; color: var(--muted); min-width: 45px; }
.anim-val { color: var(--text); }
.anim-val.danger { color: var(--danger); font-weight: 700; }
.anim-divider { border-top: 1px solid var(--border); margin: 0.85rem 0; }
.anim-text p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.65rem; }
.anim-highlight { transition: background 0.4s; border-radius: 4px; }
.anim-highlight.lit { background: #fef9c3; }
.anim-tag {
  display: inline-flex; align-items: center;
  background: #fef3c7; color: #92400e;
  font-size: 0.68rem; font-weight: 700;
  padding: 0.1rem 0.5rem; border-radius: 4px;
  border: 1px solid #fde047; white-space: nowrap;
  animation: tagPop 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes tagPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.anim-tag.hidden { display: none !important; }

.warn-grid-box {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin-bottom: 1.5rem;
  animation: fadeUp 0.4s ease;
}
.warn-grid-box h3 { font-size: 0.9rem; font-weight: 600; color: #7a5a10; margin-bottom: 1rem; }
.warn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; }
.warn-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  background: rgba(255,255,255,0.8); border-radius: 6px;
  padding: 0.65rem 0.9rem; border: 1px solid var(--gold-border);
}
.warn-num {
  min-width: 24px; height: 24px; background: var(--gold); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; flex-shrink: 0;
}
.warn-item strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.warn-item span { font-size: 0.75rem; color: var(--muted); }

/* ===== NAV BUTTONS ===== */
.nav-btns {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.btn-next {
  background: var(--navy); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.9rem 2rem; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background 0.15s, transform 0.12s;
  box-shadow: 0 3px 12px rgba(29,52,97,0.25);
}
.btn-next:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-next:disabled {
  background: rgba(29,52,97,0.35);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-next:disabled:hover { background: rgba(29,52,97,0.35); transform: none; }
.btn-back {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.9rem 1.5rem; font-size: 0.93rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.btn-back:hover { border-color: #94a3b8; color: var(--text); }
/* Back button on dark (result page) background */
.result-page .btn-back {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.3);
}
.result-page .btn-back:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-secondary-sm {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.7rem 1.2rem; font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s; margin-left: auto;
}
.btn-secondary-sm:hover { border-color: #94a3b8; color: var(--text); }

/* ===== QUIZ ===== */
.question-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.75rem;
  margin-bottom: 1rem; box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.question-block:focus-within { box-shadow: var(--shadow-lg); border-color: #b8cde8; }
.q-label {
  font-size: 0.66rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.55rem;
}
.q-text { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 1.1rem; line-height: 1.5; }
.q-text code { background: #f1f5f9; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.87rem; color: var(--danger); font-weight: 700; }
.answers { display: flex; flex-direction: column; gap: 0.5rem; }
.option {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 6px; cursor: pointer;
  font-size: 0.92rem; color: var(--text);
  border: 1.5px solid var(--border); background: #fafbfc;
  transition: all 0.12s; user-select: none;
}
.option:hover { border-color: var(--navy-light); background: #eef2f9; }
.option input[type="radio"] { accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.option.correct { background: var(--success-bg); border-color: var(--success-border); color: #14532d; }
.option.wrong   { background: var(--danger-bg);  border-color: var(--danger-border);  color: #7f1d1d; }
.feedback {
  margin-top: 0.9rem; padding: 0.9rem 1.1rem; border-radius: 6px;
  font-size: 0.875rem; line-height: 1.65; display: none;
}
.feedback.correct { background: var(--success-bg); color: #14532d; border-left: 3px solid #22c55e; }
.feedback.wrong   { background: var(--danger-bg);  color: #7f1d1d; border-left: 3px solid #ef4444; }
.feedback strong { display: block; margin-bottom: 0.25rem; }
.btn-submit {
  display: block; width: 100%; margin-top: 1.5rem;
  background: var(--navy); color: #fff;
  border: none; border-radius: 6px;
  padding: 1rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 12px rgba(29,52,97,0.25);
  transition: background 0.15s, transform 0.12s;
}
.btn-submit:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ===== SCREEN 5: ERGEBNIS ===== */
.result-page {
  min-height: calc(100vh - 60px);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem; position: relative; overflow: hidden;
}
.result-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(200,149,42,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.result-content {
  max-width: 640px; width: 100%; text-align: center; position: relative; z-index: 1;
}
.result-stars-big {
  font-size: 2.6rem; margin-bottom: 0.75rem; letter-spacing: 0.15em;
  color: var(--gold-light);
  text-shadow:
    0 0 12px rgba(213,195,138,0.7),
    0 0 32px rgba(200,162,89,0.4);
  animation: pop 0.6s cubic-bezier(0.175,0.885,0.32,1.275), shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { text-shadow: 0 0 12px rgba(213,195,138,0.7), 0 0 32px rgba(200,162,89,0.4); }
  50%      { text-shadow: 0 0 18px rgba(213,195,138,0.95), 0 0 48px rgba(200,162,89,0.6); }
}
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-earned-label {
  font-size: 0.7rem; font-weight: 600; color: var(--gold-light);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem;
}
.result-content h2 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.result-content > p { color: rgba(255,255,255,0.65); max-width: 440px; margin: 0 auto 1.5rem; line-height: 1.65; }
.result-score-box {
  display: inline-block; background: rgba(200,149,42,0.18); color: var(--gold-light);
  font-size: 1.5rem; font-weight: 700; padding: 0.5rem 2.5rem;
  border-radius: 6px; border: 1px solid rgba(200,149,42,0.35); margin-bottom: 2rem;
}
/* Name prompt on result page */
.result-name-prompt {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 0 auto 1.75rem;
  max-width: 480px; text-align: left;
}
.result-name-prompt label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 0.65rem;
  text-align: center;
}
#result-name, #result-email {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem; font-weight: 500;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 0.5rem;
}
#result-email { margin-bottom: 0; }
#result-name::placeholder, #result-email::placeholder { color: rgba(255,255,255,0.4); font-weight: 400; }
#result-name:focus, #result-email:focus { border-color: var(--gold); background: rgba(255,255,255,0.14); }

.result-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-retry-result {
  background: rgba(255,255,255,0.08); color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 6px;
  padding: 0.75rem 1.8rem; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.btn-retry-result:hover { background: rgba(255,255,255,0.15); }
.btn-cert {
  background: var(--gold); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.75rem 1.8rem; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(200,149,42,0.4); transition: background 0.15s, transform 0.12s;
}
.btn-cert:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-home {
  display: block; background: transparent; color: rgba(255,255,255,0.4);
  border: none; font-size: 0.85rem; cursor: pointer; margin-top: 1rem;
  transition: color 0.15s;
}
.btn-home:hover { color: rgba(255,255,255,0.7); }

/* ===== ZERTIFIKAT (formaler Geschäftsbrief-Stil) ===== */
.cert-box { margin-top: 2rem; text-align: left; animation: fadeUp 0.4s ease; }
.cert-card {
  background: #ffffff; color: var(--text);
  border: 1px solid var(--border); border-top: 4px solid var(--gold);
  padding: 3rem 3.5rem; margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: left;
}

/* Letterhead — logo + company info on the right (like NDA template) */
.cert-letterhead {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cert-logo-img { height: 60px; width: auto; }
.cert-company-info {
  text-align: right; font-size: 0.78rem; color: var(--text);
  line-height: 1.55;
}
.cert-company-info strong { color: var(--navy); font-weight: 700; }

.cert-rule {
  border-bottom: 2px solid var(--gold);
  margin-bottom: 2.5rem;
}

/* Document title (formal) */
.cert-title-formal {
  font-size: 1.55rem; font-weight: 600; color: var(--navy);
  margin-bottom: 0.4rem; letter-spacing: 0.01em;
}
.cert-subtitle-formal {
  font-size: 0.92rem; color: var(--muted); font-style: italic;
  margin-bottom: 2.25rem;
}

/* Body paragraphs */
.cert-body {
  font-size: 0.92rem; line-height: 1.75; color: var(--text);
  margin: 0.9rem 0;
}

/* Name input — fill-in form field, left-aligned */
#cert-name {
  display: block; width: 100%;
  border: none; border-bottom: 1.5px solid var(--navy);
  text-align: left; font-size: 1.15rem; font-weight: 600;
  color: var(--navy); padding: 0.5rem 0.2rem;
  outline: none; background: transparent;
  margin: 0.5rem 0 1.25rem 0;
  font-family: 'Roboto', sans-serif;
}
#cert-name::placeholder { color: #b8bdc6; font-weight: 400; font-style: italic; }

/* Footer: place/date + signatures */
.cert-footer { margin-top: 2.75rem; }
.cert-meta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  margin-bottom: 2.5rem;
}
.cert-label-sm {
  display: block; font-size: 0.68rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cert-date, .cert-company-name {
  font-size: 0.95rem; color: var(--text);
  font-weight: 500; margin-top: 0.4rem;
}

/* Digital seal — replaces signature lines */
.cert-seal-wrap {
  display: flex; justify-content: flex-end;
}
.cert-seal {
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: var(--gold-bg);
  border: 2px solid var(--gold);
  border-radius: 6px;
  color: var(--navy);
  position: relative;
}
.cert-seal::before {
  content: ''; position: absolute;
  inset: 3px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  opacity: 0.35;
  pointer-events: none;
}
.cert-seal svg {
  width: 32px; height: 32px;
  color: var(--gold);
  flex-shrink: 0;
}
.cert-seal strong {
  display: block;
  font-size: 0.78rem; font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cert-seal span {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Verification note */
.cert-verify-note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Action buttons row (Email + Print) */
.cert-actions-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-top: 0.5rem;
}
.btn-confirm-email, .btn-print {
  display: block; width: 100%;
  border-radius: 4px;
  padding: 0.95rem; font-size: 0.93rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.02em;
}
.btn-confirm-email {
  background: var(--gold); color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-confirm-email:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-print {
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy);
}
.btn-print:hover { background: var(--navy-dark); }

/* Hint shown after opening email client */
.cert-email-hint {
  margin-top: 0.85rem; padding: 1rem 1.25rem;
  background: var(--success-bg); color: #14532d;
  border: 1px solid var(--success-border); border-radius: 6px;
  font-size: 0.85rem; line-height: 1.65;
  text-align: left;
  animation: fadeUp 0.3s ease;
}
.cert-email-hint strong { color: #14532d; }

.cert-copy-fallback {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.78rem;
}
.cert-copy-fallback a {
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.cert-copy-fallback a:hover { color: var(--navy); }

/* Yearly calendar reminder button */
.btn-cert-reminder {
  display: block; width: 100%;
  margin-top: 1rem;
  background: var(--gold-bg);
  color: var(--navy);
  border: 1.5px solid var(--gold-border);
  border-radius: 4px;
  padding: 0.85rem; font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.02em;
}
.btn-cert-reminder:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* AI Chat section */
.cert-chat {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cert-chat-title {
  font-size: 1.1rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.35rem;
}
.cert-chat-subtitle {
  color: var(--muted); font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.cert-chat-suggestions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.chat-suggestion {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer;
  color: var(--navy);
  font-family: 'Roboto', sans-serif;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.chat-suggestion:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  text-decoration: none;
}

/* Confirmation hint after copying — contains the visible "open ChatGPT" link */
.cert-chat-hint {
  margin-top: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--success-bg);
  color: #14532d;
  border: 1px solid var(--success-border);
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.cert-chat-hint strong { color: #14532d; }
.chat-open-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.chat-open-link:hover { background: var(--navy-light); }

.cert-chat-input-row {
  display: flex; gap: 0.5rem;
}
.cert-chat-input-row input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.cert-chat-input-row input:focus { border-color: var(--gold); }
.cert-chat-input-row button,
.cert-chat-input-row .btn-chat-open-link {
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy); border-radius: 4px;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex; align-items: center;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
}
.cert-chat-input-row button:hover,
.cert-chat-input-row .btn-chat-open-link:hover { background: var(--navy-light); color: #fff; }

/* End-of-flow actions: retry + back to start */
.cert-end-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-cert-retry, .btn-cert-home {
  display: block; width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem; font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.02em;
}
.btn-cert-retry:hover, .btn-cert-home:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--bg);
}

/* ===== SCREEN 4: PHISHING-WISSEN ===== */

/* Reveal-on-scroll animation — gentle, no stress */
.kn-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.kn-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Highlighted keywords — subtle gold underline (like a marker) */
.kn-keyword {
  background: linear-gradient(180deg, transparent 60%, rgba(213,195,138,0.55) 60%);
  font-weight: 600;
  color: var(--navy);
  padding: 0 2px;
  transition: background 0.3s;
}

.kn-definition {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: 6px; padding: 1.5rem 1.75rem; margin-bottom: 2rem;
}
.kn-definition h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.kn-definition p { font-size: 0.92rem; color: var(--text); line-height: 1.65; }

.kn-section-title {
  font-size: 0.75rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 2.5rem 0 1rem 0;
}

.kn-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
  margin-bottom: 1rem;
}
.kn-card, .kn-warn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1rem;
  display: flex; align-items: flex-start; gap: 0.8rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kn-card:hover, .kn-warn:hover {
  border-color: var(--gold-border); box-shadow: var(--shadow);
}
.kn-card-icon, .kn-warn-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.kn-card-icon svg, .kn-warn-icon svg { width: 20px; height: 20px; }
.kn-warn-icon { background: #fef3c7; border-color: #fde68a; color: #b45309; }
.kn-card strong, .kn-warn strong {
  display: block; font-size: 0.88rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.2rem;
}
.kn-card span, .kn-warn span {
  font-size: 0.78rem; color: var(--muted); line-height: 1.45;
}

/* Step-by-step reaction cards */
.kn-react-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.5rem;
}
.kn-react-card {
  padding: 1.4rem 1.5rem; border-radius: 6px;
  border: 1px solid;
}
.kn-react-prevent { background: var(--gold-bg); border-color: var(--gold-border); }
.kn-react-emergency { background: #fee2e2; border-color: #fca5a5; }
.kn-react-card h4 {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.98rem; font-weight: 700; margin-bottom: 1rem;
  line-height: 1.3;
}
.kn-react-prevent h4 { color: var(--navy); }
.kn-react-emergency h4 { color: #7f1d1d; }
.kn-react-icon { width: 22px; height: 22px; flex-shrink: 0; }
.kn-react-prevent .kn-react-icon { color: var(--gold); }
.kn-react-emergency .kn-react-icon { color: #b91c1c; }
.kn-steps {
  list-style: none; padding: 0; counter-reset: step;
}
.kn-steps li {
  position: relative; padding-left: 2.3rem; margin-bottom: 0.7rem;
  font-size: 0.83rem; line-height: 1.55; counter-increment: step;
  color: var(--text);
}
.kn-steps li:last-child { margin-bottom: 0; }
.kn-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--surface); border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
}
.kn-react-prevent .kn-steps li::before { color: var(--gold); }
.kn-react-emergency .kn-steps li::before { color: #b91c1c; }

/* Do / Don't grid */
.kn-do-dont {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.5rem;
}
.kn-do, .kn-dont {
  border-radius: 6px; padding: 1.2rem 1.4rem;
  border: 1px solid;
}
.kn-do  { background: var(--success-bg); border-color: var(--success-border); }
.kn-dont { background: var(--danger-bg);  border-color: var(--danger-border); }
.kn-do h4   { font-size: 0.95rem; color: #14532d; margin-bottom: 0.6rem; }
.kn-dont h4 { font-size: 0.95rem; color: #7f1d1d; margin-bottom: 0.6rem; }
.kn-do ul, .kn-dont ul { list-style: none; padding: 0; }
.kn-do li, .kn-dont li {
  font-size: 0.82rem; line-height: 1.5; padding: 0.25rem 0;
  color: var(--text);
}
.kn-do li::before  { content: "✓ "; color: var(--success); font-weight: 700; }
.kn-dont li::before { content: "✗ "; color: var(--danger);  font-weight: 700; }

/* Golden rule */
.kn-golden-rule {
  background: var(--navy); color: #fff;
  border-radius: 6px; padding: 1.4rem 1.75rem;
  margin: 1.5rem 0 2rem;
  border-left: 4px solid var(--gold);
}
.kn-golden-rule strong {
  display: block; color: var(--gold-light);
  font-size: 0.85rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.kn-golden-rule p {
  font-size: 0.9rem; line-height: 1.65;
  color: rgba(255,255,255,0.92);
}
.kn-rule-emphasis {
  color: var(--gold-light);
  font-weight: 700;
}

/* ===== QUESTION TYPE BADGES ===== */
.q-label {
  display: flex; align-items: center; gap: 0.7rem;
  flex-wrap: wrap;
}
.q-type-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.q-type-single {
  background: var(--gold-bg);
  color: var(--navy);
  border: 1px solid var(--gold-border);
}
.q-type-multi {
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid var(--navy-light);
}

/* ===== MULTI-CHOICE "PRÜFEN" BUTTON ===== */
.btn-check-multi {
  display: inline-flex; align-items: center;
  margin: 0.85rem 0 0 0;
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy); border-radius: 4px;
  padding: 0.55rem 1.5rem; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
  letter-spacing: 0.02em;
}
.btn-check-multi:hover { background: var(--navy-light); }

/* Style checkboxes a bit larger than default */
.option input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Highlight question type indicator */
.question-block[data-multi="true"] .q-label::after {
  content: ''; /* the · Mehrere Antworten text is in the label already */
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== #4 NAV PROGRESS BAR ===== */
.nav-progress-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--navy);         /* dark blue — blends seamlessly with nav */
}
.nav-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s ease;
}

/* ===== #5 MODULE TIME BADGE ===== */
.lm-time {
  display: block; font-size: 0.7rem; color: var(--muted);
  margin-top: 0.3rem; font-weight: 600;
}

/* ===== #8 QUIZ PROGRESS ===== */
.quiz-prog-wrap {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1.5rem;
}
.quiz-prog-info {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.5rem;
}
.quiz-prog-track {
  height: 6px; background: rgba(29,52,97,0.1); border-radius: 3px; overflow: hidden;
}
.quiz-prog-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px; transition: width 0.3s ease;
}

/* ===== YEARLY REMINDER BANNER ===== */
.reminder-banner {
  position: relative; z-index: 150;
  background: var(--gold-bg);
  border-bottom: 1px solid var(--gold-border);
  padding: 0.7rem 2.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.85rem; color: var(--navy);
}
.reminder-banner svg {
  width: 18px; height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.reminder-banner span { flex: 1; }
.reminder-banner button {
  background: transparent; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 0.95rem; padding: 0.2rem 0.5rem;
}
.reminder-banner button:hover { color: var(--navy); }

/* Resume modal — shown ONCE on landing if user paused mid-training */
.resume-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(14, 26, 48, 0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}
.resume-card {
  background: var(--surface);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 2.5rem 3rem;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  animation: fadeUp 0.4s ease;
}
.resume-card-icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin: 0 auto 1rem;
  display: block;
}
.resume-card h2 {
  font-size: 1.45rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.85rem;
}
.resume-card p {
  font-size: 0.95rem; line-height: 1.65;
  color: var(--text); margin-bottom: 1.5rem;
}
.resume-card p strong { color: var(--navy); font-weight: 600; }
.resume-actions {
  display: flex; gap: 0.75rem;
}
.btn-resume-continue, .btn-resume-restart {
  flex: 1;
  padding: 0.85rem; font-size: 0.9rem; font-weight: 500;
  border-radius: 4px; cursor: pointer;
  transition: all 0.15s;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.02em;
}
.btn-resume-continue {
  background: var(--burgundy); color: #fff;
  border: 1px solid var(--burgundy);
}
.btn-resume-continue:hover {
  background: var(--gold); color: #000; border-color: var(--gold);
}
.btn-resume-restart {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-resume-restart:hover {
  border-color: var(--navy); color: var(--navy);
}

/* Incomplete-training banner — slightly more urgent (warm orange) */
.incomplete-banner {
  background: #fff5e6;
  border-bottom-color: #f0b95e;
  color: #8a4d00;
}
.incomplete-banner svg { color: #c97f10; }

/* ===== #9 MOBILE WARNING ===== */
.mobile-warning {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--navy-dark); color: #fff;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; font-weight: 500;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.mobile-warning span { flex: 1; }
.mobile-warning button {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 50%; width: 28px; height: 28px;
  font-size: 0.85rem; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ===== #6 PRINT (improved) ===== */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; min-width: 0 !important; }
  .progress-nav, .nav-btns, .result-glow, .result-actions,
  .btn-home, .btn-print, .btn-retry-result, #mobile-warning,
  .result-earned-label, .result-score-box { display: none !important; }
  .screen { display: none !important; }
  #screen-5 { display: block !important; }
  .result-page {
    background: #fff !important; min-height: 0 !important;
    padding: 0 !important; display: block !important;
  }
  .result-content { color: var(--text) !important; max-width: 100% !important; }
  .result-content h2, .result-content > p { display: none !important; }
  .cert-box { display: block !important; margin: 0 !important; }
  .cert-card { box-shadow: none !important; border: 2px solid var(--gold-border) !important; }
}
