/* ============================================================
   codAIx / crAIready — Design Tokens & Global Styles
   Customer-centric redesign · navy + cyan · DM Sans + Instrument Serif
   ============================================================ */

/* ============================================================
   Self-hosted fonts (DSGVO — no external Google Fonts request).
   Files in /assets/fonts/ are byte-identical to what Google serves;
   the unicode-range split lets latin-only visitors skip the latin-ext
   files (~84 KB → ~52 KB on the wire for typical DACH visitors).
   ============================================================ */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors — match the existing brand */
  --navy-950: #050b1f;
  --navy-900: #0a1330;
  --navy-800: #11203f;
  --navy-700: #1c2c4f;
  --navy-600: #283c66;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --amber-400: #fbbf24;
  --red-400: #f87171;
  --green-400: #34d399;

  /* Typography */
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Instrument Serif', 'Source Serif Pro', Georgia, serif;

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --r-sm: 0.375rem;
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
  --r-2xl: 1.25rem;

  /* Shadows */
  --shadow-glow: 0 10px 40px -10px rgba(34, 211, 238, 0.25);
  --shadow-card: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px -6px rgba(0,0,0,.3);

  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--gray-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-400); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cyan-300); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 var(--space-4); color: #fff; }
p { margin: 0 0 var(--space-4); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--navy-800); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

/* ---------- Skip link / accessibility ---------- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--cyan-400); color: var(--navy-900);
  padding: var(--space-3) var(--space-4); z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-20) 0; }
.section--tight { padding: var(--space-16) 0; }
.section--alt { background: var(--navy-950); }
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-cyan-400 { color: var(--cyan-400); }
.text-white { color: #fff; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-16 { margin-top: var(--space-16); }
.maxw-prose { max-width: 720px; }
.maxw-3xl { max-width: 800px; }
.maxw-4xl { max-width: 960px; }

/* ---------- Typography scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan-400); font-weight: 600;
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--cyan-400); }

h1, .h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); letter-spacing: -0.015em; }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4, .h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--gray-300);
  line-height: 1.55;
}

.text-gradient {
  background: linear-gradient(110deg, var(--cyan-300), var(--cyan-500) 60%, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kicker {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-400);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--cyan-400);
  color: var(--navy-900);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { background: var(--cyan-300); transform: translateY(-1px); color: var(--navy-900); }

.btn--secondary {
  background: transparent; color: #fff;
  border-color: var(--gray-600);
}
.btn--secondary:hover { background: var(--navy-800); border-color: var(--cyan-400); color: var(--cyan-400); }

.btn--ghost {
  background: transparent; color: var(--cyan-400);
  border-color: transparent; padding-left: 0; padding-right: 0;
}
.btn--ghost:hover { color: var(--cyan-300); transform: translateX(2px); }

.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--navy-800);
  border: 1px solid var(--gray-800);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  transition: border-color .2s ease, transform .2s ease;
  height: 100%;
}
.card:hover { border-color: var(--navy-600); transform: translateY(-2px); }
.card--accent { border-color: rgba(34, 211, 238, 0.3); background: linear-gradient(180deg, rgba(34,211,238,0.04), transparent); }
.card--danger { border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.04); }
.card--warn { border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.04); }
.card--ok { border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.04); }
.card--inactive { opacity: 0.55; filter: grayscale(0.4); }
.card__badge-inactive {
  display: inline-block; background: rgba(248,113,113,0.12); color: var(--red-400);
  border: 1px solid rgba(248,113,113,0.3);
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  margin-bottom: var(--space-3);
}
.card__actions { margin-top: var(--space-4); }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(34, 211, 238, 0.1); color: var(--cyan-400);
  margin-bottom: var(--space-4);
}

.card h3 { margin-bottom: var(--space-3); font-size: 1.25rem; }
.card p { color: var(--gray-400); font-size: 0.95rem; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 19, 48, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--maxw); margin: 0 auto;
}
.site-header__logo {
  display: inline-flex; align-items: center;
  line-height: 0;
}
.site-header__logo img,
.site-header__logo svg { height: 34px; width: auto; display: block; }
.site-header__logo:hover { opacity: 0.85; }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  color: var(--gray-300); font-size: 0.92rem;
  font-weight: 500; padding: 0.5rem 0;
  position: relative;
}
.nav a:hover { color: #fff; }
.nav a.active { color: var(--cyan-400); }

/* Buttons inside the nav need to escape the .nav a (0,2,0) text/padding
   reset above — selectors below are 0,2,1, just enough to win. */
