/* ==========================================================================
   REDESIGN v2 — Unique Design System
   Blueprint · Editorial · Personal
   ========================================================================== */

/* ---- Shared: DM Serif Display italic ---- */
.mema-serif-italic {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ==========================================================================
   HERO v2 — Split Layout + Blueprint Grid + Portraits
   ========================================================================== */

.mema-hero {
  background: linear-gradient(140deg, #050e08 0%, #0d2e18 40%, var(--mema-green) 100%);
  position: relative;
  overflow: hidden;
  padding: calc(var(--mema-nav-height) + 80px) 40px 100px;
}

/* Diagonal clip + overlap — Startseite only */
.mema-hero--split {
  padding-bottom: 140px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  margin-bottom: -60px;
}

/* Blueprint grid */
.mema-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198,197,178,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,197,178,.08) 1px, transparent 1px),
    linear-gradient(rgba(198,197,178,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,197,178,.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  pointer-events: none;
}

/* Radial light */
.mema-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 60%, rgba(27,122,92,.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 75% 20%, rgba(44,95,124,.1) 0%, transparent 70%);
  pointer-events: none;
}

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

/* Split layout — index.html only */
.mema-hero--split .mema-hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  gap: 64px;
  align-items: center;
}

.mema-hero-content {
  max-width: 620px;
}

.mema-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mema-beige);
  opacity: .8;
  margin-bottom: 20px;
}

.mema-hero-h1 {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0;
}

.mema-hero-h1 em {
  display: inline;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--mema-beige);
  letter-spacing: -0.02em;
}

.mema-hero-h1-accent {
  display: block;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 0.05em;
}

.mema-hero-underline {
  display: block;
  width: 65%;
  margin-top: 4px;
  margin-bottom: 0;
  margin-inline: auto;
}

.mema-hero-lead {
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 36px;
}

/* Split-Hero (Startseite): Buttons linksbündig */
.mema-hero--split .mema-hero-btns {
  justify-content: flex-start;
}

.mema-hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.mema-hero-trust-stars {
  color: #f5c842;
  font-size: 14px;
  letter-spacing: 1px;
}

.mema-hero-trust-text {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* Portraits */
.mema-hero-portraits {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mema-hero-portrait {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.12);
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,.05);
}

.mema-hero-portrait--offset {
  margin-top: 48px;
}

.mema-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mema-hero-portrait-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 32px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mema-hero-portrait-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.mema-hero-portrait-role {
  color: var(--mema-beige);
  font-size: 12px;
  font-weight: 500;
  opacity: .85;
}

@media (max-width: 900px) {
  .mema-hero--split {
    clip-path: none;
    margin-bottom: 0;
    padding-bottom: 80px;
  }

  .mema-hero--split .mema-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mema-hero-content {
    max-width: 100%;
  }

  .mema-hero-portraits {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   STATS BAR — Editorial Oversized
   ========================================================================== */

.mema-stats-bar {
  background: var(--mema-green);
  padding: 64px 40px;
  position: relative;
  z-index: 1;
}

.mema-stats-bar-inner {
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mema-stat-bar-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 60px;
  flex: 1;
  justify-content: center;
}

.mema-stat-bar-num {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.mema-stat-bar-num sup {
  font-size: .45em;
  font-weight: 700;
  color: var(--mema-beige);
  vertical-align: super;
  letter-spacing: 0;
}

.mema-stat-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.5;
}

.mema-stat-bar-sep {
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mema-stats-bar-inner {
    flex-direction: column;
    gap: 40px;
  }

  .mema-stat-bar-sep {
    width: 60px;
    height: 1px;
  }

  .mema-stat-bar-item {
    padding: 0;
  }
}

/* ==========================================================================
   TEAM SECTION — Individual Portraits
   ========================================================================== */

.mema-team {
  padding: 120px 40px;
  background: var(--mema-bg);
}

.mema-team-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 640px;
  margin-inline: auto;
}

.mema-team-grid {
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.mema-team-card {
  background: var(--mema-bg-white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--mema-border);
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: box-shadow .3s var(--mema-ease), transform .3s var(--mema-ease);
}

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

.mema-team-photo {
  overflow: hidden;
  background: var(--mema-green-xlt);
}

.mema-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .5s var(--mema-ease);
}

.mema-team-card:hover .mema-team-photo img {
  transform: scale(1.04);
}

.mema-team-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mema-team-role-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mema-green);
  background: var(--mema-green-xlt);
  padding: 4px 12px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 4px;
}

.mema-team-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mema-text);
  margin: 0;
  line-height: 1.2;
}

.mema-team-expertise {
  font-size: 13px;
  color: var(--mema-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.mema-team-info p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--mema-text-muted);
  margin: 0;
}

/* Values strip */
.mema-values-strip {
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  background: var(--mema-bg-white);
  border: 1px solid var(--mema-border);
  border-radius: 20px;
  padding: 32px 48px;
  margin-bottom: 40px;
}

.mema-value-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 0 24px;
}

.mema-value-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.mema-value-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mema-value-item strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--mema-text);
}

.mema-value-item span {
  font-size: 12px;
  color: var(--mema-text-muted);
}

.mema-value-sep {
  width: 1px;
  height: 48px;
  background: var(--mema-border);
  flex-shrink: 0;
}

.mema-team-cta {
  text-align: center;
}

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

  .mema-team-card {
    grid-template-columns: 160px 1fr;
  }

  .mema-values-strip {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }

  .mema-value-item {
    padding: 0;
    width: 100%;
  }

  .mema-value-sep {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 560px) {
  .mema-team-card {
    grid-template-columns: 1fr;
  }

  .mema-team-photo {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   TESTIMONIALS — Pull Quote
   ========================================================================== */

.mema-testimonials {
  background: var(--mema-green);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

.mema-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198,197,178,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,197,178,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Override old grid styles */
.mema-testimonials-grid {
  display: none;
}

.mema-testimonials-header {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.mema-testimonials-header .mema-label {
  color: var(--mema-beige);
  opacity: .7;
}

.mema-testimonials-header h2 {
  display: none;
}

.mema-pullquote-wrap {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.mema-pullquote-mark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 12rem;
  line-height: .6;
  color: rgba(198,197,178,.15);
  user-select: none;
  margin-bottom: 8px;
}

.mema-pullquote {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  font-weight: 400;
  margin-bottom: 40px;
  transition: opacity .35s ease;
}

.mema-pullquote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  transition: opacity .35s ease;
}

.mema-pullquote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mema-beige);
  color: var(--mema-green);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
  object-fit: cover;
}

.mema-pullquote-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.mema-pullquote-meta strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.mema-pullquote-meta span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

.mema-pullquote-stars {
  color: #f5c842;
  font-size: 14px;
  letter-spacing: 2px;
  margin-left: 8px;
}

/* Navigation */
.mema-pullquote-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mema-tnav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.mema-tnav-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

.mema-tdots {
  display: flex;
  gap: 8px;
}

.mema-tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 18px;
  background-clip: content-box;
  transition: all .25s ease;
}

.mema-tdot--active {
  background: var(--mema-beige);
  background-clip: content-box;
  width: 24px;
  border-radius: 9999px;
}

.mema-pullquote.mema-t-fade,
.mema-pullquote-author.mema-t-fade {
  opacity: 0;
}
