/* ============================================================
   Design tokens
   Palette: Option A – Vertrauen & Klarheit
   System: Cream (Figtree · inset shadows · border depth)
   Values taken directly from the Claude Design handoff bundle.
   ============================================================ */
:root {
  /* ── Palette A mapped onto Cream token names ── */
  --cream:              #F7F9FC;          /* page bg       */
  --surface:            #FFFFFF;          /* card bg       */
  --ink:                #1E2A38;          /* primary text  */
  --ink-82:             rgba(30,42,56,0.82);
  --ink-40:             rgba(30,42,56,0.4);
  --ink-04:             rgba(30,42,56,0.04);
  --ink-03:             rgba(30,42,56,0.03);
  --muted:              #6B7A8D;
  --border:             #DDE3EC;
  --border-act:         rgba(30,42,56,0.4);
  --navy:               #1B3A5C;          /* dark sections */
  --steel:              #2F7ABF;          /* accent / CTA  */

  /* ── On-dark text (navy sections) ── */
  --on-d-hi:            rgba(247,249,252,0.92);
  --on-d-body:          rgba(247,249,252,0.68);
  --on-d-dim:           rgba(247,249,252,0.42);
  --on-d-line:          rgba(247,249,252,0.09);
  --on-d-line-act:      rgba(247,249,252,0.32);

  /* ── Shadows — exact from bundle ── */
  --shadow-inset:
    rgba(255,255,255,0.2) 0 0.5px 0 0 inset,
    rgba(0,0,0,0.2)       0 0 0 0.5px   inset,
    rgba(0,0,0,0.05)      0 1px 2px     0;
  --shadow-focus:  0 4px 12px rgba(0,0,0,0.1);
  --ring:          0 0 0 2px rgba(59,130,246,0.5);

  /* ── Radius — exact from bundle ── */
  --r-4:    4px;
  --r-6:    6px;
  --r-8:    8px;
  --r-12:   12px;
  --r-16:   16px;
  --r-pill: 9999px;

  --max-w: 1200px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--navy); color: var(--on-d-hi); }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 1.5px; }

/* ============================================================
   Layout — container (exact from bundle)
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   Typography helpers (exact from bundle)
   ============================================================ */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.02;
  margin: 0;
}

.body-lg {
  font-size: 18px;
  line-height: 1.44;
  color: var(--ink-82);
}

/* ============================================================
   Buttons (exact from bundle, colors from Palette A)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 18px;
  border-radius: var(--r-6);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .12s ease, box-shadow .12s ease;
}
.btn:active  { opacity: .8; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Small variant (nav) */
.btn--small { font-size: 14px; padding: 8px 14px; }

/* Primary (steel accent, inset shadow) */
.btn--primary {
  background: var(--steel);
  color: #fff;
  box-shadow: var(--shadow-inset);
}
.btn--primary:hover { opacity: .9; }
.btn--primary:focus-visible { box-shadow: var(--shadow-inset), var(--shadow-focus); }

/* Ghost (nav, light bg) */
.btn--ghost {
  background: transparent;
  color: var(--ink-82);
  border: 1px solid var(--border-act);
}
.btn--ghost:hover { color: var(--ink); }

/* On-dark (white surface on navy) */
.btn--on-dark {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-inset);
}
.btn--on-dark:hover { opacity: .9; }

/* On-dark ghost (transparent, white border) */
.btn--on-dark-ghost {
  background: transparent;
  color: var(--on-d-hi);
  border: 1px solid var(--on-d-line-act);
}
.btn--on-dark-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ============================================================
   Navigation (exact from bundle, adapted for dark bg)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27,58,92,0.92);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.nav.is-scrolled { border-bottom-color: var(--on-d-line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--on-d-hi);
}
.wordmark__dot {
  width: 22px;
  height: 22px;
  border-radius: var(--r-6);
  background: var(--steel);
  box-shadow: var(--shadow-inset);
  flex-shrink: 0;
}
.wordmark__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.wordmark__badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--on-d-body);
  border: 1px solid var(--on-d-line-act);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  line-height: 1.4;
}

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--on-d-body);
  transition: color .12s ease;
}
.nav__links a:hover { color: var(--on-d-hi); }

.nav__cta { display: flex; gap: 10px; }

/* ── Responsive nav ── */
@media (max-width: 768px) { .nav__links { display: none; } }

/* ============================================================
   Hero (bundle layout adapted to 2-column spec)
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  padding: 128px 0 96px;
  overflow: hidden;
}

/* Atmospheric gradient wash — adapted to navy palette */
.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(56% 38% at 18% 20%, rgba(47,122,191,0.35), transparent 65%),
    radial-gradient(48% 32% at 82% 15%, rgba(47,122,191,0.2),  transparent 65%),
    radial-gradient(44% 28% at 65% 85%, rgba(61,122,110,0.18), transparent 65%);
  pointer-events: none;
}

/* Mobile: single column, centred */
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__eyebrow { margin-bottom: -4px; }
.hero__eyebrow.eyebrow { color: var(--on-d-body); }

/* Display headline — from bundle: clamp(40px,7.5vw,84px) · tracking -1.5px · lh 1.04 */
.hero__headline {
  font-size: clamp(40px, 7.5vw, 64px); /* clamp capped for 2-col layout */
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.04;
  color: var(--on-d-hi);
  margin: 0;
}

