/* ===========================================================
   IGEL Tech GmbH — Website Stylesheet
   Design language: technical, precise, restrained.
   Navy (from the logo) + cool signal cyan. No ornament.
   =========================================================== */

:root {
  /* Color */
  --ink: #002436;              /* brand navy, from the logo */
  --ink-black: #041722;        /* deep navy for large dark fields */
  --ink-soft: #33505e;         /* secondary text on light */
  --paper: #ffffff;
  --paper-off: #f3f6f7;        /* cool off-white for alternating bands */
  --muted: #52646d;
  --line: rgba(0, 36, 54, 0.10);
  --line-strong: rgba(0, 36, 54, 0.24);
  --line-on-dark: rgba(232, 239, 242, 0.16);
  --accent: #0e8aa8;           /* deep signal cyan */
  --accent-bright: #3fb6d0;    /* cyan for dark backgrounds */
  --accent-soft: rgba(14, 138, 168, 0.28);
  --text-on-dark: #e8eff2;
  --text-on-dark-dim: rgba(232, 239, 242, 0.65);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Eyebrow — mono label with a trace-and-via prefix */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 5px;
  flex-shrink: 0;
  background:
    radial-gradient(circle 2.5px at 15.5px 2.5px, currentColor 98%, transparent) ,
    linear-gradient(currentColor, currentColor) 0 2px / 12px 1px no-repeat;
  background-repeat: no-repeat;
}
.eyebrow.on-dark { color: var(--accent-bright); }

.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;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-black); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #0c7791; border-color: #0c7791; }
.btn-outline-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-on-dark);
}
.btn-outline-dark:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 68px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { border-color: var(--accent); }
.main-nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 20px;
  border-radius: 2px;
}
.main-nav .nav-cta:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .site-header .wrap { height: 92px; }
  .brand img { height: 52px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 92px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 380px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 0; border-bottom: none; }
  .main-nav .nav-cta { margin-top: 14px; display: inline-block; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background: var(--ink-black);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero-mark {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: min(58vw, 640px);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  padding-top: clamp(80px, 11vw, 136px);
  padding-bottom: clamp(80px, 11vw, 136px);
  max-width: 860px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  color: #ffffff;
  margin-top: 26px;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--accent-bright); }
.hero .lede {
  margin-top: 26px;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 56ch;
  color: var(--text-on-dark-dim);
}
.hero-rule {
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
}
.hero-rule::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===================== Section scaffolding ===================== */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 120px) 0; }
.bg-off { background: var(--paper-off); }

.section-head { max-width: 640px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink);
  margin-top: 16px;
}
.section-head .lede { margin-top: 16px; max-width: 52ch; font-size: 1.02rem; }

/* ===================== Arbeitsweise (compact) ===================== */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.principles > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.principles .k {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.principles p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; gap: 28px; }
}

/* ===================== Capability index (3 business areas) ===================== */
.cap-list { border-top: 1px solid var(--line-strong); }
.cap-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding: clamp(32px, 4.5vw, 52px) 0;
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.25s ease;
}
.cap-row:hover { background: rgba(14, 138, 168, 0.04); }
.cap-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 8px;
}
.cap-title h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--ink);
}
.cap-title .eyebrow { margin-bottom: 12px; color: var(--muted); }
.cap-body p { max-width: 52ch; font-size: 1rem; }
.cap-body ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cap-body li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.cap-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 9px; height: 1px;
  background: var(--accent);
}
@media (max-width: 860px) {
  .cap-row { grid-template-columns: 1fr; gap: 14px; }
  .cap-num { padding-top: 0; }
}

/* ===================== Location ===================== */
.location-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}
.location-info {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  /* align left text edge with the centered .wrap container */
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-info h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); color: var(--ink); margin-top: 16px; }
.location-info .addr {
  margin: 26px 0 32px;
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.location-panel {
  background: var(--ink-black);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.location-panel .panel-mark {
  width: 72px;
  margin-bottom: 30px;
}
.location-panel .place {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  color: #ffffff;
  max-width: 14ch;
}
.location-panel .coords {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: rgba(232,239,242,0.5);
}
@media (max-width: 860px) {
  .location-split { grid-template-columns: 1fr; }
  .location-panel { padding: 64px 32px; }
}

/* ===================== Partners ===================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.partner-tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: var(--paper);
}
.partner-tile img {
  max-height: 84px;
  max-width: 82%;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.partner-tile:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 980px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-tile { aspect-ratio: 16/9; }
  /* odd count: let the last tile span the full final row */
  .partner-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: auto; padding: 40px 26px; }
}
@media (max-width: 560px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-tile { aspect-ratio: auto; padding: 36px 26px; }
  .partner-tile:last-child:nth-child(odd) { grid-column: auto; }
}

/* ===================== Contact CTA + footer (single dark zone) ===================== */
.contact-zone {
  background: var(--ink-black);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.contact-zone .zone-mark {
  position: absolute;
  left: -4%;
  top: -8%;
  width: min(38vw, 420px);
  opacity: 0.04;
  pointer-events: none;
}
.contact-cta .wrap {
  position: relative;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
.contact-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  color: #ffffff;
  max-width: 18ch;
}
.contact-links {
  margin-top: 36px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-links a.value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 4px;
}
.contact-links a.value:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.site-footer { position: relative; }
.site-footer .wrap { padding-bottom: 44px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 40px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line-on-dark);
}
.footer-brand img { height: 56px; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; color: rgba(232,239,242,0.5); font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col .k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,239,242,0.4);
  display: block;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(232,239,242,0.82); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(232,239,242,0.4);
}

/* ===================== Legal pages ===================== */
/* Same container width and chrome as the main page; only the running text
   is capped in line length for readability. */
.legal-header { padding-top: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-header .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}
.legal-header .breadcrumb a:hover { color: var(--accent); }
.legal-header h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); }
.legal-body { padding: 56px 0 100px; }
.legal-body p { max-width: 76ch; }
.legal-body .spec-table { max-width: 900px; }
.legal-body h2 { font-size: 1.2rem; color: var(--ink); margin-top: 44px; margin-bottom: 16px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body a { border-bottom: 1px solid var(--line-strong); }
.legal-body a:hover { border-color: var(--accent); color: var(--accent); }

.spec-table { border-top: 1px solid var(--line); margin: 26px 0; }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec-row .k { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.spec-row .v { color: var(--ink); }
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }

/* ===================== Back to top ===================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--accent); border-color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }
