/* ==========================================================================
   MEMA CONSULTING - Design System
   Version: 1.0.0
   Font: Outfit (Google Fonts)
   Namespace: .mema-*
   ========================================================================== */

/* ==========================================================================
   1. CSS RESET (Modern Minimal)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* Skip to content link */
.mema-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: .75rem 1.5rem;
  background: var(--mema-green);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: top .2s;
}
.mema-skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mema-green);
  outline-offset: 2px;
}

/* ==========================================================================
   2. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* ---- CI Colors ---- */
  --mema-green:       #103a21;
  --mema-green-mid:   #174a2c;
  --mema-green-lt:    #1e5c38;
  --mema-green-xlt:   #e8f0eb;
  --mema-accent:      #15779b;   /* NUR im SVG-Haus! */
  --mema-accent-dk:   #11607d;
  --mema-beige:       #c6c5b2;
  --mema-beige-dk:    #b0af9d;
  --mema-beige-lt:    #dddcd0;
  --mema-brown:       #8b7355;
  --mema-brown-dk:    #6d5a42;
  --mema-emerald:     #1b7a5c;
  --mema-steel:       #2c5f7c;

  /* ---- Neutrals ---- */
  --mema-text:        #2b2b2b;
  --mema-text-muted:  #757575;
  --mema-text-light:  #a0a0a0;
  --mema-slate:       #64748b;
  --mema-bg:          #f6f5f2;
  --mema-bg-white:    #ffffff;
  --mema-border:      #e2e2d9;
  --mema-border-lt:   #f0efea;

  /* ---- Spacing Scale ---- */
  --mema-space-2xs:   4px;
  --mema-space-xs:    8px;
  --mema-space-sm:    12px;
  --mema-space-md:    16px;
  --mema-space-lg:    24px;
  --mema-space-xl:    32px;
  --mema-space-2xl:   48px;
  --mema-space-3xl:   64px;
  --mema-space-4xl:   96px;
  --mema-space-5xl:   128px;

  /* ---- Typography ---- */
  --mema-font:        'Outfit', system-ui, -apple-system, sans-serif;
  --mema-font-mono:   'Fira Code', 'Consolas', monospace;
  --mema-text-xs:     0.75rem;    /* 12px */
  --mema-text-sm:     0.875rem;   /* 14px */
  --mema-text-base:   1rem;       /* 16px */
  --mema-text-md:     1.05rem;    /* ~17px */
  --mema-text-lg:     1.125rem;   /* 18px */
  --mema-text-xl:     1.25rem;    /* 20px */

  /* ---- Radii ---- */
  --mema-radius:      12px;
  --mema-radius-sm:   8px;
  --mema-radius-md:   12px;
  --mema-radius-lg:   16px;
  --mema-radius-xl:   20px;
  --mema-radius-2xl:  24px;
  --mema-radius-pill: 9999px;

  /* ---- Shadows ---- */
  --mema-shadow-sm:   0 2px 8px rgba(64,92,146,.08);
  --mema-shadow:      0 5px 33px rgba(64,92,146,.25);
  --mema-shadow-lg:   0 14px 36px rgba(64,92,146,.18);
  --mema-shadow-btn:  0 8px 28px rgba(16,58,33,.2);

  /* ---- Transitions ---- */
  --mema-ease:        cubic-bezier(.4,0,.2,1);
  --mema-duration:    0.25s;

  /* ---- Layout ---- */
  --mema-container:   1320px;
  --mema-gutter:      40px;
  --mema-nav-height:  80px;
}


/* ==========================================================================
   3. BASE / TYPOGRAPHY
   ========================================================================== */

body {
  font-family: var(--mema-font);
  font-size: var(--mema-text-base);
  color: var(--mema-text);
  background: var(--mema-bg);
  overflow-x: clip;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mema-text);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.25;
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.3;
}

h5 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

h6 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  font-size: var(--mema-text-base);
  line-height: 1.75;
  color: var(--mema-text-muted);
}

small {
  font-size: var(--mema-text-sm);
}

.mema-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.8;
  color: var(--mema-text-muted);
  max-width: 620px;
}

.mema-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mema-green);
  margin-bottom: 10px;
}

.mema-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(198,197,178,.25);
  border: 1px solid rgba(198,197,178,.6);
  color: var(--mema-beige);
  padding: 5px 14px;
  border-radius: var(--mema-radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Links */
.mema-link {
  color: var(--mema-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--mema-duration) var(--mema-ease);
}

.mema-link:hover {
  color: var(--mema-green-mid);
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.mema-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border: none;
  border-radius: var(--mema-radius-pill);
  font-family: var(--mema-font);
  font-size: var(--mema-text-base);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--mema-duration) var(--mema-ease);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 480px) {
  .mema-btn {
    white-space: normal;
  }
}

.mema-btn:focus-visible {
  outline: 2px solid var(--mema-green);
  outline-offset: 3px;
}

/* Primary: Dark green background, white text */
.mema-btn-primary {
  background: var(--mema-green);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--mema-shadow-btn);
}

.mema-btn-primary:hover {
  background: var(--mema-green-mid);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(16,58,33,.3);
}

/* Primary inverted: White background, green text (for dark BGs) */
.mema-btn-primary-inv {
  background: #fff;
  color: var(--mema-green);
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(255,255,255,.2);
}

.mema-btn-primary-inv:hover {
  background: #f0efec;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255,255,255,.3);
}

/* Outline: Green border on light BGs */
.mema-btn-outline {
  background: transparent;
  color: var(--mema-green);
  border: 2px solid var(--mema-green);
  font-weight: 700;
}

.mema-btn-outline:hover {
  background: rgba(16,58,33,.06);
}

/* Outline light: For dark backgrounds */
.mema-btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
  font-weight: 700;
}

.mema-btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}

/* Ghost: For dark backgrounds */
.mema-btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 700;
}

.mema-btn-ghost:hover {
  background: rgba(255,255,255,.15);
}

/* Amber/Beige: Accent button */
.mema-btn-amber {
  background: var(--mema-beige);
  color: var(--mema-green);
  font-weight: 800;
}

.mema-btn-amber:hover {
  background: var(--mema-beige-dk);
}

/* Brown: Wartung/maintenance */
.mema-btn-brown {
  background: var(--mema-brown);
  color: #fff;
  font-weight: 800;
}

.mema-btn-brown:hover {
  background: var(--mema-brown-dk);
  transform: translateX(4px);
}

/* Small button */
.mema-btn-sm {
  padding: 10px 24px;
  font-size: var(--mema-text-sm);
}

/* Large button */
.mema-btn-lg {
  padding: 20px 48px;
  font-size: 1.05rem;
}

/* Full width */
.mema-btn-block {
  display: flex;
  width: 100%;
  text-align: center;
}


/* ==========================================================================
   5. LAYOUT UTILITIES
   ========================================================================== */

.mema-container {
  width: 100%;
  max-width: var(--mema-container);
  margin-inline: auto;
  padding-inline: var(--mema-gutter);
}

.mema-container-sm {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--mema-gutter);
}

.mema-container-xs {
  max-width: 640px;
  margin-inline: auto;
  padding-inline: var(--mema-gutter);
}

.mema-section {
  padding-block: var(--mema-space-4xl);
}

.mema-section-sm {
  padding-block: var(--mema-space-3xl);
}

/* Grid system */
.mema-grid {
  display: grid;
  gap: var(--mema-space-lg);
}

.mema-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mema-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mema-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .mema-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mema-grid-2,
  .mema-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mema-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex helpers */
.mema-flex {
  display: flex;
}

.mema-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mema-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mema-flex-wrap {
  flex-wrap: wrap;
}

.mema-flex-col {
  flex-direction: column;
}


/* ==========================================================================
   6. NAVIGATION
   ========================================================================== */

.mema-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  height: auto;
}

.mema-nav.mema-nav-scrolled {
  background: transparent;
}

.mema-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 64px;
  width: 100%;
}

/* Logo */
.mema-nav-logo img {
  height: 68px;
  width: auto;
  display: block;
}

.mema-nav-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--mema-green);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  transition: opacity var(--mema-duration) var(--mema-ease);
}

.mema-nav-logo:hover {
  opacity: 0.8;
}

/* Nav links */
.mema-nav-links {
  display: flex;
  align-items: center;
  gap: var(--mema-space-xl);
}

.mema-nav-link {
  font-size: var(--mema-text-sm);
  font-weight: 600;
  color: var(--mema-text);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color var(--mema-duration) var(--mema-ease);
}

.mema-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mema-green);
  transition: width var(--mema-duration) var(--mema-ease);
}

.mema-nav-link:hover,
.mema-nav-link.mema-active {
  color: var(--mema-green);
}

.mema-nav-link:hover::after,
.mema-nav-link.mema-active::after {
  width: 100%;
}

/* Nav dropdown */
.mema-nav-dropdown {
  position: relative;
}

.mema-nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.mema-nav-dropdown-trigger::after {
  display: none;
}

.mema-nav-dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--mema-duration) var(--mema-ease);
}

.mema-nav-dropdown:hover .mema-nav-dropdown-icon,
.mema-nav-dropdown.mema-open .mema-nav-dropdown-icon {
  transform: rotate(180deg);
}

.mema-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--mema-bg-white);
  border: 1px solid var(--mema-border);
  border-radius: var(--mema-radius-lg);
  box-shadow: var(--mema-shadow);
  padding: var(--mema-space-xs);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--mema-duration) var(--mema-ease);
}

/* Invisible bridge so mouse can travel from trigger to dropdown menu */
.mema-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.mema-nav-dropdown:hover .mema-nav-dropdown-menu,
.mema-nav-dropdown.mema-open .mema-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mema-nav-dropdown-item {
  display: block;
  padding: 12px 16px;
  font-size: var(--mema-text-sm);
  font-weight: 500;
  color: var(--mema-text);
  border-radius: var(--mema-radius-sm);
  transition: background var(--mema-duration) var(--mema-ease);
}

.mema-nav-dropdown-item:hover {
  background: var(--mema-green-xlt);
  color: var(--mema-green);
}

/* Nav CTA button */
.mema-nav-cta {
  padding: 12px 24px;
  font-size: var(--mema-text-sm);
}

/* Hamburger toggle */
.mema-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mema-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mema-text);
  border-radius: 2px;
  transition: all 0.3s var(--mema-ease);
  transform-origin: center;
}

.mema-nav-toggle.mema-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mema-nav-toggle.mema-active span:nth-child(2) {
  opacity: 0;
}

.mema-nav-toggle.mema-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: Pill Navigation */
@media (min-width: 1025px) {
  .mema-nav {
    padding: 12px 32px;
  }

  .mema-nav.mema-nav-scrolled {
    padding: 8px 32px;
  }

  .mema-nav-inner {
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 4px 28px rgba(0,0,0,.12);
    padding: 6px 8px 6px 24px;
    max-width: 1280px;
    margin-inline: auto;
    width: 100%;
  }

  .mema-nav.mema-nav-scrolled .mema-nav-inner {
    box-shadow: 0 8px 36px rgba(0,0,0,.18);
  }

  .mema-nav-logo img {
    height: 56px;
    width: auto;
    display: block;
  }
}

/* Mobile navigation */
@media (max-width: 1024px) {
  /* Remove stacking context from header so nav panel can layer above page content */
  .mema-nav {
    display: contents;
  }

  .mema-nav-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--mema-border-lt);
    height: var(--mema-nav-height);
    padding-inline: var(--mema-gutter);
    border-radius: 0;
  }

  .mema-nav-toggle {
    display: flex;
  }

  .mema-nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(var(--mema-nav-height) + 20px) var(--mema-space-xl) var(--mema-space-xl);
    background: var(--mema-bg-white);
    box-shadow: -4px 0 24px rgba(0,0,0,.1);
    transform: translateX(100%);
    transition: transform 0.35s var(--mema-ease);
    overflow-y: auto;
  }

  .mema-nav-links.mema-open {
    transform: translateX(0);
  }

  .mema-nav-link {
    font-size: var(--mema-text-base);
    padding: 14px 16px;
    width: 100%;
    border-bottom: 1px solid var(--mema-border-lt);
  }

  .mema-nav-link::after {
    display: none;
  }

  .mema-nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--mema-bg);
    border-radius: var(--mema-radius-md);
    padding: var(--mema-space-xs) 0;
    margin-top: var(--mema-space-xs);
    margin-bottom: var(--mema-space-xs);
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
    min-width: 0;
  }

  .mema-nav-dropdown-item {
    padding: 10px 16px 10px 24px;
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
  }

  .mema-nav-dropdown.mema-open .mema-nav-dropdown-menu {
    display: block;
    transform: none;
    left: auto;
  }

  .mema-nav-cta {
    margin-top: var(--mema-space-lg);
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Mobile overlay */
.mema-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s var(--mema-ease);
}

