/* ============================================================
   PipelineWorks — industrial & technical B2B identity
   Palette: steel / blueprint blue / signal safety-orange / paper
   Type: IBM Plex Sans (body+display) + IBM Plex Mono (data/labels)
   ============================================================ */

:root {
  --steel: #1b2430;
  --steel-2: #232f3d;
  --blueprint: #2e5c8a;
  --blueprint-soft: #d7e2ee;
  --signal: #e8611c;
  --signal-dark: #c14e12;
  --paper: #f5f4f0;
  --paper-2: #ecebe4;
  --graphite: #22262b;
  --muted: #5f6773;
  --line: #d8d6cd;
  --line-dark: #33414f;
  --white: #ffffff;

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1120px;
  --radius: 2px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Data / mono voice ---- */
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 16px;
}

/* ---- Headings ---- */
h1, h2, h3 {
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  color: var(--white);
}
.btn-primary:hover { background: var(--signal-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--steel);
}
.btn-outline:hover { border-color: var(--steel); background: rgba(27, 36, 48, 0.04); }

.on-dark .btn-outline,
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.on-dark .btn-outline:hover,
.hero .btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--steel);
}
.logo b { color: var(--signal); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--graphite);
}
.nav-links a:not(.btn):hover { color: var(--signal); }

.lang-switch { display: flex; gap: 4px; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; }
.lang-switch a { text-decoration: none; padding: 3px 6px; border-radius: var(--radius); color: var(--muted); }
.lang-switch a.active { background: var(--steel); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--steel);
}

/* ============================================================
   Sections
   ============================================================ */
section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; }

.band-dark { background: var(--steel); color: var(--paper); }
.band-dark .section-head p { color: #b7bfca; }
.band-blueprint { background: var(--paper-2); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    linear-gradient(180deg, rgba(46, 92, 138, 0.16), transparent 40%),
    var(--steel);
  color: var(--paper);
  padding: 104px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(215, 226, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 226, 238, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; max-width: 860px; }
.hero h1 { color: var(--white); }
.hero-sub {
  font-size: 1.2rem;
  color: #c3cbd6;
  margin: 22px 0 32px;
  max-width: 640px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #8b95a2;
  margin: 30px 0 0;
  letter-spacing: 0.01em;
}
.trust-line b { color: var(--blueprint-soft); font-weight: 500; }

/* ============================================================
   Schematic (signature element)
   ============================================================ */
.schematic-wrap { margin-top: 8px; }
.schematic {
  width: 100%;
  height: auto;
  font-family: var(--mono);
}
.schematic .pipe-base { stroke: #46586a; }
.schematic .pipe-flow {
  stroke: var(--signal);
  stroke-linecap: round;
  stroke-dasharray: 3 12;
  animation: flow 1.4s linear infinite;
}
.band-dark .schematic .stage-label { fill: var(--paper); }
.schematic .stage-label { font-size: 12px; fill: var(--steel); font-weight: 500; }
.schematic .node-ring { fill: var(--steel); stroke: var(--signal); stroke-width: 2; }

@keyframes flow { to { stroke-dashoffset: -30; } }

/* Always-visible stage columns, aligned under the pipe nodes */
.stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 18px;
}
.stage-col {
  text-align: center;
  padding: 0 10px;
}
.stage-num { display: none; }
.stage-lbl {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 8px;
}
.stage-col p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #b7bfca;
}

/* ============================================================
   Products / pricing ladder
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.product {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product.featured {
  border: 2px solid var(--steel);
  box-shadow: 0 18px 40px rgba(27, 36, 48, 0.12);
}
.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--signal);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius);
}
.product h3 { font-size: 1.25rem; }
.product .price {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--blueprint);
  font-weight: 600;
  margin: 8px 0 16px;
}
.product .price .amount { font-size: 1.35rem; color: var(--steel); }
.product > p { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.product ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.product li {
  font-size: 0.92rem;
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--graphite);
}
.product li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--signal);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}
.product .btn { margin-top: auto; width: 100%; }
.products-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin: 26px 0 0;
}

/* Free-review banner */
.review-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--steel);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 30px;
}
.review-banner h3 { color: var(--white); font-size: 1.2rem; }
.review-banner .review-meta {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--signal);
  font-size: 0.9rem;
}
.review-banner p { margin: 8px 0 0; color: #c3cbd6; font-size: 0.96rem; max-width: 640px; }
.review-banner .btn { flex: none; }

/* Tier hint line */
.product .hint {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Custom / partial-engagement strip */
.custom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 26px;
}
.custom-strip p { margin: 0; color: var(--muted); font-size: 0.96rem; max-width: 700px; }
.custom-strip strong { color: var(--steel); }
.custom-strip .btn { flex: none; }

/* ============================================================
   Proof / stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--steel-2);
}
.stat .figure {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--signal);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .desc { margin: 14px 0 0; color: #c3cbd6; font-size: 0.98rem; }
.proof-context {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #8b95a2;
  margin: 24px 0 0;
}

/* Proof blocks: global data + our results */
.proof-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.proof-block {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--steel-2);
}
.proof-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal);
  margin: 0 0 16px;
}
.proof-block .figure {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--signal);
  letter-spacing: -0.02em;
  line-height: 1;
}
.proof-figures {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: baseline;
}
.proof-block > p {
  margin: 14px 0 0;
  color: #c3cbd6;
  font-size: 0.98rem;
}
.proof-block .src { color: #8b95a2; }

/* ============================================================
   Why (two columns) + certs
   ============================================================ */
.why-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.why-col h3 {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal);
  margin-bottom: 12px;
}
.why-col p { margin: 0; color: var(--graphite); font-size: 1.02rem; }

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.cert {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  background: var(--white);
}

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq { max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 40px 22px 0;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--steel);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--signal);
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 680px;
}
.faq-item.open .faq-a { display: block; }

