/* Novagnos — site styles
   Brand: graphite + copper (logo 05b "Verified N"), Manrope.
   Copper is used for lines, dots, the logo tick and accents; text and buttons stay graphite for contrast. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f7f8;
  --paper-2: #eceff2;
  --surface: #ffffff;
  --ink: #1f2a33;
  --ink-soft: #5b6570;
  --line: #d6dbe0;
  --signal: #b0703f;
  --signal-light: #d08e5a;
  --signal-dark: #8c5630;
  --petrol: #1f2a33;
  --on-petrol: #eef1f4;
  --on-petrol-soft: #b7c0c9;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 38rem;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4.2vw, 2.6rem);
  --step-4: clamp(2.2rem, 4.6vw, 3.3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--signal); text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  line-height: 1;
}
.brand svg { width: 2rem; height: 2rem; flex: none; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--step--1);
}
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }

.lang {
  letter-spacing: 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 600;
}

/* Menu: inline links on wider screens, a dropdown behind a "Menu" button on phones */
.menu { display: flex; align-items: center; gap: 1.25rem; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.menu-lang, .menu-toggle { display: none; }

@media (max-width: 48rem) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
  }
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .site-header.open .menu-icon { background: transparent; }
  .site-header.open .menu-icon::before { transform: translateY(5px) rotate(45deg); }
  .site-header.open .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

  .nav > .lang { display: none; }
  .menu-lang { display: block; }

  /* without JavaScript the links simply stay visible as a wrapped row */
  .menu { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .js .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem var(--gutter) 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(31, 42, 51, 0.08);
  }
  .js .site-header.open .menu { display: flex; }
  .js .menu a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 600;
  }
  .js .menu a:last-child { border-bottom: 0; color: var(--ink-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: 1.45fr 1fr; }
}

.hero h1 { font-size: var(--step-4); }

.hero .lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-top: 1.5rem;
  max-width: 34rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--signal-dark); border-color: var(--signal-dark); text-decoration: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* Stack diagram */
.stack { position: relative; }
.stack ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.5rem;
  position: relative;
}
.stack ol::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 3px;
  background: var(--signal);
  transform-origin: top;
}
.stack li {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.9rem;
}
.stack li:last-child { margin-bottom: 0; }
.stack li::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 50%;
  width: 1.65rem;
  height: 1.5px;
  background: var(--ink);
}
.stack li::after {
  content: "";
  position: absolute;
  left: -2.28rem;
  top: calc(50% - 0.42rem);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
}
.stack li:nth-child(odd) { margin-right: 1.5rem; }
.stack li:nth-child(even) { margin-left: 1.5rem; }
.stack strong { display: block; font-size: 1.1rem; }
.stack span { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.stack figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 1rem; padding-left: 2.5rem; }

/* one orchestrated moment: the signal line draws down, then each layer's node lights up */
@media (prefers-reduced-motion: no-preference) {
  .stack ol::before { animation: draw 1.1s cubic-bezier(.6,0,.2,1) both; }
  .stack li::after { animation: node .35s ease-out both; }
  .stack li:nth-child(1)::after { animation-delay: .15s; }
  .stack li:nth-child(2)::after { animation-delay: .45s; }
  .stack li:nth-child(3)::after { animation-delay: .75s; }
  .stack li:nth-child(4)::after { animation-delay: 1.05s; }
}
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes node { from { background: var(--paper); } to { background: var(--signal); } }
.stack li::after { background: var(--signal); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); }

.intro { font-size: var(--step-1); }
.intro p { max-width: 44rem; }

/* Services: grouped by layer, not identical cards */
.layers { display: grid; gap: 0; }
.layer {
  display: grid;
  gap: 0.75rem 3rem;
  padding-block: 2rem;
  border-top: 1.5px solid var(--ink);
}
.layer:last-child { border-bottom: 1.5px solid var(--ink); }
@media (min-width: 52rem) {
  .layer { grid-template-columns: 18rem 1fr; }
}
.layer h3 {
  font-size: clamp(1.35rem, 4.6vw, 1.6rem);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.layer h3::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--signal);
  border: 2.5px solid var(--ink);
  transform: translateY(-0.05em);
}
.layer p { color: var(--ink-soft); }
.layer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.layer li { padding-left: 1.1rem; position: relative; }
.layer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.55rem;
  height: 1.5px;
  background: var(--ink);
}

/* Lifecycle (a real sequence, so it is numbered) */
.petrol { background: var(--petrol); color: var(--on-petrol); }
.petrol .section-head p { color: var(--on-petrol-soft); }
.petrol + .section { border-top: 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 0 1.5rem 3.25rem;
  border-left: 3px solid var(--signal-light);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1.1rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--signal-light);
}
@media (min-width: 56rem) {
  .steps li {
    border-left: 0;
    border-top: 3px solid var(--signal-light);
    padding: 3rem 1.25rem 0 0;
  }
  .steps li::before { left: 0; top: 0.75rem; }
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.steps p { color: var(--on-petrol-soft); font-size: var(--step--1); margin: 0; }

/* Where we work */
.fields {
  display: grid;
  gap: 1.5rem 3rem;
}
@media (min-width: 48rem) { .fields { grid-template-columns: repeat(2, 1fr); } }
.fields h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.fields p { color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 650;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding-bottom: 1.25rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Contact */
.contact .wrap { display: grid; gap: 2rem 4rem; }
@media (min-width: 52rem) { .contact .wrap { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.contact h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.contact address {
  font-style: normal;
  border: 1.5px solid var(--ink);
  padding: 1.5rem;
  background: var(--surface);
  line-height: 1.7;
}
.contact address strong { font-size: 1.1rem; }
.big-mail {
  display: inline-block;
  font-weight: 700;
  font-size: var(--step-2);
  margin-block: 0.5rem 1.5rem;
  word-break: break-word;
}

/* Legal pages */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: var(--step-3); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { max-width: 44rem; }
.legal ul { padding-left: 1.2rem; }
.legal dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.5rem; margin: 0; }
.legal dt { font-weight: 650; }
.legal dd { margin: 0; }
@media (max-width: 30rem) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 0.6rem; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-left: auto; }
.site-footer p { margin: 0; }

/* let hero columns shrink so long German words hyphenate instead of overflowing */
.hero .wrap > * { min-width: 0; }

/* second hero paragraph, closing notes under service lists, mission line */
.hero .lede-2 { margin-top: 0; font-size: var(--step-0); }
.layer .note { margin: 1rem 0 0; font-size: var(--step--1); }
.mission { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--signal); }
.fields { row-gap: 2rem; }