.nav a.btn { padding: 0.85rem 1.4rem; }
.nav a.btn--primary,
.nav a.btn--primary:hover { color: var(--navy-900); }
.nav a.btn--primary:hover { background: var(--cyan-300); }

.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff; padding: 8px;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--space-4);
    transform: translateY(-110%); transition: transform .2s ease;
    box-shadow: var(--shadow-card);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: var(--space-3) var(--space-2); border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav .btn { margin-top: var(--space-3); }
}

/* ---------- Hero / mesh background ---------- */
.gradient-mesh {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(34,211,238,0.15), transparent 60%),
    radial-gradient(50% 60% at 90% 30%, rgba(99,102,241,0.12), transparent 60%),
    radial-gradient(60% 60% at 70% 90%, rgba(34,211,238,0.08), transparent 60%),
    var(--navy-900);
}

.hero { padding: var(--space-24) 0 var(--space-20); position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 60ch; margin-top: var(--space-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__meta { margin-top: var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-6); color: var(--gray-400); font-size: 0.85rem; }
.hero__meta strong { color: #fff; font-weight: 600; }

/* ---------- Stats bar ---------- */
.stats {
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat {
  border: 1px solid var(--gray-800);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  background: var(--navy-800);
}
.stat__value {
  font-family: var(--font-display); font-size: 2.4rem;
  color: var(--cyan-400); line-height: 1; margin-bottom: var(--space-2);
}
.stat__label { color: var(--gray-400); font-size: 0.9rem; }
.stat--danger .stat__value { color: var(--red-400); }
.stat--warn .stat__value { color: var(--amber-400); }

/* ---------- Section heading ---------- */
.section-heading { margin-bottom: var(--space-12); max-width: 760px; }
.section-heading h2 { margin-bottom: var(--space-4); }

/* ---------- Pain-list & checks ---------- */
.list-pain, .list-check {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-3);
}
.list-pain li, .list-check li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.list-pain li::before {
  content: "!"; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(248,113,113,0.15); color: var(--red-400);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; margin-top: 2px;
}
.list-check li::before {
  content: "✓"; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(52,211,153,0.15); color: var(--green-400);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; margin-top: 2px;
}

/* ---------- Steps / numbered ---------- */
.steps { display: grid; gap: var(--space-6); counter-reset: step; }
.step { display: flex; gap: var(--space-4); }
.step__num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: rgba(34,211,238,0.1); color: var(--cyan-400);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); font-size: 1.1rem;
}

/* ---------- Persona grid (priorisiert) ---------- */
.persona-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 2fr 1fr 1fr;
}
.persona--featured {
  border-color: rgba(34,211,238,0.4);
  background: linear-gradient(180deg, rgba(34,211,238,0.06), var(--navy-900));
}
@media (max-width: 880px) {
  .persona-grid { grid-template-columns: 1fr; }
}