.mema-nav-overlay.mema-open {
  display: block;
  opacity: 1;
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.mema-hero {
  background: linear-gradient(145deg, #081a10 0%, var(--mema-green) 55%, #1a5533 100%);
  color: #fff;
  padding: var(--mema-space-5xl) var(--mema-gutter) var(--mema-space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial overlay */
.mema-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(21,119,155,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(44,95,124,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated grid background */
.mema-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.mema-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin-inline: auto;
}

.mema-hero h1 {
  color: #fff;
  margin-bottom: 22px;
}

.mema-hero h1 span {
  color: inherit;
}

.mema-hero p {
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--mema-space-2xl);
}

.mema-hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 36px;
  text-align: left;
}

.mema-hero-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,.82);
  font-weight: 500;
}

.mema-hero-benefits li::before {
  content: '\2713';
  color: var(--mema-beige);
  font-weight: 800;
  flex-shrink: 0;
}

.mema-hero-btns {
  display: flex;
  gap: var(--mema-space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .mema-hero {
    padding: var(--mema-space-4xl) var(--mema-space-lg) var(--mema-space-3xl);
  }
  .mema-hero-btns {
    flex-direction: column;
    align-items: center;
  }
}


/* ==========================================================================
   8. STATS SECTION
   ========================================================================== */

.mema-stats {
  background: var(--mema-bg-white);
  padding: var(--mema-space-4xl) var(--mema-gutter);
  text-align: center;
}

.mema-stats-inner {
  max-width: 860px;
  margin-inline: auto;
}

.mema-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mema-space-2xl);
  max-width: 720px;
  margin-inline: auto;
  margin-top: var(--mema-space-3xl);
}

.mema-stat {
  text-align: center;
}

.mema-stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--mema-green);
  line-height: 1;
  margin-bottom: 8px;
}

.mema-stat-num span {
  color: var(--mema-green);
}

.mema-stat-label {
  font-size: 0.82rem;
  color: var(--mema-text-muted);
  font-weight: 500;
}

.mema-stat-sub {
  font-size: 0.78rem;
  color: var(--mema-text-muted);
  opacity: 0.7;
  margin-top: 3px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .mema-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--mema-space-xl);
  }
}


/* ==========================================================================
   8b. ABOUT TEASER (Homepage)
   ========================================================================== */

.mema-about-teaser {
  background: var(--mema-bg);
  padding: var(--mema-space-4xl) var(--mema-space-xl);
}

.mema-about-teaser-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--mema-space-3xl);
  align-items: center;
}

.mema-about-teaser-text .mema-label {
  display: inline-block;
  margin-bottom: var(--mema-space-sm);
}

.mema-about-teaser-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--mema-green);
  margin-bottom: var(--mema-space-lg);
}

.mema-about-teaser-text p {
  font-size: var(--mema-text-md);
  color: var(--mema-text-light);
  line-height: 1.75;
  margin-bottom: var(--mema-space-md);
}

.mema-about-teaser-values {
  display: flex;
  flex-direction: column;
  gap: var(--mema-space-md);
  margin: var(--mema-space-xl) 0;
}

.mema-about-teaser-value {
  display: flex;
  align-items: flex-start;
  gap: var(--mema-space-sm);
}

.mema-about-teaser-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.mema-about-teaser-value strong {
  display: block;
  font-size: var(--mema-text-sm);
  font-weight: 700;
  color: var(--mema-green);
  margin-bottom: 2px;
}

.mema-about-teaser-value span:not(.mema-about-teaser-icon) {
  font-size: var(--mema-text-sm);
  color: var(--mema-text-muted);
}

.mema-about-teaser-image {
  border-radius: var(--mema-radius-lg);
  overflow: hidden;
  box-shadow: var(--mema-shadow);
}

.mema-about-teaser-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .mema-about-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--mema-space-xl);
  }

  .mema-about-teaser-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}


/* ==========================================================================
   9. CARD COMPONENT
   ========================================================================== */

.mema-card {
  background: var(--mema-bg-white);
  border: 1px solid var(--mema-border);
  border-radius: var(--mema-radius-xl);
  padding: var(--mema-space-xl);
  transition: all var(--mema-duration) var(--mema-ease);
}

.mema-card:hover {
  box-shadow: var(--mema-shadow);
  transform: translateY(-4px);
}

.mema-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--mema-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--mema-space-md);
  background: var(--mema-green-xlt);
  color: var(--mema-green);
}

.mema-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--mema-space-xs);
  color: var(--mema-text);
}

.mema-card-desc {
  font-size: var(--mema-text-sm);
  line-height: 1.7;
  color: var(--mema-text-muted);
}

.mema-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--mema-space-md);
  font-size: var(--mema-text-sm);
  font-weight: 700;
  color: var(--mema-green);
  transition: gap var(--mema-duration) var(--mema-ease);
}

.mema-card-link:hover {
  gap: 10px;
}

/* Card on dark background */
.mema-card-dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.mema-card-dark:hover {
  background: rgba(255,255,255,.1);
}


/* ==========================================================================
   10. PACKAGE CARDS
   ========================================================================== */

.mema-packages {
  background: var(--mema-green);
  padding: var(--mema-space-4xl) var(--mema-gutter);
  color: #fff;
}

.mema-pkg-header {
  text-align: center;
  margin-bottom: var(--mema-space-3xl);
}

.mema-pkg-header h2 {
  color: #fff;
  margin-bottom: 14px;
}

.mema-pkg-header p {
  color: rgba(255,255,255,.6);
}

.mema-pkg-header .mema-label {
  color: rgba(255,255,255,.55);
}

.mema-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mema-space-xl);
  max-width: 1200px;
  margin-inline: auto;
}

.mema-pkg-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--mema-radius-xl);
  padding: 36px 32px;
  transition: all 0.28s var(--mema-ease);
  position: relative;
  overflow: hidden;
}

.mema-pkg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: var(--mema-radius-xl) var(--mema-radius-xl) 0 0;
}

.mema-pkg-card.mema-featured {
  background: rgba(198,197,178,.12);
  border-color: rgba(198,197,178,.5);
}

.mema-pkg-card.mema-featured::before {
  background: var(--mema-beige);
}

.mema-pkg-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-5px);
}

.mema-pkg-badge {
  display: inline-block;
  background: var(--mema-beige);
  color: var(--mema-green);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--mema-radius-pill);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mema-pkg-name {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.mema-pkg-size {
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 22px;
}

.mema-pkg-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--mema-beige);
  margin-bottom: 4px;
  line-height: 1;
}

.mema-pkg-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,.65);
}

.mema-pkg-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.mema-pkg-list {
  margin-bottom: var(--mema-space-xl);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.mema-pkg-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

.mema-pkg-list li::before {
  content: '\2713';
  color: var(--mema-beige);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.mema-pkg-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: var(--mema-radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--mema-font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all var(--mema-duration) var(--mema-ease);
}

/* Wartung add-on card */
.mema-wartung-card {
  max-width: 1200px;
  margin: var(--mema-space-2xl) auto 0;
  background: linear-gradient(135deg, rgba(139,115,85,.15) 0%, rgba(139,115,85,.06) 100%);
  border: 1px solid rgba(139,115,85,.4);
  border-radius: var(--mema-radius-xl);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: var(--mema-space-xl);
  flex-wrap: wrap;
}

.mema-wartung-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--mema-radius-lg);
  background: rgba(139,115,85,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.mema-wartung-text {
  flex: 1;
  min-width: 200px;
}

.mema-wartung-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--mema-brown);
}

.mema-wartung-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

@media (max-width: 740px) {
  .mema-pkg-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   11. PROCESS / STEPS
   ========================================================================== */

.mema-process {
  background: var(--mema-bg-white);
  padding: var(--mema-space-4xl) var(--mema-gutter);
}

.mema-process-inner {
  max-width: 840px;
  margin-inline: auto;
}

.mema-process h2 {
  margin-bottom: 12px;
}

.mema-process-lead {
  color: var(--mema-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--mema-space-3xl);
  line-height: 1.75;
}

.mema-steps {
  display: flex;
  flex-direction: column;
}

.mema-step {
  display: flex;
  gap: var(--mema-space-xl);
  position: relative;
  padding-bottom: var(--mema-space-2xl);
}

.mema-step:last-child {
  padding-bottom: 0;
}

.mema-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mema-step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mema-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 1;
}

.mema-step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--mema-green), var(--mema-border));
  margin-block: var(--mema-space-xs);
}

.mema-step:last-child .mema-step-line {
  display: none;
}

.mema-step-body {
  padding-top: 8px;
}

.mema-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--mema-text);
}

.mema-step-desc {
  font-size: 0.92rem;
  color: var(--mema-text-muted);
  line-height: 1.7;
}


/* ==========================================================================
   12. CTA SECTION
   ========================================================================== */

.mema-cta {
  background: var(--mema-bg);
  padding: var(--mema-space-4xl) var(--mema-gutter);
  text-align: center;
}

.mema-cta h2 {
  color: var(--mema-green);
  margin-bottom: var(--mema-space-md);
}

.mema-cta p {
  font-size: 1.12rem;
  color: rgba(16,58,33,.65);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--mema-space-2xl);
  line-height: 1.75;
}

.mema-cta-btns {
  display: flex;
  gap: var(--mema-space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .mema-cta-btns {
    flex-direction: column;
    align-items: center;
  }
}


/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */

.mema-testimonials {
  background: var(--mema-bg);
  padding: var(--mema-space-4xl) var(--mema-gutter);
}

.mema-testimonials-header {
  text-align: center;
  margin-bottom: var(--mema-space-3xl);
}

.mema-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mema-space-lg);
  max-width: 1200px;
  margin-inline: auto;
}

.mema-testimonial {
  background: var(--mema-bg-white);
  border: 1px solid var(--mema-border);
  border-radius: var(--mema-radius-xl);
  padding: var(--mema-space-xl) var(--mema-space-lg);
  display: flex;
  flex-direction: column;
}

.mema-testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--mema-space-md);
  color: #d4a017;
  font-size: 1rem;
}

.mema-testimonial-text {
  font-size: var(--mema-text-sm);
  line-height: 1.7;
  color: var(--mema-text-muted);
  font-style: italic;
  flex: 1;
  margin-bottom: var(--mema-space-lg);
}

.mema-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--mema-space-sm);
  border-top: 1px solid var(--mema-border-lt);
  padding-top: var(--mema-space-md);
}

.mema-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mema-green-xlt);
  color: var(--mema-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mema-testimonial-name {
  font-size: var(--mema-text-sm);
  font-weight: 700;
  color: var(--mema-text);
}

.mema-testimonial-role {
  font-size: var(--mema-text-xs);
  color: var(--mema-text-light);
}

@media (max-width: 768px) {
  .mema-testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}


/* ==========================================================================
   14. SOLUTIONS TEASER (6 cards)
   ========================================================================== */

.mema-solutions {
  background: var(--mema-bg);
  padding: var(--mema-space-4xl) var(--mema-gutter);
}

.mema-solutions-header {
  text-align: center;
  margin-bottom: var(--mema-space-3xl);
}

.mema-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mema-space-lg);
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .mema-solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mema-solutions-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   15. FORMS (Formspree)
   ========================================================================== */

.mema-form {
  max-width: 640px;
  margin-inline: auto;
}

.mema-form-group {
  margin-bottom: var(--mema-space-lg);
}

.mema-form-label {
  display: block;
  font-size: var(--mema-text-sm);
  font-weight: 600;
  color: var(--mema-text);
  margin-bottom: var(--mema-space-xs);
}

.mema-form-input,
.mema-form-textarea,
.mema-form-select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--mema-border);
  border-radius: var(--mema-radius-md);
  font-family: var(--mema-font);
  font-size: var(--mema-text-base);
  color: var(--mema-text);
  background: var(--mema-bg-white);
  transition: border-color var(--mema-duration) var(--mema-ease),
              box-shadow var(--mema-duration) var(--mema-ease);
}

.mema-form-input:focus,
.mema-form-textarea:focus,
.mema-form-select:focus {
  outline: none;
  border-color: var(--mema-green);
  box-shadow: 0 0 0 3px rgba(16,58,33,.1);
}

