/* Zeitgabe one-pager. Tokens from karriere/branding/MARKE.md */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Digits from Jost: Atkinson's slashed zero reads as "Ø" in "30 minutes" */
@font-face {
  font-family: "Jost Digits";
  src: url("/assets/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-next-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --surface: #f2f2f2;
  --grey: #5e5e5e;
  --yellow: #ffe100;
  --glass: #e6e6e6;
  --line: #e6e6e6;

  --font-head: "Jost", system-ui, sans-serif;
  --font-body: "Jost Digits", "Atkinson Hyperlegible Next", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 20px;
  --radius-lg: 28px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 2.4vw + 0.9rem, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { background: var(--yellow); color: var(--ink); }

mark { background: var(--yellow); color: var(--ink); padding: 0 0.15em; }

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

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.8em 1.45em;
  border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.55em 1.1em; font-size: 1rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* Header */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-block; line-height: 0; border-radius: 6px; }
.logo:hover { background: none; }
.logo img { height: 36px; width: auto; }
.header-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.lang { font-family: var(--font-head); font-weight: 500; text-decoration: none; padding: 6px 2px; }
.lang:hover { background: none; text-decoration: underline; }
@media (max-width: 560px) { .header-nav .btn { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 104px) 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { max-width: 13ch; }
.lead { margin-top: 24px; font-size: clamp(1.2rem, 0.6vw + 1.05rem, 1.4rem); line-height: 1.5; max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-mark { width: 100%; max-width: 280px; justify-self: center; }
.hero-mark .sand-top { transform-box: view-box; transform-origin: 36.23px 49.03px; animation: sand-top 2.6s linear 0.4s both; }
.hero-mark .sand-bottom { transform-box: view-box; transform-origin: 63.77px 71px; animation: sand-bottom 2.6s linear 0.4s both; }
@keyframes sand-top {
  0% { transform: scale(1); } 10% { transform: scale(0.949); } 20% { transform: scale(0.894); }
  30% { transform: scale(0.837); } 40% { transform: scale(0.775); } 50% { transform: scale(0.707); }
  60% { transform: scale(0.632); } 70% { transform: scale(0.548); } 80% { transform: scale(0.447); }
  90% { transform: scale(0.316); } 100% { transform: scale(0); }
}
@keyframes sand-bottom {
  0% { transform: scale(0); } 10% { transform: scale(0.316); } 20% { transform: scale(0.447); }
  30% { transform: scale(0.548); } 40% { transform: scale(0.632); } 50% { transform: scale(0.707); }
  60% { transform: scale(0.775); } 70% { transform: scale(0.837); } 80% { transform: scale(0.894); }
  90% { transform: scale(0.949); } 100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark .sand-top, .hero-mark .sand-bottom { animation: none; }
  .hero-mark .sand-top { transform: scale(0); }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}
@media (max-width: 560px) {
  .hero .actions .btn, .after-steps .btn, .cta .btn { width: 100%; }
}

/* Sections */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section:last-child { padding-bottom: clamp(48px, 6vw, 80px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { margin-top: 16px; color: var(--grey); font-size: 1.2rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.card .icon { width: 36px; height: 36px; stroke-width: 1.75; margin-bottom: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--grey); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Before/after flow diagram */
.flow { display: grid; gap: clamp(32px, 4vw, 48px); }
.flow-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.flow-label { font-size: 1.5rem; }
.flow-count { font-family: var(--font-body); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.flow-after .flow-count { color: var(--ink); background: var(--yellow); padding: 0 0.3em; }
.flow-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px;
  list-style: none; padding: 0; margin: 0;
}
.flow-step {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border-radius: 16px; padding: 18px 16px;
  font-size: 1rem; line-height: 1.35;
}
.flow-step .icon, .flow-you .icon, .flow-agent .icon, .tick .icon { width: 24px; height: 24px; flex: none; }
.flow-step::after {
  content: ""; position: absolute; top: 30px; right: -12px; width: 12px; height: 2px; background: #b5b5b5;
}
.flow-step.flow-repeat { background: transparent; border: 2px dashed #cfcfcf; padding: 16px 14px; color: var(--grey); }
.flow-step.flow-repeat::after { display: none; }

.flow-agent {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 20px;
  background: var(--ink); color: var(--paper); border-radius: 16px; padding: 20px 0 22px;
}
.agent-title {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-inline: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
}
.agent-title .icon { color: var(--yellow); }
.ticks { display: contents; list-style: none; }
.tick { display: flex; flex-direction: column; gap: 12px; padding-inline: 16px 14px; font-size: 1rem; line-height: 1.35; }
.tick .icon { color: var(--yellow); }
.tick-repeat { color: #d9d9d9; }
.flow-you {
  display: flex; align-items: center; gap: 14px; margin-top: 12px;
  background: var(--yellow); border-radius: 16px; padding: 18px 16px; font-size: 1.1rem; line-height: 1.4;
}
.flow-q { font-family: var(--font-head); font-weight: 600; }

@media (max-width: 980px) {
  .flow-grid { grid-template-columns: 1fr; gap: 10px; }
  .flow-step { flex-direction: row; align-items: center; padding: 14px 16px; }
  .flow-step.flow-repeat { padding: 12px 14px; }
  .flow-step::after { top: auto; bottom: -12px; right: auto; left: 27px; width: 2px; height: 12px; }
  .flow-grid { gap: 12px; }
  .flow-agent { grid-column: auto; display: flex; flex-direction: column; padding: 18px 16px; gap: 16px; }
  .agent-title { padding-inline: 0; align-items: flex-start; }
  .ticks { display: grid; gap: 12px; padding: 0; margin: 0; }
  .tick { flex-direction: row; align-items: center; padding: 0; }
  .flow-you { align-items: flex-start; }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; margin-bottom: 20px;
}
.steps h3 { margin-bottom: 10px; }
.steps li { padding-right: clamp(0px, 2vw, 24px); }
.steps p { color: var(--grey); }
.after-steps { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding-right: 0; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
}

/* About */
.about {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px;
  grid-template-areas: "pic who who" "pic bio bio" "pic refs refs"; grid-template-rows: auto auto 1fr; align-items: start;
}
.about picture { grid-area: pic; }
.about picture img { width: min(100%, 280px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.about .who { grid-area: who; }
.about .who h3 { font-size: clamp(1.6rem, 1vw + 1.2rem, 2rem); }
.about .role { margin-top: 6px; color: var(--grey); font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; }
.about .bio { grid-area: bio; margin-top: 24px; max-width: 58ch; }
.refs { grid-area: refs; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.refs h3 { font-size: 1.15rem; margin-bottom: 24px; }
.ref-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; list-style: none; padding: 0; margin: 0; }
.ref { display: flex; flex-direction: column; gap: 14px; padding-right: 24px; }
@media (max-width: 560px) { .ref-list { grid-template-columns: 1fr; } }
.ref-logo { display: flex; align-items: center; gap: 12px; height: 40px; }
.ref-logo img { height: 26px; width: auto; }
.ref-logo .vw { height: 38px; width: 38px; }
.ref-logo span { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--grey); }
.ref p { color: var(--grey); font-size: 1rem; }
@media (max-width: 760px) {
  .about { grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; grid-template-areas: "pic who" "bio bio" "refs refs"; grid-template-rows: auto; align-items: center; }
  .about picture img { width: 112px; }
}

/* Contact */
.cta {
  background: var(--yellow); border-radius: var(--radius-lg); padding: clamp(36px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 80px); align-items: center;
}
.cta h2 { max-width: 16ch; }
.cta p { margin-top: 20px; font-size: 1.2rem; max-width: 44ch; }
.cta .actions { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta .actions p { margin-top: 0; font-size: 1.05rem; }
.cta .actions a:not(.btn) { display: inline-block; padding-block: 8px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }
.cta a:not(.btn):hover { background: var(--paper); }
.cta :focus-visible { outline-color: var(--ink); }

/* Footer */
.site-footer { padding-block: 40px 56px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-top: 1px solid var(--line); padding-top: 32px; color: var(--grey); font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer nav a { display: inline-block; padding-block: 10px; }

/* Legal page */
.legal { padding-block: clamp(32px, 6vw, 80px) var(--section); }
.legal h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.6rem; margin: 48px 0 16px; }
.legal p, .legal address { max-width: 62ch; margin-bottom: 16px; font-style: normal; }
