/* ============================================================
   AUTEC — powered by efa GmbH · Landing Page
   Visual system: AUTEC corporate design (premium black + yellow),
   built on the efa GmbH type & spacing foundation (Open Sans).
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  /* ---- AUTEC brand ---- */
  --autec-yellow:        #f4b900;  /* signature yellow — fills, highlights, on-dark text */
  --autec-yellow-hover:  #d9a400;
  --accent-strong:       #8a6a00;  /* readable dark gold — small labels/links on white */
  --autec-ink:           #0e0f12;  /* near-black */
  --autec-ink-2:         #16181c;
  --autec-ink-3:         #23262c;

  /* ---- efa neutral ladder ---- */
  --grey-1: #333333;
  --grey-2: #555555;
  --grey-3: #8a8f96;
  --grey-4: #e3e3e3;
  --grey-5: #efefef;
  --white:  #ffffff;
  --surface-sunken: #f5f6f7;

  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(14,15,18,.09), 0 1px 2px rgba(14,15,18,.06);
  --shadow-md: 0 10px 28px rgba(14,15,18,.14);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--grey-2);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: #6f5500; }
h1, h2, h3, h4 { color: var(--autec-ink); margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid rgba(244,185,0,.6); outline-offset: 2px; border-radius: 3px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong);
  margin-bottom: 18px;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sunken { background: var(--surface-sunken); }
.section-ink { background: var(--autec-ink); color: rgba(255,255,255,.78); }
.section-ink .eyebrow { color: var(--autec-yellow); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.01em;
  text-transform: uppercase; line-height: 1.05;
}
.section-ink .section-head h2 { color: var(--white); }
.section-head .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; color: var(--grey-2); margin-top: 18px; }
.section-ink .section-head .lead { color: rgba(255,255,255,.72); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  letter-spacing: .02em; padding: 15px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; transition: all .16s var(--ease);
  text-transform: uppercase; line-height: 1;
}
.btn-primary { background: var(--autec-yellow); color: var(--autec-ink); border-color: var(--autec-yellow); }
.btn-primary:hover { background: var(--autec-yellow-hover); border-color: var(--autec-yellow-hover); color: var(--autec-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ============================================================ HEADER ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--autec-ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 16px; flex: none; }
.brand-lockup .autec-logo { height: 26px; width: auto; }
.brand-lockup .powered {
  display: flex; align-items: center; gap: 7px;
  padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18);
  font-size: .68rem; letter-spacing: .04em; color: rgba(255,255,255,.55);
  text-transform: uppercase; white-space: nowrap;
}
.brand-lockup .powered img { height: 15px; width: auto; opacity: .9; }

.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav a {
  color: rgba(255,255,255,.78); font-size: .9375rem; font-weight: 600;
  padding: 9px 15px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.primary-nav a:hover, .primary-nav a.active { color: #fff; background: rgba(255,255,255,.08); }

.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 14px; padding: 3px; background: rgba(255,255,255,.07); border-radius: 6px; }
.lang-switch button {
  font-family: var(--font); font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.6); background: transparent; border: none; cursor: pointer;
  padding: 6px 11px; border-radius: 4px; transition: all .15s var(--ease); text-transform: uppercase;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--autec-yellow); color: var(--autec-ink); }

.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; margin-left: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s var(--ease); }

/* ============================================================ HERO ============================================================ */
.hero { position: relative; background: var(--autec-ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,10,12,.95) 0%, rgba(9,10,12,.82) 42%, rgba(9,10,12,.34) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(80px, 13vw, 168px) 0 clamp(72px, 11vw, 140px); max-width: 720px; }
.hero .eyebrow { color: var(--autec-yellow); }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800;
  letter-spacing: -.015em; line-height: 1.02; text-transform: uppercase;
}
.hero h1 .accent { color: var(--autec-yellow); }
.hero .sub { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 300; color: rgba(255,255,255,.82); margin: 26px 0 36px; max-width: 570px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: rgba(255,255,255,.72); font-weight: 500; }
.hero-badge svg { width: 18px; height: 18px; color: var(--autec-yellow); flex: none; }

/* ============================================================ BESONDERHEITEN ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: 1px solid var(--grey-4); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d5d8dc; }
.feature-num { font-size: .8125rem; font-weight: 800; letter-spacing: .1em; color: var(--accent-strong); display: block; margin-bottom: 14px; }
.feature-icon { display: block; width: 46px; height: 46px; color: var(--accent-strong); margin-bottom: 20px; }
.feature-icon svg { width: 100%; height: 100%; display: block; }
.feature-card h3 { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 12px; }
.feature-card p { font-size: 1rem; color: var(--grey-2); margin: 0; }

/* ============================================================ EINSATZGEBIETE ============================================================ */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 28px 26px; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.app-card:hover { border-color: var(--autec-yellow); background: rgba(244,185,0,.09); }
.app-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(244,185,0,.15); border-radius: 8px; color: var(--autec-yellow); }
.app-icon svg { width: 30px; height: 30px; }
.app-card h3 { color: #fff; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: -.005em; }
.app-card p { font-size: .9375rem; color: rgba(255,255,255,.65); margin: 0; }

/* ============================================================ PRODUKTRANGE ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--grey-4); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; border-bottom: 1px solid var(--grey-4); }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-tag { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--accent-strong); text-transform: uppercase; margin-bottom: 10px; }
.product-body h3 { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; letter-spacing: -.01em; }
.product-body p { font-size: .9375rem; color: var(--grey-2); flex: 1; }
.product-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .03em; margin-top: 18px; color: var(--accent-strong); }
.product-link:hover { color: #6f5500; }
.product-link svg { width: 16px; height: 16px; transition: transform .16s var(--ease); }
.product-card:hover .product-link svg { transform: translateX(4px); }

/* ============================================================ CTA ============================================================ */
.cta {
  background: var(--autec-yellow);
  background-image: linear-gradient(120deg, var(--autec-yellow) 0%, #e0a800 100%);
  color: var(--autec-ink); padding: clamp(56px, 8vw, 88px) 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text { max-width: 620px; }
.cta-text h2 { color: var(--autec-ink); font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.cta-text p { color: rgba(14,15,18,.82); font-size: 1.125rem; margin: 16px 0 0; font-weight: 400; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; min-width: 280px; }
.cta .btn-primary { background: var(--autec-ink); color: #fff; border-color: var(--autec-ink); justify-content: flex-start; }
.cta .btn-primary:hover { background: #fff; color: var(--autec-ink); border-color: #fff; }
.cta .btn-primary svg { color: var(--autec-yellow); }
.cta .btn-primary:hover svg { color: var(--autec-ink); }
.cta-actions .btn { font-size: 1.05rem; padding: 18px 26px; }

/* ============================================================ FOOTER ============================================================ */
.site-footer { background: var(--autec-ink); color: rgba(255,255,255,.62); padding: clamp(56px, 7vw, 84px) 0 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-col .autec-logo { height: 26px; margin-bottom: 22px; }
.footer-col h4 { color: #fff; font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col p { color: rgba(255,255,255,.62); margin: 0 0 14px; max-width: 36ch; }
.footer-claim { color: rgba(255,255,255,.9) !important; font-weight: 300; font-size: 1.15rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,.62); font-weight: 500; }
.footer-links a:hover { color: var(--autec-yellow); }
.footer-contact address { font-style: normal; line-height: 1.85; color: rgba(255,255,255,.7); }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--autec-yellow); }
.footer-contact .line-strong { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: rgba(255,255,255,.45);
}
.footer-bottom .powered { display: flex; align-items: center; gap: 8px; }
.footer-bottom .powered img { height: 15px; opacity: .8; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- i18n visibility ---------- */
[data-lang-only] { display: none; }
[data-lang-only].is-shown { display: block; }
.btn[data-lang-only].is-shown { display: inline-flex; }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1080px) {
  .feature-grid, .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand-lockup .powered { display: none; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--autec-ink-2); padding: 14px var(--gutter) 22px; gap: 4px; margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-120%); transition: transform .28s var(--ease); box-shadow: var(--shadow-md);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 13px 12px; font-size: 1rem; }
  .lang-switch { margin: 10px 0 0; align-self: flex-start; }
}
@media (max-width: 680px) {
  .feature-grid, .apps-grid, .products-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-actions { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
