/* ============================================================
   Kinpreda GmbH — Stylesheet (EXPERIMENTAL · "Quiet authority")
   Plain CSS. No framework. No build step. No external requests.
   ============================================================ */

/* ------------------------------------------------------------
   Self-hosted fonts (no external requests)
   Inter — body/UI · Source Serif 4 — display headings
   Licences: assets/fonts/Inter-OFL.txt, SourceSerif4-OFL.txt (SIL OFL 1.1)
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/Inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/Inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/SourceSerif4-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/SourceSerif4-600.woff2') format('woff2');
}

/* ------------------------------------------------------------
   Tokens
   ------------------------------------------------------------ */
:root {
  /* Surfaces */
  --navy:       #061733;
  --navy-deep:  #04122a;   /* darker navy for header/footer — not black */
  --paper:      #ffffff;
  --paper-2:    #f6f8fb;

  /* Ink (on paper) */
  --ink:        #14233b;
  --body:       #44546b;
  --muted:      #6a7888;
  --faint:      #9aa6b4;

  /* On navy */
  --on-navy:        rgba(255, 255, 255, 0.92);
  --on-navy-soft:   rgba(255, 255, 255, 0.66);
  --on-navy-muted:  rgba(255, 255, 255, 0.50);
  --on-navy-faint:  rgba(255, 255, 255, 0.34);

  /* Lines */
  --line:       #e5eaf1;
  --line-2:     #d6deea;
  --line-navy:  rgba(255, 255, 255, 0.12);

  /* The single restrained accent (echoes the logo, never neon) */
  --accent:     #1bb3a4;
  --accent-ink: #0c7d72;   /* accessible accent for text on paper */
  /* Brand gradient — deep jewel tones (not neon), rich enough to feel
     valuable when used at scale on the numerals and bars */
  --accent-bar: linear-gradient(95deg, #3a78bf 0%, #12a193 52%, #2f9f59 100%);
  /* Signature mark — a tiny gradient concentration–time (PK) curve that
     echoes the logo. Replaces the generic gradient rectangles. Inline SVG,
     no external request. Softened with stroke-opacity so it is not aggressive. */
  --accent-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 28'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%232b88ae' stop-opacity='.65'/%3E%3Cstop offset='.53' stop-color='%2312a193' stop-opacity='.65'/%3E%3Cstop offset='1' stop-color='%2323a071' stop-opacity='.65'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 23C12 23 14 5 22 5 34 5 37 20 57 21' fill='none' stroke='url(%23g)' stroke-width='3.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* Second signature mark — the logo's molecule (connected nodes), used
     beside the numerals so the page draws on both halves of the logo. */
  --accent-atom: url("item-molecule.svg");
  /* Third mark — a report/document (gradient stroke, thicker lines to match
     the curve), used beside the decision-ready reporting numeral. */
  --accent-report: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 42'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='6' y1='0' x2='30' y2='0'%3E%3Cstop offset='0' stop-color='%232b88ae' stop-opacity='.65'/%3E%3Cstop offset='.53' stop-color='%2312a193' stop-opacity='.65'/%3E%3Cstop offset='1' stop-color='%2323a071' stop-opacity='.65'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4H22L30 12V38H6Z' stroke-width='4'/%3E%3Cpath d='M22 4V12H30' stroke-width='4'/%3E%3Cpath d='M12 22H24' stroke-width='2.8'/%3E%3Cpath d='M12 28H24' stroke-width='2.8'/%3E%3C/g%3E%3C/svg%3E");

  /* Type */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', 'New York', 'Iowan Old Style',
                'Palatino Linotype', Georgia, ui-serif, serif;
  --font-mono:  ui-monospace, 'SF Mono', 'SFMono-Regular', 'Cascadia Mono',
                'Segoe UI Mono', 'Roboto Mono', Consolas, monospace;

  /* Metrics */
  --max-w:      1140px;
  --pad-x:      clamp(1.5rem, 5vw, 4rem);
  --section-pad: clamp(2.5rem, 4vw, 4rem);
  --radius:     3px;
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

/* ------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Eyebrow — a small monospace technical label with a short accent tick.
   This is the only place the accent colour appears outside the logo. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(1.1rem, 1.8vw, 1.6rem);
}
.eyebrow::before {
  content: '';
  width: 54px;
  height: 25px;
  background: var(--accent-curve) left center / contain no-repeat;
  flex: none;
}
.overline {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #44556b;
}

/* Signature curve mark — used above the language-version headings */
.accent-rule {
  width: 54px;
  height: 25px;
  border: none;
  background: var(--accent-curve) left center / contain no-repeat;
  margin-bottom: 0.9rem;
}

/* The Areas-of-focus and Contact eyebrows use a gradient rectangle bar
   instead of the curve (Status keeps the curve). */
.focus .eyebrow::before,
.contact .eyebrow::before {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-bar);
}

/* ------------------------------------------------------------
   Header — quiet, flat, grounded
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-navy);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; list-style: none; }

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--on-navy-muted);
  transition: color 200ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--on-navy); }
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  color: var(--on-navy);
}

/* ------------------------------------------------------------
   Hero — asymmetric split: statement left, logo right
   ------------------------------------------------------------ */
.hero {
  background: var(--navy);
  border-bottom: 1px solid var(--line-navy);
  padding-block: clamp(2.75rem, 5vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-text { min-width: 0; }

.hero .overline { color: var(--on-navy-muted); }

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.1rem + 3vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-wrap: balance;
  margin-bottom: clamp(1.25rem, 2vw, 1.6rem);
}

.hero-sub {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  line-height: 1.7;
  color: var(--on-navy-soft);
  max-width: 46ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* Contact chip — "Get in touch" kicker + email + arrow square */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.8rem 0.8rem 0.8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}
.hero-cta-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.15;
  text-align: left;
}
.hero-cta-kicker {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.hero-cta-email {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-navy);
}
.hero-cta-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(27, 179, 164, 0.12);
  color: var(--accent);
  flex: none;
  transition: background 240ms ease, transform 240ms ease;
}
.hero-cta-arrow svg { width: 15px; height: 15px; }
.hero-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 179, 164, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.hero-cta:hover .hero-cta-arrow { background: rgba(27, 179, 164, 0.2); transform: translateX(2px); }
.hero-cta:active { transform: translateY(0); }
.hero-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hero-figure { display: flex; justify-content: center; }
.hero-logo { width: clamp(220px, 62vw, 360px); height: auto; }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(3rem, 5vw, 5rem); }
  .hero-text   { grid-column: 1; grid-row: 1; }
  .hero-figure { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .hero-logo   { width: 100%; max-width: 440px; }
}

