* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #f4f5f7; color: #1a1a1a; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Pålogging ── */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #002554; padding: 2rem; }
.login-box { background: #fff; border-radius: 16px; padding: 2.5rem 2rem; width: 100%; max-width: 340px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.ikn-mark { display: inline-block; background: #002554; color: #f1b434; font-weight: 900; font-size: 1rem; letter-spacing: 2px; padding: 0.4rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.login-logo { margin-bottom: 1.25rem; }
.login-logo img { height: 36px; width: auto; }
.login-box h1 { font-size: 1.4rem; font-weight: 800; color: #002554; margin-bottom: 0.3rem; }
.login-box > p { font-size: 0.85rem; color: #5a6472; margin-bottom: 1.75rem; }
.login-form { display: flex; flex-direction: column; gap: 0.75rem; }
.login-form input { border: 1.5px solid #e0e3e8; border-radius: 8px; padding: 0.85rem; font-size: 1rem; font-family: inherit; outline: none; text-align: center; letter-spacing: 3px; }
.login-form input:focus { border-color: #002554; }
.login-form button { background: #f1b434; color: #002554; border: none; border-radius: 8px; padding: 0.85rem; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.login-form button:hover { opacity: 0.88; }
.login-error { display: none; color: #e53935; font-size: 0.82rem; margin-top: 0.75rem; }

/* ── App ── */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-header { background: #002554; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 80px; max-width: 680px; margin: 0 auto; width: 100%; }
.header-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.header-mark { background: #f1b434; color: #002554; font-weight: 900; font-size: 0.72rem; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; }
.header-symbol { height: 32px; width: auto; display: block; }
.header-logo-img { height: 44px; width: auto; display: block; }
.header-divider { border-left: 1px solid rgba(255,255,255,0.25); padding-left: 0.75rem; margin-left: 0.25rem; font-size: 0.88rem; }
.logout-btn { background: none; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.65); border-radius: 6px; padding: 0.3rem 0.75rem; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
.reset-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; color: #aaa; font-size: 0.82rem; cursor: pointer; font-family: inherit; margin: 1.25rem auto 0; padding: 0.4rem 0.75rem; border-radius: 6px; }
.reset-btn:hover { color: #666; }

/* ── Views ── */
.view { display: none; flex: 1; }
.view.active { display: flex; flex-direction: column; }

/* ── Velkomst ── */
.welcome-inner { max-width: 680px; width: 100%; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.welcome-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #f1b434; margin-bottom: 0.5rem; }
.welcome-inner h2 { font-size: 1.75rem; font-weight: 800; color: #002554; margin-bottom: 0.75rem; line-height: 1.2; }
.welcome-hero { margin-bottom: 1.5rem; }
.welcome-hero-img { width: 100%; height: 220px; object-fit: cover; object-position: center 30%; border-radius: 12px; display: block; }
.welcome-inner > p { font-size: 0.97rem; color: #5a6472; margin-bottom: 1.75rem; line-height: 1.7; }
.overview-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.ov-card { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 12px; padding: 1rem 1.25rem; border: 1px solid #e0e3e8; cursor: pointer; transition: border-color 0.15s; }
.ov-card:hover { border-color: #f1b434; }
.ov-num { width: 36px; height: 36px; border-radius: 50%; background: #002554; color: #f1b434; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ov-card strong { display: block; font-size: 0.97rem; color: #002554; }
.ov-card span { font-size: 0.82rem; color: #5a6472; }
.ov-pct { margin-left: auto; font-size: 0.88rem; font-weight: 700; color: #f1b434; flex-shrink: 0; }

/* ── Faseliste ── */
.phase-list-inner { max-width: 680px; width: 100%; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; flex: 1; }
.back-btn { background: none; border: none; color: #5a6472; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: inherit; margin-bottom: 1.25rem; display: block; }
.back-btn:hover { color: #002554; }
.phase-list-header { margin-bottom: 1.5rem; }
.phase-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #f1b434; margin-bottom: 0.35rem; }
.phase-list-header h2 { font-size: 1.5rem; font-weight: 800; color: #002554; margin-bottom: 0.75rem; }
.phase-list-bar { height: 6px; background: #e0e3e8; border-radius: 99px; overflow: hidden; }
.phase-list-fill { height: 100%; background: #f1b434; border-radius: 99px; transition: width 0.3s; width: 0%; }

/* ── Task rows ── */
.task-list { display: flex; flex-direction: column; gap: 0.6rem; }
.task-row { display: flex; align-items: center; gap: 0.875rem; background: #fff; border-radius: 12px; border: 1px solid #e0e3e8; padding: 1rem 1.1rem; cursor: pointer; transition: border-color 0.15s; }
.task-row:hover { border-color: #f1b434; }
.task-row.done { background: #f6faf6; border-color: #c8e6c9; }
.task-row-icon { font-size: 1.25rem; flex-shrink: 0; width: 36px; height: 36px; background: #f4f5f7; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #002554; }
.task-row-title { font-size: 0.95rem; font-weight: 700; color: #002554; margin-bottom: 2px; }
.task-row.done .task-row-title { text-decoration: line-through; color: #8a9a8a; }
.task-row-short { font-size: 0.8rem; color: #8a94a3; }
.task-row-check { margin-left: auto; font-size: 1.1rem; color: #a0a8b0; flex-shrink: 0; }
.task-row.done .task-row-check { color: #3b6d11; }

/* ── Innholdsside ── */
.content-inner { max-width: 680px; width: 100%; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; flex: 1; }
.step-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #f1b434; margin-bottom: 0.5rem; }
.content-inner h2 { font-size: 1.6rem; font-weight: 800; color: #002554; margin-bottom: 0.75rem; line-height: 1.2; }
.step-lead { font-size: 0.97rem; color: #5a6472; margin-bottom: 1.5rem; line-height: 1.7; }

/* ── Info card ── */
.info-card { background: #fff; border-radius: 12px; border: 1px solid #e0e3e8; padding: 1.25rem; margin-bottom: 1rem; }
.card-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #f1b434; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f1b434; }
.info-card p { font-size: 0.92rem; color: #5a6472; line-height: 1.7; }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.guide-list li { font-size: 0.92rem; color: #5a6472; padding-left: 1.25rem; position: relative; }
.guide-list li::before { content: '→'; position: absolute; left: 0; color: #f1b434; font-weight: 700; }
.placeholder-box { padding: 0.875rem; background: #f4f5f7; border-radius: 8px; font-size: 0.85rem; color: #8a94a3; font-style: italic; }

/* ── Sjekkliste ── */
.checklist-card { background: #fff; border-radius: 12px; border: 1px solid #e0e3e8; overflow: hidden; margin-bottom: 1rem; }
.check-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1.1rem; border-bottom: 1px solid #f0f2f5; cursor: pointer; }
.check-item:last-child { border-bottom: none; }
.check-item:hover { background: #f9f9fb; }
.check-item input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; accent-color: #002554; }
.check-item span { font-size: 0.92rem; color: #1a1a1a; }
.check-item input:checked + span { text-decoration: line-through; color: #a0a8b0; }
.palle-label {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; color: #002554;
  margin-bottom: 0.5rem; margin-top: 0.25rem;
}

.big-check { display: flex; align-items: center; gap: 1rem; background: #eef2f9; border: 2px solid #002554; border-radius: 12px; padding: 1rem 1.25rem; cursor: pointer; margin-top: 1.25rem; }
.big-check input { width: 24px; height: 24px; flex-shrink: 0; accent-color: #002554; }
.big-check span { font-size: 0.97rem; font-weight: 700; color: #002554; }
.big-check input:checked + span { text-decoration: line-through; color: #a0a8b0; }

/* ── Video ── */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 12px; overflow: hidden; margin-bottom: 1rem;
  background: #000;
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* ── Indeva visuell ── */
.indeva-hero { background: #002554; border-radius: 14px; padding: 1.5rem; margin-bottom: 1rem; }
.indeva-headline { font-size: 1.1rem; font-weight: 800; color: #f1b434; margin-bottom: 0.5rem; }
.indeva-hero p { font-size: 0.92rem; color: rgba(255,255,255,0.78); line-height: 1.7; }

.indeva-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.indeva-model { background: #fff; border-radius: 12px; border: 1px solid #e0e3e8; padding: 1rem; text-align: center; border-top: 3px solid #f1b434; }
.model-img-wrap { width: 100%; aspect-ratio: 1; background: #f4f5f7; border-radius: 8px; overflow: hidden; margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; }
.model-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.model-name { font-size: 0.78rem; font-weight: 700; color: #002554; margin-bottom: 0.35rem; }
.model-desc { font-size: 0.72rem; color: #5a6472; line-height: 1.5; }

.indeva-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat-box { background: #fff; border-radius: 12px; border: 1px solid #e0e3e8; padding: 1rem; text-align: center; }
.stat-box.gold { background: #002554; border-color: #002554; }
.stat-val { font-size: 1.5rem; font-weight: 900; color: #002554; line-height: 1; margin-bottom: 0.35rem; }
.stat-val span { font-size: 0.75rem; font-weight: 700; margin-left: 2px; }
.stat-box.gold .stat-val { color: #f1b434; font-size: 2rem; }
.stat-label { font-size: 0.72rem; color: #5a6472; line-height: 1.4; }
.stat-box.gold .stat-label { color: rgba(255,255,255,0.65); }

/* ── Accordion Q&A ── */
.qa-accordion { display: flex; flex-direction: column; gap: 0; margin-bottom: 1rem; }
.acc-item { border-bottom: 1px solid #e0e3e8; }
.acc-item:first-of-type { border-top: 1px solid #e0e3e8; }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 0.875rem 0;
  font-size: 0.92rem; font-weight: 600; color: #002554;
  cursor: pointer; text-align: left; font-family: inherit; gap: 1rem;
}
.acc-q span { font-size: 1.25rem; font-weight: 400; color: #f1b434; flex-shrink: 0; }
.acc-a { display: none; padding: 0 0 0.875rem; font-size: 0.88rem; color: #5a6472; line-height: 1.7; }
.acc-item.open .acc-a { display: block; }

/* ── Q&A ── */
.qa-section { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.qa-item { background: #fff; border-radius: 10px; border: 1px solid #e0e3e8; padding: 0.875rem 1rem; }
.qa-q { font-size: 0.85rem; font-weight: 700; color: #002554; margin-bottom: 0.25rem; }
.qa-a { font-size: 0.85rem; color: #5a6472; line-height: 1.6; }

/* ── Adam kontakt ── */
.adam-card { background: #002554; border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.adam-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.adam-card > p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; }
.adam-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.adam-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.adam-btn.phone { background: #f1b434; color: #002554; }
.adam-btn.email { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Film ── */
.film-box { background: #fff; border-radius: 14px; border: 1px solid #e0e3e8; padding: 2rem; text-align: center; }
.film-title { font-size: 1rem; font-weight: 700; color: #002554; margin-bottom: 0.25rem; }
.film-sub { font-size: 0.85rem; color: #5a6472; }

/* ── Stand diagram ── */
.stand-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.stand-el { background: #f4f5f7; border-radius: 8px; padding: 0.6rem 0.875rem; font-size: 0.82rem; font-weight: 600; color: #002554; border: 2px dashed #c8d0dc; text-align: center; }
.stand-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.wall { border-color: #002554; background: #eef2f9; }
.kran { border-color: #002554; background: #eef2f9; }
.screen { border-color: #f1b434; background: #fffbf0; }
.entrance { border-color: #2e7d32; background: #f1f8f1; color: #2e7d32; }
.stand-note { font-size: 0.75rem; color: #8a94a3; margin-top: 0.5rem; font-style: italic; }

/* ── Finish ── */
.finish-card { background: #002554; border-radius: 14px; padding: 2rem; text-align: center; margin-top: 1rem; }
.finish-card h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0.5rem 0 0.4rem; }
.finish-card p { font-size: 0.92rem; color: rgba(255,255,255,0.72); }

/* ── Messe-banner ── */
.messe-banner { background: #002554; border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.messe-banner-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #f1b434; margin-bottom: 0.25rem; }
.messe-banner-name { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.messe-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
.messe-banner-item .label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); font-weight: 700; display: block; }
.messe-banner-item .value { font-size: 0.88rem; color: #fff; font-weight: 600; }
.messe-contact-btn { display: inline-flex; align-items: center; gap: 6px; background: #002554; color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; margin-top: 0.5rem; }
.download-btn { display: inline-flex; align-items: center; gap: 6px; background: #f1b434; color: #002554; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; margin-top: 0.5rem; margin-bottom: 0.75rem; }

/* ── Info-knapp i header ── */
.info-btn { background: none; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); border-radius: 6px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.info-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Info overlay ── */
.info-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; display: flex; align-items: flex-end; justify-content: center; }
.info-sheet { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 680px; padding: 1.5rem 1.25rem 2.5rem; max-height: 85vh; overflow-y: auto; }
.info-sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.info-sheet-title { font-size: 1.1rem; font-weight: 800; color: #002554; }
.info-close { background: #f4f5f7; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #5a6472; }
.info-print-btn { background: #f4f5f7; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #002554; }
.info-print-btn:hover { background: #e8eaf0; }

@media print {
  body * { visibility: hidden; }
  .info-sheet, .info-sheet * { visibility: visible; }
  .info-overlay { display: flex !important; position: fixed !important; inset: 0 !important; background: none !important; align-items: flex-start !important; justify-content: center !important; }
  .info-sheet { box-shadow: none !important; border-radius: 0 !important; width: 100% !important; max-width: 600px !important; margin-top: 0 !important; }
  .info-print-btn, .info-close { display: none !important; visibility: hidden !important; }
  .info-contact-btn { display: none !important; visibility: hidden !important; }
  .info-contact-print { display: block !important; visibility: visible !important; font-size: 0.88rem; color: #1a1a1a; margin-top: 0.5rem; }
}
.info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.65rem 0; border-bottom: 1px solid #f0f2f5; gap: 1rem; }
.info-row:last-child { border-bottom: none; }
.info-lbl { font-size: 0.8rem; font-weight: 700; color: #8a94a3; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; padding-top: 1px; }
.info-val { font-size: 0.92rem; font-weight: 600; color: #1a1a1a; text-align: right; }
.info-divider { height: 1px; background: #f1b434; margin: 0.5rem 0; }
.info-contact-btn { display: inline-flex; align-items: center; gap: 6px; background: #002554; color: #fff; padding: 0.55rem 0.875rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; }

.ov-arrow { margin-left: auto; color: #c0c8d0; font-size: 1rem; flex-shrink: 0; }

/* ── Neste-knapp ── */
.next-task-btn { width: 100%; margin-top: 1rem; padding: 1rem 1.25rem; background: #002554; color: #fff; border: none; border-radius: 12px; font-size: 0.97rem; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: opacity 0.15s; }
.next-task-btn:hover { opacity: 0.88; }
.next-task-btn span { text-align: left; }
.next-task-btn i { font-size: 1.1rem; flex-shrink: 0; }
.next-phase-btn { background: #f1b434; color: #002554; }

/* ── Feiring ── */
.celebrate-overlay { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.7); z-index: 600; pointer-events: none; opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.celebrate-overlay.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.celebrate-box { background: #002554; color: #fff; border-radius: 20px; padding: 2rem 2.5rem; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.celebrate-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.celebrate-text { font-size: 1.2rem; font-weight: 800; color: #f1b434; }

@media (max-width: 400px) {
  .indeva-models, .indeva-stats { grid-template-columns: 1fr; }
}
