/* Crosby Thirty-Three GmbH — corporate page
   Dark-only, monochrome, institutional. Recreated from the Claude Design
   prototype as production CSS. No external requests of any kind. */

:root {
  --bg:            #141517; /* base background */
  --surface:       #1E2023; /* elevated surface */
  --text:          #E6E7E9; /* primary text */
  --muted:         #9AA0A6; /* secondary / muted text (clears WCAG AA on --bg) */
  --hairline:      #2C2E31; /* low-contrast rules / borders */
  --hairline-2:    #34373b; /* slightly lifted hairline */
  --accent:        #5C7A93; /* cool slate — graphical only (arrow, borders) */
  --accent-text:   #64829B; /* slate for label TEXT — clears WCAG AA (4.53:1) */
  --accent-hi:     #8A9BA8; /* steel, link hover */
  --label:         #7E8388; /* mono label grey — AA-tuned (4.78:1) */
  --faint:         #7E8388; /* register text — AA-tuned (4.78:1) */
  --inactive:      #7E8388; /* inactive toggle / non-binding note — AA-tuned (4.78:1) */
  --dot:           #3a3d41; /* toggle separator */

  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --measure: 1040px;
}

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

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Long German compound words shouldn't force horizontal scroll on
     ultra-narrow screens; only breaks a word that would otherwise overflow. */
  overflow-wrap: break-word;
}

::selection { background: var(--accent); color: var(--bg); }

a { -webkit-tap-highlight-color: transparent; }

img, svg { display: block; }

button {
  font-family: inherit;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Quiet, single fade-in. Honours reduced-motion. */
@keyframes c33fade {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
.page {
  min-height: 100vh;
  animation: c33fade .5s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 40px;
}
.shell--narrow { max-width: 760px; padding: 0 48px; }

/* ------------------------------- Header --------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  gap: 20px;
}
.shell--narrow .masthead { padding: 30px 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  height: 34px;
  width: auto;
  flex: none;
}
.brand__word {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text);
  white-space: nowrap;
}

/* Language toggle */
.langtoggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  flex: none;
}
.langtoggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  letter-spacing: inherit;
  font-size: inherit;
  color: var(--inactive);
  transition: color .18s ease;
}
.langtoggle__btn[aria-pressed="true"] { color: var(--text); }
.langtoggle__btn:hover { color: var(--accent-hi); }
.langtoggle__sep { color: var(--dot); }

/* -------------------------------- Hero ---------------------------------- */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 36px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
}

.hero {
  padding: 28px 0 84px;
  border-bottom: 1px solid var(--hairline);
}
.hero__lead {
  font-family: var(--sans);
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 820px;
  color: var(--text);
  text-wrap: pretty;
}
.hero__rest {
  font-family: var(--sans);
  font-size: clamp(16px, 1.85vw, 24px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 26px 0 0;
  max-width: 700px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ------------------------------- Rows ----------------------------------- */
.row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.row__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.row__body { min-width: 0; }
.lede {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  text-wrap: pretty;
}

/* Triad */
.triad { display: block; }
.triad__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding-bottom: 24px;
  align-items: baseline;
}
.triad__item:last-child { padding-bottom: 0; }
.triad__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--label);
}
.triad__text { max-width: 560px; }
.triad__term {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.triad__desc {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* Brand pointer */
.pointer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  align-self: start;
  transition: opacity .18s ease;
}
.pointer:hover { opacity: .7; }
.pointer__arrow {
  width: 18px;
  height: 12px;
  flex: none;
  color: var(--accent);
}
.pointer__url {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .02em;
  font-weight: 400;
}

/* Contact */
.contact__org {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
}
.contact__email {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-2);
  padding-bottom: 2px;
  letter-spacing: .02em;
  transition: color .18s ease, border-color .18s ease;
}
.contact__email:hover { color: var(--accent-hi); border-bottom-color: var(--accent); }

/* ------------------------------ Footer ---------------------------------- */
.colophon {
  margin-top: 60px;
  padding: 28px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  color: var(--label);
}
.colophon--ruled { border-top: 1px solid var(--hairline); margin-top: 80px; }
.colophon__links { display: flex; gap: 20px; align-items: center; }
.colophon__link {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease;
}
.colophon__link:hover { color: var(--text); }
.colophon__meta { display: flex; gap: 20px; flex-wrap: wrap; }
.colophon__reg { color: var(--faint); }

/* --------------------------- Legal pages -------------------------------- */
.legal { padding: 88px 0 0; }
.legal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--label);
}
.legal__title {
  font-family: var(--sans);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 18px 0 0;
  color: var(--text);
}
.legal__note {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-left: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--muted);
}

/* Language blocks — only the active language's legal text is shown. The
   toggle sets <html lang>; these rules reveal the matching block. With no
   JavaScript the page stays in German (the authored default), which is the
   legally binding version. */
.lblock { margin-top: 16px; }
[data-lang-block="en"] { display: none; }
html[lang="en"] [data-lang-block="de"] { display: none; }
html[lang="en"] [data-lang-block="en"] { display: block; }
.legal__section { padding: 40px 0 0; }
.legal__heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
}
.legal__body {
  padding-top: 18px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-line;
  text-wrap: pretty;
}
.legal__body a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-2);
  transition: color .18s ease, border-color .18s ease;
}
.legal__body a:hover { color: var(--accent-hi); border-bottom-color: var(--accent); }
.legal__prevails {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--inactive);
}

.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;
}

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 720px) {
  .shell { padding: 0 24px; }
  .shell--narrow { padding: 0 24px; }

  .masthead, .shell--narrow .masthead { padding: 22px 0; }
  .brand__word { font-size: 16px; }

  .hero { padding: 24px 0 56px; }

  .row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }
  .triad__item { grid-template-columns: 32px 1fr; gap: 12px; }

  .legal { padding: 56px 0 0; }
  .meta-row { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  /* Let the masthead wrap the toggle below the brand on very narrow
     phones instead of clipping it / forcing horizontal scroll. */
  .masthead { flex-wrap: wrap; row-gap: 10px; }
  .langtoggle { margin-left: auto; font-size: 11px; letter-spacing: .1em; }
  .brand__word { font-size: 15px; }
  .colophon { flex-direction: column; }
}
