/* ==========================================================
   G-ET · Grgic Elektrotechnik
   Farben & Schrift abgeleitet von der Visitenkarte
   ========================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #23303a;          /* Logo-Anthrazit */
  --ink-soft: #4a5862;
  --muted: #6b7780;
  --red: #9e1a2f;          /* Logo-Rot */
  --red-dark: #7f1426;
  --line: #d8dde1;
  --bg: #ffffff;
  --bg-alt: #f4f6f7;
  --radius: 6px;
  --max: 1160px;
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.01em; }
h3 { font-size: 22px; }

.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head p { color: var(--ink-soft); margin: 18px 0 0; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.logo__mark {
  display: flex;
  align-items: center;
  font-family: "Archivo Black", "Arial Black", var(--font);
  font-size: 30px;
  letter-spacing: -0.02em;
}
.logo__dash {
  width: 0.28em;
  height: 0.2em;
  background: var(--red);
  margin: 0 0.14em;
}
.logo__name {
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font: 500 16px/1 var(--font);
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:hover { color: var(--red); }
.nav .btn { color: #fff; padding: 12px 22px; font-size: 14px; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 128px;
  overflow: hidden;
}
.hero::after {               /* dezentes Raster im Hintergrund */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 85% 30%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 30%, #000 0%, transparent 60%);
  opacity: .55;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 80px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead {
  max-width: 600px;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 28px 0 44px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 2px solid var(--red);
  max-width: 900px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: #fff;
  padding: 40px 36px 44px;
  transition: background .25s;
}
.service:hover { background: #fbfbfc; }
.service__icon {
  width: 52px;
  height: 52px;
  color: var(--ink);
  margin-bottom: 28px;
  transition: color .25s, transform .25s;
}
.service:hover .service__icon { color: var(--red); transform: translateY(-3px); }
.service h3 { margin-bottom: 12px; }
.service p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.service ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}
.service li { padding: 4px 0 4px 18px; position: relative; }
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 2px;
  background: var(--red);
}

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__text p { color: var(--ink-soft); margin: 20px 0 0; }
.values { display: grid; gap: 0; border-top: 1px solid var(--line); }
.value {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.value__num {
  grid-row: span 2;
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.value h3 { font-size: 20px; }
.value p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 36px;
  border-top: 2px solid var(--ink);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px;
  left: 0;
  background: var(--bg-alt);
  padding-right: 14px;
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--ink);
  color: #fff;
}
.contact .eyebrow { color: #e0697d; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
}
.contact__intro p { color: #c3cad0; margin: 20px 0 40px; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { border-top: 1px solid rgba(255,255,255,.14); }
.contact__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact__list a, .contact__list span {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  font-size: 20px;
  text-decoration: none;
  transition: color .2s;
}
.contact__list a:hover { color: #e0697d; }
.contact__list svg { width: 24px; height: 24px; color: #e0697d; flex: none; }

.form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form h3 { grid-column: 1 / -1; margin-bottom: 4px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: 17px/1.4 var(--font);
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(158, 26, 47, .14);
}
.form__note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.form .btn { grid-column: 1 / -1; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: #1a242c;
  color: #9aa5ad;
  padding: 48px 0;
  font-size: 15px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer .logo { color: #fff; }
.footer nav { display: flex; gap: 28px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { padding: 88px 0 112px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; margin: 0; }
.legal dt { font-weight: 500; }
.legal dd { margin: 0; color: var(--ink-soft); }
.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 2px; }

/* ---------- Animation beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-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: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0 88px; }
  .hero__lead { font-size: 18px; }
  .hero__tags { margin-top: 56px; font-size: 12px; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }

  .services { grid-template-columns: 1fr; }
  .service { padding: 32px 24px 36px; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 28px 20px; }
  .contact__list a, .contact__list span { font-size: 18px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
}