/* ------------------------------------------------------------
   Focus — a spec-sheet: hairline-divided columns, no cards
   ------------------------------------------------------------ */
.focus {
  background: var(--paper);
  padding-block: var(--section-pad);
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.focus-item {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

/* Large, elegant serif numeral — the focal point of each column —
   with a confident gradient bar tied directly beneath it. */
.focus-num {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.75vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 1.25rem;
}
/* The logo's molecule, sitting to the right of the numeral.
   The shape is taller than wide, so the box is sized accordingly. */
.focus-num::after {
  content: '';
  width: 36px;
  height: 38px;
  background: var(--accent-atom) center / contain no-repeat;
  flex: none;
}

/* Per-panel marks: 01 molecule (default) · 02 concentration–time curve ·
   03 report. Only the image and box dimensions change. */
.focus-item:nth-child(2) .focus-num::after {
  width: 52px;
  height: 26px;
  background-image: var(--accent-curve);
}
.focus-item:nth-child(3) .focus-num::after {
  width: 30px;
  height: 34px;
  background-image: var(--accent-report);
}

.focus-item h3 {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.focus-item p {
  font-size: 0.9375rem;
  line-height: 1.74;
  color: var(--body);
  max-width: 42ch;
}

@media (min-width: 760px) {
  .focus-grid {
    /* Middle panel a touch wider so its longer title fits on one line,
       keeping all three panels equal in height. */
    grid-template-columns: 1fr 1.18fr 1fr;
    border-bottom: 1px solid var(--line);
  }
  .focus-item {
    border-bottom: none;
    padding: clamp(1.75rem, 2.6vw, 2.4rem) clamp(1.5rem, 2.4vw, 2.25rem);
    border-left: 1px solid var(--line);
  }
  .focus-item:first-child { border-left: none; padding-left: 0; }
  .focus-item:last-child  { padding-right: 0; }
}

/* ------------------------------------------------------------
   Status — a quiet, left-aligned statement (no widget)
   ------------------------------------------------------------ */
.status {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: var(--section-pad);
}

.status-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 0.9rem + 1.1vw, 1.625rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 30ch;
}
/* keep the running sentence readable but not too wide */
.status-text { max-width: 38ch; }

.status-text a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 200ms ease;
}
.status-text a:hover { border-bottom-color: var(--accent-ink); }

@media (min-width: 760px) {
  .status .container { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 4rem); }
  .status .eyebrow { margin-bottom: 0; padding-top: 0.4rem; }
}

