/* ============================================================================
   Team-Cards + Contact-Channels v2 — Welle 5.10
   ----------------------------------------------------------------------------
   AI-Re-Audit Top-Hebel #2: "About sollte Team-Card mit Foto + Glass-BG +
   sameAs-Icons bekommen. Contact braucht echte Card-Struktur mit Channel-Cards
   (Phone / WhatsApp / LINE / Email) statt klassisches Formular."
   ============================================================================ */

/* ════════════════════════════════════════════════════════════════════
   1. ABOUT-SECTION v2 — Team-Cards
   ════════════════════════════════════════════════════════════════════ */

/* Welle 5.26 v15: .about-header rule entfernt — HTML nutzt jetzt atelier-header (links bündig).
   Tote rule würde mittig-Verhalten reaktivieren wenn jemand das Markup zurück-ändert. */

.team-cards-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  /* Welle 5.26 v25: zurück auf margin auto — Card-Grid centered im Container.
     Editorial-Pattern: Header narrow links, Card-Body wider centered.
     Profi-Standard 2026 (gleiche Logik wie Services-Bento, Pricing-Trio). */
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .team-cards-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.team-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafaf7 100%);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 3px rgba(26, 37, 64, 0.05);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(45, 74, 138, 0.06) 0%,
    transparent 40%,
    rgba(212, 161, 78, 0.05) 100%
  );
  z-index: -1;
  opacity: 0.7;
}

@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(26, 37, 64, 0.10);
  }
  .team-card:hover .team-card-photo img {
    transform: scale(1.04);
  }
}

.team-card--featured::before {
  background: linear-gradient(
    135deg,
    rgba(212, 161, 78, 0.10) 0%,
    transparent 40%,
    rgba(212, 161, 78, 0.06) 100%
  );
}

/* ── Photo + Flag ─────────────────────────────────────────────── */
.team-card-photo {
  position: relative;
  width: 100%;
  /* Welle 5.26 v31: 4:3 landscape → 3:4 portrait — zeigt mehr vom Hochkant-Foto.
     Hauptlich-Bereich (Schultern + Oberkörper) bleibt sichtbar statt unten gecroppt. */
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #e6e0d2, #cdd6e8);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* center statt center top → Köpfe landen näher in der vertikalen Mitte
     des Frames, beide auf ähnlicher Y-Höhe. */
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Welle 5.26 v31: Davids Source-Photo hat Kopf weiter oben als Sirochitas →
   per-Person object-position für visuell aligned Köpfe. */
.team-card[data-member="david"] .team-card-photo img {
  object-position: center 20%;
}
.team-card[data-member="nahm"] .team-card-photo img {
  object-position: center 30%;
}

.team-card-flag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26, 37, 64, 0.12);
  line-height: 1;
}

/* ── Body ─────────────────────────────────────────────────────── */
.team-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem 0.5rem;
}

.team-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-brand-dark, #1a2540);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}

.team-card-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand-primary, #2d4a8a);
  margin: 0 0 0.3rem;
}

.team-card--featured .team-card-role {
  color: #c08e3c;
}

