/* Build Milestone Tracker — landing. Art direction «Bauprogramm»: plan paper, fir green, ochre milestone
   diamonds, a time ruler with day ticks, Gantt bars. Archivo + IBM Plex Mono, self-hosted. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f4f0e6;
  --card: #fffdf8;
  --sunk: #eae4d6;
  --ink: #2b2620;
  --soft: #564f42;
  --line: #dcd4c3;
  --line-strong: #b4aa95;
  --green: #1f5c46;
  --green-dark: #174636;
  --green-bar: #2a6b53;
  --mint: #a9cdbe;
  --ochre: #d99a1e;
  --ochre-light: #e8b547;
  --ochre-dark: #835600;
  --bezel: #1e1b17;
  --wrap: 1120px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; border-radius: 6px; }
.skip:focus { left: 12px; }

.kicker { font-family: var(--mono); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin: 0 0 0.9rem; }
.kicker--light { color: var(--mint); }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 38em; }

/* ---------- Header with time ruler ---------- */
.top { background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.12rem; line-height: 1.15; overflow-wrap: anywhere; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; }
.ruler { height: 12px; border-top: 2px solid var(--ink); background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 9px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 63px); background-size: 100% 5px, 100% 10px; background-repeat: repeat-x; max-width: var(--wrap); margin: 0 auto; width: calc(100% - 48px); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 22px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link-arrow::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 0.85rem; color: var(--soft); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); }
.hero__shot { position: relative; background: var(--green); border-radius: 22px; padding: 36px 24px 0; overflow: hidden; max-width: 460px; width: 100%; justify-self: center; }
.hero__shot::before { content: ""; position: absolute; left: -10%; right: 30%; top: 46%; height: 22px; border-radius: 6px; background: var(--green-bar); box-shadow: 140px 70px 0 var(--green-bar), 40px 140px 0 #327a60; }
.hero__shot::after { content: ""; position: absolute; right: 26px; top: 22px; width: 26px; height: 26px; background: var(--ochre); transform: rotate(45deg); border-radius: 3px; }
.hero__shot .shot { position: relative; z-index: 1; margin: 0 auto; max-width: 300px; }
.hero__shot .shot__frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-width: 0; max-height: 520px; overflow: hidden; }
.hero__note { position: relative; z-index: 1; margin: 0; padding: 10px 0 12px; text-align: center; font-family: var(--mono); font-size: 0.75rem; color: var(--mint); background: var(--green-dark); margin-left: -24px; margin-right: -24px; }

