/* =============================================================================
   ERGOTHERAPIEPRAXIS LEA FREIBOTT — Praxis & Team Styles (praxis-team.css)
   ============================================================================= */

/* =============================================================================
   0. SCROLL ANIMATIONS
   ============================================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up--delay-1 { transition-delay: 100ms; }
.fade-up--delay-2 { transition-delay: 200ms; }
.fade-up--delay-3 { transition-delay: 300ms; }

/* =============================================================================
   1. CINEMATIC HERO
   ============================================================================= */
.team-hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt);
}

.team-hero-content {
  padding: var(--space-16) var(--space-12) var(--space-16) var(--container-pad);
  padding-left: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
  z-index: 2;
}

.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-6);
}

.team-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.team-hero-heading {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: var(--fw-semi);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.team-hero-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 46ch;
  margin-bottom: var(--space-10);
}

/* 
 * CRITICAL DESIGN RULE:
 * Media container background MUST be pure white #ffffff.
 */
.team-hero-media-wrapper {
  padding: var(--space-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.team-hero-container {
  width: 100%;
  height: 90%;
  background: #ffffff; /* STRICT: pure white */
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 40px rgba(45,45,45,0.08), 0 1px 3px rgba(45,45,45,0.05);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-hero-container svg {
  width: 80px;
  height: 80px;
  color: var(--color-border);
  opacity: 0.5;
}

/* =============================================================================
   2. THE FOUNDER FEATURE
   ============================================================================= */
.founder-feature {
  padding-block: 120px;
  background: var(--color-bg);
}

.founder-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: var(--space-20);
  align-items: center;
}

/* 
 * CRITICAL DESIGN RULE:
 * Portrait placeholder MUST be pure white #ffffff.
 */
.founder-portrait {
  background: #ffffff; /* STRICT: pure white */
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 16px 40px rgba(45,45,45,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.founder-portrait svg {
  width: 64px;
  height: 64px;
  color: var(--color-border);
  opacity: 0.5;
}

.founder-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.founder-content p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-6);
}

.founder-quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-primary-dark);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-6);
  margin-block: var(--space-10);
  line-height: 1.4;
}

.founder-signature {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 2.5rem;
  color: var(--color-text-light);
  opacity: 0.8;
  margin-top: var(--space-8);
}

/* =============================================================================
   3. THE TEAM GRID
   ============================================================================= */
.team-grid-section {
  padding-block: 120px;
  background: var(--color-surface-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(45,45,45,0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 
 * CRITICAL DESIGN RULE:
 * Team member image placeholders MUST be pure white #ffffff.
 */
.team-media {
  aspect-ratio: 1 / 1;
  background: #ffffff; /* STRICT: pure white */
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-media svg {
  width: 48px;
  height: 48px;
  color: var(--color-border);
  opacity: 0.5;
}

.team-card-content {
  padding: var(--space-8);
  flex: 1;
}

.team-role {
  display: inline-block;
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.team-card h3 {
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.team-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

/* =============================================================================
   4. AUSSTATTUNG & BARRIEREFREIHEIT
   ============================================================================= */
.ausstattung {
  padding-block: 120px;
  background: var(--color-bg);
}

.ausstattung-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: 80px;
}

.ausstattung-row:last-child {
  margin-bottom: 0;
}

/* Z-pattern reversal */
.ausstattung-row--reverse {
  direction: rtl;
}

.ausstattung-row--reverse > * {
  direction: ltr;
}

/* 
 * CRITICAL DESIGN RULE:
 * Equipment image placeholders MUST be pure white #ffffff.
 */
.ausstattung-media {
  aspect-ratio: 4 / 3;
  background: #ffffff; /* STRICT: pure white */
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 12px 32px rgba(45,45,45,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ausstattung-media svg {
  width: 48px;
  height: 48px;
  color: var(--color-border);
  opacity: 0.5;
}

.ausstattung-content h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: var(--space-6);
}

.ausstattung-content p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-6);
}

/* =============================================================================
   5. UPGRADED PRAXIS GALLERY & VIDEO TOUR
   ============================================================================= */
.praxis-rundgang {
  padding-block: 120px;
  background: var(--color-surface-alt);
}

/* 
 * CRITICAL DESIGN RULE:
 * Video placeholder MUST be pure white #ffffff.
 */
.praxis-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff; /* STRICT: pure white */
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 16px 40px rgba(45,45,45,0.08);
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.praxis-video-container svg {
  width: 80px;
  height: 80px;
  color: var(--color-border);
  opacity: 0.5;
}

/* Asymmetric CSS Masonry Grid for static photos */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-4);
}

/* 
 * CRITICAL DESIGN RULE:
 * Masonry image placeholders MUST be pure white #ffffff.
 */
.masonry-item {
  background: #ffffff; /* STRICT: pure white */
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(45,45,45,0.03);
}

.masonry-item svg {
  width: 48px;
  height: 48px;
  color: var(--color-border);
  opacity: 0.5;
}

.masonry-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.masonry-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.masonry-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.masonry-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.masonry-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }

/* =============================================================================
   6. KARRIERE / STELLENANGEBOTE
   ============================================================================= */
.karriere-teaser {
  background: rgba(253, 184, 125, 0.15); /* Warm, light brand background */
  padding-block: 120px;
  text-align: center;
  border-block: 1px solid rgba(253, 184, 125, 0.3);
}

.karriere-teaser h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.karriere-teaser p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* =============================================================================
   7. CTA & LOCATION
   ============================================================================= */
.team-cta {
  background: var(--color-surface);
  padding-block: 120px;
  text-align: center;
}

.team-cta h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: var(--space-8);
}