/* ---------- Persona cards ---------- */
.persona {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--gray-800); border-radius: var(--r-xl);
  padding: var(--space-8);
}
.persona__title { color: var(--cyan-400); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.persona h3 { font-size: 1.4rem; margin: var(--space-3) 0 var(--space-4); }
.persona__quote { font-style: italic; color: var(--gray-300); border-left: 2px solid var(--cyan-400); padding-left: var(--space-4); margin: var(--space-4) 0; }

/* ---------- Comparison table ---------- */
.compare {
  border: 1px solid var(--gray-800); border-radius: var(--r-xl);
  overflow: hidden;
}
.compare__row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--gray-800);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row > div { padding: var(--space-4) var(--space-6); }
.compare__row--head { background: var(--navy-800); font-weight: 600; }
.compare__row--head .compare__col-them { color: var(--gray-400); }
.compare__row--head .compare__col-us { color: var(--cyan-400); }
.compare__col-label { color: var(--gray-300); }
.compare__col-them { color: var(--gray-400); }
.compare__col-us { color: #fff; font-weight: 500; background: rgba(34,211,238,0.04); }

@media (max-width: 720px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__row > div { padding: var(--space-3) var(--space-4); }
  .compare__col-them, .compare__col-us { border-top: 1px solid rgba(255,255,255,0.05); }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: var(--space-6); grid-template-columns: repeat(3, 1fr); }
.pricing__card {
  border: 1px solid var(--gray-800);
  background: var(--navy-800);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  display: flex; flex-direction: column;
}
.pricing__card--featured {
  border-color: var(--cyan-400);
  background: linear-gradient(180deg, rgba(34,211,238,0.06), var(--navy-800));
  position: relative;
}
.pricing__badge {
  position: absolute; top: -12px; right: var(--space-6);
  background: var(--cyan-400); color: var(--navy-900);
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing__name { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: var(--space-2); }
.pricing__price { font-family: var(--font-display); font-size: 2.4rem; color: #fff; margin-bottom: 2px; }
.pricing__price small { font-size: 0.95rem; font-family: var(--font-sans); color: var(--gray-400); font-weight: 400; }
.pricing__hint { color: var(--gray-400); font-size: 0.85rem; margin-bottom: var(--space-6); }
.pricing__features { list-style: none; padding: 0; margin: 0 0 var(--space-6); flex: 1; }
.pricing__features li { padding: var(--space-2) 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--gray-300); display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; }
.pricing__features li::before { content: "✓"; color: var(--cyan-400); font-weight: 700; flex-shrink: 0; }

/* ---------- Knowledge / article cards ---------- */
.article-list { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.article-card {
  background: var(--navy-800); border: 1px solid var(--gray-800);
  border-radius: var(--r-xl); padding: var(--space-8);
  display: flex; flex-direction: column; height: 100%;
  transition: border-color .2s, transform .2s;
}
.article-card:hover { border-color: var(--cyan-400); transform: translateY(-2px); }
.article-card__date { color: var(--gray-400); font-size: 0.82rem; margin-bottom: var(--space-2); }
.article-card h3 { font-size: 1.2rem; margin-bottom: var(--space-3); }
.article-card h3 a { color: #fff; }
.article-card h3 a:hover { color: var(--cyan-400); }
.article-card__teaser { color: var(--gray-400); font-size: 0.92rem; flex: 1; }
.article-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-4); }
.article-card__tags span {
  font-size: 0.7rem; background: var(--navy-700); color: var(--gray-300);
  padding: 3px 8px; border-radius: 999px;
}

/* ---------- Article body (long form) ---------- */
.article-body {
  max-width: 720px; margin: 0 auto;
  color: var(--gray-300);
}
.article-body h1 { margin-bottom: var(--space-6); font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; }
.article-body h2 { margin: var(--space-12) 0 var(--space-4); font-size: 1.7rem; color: #fff; }
.article-body h3 { margin: var(--space-8) 0 var(--space-3); font-size: 1.3rem; }
.article-body p { font-size: 1.02rem; line-height: 1.75; margin-bottom: var(--space-4); }
.article-body strong { color: #fff; }
.article-body ul, .article-body ol { padding-left: 1.4em; line-height: 1.7; }
.article-body li { margin-bottom: var(--space-2); }
.article-body blockquote {
  border-left: 3px solid var(--cyan-400);
  padding: var(--space-2) var(--space-6);
  margin: var(--space-6) 0;
  color: var(--gray-300); font-style: italic;
}
.article-body em { color: var(--gray-300); }
.article-body code { background: var(--navy-800); padding: 2px 6px; border-radius: 4px; }
.article-body pre { background: var(--navy-950); padding: var(--space-4); border-radius: var(--r-md); overflow-x: auto; border: 1px solid var(--gray-800); }
.article-body pre code { background: transparent; padding: 0; }
.article-body table { border-collapse: collapse; margin: var(--space-6) 0; width: 100%; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--gray-700); padding: var(--space-2) var(--space-3); text-align: left; }
.article-body th { background: var(--navy-800); color: #fff; }
.article-body hr { border: 0; border-top: 1px solid var(--gray-800); margin: var(--space-12) 0; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-800);
  color: var(--gray-400); font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--navy-950);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}
.site-footer__grid {
  display: grid; gap: var(--space-8);
  grid-template-columns: 1.5fr repeat(3, 1fr);
}
.site-footer h4 { color: #fff; font-size: 0.85rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--gray-400); font-size: 0.92rem; }
.site-footer a:hover { color: var(--cyan-400); }
.site-footer__brand { color: var(--gray-400); font-size: 0.95rem; max-width: 300px; }
.site-footer__brand img,
.site-footer__brand svg { display: block; }
.site-footer__bottom {
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--gray-500); font-size: 0.8rem;
}
.site-footer__bottom-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }

@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer extras ---------- */
.site-footer__b2b, .site-footer__ai {
  margin-top: var(--space-6);
  font-size: 0.78rem;
  color: var(--gray-500);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: var(--space-4);
}
.site-footer__brand strong { font-family: var(--font-display); font-size: 1.2rem; }

/* ---------- Dynamic article body (rendered from markdown) ---------- */
.article-body { color: var(--gray-200); font-size: 1.05rem; line-height: 1.7; }
.article-body p { margin: 0 0 var(--space-4); }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  color: #fff; font-family: var(--font-display); margin: var(--space-8) 0 var(--space-3);
}
.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body h4 { font-size: 1.05rem; }
.article-body ul, .article-body ol { margin: 0 0 var(--space-4) 1.5em; padding: 0; }
.article-body li { margin-bottom: var(--space-2); }
.article-body a { color: var(--cyan-400); }
/* Buttons-as-links inside the article body must not pick up the cyan
   anchor colour — otherwise .btn--primary becomes cyan-on-cyan and the
   label only appears on hover (when .btn--primary:hover swaps it). */
