/* Hallmark · macrostructure: Letter (first-person opening) + Narrative Workflow (stair, timeline) · tone: warm, assured, executive
 * theme: custom · brand anchor #005d91 from the portfolio PDF · Source Sans 3 light headings, outlined section numerals (PDF v2) · accent: sun yellow, CTAs only
 * nav: brand + 3 anchors + language switch on the hero · footer: statement · enrichment: E5 hand-built SVG contours (from the PDF backgrounds)
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; overflow-wrap: anywhere; min-width: 0; }
h2 { font-size: var(--text-2xl); font-weight: 400; color: var(--color-brand); letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.numeral { font-weight: 300; line-height: 0.9; font-variant-numeric: lining-nums; }

/* Round line icons, white on brand blue, as in the PDF */
.ico {
  width: 3.5rem; height: 3.5rem; padding: 0.8rem; border-radius: 50%; flex: none;
  background: var(--color-brand); color: var(--color-on-brand);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Section heads as in the PDF: outlined number, heading, subtitle */
.sec-head { display: flex; align-items: center; gap: var(--space-lg); }
.sec-num {
  font-size: var(--text-sec-num); font-weight: 300; line-height: 0.8; flex: none;
  color: transparent; -webkit-text-stroke: var(--stroke-num) var(--color-brand);
  font-variant-numeric: lining-nums; letter-spacing: -0.02em;
}
.sec-sub { margin-top: var(--space-2xs); font-size: var(--text-lg); color: var(--color-ink); }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
main :focus-visible, .foot :focus-visible { outline-color: var(--color-brand); }
.contact :focus-visible { outline-color: var(--color-focus); }

.skip {
  position: absolute; left: var(--space-md); top: -10rem; z-index: 10;
  background: var(--color-paper); color: var(--color-brand); padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm); font-weight: 700;
}
.skip:focus { top: var(--space-md); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--text-base); text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--color-sun); color: var(--color-brand-deep); }
.btn-sun:hover { background: var(--color-on-brand); }
.btn-ghost { color: var(--color-on-brand); box-shadow: inset 0 0 0 2px var(--color-on-brand-muted); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--color-on-brand); }

/* Hero */
.hero, .band-dark {
  position: relative;
  background-color: var(--color-brand-deep);
  background-image:
    linear-gradient(105deg, var(--color-brand-deep) 30%, transparent 75%),
    url("assets/contours.svg");
  background-size: cover, cover;
  background-position: center, center;
  color: var(--color-on-brand);
  overflow: clip;
}
.hero::after, .band-dark::after {
  /* opacity for the contour lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-brand-deep); opacity: 0.72; z-index: 0;
}
.hero > *, .band-dark > * { position: relative; z-index: 1; }

.bar {
  max-width: var(--page-max); margin-inline: auto;
  padding: var(--space-lg) var(--gutter) 0;
  display: flex; align-items: center; gap: var(--space-xl);
}
.brand img { width: clamp(120px, 10vw + 60px, 168px); }
.bar-links { display: flex; gap: var(--space-xl); margin-left: auto; font-weight: 600; }
.bar-links a { text-decoration: none; color: var(--color-on-brand-muted); white-space: nowrap; }
.bar-links a:hover { color: var(--color-on-brand); }

.lang { display: flex; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-on-brand-muted); }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.06em; text-decoration: none;
  color: var(--color-on-brand-muted);
  min-width: 2.75rem; min-height: 2.75rem; border-radius: var(--radius-pill);
}
.lang a:hover { color: var(--color-on-brand); }
.lang a[aria-current="page"] { background: var(--color-on-brand); color: var(--color-brand-deep); }

.hero-body {
  max-width: var(--page-max); margin-inline: auto;
  padding: var(--space-2xl) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--space-2xl); align-items: end;
}
.hero-copy { padding-bottom: var(--space-3xl); }
.hero h1 { font-size: var(--text-hero); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
.hero h1 span { display: block; }
.hero-turn { color: var(--color-sun); margin-top: var(--space-sm); }
.hero-lead { margin-top: var(--space-lg); font-size: var(--text-lg); color: var(--color-on-brand-muted); max-width: 46ch; text-wrap: pretty; }
.hero .btn { margin-top: var(--space-lg); }

.hero-portrait { margin: 0; position: relative; justify-self: end; width: min(100%, 460px); }
.hero-portrait::before {
  /* the big circle from the PDF cover, behind the portrait */
  content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: var(--color-brand); z-index: -1;
  top: auto;
}
.hero-portrait img { width: 100%; }
.hero-portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  background: linear-gradient(to top, var(--color-brand-deep) 45%, transparent);
  text-align: center; white-space: nowrap;
  font-size: var(--text-sm); line-height: 1.4; color: var(--color-on-brand-muted);
}
.hero-portrait figcaption strong { display: block; color: var(--color-on-brand); font-size: var(--text-base); }

