/* ============================================================
   ĆERANIĆ ENGINEERING - Onepager
   Eigenständiger technischer Look ("Datenblatt / Blueprint"):
   gleiche Schriften & Markenfarben wie die Schwester-Seiten,
   aber eckige Formen, Konstruktions-Raster und Zeitstrahl.
   Divisions-Akzent: Stahlblau (--steel)
   ============================================================ */

:root {
  --red:      #E1251B;
  --red-dark: #b81a12;
  --blue:     #2C4B9B;
  --blue-2:   #1f3a82;
  --steel:    #9BB0C4;
  --steel-2:  #5E748A;

  --ink:      #0e1116;
  --ink-2:    #161b22;
  --panel:    #1b212b;
  --muted:    #97a1b0;
  --line:     rgba(255,255,255,.10);
  --grid:     rgba(155,176,196,.055);

  --maxw: 1180px;
  --r: 10px;            /* bewusst eckiger als Creative (18px) */

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: #eef1f5;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--f-display); line-height: 1.05; letter-spacing: -.02em; }

/* ---------- Blueprint-Raster (globale Hintergrund-Ebene) ---------- */
.blueprint {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
}

/* ============================================================
   ACCESSIBILITY (BFSG / WCAG 2.1 AA)
   ============================================================ */

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  background: var(--red); color: #fff;
  padding: 12px 20px; border-radius: 8px;
  font-family: var(--f-display); font-weight: 600;
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav__cta:focus-visible { outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 56px);
  transition: background .3s, padding .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,17,22,.78);
  backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 60px; width: auto; display: block; }
.brand__logo--sm { height: 52px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .92rem; color: #cfd6e0; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  background: var(--red); color: #fff !important;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-2px); background: var(--red-dark);
  box-shadow: 0 10px 24px rgba(225,37,27,.35); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px;
  transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0 0 auto 0; z-index: 45;
  background: rgba(14,17,22,.97); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 6px;
  padding: 92px 28px 28px;
  transform: translateY(-110%); transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--f-display); font-size: 1.6rem; padding: 12px 0;
  border-bottom: 1px solid var(--line); }

/* ============================================================
   HERO (Split: Text links, technische Zeichnung rechts)
   ============================================================ */
.hero { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: 150px clamp(18px,5vw,56px) 0; }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding-bottom: 64px;
}

.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--steel); font-weight: 600;
  border: 1px solid rgba(155,176,196,.35); padding: 8px 16px; border-radius: 6px;
  background: rgba(155,176,196,.05);
}

.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 700;
  margin: 26px 0 22px;
}
.hero__title .steel { color: var(--steel); }

.hero__lead { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: #c4ccd8;
  max-width: 50ch; margin-bottom: 34px; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem;
  padding: 15px 30px; border-radius: 8px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { transform: translateY(-3px); background: var(--red-dark);
  box-shadow: 0 14px 30px rgba(225,37,27,.4); }
.btn--ghost { border: 1px solid rgba(155,176,196,.4); color: #e7ebf1; }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--steel);
  background: rgba(155,176,196,.08); }

/* Projekt-Einblick: 3D-Drahtgitter + Code-Fenster */
.hero__draw { position: relative; }
.hero__wire { display: block; width: 100%; margin-bottom: 14px;
  opacity: .75; pointer-events: none; }
.codewin { position: relative; z-index: 1; margin: 0; }
.codewin__bar { padding: 0 0 12px; }
.codewin__bar em { font-style: normal; font-family: var(--f-display); font-size: .75rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--steel-2);
  border-left: 2px solid var(--steel-2); padding-left: 10px; }
.codewin__code { margin: 0; padding: 0; overflow-x: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: .7rem; line-height: 1.8; color: #aeb9c8;
  scrollbar-width: thin; scrollbar-color: rgba(155,176,196,.3) transparent; }
