/* N&E Feinwerk GmbH – Stylesheet */

:root {
  --ink: #1b2826;
  --petrol: #1f4643;
  --accent: #4f9db9;
  --accent-soft: #e6f1f5;
  --muted: #66706e;
  --line: #e3e1dc;
  --paper: #ffffff;
  --stone: #f5f4f1;
  --maxw: 1180px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 28px;
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--petrol);
  margin: 0;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand img { height: 42px; width: auto; }

.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 10px 20px; color: #fff; }
.nav .btn:hover { color: var(--petrol); }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--petrol);
  background: var(--petrol);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: transparent; color: var(--petrol); }
.btn-ghost { background: transparent; color: var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: #fff; }

/* ---------- Hero ---------- */

.hero { padding-block: 72px 110px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  border: 1px solid var(--accent);
  z-index: -1;
}

/* ---------- Kennzahlen ---------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 40px 28px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong {
  display: block;
  font-size: 2.3rem;
  font-weight: 300;
  color: var(--petrol);
  line-height: 1.1;
  margin-bottom: 8px;
}
.fact span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Sektionen ---------- */

.section { padding-block: 120px; }
.section-stone { background: var(--stone); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 22px; }

/* Baukasten */

.principle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(s);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.figure {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  margin: 0;
}
.figure img { mix-blend-mode: multiply; margin: 0 auto; }
.figure figcaption {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.principle-aside { position: sticky; top: 120px; display: grid; gap: 28px; }

/* Vorteile */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.benefit {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.benefit-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}
.benefit-img img {
  max-height: 100%;
  width: auto;
  mix-blend-mode: multiply;
}
.benefit-body { padding: 32px; }
.benefit h3 { margin-bottom: 12px; }
.benefit p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.code {
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.88em;
  color: var(--petrol);
  background: var(--accent-soft);
  padding: 1px 6px;
  white-space: nowrap;
}

/* Produkte */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}
.filter button {
  font: inherit;
  font-size: 0.88rem;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.filter button:hover { border-color: var(--petrol); }
.filter button[aria-pressed="true"] {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-img {
  aspect-ratio: 16 / 10;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  overflow: hidden;
}
.product-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s ease;
}
.product:hover .product-img img { transform: scale(1.04); }
.product-body {
  padding: 30px 30px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.product h3 { margin-bottom: 12px; }
.product p { font-size: 0.95rem; color: var(--muted); }
.specs {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
}
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { text-align: right; }
.product[hidden] { display: none; }

.catalog-cta {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 40px 44px;
  background: var(--petrol);
  color: #fff;
}
.catalog-cta h3 { color: #fff; font-weight: 300; font-size: 1.6rem; margin-bottom: 6px; }
.catalog-cta p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.catalog-cta .btn { background: #fff; color: var(--petrol); border-color: #fff; white-space: nowrap; }
.catalog-cta .btn:hover { background: transparent; color: #fff; }

/* Unternehmen */

.company-img img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.company {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 72px;
  align-items: start;
}
.company p { color: var(--muted); }
.quote {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--petrol);
  border-left: 1px solid var(--accent);
  padding-left: 32px;
  margin: 0;
}

/* Kontakt */

.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.contact-list a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  padding-block: 56px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer strong { color: #fff; font-weight: 500; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: 80px 120px; max-width: 800px; }
.legal h1 { margin-bottom: 48px; font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.35rem; font-weight: 500; margin: 40px 0 12px; }
.legal p { color: var(--muted); }
.placeholder { background: #fff4d6; padding: 0 4px; color: #7a5a00; }

/* ---------- Einblenden ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .products, .benefits { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .principle, .company, .contact { gap: 56px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 18px; width: auto; text-align: center; border-bottom: 1px solid var(--petrol); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero { padding-block: 40px 80px; }
  .hero .wrap, .principle, .company, .contact { grid-template-columns: 1fr; }
  .hero-visual::before { inset: 16px -12px -16px 16px; }
  .principle-aside { position: static; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 28px 20px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-block: 80px; }
  .section-head { margin-bottom: 44px; }
  .products, .benefits { grid-template-columns: 1fr; }
  .catalog-cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .company-img img { aspect-ratio: 16 / 10; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 420px) {
  .fact strong { font-size: 1.8rem; }
  .brand img { height: 36px; }
}

/* ---------- Sprunglink ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--petrol);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }
