/* ===== Matevis Technology — Stylesheet =====
   Colors derived from the company logo:
   Ink/Navy:   #1B2024
   Orange:     #E2661C
   Cream/BG:   #F2F0EB
   Muted gray: #7A7F84 / #9AA0A6
*/

:root {
  --ink: #1B2024;
  --ink-soft: #2A3036;
  --orange: #E2661C;
  --orange-dark: #C6540F;
  --cream: #F2F0EB;
  --white: #FFFFFF;
  --gray: #7A7F84;
  --gray-light: #9AA0A6;
  --border: rgba(27, 32, 36, 0.1);
  --border-dark: rgba(242, 240, 235, 0.12);
  --radius: 8px;
  --max-width: 1180px;
  --font: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  --font-mono: 'Consolas', 'SFMono-Regular', 'Courier New', monospace;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

[hidden] { display: none !important; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 20px; }

p { color: var(--gray); margin: 0 0 16px; }

.section { padding: 96px 0; }
.section-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-header p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline { background: transparent; border-color: var(--border-dark); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }

.btn-outline-dark { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 32, 36, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  font-size: 14.5px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-light);
}
.lang-switch button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font: inherit;
}
.lang-switch button.active { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 18px; border-bottom: 1px solid var(--border-dark); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav-right .btn-outline { display: none; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(226,102,28,0.18) 0%, rgba(226,102,28,0) 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-bg-icon {
  position: absolute;
  top: 50%;
  right: -60px;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .hero-bg-icon { width: 380px; height: 380px; right: -100px; opacity: 0.12; }
}

.hero-logo { height: 210px; width: auto; margin-bottom: 28px; }

.hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 640px; }
.hero .lead { color: var(--gray-light); font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Logo strip ===== */
.logo-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo-strip-label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-light); font-weight: 700; white-space: nowrap; }
.logo-strip-items { display: flex; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.logo-strip-items span { font-weight: 700; font-size: 16px; color: var(--gray); letter-spacing: 0.5px; }

/* ===== Services / cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,32,36,0.08); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(226,102,28,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--orange); }

.card p:last-child { margin-bottom: 0; }

/* ===== IoT showcase (image + text) ===== */
.showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 32px; } }
.showcase-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(27,32,36,0.18);
  background: #12171B;
}
.showcase-media img { width: 100%; height: auto; }
.showcase-text h3 { font-size: clamp(22px, 2.4vw, 30px); }
.showcase-text p { color: var(--gray); }
.showcase-text .feature-list { margin-bottom: 28px; }

/* ===== Alternating feature rows ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.feature-row.reverse .feature-media { order: 2; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row { grid-template-columns: 1fr; }
}

.feature-media {
  background: var(--cream);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.feature-media svg { width: 40%; height: 40%; stroke: var(--orange); opacity: 0.85; }

.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.feature-list svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--orange); margin-top: 2px; }

/* ===== Industries ===== */
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: var(--gray-light); }
.section-dark .section-header h2 { color: var(--white); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }

.industry-card {
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.industry-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(226,102,28,0.5); }
.industry-card svg { width: 32px; height: 32px; stroke: var(--orange); margin: 0 auto 14px; }
.industry-card h3 { font-size: 15px; margin: 0; color: var(--white); }

/* ===== Automotive ===== */
.automotive {
  background: linear-gradient(180deg, #14191D 0%, var(--ink) 60%, var(--ink-soft) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.automotive::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -15%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(226,102,28,0.14) 0%, rgba(226,102,28,0) 70%);
  pointer-events: none;
}
.automotive .container { position: relative; z-index: 1; }
.automotive p { color: var(--gray-light); }
.automotive .section-header h2 { color: var(--white); }
.automotive .section-header { max-width: 720px; }
.automotive .section-header .lead { font-size: 17px; }

.auto-block { margin-top: 72px; }
.auto-block-header { max-width: 640px; margin-bottom: 32px; }
.auto-block-header h3 { font-size: 24px; color: var(--white); }
.auto-block-header p { margin: 0; }

/* comparison cards (thermal vs. camera) */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  overflow: hidden;
  background: #0F1417;
}
.compare-media { position: relative; }
.compare-media img { width: 100%; height: auto; }
.compare-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: var(--orange);
  opacity: 0.9;
}
.compare-label {
  position: absolute;
  left: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.2;
}
.compare-label.top { top: 16px; background: var(--orange); color: var(--white); }
.compare-label.bottom { top: calc(50% + 16px); background: rgba(27,32,36,0.75); color: var(--cream); border: 1px solid var(--border-dark); }
.compare-caption { padding: 22px 24px 24px; border-top: 1px solid var(--border-dark); }
.compare-caption h4 { font-size: 17px; color: var(--white); margin: 0 0 6px; }
.compare-caption p { font-size: 14.5px; margin: 0; }

