/* Dev Elephants – site styles. No framework, no build step. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f2efe7;
  --ink: #1c1b18;
  --muted: #5d584f;
  --line: #e3ded3;
  --accent: #e2bf6a;
  --accent-ink: #7a5c12;
  --btn-bg: #1c1b18;
  --btn-ink: #faf8f3;
  --btn-hover: #3a3832;
  --ok: #2f7d4f;

  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1d1c19;
    --surface-2: #24221e;
    --ink: #f2eee6;
    --muted: #b0a99c;
    --line: #34312b;
    --accent-ink: #e2bf6a;
    --btn-bg: #e2bf6a;
    --btn-ink: #1c1b18;
    --btn-hover: #ecd08e;
    --ok: #6cc290;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.brand img { width: 45px; height: 32px; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--muted); font-size: 0.9375rem; font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--ink); }

/* Mobile menu: native <details>, no JS needed to open it */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(86vw, 320px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.14);
  padding: 8px;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a:not(.btn) {
  display: block; padding: 12px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 500;
}
.menu-panel a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.menu-panel .btn { width: 100%; margin-top: 8px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }

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

.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap {
  display: grid; gap: clamp(40px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); margin-top: 24px; max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  list-style: none; padding: 0; margin: 40px 0 0;
  color: var(--muted); font-size: 0.9375rem;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }

/* Pipeline illustration: explains how a modernisation project runs */
.pipeline {
  margin: 0;
  background: #1c1b18; color: #ece7dc;
  border-radius: 18px; border: 1px solid #2e2c27;
  box-shadow: 0 30px 60px -20px rgb(28 27 24 / 0.45);
  overflow: hidden;
  font-size: 0.9375rem;
}
.pipeline-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid #2e2c27;
  font-family: var(--mono); font-size: 0.8125rem; color: #9b9487;
}
.pipeline-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3832; }
.pipeline-bar span { margin-left: 8px; }
.pipeline ol { list-style: none; margin: 0; padding: 10px 18px 18px; counter-reset: step; }
.pipeline li {
  position: relative; display: grid; grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: center; padding: 12px 0;
}
.pipeline li + li { border-top: 1px dashed #34312b; }
.pipeline li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: #2a2824; color: #e2bf6a; font-family: var(--mono); font-size: 0.8125rem; font-weight: 600;
}
.pipeline strong { display: block; font-weight: 600; color: #f5f2ea; }
.pipeline small { display: block; color: #9b9487; font-size: 0.8125rem; }
.tag {
  font-family: var(--mono); font-size: 0.75rem; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; border: 1px solid #3a3832; color: #c9c2b5;
}
.tag-gold { border-color: rgb(226 191 106 / 0.5); color: #e2bf6a; }
.pipeline figcaption {
  padding: 12px 18px; border-top: 1px solid #2e2c27;
  font-size: 0.8125rem; color: #9b9487;
}

@media (prefers-reduced-motion: no-preference) {
  .pipeline li::before { animation: step-pulse 10s infinite; }
  .pipeline li:nth-child(2)::before { animation-delay: 2s; }
  .pipeline li:nth-child(3)::before { animation-delay: 4s; }
  .pipeline li:nth-child(4)::before { animation-delay: 6s; }
  .pipeline li:nth-child(5)::before { animation-delay: 8s; }
  @keyframes step-pulse {
    0%, 22%, 100% { background: #2a2824; color: #e2bf6a; }
    4%, 18% { background: #e2bf6a; color: #1c1b18; }
  }
}

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .lead { max-width: 52ch; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .pipeline li { grid-template-columns: 28px 1fr; }
  .pipeline .tag { grid-column: 2; justify-self: start; }
}

/* ---------- Logos ---------- */

.clients { padding: 0 0 clamp(48px, 7vw, 80px); }
.clients .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.clients p { color: var(--muted); font-size: 0.9375rem; max-width: 30ch; }
.clients ul {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.clients li {
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  height: 76px; padding: 0 24px;
}
.clients img { height: 40px; width: auto; }

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

.section { padding: var(--section) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
}
.card p { color: var(--muted); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card-label {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent-ink);
}
.section-alt .icon { background: var(--bg); }
.icon svg { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: auto 0 0; padding: 8px 0 0; }
.chips li {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}

.inline-cta {
  margin-top: clamp(32px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px clamp(24px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.inline-cta p { font-weight: 600; font-size: 1.125rem; }
.inline-cta p span { display: block; font-weight: 400; font-size: 1rem; color: var(--muted); }

/* KI */
.guard {
  margin-top: 20px; display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.guard svg { width: 24px; height: 24px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.guard p { color: var(--muted); }
.guard strong { color: var(--ink); }

/* Vorgehen */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; }
.steps li::before {
  content: "0" counter(s);
  font-family: var(--mono); font-size: 0.875rem; font-weight: 600; color: var(--accent-ink);
  display: block; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--line);
}
.steps li:first-child::before { border-color: var(--accent); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.team-text p + p { margin-top: 16px; }
.team-text p { color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.person { text-align: left; }
.person img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  background: var(--surface-2);
}
.person strong { display: block; margin-top: 14px; font-weight: 650; }
.person span { display: block; color: var(--muted); font-size: 0.9375rem; }
.person a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.9375rem; color: var(--accent-ink); }
.person a svg { width: 16px; height: 16px; }
.locations { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 24px 0 0; font-size: 0.9375rem; }
.locations li { display: flex; align-items: center; gap: 8px; }
.locations svg { width: 18px; height: 18px; color: var(--accent-ink); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-4px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 68ch; }

/* Kontakt */
.contact { background: #1c1b18; color: #f2eee6; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2 { color: #f5f2ea; }
.contact .lead { color: #b8b1a5; max-width: 46ch; }
.contact .eyebrow { color: #e2bf6a; }
.contact .btn-primary { background: #e2bf6a; color: #1c1b18; }
.contact .btn-primary:hover { background: #ecd08e; }
.contact-box {
  border: 1px solid #34312b; border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.contact-box h3 { font-size: 1rem; color: #9b9487; font-weight: 600; }
.contact-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-box a { color: #f5f2ea; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contact-box a:hover { color: #e2bf6a; }
.contact-box svg { width: 20px; height: 20px; color: #e2bf6a; flex: none; }
.contact-note { color: #9b9487; font-size: 0.9375rem; }
.contact :focus-visible { outline-color: #e2bf6a; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }

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

.site-footer { padding: 48px 0; font-size: 0.9375rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer address { font-style: normal; }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--ink); }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--accent-ink); }

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