/* =============================================================================
   RESPONSIVE LAYOUTS
   ============================================================================= */

/* ── Portrait Wrapper & Credential Badge ────────────────────────────────────── */
.founder-portrait-wrapper {
  position: relative;
}

.founder-credential-badge {
  position: absolute;
  bottom: var(--space-6);
  right: calc(-1 * var(--space-6));
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.10);
  white-space: nowrap;
  z-index: 2;
}

.founder-credential-badge__avatar {
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: #ffffff;
  flex-shrink: 0;
}

.founder-credential-badge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.founder-credential-badge__text strong {
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text);
}

.founder-credential-badge__text span {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* ── Vita Timeline ──────────────────────────────────────────────────────────── */
.vita-section {
  padding-block: 120px;
  background: var(--color-surface-alt);
}

.vita-header {
  text-align: center;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.vita-header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: var(--space-4);
}

.vita-intro {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 56ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

.vita-timeline {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vita-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  padding-bottom: 5rem;
}

.vita-item:last-child {
  padding-bottom: 0;
}

.vita-item::before {
  content: '';
  position: absolute;
  top: 52px;
  bottom: 0;
  left: 25px;
  width: 2px;
  background: var(--color-border-light);
  z-index: 0;
}

.vita-item:last-child::before {
  display: none;
}

.vita-item__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.vita-item__dot {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(45, 45, 45, 0.06);
  position: relative;
  z-index: 1;
}

.vita-item__dot svg {
  width: 22px;
  height: 22px;
  color: var(--color-text-secondary);
}

.vita-item__dot--highlight {
  border-color: rgba(141, 188, 176, 0.5);
  background: rgba(141, 188, 176, 0.08);
}
.vita-item__dot--highlight svg { color: #4a9989; }

.vita-item__dot--primary {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}
.vita-item__dot--primary svg { color: var(--color-primary-dark); }

.vita-item__line {
  display: none;
}

.vita-item__card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  margin-bottom: 0;
  box-shadow: 0 4px 16px rgba(45, 45, 45, 0.05);
  transition: box-shadow var(--transition-fast), transform var(--transition-base);
}

.vita-item__card:hover {
  box-shadow: 0 6px 24px rgba(45, 45, 45, 0.09);
  transform: translateY(-2px);
}

.vita-item__card--highlight {
  border-color: rgba(141, 188, 176, 0.35);
  background: rgba(141, 188, 176, 0.04);
}

.vita-item__card--primary {
  border-color: rgba(253, 184, 125, 0.45);
  background: rgba(253, 184, 125, 0.06);
}

.vita-item__year {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.vita-item__year--accent { color: #4a9989; }
.vita-item__year--primary { color: var(--color-primary-dark); }

.vita-item__card h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.vita-item__card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* ── Meine Haltung (Philosophy) ─────────────────────────────────────────────── */
.meine-haltung {
  padding-block: 120px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.meine-haltung::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(253, 184, 125, 0.08), transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.haltung-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: stretch;
}

.haltung-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.haltung-content h2 em {
  font-style: italic;
  color: var(--color-primary-dark);
}

.haltung-content p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-5);
}

.haltung-values {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.haltung-value-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(45, 45, 45, 0.04);
}

.haltung-value-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.haltung-value-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-dark);
}

.haltung-value-item span {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.haltung-accent {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  height: 100%;
}

.haltung-blockquote {
  background: var(--color-surface-alt);
  border: none;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-primary-dark);
  line-height: 1.4;
  margin: 0;
}

.haltung-blockquote cite {
  display: block;
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
}

/* CRITICAL: pure white #ffffff background */
.haltung-figure {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.07);
  flex: 1;
}

.haltung-figure svg {
  width: 40px;
  height: 40px;
  color: var(--color-border);
  opacity: 0.4;
}

/* =============================================================================
   RESPONSIVE LAYOUTS
   ============================================================================= */
@media (max-width: 1024px) {
  .team-hero { grid-template-columns: 1fr; text-align: center; }
  .team-hero-content { padding: var(--space-16) var(--space-6); }
  .team-hero-media-wrapper { display: none; }
  .founder-grid { grid-template-columns: 1fr; text-align: center; }
  .founder-portrait-wrapper { max-width: 340px; margin-inline: auto; }
  .founder-credential-badge { right: 0; }
  .haltung-grid { grid-template-columns: 1fr; }
  .haltung-accent { position: static; }
  .ausstattung-row { grid-template-columns: 1fr; text-align: center; }
  .ausstattung-row--reverse { direction: ltr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .masonry-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .masonry-item { aspect-ratio: 16 / 9; }
  .vita-item { grid-template-columns: 40px 1fr; gap: var(--space-4); }
  .vita-item__dot { width: 40px; height: 40px; }
  .vita-item__card { padding: var(--space-5); }
}