.mema-form-input::placeholder,
.mema-form-textarea::placeholder {
  color: var(--mema-text-light);
}

.mema-form-textarea {
  min-height: 140px;
  resize: vertical;
}

.mema-form-hint {
  font-size: var(--mema-text-xs);
  color: var(--mema-text-light);
  margin-top: var(--mema-space-2xs);
}

.mema-form-error {
  font-size: var(--mema-text-xs);
  color: #c0392b;
  margin-top: var(--mema-space-2xs);
}

.mema-form-success {
  background: var(--mema-green-xlt);
  border: 1px solid var(--mema-green);
  border-radius: var(--mema-radius-md);
  padding: var(--mema-space-md) var(--mema-space-lg);
  color: var(--mema-green);
  font-weight: 600;
  text-align: center;
}

/* Checkbox / Radio */
.mema-form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--mema-space-sm);
  cursor: pointer;
}

.mema-form-check input {
  margin-top: 3px;
  accent-color: var(--mema-green);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.mema-footer {
  background: #081a10;
  color: rgba(255,255,255,.6);
  padding: var(--mema-space-3xl) var(--mema-gutter) var(--mema-space-xl);
}

.mema-footer-inner {
  max-width: var(--mema-container);
  margin-inline: auto;
}

.mema-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--mema-space-2xl);
  padding-bottom: var(--mema-space-2xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mema-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--mema-space-md);
}

.mema-footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
}

.mema-footer-desc {
  font-size: var(--mema-text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,.65);
}

.mema-footer-social {
  display: flex;
  gap: var(--mema-space-sm);
  margin-top: var(--mema-space-xs);
}

.mema-footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
  transition: all var(--mema-duration) var(--mema-ease);
}

.mema-footer-social a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.mema-footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--mema-space-md);
}

.mema-footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--mema-space-sm);
}

.mema-footer-links a {
  font-size: var(--mema-text-sm);
  color: rgba(255,255,255,.65);
  transition: color var(--mema-duration) var(--mema-ease);
}

.mema-footer-links a:hover {
  color: var(--mema-beige);
}

.mema-footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--mema-space-sm);
}

.mema-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--mema-space-sm);
  font-size: var(--mema-text-sm);
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

.mema-footer-contact-item a {
  color: rgba(255,255,255,.65);
  transition: color var(--mema-duration) var(--mema-ease);
}

.mema-footer-contact-item a:hover {
  color: var(--mema-beige);
}

/* Footer bottom bar */
.mema-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--mema-space-xl);
  font-size: var(--mema-text-xs);
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  gap: var(--mema-space-md);
}

.mema-footer-bottom a {
  color: var(--mema-beige);
  text-decoration: none;
}

.mema-footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .mema-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--mema-space-xl);
  }
}

@media (max-width: 480px) {
  .mema-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mema-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ==========================================================================
   17. UTILITY CLASSES
   ========================================================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Font weight */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* Text color */
.text-green   { color: var(--mema-green); }
.text-beige   { color: var(--mema-beige); }
.text-muted   { color: var(--mema-text-muted); }
.text-white   { color: #fff; }

/* Background */
.bg-white     { background-color: var(--mema-bg-white); }
.bg-mema      { background-color: var(--mema-bg); }
.bg-green     { background-color: var(--mema-green); }

/* Margin top */
.mt-0   { margin-top: 0; }
.mt-xs  { margin-top: var(--mema-space-xs); }
.mt-sm  { margin-top: var(--mema-space-sm); }
.mt-md  { margin-top: var(--mema-space-md); }
.mt-lg  { margin-top: var(--mema-space-lg); }
.mt-xl  { margin-top: var(--mema-space-xl); }
.mt-2xl { margin-top: var(--mema-space-2xl); }
.mt-3xl { margin-top: var(--mema-space-3xl); }

/* Margin bottom */
.mb-0   { margin-bottom: 0; }
.mb-xs  { margin-bottom: var(--mema-space-xs); }
.mb-sm  { margin-bottom: var(--mema-space-sm); }
.mb-md  { margin-bottom: var(--mema-space-md); }
.mb-lg  { margin-bottom: var(--mema-space-lg); }
.mb-xl  { margin-bottom: var(--mema-space-xl); }
.mb-2xl { margin-bottom: var(--mema-space-2xl); }
.mb-3xl { margin-bottom: var(--mema-space-3xl); }

/* Padding top/bottom */
.pt-0   { padding-top: 0; }
.pt-lg  { padding-top: var(--mema-space-lg); }
.pt-xl  { padding-top: var(--mema-space-xl); }
.pb-0   { padding-bottom: 0; }
.pb-lg  { padding-bottom: var(--mema-space-lg); }
.pb-xl  { padding-bottom: var(--mema-space-xl); }

/* Display */
.d-none    { display: none; }
.d-block   { display: block; }
.d-flex    { display: flex; }
.d-grid    { display: grid; }

/* Visibility */
.sr-only,
.mema-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Max width */
.mx-auto { margin-inline: auto; }
.mw-sm   { max-width: 480px; }
.mw-md   { max-width: 640px; }
.mw-lg   { max-width: 860px; }

/* Gap */
.gap-xs  { gap: var(--mema-space-xs); }
.gap-sm  { gap: var(--mema-space-sm); }
.gap-md  { gap: var(--mema-space-md); }
.gap-lg  { gap: var(--mema-space-lg); }
.gap-xl  { gap: var(--mema-space-xl); }


/* ==========================================================================
   18. ANIMATIONS
   ========================================================================== */

/* Fade in on scroll */
.mema-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--mema-ease),
              transform 0.6s var(--mema-ease);
}

.mema-fade-in.mema-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for children */
.mema-fade-in[data-delay="1"] { transition-delay: 0.1s; }
.mema-fade-in[data-delay="2"] { transition-delay: 0.2s; }
.mema-fade-in[data-delay="3"] { transition-delay: 0.3s; }
.mema-fade-in[data-delay="4"] { transition-delay: 0.4s; }
.mema-fade-in[data-delay="5"] { transition-delay: 0.5s; }

/* Scale in */
.mema-scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s var(--mema-ease),
              transform 0.5s var(--mema-ease);
}

.mema-scale-in.mema-visible {
  opacity: 1;
  transform: scale(1);
}