.team-card-bio {
  font-size: 0.85rem;
  color: rgba(26, 37, 64, 0.72);
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

[lang="th"] .team-card-bio {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── Sprachen-Badges ──────────────────────────────────────────── */
.team-card-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.team-card-lang {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
  background: rgba(45, 74, 138, 0.06);
  color: var(--color-brand-primary, #2d4a8a);
  border-radius: 999px;
  border: 1px solid rgba(45, 74, 138, 0.12);
  white-space: nowrap;
}

/* Welle 5.26 v45: Dark-Mode-Kontrast — Brand-Blue auf Navy ist nicht lesbar.
   Statt brand-color → off-white text + Sky-Blue tinted border/background. */
body.is-dark-bg .team-card-lang {
  background: rgba(110, 200, 240, 0.10);
  color: rgba(240, 244, 250, 0.92);
  border-color: rgba(110, 200, 240, 0.28);
}

/* ── Meta: Location + Social ──────────────────────────────────── */
.team-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26, 37, 64, 0.08);
}

.team-card-location {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(26, 37, 64, 0.6);
}

.team-card-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: var(--color-brand-primary, #2d4a8a);
  background: rgba(45, 74, 138, 0.06);
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

@media (hover: hover) {
  .team-card-social:hover {
    background: var(--color-brand-primary, #2d4a8a);
    color: #ffffff;
    transform: scale(1.06) rotate(-3deg);
  }
}

.team-card[data-member="nahm"] .team-card-social {
  color: #06C755; /* LINE Brand-Green */
  background: rgba(6, 199, 85, 0.08);
}

@media (hover: hover) {
  .team-card[data-member="nahm"] .team-card-social:hover {
    background: #06C755;
    color: #ffffff;
  }
}

/* ── About Footer Link ────────────────────────────────────────── */
.about-footer {
  text-align: center;
  margin-top: 2rem;
}

/* ════════════════════════════════════════════════════════════════════════
   DESKTOP (≥1024px): Side-by-Side Layout (Welle 5.26 v32)
   Header + CTA links in 40%-Spalte, Team-Cards rechts in 60%-Spalte.
   Anton & Irene / Studio Bonafide Pattern — direkter visueller Bezug
   zwischen Personalstatement und Team-Photos, kein Whitespace-Riss.
   Mobile + Tablet: bleibt vertikal stacked (Default oben).
   ════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  #about .container {
    display: grid;
    /* v35: 4/6 → 5/5 — mehr Platz für Headline damit sie in 2 Zeilen passt statt 3 */
    grid-template-columns: 5fr 5fr;
    grid-template-areas:
      "header cards"
      "footer cards";
    grid-template-rows: auto auto;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }

  /* v35: Title kompakter + Subline näher am Title */
  #about .atelier-title {
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    text-wrap: balance;
    margin-bottom: 0.75rem;
  }
  #about .section-sub {
    margin-top: 0;
  }

  #about .atelier-header {
    grid-area: header;
    margin-bottom: 0;
  }

  #about .team-cards-v2 {
    grid-area: cards;
    /* Welle 5.26 v33: margin-top schiebt Cards auf Höhe des Titels (nicht Eyebrow).
       Eyebrow + seine margin-bottom ≈ 2.5rem — Cards startet damit unter dem Eyebrow,
       optisch auf gleicher Linie wie der Title links. */
    margin: 2.5rem 0 0;
    max-width: 100%;
    padding: 0;
  }

  #about .about-footer {
    grid-area: footer;
    margin: 0;
    text-align: left;
  }

}

/* ════════════════════════════════════════════════════════════════════
   2. CONTACT-SECTION v2 — Channel-Cards
   ════════════════════════════════════════════════════════════════════ */

.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1000px;
  margin: 3rem auto 2.5rem;
  padding: 0 1rem;
}

@media (min-width: 540px) {
  .contact-channels {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .contact-channels {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(26, 37, 64, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease;
  box-shadow: 0 1px 2px rgba(26, 37, 64, 0.04);
}

.contact-channel::before {
  /* Subtle gradient overlay, channel-spezifisch */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.contact-channel[data-channel="line"]::before {
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.08), transparent);
}
.contact-channel[data-channel="whatsapp"]::before {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), transparent);
}
.contact-channel[data-channel="phone"]::before {
  background: linear-gradient(135deg, rgba(45, 74, 138, 0.06), transparent);
}
.contact-channel[data-channel="email"]::before {
  background: linear-gradient(135deg, rgba(212, 161, 78, 0.07), transparent);
}

@media (hover: hover) {
  .contact-channel:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(26, 37, 64, 0.12);
    border-color: rgba(26, 37, 64, 0.16);
  }
  .contact-channel:hover::before { opacity: 1; }
  .contact-channel:hover .contact-channel-icon { transform: scale(1.1) rotate(-3deg); }
}

/* ── Channel-Icon ─────────────────────────────────────────────── */
.contact-channel-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-channel-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.contact-channel[data-channel="line"] .contact-channel-icon {
  color: #06C755;
  background: rgba(6, 199, 85, 0.10);
}
.contact-channel[data-channel="whatsapp"] .contact-channel-icon {
  color: #25D366;
  background: rgba(37, 211, 102, 0.10);
}
.contact-channel[data-channel="phone"] .contact-channel-icon {
  color: var(--color-brand-primary, #2d4a8a);
  background: rgba(45, 74, 138, 0.08);
}
.contact-channel[data-channel="email"] .contact-channel-icon {
  color: #c08e3c;
  background: rgba(212, 161, 78, 0.12);
}

/* ── Channel-Texts ────────────────────────────────────────────── */
.contact-channel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 37, 64, 0.55);
}