.hero__sub {
  font-size: 19px;
  line-height: 1.44;
  color: var(--on-d-body);
  max-width: 520px;
  margin: 0 auto;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__meta {
  font-size: 13px;
  color: var(--on-d-dim);
}

/* Browser-chrome preview card */
.hero__preview {
  width: 100%;
  border-radius: var(--r-16);
  overflow: hidden;
  border: 1px solid var(--on-d-line);
  box-shadow: 0 12px 48px rgba(0,0,0,0.32), var(--shadow-focus);
  background: var(--surface);
}

.hero__preview-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.hero__preview-dots { display: flex; gap: 6px; }
.hero__preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-act);
}

.hero__preview-url {
  flex: 1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--ink-03);
  border-radius: var(--r-6);
  padding: 4px 10px;
  text-align: center;
}

.hero__image { width: 100%; height: auto; display: block; }

/* ── Desktop: two columns ── */
@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 80px;
  }

  .hero__text   { flex: 0 0 46%; }
  .hero__preview { flex: 1; min-width: 0; }

  .hero__sub    { margin-left: 0; margin-right: 0; }
  .hero__ctas   { justify-content: flex-start; }
}

@media (max-width: 980px) {
  .hero { padding: 80px 0 64px; }
}

/* ============================================================
   Section head (shared helper)
   ============================================================ */
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head__lede {
  margin: 20px auto 0;
  max-width: 580px;
}

/* ============================================================
   Features (exact card spec from bundle)
   ============================================================ */
section#features { padding: 128px 0; }

/* 3-up grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Card — border depth, no shadow (design system: level 01 · Bordered) */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
}

/* Visual area — exact from bundle: height 140px · r-8 · 1px border */
.feature__visual {
  height: 140px;
  border-radius: var(--r-8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

/* Card title — exact from bundle: 20px · w600 · -0.3px · lh 1.2 */
.feature__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

/* Card body — exact from bundle: 15px · lh 1.55 · muted */
.feature__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 980px) {
  section#features { padding: 80px 0; }
  .features { grid-template-columns: 1fr; }
}

/* ============================================================
   Testimonial (centered blockquote, max-width ~600px)
   ============================================================ */
.testimonial-section { padding: 96px 0; }

.quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Quote mark — exact from bundle: 64px · w600 · ink-40 */
.quote__mark {
  font-size: 64px;
  line-height: 1;
  color: var(--ink-40);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Quote text — from bundle: 32px · w480 · -0.6px · lh 1.25 */
.quote__text {
  font-size: 32px;
  font-weight: 400;      /* Figtree 480 not a named stop — 400 is closest */
  font-style: italic;
  letter-spacing: -0.6px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

/* Author row — from bundle */
.quote__author {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.quote__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(47,122,191,0.5), rgba(27,58,92,0.85));
  border: 1px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .testimonial-section { padding: 64px 0; }
  .quote__text { font-size: 24px; letter-spacing: -0.4px; }
}

/* ============================================================
   CTA Band (spec: full-width primary bg · centred)
   ============================================================ */
.cta-section { padding: 64px 0 128px; }

/* Rounded container with inset shadow (from bundle pattern) */
.cta-band {
  background: var(--navy);
  border-radius: var(--r-16);
  padding: 64px 56px;
  text-align: center;
  box-shadow: var(--shadow-inset);
  overflow: hidden;
}

/* Title — exact from bundle: 48px · w600 · -1.2px · lh 1.05 */
.cta-band__title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin: 0;
  color: var(--on-d-hi);
}

.cta-band__sub {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-d-body);
}

.cta-band__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .cta-section { padding: 64px 0 80px; }
  .cta-band { padding: 48px 32px; }
  .cta-band__title { font-size: 36px; letter-spacing: -0.9px; }
}

/* ============================================================
   Footer (spec: simple · primary bg · no complex grid)
   ============================================================ */
.site-footer {
  padding: 32px 0;
  background: var(--navy);
  border-top: 1px solid var(--on-d-line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--on-d-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--on-d-body);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--on-d-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   Contact page — page hero
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 80px 0 64px;
}
.page-hero__inner { position: relative; }
.page-hero__headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.08;
  color: var(--on-d-hi);
  margin: 0 0 16px;
}
.page-hero__subline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-d-body);
  max-width: 520px;
}

/* ============================================================
   Contact page — form section
   ============================================================ */
.contact-form-section {
  padding: 80px 0 128px;
}

.contact-form-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 1024px) {
  .contact-form-section__inner {
    grid-template-columns: 1fr 380px;
    align-items: flex-start;
  }
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-row--two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .form-row--two { grid-template-columns: 1fr 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.form-field__optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}

/* Input — border-based depth (level 01) */
.form-field__input {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-6);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form-field__input::placeholder { color: var(--muted); }
.form-field__input:focus {
  border-color: transparent;
  box-shadow: var(--ring);
}
.form-field__input--textarea { resize: vertical; min-height: 130px; }

/* Checkbox */
.form-field--checkbox { flex-direction: row; }
.form-field__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}
.form-field__checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--steel);
  cursor: pointer;
}
.form-field__link { color: var(--steel); }
.form-field__link:hover { opacity: .8; }

/* Submit row */
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.form-actions__note { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Aside card */
.contact-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-aside__heading {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.contact-aside__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-aside__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-aside__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--steel);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-aside__step strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-aside__step p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.contact-aside__trust {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Submit button (large) ── */
.btn--large { padding: 12px 24px; font-size: 17px; }

/* ============================================================
   Legal pages (Impressum etc.)
   ============================================================ */
.legal { padding: 64px 0 128px; }

.legal__inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal__block { display: flex; flex-direction: column; gap: 16px; }

.legal__heading {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0;
}

.legal__subheading {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 -4px;
}

.legal__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-82);
  margin: 0;
}
.legal__text a { color: var(--steel); }