/* ---------- Phone frame ---------- */
.shot { margin: 0; }
.shot__frame { display: block; background: var(--bezel); border: 10px solid var(--bezel); border-radius: 34px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.shot__frame img { border-radius: 24px; width: 100%; }

/* ---------- CTA ---------- */
.cta { display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 14px; padding: 12px 22px 12px 18px; margin: 0; min-height: 56px; }
.cta:hover { color: #fff; background: #000; }
.cta--soon { background: var(--card); color: var(--ink); border: 2px dashed var(--line-strong); }
.cta__diamond { width: 18px; height: 18px; background: var(--ochre); transform: rotate(45deg); border-radius: 2px; flex: none; }
.cta__text { display: flex; flex-direction: column; line-height: 1.2; }
.cta__small { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; opacity: 0.85; }
.cta__big { font-weight: 800; font-size: 1.15rem; }

/* ---------- Programme strip (the five tools as milestones) ---------- */
.programme { padding: 36px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.programme__line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.programme__line::before { content: ""; position: absolute; left: 10%; right: 10%; top: 15px; height: 3px; background: var(--ink); }
.programme__line a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); padding: 0 4px 12px; min-height: 44px; text-align: center; position: relative; }
.programme__dia { width: 26px; height: 26px; background: var(--card); border: 3px solid var(--ochre); transform: rotate(45deg); border-radius: 3px; margin: 3px 0 10px; transition: background 0.15s; }
.programme__line a:hover .programme__dia, .programme__line a:focus-visible .programme__dia { background: var(--ochre); }
.programme__code { font-family: var(--mono); font-size: 0.8rem; color: var(--green); font-weight: 600; }
.programme__name { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Tool sections ---------- */
.tool { padding: 72px 0; border-bottom: 1px solid var(--line); }
.tool__in { display: grid; gap: 40px; align-items: center; }
.tool__code { font-family: var(--mono); font-weight: 600; color: var(--green); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; margin-bottom: 0.8rem; }
.tool__dia { width: 12px; height: 12px; background: var(--ochre); transform: rotate(45deg); border-radius: 2px; }
.tool__text p { color: var(--soft); max-width: 34em; }
.tool__shot { position: relative; max-width: 330px; width: 100%; justify-self: center; }
.bars { position: absolute; inset: 18% -40% auto -40%; display: grid; gap: 70px; z-index: 0; }
.bars span { display: block; height: 20px; border-radius: 6px; background: var(--sunk); }
.bars span:nth-child(1) { width: 62%; margin-left: 4%; }
.bars span:nth-child(2) { width: 54%; margin-left: 40%; background: #e2dccb; }
.bars span:nth-child(3) { width: 48%; margin-left: 14%; }
.tool__shot .shot { position: relative; z-index: 1; }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 10px; height: 10px; background: var(--green); transform: rotate(45deg); border-radius: 1.5px; }
.ticks--light li::before { background: var(--ochre); }

/* ---------- Steps band ---------- */
.band { background: var(--green); color: #fff; padding: 72px 0; }
.band h2 { color: #fff; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { border-top: 3px solid var(--ochre); padding-top: 16px; }
.steps__no { font-family: var(--mono); color: var(--ochre-light); font-weight: 600; }
.steps h3 { color: #fff; margin: 6px 0 6px; }
.steps p { color: #dcebe3; margin: 0; }

/* ---------- Roles, extras ---------- */
.section { padding: 72px 0; }
.section--sunk { background: var(--sunk); }
.roles { display: grid; gap: 16px; margin-top: 24px; }
.roles__item { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ochre); border-radius: 12px; padding: 20px 22px; }
.roles__item p { margin: 0; color: var(--soft); }
.extras { display: grid; gap: 36px; align-items: start; }
.extras__head .shot { max-width: 260px; margin-top: 24px; }
.extras__list { margin: 0; display: grid; gap: 0; }
.extras__list div { border-top: 1px solid var(--line-strong); padding: 16px 0; }
.extras__list dt { font-weight: 700; font-size: 1.1rem; }
.extras__list dd { margin: 4px 0 0; color: var(--soft); }

/* ---------- Privacy band, download ---------- */
.privacy-band { background: var(--green-dark); color: #fff; padding: 64px 0; }
.privacy-band h2 { color: #fff; }
.privacy-band a { color: var(--ochre-light); font-weight: 700; }
.privacy-band__in { display: grid; gap: 28px; align-items: center; }
.privacy-band .ticks { margin: 0; font-size: 1.08rem; }
.download { padding: 64px 0 72px; }
.download__in { display: grid; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.download__icon { width: 88px; height: 88px; border-radius: 20px; }
.download h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 0.3em; }
.download p { margin: 0; color: var(--soft); }

/* ---------- Footer ---------- */
.foot { border-top: 2px solid var(--ink); background: var(--paper); padding: 36px 0 28px; }
.foot__in { display: grid; gap: 24px; }
.foot__brand img { width: 240px; height: auto; margin-bottom: 10px; }
.foot__brand p { color: var(--soft); font-size: 0.95rem; margin: 0; }
.foot__nav { display: flex; flex-direction: column; gap: 2px; }
.foot__nav a { color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.foot__fine { margin-top: 20px; font-size: 0.82rem; color: var(--soft); }
.foot__fine p { margin: 0; }

/* ---------- Text pages ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 48px 24px 72px; }
.doc h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem); }
.doc h2 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); margin-top: 2em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc__steps li { margin-bottom: 0.7em; }
.doc__meta { font-family: var(--mono); font-size: 0.85rem; color: var(--soft); }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 18px 14px 44px; position: relative; min-height: 48px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: 18px; top: 1.2em; width: 10px; height: 10px; border: 2.5px solid var(--ochre); transform: rotate(45deg); border-radius: 1.5px; }
.faq[open] summary::before { background: var(--ochre); }
.faq p { padding: 0 18px 16px 44px; margin: 0; color: var(--soft); }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download__in { grid-template-columns: auto 1fr auto; }
  .foot__in { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero__in { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .tool__in { grid-template-columns: 1fr 0.8fr; gap: 72px; }
  .tool--flip .tool__text { order: 2; }
  .tool--flip .tool__in { grid-template-columns: 0.8fr 1fr; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .extras { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .extras__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  .privacy-band__in { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .ruler { width: calc(100% - 32px); }
  .top { position: static; }
  .nav { gap: 0 14px; }
  .hero { padding-top: 28px; }
  .hero__shot { padding: 28px 16px 0; }
  .hero__note { margin-left: -16px; margin-right: -16px; }
  .programme__line { grid-template-columns: 1fr; gap: 4px; }
  .programme__line::before { left: 15px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .programme__line a { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 6px 0; }
  .programme__dia { margin: 0 4px 0 2px; flex: none; }
  .tool, .band, .section { padding: 52px 0; }
  .bars { inset: 18% -10% auto -10%; }
  .download__in { padding: 22px 18px; }
  .doc { padding: 32px 16px 56px; }
  .cta { width: 100%; }
}

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