/* feature grid on dark */
.auto-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .auto-features { grid-template-columns: 1fr; } }
.auto-feature {
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 26px 24px;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.auto-feature:hover { background: rgba(255,255,255,0.05); border-color: rgba(226,102,28,0.5); }
.auto-feature .card-icon { background: rgba(226,102,28,0.14); width: 46px; height: 46px; margin-bottom: 16px; }
.auto-feature .card-icon svg { width: 24px; height: 24px; }
.auto-feature h4 { font-size: 16px; color: var(--white); margin: 0 0 8px; }
.auto-feature p { font-size: 14.5px; margin: 0; }

/* stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center;
  padding: 26px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.stat strong { display: block; font-size: clamp(26px, 3vw, 34px); color: var(--orange); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.stat span { font-size: 13.5px; color: var(--gray-light); }
.stat-note { font-size: 13px; margin: 14px 0 0; opacity: 0.8; }

/* split: module + text */
.auto-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .auto-split { grid-template-columns: 1fr; } }
.auto-split-media {
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(226,102,28,0.22) 0%, rgba(226,102,28,0) 60%), #0F1417;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auto-split-media img { width: 100%; max-width: 420px; height: auto; mix-blend-mode: lighten; }
.auto-split h3 { font-size: 24px; color: var(--white); }
.auto-split .feature-list li { color: var(--cream); }

/* use-case cards */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase {
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 26px 24px;
  background: rgba(255,255,255,0.02);
}
.usecase .eyebrow { font-size: 11.5px; margin-bottom: 8px; }
.usecase h4 { font-size: 17px; color: var(--white); margin: 0 0 8px; }
.usecase p { font-size: 14.5px; margin: 0; }

.auto-cta { margin-top: 64px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.img-credit { font-size: 12px; color: var(--gray); margin: 12px 0 0; text-align: right; opacity: 0.7; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } }
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.product:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,32,36,0.12); }
.product-media { background: #14191D; aspect-ratio: 4/3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-body .eyebrow { font-size: 11.5px; margin-bottom: 8px; }
.product-body h3 { font-size: 19px; margin-bottom: 10px; }
.product-body p { font-size: 14.5px; }
.product-body .feature-list { margin-top: 8px; gap: 10px; }
.product-body .feature-list li { font-size: 14px; }
.product-cta { margin-top: 40px; display: flex; justify-content: center; }

/* ===== Night vision block (inside Automotive) ===== */
.nv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
@media (max-width: 900px) { .nv-grid { grid-template-columns: 1fr; } }
.nv-media { border: 1px solid var(--border-dark); border-radius: 14px; overflow: hidden; background: #0F1417; }
.nv-media img { width: 100%; height: auto; }
.nv-media p { font-size: 14px; margin: 0; padding: 16px 20px 18px; border-top: 1px solid var(--border-dark); }

.oem-list { border: 1px solid var(--border-dark); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.02); }
.oem-head { padding: 14px 22px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); border-bottom: 1px solid var(--border-dark); }
.oem-row {
  display: grid;
  grid-template-columns: 220px 1fr 130px;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-dark);
}
.oem-row strong { color: var(--white); font-size: 15px; }
.oem-row span { color: var(--gray-light); font-size: 14px; }
.oem-row em {
  font-style: normal;
  justify-self: end;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cream);
  padding: 5px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .oem-row { grid-template-columns: 1fr; gap: 6px; }
  .oem-row em { justify-self: start; }
}
.oem-note { font-size: 12.5px; margin: 0; padding: 12px 22px 14px; opacity: 0.75; }

.nv-pitch {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
  padding: 40px;
  border: 1px solid rgba(226,102,28,0.4);
  border-radius: 14px;
  background: radial-gradient(circle at 0% 0%, rgba(226,102,28,0.16) 0%, rgba(226,102,28,0) 55%), rgba(255,255,255,0.02);
}
@media (max-width: 900px) { .nv-pitch { grid-template-columns: 1fr; gap: 24px; padding: 28px; } }
.nv-pitch h3 { font-size: 24px; color: var(--white); }
.nv-pitch p { margin: 0; }
.nv-pitch .feature-list { margin: 0; }
.nv-pitch .feature-list li { color: var(--cream); }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  border-radius: 16px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn-primary { background: var(--ink); }
.cta-banner .btn-primary:hover { background: #000; }

/* ===== Legal pages (Impressum / Datenschutz) ===== */
.legal { padding: 72px 0 96px; }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.legal .legal-intro { font-size: 16px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 44px 0 14px; }
.legal h3 { font-size: 17px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--orange); }
.legal a:hover { text-decoration: underline; }
.legal .kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; margin: 0 0 24px; }
.legal .kv dt { font-weight: 600; color: var(--ink); }
.legal .kv dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .legal .kv { grid-template-columns: 1fr; gap: 2px 0; } .legal .kv dd { margin-bottom: 10px; } }
.legal .notice {
  background: var(--cream);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.legal .updated { font-size: 13px; color: var(--gray); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--gray-light);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  min-width: 0;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0,1fr); gap: 32px; } }

.footer-logo img { height: 30px; margin-bottom: 16px; }
.footer-col h4 { color: var(--white); font-size: 14px; letter-spacing: 0.5px; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--gray-light); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: var(--gray);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--white); }

.domains { display: flex; gap: 12px; flex-wrap: wrap; }
.domains span { padding: 3px 10px; border: 1px solid var(--border-dark); border-radius: 20px; font-size: 12px; }
