/* ═══════════════════════════════════════════════
   ELTIME DESIGN SYSTEM — Premium Dark
   ═══════════════════════════════════════════════ */

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

:root {
  --red:        #FF5348;
  --red-dim:    rgba(255, 83, 72, 0.12);
  --red-border: rgba(255, 83, 72, 0.30);
  --bg:         #080808;
  --bg2:        #0f0f0f;
  --bg3:        #161616;
  --bg4:        #1e1e1e;
  --line:       #1a1a1a;
  --line2:      #262626;
  --text:       #ffffff;
  --text2:      #cccccc;
  --muted:      #777777;
  --muted2:     #444444;

  --font:       -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'SF Mono', 'Menlo', 'Consolas', monospace;

  --nav-h:      72px;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-red: 0 8px 32px rgba(255,83,72,0.2);

  --max-w:      1200px;
  --section-py: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─── */
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 300; line-height: 1.2; letter-spacing: -0.5px; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 500; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 600; }
p  { color: var(--text2); line-height: 1.7; }

.red { color: var(--red); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.section { padding: var(--section-py) 0; }
.section-sm { padding: 60px 0; }

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header p { margin-top: 16px; font-size: 16px; max-width: 560px; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
  cursor: pointer; transition: all 0.2s; border: none; font-family: var(--font);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: white;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: var(--shadow-red); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--line2);
}
.btn-outline:hover { border-color: var(--muted); background: var(--bg3); }

.btn-ghost {
  background: transparent; color: var(--muted);
  padding: 12px 20px;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 22px; list-style: none;
}
.nav-links a {
  font-size: 13px; color: var(--muted); letter-spacing: 0.3px;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--red);
}
.nav-cta { font-size: 13px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ↓'; font-size: 10px; color: var(--muted2); }
.dropdown-menu {
  position: absolute; top: 100%; left: -16px;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 8px; padding-top: 16px;
  min-width: 200px; opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all 0.2s;
  box-shadow: var(--shadow);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 14px; font-size: 13px;
  border-radius: var(--radius-sm); color: var(--muted);
  transition: all 0.15s;
}
.dropdown-menu a:hover { background: var(--bg3); color: var(--text); }

.dropdown-menu.wide { min-width: 260px; }
.dropdown-label {
  display: block;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted2); padding: 12px 14px 4px;
  pointer-events: none; cursor: default;
}
.dropdown-label:first-child { padding-top: 6px; }
.dropdown-menu hr { border: none; border-top: 1px solid var(--line); margin: 4px 8px; }


/* ─── Nested submenus (flyout) ─── */
.dropdown-menu { max-height: calc(100vh - 90px); overflow: visible; }
.dropdown-sub { position: relative; }
.dropdown-sub > .sub-parent {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.sub-arrow { color: var(--muted2); font-size: 13px; }
.submenu {
  position: absolute; top: -8px; left: 100%;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 8px;
  min-width: 230px; max-height: calc(100vh - 120px); overflow-y: auto;
  opacity: 0; pointer-events: none; transform: translateX(-6px);
  transition: all 0.18s; box-shadow: var(--shadow); z-index: 10;
}
.dropdown-sub:hover > .submenu,
.dropdown-sub.open > .submenu { opacity: 1; pointer-events: all; transform: translateX(0); }
.submenu a { display: block; padding: 9px 14px; font-size: 13px; border-radius: var(--radius-sm); color: var(--muted); transition: all 0.15s; }
.submenu a:hover { background: var(--bg3); color: var(--text); }
.submenu .dropdown-label { padding: 10px 14px 4px; }

/* Flyout flips left near right screen edge */
@media (min-width: 901px) {
  .nav-links > li:nth-last-child(-n+3) .submenu { left: auto; right: 100%; transform: translateX(6px); }
  .nav-links > li:nth-last-child(-n+3) .dropdown-sub:hover > .submenu { transform: translateX(0); }
}

/* Mobile: submenus expand inline on tap */
@media (max-width: 900px) {
  .dropdown-menu { position: static; max-height: none; opacity: 1; pointer-events: all; transform: none;
    border: none; box-shadow: none; padding: 0 0 0 12px; display: none; background: transparent; }
  .nav-dropdown.open > .dropdown-menu { display: block; }
  .submenu { position: static; opacity: 1; pointer-events: all; transform: none;
    border: none; box-shadow: none; padding: 0 0 0 14px; display: none; max-height: none; background: transparent; }
  .dropdown-sub.open > .submenu { display: block; }
}

/* Mobile nav toggle */
.nav-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.nav-burger span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.6) 60%, rgba(8,8,8,0.4) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-label {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--red); margin-bottom: 24px; display: block;
}
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 18px; color: var(--text2); margin-bottom: 40px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* Mini hero for sub-pages */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  font-size: 12px; color: var(--muted); margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--red); }
.page-hero .breadcrumb span { margin: 0 8px; }