.article-body a.btn--primary,
.article-body a.btn--primary:hover { color: var(--navy-900); }
.article-body a.btn--secondary { color: #fff; }
.article-body a.btn--ghost { color: var(--cyan-400); }
.article-body strong { color: #fff; }
.article-body code {
  background: var(--navy-800); padding: 0.1em 0.4em; border-radius: 0.3em;
  font-size: 0.92em; color: #e2e8f0;
}
.article-body blockquote {
  margin: var(--space-4) 0; padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--cyan-400); background: rgba(34,211,238,0.05);
  color: var(--gray-200); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.article-body hr {
  border: 0; border-top: 1px solid var(--gray-800);
  margin: var(--space-8) 0;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }
label { display: block; color: var(--gray-300); font-size: 0.9rem; margin-bottom: var(--space-2); font-weight: 500; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--navy-800); border: 1px solid var(--gray-700);
  border-radius: var(--r-md); color: #fff; font-family: inherit; font-size: 0.95rem;
  transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
textarea { min-height: 140px; resize: vertical; }
button[disabled], input[type=submit][disabled] { opacity: 0.55; cursor: not-allowed; }

/* Form submission status (replaces mailto: redirect feedback) */
.form-status {
  margin-top: var(--space-3);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  line-height: 1.45;
  display: none;
}
.form-status[data-state="info"]    { display: block; background: rgba(148,163,184,0.10); color: var(--gray-300); border: 1px solid rgba(148,163,184,0.25); }
.form-status[data-state="success"] { display: block; background: rgba(16,185,129,0.10); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.form-status[data-state="error"]   { display: block; background: rgba(239,68,68,0.10); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .section { padding: var(--space-16) 0; }
  .hero { padding: var(--space-16) 0 var(--space-12); }
}
@media (min-width: 720px) and (max-width: 1100px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Misc utilities ---------- */
.divider { border-top: 1px solid var(--gray-800); margin: var(--space-16) 0; }
.tag {
  display: inline-block; background: rgba(34,211,238,0.1); color: var(--cyan-400);
  font-size: 0.78rem; padding: 4px 10px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.02em;
}
.callout {
  background: linear-gradient(180deg, rgba(34,211,238,0.06), transparent);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: var(--r-xl);
  padding: var(--space-8);
}

/* ---------- Team ---------- */
.team-hero {
  border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--gray-800);
}
.team-hero img { width: 100%; height: auto; display: block; }
.team-card {
  background: var(--navy-800); border: 1px solid var(--gray-800);
  border-radius: var(--r-xl); padding: var(--space-6);
  transition: border-color .2s, transform .2s;
}
.team-card:hover { border-color: var(--navy-600); transform: translateY(-2px); }
.team-card img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin-bottom: var(--space-4);
  border: 2px solid var(--cyan-400);
}
.team-card h3 { margin-bottom: 4px; font-size: 1.1rem; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-16) 0; }
.not-found__code { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 9rem); color: var(--cyan-400); line-height: 1; }

