/* JALI Labs – Aufbauseite, v2 */
/* Palette aus dem Logo */
:root {
  --navy: #263a5c;
  --navy-deep: #1c2c47;
  --navy-ink: #22344f;
  --apricot: #f3976f;
  --apricot-soft: #f8b78f;
  --bg: #f4f1eb;
  --bg-soft: #ece7de;
  --text-muted: #5c6478;
  --radius: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(120% 90% at 85% 10%, #fdfaf4 0%, transparent 60%),
    linear-gradient(175deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--navy);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.site-header {
  max-width: 78rem;
  margin: 0 auto;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3.5rem) clamp(1rem, 2vw, 1.5rem);
}

.brand { display: inline-block; }

.logo {
  display: block;
  height: clamp(2.75rem, 7vw, 4.25rem);
  width: auto; /* Logo bleibt unverzerrt */
}

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

.hero-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 78rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.hero-copy { max-width: 34rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(38, 58, 92, 0.12);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--apricot);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--navy-deep);
}

h1::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--apricot), var(--apricot-soft));
  border-radius: 2px;
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.contact {
  display: inline-block;
  background: var(--navy);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--apricot);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact:hover,
.contact:focus-visible {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.contact:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 2px;
}

/* ---------- Technische Illustration ---------- */

.hero-art { min-width: 0; }

.diagram { width: 100%; height: auto; display: block; }

.node-rect {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(38, 58, 92, 0.35);
  stroke-width: 1.4;
}

.icon-accent { fill: var(--apricot); }
.icon-accent-fill { fill: var(--apricot); }
.icon-accent-stroke { stroke: var(--apricot); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-line { fill: rgba(38, 58, 92, 0.55); }
.icon-line.accent { fill: var(--apricot); }
.pipeline-joint { stroke: rgba(38, 58, 92, 0.45); stroke-width: 2; fill: none; }

.core-rect { fill: var(--navy); stroke: none; }
.core-line { stroke: var(--apricot); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.core-dot { fill: var(--apricot-soft); }

.wire {
  stroke: rgba(38, 58, 92, 0.35);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  fill: none;
  animation: wire-dash 24s linear infinite;
}

.wire-2 { animation-duration: 28s; animation-direction: reverse; }
.wire-4 { animation-duration: 26s; animation-direction: reverse; }

@keyframes wire-dash {
  to { stroke-dashoffset: -240; }
}

.pulse { fill: var(--apricot); opacity: 0.9; }
.pulse-2, .pulse-4 { fill: var(--navy); opacity: 0.5; }

/* ---------- Kompetenzzeile ---------- */

.capabilities {
  border-top: 1px solid rgba(38, 58, 92, 0.14);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.capability-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.capability-line .sep {
  color: var(--apricot);
  font-weight: 700;
}

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

.site-footer {
  max-width: 78rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem clamp(1.25rem, 5vw, 3.5rem) 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(38, 58, 92, 0.12);
}

.site-footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--navy-deep);
}

/* ---------- Layout-Bruch: Tablet & Mobile ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .hero-copy { max-width: 40rem; }

  .hero-art {
    max-width: 30rem;
  }
}

@media (max-width: 640px) {
  .status { font-size: 0.8rem; }

  .contact {
    width: 100%;
    max-width: 22rem;
    text-align: center;
  }

  .capability-line {
    flex-direction: column;
    gap: 0.2rem;
  }

  .capability-line .sep { display: none; }

  .capability-line span:not(.sep)::before {
    content: "— ";
    color: var(--apricot);
  }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .wire { animation: none; }
  .pulse { display: none; }
  .contact, .contact:hover { transition: none; transform: none; }
}