/* ============================================================
   CHRISTIAN STEINAU — Personal Website
   Design System & Styles
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Colors — Primary (Teal) */
  --clr-primary: #1B4D5C;
  --clr-primary-light: #E8F1F3;
  --clr-primary-dark: #0F2D36;

  /* Colors — Accent (Amber) */
  --clr-accent: #D4872A;
  --clr-accent-light: #FCF0E3;
  --clr-accent-dark: #A8691E;

  /* Colors — Neutral */
  --clr-white: #FFFFFF;
  --clr-neutral-50: #F9FAFB;
  --clr-neutral-100: #F3F4F6;
  --clr-neutral-200: #E5E7EB;
  --clr-neutral-300: #D1D5DB;
  --clr-neutral-400: #9CA3AF;
  --clr-neutral-500: #6B7280;
  --clr-neutral-600: #4B5563;
  --clr-neutral-700: #374151;
  --clr-neutral-800: #1F2937;
  --clr-neutral-900: #111827;

  /* Semantic Colors */
  --clr-surface: var(--clr-white);
  --clr-surface-alt: var(--clr-neutral-50);
  --clr-surface-dark: var(--clr-neutral-900);
  --clr-text: var(--clr-neutral-800);
  --clr-text-muted: var(--clr-neutral-500);
  --clr-text-inverse: var(--clr-white);
  --clr-border: var(--clr-neutral-200);

  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --fs-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  --ls-tight: -0.025em;
  --ls-normal: 0;
  --ls-wide: 0.04em;

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

  --sp-section: clamp(4rem, 3rem + 4vw, 7rem);
  --sp-content: var(--sp-12);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --container-padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --border-w: 1px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-fast: 150ms ease;
  --ease-base: 250ms ease;
  --ease-slow: 400ms ease;
}


/* === CSS RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background: var(--clr-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--clr-primary); text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--clr-primary-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--clr-neutral-900);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p + p { margin-top: var(--sp-4); }
ul, ol { padding-left: var(--sp-6); }
li + li { margin-top: var(--sp-2); }
::selection { background: var(--clr-accent-light); color: var(--clr-neutral-900); }


/* === UTILITY CLASSES === */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.container--narrow { max-width: var(--container-narrow); }
.grid { display: grid; gap: var(--sp-8); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.text-muted { color: var(--clr-text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.img-placeholder { background: var(--clr-neutral-200); }


/* === COMPONENT 1: NAV / HEADER === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-w) solid var(--clr-border);
  transition: box-shadow var(--ease-base);
}
.nav--scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-4) var(--container-padding);
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-neutral-900);
  text-decoration: none;
  letter-spacing: var(--ls-tight);
}
.nav__logo:hover { color: var(--clr-primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links li {
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-neutral-600);
  text-decoration: none;
  transition: color var(--ease-fast);
  position: relative;
}
.nav__link:hover,
.nav__link--active {
  color: var(--clr-neutral-900);
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--clr-neutral-700);
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle.is-active .icon-open { display: none; }
.nav__toggle.is-active .icon-close { display: block; }


/* === COMPONENT 2: HERO === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-neutral-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,45,54,0.85) 0%, rgba(17,24,39,0.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-32) var(--container-padding) var(--sp-20);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  max-width: 14ch;
  margin-bottom: var(--sp-6);
}
.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.8);
  line-height: var(--lh-normal);
  max-width: 40ch;
  margin-bottom: var(--sp-10);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}


/* === COMPONENT 3: SECTION === */
.section { padding: var(--sp-section) 0; }
.section--alt { background: var(--clr-surface-alt); }
.section--dark { background: var(--clr-surface-dark); color: var(--clr-text-inverse); }
.section--dark h2, .section--dark h3 { color: var(--clr-white); }
.section--accent { background: var(--clr-primary-light); }
.section__header {
  max-width: var(--container-narrow);
  margin: 0 auto var(--sp-content);
}
.section__header--center { text-align: center; }
.section__overline {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}
.section__title { margin-bottom: var(--sp-4); }
.section__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: var(--lh-normal);
}
.section--dark .section__subtitle { color: rgba(255,255,255,0.7); }
.section--dark .section__overline { color: var(--clr-accent); }

/* Page Header (top of subpages) */
.page-header {
  padding: var(--sp-24) 0 var(--sp-16);
  background: var(--clr-neutral-50);
  border-bottom: var(--border-w) solid var(--clr-border);
}
.page-header__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}
.page-header__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 50ch;
}