/* ============================================================
   Contact / book
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.cal-embed {
  min-height: 360px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--steel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.cal-embed .btn { margin-top: 16px; }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b7bfca;
  display: block;
  margin-bottom: 6px;
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--steel-2);
  color: var(--paper);
}
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: var(--signal);
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.form-success {
  display: none;
  background: rgba(46, 92, 138, 0.18);
  border: 1px solid var(--blueprint);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--paper);
  font-size: 0.98rem;
}
.form-success.show { display: block; }
.email-fallback {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #8b95a2;
  margin-top: 16px;
}
.email-fallback a { color: var(--blueprint-soft); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--steel);
  color: #a7b0bc;
  padding: 40px 0;
  font-size: 0.88rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .foot-tag { max-width: 420px; color: #8b95a2; }
.site-footer a { color: #c3cbd6; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-meta { display: flex; gap: 18px; align-items: center; font-family: var(--mono); font-size: 0.8rem; }
.site-footer .lang-switch a { color: #a7b0bc; }
.site-footer .lang-switch a.active { background: var(--signal); color: var(--white); }

/* ============================================================
   Legal / impressum pages
   ============================================================ */
.legal { max-width: 760px; padding: 64px 0; }
.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p { color: var(--graphite); }
.legal .todo {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--paper-2);
  border: 1px dashed var(--blueprint);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--blueprint);
  display: inline-block;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; }
  .why-cols { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .hero { padding: 76px 0 64px; }
}

/* Schematic: vertical list on mobile (pipe runs vertically) */
@media (max-width: 700px) {
  .schematic.pipe-h { display: none; }
  .stages {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 8px;
  }
  .stages::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    bottom: 22px;
    width: 3px;
    background: #46586a;
    border-radius: 2px;
  }
  .stages::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    bottom: 22px;
    width: 3px;
    background: repeating-linear-gradient(to bottom, var(--signal) 0 3px, transparent 3px 15px);
    animation: flowY 1.4s linear infinite;
  }
  .stage-col {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 0 0 24px;
    position: relative;
    z-index: 1;
  }
  .stage-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    background: var(--steel);
    border: 2px solid var(--signal);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.9rem;
  }
  .stage-lbl { margin-bottom: 4px; }
}
@keyframes flowY { to { background-position: 0 18px; } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .schematic .pipe-flow { animation: none; stroke-dasharray: 0; }
  .stages::after { animation: none; }
  * { transition: none !important; }
}

/* ============================================================
   Problem section — zigzag pipe layout
   ============================================================ */
.zz-wrap{ max-width:1040px; margin:0 auto; padding:8px 0; }
.zz-inner{ display:grid; grid-template-columns:repeat(4,1fr);
  gap:24px; align-items:stretch; }
.zz-card{ background:#fff; border:1px solid #e7e3da;
  padding:20px 22px; display:flex; flex-direction:column;
  justify-content:center; }
.zz-card h3{ margin:0 0 6px; font-size:18px; color:#1f2a33; }
.zz-card p{ margin:0; color:#6B7280; font-size:15px; }
.zz-c1{ grid-column:1; grid-row:1; border-bottom:3px solid var(--signal); }
.zz-c3{ grid-column:3; grid-row:1; border-bottom:3px solid var(--signal); }
.zz-c2{ grid-column:2; grid-row:3; border-top:3px solid var(--signal); }
.zz-c4{ grid-column:4; grid-row:3; border-top:3px solid var(--signal); }
.zz-pipe-cell{ grid-column:1 / -1; grid-row:2; }
.zz-pipe-cell svg{ width:100%; height:56px; overflow:visible; display:block; }
@media(max-width:640px){
  .zz-inner{ grid-template-columns:1fr; }
  .zz-c1,.zz-c2,.zz-c3,.zz-c4{ grid-column:1; grid-row:auto;
    border-top:3px solid var(--signal); border-bottom:1px solid #e7e3da; }
  .zz-pipe-cell{ display:none; }
}