/* Slide in from left */
.mema-slide-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s var(--mema-ease),
              transform 0.6s var(--mema-ease);
}

.mema-slide-left.mema-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.mema-slide-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s var(--mema-ease),
              transform 0.6s var(--mema-ease);
}

.mema-slide-right.mema-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Keyframe: Pulse */
@keyframes mema-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* Keyframe: Bounce subtle */
@keyframes mema-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes mema-draw {
  to { stroke-dashoffset: 0; }
}
.mema-hero-underline path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: mema-draw 1.2s ease-out .6s forwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }

  .mema-fade-in,
  .mema-scale-in,
  .mema-slide-left,
  .mema-slide-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   18b. ANIMATED COUNTER
   ========================================================================== */

.mema-counter {
  /* Tabular numbers for smooth counting without layout shifts */
  font-variant-numeric: tabular-nums;
}

/* Subtle pop when counter finishes */
@keyframes mema-counter-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.mema-counter.mema-counter-done {
  animation: mema-counter-pop 0.4s var(--mema-ease);
}


/* ==========================================================================
   18c. PROBLEM CHECK (Interactive)
   ========================================================================== */

.mema-problemcheck {
  background: var(--mema-bg-white);
  padding: var(--mema-space-4xl) var(--mema-gutter);
}

.mema-problemcheck-header {
  text-align: center;
  margin-bottom: var(--mema-space-2xl);
}

.mema-problemcheck-questions {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--mema-space-sm);
}

/* Individual check item */
.mema-check-item {
  display: flex;
  align-items: center;
  gap: var(--mema-space-md);
  padding: 18px 22px;
  background: var(--mema-bg);
  border: 2px solid var(--mema-border);
  border-radius: var(--mema-radius-lg);
  cursor: pointer;
  transition: all 0.3s var(--mema-ease);
  text-align: left;
  font-family: var(--mema-font);
  font-size: var(--mema-text-base);
  color: var(--mema-text);
  line-height: 1.55;
  -webkit-user-select: none;
  user-select: none;
}

.mema-check-item:hover {
  border-color: var(--mema-beige);
  background: rgba(198, 197, 178, 0.08);
  transform: translateY(-1px);
  box-shadow: var(--mema-shadow-sm);
}

.mema-check-item:focus-visible {
  outline: 3px solid var(--mema-green);
  outline-offset: 2px;
}

/* Checked state */
.mema-check-item[data-checked="true"] {
  border-color: var(--mema-green);
  background: var(--mema-green-xlt);
}

.mema-check-item[data-checked="true"]:hover {
  background: rgba(16, 58, 33, 0.08);
}

/* Check icon box */
.mema-check-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: var(--mema-radius-sm);
  border: 2px solid var(--mema-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--mema-ease);
  color: transparent;
  background: var(--mema-bg-white);
}

.mema-check-icon svg {
  width: 16px;
  height: 16px;
}

.mema-check-item[data-checked="true"] .mema-check-icon {
  background: var(--mema-green);
  border-color: var(--mema-green);
  color: #fff;
}

/* Ripple animation on check */
@keyframes mema-check-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(16, 58, 33, 0.3); }
  100% { box-shadow: 0 0 0 12px rgba(16, 58, 33, 0); }
}

.mema-check-item[data-checked="true"] .mema-check-icon {
  animation: mema-check-ripple 0.4s var(--mema-ease);
}

/* Check text */
.mema-check-text {
  flex: 1;
}

/* Result box */
.mema-problemcheck-result {
  max-width: 680px;
  margin: var(--mema-space-xl) auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--mema-ease),
              opacity 0.4s var(--mema-ease),
              margin 0.4s var(--mema-ease);
}

.mema-problemcheck-result.mema-result-visible {
  max-height: 300px;
  opacity: 1;
  margin-top: var(--mema-space-2xl);
}

.mema-problemcheck-result-inner {
  background: linear-gradient(135deg, var(--mema-green) 0%, var(--mema-green-mid) 100%);
  border-radius: var(--mema-radius-xl);
  padding: var(--mema-space-xl) var(--mema-space-2xl);
  display: flex;
  align-items: center;
  gap: var(--mema-space-xl);
  flex-wrap: wrap;
}

