/* ============================================================
   MicroGlide Dynamics Inc. — Corporate Stylesheet
   Ein durchgängiges Design-System für alle Unterseiten.
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
  --ink: #0b1220;          /* Haupttext */
  --ink-soft: #334155;     /* Sekundärtext */
  --ink-muted: #64748b;    /* Muted */
  --paper: #ffffff;        /* Hintergrund */
  --paper-2: #f4f7fb;      /* Abgespielter Hintergrund */
  --paper-3: #eef2f8;      /* Karten / Flächen */
  --line: #e2e8f0;         /* Trennlinien */

  --brand: #0f766e;        /* Teal — Schmier-Grün */
  --brand-strong: #115e59;
  --brand-soft: #ccfbf1;
  --accent: #0284c7;       /* Sky — API-Blau */
  --accent-soft: #e0f2fe;
  --gold: #b45309;         /* Zertifizierung */
  --gold-soft: #fef3c7;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 12px 30px -14px rgba(15, 23, 42, .28);
  --shadow-lg: 0 30px 60px -28px rgba(15, 23, 42, .4);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
::selection { background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- Layout-Utilities ---------- */
.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #e2e8f0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: .35em .7em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section__head { max-width: 720px; margin-bottom: 2.6rem; }
.section__head h2 { margin-bottom: .4em; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.nav__links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__links a { padding: .5em .8em; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { background: var(--paper-3); color: var(--ink); }
.nav__links a.is-active { color: var(--brand-strong); background: var(--brand-soft); }
.nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 10px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--brand-strong); color: #fff; box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-3); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-3); }
.btn--arrow::after { content: "\2192"; transition: transform .15s ease; }
.btn--arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 460px at 78% -10%, rgba(2,132,199,.16), transparent 60%),
    radial-gradient(760px 420px at 6% 8%, rgba(15,118,110,.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero__inner { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem,7vw,5rem); }
.hero__grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero__stat b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.hero__stat span { font-size: .9rem; color: var(--ink-muted); }

/* „Gleit“-Visual (reines CSS/SVG) */
.glide {
  position: relative; aspect-ratio: 1/1; border-radius: 24px;
  background: linear-gradient(160deg, #0b1220, #111c30);
  box-shadow: var(--shadow-lg); overflow: hidden; display: grid; place-items: center;
}
.glide__pipe {
  position: absolute; top: 50%; left: -20%; width: 140%; height: 18%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.35), rgba(20,184,166,.5), rgba(56,189,248,.35), transparent);
  filter: blur(2px);
}
.glide__drop {
  width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7dd3fc, #0f766e);
  box-shadow: 0 0 40px rgba(56,189,248,.55), inset 0 0 12px rgba(255,255,255,.5);
  animation: pulse 3.2s ease-in-out infinite;
}
.glide__label {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  color: #94a3b8; text-transform: uppercase;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ---------- Karten & Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; }
.card--dark { background: #0f1826; border-color: #1e293b; color: #cbd5e1; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #94a3b8; }

/* ---------- Kennzahlen ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-cell { background: var(--paper); padding: 2rem 1.5rem; text-align: center; }
.stat-cell b { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-strong); }
.stat-cell span { color: var(--ink-muted); font-size: .95rem; }

/* ---------- Produkt-Details ---------- */
.product { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.product + .product { margin-top: 2rem; }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.8rem; background: var(--paper-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.product__badge { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .35em .7em; border-radius: 999px; background: var(--accent-soft); color: #075985; }
.product__badge--teal { background: var(--brand-soft); color: var(--brand-strong); }
.product__badge--gold { background: var(--gold-soft); color: var(--gold); }
.product__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; padding: 2rem 1.8rem; }
.product__desc p { color: var(--ink-soft); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table caption { text-align: left; font-weight: 700; margin-bottom: .8rem; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--ink-muted); font-weight: 600; width: 55%; }
.spec-table td { font-family: var(--mono); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .85rem; font-weight: 600; padding: .4em .8em; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--line); color: var(--ink-soft); }
.chip--check::before { content: "✓  "; color: var(--brand); font-weight: 800; }

/* ---------- Testimonials ---------- */
.quote { position: relative; }
.quote__mark { font-size: 3rem; line-height: 1; color: var(--brand-soft); font-weight: 800; position: absolute; top: .2rem; left: 0; }
.quote blockquote { margin: 0 0 1rem; font-size: 1.08rem; color: var(--ink); }
.quote footer { color: var(--ink-muted); font-weight: 600; }
.quote footer b { display: block; color: var(--ink); font-size: 1rem; }
.stars { color: #f59e0b; letter-spacing: .15em; margin-bottom: .6rem; }

/* ---------- Timeline / Prozess ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { position: relative; padding: 1.4rem 1.4rem 1.4rem 4.2rem; background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.4rem;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-family: var(--mono);
}
.step h4 { margin: 0 0 .3em; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Zertifizierungen ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.cert__seal { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.cert__seal svg { width: 24px; height: 24px; }
.cert b { display: block; font-size: .98rem; }
.cert small { color: var(--ink-muted); }

/* ---------- CTA-Banner ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, var(--brand-strong), #0c4a6e); color: #fff; padding: clamp(2rem,5vw,3.4rem); box-shadow: var(--shadow-lg); }
.cta-banner h2, .cta-banner h3 { color: #fff; }
.cta-banner p { color: #d1fae5; max-width: 52ch; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-banner__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8em 1em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--ink-muted); margin-top: .6rem; }

/* ---------- Kontakt-Info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.info-list { list-style: none; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list b { display: block; color: var(--ink); }
.info-list span { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #94a3b8; padding: 3.5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer__grid h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__grid a { color: #cbd5e1; display: block; padding: .3em 0; font-size: .95rem; }
.footer__grid a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .brand small { color: #64748b; }
.footer__brand p { max-width: 34ch; color: #94a3b8; font-size: .95rem; }
.footer__bottom { border-top: 1px solid #1e293b; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #64748b; }
.footer__bottom .tag { color: #94a3b8; font-style: italic; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden-sm { }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4, .grid-3, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid-2, .product__body, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .hero__grid-2 .glide { max-width: 380px; margin-inline: auto; }
  .certs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .8rem; gap: .2rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .18s ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links a { padding: .8em; }
  .nav__toggle {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
  }
  .nav__toggle span::before { position: absolute; top: -6px; }
  .nav__toggle span::after { position: absolute; top: 6px; }
  .grid-4, .grid-3, .grid-2, .stats-band, .certs, .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.2rem; }
}
