/* ============================================================
   AGL Activ Services GmbH — shared stylesheet
   Direction: "engineered instrument" — precise, calm, structural.
   Ink-navy ground, copper accent, disciplined grid.
   ============================================================ */

:root {
  --ink:      #0e1b2c;   /* deep navy ground */
  --ink-2:    #16273d;   /* raised panel */
  --paper:    #f6f4ef;   /* warm off-white */
  --paper-2:  #ece8df;   /* paper shade */
  --copper:   #c0703a;   /* accent */
  --copper-d: #9a5429;
  --steel:    #5e7188;   /* muted blue-grey text */
  --line:     #d7d1c6;   /* hairline on paper */
  --line-dk:  #28384e;   /* hairline on ink */
  --ok:       #2f6d52;

  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
}

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- eyebrow label (the structural signature) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
  display: inline-block;
}

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 27, 44, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dk);
  color: var(--paper);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  text-decoration: none;
  color: var(--paper);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  white-space: nowrap;
}
.brand .mark {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--copper);
  border: 1px solid var(--copper);
  padding: 3px 6px;
  border-radius: 2px;
  position: relative;
  top: -2px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--paper);
  font-size: 0.93rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--copper);
}
.nav-cta {
  text-decoration: none;
  background: var(--copper);
  color: var(--paper);
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--copper-d); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dk);
  color: var(--paper);
  font-size: 1.3rem;
  padding: 6px 11px;
  border-radius: 3px;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint engineered grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dk) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dk) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at 75% 30%, black, transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 5.5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: end;
}
.hero h1 { margin: 1.5rem 0 1.4rem; max-width: 13ch; }
.hero .lede {
  font-size: 1.18rem;
  color: #cdd6e0;
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--copper); color: var(--paper); }
.btn-primary:hover { background: var(--copper-d); }
.btn-ghost { border-color: var(--steel); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.05); }

/* hero side spec block */
.hero-spec {
  border-left: 1px solid var(--line-dk);
  padding-left: 1.8rem;
}
.spec-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dk);
}
.spec-row:first-child { padding-top: 0; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 0.3rem;
}
.spec-row .v { font-family: var(--display); font-size: 1.15rem; color: var(--paper); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 5.5rem 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { margin: 1rem 0 1.1rem; }
.section-head p { color: var(--steel); font-size: 1.08rem; }

.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-head p { color: #b9c2cd; }

/* ---------- intro / stats strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip > div {
  padding: 2rem 1.6rem;
  border-right: 1px solid var(--line);
}
.strip > div:last-child { border-right: none; }
.strip .num { font-family: var(--display); font-size: 1.7rem; color: var(--copper); margin-bottom: 0.3rem; }
.strip .lbl { font-size: 0.92rem; color: var(--steel); }

/* ---------- service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--paper);
  padding: 2.4rem 2.1rem;
  position: relative;
  transition: background 0.25s;
}
.svc:hover { background: #fffdf8; }
.svc .idx {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--copper);
}
.svc h3 { margin: 0.9rem 0 0.4rem; }
.svc .de { font-family: var(--mono); font-size: 0.78rem; color: var(--steel); margin-bottom: 0.9rem; }
.svc p { color: #3c4a5c; font-size: 0.98rem; }
.svc ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.svc ul li {
  font-size: 0.9rem;
  color: #3c4a5c;
  padding: 0.32rem 0 0.32rem 1.2rem;
  position: relative;
}
.svc ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 1px;
}

/* ---------- audience cards ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.aud {
  background: var(--ink-2);
  border: 1px solid var(--line-dk);
  border-radius: 4px;
  padding: 2.2rem 1.9rem;
}
.aud .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
  display: block;
}
.aud h3 { color: var(--paper); margin-bottom: 0.6rem; }
.aud p { color: #b9c2cd; font-size: 0.96rem; }

/* ---------- positioning / trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trust {
  background: var(--paper);
  padding: 1.9rem 1.7rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.trust .ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: 1px solid var(--copper);
  border-radius: 3px;
  display: grid; place-items: center;
  color: var(--copper);
}
.trust .ico svg { width: 18px; height: 18px; }
.trust h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.trust p { font-size: 0.9rem; color: var(--steel); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--copper);
  color: var(--paper);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper); max-width: 18ch; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #060d18; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}
.contact-card .row {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-card .row:last-child { border-bottom: none; }
.contact-card .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.4rem;
}
.contact-card .v { font-size: 1.05rem; }
.contact-card a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--copper); }
.contact-card a:hover { color: var(--copper); }

.form-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dk);
  border-radius: 5px;
  padding: 2.4rem;
}
.form-card label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 1.2rem 0 0.45rem;
}
.form-card label:first-child { margin-top: 0; }
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-dk);
  border-radius: 3px;
  padding: 0.8rem 0.9rem;
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.96rem;
}
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--copper);
}
.form-card textarea { resize: vertical; min-height: 120px; }
.form-card .btn { margin-top: 1.6rem; width: 100%; justify-content: center; }
.form-note { font-size: 0.8rem; color: var(--steel); margin-top: 1rem; }
.form-note a { color: var(--copper); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.page-head {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0 3.5rem;
  position: relative;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1rem; }
.page-head p { color: #b9c2cd; margin-top: 0.8rem; max-width: 60ch; }

.legal { padding: 4rem 0 5rem; }
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}
.legal h2 {
  font-size: 1.4rem;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: #3c4a5c; font-size: 1rem; }
.legal ul, .legal ol { margin: 0.6rem 0 1.2rem 1.3rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--copper-d); }
.legal .meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--steel);
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dk);
  padding: 4rem 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dk);
}
.foot-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.foot-grid p, .foot-grid address {
  color: #aab4c0;
  font-size: 0.93rem;
  font-style: normal;
  line-height: 1.7;
}
.foot-grid a { color: #aab4c0; text-decoration: none; }
.foot-grid a:hover { color: var(--paper); }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.6rem; }
.foot-col li a { font-size: 0.93rem; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-bottom p { color: var(--steel); font-size: 0.82rem; }
.foot-bottom .links { display: flex; gap: 1.4rem; }
.foot-bottom .links a { color: var(--steel); font-size: 0.82rem; text-decoration: none; }
.foot-bottom .links a:hover { color: var(--paper); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-spec { border-left: none; border-top: 1px solid var(--line-dk); padding-left: 0; padding-top: 1.5rem; }
  .svc-grid, .trust-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(2) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dk);
    padding: 1.2rem 28px 1.6rem;
    gap: 1.1rem;
    align-items: flex-start;
  }
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-right: none; border-bottom: 1px solid var(--line); }
  .strip > div:last-child { border-bottom: none; }
  body { font-size: 16px; }
}

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