/* ==================================================================
   Connective GmbH – one-page site
   Brand colours kept from the original site, modern layout.
   ================================================================== */
:root {
  --brand: #009fe3;
  --brand-dark: #1f6e9c;
  --accent: #f3a93a;
  --ink: #333333;
  --heading: #4e4d4d;
  --text: #555555;
  --muted: #686868;
  --line: #e3e2e2;
  --soft: #f4f5f6;
  --nav: #555555;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid rgba(0, 159, 227, .45); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------
   Sticky header with jump menu
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(0, 0, 0, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 162px; height: auto; }

.menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav);
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}
.menu a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.menu a:hover { color: var(--ink); background: var(--soft); }
.menu a.is-current { color: var(--brand-dark); }
.menu a.is-current::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--nav); cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 22px; height: 2px; margin: 0 auto;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }
.site-header.open .menu-toggle .bars { background: transparent; }
.site-header.open .menu-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { padding: 96px 0; }
.section.alt { background: var(--soft); }
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}
h1, h2, h3 { color: var(--heading); line-height: 1.25; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.lead { max-width: 680px; margin: 0; font-size: 18px; color: var(--muted); }
.section-head { margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #0089c4; border-color: #0089c4; color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: rgba(0, 159, 227, .08); color: var(--brand-dark); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(0, 159, 227, .10), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.5px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-figure img { border-radius: 8px; }

/* OPAL modules */
.modules-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.basis-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.basis-card svg { width: 72px; height: 72px; }
.basis-card h3 { color: var(--brand-dark); }
.basis-card p { margin: 0; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.card {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 56px; height: 56px; margin-bottom: 18px; }
.card h3 { color: var(--brand-dark); }
.card p { margin: 0; font-size: 15px; }
.card .num {
  position: absolute; top: 22px; right: 22px;
  width: 30px; height: 30px;
  border: 2px solid var(--accent); border-radius: 50%;
  font-size: 13px; font-weight: 700; line-height: 26px; text-align: center;
  color: var(--brand-dark);
}
.after-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Cockpit */
.cockpit-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.cockpit-title { display: flex; align-items: center; gap: 14px; }
.cockpit-title img { width: 36px; height: 36px; }
.text-block + .text-block { margin-top: 32px; }
.text-block p { margin: 0 0 14px; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.shot { margin: 0; padding: 12px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.shot a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 6px; overflow: hidden; }
.shot img { width: auto; max-width: 100%; transition: transform .3s ease; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { margin-top: 10px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* SIGMA */
.sigma-grid { display: grid; grid-template-columns: minmax(0, 475px) 1fr; gap: 56px; align-items: start; }
.sigma-figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.slash::before { content: "//"; margin-right: 4px; color: #e6007e; }
.slash { color: var(--brand); font-size: 22px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 32px; }
.checks li + li { margin-top: 10px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 159, 227, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23009fe3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks li.sum::before { content: "∑"; background: none; color: var(--brand); font-weight: 700; font-size: 18px; line-height: 20px; text-align: center; top: 2px; }
.highlight {
  margin: 28px 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #3a2a10;
  font-weight: 600;
}
.address { margin: 0 0 14px; font-style: normal; line-height: 1.6; }
.address a { color: var(--heading); }

/* References slider */
.slider { position: relative; max-width: 950px; margin: 0 auto; }
.slides { position: relative; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); background: #fff; aspect-ratio: 950 / 481; }
.slide {
  position: absolute; inset: 0;
  display: block; text-decoration: none; color: inherit;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption { /* text copy for screen readers; shown on phones */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.slide .quote { display: block; color: var(--brand-dark); }
.slide .name { display: block; color: #fff; background: #1e9cd7; }
.slide .name strong { display: block; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--brand);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.slider-arrow:hover { background: var(--brand); color: #fff; }
.slider-arrow svg { display: block; width: 20px; height: 20px; margin: 0 auto; }
.slider-arrow.prev { left: -22px; }
.slider-arrow.next { right: -22px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.dots button {
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 999px;
  background: #c9cdd1; cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}
.dots button[aria-current="true"] { width: 28px; background: var(--brand); }

/* Customer list */
.customers-title { margin: 72px 0 24px; font-size: 24px; }
.customers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.customer {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.customer-logo { display: grid; place-items: center; height: 90px; }
.customer-logo img { max-width: 150px; max-height: 90px; width: auto; height: auto; }
.customer h4 { margin: 0 0 2px; font-size: 16px; color: var(--heading); line-height: 1.35; }
.customer .size { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.customer dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 14px; line-height: 1.45; }
.customer dt { font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.customer dd { margin: 0; }

/* Contact / footer */
.site-footer { padding: 72px 0 28px; background: var(--line); color: var(--heading); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 180px; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-style: italic; color: var(--muted); }
.site-footer h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: var(--heading); text-decoration: none; }
.footer-links a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid #cccccc;
  font-size: 13px; color: var(--muted);
}
.to-top { color: var(--muted); text-decoration: none; }

/* Forwarding notice on old page addresses */
.moved { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ------------------------------------------------------------------
   Tablet
   ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero-grid, .modules-intro, .cockpit-grid, .sigma-grid { grid-template-columns: 1fr; gap: 36px; }
  .sigma-figure { max-width: 475px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .customers { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: repeat(3, 1fr); align-items: start; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   Phone
   ------------------------------------------------------------------ */
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand img { width: 140px; }
  .menu-toggle { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
  }
  .site-header.open .menu { display: flex; }
  .menu a { padding: 14px 8px; font-size: 14px; border-radius: 0; border-bottom: 1px solid var(--soft); }
  .menu li:last-child a { border-bottom: 0; }
  .menu a::after { left: 8px; right: auto; width: 24px; bottom: 8px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .lead { font-size: 16px; }
  .section-head { margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .basis-card { grid-template-columns: 56px 1fr; padding: 18px; }
  .basis-card svg { width: 56px; height: 56px; }
  .gallery { grid-template-columns: 1fr; }
  .customer { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .customer-logo { place-items: start; height: auto; }
  .customer-logo img { max-height: 64px; }
  .customer dl { grid-template-columns: 1fr; gap: 0; }
  .customer dd + dt { margin-top: 6px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* slider: picture, then the quote as readable text */
  .slides { aspect-ratio: auto; }
  .slide { position: relative; inset: auto; display: none; opacity: 1; visibility: visible; transition: none; }
  .slide.is-active { display: block; }
  .slide img { height: auto; }
  .slide .caption {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: block;
  }
  .slide .quote { padding: 16px 18px 12px; font-size: 16px; line-height: 1.45; }
  .slide .name { padding: 10px 18px 12px; font-size: 13px; line-height: 1.5; }
  .slider-arrow { top: calc((100vw - 36px) * .253); width: 38px; height: 38px; margin-top: -19px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
