/* =========================================================================
   ZE Präzision GmbH – One-Pager
   Style Guide: Hectorplast-Designwelt (Slate-Navy + Koralle), technischer Akzent
   ========================================================================= */

/* ---------- Schriften: lokal selbst gehostet (DSGVO) ---------------------- */
@font-face {
  font-family: "Avenir";
  src: url("../fonts/Avenir-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avenir";
  src: url("../fonts/Avenir-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Object Sans Heavy";
  src: url("../fonts/ObjectSans-Heavy.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}

/* ---------- Design-Tokens ------------------------------------------------- */
:root {
  --navy:        #2D3E50;   /* Primär / Brand */
  --navy-deep:   #1B2733;   /* dunkle Flächen */
  --navy-darker: #00072d;
  --coral:       #FF7A7A;   /* Akzent */
  --coral-soft:  #FF9595;
  --grey-blue:   #A0A5B8;   /* sekundär */
  --ink:         #1B2733;   /* Fließtext */
  --white:       #FFFFFF;
  --off:         #F4F6F9;   /* helle Section */
  --line:        #E4E8EE;

  --font-head: "Object Sans Heavy", "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Avenir", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(27, 39, 51, .08);
  --shadow-lg: 0 18px 50px rgba(27, 39, 51, .14);
  --t: .25s ease;
}

/* ---------- Reset / Basis ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; }
strong { font-weight: 900; }

/* ---------- Layout-Helfer ------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--off); }
.section--navy { background: var(--navy); color: #dfe6ef; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 14px; font-weight: 900;
}
.lead { font-size: 1.15rem; color: #475260; max-width: 60ch; }
.section--navy .lead { color: #b9c4d2; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 26px; }
@media (min-width: 760px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); }
                             .grid-3 { grid-template-columns: repeat(3, 1fr); }
                             .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 900; font-size: .98rem;
  padding: 14px 26px; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: #ff6262; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,122,122,.35); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.section--navy .btn--ghost,
.hero .btn--ghost { color:#fff; border-color: rgba(255,255,255,.55); }
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover { background:#fff; color: var(--navy); border-color:#fff; }

/* ---------- Header / Navigation ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-text { font-family: var(--font-head); font-weight: 900; line-height: 1; letter-spacing: .02em; }
.logo-text b { display: block; font-size: 1.18rem; letter-spacing: .06em; }
.logo-text span { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-blue); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 900; font-size: .96rem; color: var(--navy); position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--coral); transition: var(--t); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta::after { display: none; }
.nav-cta { margin-left: 8px; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: var(--t); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 14px 24px; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative; color: #eaf0f7;
  background: var(--navy-darker);
  overflow: hidden;
}
.hero::after {
  content:""; position:absolute; inset:0; z-index: 0;
  background:
    linear-gradient(95deg, rgba(15,22,31,.92) 0%, rgba(15,22,31,.70) 34%, rgba(15,22,31,.28) 64%, rgba(15,22,31,.04) 100%),
    url("../assets/img/hero-b3.webp") right center / cover no-repeat;
}
@media (max-width: 760px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(15,22,31,.80) 0%, rgba(15,22,31,.55) 50%, rgba(15,22,31,.80) 100%),
      url("../assets/img/hero-b3.webp") center center / cover no-repeat;
  }
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(70px, 11vw, 130px); padding-bottom: clamp(70px, 11vw, 130px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { color: var(--coral); }
.hero-sub { font-size: 1.2rem; max-width: 54ch; color: #c9d4e1; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px; }
.fact {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 14px 20px; backdrop-filter: blur(4px);
}
.fact b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.fact span { font-size: .86rem; color: var(--grey-blue); }

/* ---------- Cards --------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 1/1; background: #f0f2f5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { margin: 0; color: #51606f; font-size: .98rem; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(45,62,80,.07); color: var(--navy);
}
.section--navy .icon-badge { background: rgba(255,255,255,.1); color: var(--coral); }
.icon-badge svg { width: 26px; height: 26px; }

/* simple feature card (no image) */
.feature { padding: 28px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); height:100%; }
.section--navy .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.feature h3 { font-size: 1.12rem; }
.feature p { margin: 0; color:#51606f; font-size:.96rem; }
.section--navy .feature p { color:#b9c4d2; }

/* ---------- Über uns: Fakten + Gruppe ------------------------------------ */
.facts-tiles { display: grid; gap: 16px; grid-template-columns: repeat(2,1fr); }
@media (min-width:760px){ .facts-tiles { grid-template-columns: repeat(4,1fr); } }
.tile { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tile b { display:block; font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); }
.tile span { color:#6b7785; font-size:.92rem; }
.tile .big { font-size: 1.7rem; }

.group-box {
  margin-top: 36px; display:flex; flex-wrap:wrap; align-items:center; gap: 28px;
  background: var(--navy); color:#cfd9e4; border-radius: var(--radius); padding: 28px 32px;
}
.group-box img { width: 200px; filter: none; }
.group-box h3 { color:#fff; margin-bottom:.3em; }
.group-box p { margin:0; color:#b9c4d2; font-size:.98rem; }

/* ---------- Werkstoffe Chips --------------------------------------------- */
.chips { display:flex; flex-wrap:wrap; gap:12px; margin-top: 8px; }
.chip { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:#dfe6ef;
  padding: 9px 18px; border-radius: 999px; font-weight:900; font-size:.95rem; }
.stat-row { display:flex; flex-wrap:wrap; gap: 40px; margin-bottom: 36px; }
.stat b { font-family: var(--font-head); font-size: 2.6rem; color: var(--coral); display:block; line-height:1; }
.stat span { color:#b9c4d2; font-size:.95rem; }

/* ---------- Ablauf (Prozess) --------------------------------------------- */
.steps { counter-reset: step; display:grid; gap: 24px; }
@media (min-width:760px){ .steps { grid-template-columns: repeat(4,1fr); } }
.step { position:relative; padding: 28px 24px; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-head); font-size: 1rem; color:#fff;
  width: 38px; height:38px; border-radius:10px; background: var(--coral);
  display:grid; place-items:center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin:0; color:#51606f; font-size:.95rem; }

/* ---------- Qualität / DEKRA --------------------------------------------- */
.quality { display:flex; flex-wrap:wrap; align-items:center; gap: 48px; }
.quality .seal { flex: none; width: 180px; }
.quality .seal img { margin-inline:auto; }

/* ---------- Kontakt ------------------------------------------------------ */
.contact-grid { display:grid; gap: 40px; }
@media (min-width: 900px){ .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.form-field { margin-bottom: 18px; }
.form-row { display:grid; gap:18px; }
@media (min-width:600px){ .form-row { grid-template-columns: 1fr 1fr; } }
label { display:block; font-weight:900; font-size:.9rem; margin-bottom:6px; color: var(--navy); }
input, textarea {
  width:100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border:1px solid #cdd5df; border-radius: 10px; background:#fff; transition: var(--t);
}
input:focus, textarea:focus { outline:none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,122,122,.18); }
textarea { resize: vertical; min-height: 130px; }
input[type=file] { padding: 10px; background:#f7f9fb; cursor:pointer; }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:.9rem; color:#51606f; font-weight:400; }
.consent input { width:auto; margin-top:4px; }
.consent label { font-weight:400; color:#51606f; margin:0; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Formular im dunklen Kontaktbereich: helle Labels */
.section--navy label { color:#fff; }
.section--navy .consent, .section--navy .consent label { color:#b9c4d2; }
.section--navy .consent a { color:#fff; text-decoration:underline; }

.contact-card { background: var(--navy); color:#cfd9e4; border-radius: var(--radius); padding: 32px; }
.contact-card h3 { color:#fff; }
.contact-card .person { font-family:var(--font-head); font-size:1.4rem; color:#fff; margin-bottom: 2px; }
.contact-card .role { color: var(--grey-blue); font-size:.92rem; margin-bottom: 22px; }
.contact-list { list-style:none; margin:0; padding:0; }
.contact-list li { display:flex; align-items:center; gap:12px; padding: 10px 0; border-top:1px solid rgba(255,255,255,.12); }
.contact-list li:first-child { border-top:0; }
.contact-list a { color:#fff; }
.contact-list a:hover { color: var(--coral); }
.contact-list svg { width:20px; height:20px; color: var(--coral); flex:none; }

.form-note { padding: 14px 18px; border-radius:10px; margin-bottom: 22px; font-size:.95rem; }
.form-note.ok { background:#e7f6ec; color:#1f7a3d; border:1px solid #bce5c8; }
.form-note.err { background:#fdeaea; color:#b13a3a; border:1px solid #f3c5c5; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--navy-darker); color:#a8b4c2; padding: 56px 0 28px; font-size:.94rem; }
.footer-top { display:grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .logo { color:#fff; margin-bottom: 14px; }
.site-footer .logo-text span { color: var(--grey-blue); }
.site-footer h4 { color:#fff; font-family:var(--font-head); font-size:1rem; margin:0 0 14px; }
.footer-links { list-style:none; margin:0; padding:0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .site-footer a { color:#a8b4c2; }
.footer-links a:hover, .site-footer a:hover { color:#fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top:1px solid rgba(255,255,255,.1);
  display:flex; flex-wrap:wrap; gap: 14px; justify-content:space-between; align-items:center; color:#7e8b9a; }
.footer-bottom nav { display:flex; gap: 20px; }

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

/* ---------- Vertrauenssäulen / Auto-Grid --------------------------------- */
.grid-auto { display:grid; gap:22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- Leistungen: 4 Karten als 2×2 --------------------------------- */
.grid-services { display:grid; gap:28px; grid-template-columns: 1fr; max-width:980px; margin-inline:auto; }
@media (min-width:640px){ .grid-services { grid-template-columns: repeat(2,1fr); } }

/* ---------- Vertrauenssäulen: gleichmäßige Zeilen mit Icon --------------- */
.pillars { display:grid; gap:14px; max-width:840px; }
.pillar { display:grid; grid-template-columns:auto 1fr; column-gap:20px; row-gap:4px;
  align-items:center; background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding:22px 24px; box-shadow: var(--shadow); }
.pillar .icon-badge { grid-row:1 / 3; align-self:center; width:60px; height:60px; border-radius:14px; margin:0; }
.pillar .icon-badge svg { width:30px; height:30px; }
.pillar h3 { grid-column:2; align-self:end; font-size:1.12rem; margin:0; }
.pillar p { grid-column:2; align-self:start; margin:0; color:#51606f; font-size:.96rem; }
/* Pillars in dunkler Sektion (z. B. "Für den Einkauf") */
.section--navy .pillar { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow:none; }
.section--navy .pillar p { color:#b9c4d2; }

/* ---------- Check-Listen in Karten --------------------------------------- */
.card-list { list-style:none; margin:14px 0 0; padding:0; }
.card-list li { position:relative; padding:6px 0 6px 26px; font-size:.95rem; color:#51606f; }
.card-list li::before {
  content:""; position:absolute; left:0; top:11px; width:14px; height:14px;
  background: var(--coral); border-radius:4px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* ---------- Fertigungstiefe-Kette ---------------------------------------- */
.chain { display:grid; gap:16px; grid-template-columns:1fr; margin-top:40px; }
@media (min-width:760px){ .chain { grid-template-columns: repeat(4,1fr); } }
.chain-item { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding:22px; position:relative; }
.chain-item .step-n { display:block; font-family:var(--font-head); color:var(--coral); font-size:.78rem; letter-spacing:.08em; white-space:nowrap; }
.chain-item h3 { font-size:1.08rem; margin:.3em 0 .4em; color:#fff; }
.chain-item p { margin:0; font-size:.92rem; color:#b9c4d2; }

/* ---------- FAQ (Accordion, ohne JS) ------------------------------------- */
.faq { max-width: 860px; margin-inline:auto; margin-top: 40px; }
.faq details { background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  margin-bottom:14px; box-shadow: var(--shadow); overflow:hidden; }
.faq summary { cursor:pointer; list-style:none; padding:20px 24px; font-family:var(--font-head);
  font-weight:900; color:var(--navy); font-size:1.05rem; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:1.5rem; color:var(--coral); transition: var(--t); line-height:1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin:0; padding:0 24px 22px; color:#51606f; font-size:.98rem; }

/* ---------- Branchen-Abschlussnote --------------------------------------- */
.note-box { margin-top:32px; background:#fff; border-left:4px solid var(--coral);
  border-radius:10px; padding:20px 24px; box-shadow:var(--shadow); }
.note-box p { margin:0; color:#3c4856; }

/* ---------- Legal pages --------------------------------------------------- */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: .6em; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; padding-top: .6em; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.18rem; margin-top: 1.4em; }
.legal h4 { font-size: 1rem; margin-top: 1.1em; color: #36465a; }
.legal p, .legal li { color:#3c4856; }
.legal ul { color:#3c4856; padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--navy); text-decoration: underline; word-break: break-word; }
.legal a:hover { color: var(--coral); }
.back-link { display:inline-flex; align-items:center; gap:8px; margin-top: 36px; font-weight:900; }

/* ---------- Nach-oben-Button --------------------------------------------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--coral); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(255,122,122,.45);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: #ff6262; transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .back-to-top { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity .25s ease; } .back-to-top:hover { transform: none; } }
