/* ============ 4ELEMENTS Electronics — corporate design based on 4elements.at ============ */
:root {
  --petrol: #0b5f6d;
  --petrol-dark: #084652;
  --teal: #1aa295;
  --teal-soft: #e4f4f2;
  --ink: #17252a;
  --muted: #5c6b70;
  --line: #e4e9eb;
  --bg: #ffffff;
  --bg-alt: #f5f8f8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 95, 109, 0.10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Consolas", "SF Mono", "Cascadia Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol); text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Typography ---------- */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
h2 sup { font-size: 0.5em; }
h3 { font-size: 1.15rem; font-weight: 700; }
.accent { color: var(--teal); }
.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.lead { font-size: 1.12rem; color: var(--muted); margin-top: 20px; max-width: 34rem; }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--petrol);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 95, 109, 0.28);
}
.btn-primary:hover { background: var(--petrol-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--petrol); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.link-strong { font-weight: 700; color: var(--petrol); border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.link-strong:hover { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(23, 37, 42, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--petrol); font-size: 1.15rem; letter-spacing: 0.04em; }
.brand-text small { color: var(--teal); font-size: 0.68rem; letter-spacing: 0.28em; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 0.95rem; position: relative; }
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.2s ease;
}
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: 6px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: none;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch button.active { background: var(--petrol); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--petrol); margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 96px;
  background:
    radial-gradient(55% 70% at 85% 20%, rgba(26, 162, 149, 0.08), transparent 70%),
    linear-gradient(180deg, #f8fbfb 0%, #ffffff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-media { display: flex; justify-content: center; }
.hero-center { text-align: center; max-width: 820px; }
.hero-center .lead { margin-left: auto; margin-right: auto; max-width: 40rem; }

/* ---------- Nameplate ---------- */
.nameplate {
  position: relative;
  width: min(430px, 100%);
  background: #fdfdfc;
  border: 1px solid #ccd6d8;
  border-radius: 12px;
  padding: 34px 34px 26px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
}
.nameplate::before,
.nameplate::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cdd7d9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.nameplate::before { left: 12px; }
.nameplate::after { right: 12px; }
.plate-head { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.plate-name { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.01em; }
.plate-name sup { font-size: 0.5em; }
.plate-sub { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.plate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 16px; }
.plate-grid div:nth-child(3) { grid-column: 1 / -1; }
.plate-grid dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.plate-grid dd { font-family: var(--mono); font-size: 0.92rem; font-weight: 600; }
.plate-mfr { font-size: 0.85rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; line-height: 1.55; }
.plate-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  background: var(--teal-soft);
  color: var(--petrol);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.plate-url { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { background: var(--petrol); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; color: #fff; }
.stat-num { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.stat-label { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }

/* ---------- Unternehmen ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--muted); margin-top: 18px; }
.check-list { list-style: none; margin-top: 24px; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 12px; font-weight: 500; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231aa295" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 12px no-repeat;
}
.about-panel {
  background: linear-gradient(150deg, var(--petrol) 0%, var(--petrol-dark) 100%);
  border-radius: var(--radius);
  padding: 48px 40px 32px;
  box-shadow: var(--shadow);
}
.circuit { color: rgba(154, 220, 212, 0.85); }
.circuit svg { width: 100%; height: auto; }
.panel-caption { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; margin-top: 20px; text-align: center; }

/* ---------- Produkt ---------- */
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.product-copy p { color: var(--muted); margin-bottom: 18px; }
.product-copy .btn { margin-top: 10px; }
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow);
}
.spec-card h3 { margin-bottom: 18px; color: var(--petrol); }
.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.spec-table div:last-child { border-bottom: 0; }
.spec-table dt { color: var(--muted); font-size: 0.92rem; }
.spec-table dd { font-weight: 600; font-size: 0.94rem; text-align: right; }

/* ---------- Fertigung ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.services-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal); }
.service-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--petrol);
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Support band ---------- */
.support-band { background: var(--bg-alt); padding: 72px 0; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.support-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.support-card h3 { color: var(--petrol); margin-bottom: 10px; }
.support-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact-copy p { color: var(--muted); margin: 16px 0 28px; max-width: 30rem; }
.contact-card {
  background: var(--petrol);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 38px;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 24px; font-size: 1.15rem; line-height: 1.4; }
.card-sub { font-weight: 500; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-list a { color: #fff; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.contact-ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #9adcd4;
}
.contact-ico svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-dark); color: rgba(255, 255, 255, 0.72); padding: 40px 0; font-size: 0.85rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.footer-legal-link { color: #9adcd4; font-weight: 600; }
.footer-legal-link:hover { text-decoration: underline; }
.footer-links a { color: #9adcd4; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Legal page ---------- */
.legal-main { max-width: 800px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.legal-main h2 { font-size: 1.35rem; margin: 44px 0 14px; color: var(--petrol); }
.legal-main h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.legal-main p { margin-bottom: 14px; color: var(--ink); font-size: 0.96rem; }
.legal-main .legal-lead { color: var(--muted); margin-bottom: 34px; }
.legal-main a { text-decoration: underline; }
.legal-back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
.legal-back:hover { color: var(--teal); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 14px 0 20px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { color: var(--petrol); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cookie-table-wrap { overflow-x: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .hero-grid, .about-grid, .contact-grid, .product-grid { grid-template-columns: 1fr; gap: 44px; }
  .services-grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .services-grid-4 { grid-template-columns: 1fr; }
  .stats-grid-3 { grid-template-columns: 1fr; }
  .nameplate { padding: 26px 24px 20px; }
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(23, 37, 42, 0.12);
    transform: translateY(-130%);
    transition: transform 0.28s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