/* About: a letter, not a feature grid */
.about { padding-block: var(--space-4xl); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-3xl); }
.about-text { max-width: var(--measure); }
.about-claim {
  font-size: var(--text-xl); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.3;
  color: var(--color-ink); margin: var(--space-xl) 0;
}
.about-claim > span { display: block; }
.about-claim b { font-weight: 400; color: var(--color-brand); }
.about-text p + p { margin-top: var(--space-md); }
.about-sub {
  margin: var(--space-2xl) 0 var(--space-md); padding-top: var(--space-lg); border-top: 3px solid var(--color-brand);
  font-size: var(--text-xl); font-weight: 400; color: var(--color-brand);
}
.facts { border-top: 3px solid var(--color-brand); align-self: start; }
.facts > div {
  padding-block: var(--space-lg); border-bottom: var(--rule);
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--space-md); align-items: start;
}
.facts .ico { grid-row: span 2; }
.facts dt, .facts dd { grid-column: 2; }
.facts dt { font-weight: 600; color: var(--color-brand); }
.facts dt .numeral { font-size: 3rem; display: block; }
.facts dd { color: var(--color-ink-muted); margin-top: var(--space-2xs); }

/* Who */
.who { background: var(--color-brand-tint); padding-block: var(--space-4xl); }
.who-list { margin-top: var(--space-2xl); }
.who-list li {
  font-size: var(--text-xl); line-height: 1.4; padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-line-strong); max-width: 52ch; color: var(--color-ink-muted);
}
.who-list strong { color: var(--color-brand); font-weight: 600; }

/* Steps: the staircase from the PDF, built in CSS */
.steps { padding-block: var(--space-4xl); }
.steps-claim { font-size: var(--text-xl); text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-brand); }
.stair {
  margin-top: var(--space-2xl);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end; gap: var(--space-xs);
}
.stair li {
  background: var(--color-brand); color: var(--color-on-brand);
  padding: var(--space-lg); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg);
}
.stair li:nth-child(1) { min-height: 15rem; background: var(--color-step-1); }
.stair li:nth-child(2) { min-height: 19rem; }
.stair li:nth-child(3) { min-height: 23rem; background: var(--color-step-3); }
.stair li:nth-child(4) { min-height: 27rem; background: var(--color-brand-deep); box-shadow: inset 0 6px 0 var(--color-sun); }
.stair .numeral { font-size: var(--text-numeral); color: var(--color-on-brand); }
.stair p { font-weight: 600; line-height: 1.4; }

/* Approach */
.approach { padding-block: var(--space-4xl); }
.band-dark h2 { color: var(--color-on-brand); }
.band-dark .sec-num { -webkit-text-stroke-color: var(--color-on-brand-muted); }
.band-dark .sec-sub { color: var(--color-on-brand-muted); }
.band-dark :focus-visible { outline-color: var(--color-focus); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-3xl); align-items: start; }
.approach-list li {
  font-size: var(--text-lg); padding: var(--space-lg) 0 var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-line-on-dark); position: relative;
}
.approach-list li:first-child { padding-top: 0; }
.approach-list li::before {
  /* the chevron from the logo */
  content: ""; position: absolute; left: 0; top: calc(var(--space-lg) + 0.55em);
  width: 0.6em; height: 0.6em; border-left: 3px solid var(--color-sun); border-top: 3px solid var(--color-sun);
  rotate: 45deg;
}
.approach-list li:first-child::before { top: 0.55em; }

