/* ═══════════════════════════════════════════════════════
   imx technologies — Stylesheet
   Farbwelt aus dem Logo: Navy #050F16 · Türkis #4D9FAC
   Schriften lokal eingebunden (keine externen Quellen)
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  --navy-950: #030a10;
  --navy-900: #050f16;
  --navy-800: #0a1a26;
  --navy-700: #10232e;
  --blue-300: #4d9fac;
  --blue-200: #8ed2db;
  --blue-400: #3d8894;
  --blue-600: #2a7280;
  --ink: #16222e;
  --ink-soft: #48586a;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #dde6f0;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(5, 15, 22, .10);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--blue-300);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--blue-200);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 159, 172, .35);
}
.btn-ghost {
  border-color: rgba(77, 159, 172, .5);
  color: var(--blue-200);
}
.btn-ghost:hover { border-color: var(--blue-200); color: var(--white); transform: translateY(-2px); }

/* ─────────────── Header ─────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(5, 15, 22, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(77, 159, 172, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark { height: 26px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--white);
  letter-spacing: .01em;
}
.brand-name strong { font-weight: 600; color: var(--blue-300); }

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .97rem;
  font-weight: 500;
  transition: color .2s;
}
.main-nav a:hover { color: var(--blue-200); }
.main-nav .nav-cta {
  padding: .5rem 1.3rem;
  border-radius: 999px;
  background: var(--blue-300);
  color: var(--navy-900);
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--blue-200); color: var(--navy-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ─────────────── Hero ─────────────── */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding: 190px 0 120px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave {
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: .16;
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: draw 3.2s ease-out forwards;
}
.wave.w2 { opacity: .09; stroke-width: 2; animation-delay: .4s; }
.wave.w3 { opacity: .06; stroke-width: 2; animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(77,159,172,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,159,172,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}

.hero-inner { position: relative; max-width: 800px; }
.hero-eyebrow {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.accent {
  background: linear-gradient(100deg, var(--blue-200), var(--blue-300) 60%, var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .78);
  max-width: 620px;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.6rem; }

.hero-facts {
  list-style: none;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(77, 159, 172, .18);
  padding-top: 1.8rem;
}
.hero-facts li { display: flex; flex-direction: column; gap: .15rem; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--blue-200); }
.hero-facts span { font-size: .9rem; color: rgba(255, 255, 255, .6); }

/* ─────────────── Sections ─────────────── */
.section { padding: 110px 0; }
.section-tint { background: var(--paper); }
.section-dark {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}

.eyebrow {
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .9rem;
}
.section-dark .eyebrow { color: var(--blue-300); }

.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 1.1rem; }
.section-lead { color: var(--ink-soft); font-size: 1.13rem; }
.section-dark .section-lead { color: rgba(255, 255, 255, .75); }

/* ─────────────── Services ─────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.1rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
}
.service-card.featured {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-color: transparent;
  display: flex;
  flex-direction: column;
}
.service-card.featured p { color: rgba(255, 255, 255, .78); }
.service-tag {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--blue-300);
  padding: .28rem .75rem;
  border-radius: 999px;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(77, 159, 172, .16);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}
.service-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card.featured .service-icon { background: rgba(77, 159, 172, .18); }
.service-card.featured .service-icon svg { stroke: var(--blue-300); }
.service-card h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .7rem; }
.service-card p { color: var(--ink-soft); font-size: .99rem; }

.service-points {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: .65rem;
}
.service-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .97rem;
  color: rgba(255, 255, 255, .85);
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue-300);
}

/* ─────────────── Split (Software / Über uns) ─────────────── */
.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: center;
}
.split-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 1.2rem; }
.split-text p { margin-bottom: 1.1rem; }
.section-dark .split-text p { color: rgba(255, 255, 255, .78); }
#ueber-uns .split-text p { color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chips span {
  font-size: .88rem;
  font-weight: 500;
  padding: .42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 159, 172, .35);
  color: var(--blue-200);
}