/* ------------------------------------------------------------
   Contact — statement left, data column right
   ------------------------------------------------------------ */
.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: var(--section-pad);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.contact-body p {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--body);
  max-width: 42ch;
}

.contact-details { display: block; }

.contact-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-child { border-top: 1px solid var(--line); }

.contact-item-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item a,
.contact-item span { font-size: 1rem; color: var(--ink); }
.contact-item a {
  border-bottom: 1px solid var(--line-2);
  transition: border-color 200ms ease, color 200ms ease;
}
.contact-item a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }
.contact-item a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 760px) {
  .contact-inner { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line-navy);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 1.1rem; }
.footer-brand img { height: 24px; width: auto; opacity: 0.92; }
.footer-brand-sep { width: 1px; height: 16px; background: var(--line-navy); }
.footer-brand-meta { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-brand-name { font-size: 0.8125rem; font-weight: 500; color: var(--on-navy-soft); }
.footer-brand-location {
  font-size: 0.75rem;
  color: var(--on-navy-faint);
}

/* LinkedIn brand icon — inline SVG, monochrome (inherits link colour),
   sitting to the left of the label and vertically centred via flex.
   No external request; renders from first-party markup. */
.link-linkedin svg {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.2em;
  margin-right: 0.4rem;
  fill: currentColor;
}

/* Location (house) icon — inline SVG, solid/filled, monochrome, first-party */
.loc-icon {
  display: inline-block;
  width: 1.31em;
  height: 1.31em;
  vertical-align: -0.28em;
  margin-right: 0.45rem;
  fill: currentColor;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; align-items: baseline; list-style: none; }
.footer-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--on-navy-muted);
  transition: color 200ms ease;
}
.footer-links a:hover { color: var(--on-navy); }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; color: var(--on-navy); }

/* ------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------ */
.legal-hero {
  background: var(--navy);
  border-bottom: 1px solid var(--line-navy);
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2rem, 3.5vw, 3rem);
}
.legal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  letter-spacing: -0.01em;
  color: #ffffff;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--on-navy-muted);
  margin-bottom: 1.75rem;
  transition: color 200ms ease;
}
.legal-back:hover { color: var(--on-navy); }
.legal-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.legal-content { background: var(--paper); padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.legal-content .container { max-width: 720px; }

.legal-section {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.legal-section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.legal-section p,
.legal-section li {
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 0.875rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { padding-left: 1.25rem; margin-bottom: 0.875rem; }
.legal-section li { margin-bottom: 0.35rem; }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-section a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 200ms ease;
}
.legal-section a:hover { border-bottom-color: var(--accent-ink); }
.placeholder { color: var(--faint); font-style: italic; }

/* Bilingual jump links */
.lang-switch { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.lang-switch a {
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--on-navy-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.lang-switch a:hover { color: var(--on-navy); border-bottom-color: var(--accent); }
.lang-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Language band — clear divider between EN / DE versions */
.lang-band {
  scroll-margin-top: 90px;
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}
.lang-band:first-child { margin-top: 0; }
.lang-band .eyebrow { margin-bottom: 1rem; }
.lang-band h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.lang-band p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------
   Responsive — header stacks when the mono nav no longer fits
   ------------------------------------------------------------ */
@media (max-width: 620px) {
  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding-block: 0.8rem;
    row-gap: 0.6rem;
  }
  .site-nav { width: 100%; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .contact-item { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