/* === COMPONENT 4: CARD === */
.card {
  background: var(--clr-surface);
  border: var(--border-w) solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--ease-base), transform var(--ease-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--clr-neutral-200);
}
.card__image-wrap--16-9 { aspect-ratio: 16/9; }
.card__image-wrap--3-2 { aspect-ratio: 3/2; }
.card__image-wrap--4-5 { aspect-ratio: 4/5; }
.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.card:hover .card__image { transform: scale(1.03); }
.card__body { padding: var(--sp-6); }
.card__overline {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-2);
}
.card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-3);
  color: var(--clr-neutral-900);
}
.card__text {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-4);
}
.card__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.card__link:hover { color: var(--clr-primary-dark); }
.card__link::after { content: ' \2192'; }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.card__date {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-2);
}

/* Card as link */
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { color: inherit; }


/* === COMPONENT 5: BUTTON === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--ease-base);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--clr-neutral-900);
  color: var(--clr-white);
  border-color: var(--clr-neutral-900);
}
.btn--primary:hover {
  background: var(--clr-neutral-700);
  border-color: var(--clr-neutral-700);
  color: var(--clr-white);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-neutral-900);
  border-color: var(--clr-neutral-900);
}
.btn--secondary:hover {
  background: var(--clr-neutral-900);
  color: var(--clr-white);
}

.btn--accent {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}
.btn--accent:hover {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  color: var(--clr-white);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--clr-white);
  color: var(--clr-white);
}

.btn--sm { padding: var(--sp-2) var(--sp-5); font-size: var(--fs-xs); }
.btn--lg { padding: var(--sp-4) var(--sp-10); font-size: var(--fs-base); }

.btn--link {
  background: none;
  border: none;
  padding: 0;
  color: var(--clr-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}
.btn--link:hover { color: var(--clr-primary-dark); }
.btn--link::after { content: ' \2192'; transition: transform var(--ease-fast); display: inline-block; }
.btn--link:hover::after { transform: translateX(3px); }


/* === COMPONENT 6: TAG / BADGE === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--clr-neutral-100);
  color: var(--clr-neutral-600);
  white-space: nowrap;
}
.tag--primary { background: var(--clr-primary-light); color: var(--clr-primary-dark); }
.tag--accent { background: var(--clr-accent-light); color: var(--clr-accent-dark); }
.tag--teal { background: #E0F2F1; color: #00695C; }
.tag--blue { background: #E3F2FD; color: #1565C0; }

/* Tag as filter button */
.tag-filter {
  cursor: pointer;
  border: var(--border-w) solid transparent;
  transition: all var(--ease-fast);
}
.tag-filter:hover { border-color: var(--clr-neutral-300); }
.tag-filter.is-active {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}


/* === COMPONENT 7: VISION BAND / QUOTE === */
.vision-band {
  padding: var(--sp-section) var(--container-padding);
  background: var(--clr-surface-dark);
  text-align: center;
}
.vision-band__text {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--clr-white);
  max-width: 20ch;
  margin: 0 auto var(--sp-10);
  letter-spacing: var(--ls-tight);
}
.vision-band .btn { margin-top: var(--sp-2); }

.quote {
  background: var(--clr-primary-light);
  border-left: 4px solid var(--clr-primary);
  padding: var(--sp-8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--sp-8) 0;
}
.quote__text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  color: var(--clr-primary-dark);
}


/* === COMPONENT 8: SERVICE LIST === */
.service-item {
  padding: var(--sp-12) 0;
  border-bottom: var(--border-w) solid var(--clr-border);
}
.service-item:last-child { border-bottom: none; }
.service-item__number {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
}
.service-item__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}
.service-item__text {
  color: var(--clr-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
  margin-bottom: var(--sp-5);
}
.service-item__bullets {
  list-style: none;
  padding: 0;
  margin-bottom: var(--sp-6);
}
.service-item__bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--clr-neutral-600);
}
.service-item__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--clr-accent);
  border-radius: var(--radius-full);
}


/* === COMPONENT 9: FORM === */
.form-group { margin-bottom: var(--sp-6); }
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-neutral-700);
  margin-bottom: var(--sp-2);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-white);
  border: var(--border-w) solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-light);
}
.form-textarea { min-height: 150px; resize: vertical; }
.form-hint {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: var(--sp-2);
}


