@import url('/fonts/fonts.css');

/* ------------------------------------------------------------ tokens */
:root {
  --kalk: #F2F4F3;
  --papier: #FFFFFF;
  --tinte: #101C2C;
  --schiefer: #586474;
  --linie: #D5DBE0;
  --gruen: #0B7A46;
  --gruen-hell: #E3F1E9;

  --f-display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--tinte);
  font: 400 17px/1.6 var(--f-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gruen); }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 243, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinte); }
.brand:hover { color: var(--tinte); }
.mark { width: 26px; height: auto; flex: none; }
.mark .m-stem, .mark .m-bowl { fill: var(--tinte); }
.mark .m-leg { fill: var(--gruen); }
.brand:hover .m-leg { fill: var(--tinte); }
.brand:hover .m-stem { fill: var(--gruen); }
.wordmark {
  font: 700 23px/1 var(--f-display);
  font-stretch: 82%;
  letter-spacing: .11em;
}
.wordmark sup { font: 500 9px/1 var(--f-body); letter-spacing: 0; vertical-align: top; position: relative; top: -2px; margin-left: 1px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--schiefer); }
.main-nav a:hover { color: var(--tinte); }

.lang {
  display: flex; align-items: center; gap: 2px;
  font: 500 13px/1 var(--f-mono); letter-spacing: .04em;
  border: 1px solid var(--linie); border-radius: 999px; padding: 3px; background: var(--papier);
}
.lang span { display: none; }
.lang a { text-decoration: none; padding: 7px 10px; border-radius: 999px; color: var(--schiefer); }
.lang a:hover { color: var(--tinte); }
.lang a[aria-current] { background: var(--tinte); color: #fff; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 500 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--tinte); transition: background .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--tinte); color: #fff; }
.btn--solid:hover { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.btn--line { background: transparent; color: var(--tinte); }
.btn--line:hover { background: var(--papier); color: var(--tinte); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ------------------------------------------------------------ hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow { display: flex; flex-wrap: wrap; gap: 6px 0; font: 500 13px/1.4 var(--f-mono); letter-spacing: .03em; color: var(--schiefer); margin-bottom: 28px; }
.eyebrow span + span::before { content: '·'; margin: 0 10px; color: var(--linie); }

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(42px, 5.9vw, 86px);
  font-weight: 640;
  font-stretch: 85%;
  line-height: .96;
  letter-spacing: -.015em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: #2c3a4b; max-width: 34em; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* the constructed R */
.r-fig { margin: 0; position: relative; }
.r-stage {
  position: relative;
  aspect-ratio: 200 / 120;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background-image:
    linear-gradient(to right, rgba(213, 219, 224, .45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(213, 219, 224, .45) 1px, transparent 1px);
  background-size: 2.5% 4.1667%;
  background-color: var(--papier);
}
.r-svg { width: 100%; height: 100%; overflow: visible; }
.guide { fill: none; stroke: #A3AEB9; stroke-width: .3; }
.centre { fill: none; stroke: var(--gruen); stroke-width: .6; }
.part { fill: var(--tinte); transition: fill .25s ease; }
.p-leg { fill: var(--gruen); }
.leader path { fill: none; stroke: var(--tinte); stroke-width: .35; }
.leader circle { fill: var(--tinte); }

.fig-label {
  position: absolute; transform: translateY(-50%);
  font: 500 14px/1.25 var(--f-body); color: var(--tinte); white-space: nowrap;
}
.fig-label small { display: block; font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--schiefer); }
.fig-label--left { text-align: right; }
@media (max-width: 1240px) { .fig-label { font-size: 13px; } }
a.fig-label { text-decoration: none; }
a.fig-label:hover { color: var(--gruen); }
.r-legend a { text-decoration: none; }
.r-legend { display: none; }
.r-fig figcaption { margin-top: 12px; font: 400 12px/1.4 var(--f-mono); color: var(--schiefer); letter-spacing: .02em; }

/* highlight the part that belongs to the hovered business area */
body:has(.field:hover, .field:focus-within) .part,
.r-fig:has(.fig-label:hover, .fig-label:focus-visible) .part { fill: var(--tinte); }
.r-fig:has(.fl-stem:hover, .fl-stem:focus-visible) .p-stem,
.r-fig:has(.fl-bowl:hover, .fl-bowl:focus-visible) .p-bowl,
.r-fig:has(.fl-leg:hover, .fl-leg:focus-visible) .p-leg,
body:has(.field[data-part="stem"]:hover, .field[data-part="stem"]:focus-within) .p-stem,
body:has(.field[data-part="bowl"]:hover, .field[data-part="bowl"]:focus-within) .p-bowl,
body:has(.field[data-part="leg"]:hover, .field[data-part="leg"]:focus-within) .p-leg { fill: var(--gruen); }

/* load sequence: guides are drawn, then the three parts are set in place */
@media (prefers-reduced-motion: no-preference) {
  .guide { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) forwards; animation-delay: calc(var(--i) * 55ms); }
  .centre { opacity: 0; animation: fade .4s ease .7s forwards; }
  .part { opacity: 0; animation: place .7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .p-stem { --dx: -10px; --dy: 0px; animation-delay: .85s; }
  .p-bowl { --dx: 10px; --dy: -8px; animation-delay: 1.0s; }
  .p-leg { --dx: 10px; --dy: 8px; animation-delay: 1.15s; }
  .leader, .fig-label { opacity: 0; animation: fade .5s ease 1.6s forwards; }
  .hero-copy > * { opacity: 0; animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes place { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ register band */
.register { background: var(--papier); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.register .wrap { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding-top: 28px; padding-bottom: 28px; align-items: start; }
.register-title { font: 500 12px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--schiefer); padding-top: 3px; }
.register-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; }
.register-list div { border-left: 1px solid var(--linie); padding-left: 14px; }
.register-list dt { font: 500 11px/1.5 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--schiefer); margin-bottom: 4px; }
.register-list dd { font: 400 15px/1.45 var(--f-mono); color: var(--tinte); }

/* ------------------------------------------------------------ sections */
.section { padding: var(--section) 0; }
.section-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 650;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -.01em;
}
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }

.statement { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; font-stretch: 92%; line-height: 1.22; letter-spacing: -.005em; margin-bottom: .9em; text-wrap: pretty; }
.about-body p:not(.statement) { color: #2c3a4b; max-width: 38em; }

.fields { background: var(--papier); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); align-items: end; }
.section-intro { font-size: 19px; color: #2c3a4b; margin: 0; max-width: 32em; }

.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 20px; }
.field {
  position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start;
  background: var(--kalk); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 28px 28px 32px; transition: border-color .25s, background .25s, transform .25s;
}
.field:hover, .field:focus-within { border-color: var(--tinte); background: var(--papier); }
.field-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.glyph { width: 44px; height: auto; }
.glyph .g-off { fill: #C3CBD3; }
.glyph .g-on { fill: var(--gruen); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--schiefer); padding: 7px 10px; border: 1px solid var(--linie); border-radius: 999px; background: var(--papier); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gruen); }
.status--building::before { background: transparent; border: 1.5px solid var(--schiefer); width: 6px; height: 6px; }
.field h3 { font-family: var(--f-display); font-size: 28px; font-weight: 650; font-stretch: 84%; line-height: 1.05; margin-bottom: 14px; }
.field p { color: #2c3a4b; font-size: 16px; }
.field > p { margin-bottom: 28px; }
.field-list { border-top: 1px solid var(--linie); padding-top: 16px; }
.field .list-title { font: 500 11px/1.5 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--schiefer); margin: 0 0 12px; }
.field li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; margin-bottom: 7px; }
.field li::before { content: ''; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: var(--gruen); }

.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 4vw, 56px); }
.approach-item { border-top: 2px solid var(--tinte); padding-top: 20px; }
.approach-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.approach-item p { color: #2c3a4b; margin: 0; }

.history { padding-top: 0; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--linie); }
.timeline li { position: relative; padding: 32px 32px 0 0; display: grid; gap: 14px; align-content: start; }
.timeline li::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--kalk); border: 2px solid var(--tinte); }
.timeline li:last-child::before { background: var(--gruen); border-color: var(--gruen); }
.year { font-family: var(--f-display); font-size: clamp(48px, 5vw, 72px); font-weight: 600; font-stretch: 76%; line-height: .9; letter-spacing: -.02em; color: var(--tinte); }
.timeline h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.timeline p { color: #2c3a4b; font-size: 16px; margin: 0; max-width: 24em; }

.contact { background: var(--tinte); color: #E9EEF2; }
.contact .section-title { color: #fff; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.contact-text { margin-top: 18px; color: #B9C4CF; font-size: 19px; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.contact-list div:last-child { grid-column: 1 / -1; }
.contact-list dt { font: 500 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #8E9BA9; margin-bottom: 6px; }
.contact-list dd { font-size: 20px; line-height: 1.45; }
.contact-list a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.contact-list a:hover { color: #7FD3A6; }
.contact :focus-visible { outline-color: #7FD3A6; }

/* ------------------------------------------------------------ footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--schiefer); }
.page-home .site-footer { border-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .mark { width: 22px; margin-top: 3px; }
.footer-brand p { margin: 0; line-height: 1.55; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; color: var(--tinte); font-weight: 500; }
.footer-nav a:hover { color: var(--gruen); }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: 13px; }

/* ------------------------------------------------------------ legal documents */
.page-doc main { padding: 40px 0 88px; }
.doc-wrap { max-width: calc(880px + 2 * var(--gutter)); }
.doc-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.doc-back { font-size: 15px; text-decoration: none; color: var(--schiefer); }
.doc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.doc-alt { font-size: 15px; margin-right: 8px; color: var(--schiefer); }
.doc {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(28px, 6vw, 72px) clamp(22px, 7vw, 88px);
}
.doc-letterhead { display: flex; gap: 14px; align-items: center; padding-bottom: 22px; margin-bottom: 40px; border-bottom: 1px solid var(--linie); }
.doc-letterhead .mark { width: 24px; }
.doc-letterhead strong { display: block; font-size: 15px; font-weight: 600; }
.doc-letterhead span { display: block; font: 400 12px/1.5 var(--f-mono); color: var(--schiefer); }
.doc h1 { overflow-wrap: break-word; hyphens: auto; font-family: var(--f-display); font-size: clamp(30px, 5vw, 56px); font-weight: 650; font-stretch: 80%; line-height: 1; margin-bottom: 12px; }
.doc .doc-intro { font-size: 16px; color: var(--schiefer); margin-bottom: 40px; }
.doc section { padding: 22px 0; border-top: 1px solid var(--linie); break-inside: avoid; }
.doc h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.doc p, .doc li { font-size: 16px; color: #26303d; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 1em; }
.doc li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.doc li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--tinte); }
.doc .doc-stand { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--linie); font: 400 12px/1.5 var(--f-mono); color: var(--schiefer); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ 404 */
.page-404 .nf { padding-top: 48px; padding-bottom: 80px; }
.nf-code { font-family: var(--f-display); font-size: clamp(120px, 22vw, 260px); font-weight: 700; font-stretch: 75%; line-height: .9; margin: 56px 0 32px; color: var(--tinte); }
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; }
.nf-grid h1 { font-size: 26px; margin-bottom: 10px; }
.nf-grid p { color: #2c3a4b; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .r-fig { max-width: 760px; }
  .register .wrap { grid-template-columns: 1fr; gap: 16px; }
  .field-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 20px; max-width: 720px; }
  .field { grid-row: auto; grid-template-rows: none; }
  .field-top { margin-bottom: 24px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .lang { margin-left: auto; }
  .split, .contact-inner { grid-template-columns: 1fr; }
  .register-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--linie); margin-left: 6px; }
  .timeline li { padding: 0 0 36px 28px; }
  .timeline li::before { top: 6px; left: -6px; }
  .nf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .eyebrow { flex-direction: column; gap: 2px; }
  .eyebrow span + span::before { content: none; }
  .header-inner { height: 64px; }
  .wordmark { font-size: 20px; }
  .fig-label, .leader { display: none; }
  .r-stage { aspect-ratio: 120 / 120; }
  .r-svg { position: absolute; top: 0; left: -33.33%; width: 166.67%; max-width: none; height: 100%; }
  .r-legend { display: grid; gap: 6px; margin-top: 14px; font-size: 15px; }
  .r-legend small { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--schiefer); display: inline-block; width: 64px; }
  .register-list { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list dd { font-size: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .doc-alt { width: 100%; }
}

/* ------------------------------------------------------------ print */
@page { size: A4; margin: 18mm 18mm 20mm; }
@media print {
  html, body { background: #fff !important; font-size: 10.5pt; }
  .skip, .site-header, .site-footer, .doc-toolbar { display: none !important; }
  .page-doc main { padding: 0; }
  .doc-wrap { max-width: none; padding: 0; }
  .doc { border: 0; padding: 0; border-radius: 0; }
  .doc h1 { font-size: 26pt; }
  .doc p, .doc li { font-size: 10.5pt; color: #000; }
  .doc h2 { font-size: 11.5pt; }
  .doc section { padding: 10pt 0; }
  .doc a { color: #000; text-decoration: none; }
  .doc-letterhead { margin-bottom: 20pt; }
  * { animation: none !important; transition: none !important; }
  .hero-copy > *, .part, .leader, .fig-label, .centre { opacity: 1 !important; transform: none !important; }
  .guide { stroke-dashoffset: 0 !important; }
  .actions { display: none !important; }
  .contact { background: #fff !important; color: #000 !important; border-top: 1px solid #000; }
  .contact .section-title, .contact-list a, .contact-text, .contact-list dt { color: #000 !important; }
  .section { padding: 24pt 0; break-inside: avoid; }
}
