/* ============================================================
   AI-Based Knowledge Center — shared chrome + design system
   Subpages: content page, contact, imprint
   Mirrors the approved Landing Page v7 tokens exactly.
   ============================================================ */
:root {
  --teal:      #0E7C6F;
  --teal-2:    #0A6359;
  --teal-50:   #E6F2F0;
  --teal-100:  #C7E3DE;
  --navy:      #14233C;
  --navy-2:    #21344F;
  --orange:    #F0851F;
  --orange-2:  #D9700E;
  --orange-50: #FDF1E3;
  --orange-100:#F8DCBE;
  --ink:       #14233C;
  --ink-2:     #3A4660;
  --muted:     #69728A;
  --muted-2:   #97A0B4;

  --sec-white: #FFFFFF;
  --sec-teal:  #E9F2EF;
  --sec-sand:  #F3EEE3;

  --page:      #FFFFFF;
  --panel:     #FFFFFF;
  --card:      #FFFFFF;
  --soft:      #F4F1EA;
  --hairline:  #E6E1D7;
  --hairline-2:#D8D2C6;
  --line-soft: #ECE8DF;

  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-card: 0 1px 2px rgba(20,35,60,.04), 0 8px 20px -12px rgba(20,35,60,.14);
  --shadow-panel: 0 1px 3px rgba(20,35,60,.04), 0 30px 60px -34px rgba(20,35,60,.26);
  --shadow-soft: 0 6px 16px -6px rgba(20,35,60,.12), 0 18px 40px -20px rgba(20,35,60,.22);

  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Manrope', 'Hanken Grotesk', system-ui, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; padding: 14px 22px; border-radius: 8px; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 17px 26px; font-size: 15px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--teal); border-color: var(--hairline-2); }
.btn-outline:hover { background: var(--teal-50); border-color: var(--teal-100); }

/* ===== Eyebrow ===== */
.eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--teal); border-radius: 2px; flex-shrink: 0; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 13px; }
.logo img { height: 46px; display: block; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo-sciarc { border-left: 1px solid var(--hairline); padding-left: 16px; }
.logo-sciarc img { height: 28px; display: block; transition: opacity .15s; }
.logo-sciarc:hover img { opacity: .8; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

/* ===== Page hero (tinted band) ===== */
.page-hero { background: var(--sec-teal); border-bottom: 1px solid var(--hairline); }
.page-hero-in { padding-block: 76px 68px; max-width: 860px; }
.page-hero .eyebrow { justify-content: flex-start; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; color: var(--navy); margin: 0 0 20px; text-wrap: balance; }
.page-hero p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 60ch; text-wrap: pretty; }
.page-hero-meta { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.page-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero-meta svg { width: 15px; height: 15px; color: var(--teal); }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--teal); }
.crumbs svg { width: 13px; height: 13px; opacity: .6; }

/* ===== Section ===== */
.section { padding-block: 72px; }
.section-sand { background: var(--sec-sand); }
.section-teal { background: var(--sec-teal); }

/* ===== Prose (content page) ===== */
.prose { font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--font-display); font-size: 27px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--navy); margin-top: 48px; margin-bottom: 0; }
.prose h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); margin-top: 32px; }
.prose p { margin: 0; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose a.link { color: var(--teal); font-weight: 600; border-bottom: 1px solid var(--teal-100); }
.prose a.link:hover { border-color: var(--teal); }
.prose ul.ticks { display: flex; flex-direction: column; gap: 12px; }
.prose ul.ticks li { position: relative; padding-left: 32px; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--teal-50); }
.prose ul.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* pull quote */
.pullquote { border-left: 3px solid var(--teal); padding: 6px 0 6px 26px; font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--navy); }

/* TOC sidebar */
.content-grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; font-weight: 500; }
.toc ul { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--hairline); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--teal); }
.toc a.active { color: var(--navy); font-weight: 600; border-color: var(--teal); }

/* info card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-card); }
.info-card .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.info-card .ic svg { width: 21px; height: 21px; }
.info-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 8px; letter-spacing: -0.01em; }
.info-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ===== Footer ===== */
.footer { background: #101B2E; color: #E7EAF0; padding: 64px 0 36px; }
.footer-in { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 40px; }
.footer-brand .logo img { height: 46px; background: #fff; padding: 9px 12px; border-radius: 12px; }
.footer-brand p { font-size: 13.5px; color: rgba(231,234,240,.6); margin: 16px 0 0; max-width: 30ch; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(231,234,240,.45); margin: 0 0 14px; font-weight: 500; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: rgba(231,234,240,.82); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; margin-top: 40px; border-top: 1px solid rgba(231,234,240,.14); font-size: 12px; color: rgba(231,234,240,.4); font-family: var(--font-mono); }
.footer-bottom .wrap { display: contents; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-soft); }
.form-card h2 { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--navy); margin: 0 0 6px; letter-spacing: -0.015em; }
.form-card .sub { font-size: 14.5px; color: var(--muted); margin: 0 0 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { padding: 12px 14px; border: 1px solid var(--hairline-2); border-radius: 9px; background: #fff; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-bottom: 22px; }
.form-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--teal); flex-shrink: 0; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; text-align: center; }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-tile { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-card); }
.contact-tile .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.contact-tile .ic svg { width: 20px; height: 20px; }
.contact-tile h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.contact-tile p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.contact-tile a { color: var(--teal); font-weight: 600; }
.contact-disclaimer { display: flex; gap: 12px; align-items: flex-start; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--r-md); padding: 20px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.contact-disclaimer svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }

/* ===== Legal / Impressum ===== */
.legal { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); max-width: 760px; }
.legal-block { padding-block: 26px; border-bottom: 1px solid var(--hairline); }
.legal-block:last-child { border-bottom: none; }
.legal h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 14px; letter-spacing: -0.015em; }
.legal h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 20px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }
.legal strong { color: var(--navy); }
.legal a.link { color: var(--teal); font-weight: 600; border-bottom: 1px solid var(--teal-100); }
.legal-dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 24px; margin: 0; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; color: var(--navy); font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 36px; }
  .toc { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .page-hero-in { padding-block: 52px 44px; }
  .section { padding-block: 52px; }
  .card-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .legal-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-dl dd { margin-bottom: 12px; }
  .footer-in { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
}

/* ===== Mobile burger menu + logo fix (subpage nav) ===== */
.logo, .logo img { flex-shrink: 0; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--hairline); background: #fff; color: var(--navy); align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger .x { display: none; }
.nav.open .nav-burger .x { display: block; }
.nav.open .nav-burger .m { display: none; }

@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  .nav-right { gap: 12px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-soft);
    padding: 8px 0; display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 24px; font-size: 15px; }
}
@media (max-width: 600px) {
  .logo img { height: 38px; }
  .brand { gap: 10px; }
  .logo-sciarc { padding-left: 10px; }
  .logo-sciarc img { height: 20px; }
  .nav .btn-navy { padding: 10px 14px; font-size: 13.5px; }
}

/* Sign-in: standalone button on desktop, inside burger dropdown on mobile */
.nav-signin-only { display: none; }
@media (max-width: 760px) {
  .nav .nav-cta { display: none; }
  .nav-links a.nav-signin-only { display: block; color: var(--teal); font-weight: 600; }
}