.codewin__code::-webkit-scrollbar { height: 6px; }
.codewin__code::-webkit-scrollbar-thumb { background: rgba(155,176,196,.3); border-radius: 3px; }
.codewin__code::-webkit-scrollbar-track { background: transparent; }
.codewin__code .c { color: #5e6a7a; }
.codewin__code .k { color: #9BB0C4; }
.codewin__code .t { color: #e7ebf1; }
.codewin__code .n { color: #e1685f; }
.codewin__code .f { color: #cfd6e0; }

/* ---------- Spec-Leiste (statt Marquee) ---------- */
.specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  overflow: hidden;
}
.spec { padding: 22px 24px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; }
.spec:first-child { border-left: 0; }
.spec b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700;
  color: var(--steel); letter-spacing: .02em; }
.spec span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px,10vw,120px) clamp(18px,5vw,56px); }
.section--alt { max-width: none; background: var(--ink-2); border-block: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }

.section__head { margin-bottom: 56px; max-width: 60ch;
  padding-left: 22px; border-left: 2px solid var(--steel); }
.section__num { font-family: var(--f-display); font-size: .85rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--steel); font-weight: 600; }
.section__head h2 { font-size: clamp(2rem,4.5vw,3.2rem); margin: 14px 0 14px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

/* ============================================================
   LEISTUNGEN - Datenblatt-Zeilen
   ============================================================ */
.srows { display: grid; }
.srow {
  display: grid; grid-template-columns: 110px 1.15fr 1fr; gap: 28px;
  padding: 40px 26px; position: relative;
  border-top: 1px solid var(--line);
  transition: background .3s;
}
.srow:last-child { border-bottom: 1px solid var(--line); }
/* Akzentlinie links beim Hover */
.srow::before { content:""; position:absolute; left:0; top:-1px; bottom:-1px; width:3px;
  background: linear-gradient(180deg, var(--steel), var(--blue));
  transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.srow:hover { background: rgba(155,176,196,.04); }
.srow:hover::before { transform: scaleY(1); }

.srow__no { font-family: var(--f-display); font-size: 2.8rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.4px rgba(155,176,196,.5); line-height: 1; }
.srow__body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.srow__body p { color: #b9c2cf; max-width: 46ch; }

.srow__specs { list-style: none; display: grid; gap: 9px; align-content: center; }
.srow__specs li { position: relative; padding-left: 24px; color: #cdd4de; font-size: .95rem; }
.srow__specs li::before { content:""; position:absolute; left:0; top:.62em;
  width: 10px; height: 2px; background: var(--steel); }

/* ============================================================
   KUNDEN & PROJEKTE - Logo-Karten
   ============================================================ */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 22px; }
.client {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.client::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; z-index: 1;
  background: linear-gradient(90deg, var(--steel), var(--blue)); transform: scaleX(0);
  transform-origin: left; transition: transform .4s; }
.client:hover { transform: translateY(-6px); border-color: rgba(155,176,196,.45);
  box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.client:hover::before { transform: scaleX(1); }

/* weiße Logo-Fläche wie eine Visitenkarte */
.client__plate {
  background: #f6f7f9; border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 26px 30px; min-height: 118px;
}
.client__plate img { max-height: 64px; max-width: 200px; width: auto; height: auto;
  display: block; object-fit: contain; }
/* "•••"-Karte: weitere Referenzen */
.client__plate--more span { font-family: var(--f-display); font-size: 2.2rem; font-weight: 700;
  color: var(--steel-2); letter-spacing: .5em; margin-right: -.5em; line-height: 1; }

.client__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.client__head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; }
.client__head h3 { font-size: 1.25rem; }
.client__tag { font-family: var(--f-body); font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--steel); background: rgba(155,176,196,.10);
  border: 1px solid rgba(155,176,196,.30);
  padding: 4px 10px; border-radius: 6px; }
.client__body p { color: #b9c2cf; font-size: .96rem; }

/* ============================================================
   PROZESS - Zeitstrahl
   ============================================================ */
.tline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.tstep { position: relative; padding: 38px 26px 0 0; }
/* durchgehende Linie */
.tstep::before { content:""; position: absolute; top: 7px; left: 0; right: 0; height: 2px;
  background: var(--line); }
.tstep:last-child::before { right: 26px; }
/* Knotenpunkt */
.tstep::after { content:""; position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--steel);
  transition: background .3s, box-shadow .3s; }
.tstep:hover::after { background: var(--steel); box-shadow: 0 0 0 6px rgba(155,176,196,.15); }

.tstep__no { font-family: var(--f-display); font-size: .85rem; font-weight: 600;
  letter-spacing: .25em; color: var(--steel); display: block; margin-bottom: 10px; }
.tstep h3 { font-size: 1.22rem; margin-bottom: 8px; }
.tstep p { color: #b9c2cf; font-size: .95rem; max-width: 30ch; }

/* ============================================================
   ÜBER UNS - Statement + Faktenblatt im Blueprint-Rahmen
   ============================================================ */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about__text h2 { font-size: clamp(2rem,4.5vw,3.2rem); margin: 14px 0 22px; }
.about__text p { color: #c4ccd8; margin-bottom: 18px; font-size: 1.06rem; }
.about__text .btn { margin-top: 12px; }
.about__text .section__num { display: inline-block; margin-bottom: 4px; }

/* Rahmen mit Konstruktions-Eckmarken */
.about__frame { position: relative; padding: 38px 34px;
  border: 1px solid rgba(155,176,196,.25); border-radius: 2px;
  background: rgba(155,176,196,.03); }
.about__frame::before, .about__frame::after,
.facts::before, .facts::after {
  content:""; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--steel);
}
.about__frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.about__frame::after  { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.facts::before { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.facts::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.facts::before, .facts::after { position: absolute; }

.facts { display: grid; gap: 24px; position: static; }
.fact { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.fact::before { content:""; position: absolute; left: 0; top: .5em;
  width: 10px; height: 2px; background: var(--red); }
.fact dt { font-family: var(--f-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--steel); }
.fact dd { color: #dfe5ec; font-size: 1.02rem; }

/* ============================================================
   KONTAKT - Split: Info links, Formular rechts
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px;
  align-items: start; }
.contact__info h2 { font-size: clamp(2rem,4.5vw,3rem); margin: 14px 0 16px; }
.contact__info > p { color: #c4ccd8; font-size: 1.08rem; margin-bottom: 34px; }

.contact__list { list-style: none; display: grid; gap: 20px; }
.contact__list li { display: grid; gap: 2px; padding-left: 20px; position: relative;
  border-left: 2px solid rgba(155,176,196,.3); }
.contact__label { font-family: var(--f-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--steel); }
.contact__list a { color: #eef1f5; font-size: 1.05rem; transition: color .2s; }
.contact__list a:hover { color: var(--steel); }
.contact__list span + span { color: #eef1f5; font-size: 1.05rem; }

/* ---------- Kontaktformular ---------- */
.cform { text-align: left; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform__field { display: flex; flex-direction: column; margin-bottom: 18px; }
.cform__field label { font-family: var(--f-display); font-weight: 500; font-size: .92rem;
  margin-bottom: 8px; color: #e7ebf1; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }

.cform input[type="text"],
.cform input[type="email"],
.cform textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: #fff;
  background: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform textarea:focus {
  outline: none; border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(155,176,196,.22);
}
.cform input[aria-invalid="true"],
.cform textarea[aria-invalid="true"] { border-color: #ff6a5e; }

.cform__error { color: #ff8a80; font-size: .85rem; margin-top: 6px; min-height: 1em; }

/* Consent-Checkbox */
.cform__consent { display: grid; grid-template-columns: auto 1fr; column-gap: 12px;
  align-items: start; }
.cform__consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red);
  flex: none; cursor: pointer; }
.cform__consent label { font-family: var(--f-body); font-weight: 400; font-size: .92rem;
  color: #c4ccd8; margin-bottom: 0; line-height: 1.5; }
.cform__consent a { color: #9db4ff; text-decoration: underline; }
.cform__consent .cform__error { grid-column: 2; }

.cform__submit { width: 100%; margin-top: 6px; }

.cform__status { text-align: center; margin-top: 16px; font-weight: 500; min-height: 1.4em; }
.cform__status.is-success { color: #6ee7a0; }
.cform__status.is-error { color: #ff8a80; }

/* Honeypot - komplett versteckt, aber für Bots im DOM */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { text-align: center; padding: 56px 24px 48px; border-top: 1px solid var(--line);
  background: var(--ink-2); position: relative; z-index: 1; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__parent { color: #c4ccd8; font-size: .98rem; }
.footer__parent strong { color: #fff; }
.footer__legal { margin: 18px 0 6px; display: flex; gap: 12px; justify-content: center;
  align-items: center; font-size: .92rem; }
.footer__legal a { color: #cfd6e0; transition: color .2s; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__copy { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; padding: 140px clamp(18px,5vw,56px) 90px;
  position: relative; z-index: 1; }
.legal a.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: .92rem; margin-bottom: 28px; transition: color .2s; }
.legal a.back:hover { color: #fff; }
.legal h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 8px; }
.legal .lead { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; color: #fff; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; color: #eef1f5; }
.legal p, .legal li { color: #c4ccd8; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a:not(.back) { color: #9db4ff; text-decoration: underline; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.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: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__draw { max-width: 420px; margin: 0 auto; width: 100%; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3) { border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .srow { grid-template-columns: 64px 1fr; }
  .srow__no { font-size: 2rem; }
  .srow__specs { grid-column: 2; }
  .tline { grid-template-columns: 1fr; gap: 0; }
  .tstep { padding: 0 0 34px 34px; }
  .tstep::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .tstep:last-child::before { display: none; }
  .tstep::after { top: 2px; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .about { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; gap: 0; }
}