/* Score circle */
.mema-problemcheck-score {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mema-problemcheck-count {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.mema-problemcheck-of {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 2px;
}

/* Message text */
.mema-problemcheck-message {
  flex: 1;
  min-width: 200px;
}

.mema-problemcheck-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mema-problemcheck-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* CTA button in result */
.mema-problemcheck-cta {
  flex-shrink: 0;
}

/* Responsive: mobile stack */
@media (max-width: 600px) {
  .mema-check-item {
    padding: 14px 16px;
    font-size: var(--mema-text-sm);
    gap: var(--mema-space-sm);
  }

  .mema-check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .mema-check-icon svg {
    width: 14px;
    height: 14px;
  }

  .mema-problemcheck-result-inner {
    flex-direction: column;
    text-align: center;
    padding: var(--mema-space-xl) var(--mema-space-lg);
    gap: var(--mema-space-md);
  }

  .mema-problemcheck-score {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .mema-problemcheck-count {
    font-size: 1.4rem;
  }
}


/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS (Mobile-First Adjustments)
   ========================================================================== */

/* --- Mobile base (< 480px) is the default --- */

@media (max-width: 480px) {
  :root {
    --mema-gutter: 20px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .mema-section {
    padding-block: var(--mema-space-3xl);
  }
}

/* --- Small tablets (>= 480px) --- */
@media (min-width: 480px) {
  /* Base styles already applied, minor enhancements here */
}

/* --- Tablets (>= 768px) --- */
@media (min-width: 768px) {
  /* Expand grids, increase spacing */
}

/* --- Desktop (>= 1024px) --- */
@media (min-width: 1024px) {
  /* Full layout mode */
}

/* --- Wide (>= 1280px) --- */
@media (min-width: 1280px) {
  /* Max container width is already enforced */
}


/* ==========================================================================
   19b. SAFE AREA INSETS (Notch / Dynamic Island / Home Indicator)
   ========================================================================== */

@supports (padding: env(safe-area-inset-top)) {
  .mema-nav-inner {
    padding-top: env(safe-area-inset-top);
  }
  .mema-footer {
    padding-bottom: calc(var(--mema-space-xl) + env(safe-area-inset-bottom));
  }
  .mema-cookie-banner {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}


/* ==========================================================================
   20. PRINT STYLES
   ========================================================================== */

@media print {
  .mema-nav,
  .mema-nav-overlay,
  .mema-footer-social,
  .mema-btn,
  .mema-cta {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  .mema-hero {
    background: #103a21;
    padding: 40px;
  }
}


/* ==========================================================================
   21. PAGE HEADER (Interior Pages)
   ========================================================================== */

.mema-page-header {
  background: var(--mema-green);
  color: #fff;
  padding: 8rem 0 4rem;
  text-align: center;
}
.mema-page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}
.mema-page-header .mema-lead {
  color: rgba(255,255,255,.75);
  max-width: 700px;
  margin: 0 auto;
}
.mema-page-header .mema-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.mema-page-header .mema-breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.mema-page-header .mema-breadcrumb a:hover {
  color: #fff;
}


/* ==========================================================================
   22. CONTENT SECTIONS (Interior Pages)
   ========================================================================== */

.mema-content {
  padding: 4rem 0;
}
.mema-content + .mema-content {
  padding-top: 0;
}
.mema-content-alt {
  background: rgba(198,197,178,.08);
}


/* ==========================================================================
   23. FEATURE GRID (Solution Pages)
   ========================================================================== */

.mema-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.mema-feature-item {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--mema-border);
  border-radius: var(--mema-radius);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mema-feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.mema-feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.mema-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--mema-green);
}
.mema-feature-desc {
  font-size: .95rem;
  color: var(--mema-slate);
  line-height: 1.6;
}


/* ==========================================================================
   24. FAQ SECTION
   ========================================================================== */

.mema-faq {
  max-width: 800px;
  margin: 0 auto;
}
.mema-faq-item {
  border-bottom: 1px solid var(--mema-border);
  padding: 1.5rem 0;
}
.mema-faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mema-green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mema-faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform .3s;
}
.mema-faq-item.mema-open .mema-faq-question::after {
  transform: rotate(45deg);
}
.mema-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--mema-slate);
  line-height: 1.7;
}
.mema-faq-item.mema-open .mema-faq-answer {
  max-height: 1000px;
  padding-top: 1rem;
}


/* ==========================================================================
   25. CASE STUDY CARD
   ========================================================================== */

.mema-case-study {
  background: #fff;
  border: 1px solid var(--mema-border);
  border-radius: var(--mema-radius);
  overflow: hidden;
  margin: 2rem 0;
}
.mema-case-study-header {
  background: var(--mema-green);
  color: #fff;
  padding: 2rem;
}
.mema-case-study-body {
  padding: 2rem;
}
.mema-case-study-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--mema-slate);
}
.mema-case-study-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.mema-case-study-result {
  padding: 1rem;
  background: rgba(198,197,178,.1);
  border-radius: 8px;
}


/* ==========================================================================
   26. BLOG CARD
   ========================================================================== */

.mema-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.mema-blog-card {
  background: #fff;
  border: 1px solid var(--mema-border);
  border-radius: var(--mema-radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mema-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.mema-blog-card-body {
  padding: 1.5rem;
}
.mema-blog-card-tag {
  display: inline-block;
  padding: .25rem .75rem;
  background: rgba(198,197,178,.2);
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mema-slate);
  margin-bottom: .75rem;
}
.mema-blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mema-green);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.mema-blog-card-excerpt {
  font-size: .9rem;
  color: var(--mema-slate);
  line-height: 1.6;
}


/* ==========================================================================
   27. LEGAL PAGE STYLES
   ========================================================================== */

.mema-legal {
  padding: 8rem 0 4rem;
}
.mema-legal h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mema-green);
  margin-bottom: 2rem;
}
.mema-legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mema-green);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.mema-legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}
.mema-legal p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--mema-slate);
}
.mema-legal ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.mema-legal li {
  margin-bottom: .5rem;
  line-height: 1.6;
  color: var(--mema-slate);
}
.mema-legal a {
  color: var(--mema-green);
  text-decoration: underline;
}


/* ==========================================================================
   28. TEAM SECTION (Über uns Page)
   ========================================================================== */

.mema-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.mema-team-member {
  text-align: center;
}
.mema-team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--mema-beige);
}
.mema-team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mema-green);
  margin-bottom: .25rem;
}
.mema-team-role {
  font-size: .9rem;
  color: var(--mema-slate);
  margin-bottom: 1rem;
}
.mema-team-bio {
  font-size: .95rem;
  color: var(--mema-text);
  line-height: 1.6;
}
.mema-team-photo-full {
  width: 100%;
  max-width: 800px;
  border-radius: var(--mema-radius);
  margin: 2rem auto;
  display: block;
}


/* ==========================================================================
   29. CONTACT FORM (Kontakt Page)
   ========================================================================== */

/* Kontakt page styles */

.mema-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.mema-contact-card {
  background: var(--mema-bg);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.mema-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.mema-contact-item:last-child {
  margin-bottom: 0;
}

.mema-contact-quote {
  background: var(--mema-green);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
}

.mema-contact-h2 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: var(--mema-text);
}

.mema-contact-h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--mema-text);
}

.mema-contact-sub {
  color: #666;
  margin-bottom: 2rem;
}

.mema-btn-full {
  width: 100%;
}

.mema-contact-icon {
  font-size: 1.25rem;
}

.mema-contact-label {
  font-weight: 600;
  color: var(--mema-text);
}

.mema-contact-link {
  color: var(--mema-green);
  text-decoration: none;
}

.mema-contact-address {
  color: #666;
}

.mema-contact-quote-text {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #fff;
}

.mema-contact-quote-attr {
  font-size: 1rem;
  opacity: 1;
  font-weight: 600;
  color: #fff;
}

.mema-form-optional {
  font-weight: 400;
  color: #999;
}

.mema-check-li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .75rem;
  color: #555;
  font-size: .95rem;
}

.mema-check-li:last-child {
  margin-bottom: 0;
}

.mema-check-mark {
  color: var(--mema-green);
  font-weight: 700;
}