/* Process */
.process { background: var(--color-brand-tint); padding-block: var(--space-4xl); }
.timeline {
  margin-top: var(--space-2xl);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl);
  counter-reset: none;
}
.timeline li { border-top: 3px solid var(--color-brand); padding-top: var(--space-md); }
.timeline .ico { margin-bottom: var(--space-md); }
.timeline .numeral { font-size: 2.5rem; font-weight: 400; color: var(--color-brand); display: block; }
.timeline h3 { font-size: var(--text-lg); font-weight: 600; margin-top: var(--space-xs); }
.timeline p { margin-top: var(--space-xs); color: var(--color-ink-muted); }

/* Focus + formats */
.offer { padding-block: var(--space-4xl); }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xl); }
.pairs { margin-top: var(--space-xl); }
.pairs > div { padding-block: var(--space-md); border-bottom: var(--rule); }
.pairs dt { font-weight: 600; font-size: var(--text-lg); }
.pairs dd { color: var(--color-ink-muted); }

.pills {
  margin-top: var(--space-xl); display: grid; align-items: center;
  grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-md) var(--space-lg);
}
.pills > div { display: contents; }
.pills dt {
  background: var(--color-brand); color: var(--color-on-brand);
  font-size: var(--text-lg); font-weight: 400; line-height: 1.2;
  padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-lg); border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  white-space: nowrap;
}
.pills dd { color: var(--color-brand); font-weight: 600; line-height: 1.35; }

/* FAQ: native disclosure, no script */
.faq { background: var(--color-brand-tint); padding-block: var(--space-4xl); }
.faq-list { margin-top: var(--space-2xl); max-width: 52rem; border-top: 1px solid var(--color-line-strong); }
.faq details { border-bottom: 1px solid var(--color-line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg);
  padding-block: var(--space-lg); cursor: pointer; list-style: none;
  font-size: var(--text-lg); font-weight: 600; line-height: 1.35; color: var(--color-brand);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  /* the chevron from the logo, pointing down while closed */
  content: ""; flex: none; width: 0.6em; height: 0.6em; margin-right: 0.3em;
  border-left: 3px solid currentColor; border-top: 3px solid currentColor;
  rotate: -135deg; translate: 0 -0.15em;
  transition: rotate var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out);
}
.faq details[open] summary::after { rotate: 45deg; translate: 0 0.15em; }
.faq summary:hover { color: var(--color-brand-deep); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq-a { padding-bottom: var(--space-xl); max-width: var(--measure); }
.faq-a p + p { margin-top: var(--space-sm); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Contact */
.contact {
  background-color: var(--color-brand);
  color: var(--color-on-brand); padding-block: var(--space-4xl);
}
.contact h2 { color: var(--color-on-brand); font-size: var(--text-display-s); line-height: 1.1; }
.contact-inner > p { font-size: var(--text-xl); max-width: 46ch; margin-top: var(--space-lg); color: var(--color-on-brand-muted); }
.contact-inner > p + p { margin-top: var(--space-md); color: var(--color-on-brand); }
.contact-inner > .contact-close { margin-top: var(--space-xl); color: var(--color-sun); font-size: var(--text-2xl); line-height: 1.2; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-2xl); }
.contact-direct { margin-top: var(--space-lg); font-size: var(--text-lg); overflow-wrap: anywhere; }
.contact-direct a { color: var(--color-on-brand); text-underline-offset: 4px; }

/* Footer: one statement, then the legal line */
.foot { background: var(--color-brand-deep); color: var(--color-on-brand-muted); padding-block: var(--space-2xl); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md) var(--space-xl); align-items: baseline; }
.foot-claim { color: var(--color-on-brand); font-weight: 600; }
.foot-place { margin-top: var(--space-2xs); font-size: var(--text-sm); }
.foot-meta { display: flex; flex-wrap: wrap; gap: var(--space-lg); font-size: var(--text-sm); }
.foot-meta a { white-space: nowrap; text-underline-offset: 3px; }
.foot-meta a:hover { color: var(--color-on-brand); }