/* === COMPONENT 10: FOOTER === */
.footer {
  background: var(--clr-neutral-900);
  color: var(--clr-neutral-300);
  padding: var(--sp-20) 0 var(--sp-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
}
.footer__brand-text {
  font-size: var(--fs-sm);
  color: var(--clr-neutral-400);
  line-height: var(--lh-relaxed);
  max-width: 30ch;
  margin-top: var(--sp-4);
}
.footer__heading {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-neutral-400);
  margin-bottom: var(--sp-5);
}
.footer__nav {
  list-style: none;
  padding: 0;
}
.footer__nav li + li { margin-top: var(--sp-3); }
.footer__nav a {
  font-size: var(--fs-sm);
  color: var(--clr-neutral-300);
  text-decoration: none;
  transition: color var(--ease-fast);
}
.footer__nav a:hover { color: var(--clr-white); }
.footer__bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-neutral-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--clr-neutral-500);
}
.footer__legal {
  display: flex;
  gap: var(--sp-6);
}
.footer__legal a {
  color: var(--clr-neutral-500);
  text-decoration: none;
}
.footer__legal a:hover { color: var(--clr-neutral-300); }


/* === PAGE-SPECIFIC: INTRO SECTION (Home) === */
.intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: center;
}
.intro__image-wrap {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-neutral-200);
}
.intro__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro__text { font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--clr-neutral-600); margin-bottom: var(--sp-6); }


/* === PAGE-SPECIFIC: TEASER (Featured Project) === */
.teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.teaser--reverse { direction: rtl; }
.teaser--reverse > * { direction: ltr; }
.teaser__image-wrap {
  aspect-ratio: 3/2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-neutral-200);
}
.teaser__image { width: 100%; height: 100%; object-fit: cover; }
.teaser__overline {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}
.teaser__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}
.teaser__text {
  color: var(--clr-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}


/* === PAGE-SPECIFIC: TIMELINE === */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: var(--sp-8) 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-neutral-200);
  transform: translateY(-50%);
}
.timeline__item {
  position: relative;
  text-align: center;
  flex: 1;
}
.timeline__dot {
  width: 14px;
  height: 14px;
  background: var(--clr-accent);
  border: 3px solid var(--clr-white);
  border-radius: 50%;
  margin: 0 auto var(--sp-4);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--clr-accent);
}
.timeline__year {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--clr-neutral-900);
  margin-bottom: var(--sp-1);
}
.timeline__label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}


/* === PAGE-SPECIFIC: ARTICLE (Insight Detail) === */
.article-hero {
  position: relative;
  background: var(--clr-neutral-900);
}
.article-hero__image-wrap {
  aspect-ratio: 16/9;
  max-height: 480px;
  overflow: hidden;
}
.article-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.article-hero__content {
  padding: var(--sp-12) 0;
}
.article-hero__title {
  font-size: var(--fs-3xl);
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
}

.article-body {
  padding: var(--sp-16) 0;
}
.article-body h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}
.article-body h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}
.article-body p {
  line-height: var(--lh-relaxed);
  color: var(--clr-neutral-600);
}
.article-body ul, .article-body ol {
  margin: var(--sp-4) 0;
  color: var(--clr-neutral-600);
}
.article-body li { margin-top: var(--sp-2); line-height: var(--lh-normal); }
.article-body strong { color: var(--clr-neutral-800); font-weight: var(--fw-semibold); }
.article-body a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--clr-primary-dark); }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-primary);
  margin-bottom: var(--sp-8);
}
.article-back::before { content: '\2190'; }
.article-back:hover { color: var(--clr-primary-dark); }


/* === PAGE-SPECIFIC: CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-info__item {
  margin-bottom: var(--sp-6);
}
.contact-info__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-2);
}
.contact-info__value {
  font-size: var(--fs-base);
  color: var(--clr-neutral-800);
}
.contact-info__value a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 2px; }


/* === LOADING STATE === */
.loading {
  text-align: center;
  padding: var(--sp-20);
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
}
.loading::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  margin: var(--sp-4) auto 0;
  border: 2px solid var(--clr-neutral-200);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* noscript */
.noscript-message {
  padding: var(--sp-8);
  text-align: center;
  background: var(--clr-accent-light);
  color: var(--clr-accent-dark);
  font-weight: var(--fw-medium);
}


/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  padding: var(--sp-24) var(--container-padding) var(--sp-8);
  flex-direction: column;
  gap: var(--sp-2);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__link {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-neutral-900);
  text-decoration: none;
  padding: var(--sp-4) 0;
  border-bottom: var(--border-w) solid var(--clr-border);
  transition: color var(--ease-fast);
}
.mobile-menu__link:hover { color: var(--clr-primary); }


