:root {
  color-scheme: light dark;
  --cyan: #4fd1e0;
  --green: #5fd38d;
  --amber: #f5b942;
  --ink: #111827;
  --muted: #5b6472;
  --line: #dfe5ea;
  --surface: #ffffff;
  --surface-raised: #f7f9fb;
  --surface-soft: #eef8f7;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  backdrop-filter: blur(18px);
}

.brand-wordmark,
.footer-logo {
  height: auto;
  padding: 7px 10px;
  background: #0a0d10;
  border-radius: var(--radius);
}
.brand-wordmark { flex: 0 0 auto; width: 168px; }
.footer-logo { width: 132px; padding: 6px 9px; }

.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: color-mix(in srgb, var(--muted) 82%, var(--surface));
  font-size: 0.9rem;
  font-weight: 620;
}
.site-nav a {
  padding: 9px 10px;
  border-radius: var(--radius);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-raised);
  color: var(--ink);
  outline: none;
}
.site-nav .nav-button {
  margin-left: 6px;
  color: #0b1f23;
  background: color-mix(in srgb, var(--cyan) 86%, white);
  box-shadow: 0 8px 18px rgba(79, 209, 224, 0.2);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: min(980px, calc(100svh - 84px));
  padding: clamp(44px, 6vw, 82px) 0 68px;
}
.hero-copy,
.hero-panel { min-width: 0; }

.eyebrow,
.meta {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--cyan) 72%, var(--ink));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-mark {
  width: min(540px, 76vw);
  margin: 0 0 26px;
  filter: drop-shadow(0 20px 42px rgba(79, 209, 224, 0.2));
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { max-width: 860px; font-size: clamp(2.45rem, 4.8vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.7rem); }

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.15;
}
.button.primary {
  color: #0d261e;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(95, 211, 141, 0.24);
}
.button.secondary {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--line);
}
.button.compact { min-height: 42px; font-size: 0.92rem; }
.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-panel,
.featured-article,
.product-card,
.blog-card,
.contact-section,
.article-body,
.article-hero-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.hero-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
.hero-panel > * { position: relative; z-index: 1; }
.panel-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}
.capability-grid span {
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  font-weight: 800;
}
.printer-card {
  margin-top: 16px;
  padding: 22px;
  color: #111827;
  background: linear-gradient(135deg, var(--cyan), var(--green) 54%, var(--amber));
  border-radius: var(--radius);
}
.printer-layer {
  display: block;
  height: 18px;
  max-width: 260px;
  margin-bottom: 7px;
  border-radius: 3px;
}
.printer-layer.cyan { width: 78%; background: rgba(255, 255, 255, 0.76); }
.printer-layer.green { width: 64%; background: rgba(255, 255, 255, 0.58); }
.printer-layer.amber { width: 46%; background: rgba(255, 255, 255, 0.42); }
.printer-card p { max-width: 340px; margin: 18px 0 0; font-weight: 850; }

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: -34px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--surface-raised) 88%, var(--surface));
}
.trust-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #0d261e;
  background: var(--green);
  border-radius: 999px;
  font-weight: 900;
}
.trust-item strong { font-size: 0.94rem; line-height: 1.25; }

.content-section { padding: clamp(56px, 7vw, 96px) 0; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { max-width: 760px; }
.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.featured-article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1fr;
  overflow: hidden;
}
.linked-card { transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.linked-card:hover,
.linked-card:focus-within {
  border-color: color-mix(in srgb, var(--cyan) 52%, var(--line));
  box-shadow: 0 28px 78px rgba(17, 24, 39, 0.14);
  transform: translateY(-2px);
}
.card-cover-link { position: absolute; inset: 0; z-index: 1; }
.article-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, #101820, #20313b);
}
.article-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.article-chip {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  padding: 7px 11px;
  color: #071012;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}
.article-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(28px, 5vw, 56px);
}
.card-action { position: relative; z-index: 3; margin-top: 18px; }

.article-content p:not(.meta),
.product-card p,
.blog-card p:not(.meta),
.contact-section p,
.bavaria-inner p,
.site-footer p,
.article-hero-copy p:not(.eyebrow) {
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: color-mix(in srgb, var(--cyan) 62%, var(--ink));
  font-weight: 850;
}