/* ─── Cards ─── */
.card {
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  transition: all 0.2s;
  overflow: hidden;
}
.card:hover {
  border-color: var(--red-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--bg2); padding: 24px; }
.card-body { padding: 24px; }
.card-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 13px; margin-top: 16px; }
.card-link:hover { gap: 10px; }

/* ─── Product Grid ─── */
.product-grid { display: grid; gap: 24px; }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── USP Strip ─── */
.usp-strip {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.usp-item {
  padding: 0 40px;
  border-right: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 16px;
}
.usp-item:last-child { border-right: none; }
.usp-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.usp-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.usp-title { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.usp-item p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ─── Stats ─── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.stat-item {
  background: var(--bg2); padding: 48px 40px; text-align: center;
}
.stat-number { font-size: 52px; font-weight: 300; color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--muted); letter-spacing: 1px; }

/* ─── Industry Cards ─── */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-card {
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all 0.2s; cursor: pointer;
}
.industry-card:hover { border-color: var(--red); background: var(--bg4); }
.industry-icon { font-size: 36px; margin-bottom: 16px; }
.industry-card h3 { font-size: 17px; margin-bottom: 10px; }
.industry-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.industry-arrow { color: var(--red); margin-top: 20px; font-size: 18px; }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; color: var(--text);
  padding: 24px 0; font-size: 16px; font-weight: 500;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; font-family: var(--font);
}
.faq-q:hover { color: var(--red); }
.faq-icon { color: var(--red); font-size: 20px; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 2000px; padding-bottom: 24px; }
.faq-a p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ─── Spec Table ─── */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th {
  background: var(--bg3); color: var(--red); text-align: left;
  padding: 14px 20px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  border-bottom: 1px solid var(--line2);
}
.spec-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  color: var(--text2); vertical-align: top;
}
.spec-table tr:hover td { background: var(--bg3); }
.spec-code { font-family: var(--font-mono); color: var(--red); font-weight: 700; }

/* ─── Download Grid ─── */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.download-item {
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--radius-sm); padding: 16px;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.2s; cursor: pointer;
}
.download-item:hover { border-color: var(--red); background: var(--bg4); }
.download-icon { font-size: 22px; flex-shrink: 0; }
.download-name { font-size: 13px; font-weight: 500; }
.download-type { font-size: 11px; color: var(--muted); }

/* ─── Konfigurator CTA Teaser ─── */
.config-teaser {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.config-steps { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.config-step { display: flex; align-items: center; gap: 16px; }
.config-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--red-border); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.config-step p { font-size: 14px; color: var(--muted); margin: 0; }
.config-preview-img {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg3);
}
.config-preview-img img { width: 100%; object-fit: contain; }

/* ─── Footer ─── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 64px;
}
.footer-brand img { height: 32px; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--red); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--muted2); }

/* ─── Page-level dividers ─── */
.divider { height: 1px; background: var(--line); }
.red-line { height: 2px; width: 48px; background: var(--red); margin-bottom: 24px; }

/* ─── Badges ─── */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.badge-red { background: var(--red-dim); color: var(--red); border: 1px solid var(--red-border); }
.badge-muted { background: var(--bg4); color: var(--muted); border: 1px solid var(--line2); }

/* ─── CTA Section ─── */
.cta-section {
  background: var(--red);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 36px; }