/* === HERO SPLIT (Portrait visible) === */
.hero--split {
  min-height: auto;
  background: var(--clr-neutral-50);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.hero--split .hero__content {
  padding: var(--sp-24) var(--container-padding) var(--sp-24) calc((100vw - var(--container-max)) / 2 + var(--container-padding));
  max-width: none;
  margin: 0;
}
@media (min-width: 1201px) {
  .hero--split .hero__content { padding-left: calc((100vw - var(--container-max)) / 2 + var(--container-padding)); }
}
@media (max-width: 1200px) {
  .hero--split .hero__content { padding-left: var(--container-padding); }
}
.hero--split .hero__title {
  color: var(--clr-neutral-900);
  font-size: var(--fs-3xl);
  max-width: 18ch;
}
.hero--split .hero__subtitle {
  color: var(--clr-neutral-600);
  max-width: 36ch;
}
.hero--split .hero__portrait {
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  position: relative;
  background: var(--clr-neutral-200);
}
.hero--split .hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero--split .hero__actions .btn--accent { }
.hero--split .hero__actions .btn--ghost {
  color: var(--clr-neutral-700);
  border-color: var(--clr-neutral-300);
}
.hero--split .hero__actions .btn--ghost:hover {
  background: var(--clr-neutral-100);
  border-color: var(--clr-neutral-600);
  color: var(--clr-neutral-900);
}


/* === ACTION BOARD (Photo Mosaic) === */
.action-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: var(--sp-3);
}
.action-board__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-neutral-200);
  position: relative;
}
.action-board__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.action-board__item:hover img { transform: scale(1.05); }
/* Span patterns for visual variety */
.action-board__item--wide { grid-column: span 2; }
.action-board__item--tall { grid-row: span 2; }
.action-board__item--feature { grid-column: span 2; grid-row: span 2; }
.action-board__links {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  justify-content: center;
}


/* === KI-LAB TEASER === */
.ki-lab-teaser {
  background: var(--clr-primary-light);
  border: var(--border-w) solid var(--clr-primary);
  border-radius: var(--radius-xl);
  padding: var(--sp-12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: center;
}
.ki-lab-teaser__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
  color: var(--clr-primary-dark);
}
.ki-lab-teaser__text {
  color: var(--clr-neutral-600);
  line-height: var(--lh-relaxed);
  max-width: 55ch;
}

/* KI-Lab Page specifics */
.ki-lab-principles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.ki-lab-principles li {
  padding: var(--sp-5);
  background: var(--clr-neutral-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--clr-accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}


/* === FACTS LIST (Kurzfakten) === */
.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.facts-list li {
  padding: var(--sp-3) 0;
  border-bottom: var(--border-w) solid var(--clr-border);
  font-size: var(--fs-sm);
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}
.facts-list li:last-child { border-bottom: none; }
.facts-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  margin-top: 2px;
}


/* === CONTACT SIMPLE === */
.contact-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-simple__image-wrap {
  aspect-ratio: 3/2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-neutral-200);
}
.contact-simple__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-simple__links {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.contact-simple__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-simple__link:hover { color: var(--clr-primary-dark); }


/* === ANIMATIONS (subtle) === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .intro { grid-template-columns: 1fr; gap: var(--sp-8); }
  .intro__image-wrap { max-width: 400px; }
  .teaser { grid-template-columns: 1fr; gap: var(--sp-8); }
  .teaser--reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-simple { grid-template-columns: 1fr; }
  .ki-lab-teaser { grid-template-columns: 1fr; }
  .action-board { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; }

  /* Hero Split — Tablet: Stack with card-like image */
  .hero--split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero--split .hero__portrait {
    min-height: 400px;
    max-height: 500px;
    order: -1;
  }
  .hero--split .hero__content {
    padding: var(--sp-16) var(--container-padding) var(--sp-20);
    text-align: center;
  }
  .hero--split .hero__title { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero--split .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero--split .hero__actions { justify-content: center; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--sp-4); text-align: center; }

  /* Hero Split — Mobile: Contained image with breathing room */
  .hero--split {
    grid-template-columns: 1fr;
    background: var(--clr-white);
  }
  .hero--split .hero__portrait {
    min-height: 280px;
    max-height: 420px;
    order: -1;
    margin: var(--sp-4) var(--container-padding) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .hero--split .hero__content {
    padding: var(--sp-10) var(--container-padding) var(--sp-12);
    text-align: center;
  }
  .hero--split .hero__title { max-width: 100%; }
  .hero--split .hero__subtitle { max-width: 100%; }
  .hero--split .hero__actions { justify-content: center; flex-direction: column; align-items: center; }

  .hero { min-height: 70vh; }
  .hero__title { max-width: 100%; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .action-board { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; }
  .action-board__item--feature { grid-column: span 2; }
  .article-hero__content { padding: var(--sp-8) 0; }
}
