/* KM Verticals · Website
   Aufbau nach dem ruhigen Zustand von structureengineering.com.au:
   Vollbild-Foto, große Sans, Monospace für Labels und Fließtext, viel Luft.
   Schriften und Bilder liegen lokal unter assets/, nichts lädt von fremden Servern. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101828;
  --text: #475467;
  --mute: #667085;
  --line: #C9CED6;
  --hair: #E4E7EC;
  --soft: #F3F4F6;
  --white: #FFFFFF;
  --blue: #0066CC;
  --blue-2: #0071E3;
  --radius: 4px;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 6.5vw, 96px);
  --max: 1440px;
  --sec: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.num { color: var(--blue); font-variant-numeric: tabular-nums; }
.copy { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); letter-spacing: -.005em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }

/* Kopfzeile: Logo links, Navigation als weiße Kästen */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px; pointer-events: none; border-bottom: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease, padding .35s ease; }
.top.is-light { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--hair); padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 14px; pointer-events: auto; }
.top > * { pointer-events: auto; }
.logo { display: block; width: 168px; color: #fff; transition: color .4s ease; }
.logo svg { display: block; width: 100%; height: auto; }
.top.is-light .logo { color: var(--ink); }
/* Navigation rechtsbündig als schlichte Links, rechts außen der Erstgespräch-Knopf */
.top nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.menu a { display: block; padding: 8px 0; font: 400 15px/1 var(--sans); color: rgba(255,255,255,.88); text-decoration: none; transition: color .2s ease; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; }
.top.is-light .menu a { color: var(--text); }
.top.is-light .menu a:hover, .top.is-light .menu a[aria-current="page"] { color: var(--ink); }
.cta { display: inline-block; padding: 11px 18px; border: 1px solid var(--blue); border-radius: var(--radius); background: var(--blue); color: #fff; font: 500 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .2s ease, border-color .2s ease; }
.cta:hover { background: var(--blue-2); border-color: var(--blue-2); }
.menu-btn { display: none; margin-left: auto; padding: 10px 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
@media (max-width: 920px) {
  .top { gap: 12px; }
  .logo { width: 140px; }
  .cta { display: none; }
  .menu-btn { display: block; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 4px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--hair); }
  .top.is-open nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu li { border-bottom: 1px solid var(--hair); }
  .menu a, .top.is-light .menu a { padding: 16px 0; font-size: 17px; color: var(--ink); }
  .menu .menu__cta { border: 0; padding-top: 16px; }
  .menu .menu__cta a, .top.is-light .menu .menu__cta a { display: inline-block; padding: 12px 18px; color: #fff; background: var(--blue); border-radius: var(--radius); font-size: 15px; }
}
@media (min-width: 921px) { .menu .menu__cta { display: none; } }
.top.is-open { background: #fff; pointer-events: auto; }
.top.is-open .logo { color: var(--ink); }

/* Einstieg: Foto über die volle Breite, Headline unten links */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 2.2s var(--ease) .1s forwards; }
@keyframes settle { to { transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,24,40,.82) 0%, rgba(16,24,40,.35) 48%, rgba(16,24,40,.22) 78%, rgba(16,24,40,.55) 100%); }
.hero__in { position: relative; z-index: 1; width: 100%; padding-top: 160px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 6px 10px; border: 1px solid currentColor; border-radius: var(--radius); }

/* Treppe: drei Stufen, ansteigend wie die Balken im Logo, ein Punkt läuft hoch */
.stairs { position: relative; height: clamp(120px, 12vw, 176px); }
.stairs svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stairs path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.stairs__lbl { position: absolute; left: calc(var(--i) * 33.333%); bottom: calc(var(--i) * 33.333% + 14px); white-space: nowrap; color: var(--mute); transition: color .4s ease; }
.stairs__lbl.on { color: var(--ink); }
.stairs__dot { position: absolute; left: 0; top: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(0,102,204,.16); will-change: transform; }
.hero__stairs { margin-top: clamp(48px, 6vw, 88px); max-width: 980px; }
.hero__stairs path { stroke: rgba(255,255,255,.6); }
.hero__stairs .stairs__lbl { color: rgba(255,255,255,.55); }
.hero__stairs .stairs__lbl .num { color: inherit; }
.hero__stairs .stairs__lbl.on { color: #fff; }
.hero__stairs .stairs__dot { box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
@media (max-width: 640px) {
  .stairs__lbl { font-size: 11px; }
  .stairs__lbl.l2 { left: auto; right: 0; }
}

/* Ansatz: ein Absatz, der sich beim Scrollen von grau nach schwarz füllt */
.intro { background: var(--soft); padding: var(--sec) 0; }
.statement { font-size: clamp(26px, 3.5vw, 54px); hyphens: manual; overflow-wrap: break-word; line-height: 1.12; letter-spacing: -.03em; font-weight: 500; max-width: 26ch; }
.statement .w { color: var(--line); transition: color .25s linear; }
.statement .w.on { color: var(--ink); }
.statement .s { display: block; }
.statement .s + .s { margin-top: .5em; }
.statement .hl, .statement .hl .w.on { color: var(--blue); }

/* Leistungen: drei Ebenen, Text links, Foto rechts */
.levels { padding: var(--sec) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head h2, .h2 { font-size: clamp(36px, 4.6vw, 72px); }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); align-items: start; }
.step { margin-top: calc((2 - var(--i)) * clamp(28px, 4vw, 64px)); padding-top: 20px; border-top: 1px solid var(--ink); }
.step h3 { font-size: clamp(26px, 2.4vw, 36px); margin: 16px 0 16px; }
.step .copy { font-size: 16px; }
.step .pills { margin-top: 22px; color: var(--ink); }
.step .pills li { border-color: var(--line); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; gap: 48px; } .step { margin-top: 0; } }

/* Haltung: Foto über die volle Breite mit großer Aussage */
.stance { position: relative; color: #fff; padding: clamp(120px, 14vw, 200px) 0; overflow: hidden; }
.stance > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stance::after { content: ""; position: absolute; inset: 0; background: rgba(16,24,40,.68); }
.stance .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.stance h2 { font-size: clamp(38px, 5vw, 80px); }
.stance .copy { color: rgba(255,255,255,.82); max-width: 42ch; }
@media (max-width: 860px) { .stance .wrap { grid-template-columns: 1fr; } }

/* Verticals: Strichzeichnung des Strukturbaums und Leitsatz */
.verticals { padding: var(--sec) 0; }
.verticals .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.tree { width: 100%; height: auto; overflow: visible; }
.tree .l { fill: none; stroke: var(--line); stroke-width: 1.2; }
.tree .k { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.tree text { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; fill: var(--mute); }
.tree text.t { font-family: var(--sans); font-size: 20px; letter-spacing: -.02em; fill: var(--ink); }
.tree text.t.on { font-weight: 600; }
.tree text.n { fill: var(--blue); }
@media (max-width: 640px) { .tree text { font-size: 17px; } .tree text.t { font-size: 26px; } }
.verticals h2 { font-size: clamp(36px, 4.2vw, 68px); margin-bottom: 36px; }
.verticals h2 span { display: block; }
.verticals .lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.45; letter-spacing: -.01em; margin-bottom: 22px; }
@media (max-width: 860px) { .verticals .wrap { grid-template-columns: 1fr; } }

/* Branchen */
.sectors { background: var(--soft); padding: var(--sec) 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.sector figure { margin: 0 0 14px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hair); }
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sector:hover img { transform: scale(1.03); }
.sector .mono { color: var(--mute); }
.sector h3 { font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.025em; margin-top: 6px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sector h3 { font-size: 18px; } }

/* Netzwerk */
.network { padding: var(--sec) 0; }
.network .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.network .lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.45; color: var(--text); margin-top: 24px; max-width: 34ch; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-bottom: 1px solid var(--hair); font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; }
.rows li span { font-family: var(--mono); font-size: 13px; color: var(--mute); padding-top: .45em; }
@media (max-width: 860px) { .network .wrap { grid-template-columns: 1fr; } }

/* Team */
.team { background: var(--soft); padding: var(--sec) 0; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.person { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: clamp(20px, 2.5vw, 36px); align-items: start; padding-top: 28px; border-top: 1px solid var(--ink); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.person h3 { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -.03em; }
.person p.mono { color: var(--mute); margin: 8px 0 16px; }
.person p.copy { font-size: 14px; margin-bottom: 22px; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } .person img { max-width: 220px; } }

/* Knopf im Stil der Vorlage: Text und Pfeil in getrennten Feldern */
.btn { display: inline-flex; align-items: stretch; border: 1px solid currentColor; border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.btn span { padding: 14px 18px; }
.btn i { display: grid; place-items: center; font-style: normal; padding: 0 15px; border-left: 1px solid currentColor; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--fill { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--fill i { border-left-color: rgba(255,255,255,.35); }
.btn--fill:hover { background: var(--blue); border-color: var(--blue); }

/* Kontakt */
.contact { padding: var(--sec) 0; }
.contact h2 { font-size: clamp(44px, 7vw, 120px); line-height: .98; letter-spacing: -.045em; max-width: 12ch; }
.contact__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.contact__row .copy a { color: var(--ink); }

/* Rechtsseiten */
.legal { padding: calc(var(--sec) * .9 + 40px) 0 var(--sec); }
.legal .wrap > * { max-width: 72ch; }
.legal h1 { font-size: clamp(34px, 5vw, 76px); hyphens: manual; overflow-wrap: break-word; margin: 18px 0 clamp(36px, 4vw, 56px); }
.legal h2 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--ink); }
/* Offene Angaben vor dem Livegang, siehe VOR-DEM-LIVEGANG.md */
.todo { background: #FFE2B8; color: var(--ink); padding: 1px 6px; border-radius: 2px; font-family: var(--mono); font-size: .86em; }

/* Fuß */
.foot { border-top: 1px solid var(--hair); padding: 32px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .logo { width: 130px; color: var(--ink); }
.foot .mono { color: var(--mute); font-size: 12px; }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot nav a { text-decoration: none; color: var(--text); }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }

/* Ruhiges Einblenden, einmalig, ohne Spielerei */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .tree .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.js .tree.in .draw { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__img { transform: none; }
  .js .rv { opacity: 1; transform: none; }
  .js .tree .draw { stroke-dashoffset: 0; }
  .statement .w { color: var(--ink); }
}