/* Tablet */
@media (max-width: 900px) {
  .bar-links { display: none; }
  .lang { margin-left: auto; }
  .hero-body { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-2xl); gap: 0; }
  .hero-copy { padding-bottom: var(--space-2xl); }
  .hero-portrait { justify-self: center; width: min(78%, 380px); }
  .about-grid, .approach-grid, .offer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-2xl); }
}

/* Phone: the staircase turns sideways, each step a little wider */
@media (max-width: 640px) {
  .stair { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .stair li { min-height: 0 !important; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex-direction: row; align-items: center; gap: var(--space-md); }
  .stair li:nth-child(1) { width: 82%; }
  .stair li:nth-child(2) { width: 88%; }
  .stair li:nth-child(3) { width: 94%; }
  .stair li:nth-child(4) { width: 100%; box-shadow: inset 6px 0 0 var(--color-sun); }
  .stair .numeral { font-size: 3rem; flex: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .sec-head { gap: var(--space-md); }
  .sec-num { font-size: 3rem; --stroke-num: 1.5px; }
  .pills { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .pills dt { justify-self: start; }
  .pills dd { margin-bottom: var(--space-sm); }
}

/* Contact prompts between sections, and the bar that follows on phones */
.btn-outline { color: var(--color-brand); box-shadow: inset 0 0 0 2px var(--color-brand); }
.btn-outline:hover { background: var(--color-brand); color: var(--color-on-brand); }
.sec-cta { margin-top: var(--space-2xl); }

.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom));
    background: var(--color-brand-deep);
    transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta[data-shown="false"] { transform: translateY(110%); visibility: hidden; }
  .sticky-cta[data-shown="true"] { transform: none; visibility: visible; transition-delay: 0s; }
  .foot { padding-bottom: calc(var(--space-2xl) + 4.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* Legal pages: Impressum, Datenschutz */
.legal-head { background: var(--color-brand-deep); }
.legal-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-lg); }
.legal-back { color: var(--color-on-brand-muted); font-weight: 600; text-underline-offset: 4px; }
.legal-back:hover { color: var(--color-on-brand); }
.legal-head :focus-visible { outline-color: var(--color-focus); }
.legal { padding-block: var(--space-3xl) var(--space-4xl); }
.legal .wrap > * { max-width: var(--measure); }
.legal h1 { font-size: var(--text-2xl); font-weight: 400; color: var(--color-brand); margin-bottom: var(--space-md); }
.legal h2 { font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); margin: var(--space-2xl) 0 var(--space-xs); }
.legal p + p { margin-top: var(--space-sm); }
.legal a { color: var(--color-brand); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-list { list-style: disc; padding-left: 1.25em; }
.legal-list li + li { margin-top: var(--space-2xs); }
.legal-variant { margin-top: var(--space-md); }
.legal-stand { margin-top: var(--space-2xl); color: var(--color-ink-muted); }
.legal mark { background: var(--color-sun); color: var(--color-ink); padding: 0 0.2em; border-radius: 2px; }
.draft-note {
  padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-xl);
  border-left: 4px solid var(--color-sun); background: var(--color-brand-tint); color: var(--color-ink);
}
.legal-langs { display: flex; gap: var(--space-2xs); margin-left: auto; }
.legal-langs a {
  min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.06em;
  color: var(--color-on-brand-muted); text-decoration: none;
}
.legal-langs a:hover { color: var(--color-on-brand); }
.legal-langs a[aria-current="page"] { background: var(--color-on-brand); color: var(--color-brand-deep); }
@media (max-width: 640px) { .legal-back { display: none; } }