.product-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card,
.blog-card { padding: 20px; }
.product-visual {
  position: relative;
  min-height: 190px;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-visual span {
  position: absolute;
  display: block;
  border-radius: 5px;
}
.product-visual.wago span:nth-child(1) { inset: 48px 34px auto 34px; height: 28px; background: var(--cyan); }
.product-visual.wago span:nth-child(2) { inset: 86px 58px auto 58px; height: 28px; background: var(--green); }
.product-visual.wago span:nth-child(3) { inset: auto 44px 42px 44px; height: 28px; background: var(--amber); }
.product-visual.skadis {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--muted) 38%, transparent) 2px, transparent 2.5px);
  background-size: 26px 26px;
}
.product-visual.skadis span:nth-child(1) { width: 44%; height: 84px; left: 18%; bottom: 34px; background: var(--green); }
.product-visual.skadis span:nth-child(2) { width: 24px; height: 108px; right: 24%; bottom: 34px; background: var(--cyan); }
.product-visual.skadis span:nth-child(3) { width: 34%; height: 18px; left: 24%; bottom: 118px; background: var(--amber); }
.product-visual.network span:nth-child(1) { width: 62%; height: 70px; left: 19%; top: 50px; background: #202b36; }
.product-visual.network span:nth-child(2) { width: 50%; height: 14px; left: 25%; top: 78px; background: var(--cyan); }
.product-visual.network span:nth-child(3) { width: 72%; height: 26px; left: 14%; bottom: 38px; background: var(--amber); }

.bavaria-section {
  margin: clamp(36px, 5vw, 68px) 0;
  background:
    linear-gradient(90deg, rgba(79, 209, 224, 0.14), transparent 32%),
    linear-gradient(135deg, var(--surface-raised), var(--surface-soft));
  border-block: 1px solid var(--line);
}
.bavaria-inner {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 300px);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(52px, 7vw, 90px) 0;
}
.bavaria-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px;
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--cyan) 54%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 58%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--line) 58%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface) 72%, transparent);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
}
.bavaria-placeholder img { width: min(180px, 48vw); filter: drop-shadow(0 18px 34px rgba(79, 209, 224, 0.18)); }
.bavaria-placeholder span {
  margin-top: 18px;
  color: color-mix(in srgb, var(--cyan) 72%, var(--ink));
  font-weight: 900;
  text-transform: uppercase;
}
.bavaria-placeholder p { max-width: 260px; margin: 4px 0 0; font-size: 0.92rem; }
.blog-card { min-height: 230px; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  margin-block: clamp(56px, 7vw, 96px);
}
.contact-section h2,
.contact-section p { max-width: 620px; }
.contact-actions { justify-content: flex-end; margin-top: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 12px 0 0; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 800;
}

.article-page { padding-bottom: clamp(56px, 7vw, 96px); }
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 64px);
}
.article-hero-copy { min-width: 0; }
.article-hero-copy h1 { max-width: 760px; }
.article-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.article-hero-image {
  margin: 0;
  padding: 18px;
}
.article-hero-image img {
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
}
.article-body {
  max-width: 820px;
  padding: clamp(34px, 5vw, 58px);
}
.article-body p {
  margin: 0 0 1.2em;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  font-size: clamp(1.03rem, 1.4vw, 1.16rem);
}
.article-body p:last-child { margin-bottom: 0; }
.article-body blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 72%, var(--surface-soft));
}
.article-body blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 850;
  line-height: 1.25;
}
.article-signature { padding-top: 10px; font-weight: 850; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf3f7;
    --muted: #a8b5c2;
    --line: #253340;
    --surface: #0d1217;
    --surface-raised: #121a22;
    --surface-soft: #0f2423;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
  .site-nav .nav-button,
  .button.primary,
  .printer-card { color: #071012; }
  .product-visual.network span:nth-child(1) { background: #dfe8ef; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 73px 16px auto 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav .nav-button { margin-left: 0; }
  .hero,
  .featured-article,
  .article-hero,
  .bavaria-inner,
  .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .product-grid,
  .blog-grid,
  .trust-bar { grid-template-columns: 1fr; }
  .split-heading { align-items: start; flex-direction: column; }
  .contact-actions { justify-content: flex-start; }
  .site-footer { flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 16px; }
  .section-shell { width: min(var(--max), calc(100% - 28px)); }
  .brand-wordmark { width: 136px; }
  .hero-mark { width: min(360px, 86vw); }
  h1 { font-size: 2.18rem; max-width: 11ch; }
  .hero-subtitle { max-width: 30ch; }
  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .button { width: 100%; }
  .capability-grid { grid-template-columns: 1fr; }
  .trust-bar { margin-top: -20px; }
  .article-visual,
  .article-visual img { min-height: 260px; }
}