/* ---------- Article toolbar (back-link + PDF download) ---------- */
.article-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap;
}
.article-toolbar .btn { margin: 0; }
.article-toolbar__pdf {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: transparent; border: 1px solid var(--gray-700);
  color: var(--gray-200);
  padding: 0.55rem 0.95rem; border-radius: var(--r-md);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.article-toolbar__pdf:hover {
  border-color: var(--cyan-400); color: var(--cyan-400);
  background: rgba(34,211,238,0.06);
}
.article-toolbar__pdf svg { width: 16px; height: 16px; }

/* ============================================================
   Print stylesheet — scientific 2-column A4 layout for articles.
   Triggered both by the browser's File → Print menu and by the
   "Als PDF speichern" button (which calls window.print()).
   ============================================================ */
@media print {
  @page {
    size: A4;
    margin: 2cm 1.6cm 2.2cm;
  }

  /* Reset to a paper-friendly palette */
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-size: 10pt;
    line-height: 1.42;
  }

  /* Hide site chrome and interactive elements */
  .site-header, .site-footer, .skip-link, .nav, .nav-toggle,
  .article-toolbar, .article-toolbar__pdf,
  /* Final CTA / callout / related-articles section */
  section.section--alt,
  .callout {
    display: none !important;
  }

  /* Hero becomes a flat title block */
  .hero, .hero.gradient-mesh {
    background: none !important;
    padding: 0 !important;
    margin: 0 0 0.8cm 0;
    border-bottom: 0.5pt solid #000;
    padding-bottom: 0.4cm !important;
  }
  .hero .container { padding: 0; max-width: none; }
  .hero h1 {
    color: #000 !important;
    font-size: 22pt; font-weight: 400; line-height: 1.15;
    margin: 0 0 0.35cm 0;
  }
  .hero h1 .text-gradient {
    background: none !important; -webkit-text-fill-color: #000 !important;
    color: #000 !important;
  }
  .hero .lead {
    color: #333 !important;
    font-size: 10.5pt; font-style: italic;
    margin: 0;
  }
  .hero .eyebrow {
    color: #666 !important;
    font-size: 8pt; letter-spacing: 0.12em; text-transform: uppercase;
    display: block; margin-bottom: 0.25cm;
  }

  /* Main content section — full width, no padding */
  section.section {
    padding: 0 !important;
    background: none !important;
  }
  section.section .container { padding: 0; max-width: none; }

  /* Two-column scientific body */
  .article-body {
    column-count: 2;
    column-gap: 0.8cm;
    column-rule: 0.5pt solid #ccc;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    color: #111 !important;
    font-size: 10pt;
    line-height: 1.42;
  }

  /* Article-body typography */
  .article-body p { margin: 0 0 0.4em; orphans: 3; widows: 3; }
  .article-body h1, .article-body h2, .article-body h3, .article-body h4 {
    color: #000 !important;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 700;
    page-break-after: avoid;
    break-after: avoid-column;
  }
  /* Major headings span both columns; sub-headings stay in-column */
  .article-body h1, .article-body h2 { column-span: all; }
  .article-body h1 { font-size: 14pt; margin: 1.1em 0 0.45em; }
  .article-body h2 { font-size: 12.5pt; margin: 1em 0 0.4em; }
  .article-body h3 { font-size: 10.5pt; margin: 0.9em 0 0.3em; }
  .article-body h4 { font-size: 10pt; margin: 0.8em 0 0.3em; font-style: italic; font-weight: 400; }

  .article-body strong { color: #000 !important; font-weight: 700; }
  .article-body em { color: #000 !important; }
  .article-body a {
    color: #000 !important;
    text-decoration: underline; text-decoration-thickness: 0.25pt;
  }
  /* Print the target URL after each external link — academic style */
  .article-body a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 8pt; color: #555;
    word-break: break-all;
  }

  .article-body ul, .article-body ol {
    margin: 0 0 0.4em 1.1em; padding: 0;
    break-inside: avoid-column;
  }
  .article-body li { margin-bottom: 0.15em; }

  .article-body code {
    font-family: 'Courier New', monospace;
    background: #f0f0f0 !important; color: #000 !important;
    padding: 0 0.25em; border-radius: 1pt; font-size: 9pt;
  }
  .article-body blockquote {
    border-left: 1pt solid #000 !important; background: none !important;
    color: #222 !important; font-style: italic;
    margin: 0.45em 0; padding: 0 0 0 0.5em;
    border-radius: 0;
    break-inside: avoid;
  }
  .article-body hr {
    border: 0; border-top: 0.5pt solid #999;
    margin: 0.6em 0;
    column-span: all;
  }
  .article-body img { max-width: 100%; height: auto; }

  /* Article-meta line (date / author / tags) — full width banner */
  .article-meta, .article-body .article-meta {
    column-span: all;
    font-size: 8.5pt; color: #555;
    margin: 0 0 0.5cm; padding-bottom: 0.2cm;
    border-bottom: 0.5pt solid #ddd;
    font-family: 'Instrument Serif', serif;
  }

  /* Tags list at the bottom of the dynamic template */
  .article-card__tags { display: none !important; }

  /* No interactive button highlights in print */
  .btn, button { display: none !important; }

  /* Running header injected at the top of every page via the
     document body. Print engines that support running elements
     (Chromium 96+, Firefox 110+) use the @page boxes below for
     the running header / page numbering; others fall back to
     the printed body-content order. */
  @page {
    @top-left  { content: "crAIready · Wissen"; font-family: 'Instrument Serif', serif; font-size: 8pt; color: #888; }
    @top-right { content: "codAIx GmbH"; font-family: 'Instrument Serif', serif; font-size: 8pt; color: #888; }
    @bottom-center {
      content: "Seite " counter(page) " / " counter(pages);
      font-family: 'Instrument Serif', serif; font-size: 8pt; color: #888;
    }
  }
}