.contact-channel-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand-dark, #1a2540);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

[lang="th"] .contact-channel-value {
  font-size: 0.95rem;
}

.contact-channel-hint {
  font-size: 0.75rem;
  color: rgba(26, 37, 64, 0.55);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   3. HOMEPAGE-TEASER: Mini-Contact-Channels (Welle 5.26 v36)
   ───────────────────────────────────────────────────────────────────────
   Reduzierte 2-Card-Variante für Homepage. Full 4-Channel-Grid + Form +
   Calendar lebt auf /contact/ Subpage. Pattern: data-backed (Chili Piper
   2025 Benchmark, NN/G "minimal distractions").
   ═══════════════════════════════════════════════════════════════════════ */

.contact-channels-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
}

@media (min-width: 640px) {
  .contact-channels-mini {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.contact-channel-mini {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.1rem, 2vw, 1.6rem);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(20, 152, 213, 0.10);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(10, 27, 51, 0.04),
    0 8px 24px -10px rgba(10, 27, 51, 0.06);
}

/* Brand-color gradient sheen on hover */
.contact-channel-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(20, 152, 213, 0.06) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) {
  .contact-channel-mini:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 152, 213, 0.28);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 1) inset,
      0 8px 20px -4px rgba(20, 152, 213, 0.18),
      0 18px 38px -10px rgba(20, 152, 213, 0.22);
  }
  .contact-channel-mini:hover::before { opacity: 1; }
  .contact-channel-mini:hover .contact-channel-mini-icon {
    transform: scale(1.05);
  }
}

.contact-channel-mini-icon {
  flex-shrink: 0;
  width: clamp(44px, 5vw, 52px);
  height: clamp(44px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 152, 213, 0.09);
  color: #1498D5;
  border-radius: 13px;
  transition: transform 0.4s cubic-bezier(0.34, 1.16, 0.64, 1);
}

.contact-channel-mini-icon svg {
  width: clamp(22px, 2.5vw, 26px);
  height: clamp(22px, 2.5vw, 26px);
}

/* LINE bekommt Brand-Grün (06C755) */
.contact-channel-mini[data-channel="line"] .contact-channel-mini-icon {
  background: rgba(6, 199, 85, 0.10);
  color: #06C755;
}

.contact-channel-mini-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.contact-channel-mini-label {
  font-family: var(--at-font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 27, 51, 0.55);
}

.contact-channel-mini-value {
  font-family: var(--at-font-display, var(--font-main, 'Inter', system-ui, sans-serif));
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0A1B33;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-channel-mini-meta {
  font-family: var(--at-font-body, inherit);
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(10, 27, 51, 0.55);
  letter-spacing: -0.005em;
  margin-top: 0.1rem;
}

/* Dark-Mode */
body.is-dark-bg .contact-channel-mini {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(62, 182, 240, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 24px -10px rgba(0, 0, 0, 0.4);
}

body.is-dark-bg .contact-channel-mini::before {
  background: linear-gradient(135deg,
    rgba(62, 182, 240, 0.08) 0%,
    transparent 60%);
}

@media (hover: hover) {
  body.is-dark-bg .contact-channel-mini:hover {
    border-color: rgba(62, 182, 240, 0.40);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 8px 20px -4px rgba(62, 182, 240, 0.18),
      0 18px 38px -10px rgba(62, 182, 240, 0.20);
  }
}

body.is-dark-bg .contact-channel-mini-icon {
  background: rgba(62, 182, 240, 0.14);
  color: #6FCDF5;
}

body.is-dark-bg .contact-channel-mini[data-channel="line"] .contact-channel-mini-icon {
  background: rgba(6, 199, 85, 0.16);
  color: #4ADE80;
}

body.is-dark-bg .contact-channel-mini-label,
body.is-dark-bg .contact-channel-mini-meta {
  color: rgba(240, 244, 250, 0.55);
}

body.is-dark-bg .contact-channel-mini-value {
  color: rgba(240, 244, 250, 0.96);
}

/* Single CTA centered unter den 2 Channels */
.contact-cta-single {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
}

/* ── Reduced-Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card-photo img,
  .team-card-social,
  .contact-channel,
  .contact-channel-icon,
  .contact-channel::before,
  .contact-channel-mini,
  .contact-channel-mini-icon,
  .contact-channel-mini::before {
    transition: none;
  }
}

