/* Site design (former draft B "Anthrazit", chosen in E21): split hero in anthracite, facts card
   overlapping the hero, zig-zag service rows, dark approach band, round portraits, green contact band.
   The open green frame of the logo is reused as a decorative element. Header, footer and buttons
   are shared by all pages; subpage components live in unterseiten.css. */

body {
  font: 400 17px/1.65 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ci-anthracite);
  background: var(--white);
}

h1, h2 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-text);
}
.intro { max-width: 60ch; margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.center { text-align: center; }
.center .intro { margin-inline: auto; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 4px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--ci-green); color: var(--ci-anthracite); }
.btn-primary:hover { background: #c9d160; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--ci-anthracite); color: var(--white); margin-top: 28px; }
.btn-dark:hover { background: #1f252c; }

.checks { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.35em;
  width: 16px; height: 9px; border-left: 3px solid var(--ci-green); border-bottom: 3px solid var(--ci-green);
  transform: rotate(-45deg);
}

/* Top bar and header */
.topbar { background: var(--ci-anthracite); color: #c5cbd1; font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 28px; padding-block: 7px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(46, 54, 64, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.brand img { height: 68px; width: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 8px; }
.main-nav a { display: block; padding: 10px 16px; border-radius: 4px; font-weight: 500; text-decoration: none; }
.main-nav a:not(.nav-cta):hover { background: var(--surface); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ci-green); border-radius: 4px 4px 0 0; }
.main-nav .nav-cta { margin-left: 12px; background: var(--ci-anthracite); color: var(--white); }
.main-nav .nav-cta:hover { background: #1f252c; }
.nav-toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; background: var(--ci-anthracite); color: var(--white); }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 64px 120px max(16px, calc((100vw - 1200px) / 2));
}
.hero-copy .eyebrow { color: var(--ci-green); }
.hero-copy .lead { margin-top: 24px; font-size: 1.15rem; color: #d3d8dd; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-media { position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* open frame with two pixel squares, taken from the logo */
.frame {
  position: absolute; left: -56px; bottom: 132px; width: 150px; height: 150px;
  border: 7px solid var(--ci-green); border-left-color: transparent; border-top-color: transparent;
}
.frame::before { content: ""; position: absolute; left: -7px; top: -7px; width: 60%; height: 7px; background: var(--ci-green); }
.frame i { position: absolute; width: 14px; height: 14px; background: var(--ci-green); }
.frame i:first-child { right: -30px; top: -34px; }
.frame i:last-child { right: -56px; top: -56px; background: var(--white); }

/* Facts overlap the hero */
.facts {
  position: relative; z-index: 2; margin-top: -72px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: 6px; box-shadow: 0 18px 44px rgba(46, 54, 64, 0.16);
}
.fact { padding: 28px 32px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-value { font-size: 1.6rem; font-weight: 600; }
.fact-value::after { content: ""; display: block; width: 28px; height: 4px; margin: 10px 0 8px; background: var(--ci-green); }
.fact p:last-child { color: var(--muted); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-surface { background: var(--surface); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 14px 14px 0 var(--ci-green); }
.split-reverse img { order: 2; box-shadow: -14px 14px 0 var(--ci-green); }
.split-body p { margin-top: 14px; color: var(--muted); }

.section-dark { background: var(--ci-anthracite); color: var(--white); }
.section-dark .eyebrow { color: var(--ci-green); }
.section-dark .intro { color: #c5cbd1; }
.approach-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 0; counter-reset: step; }
.approach-grid li { counter-increment: step; padding: 28px; border: 1px solid #46505c; border-radius: 6px; }
.approach-grid li::before { content: counter(step); display: block; font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--ci-green); margin-bottom: 16px; }
.approach-grid p { margin-top: 8px; color: #c5cbd1; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; margin-bottom: 40px; }
.person img {
  width: 176px; height: 176px; margin: 0 auto 20px; border-radius: 50%;
  object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 5px var(--white), 0 0 0 7px var(--ci-green);
}
.role { color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.tags li { padding: 2px 10px; font-size: 0.8rem; border-radius: 999px; background: var(--surface); }

.showcase { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.showcase-text > p:not(.eyebrow):not(.badge) { margin-top: 16px; color: var(--muted); }
.badge { display: inline-block; margin-top: 14px; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--ci-green); }
.showcase-visual { position: relative; margin: 0 0 48px; }
.showcase-visual figure { margin: 0; }
.device-desktop { border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 24px 56px rgba(46, 54, 64, 0.2); }
.device-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--ci-anthracite); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a6470; }
.device-phone {
  position: absolute; left: -12px; bottom: -48px; width: 27%;
  border: 7px solid #1f252c; border-radius: 22px; overflow: hidden; background: #1f252c;
  box-shadow: 0 16px 40px rgba(46, 54, 64, 0.3);
}

.references { padding-block: clamp(56px, 7vw, 88px); }
/* client logos in calm grey, original colours on hover; names without logo as text */
.reference-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px;
  max-width: 900px; margin-inline: auto;
}
.reference-list li { flex: 0 0 200px; height: 84px; display: flex; align-items: center; justify-content: center; }
.reference-list img { max-width: 100%; height: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.reference-list li:hover img { filter: none; opacity: 1; }
.reference-name { font-size: 1.25rem; font-weight: 600; line-height: 1.2; text-align: center; color: #7d8791; }

/* Contact */
.contact { background: var(--ci-green); padding-block: clamp(56px, 7vw, 88px); }
.contact .intro { color: var(--ci-anthracite); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contact-actions { display: grid; gap: 12px; }
.contact-line {
  display: grid; padding: 14px 24px; min-width: 320px; border-radius: 6px;
  background: var(--ci-anthracite); color: var(--white); text-decoration: none; font-size: 1.25rem; font-weight: 600;
}
.contact-line small { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ci-green); }
.contact-line:hover { background: #1f252c; }

/* Footer */
.site-footer { background: var(--ci-anthracite); color: #c5cbd1; font-size: 0.92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.footer-brand img { height: 60px; width: auto; }
.footer-inner address { font-style: normal; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px 24px; border-top: 1px solid #46505c; font-size: 0.85rem; color: #aab2ba; }

/* Tablet and phone */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; height: 300px; }
  .hero-copy { padding: 48px 16px 112px; }
  .frame { display: none; }
  .approach-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .header-inner { min-height: 76px; }
  .brand img { height: 52px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
  }
  .burger, .burger::before, .burger::after {
    display: block; width: 24px; height: 2px; background: var(--ci-anthracite); content: ""; position: relative;
  }
  .burger::before { position: absolute; top: -7px; }
  .burger::after { position: absolute; top: 7px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }
  .site-header.is-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-cta { margin: 12px 0 0; text-align: center; border-radius: 4px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact { padding: 20px 24px; }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse img { order: 0; }
  .split img, .split-reverse img { box-shadow: 8px 8px 0 var(--ci-green); }
  .contact-line { min-width: 0; font-size: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .approach-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .person img { width: 128px; height: 128px; }
  .reference-list { gap: 4px 16px; }
  .reference-list li { flex-basis: calc(50% - 8px); height: 68px; }
  .reference-list img { max-width: 85%; }
  .reference-name { font-size: 1.05rem; }
}