.mema-contact-info {
  padding: 2rem;
  background: rgba(198,197,178,.08);
  border-radius: var(--mema-radius);
}
.mema-contact-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mema-green);
  margin-bottom: 1rem;
}
.mema-contact-info p,
.mema-contact-info li {
  font-size: .95rem;
  color: var(--mema-text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .mema-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ==========================================================================
   30. VALUE CARDS (Über uns Page)
   ========================================================================== */

.mema-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.mema-value-card {
  padding: 2rem;
  background: #fff;
  border-left: 4px solid var(--mema-green);
  border-radius: 0 var(--mema-radius) var(--mema-radius) 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.mema-value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mema-green);
  margin-bottom: .75rem;
}
.mema-value-card p {
  font-size: .95rem;
  color: var(--mema-slate);
  line-height: 1.6;
}


/* ==========================================================================
   31. COOKIE CONSENT BANNER (DSGVO)
   ========================================================================== */

.mema-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--mema-bg);
  border-top: 1px solid var(--mema-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 1rem var(--mema-gutter);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s var(--mema-ease),
              opacity 0.4s var(--mema-ease);
  pointer-events: none;
}

.mema-cookie-banner.mema-cookie-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mema-cookie-inner {
  max-width: var(--mema-max-width, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mema-cookie-text {
  font-size: var(--mema-text-sm);
  color: var(--mema-text);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.mema-cookie-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.6rem 1.75rem;
  background: var(--mema-green);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: var(--mema-font);
  font-size: var(--mema-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--mema-ease),
              transform 0.2s var(--mema-ease);
}

.mema-cookie-btn:hover {
  background: var(--mema-green-mid);
  transform: translateY(-1px);
}

.mema-cookie-btn:focus-visible {
  outline: 3px solid var(--mema-green);
  outline-offset: 2px;
}

/* ==========================================================================
   Solution subpage styles
   ========================================================================== */

/* Breadcrumb */
.mema-breadcrumb-section {
  padding-bottom: 0;
}

.mema-breadcrumb {
  font-size: 0.9rem;
  color: var(--mema-text-muted);
}

.mema-breadcrumb a {
  color: var(--mema-green);
  text-decoration: underline;
}

.mema-breadcrumb-sep {
  margin: 0 0.5rem;
}

/* Problem/pain-point emoji icons */
.mema-stat-emoji {
  font-size: 2.5rem;
}

/* Card icon - default green theme */
.mema-card-icon-green {
  background: rgba(16,58,33,.1);
  color: #103a21;
}

/* Card icon - brown theme (wartungsvertrag) */
.mema-card-icon-brown {
  background: rgba(139,115,85,.1);
  color: #8b7355;
}

/* Card icon - teal theme (teams/exchange) */
.mema-card-icon-teal {
  background: rgba(27,122,92,.1);
  color: #1b7a5c;
}

/* Card icon - steel/blue theme (copilot, power platform) */
.mema-card-icon-steel {
  background: rgba(44,95,124,.1);
  color: #2c5f7c;
}

/* Feature card checklist */
.mema-card-checklist {
  margin-top: 1rem;
  color: var(--mema-text-muted);
  font-size: 0.95rem;
}

.mema-card-checklist li {
  padding: 0.3rem 0;
}

/* Alt background section */
.mema-section-alt {
  background: var(--mema-bg);
}

/* FAQ card spacing */
.mema-faq-card {
  margin-bottom: 1.5rem;
}

/* Related solution card links */
.mema-card-link {
  text-decoration: none;
  color: inherit;
}

/* Team trust strip */
.mema-team-trust {
  padding: 2.5rem 0;
  text-align: center;
}
.mema-team-trust-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: .75rem;
}
.mema-team-trust-avatars img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.mema-team-trust-avatars img + img {
  margin-left: -12px;
}
.mema-team-trust p {
  font-size: .95rem;
  color: var(--mema-text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* Content-visibility for below-fold sections */
.mema-solutions,
.mema-process,
.mema-testimonials,
.mema-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

@media (max-width: 600px) {
  .mema-cookie-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .mema-cookie-btn {
    width: 100%;
  }
}

@media print {
  .mema-cookie-banner {
    display: none;
  }
}


/* ==========================================================================
   WOW-EFFECTS: Typewriter, 3D-Tilt, Scroll-Timeline
   ========================================================================== */

/* ---- 1. Hero Typewriter ---- */
.mema-tw-word {
  opacity: 0;
  display: inline-block;
  animation: mema-word-pop .35s cubic-bezier(.215,.61,.355,1) forwards;
}

@keyframes mema-word-pop {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.mema-highlight-marker {
  position: relative;
}

.mema-highlight-marker::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: -0.1em;
  right: -0.1em;
  height: 0.32em;
  background: rgba(198,197,178,.25);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: mema-marker-draw .7s cubic-bezier(.25,.46,.45,.94) 1.2s forwards;
  z-index: -1;
}

@keyframes mema-marker-draw {
  to { transform: scaleX(1); }
}

/* ---- 2. 3D Tilt Cards ---- */
.mema-solutions-grid {
  perspective: 1200px;
}

.mema-card {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.mema-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.mema-card.mema-tilt-active::after {
  opacity: 1;
}

.mema-card:hover .mema-card-icon svg {
  filter: drop-shadow(0 0 8px rgba(16,58,33,.25));
  transition: filter .3s ease;
}

/* ---- 3. Scroll Timeline ---- */
.mema-steps {
  position: relative;
}

.mema-timeline-track {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(16,58,33,.08);
  border-radius: 2px;
  z-index: 0;
}

.mema-timeline-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--mema-green), var(--mema-emerald));
  border-radius: 2px;
  transition: height .08s linear;
}

.mema-step-num {
  transition: background .4s ease, color .4s ease, box-shadow .4s ease;
  position: relative;
  z-index: 2;
}

.mema-step-num.mema-step-reached {
  background: var(--mema-green);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(16,58,33,.12);
}

@keyframes mema-step-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,58,33,.35); }
  70%  { box-shadow: 0 0 0 14px rgba(16,58,33,0); }
  100% { box-shadow: 0 0 0 6px rgba(16,58,33,.12); }
}

.mema-step-num.mema-step-pulse {
  animation: mema-step-pulse .65s ease;
}

/* Hide original step-line when timeline-track is present */
.mema-steps .mema-step-line {
  background: transparent;
}

/* Mobile: adjust timeline track position */
@media (max-width: 768px) {
  .mema-timeline-track {
    left: 22px;
  }
}