.cta-section .btn-outline { border-color: white; color: white; }
.cta-section .btn-outline:hover { background: white; color: var(--red); }
.cta-section .btn-primary { background: white; color: var(--red); }
.cta-section .btn-primary:hover { background: rgba(255,255,255,0.88); color: var(--red); }

/* ─── Konfigurator (wizard) ─── */
.config-page { display: flex; min-height: calc(100vh - var(--nav-h)); }
.config-sidebar {
  width: 400px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--line);
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px;
}
.config-main { flex: 1; padding: 56px 64px; max-width: 700px; }

.progress-bar { margin-bottom: 52px; }
.progress-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.progress-steps { display: flex; align-items: center; }
.ps { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ps-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; transition: all 0.3s;
}
.ps-dot.done { background: var(--red); color: white; }
.ps-dot.active { background: transparent; border: 2px solid var(--red); color: var(--red); }
.ps-dot.pending { background: transparent; border: 1px solid var(--line2); color: var(--muted2); }
.ps-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.ps-label.active { color: var(--text); }
.ps-line { flex: 1; height: 1px; background: var(--line2); margin: 0 4px; margin-bottom: 24px; transition: background 0.3s; }
.ps-line.done { background: var(--red); }

.wizard-step { display: none; animation: fadeUp 0.25s ease; }
.wizard-step.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }

.step-h { font-size: clamp(26px, 3vw, 38px); font-weight: 300; margin-bottom: 8px; }
.step-sub { font-size: 14px; color: var(--muted); margin-bottom: 40px; line-height: 1.6; }

.opt-grid { display: grid; gap: 12px; margin-bottom: 36px; }
.opt-grid.g2 { grid-template-columns: 1fr 1fr; }
.opt-grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.opt-grid.g4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.opt {
  background: var(--bg3); border: 1.5px solid var(--line2);
  border-radius: var(--radius); padding: 20px;
  cursor: pointer; transition: all 0.18s; position: relative; overflow: hidden;
}
.opt:hover { border-color: var(--red-border); background: var(--bg4); transform: translateY(-1px); }
.opt.sel { border-color: var(--red); background: var(--red-dim); }
.opt.sel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red);
}
.opt-check {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: white; font-size: 10px;
  display: none; align-items: center; justify-content: center;
}
.opt.sel .opt-check { display: flex; }
.opt-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg); border-radius: 6px; margin-bottom: 12px; }
.opt-code { font-family: var(--font-mono); font-size: 12px; color: var(--red); font-weight: 700; margin-bottom: 3px; }
.opt-name { font-size: 13px; color: var(--text); margin-bottom: 4px; font-weight: 500; }
.opt-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }

.step-nav-btns { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }

/* Varenummer preview (sidebar) */
.varenr-card { background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--radius); padding: 24px 28px; width: 100%; text-align: center; margin: 24px 0; }
.varenr-label { font-size: 10px; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.varenr-value { font-family: var(--font-mono); font-size: 24px; color: var(--red); letter-spacing: 2px; }
.varenr-empty { font-size: 15px; color: var(--muted2); letter-spacing: 1px; }

.spec-rows { width: 100%; }
.sr { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.sr:last-child { border-bottom: none; }
.sr-key { color: var(--muted); }
.sr-val { color: var(--text); font-weight: 500; }
.sr-val.empty { color: var(--muted2); font-style: italic; }

/* Mobile sticky bar */
.mobile-varenr-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 12px 20px; justify-content: space-between; align-items: center;
}
.mvb-label { font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.mvb-value { font-family: var(--font-mono); font-size: 16px; color: var(--red); }

/* Color swatches */
.color-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.color-opt {
  background: var(--bg3); border: 1.5px solid var(--line2);
  border-radius: var(--radius); padding: 20px 16px;
  cursor: pointer; transition: all 0.18s; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-width: 100px; flex: 1;
}
.color-opt:hover { border-color: var(--red-border); }
.color-opt.sel { border-color: var(--red); background: var(--red-dim); }
.color-swatch { width: 42px; height: 42px; border-radius: 50%; border: 2px solid transparent; }
.color-opt.sel .color-swatch { box-shadow: 0 0 0 2px var(--red), 0 0 0 4px rgba(255,83,72,0.2); }
.color-name { font-size: 12px; color: var(--muted); }
.color-opt.sel .color-name { color: var(--text); }

/* Result box */
.result-box { background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--radius); padding: 36px; margin-bottom: 28px; text-align: center; }
.result-varenr { font-family: var(--font-mono); font-size: 40px; color: var(--red); letter-spacing: 4px; }
.result-desc { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Quote form */
.quote-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s; font-family: var(--font);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 90px; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .config-sidebar { width: 340px; }
  .config-main { padding: 48px 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-item { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .usp-item:nth-child(2n) { border-bottom: none; }
}

@media (max-width: 860px) {
  :root { --section-py: 64px; }
  .container { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .product-grid.cols-3, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .config-teaser { grid-template-columns: 1fr; padding: 40px; gap: 36px; }
  .config-page { flex-direction: column; }
  .config-sidebar { width: 100%; position: relative; height: auto; padding: 32px 24px; }
  .config-main { padding: 32px 24px; max-width: 100%; }
  .mobile-varenr-bar { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .opt-grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .opt-grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .config-teaser .config-preview-img { display: none; }
}

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .product-grid.cols-2, .product-grid.cols-3, .product-grid.cols-4 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .opt-grid.g2, .opt-grid.g3, .opt-grid.g4 { grid-template-columns: 1fr 1fr; }
  .color-grid { gap: 8px; }
}

/* ─── Find Dit Ur — Guided Flow ─── */
.find-flow {
  max-width: 680px; margin: 0 auto; padding: 0 24px;
}
.find-step { display: none; animation: fadeUp 0.25s ease; }
.find-step.active { display: block; }

.find-progress {
  height: 4px; background: var(--line2); border-radius: 2px;
  margin-bottom: 48px; overflow: hidden;
}
.find-progress-fill {
  height: 100%; background: var(--red); border-radius: 2px;
  transition: width 0.4s ease;
}
.find-progress-label {
  font-size: 11px; color: var(--muted); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}

.find-question {
  font-size: clamp(22px, 3vw, 34px); font-weight: 300; margin-bottom: 8px; line-height: 1.2;
}
.find-sub { font-size: 14px; color: var(--muted); margin-bottom: 40px; }

.find-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px;
}
.find-options.cols-1 { grid-template-columns: 1fr; }
.find-options.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.find-opt {
  background: var(--bg3); border: 1.5px solid var(--line2);
  border-radius: var(--radius); padding: 28px 22px;
  cursor: pointer; transition: all 0.18s; position: relative;
  text-align: center;
}
.find-opt:hover { border-color: var(--red-border); background: var(--bg4); transform: translateY(-2px); }
.find-opt.sel { border-color: var(--red); background: var(--red-dim); }
.find-opt.sel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red);
  border-radius: var(--radius) var(--radius) 0 0;
}
.find-opt-emoji { font-size: 36px; margin-bottom: 12px; display: block; }
.find-opt-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.find-opt-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }

.find-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }

/* Recommendation result card */
.rec-card {
  background: var(--bg3); border: 1px solid var(--red-border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
}
.rec-card-header {
  background: var(--red-dim); border-bottom: 1px solid var(--red-border);
  padding: 20px 28px; display: flex; align-items: center; gap: 16px;
}
.rec-card-body { padding: 28px; }
.rec-product-name { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.rec-movement { display: inline-flex; align-items: center; gap: 6px; }
.rec-reason { font-size: 14px; color: var(--text2); line-height: 1.7; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ─── Movement explanation panel (konfigurator step 4) ─── */
.mv-explain {
  background: var(--bg2); border: 1px solid var(--red-border);
  border-radius: var(--radius); padding: 20px 24px; margin-top: 12px;
  animation: fadeUp 0.2s ease;
}
.mv-explain-detail { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.mv-pros-cons { display: flex; gap: 32px; margin-top: 12px; }
.mv-pros, .mv-cons { flex: 1; }
.mv-pros h5, .mv-cons h5 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.mv-pros h5 { color: #27ae60; }
.mv-cons h5 { color: var(--muted); }
.mv-pros li, .mv-cons li { font-size: 12px; line-height: 1.8; list-style: none; padding-left: 16px; position: relative; }
.mv-pros li::before { content: '✓'; position: absolute; left: 0; color: #27ae60; }
.mv-cons li::before { content: '—'; position: absolute; left: 0; color: var(--muted); }

/* ─── Help Hub — hjaelp.html ─── */
.help-category-card {
  background: var(--bg3); border: 1px solid var(--line2);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px 28px; transition: all 0.2s; cursor: pointer;
  display: flex; flex-direction: column;
}
.help-category-card:hover { background: var(--bg4); border-color: var(--red); transform: translateX(4px); }
.help-cat-icon { font-size: 36px; margin-bottom: 16px; }
.help-cat-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.help-cat-desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.help-cat-link { color: var(--red); font-size: 13px; margin-top: 16px; }

/* ─── Sync comparison table ─── */
.sync-method {
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 32px 36px; margin-bottom: 2px;
  transition: border-color 0.2s;
}
.sync-method:hover { border-color: var(--red-border); }
.sync-method-header { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.sync-code { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--red); width: 44px; flex-shrink: 0; }
.sync-name { font-size: 20px; font-weight: 600; }
.sync-desc { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.sync-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sync-chip { font-size: 11px; padding: 4px 10px; border-radius: 4px; }
.sync-chip-pro { background: rgba(39,174,96,0.1); color: #27ae60; border: 1px solid rgba(39,174,96,0.2); }
.sync-chip-con { background: var(--bg4); color: var(--muted); border: 1px solid var(--line2); }

/* ─── Download cards (large version) ─── */
.download-card-lg {
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--radius); overflow: hidden; transition: all 0.2s;
}
.download-card-lg:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow); }
.download-card-lg .dl-img { background: var(--bg2); padding: 32px; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.download-card-lg .dl-body { padding: 24px; }
.download-card-lg .dl-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.download-card-lg .dl-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }

/* ─── Inline FAQ panel (on product pages) ─── */
.inline-faq-panel {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 48px; margin-top: 16px;
}
.inline-faq-panel .faq-list { max-width: 100%; }

/* ─── Responsive additions ─── */
@media (max-width: 860px) {
  .find-options { grid-template-columns: 1fr; }
  .find-options.cols-3 { grid-template-columns: 1fr 1fr; }
  .mv-pros-cons { flex-direction: column; gap: 16px; }
  .inline-faq-panel { padding: 24px; }
  .sync-method { padding: 24px; }
}

@media (max-width: 560px) {
  .find-options.cols-3 { grid-template-columns: 1fr; }
  .help-category-card { transform: none; }
}

/* ─── Mobil: inline grids, tabeller og overflow-guards ─── */
html, body { overflow-x: clip; }

@media (max-width: 860px) {
  /* Inline 2-kolonne grids (produktdetalje-layouts) → 1 kolonne.
     !important i stylesheet overtrumfer normale inline styles. */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Spec-tabeller må aldrig sprænge bredden */
  .spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table td, .spec-table th { white-space: nowrap; }
  /* Hero-tekster og knapper */
  .page-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .page-hero p, .page-hero div { max-width: 100% !important; }
  /* Inline flex-rækker med faste bredder wrappes */
  div[style*="display:flex"] { flex-wrap: wrap; }
  /* FAQ og cards: indre padding ned */
  .faq-q { padding: 16px 16px; font-size: 14px; text-align: left; }
  .card-body { padding: 20px; }
  /* Brede billeder i indhold */
  section img, .container img { max-width: 100%; height: auto; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .page-hero { padding: 56px 0 40px; }
  .section-header h2 { font-size: 22px; }
  .breadcrumb { font-size: 11px; flex-wrap: wrap; }
  .cta-section h2 { font-size: 24px; }
  /* dropdown-menuens bredde på mobil */
  .dropdown-menu, .submenu { min-width: 0; width: 100%; }
}

/* ─── Inline SVG-ikoner (erstatter emojis) ─── */
.ico{display:inline-block;width:1em;height:1em;vertical-align:-0.125em;flex-shrink:0}
.ico-flag{display:inline-block;width:1.3em;height:.9em;vertical-align:-0.12em;border-radius:2px;flex-shrink:0;object-fit:cover}