/* Code-Karte */
.code-card {
  background: var(--navy-950);
  border: 1px solid rgba(77, 159, 172, .22);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(3, 10, 16, .55);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid rgba(77, 159, 172, .14);
}
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(77, 159, 172, .3); }
.code-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: .8rem;
  color: rgba(77, 159, 172, .55);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.code-card pre {
  padding: 1.4rem 1.5rem 1.6rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .95rem;
  line-height: 1.75;
  color: #c6dde2;
  overflow-x: auto;
}
.c-key { color: var(--blue-200); font-weight: 600; }
.c-prop { color: #74b6c2; }
.c-str { color: #a8d4b8; }
.c-fn { color: #d9b98a; }

/* ─────────────── Liefermodell ─────────────── */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.delivery-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.delivery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
}
.delivery-badge {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--blue-300);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1.1rem;
}
.delivery-card h3 { font-size: 1.25rem; font-weight: 600; }
.delivery-role {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: .3rem 0 .8rem;
}
.delivery-card p:last-child { color: var(--ink-soft); font-size: .97rem; }

.delivery-note {
  margin-top: 2.2rem;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  padding: 1.6rem 2.1rem;
}
.delivery-note strong { color: var(--blue-200); }

/* ─────────────── Vorgehen ─────────────── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-300);
  display: block;
  margin-bottom: .8rem;
}
.steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.steps p { font-size: .95rem; color: var(--ink-soft); }

/* ─────────────── Über uns / Facts ─────────────── */
.facts-card {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2.3rem;
  box-shadow: var(--shadow);
}
.facts-card ul { list-style: none; display: grid; gap: 1.5rem; }
.facts-card li {
  display: grid;
  gap: .3rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--blue-300);
}
.facts-card strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--blue-200);
}
.facts-card span { font-size: .95rem; color: rgba(255, 255, 255, .75); }

/* ─────────────── Kontakt ─────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: rgba(77, 159, 172, .07);
  border: 1px solid rgba(77, 159, 172, .2);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, background .2s, transform .2s;
}
a.contact-card:hover {
  border-color: var(--blue-300);
  background: rgba(77, 159, 172, .12);
  transform: translateY(-3px);
}
.contact-card svg {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: .15rem;
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: .25rem; }
.contact-card p { font-size: .97rem; color: rgba(255, 255, 255, .75); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2.3rem;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(3, 10, 16, .4);
  display: grid;
  gap: 1.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form label {
  display: grid;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(77, 159, 172, .3);
}
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-privacy {
  font-size: .84rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.55;
}
.form-privacy a { color: var(--blue-600); }
.form-status { font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #c62828; }

/* ─────────────── Footer ─────────────── */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .65);
  padding: 3rem 0;
}
.footer-logo { width: 190px; height: auto; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a, .footer-legal a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .93rem;
  transition: color .2s;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--blue-200); }
.footer-legal { font-size: .88rem; }

/* ─────────────── Rechtsseiten ─────────────── */
.legal-page { padding: 150px 0 100px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.4rem 0 .8rem;
}
.legal-page p { margin-bottom: 1rem; color: var(--ink-soft); }
.legal-page ul { margin: 0 0 1rem 1.3rem; color: var(--ink-soft); }
.legal-page li { margin-bottom: .35rem; }
.legal-stand { font-size: .9rem; margin-top: 2.5rem; }
.nowrap { white-space: nowrap; }

/* Platzhalter für noch fehlende Angaben */
.todo {
  background: #fff3cd;
  color: #7a5c00;
  border-radius: 6px;
  padding: .05em .4em;
  font-weight: 500;
}

/* ─────────────── Reveal-Animationen ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave { animation: none; stroke-dashoffset: 0; }
}

/* ─────────────── Responsive ─────────────── */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-row: auto; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─────────────── Fehlerseite ─────────────── */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(165deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.error-logo { width: 140px; margin: 0 auto 2rem; }
.error-page h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--blue-300);
  line-height: 1;
  margin-bottom: .6rem;
}
.error-page p { color: rgba(255, 255, 255, .75); margin-bottom: 2rem; }

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 72px; right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    background: rgba(5, 15, 22, .97);
    width: min(320px, 80vw);
    padding: 1rem 1.6rem 1.6rem;
    border-radius: 0 0 0 var(--radius);
    border: 1px solid rgba(77, 159, 172, .15);
    border-top: 0;
    transform: translateX(110%);
    transition: transform .3s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: .8rem 0; font-size: 1.05rem; }
  .main-nav .nav-cta { margin-top: .8rem; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 150px 0 90px; }
  .section { padding: 80px 0; }
  .hero-facts { gap: 1.6rem 2.2rem; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
