@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/IBMPlexSans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --text: #16201a;
  --muted: #666b62;
  --line: rgba(22, 32, 26, 0.16);
  --accent: #1f6b3d;
  --deep: #10271a;
  --on-deep: #efeadf;
  --on-deep-muted: rgba(239, 234, 223, 0.66);
  --on-deep-line: rgba(239, 234, 223, 0.2);
  --ok: #1f6b3d;
  --warn: #8a6100;
  --bad: #b3261e;
  --bar-ok: #4c9a68;
  --bar-warn: #d0a12a;
  --bar-bad: #c9453d;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1310;
    --text: #ece8de;
    --muted: #9a9f95;
    --line: rgba(236, 232, 222, 0.16);
    --accent: #6fbf8b;
    --deep: #060a08;
    --ok: #6fbf8b;
    --warn: #dcb44c;
    --bad: #ef7067;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] [lang="de"],
html[lang="de"] [lang="en"] { display: none; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; margin: 0; letter-spacing: -0.02em; }

.wrap { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.eyebrow {
  font-size: 0.95rem; font-weight: 500;
  color: var(--muted); margin: 0;
}
.muted { color: var(--muted); }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; color: #fff; }
.top.plain { position: static; color: var(--text); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 600; font-size: 1.2rem; line-height: 1; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.brand small { font-size: 0.95rem; font-weight: 400; opacity: 0.7; margin-left: 4px; }
.top nav { display: flex; gap: 12px 30px; flex-wrap: wrap; }
.top nav a, .lang {
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none; color: inherit;
}
.lang { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 4px; cursor: pointer; }
.top a:hover, .lang:hover { color: inherit; opacity: 0.7; }

/* hero */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; color: #fff; background: #10271a; }
.hero > img { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 12, 0.5) 0%, rgba(8, 16, 12, 0.08) 38%, rgba(8, 16, 12, 0.78) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 7vw, 96px); display: grid; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.75rem); line-height: 1.05; max-width: 13em; }
.hero h1 em { font-style: normal; }
.hero .lede { max-width: 30em; margin: 28px 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, 0.86); }
.more {
  display: inline-block; margin-top: 32px; padding-bottom: 6px;
  font: 500 1rem/1 var(--sans);
  text-decoration: none; border-bottom: 1px solid currentColor;
}
.more::after { content: "\2192"; margin-left: 12px; }

/* sections */
section { padding: clamp(72px, 11vw, 168px) 0; }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.cols > .eyebrow { grid-column: 1 / span 3; padding-top: 0.9em; }
.cols > .body { grid-column: 5 / -1; }
.statement { font-family: var(--sans); font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.3; letter-spacing: -0.01em; margin: 0; max-width: 22em; }
.statement em { font-style: normal; color: var(--accent); }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin-top: clamp(56px, 8vw, 112px); }
.figures div { border-top: 1px solid var(--line); padding-top: 20px; }
.figures b { display: block; font: 600 clamp(2.8rem, 5.5vw, 4.5rem)/1 var(--sans); letter-spacing: -0.03em; }
.figures p { margin: 14px 0 0; color: var(--muted); max-width: 20em; }

.plate { margin: 0; }
.plate .frame { aspect-ratio: 21 / 9; overflow: hidden; }
figcaption { font-size: 0.9rem; color: var(--muted); padding-top: 12px; }
.plate figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }

.heading { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; margin-top: 10px; margin-bottom: clamp(40px, 6vw, 88px); }
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(48px, 6vw, 88px) 24px; }
.people article { grid-column: span 2; }
.people article.wide { grid-column: span 3; }
.people figure { margin: 0 0 22px; }
.people .frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.people .wide .frame { aspect-ratio: 3 / 2; }
.people h3 { font-size: 1.35rem; line-height: 1.2; margin: 4px 0 8px; }
.people p:last-child { color: var(--muted); max-width: 26em; margin: 0; }

.clients { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.clients li { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; align-items: baseline; border-top: 1px solid var(--line); padding: clamp(24px, 3vw, 44px) 0; }
.clients h3 { grid-column: span 5; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.clients p { grid-column: 7 / -1; margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; }
.split .frame { min-height: 520px; }
.split .text { padding: clamp(56px, 8vw, 128px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 22px; }

.deep { background: var(--deep); color: var(--on-deep); }
.deep .eyebrow, .deep .muted { color: var(--on-deep-muted); }
.deep a:hover { color: inherit; opacity: 0.75; }
.mail { font: 600 clamp(1.8rem, 5vw, 4rem)/1.05 var(--sans); letter-spacing: -0.02em; margin: 20px 0 16px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin-top: clamp(48px, 7vw, 96px); }
.facts div { border-top: 1px solid var(--on-deep-line); padding-top: 18px; }
.facts p { margin: 10px 0 0; font-size: 1.15rem; line-height: 1.3; }

footer { background: var(--deep); color: var(--on-deep-muted); font-size: 0.9rem; padding: 0 0 48px; }
footer .wrap > div { border-top: 1px solid var(--on-deep-line); padding-top: 28px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; }
footer p { grid-column: span 8; max-width: 52em; margin: 0; }
footer p.legal { grid-column: span 4; text-align: right; }
footer.plain { background: none; color: var(--muted); }
footer.plain .wrap > div { border-color: var(--line); }

/* service desk */
.signin { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100svh; }
.signin .photo { position: relative; color: #fff; background: #10271a; min-height: 280px; }
.signin .photo > img { position: absolute; inset: 0; }
.signin .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 12, 0.45), rgba(8, 16, 12, 0.2) 40%, rgba(8, 16, 12, 0.8)); }
.signin .photo > * { position: relative; z-index: 1; }
.signin .photo .brand { position: absolute; top: 28px; left: var(--gutter); }
.signin .photo blockquote { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vw, 72px); margin: 0; font: 600 clamp(1.6rem, 3vw, 2.5rem)/1.12 var(--sans); letter-spacing: -0.02em; max-width: 13em; }
.signin .panel { display: flex; flex-direction: column; justify-content: center; padding: 56px var(--gutter); }
.signin form, .signin .panel > * { width: 100%; max-width: 400px; }
.signin h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.1; margin: 10px 0 28px; }
label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--muted); margin-top: 26px; }
input[type="text"], input[type="password"] {
  width: 100%; font: 400 1.1rem/1.4 var(--sans); color: var(--text);
  background: none; border: 0; border-bottom: 1px solid var(--text); border-radius: 0; padding: 10px 0;
}
input:focus { outline: none; border-bottom-width: 2px; padding-bottom: 9px; }
.btn {
  display: block; width: 100%; margin-top: 40px; padding: 18px 24px; cursor: pointer;
  font: 600 1rem/1 var(--sans);
  background: var(--text); color: var(--bg); border: 0; border-radius: 0;
}
.btn:hover { opacity: 0.86; }
.answer { margin: 32px 0 0; padding-left: 18px; border-left: 1px solid var(--text); font: 400 1.15rem/1.45 var(--sans); }
.answer[hidden] { display: none; }
.signin .below { margin: 40px 0 0; color: var(--muted); font-size: 0.95rem; }
.signin .lang { align-self: flex-start; width: auto; margin-top: 28px; color: var(--muted); }

/* status page */
.status-head { padding: clamp(56px, 9vw, 128px) 0 clamp(40px, 6vw, 80px); }
.status-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; margin-top: 14px; max-width: 16em; }
.status-head h1 em { font-style: normal; color: var(--accent); }
.tight { padding: 0 0 clamp(72px, 10vw, 144px); }
.row { border-top: 1px solid var(--line); padding: 26px 0 22px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px 24px; align-items: center; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { grid-column: span 4; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.row h3 small { display: block; font: 400 0.9rem/1.5 var(--sans); letter-spacing: 0; color: var(--muted); }
.row .bars { grid-column: span 5; }
.row .state { grid-column: span 3; text-align: right; font-size: 0.95rem; font-weight: 500; }
.state.ok { color: var(--ok); }
.state.warn { color: var(--warn); }
.state.bad { color: var(--bad); }
.bars { display: flex; gap: 2px; height: 30px; }
.bars i { flex: 1; background: var(--bar-ok); }
.bars i.w { background: var(--bar-warn); }
.bars i.b { background: var(--bar-bad); }
.incident { border-top: 1px solid var(--line); padding: clamp(24px, 3vw, 40px) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; align-items: baseline; }
.incident:last-child { border-bottom: 1px solid var(--line); }
.incident .when { grid-column: span 3; }
.incident .when .state { display: block; margin-bottom: 4px; font-size: 0.95rem; font-weight: 500; }
.incident .when span { color: var(--muted); font-size: 0.9rem; }
.incident h3 { grid-column: span 4; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.incident p { grid-column: span 5; margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .cols > .eyebrow, .cols > .body { grid-column: 1 / -1; }
  .figures, .facts { grid-template-columns: 1fr; }
  .figures div + div { margin-top: 36px; }
  .plate .frame { aspect-ratio: 3 / 2; }
  .people article, .people article.wide { grid-column: 1 / -1; }
  .clients h3, .clients p { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .split .frame { min-height: 0; aspect-ratio: 3 / 2; }
  footer p, footer p.legal { grid-column: 1 / -1; text-align: left; }
  .signin { grid-template-columns: 1fr; grid-template-rows: 300px 1fr; }
  .row h3, .row .bars, .row .state { grid-column: 1 / -1; text-align: left; }
  .incident .when, .incident h3, .incident p { grid-column: 1 / -1; }
}
