/* ============================================================
   AtlasPflege – Custom styles (Bootstrap 5 overrides + premium design)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --red:      #c0392b;
  --red-dark: #922b21;
  --green:    #1a3320;
  --green-mid:#2d4a1e;
  --gold:     #d4a017;
  --gold-dark:#b8890f;
  --gradient: linear-gradient(135deg, #b71c1c 0%, #7b1010 22%, #2d4a1e 58%, #1a3320 100%);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,.12);
  --shadow-lg: 0 14px 48px rgba(0,0,0,.18);
  --radius:   14px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ─── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}

/* ─── NAVBAR ────────────────────────────────────────────────── */
.ap-navbar {
  background: #fff !important;
  box-shadow: var(--shadow-sm);
  padding: 0;
  height: 70px;
  transition: box-shadow var(--transition);
  position: relative;
}

.ap-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.13);
}

.ap-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon { width: 46px; height: 46px; flex-shrink: 0; }
.navbar-logo-img { height: 54px; width: auto; object-fit: contain; flex-shrink: 0; }

.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }

.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1;
}
.logo-title .atlas  { color: var(--gold); }
.logo-title .pflege { color: var(--green); }

.logo-sub {
  font-size: .6rem;
  color: #888;
  letter-spacing: .6px;
  font-weight: 500;
  margin-top: 2px;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  overflow: hidden;
  margin-right: 12px;
}
.lang-switcher button {
  background: none;
  border: none;
  padding: 4px 11px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  color: #555;
  transition: background var(--transition), color var(--transition);
}
.lang-switcher button.active {
  background: #f3f3f3;
  color: var(--green);
}
.lang-switcher button:hover { background: #efefef; }

/* Nav links */
.ap-navbar .nav-link {
  color: var(--green) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.ap-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.ap-navbar .nav-link:hover::after,
.ap-navbar .nav-link.active::after { transform: scaleX(1); }
.ap-navbar .nav-link:hover,
.ap-navbar .nav-link.active { color: var(--gold) !important; font-weight: 700; }

/* PDF link */
.logo-pdf-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #555;
  font-size: .85rem;
  font-weight: 500;
  transition: color var(--transition);
}
.logo-pdf-link:hover { color: var(--green); }
.logo-pdf-link svg { width: 15px; height: 15px; }

/* CTA button */
.btn-anfragen {
  background: var(--gold);
  color: #fff !important;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(212,160,23,.3);
}
.btn-anfragen:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,.4);
}

/* Hamburger */
.navbar-toggler { border: 1.5px solid rgba(0,0,0,.15); }
.navbar-toggler:focus { box-shadow: none; }

/* ── Menu mobile (collapsed) ── */
@media (max-width: 991px) {

  .ap-navbar {
    height: auto;
    min-height: 70px;
    padding: 0 16px;
    align-items: center;
  }

  /* Le bloc collapse devient un vrai panel blanc */
  .ap-navbar .navbar-collapse {
    background: #fff;
    border-top: 2px solid var(--gold);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    padding: 20px 24px 24px;
    margin-top: 0;
    /* Positionnement absolu sous la navbar */
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  /* Language switcher en haut */
  .lang-switcher {
    margin-right: 0;
    margin-bottom: 16px;
    align-self: flex-start;
  }

  /* Liens de navigation */
  .ap-navbar .navbar-nav {
    flex-direction: column;
    gap: 0 !important;
    width: 100%;
    margin-bottom: 16px;
  }

  .ap-navbar .nav-link {
    padding: 13px 16px !important;
    border-radius: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: .95rem !important;
    font-weight: 600 !important;
    color: var(--green) !important;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ap-navbar .nav-link:last-child { border-bottom: none; }

  .ap-navbar .nav-link.active {
    background: #fffbea;
    color: var(--gold) !important;
  }

  .ap-navbar .nav-link::after { display: none; }

  /* PDF + bouton en bas */
  .ap-navbar .d-flex.align-items-center {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .btn-anfragen {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
  }
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero-section {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-left {
  background: var(--gradient);
  padding: 72px 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  color: #f0e2c0;
  font-size: .76rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 30px;
  width: fit-content;
  letter-spacing: .3px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 0 0 rgba(212,160,23,.5); }
  50%      { opacity:.8; transform:scale(1.2); box-shadow: 0 0 0 5px rgba(212,160,23,0); }
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -.5px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 430px;
}

/* Buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(212,160,23,.4);
}
.btn-hero-primary:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(212,160,23,.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .5px;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 500;
}
.stat-item svg {
  width: 17px; height: 17px;
  stroke: var(--gold);
  flex-shrink: 0;
}

/* Hero right */
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 8s ease;
}
.hero-right:hover img { transform: scale(1.04); }

.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(150,20,10,.5) 0%,
    rgba(150,20,10,.15) 35%,
    transparent 65%);
  z-index: 1;
}

/* ─── SECTION COMMUNE ────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -.3px;
  margin-bottom: 14px;
}

.section-sub-main {
  font-size: 1rem;
  color: #1a4d8f;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── CARDS (Von Marokko) ───────────────────────────────────── */
.marokko-section { background: #fff; padding: 96px 0 80px; }

.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  /* Animation d'entrée CSS — pas de opacity:0 par défaut */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease, box-shadow var(--transition);
}

.photo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Le délai est appliqué via JS (data-delay sur l'élément) */
.photo-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.72) 100%);
  z-index: 1;
  transition: opacity var(--transition);
}
.photo-card:hover::after { opacity: .85; }

.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.photo-card:hover img { transform: scale(1.07); }

.photo-card--gold .gold-tint {
  position: absolute; inset: 0;
  background: rgba(180,130,10,.3);
  z-index: 1;
  transition: opacity var(--transition);
}
.photo-card--gold:hover .gold-tint { opacity: .5; }

.photo-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 24px;
  color: #fff;
  z-index: 2;
  transform: translateY(6px);
  transition: transform var(--transition);
}
.photo-card:hover .photo-card-body { transform: translateY(0); }

.photo-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.photo-card-body p {
  font-size: .78rem;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
}

/* ─── STATS CARDS ───────────────────────────────────────────── */
.stats-section { background: #f5f5f7; padding: 80px 0; }

.stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 28px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
  height: 100%;
  border-left: 3px solid transparent;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--gold);
}

.stat-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 28px; height: 28px;
  stroke: #fff; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon--blue   { background: linear-gradient(135deg,#42a5f5,#1565c0); }
.stat-icon--green  { background: linear-gradient(135deg,#66bb6a,#1b5e20); }
.stat-icon--pink   { background: linear-gradient(135deg,#f06292,#880e4f); }
.stat-icon--orange { background: linear-gradient(135deg,#ffb74d,#e65100); }

.stat-card-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-card-label {
  font-size: .9rem;
  font-weight: 600;
  color: #444;
  line-height: 1.4;
}

/* ─── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  background: var(--gradient);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.4px;
  position: relative;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 40px;
  line-height: 1.65;
  position: relative;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(212,160,23,.45);
}
.btn-cta:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(212,160,23,.55);
}
.btn-cta svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.ap-footer {
  background: var(--red);
  color: #fff;
}

.footer-top {
  padding: 64px 0 48px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: .2px;
}
.footer-logo-atlas  { color: var(--gold); }
.footer-logo-pflege { color: #fff; }

.footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  max-width: 240px;
}

.footer-heading {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: .2px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-links span {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color var(--transition);
  word-break: break-all;
  overflow-wrap: break-word;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 575px) {
  .footer-links a, .footer-links span { font-size: .72rem; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* Counter */
.counter-num { display: inline-block; }

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ÜBER UNS (page) ───────────────────────────────────────── */
.about-hero {
  background: var(--gradient);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-content { padding: 80px 20px 110px; text-align: center; }

.about-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.about-hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.82);
}

.handshake-img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0,0,0,.14);
  object-fit: cover;
  max-height: 480px;
}

.mission-title {
  font-family: 'Playfair Display', Georgia, serif;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 24px;
}
.mission-icon svg {
  width: 34px; height: 34px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}
.mission-text {
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.82;
  margin-bottom: 20px;
}
.mission-quote {
  margin-top: 40px;
  padding: 32px 40px;
  background: #fffbea;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  font-style: italic;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
}

/* ─── UNSERE WERTE ──────────────────────────────────────────── */
.werte-section {
  background: #f5f5f7;
  padding: 88px 0 80px;
}

.werte-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  border-top: 3px solid transparent;
}

.werte-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold);
}

.werte-icon {
  width: 64px;
  height: 64px;
  background: #fffbea;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.werte-icon svg {
  width: 30px;
  height: 30px;
}

.werte-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}

.werte-text {
  font-size: .92rem;
  color: #1a4d8f;
  line-height: 1.7;
  margin: 0;
}

/* ─── UNSER TEAM ────────────────────────────────────────────── */
.team-section {
  background: #fff;
  padding: 96px 0 0;
}

.team-heading {
  font-family: 'Playfair Display', Georgia, serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -.3px;
  margin-bottom: 14px;
}

.team-heading-icon { width: 34px; height: 34px; flex-shrink: 0; }

/* ── Legacy row layout (kept for compatibility) ── */
.team-row {
  display: grid;
  grid-template-columns: 305px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 24px;
}

.team-row--reverse {
  grid-template-columns: 1fr 305px;
}
.team-row--reverse .team-photo-col { order: 2; }
.team-row--reverse .team-bio-col   { order: 1; }

/* ── Photo frame (legacy) ── */
.team-photo-frame {
  position: relative;
  width: 305px;
  border-radius: 20px;
  overflow: visible;
}

.team-photo-accent {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--gold);
  opacity: .15;
  z-index: 0;
  transition: opacity var(--transition);
}
.team-photo-accent--green { background: var(--green); }
.team-photo-frame:hover .team-photo-accent { opacity: .28; top: -18px; left: -18px; }

.team-photo {
  position: relative;
  z-index: 1;
  width: 305px;
  height: 463px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 44px rgba(0,0,0,.16);
  transition: transform .45s ease, box-shadow .45s ease;
}
.team-photo-frame:hover .team-photo {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,.22);
}

/* Badge flottant (legacy) */
.team-photo-badge {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--gold);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(212,160,23,.45);
  white-space: nowrap;
  letter-spacing: .3px;
}
.team-photo-badge--green { background: var(--green); box-shadow: 0 4px 14px rgba(26,51,32,.35); }
.team-photo-badge svg { width: 13px; height: 13px; stroke: #fff; }

/* ── Bio block (legacy) ── */
.team-bio-col {
  display: flex;
  align-items: center;
}

.team-bio-inner {
  width: 100%;
}

/* ── TEAM PANEL (new magazine-style full-width split) ── */
.team-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 560px;
}

.team-panel--reverse {
  grid-template-columns: 55% 45%;
}

/* Image side */
.team-panel-img {
  position: relative;
  overflow: hidden;
}

.team-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}

.team-panel:hover .team-panel-img img {
  transform: scale(1.04);
}

.team-panel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  pointer-events: none;
}

/* Bio side */
.team-panel-bio {
  background: #fff;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-panel--reverse .team-panel-bio {
  background: #fafafa;
  order: -1;
}

/* Badge overlay on image */
.team-panel-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 2;
  letter-spacing: .3px;
}

.team-panel-badge--right {
  left: auto;
  right: 24px;
}

/* Team name */
.team-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 4px;
  letter-spacing: -.4px;
  line-height: 1.1;
}

/* Team role */
.team-role {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}
.team-role--green { color: var(--green); }

/* Team description */
.team-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* Team list */
.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.team-list li {
  font-size: .93rem;
  color: #333;
  line-height: 1.5;
  padding: 12px 0 12px 20px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--transition), padding-left var(--transition);
}

.team-list li:last-child { border-bottom: none; }

.team-list li:hover {
  background: rgba(212,160,23,0.05);
  padding-left: 26px;
  border-radius: 6px;
}

.team-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gold);
  border-radius: 2px;
  transition: height var(--transition);
}

.team-list li:hover::before {
  height: 80%;
}

/* ── Divider décoratif ── */
.team-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 52px 0;
  background: #fff;
}

/* When inside team-section .container, add horizontal padding */
.team-section .container .team-divider {
  padding: 52px 0;
}

/* For full-width panels, divider needs special treatment */
.team-section > .team-divider {
  padding: 52px 5%;
}

.team-divider span:not(.team-divider-dot) {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
}
.team-divider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,160,23,.2);
  flex: none;
}

/* ─── ZAHLEN SECTION ────────────────────────────────────────── */
.zahlen-section {
  background: var(--gradient);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.zahlen-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}

.zahlen-item {
  padding: 40px 20px;
  text-align: center;
  position: relative;
  border-right: 1px solid rgba(255,255,255,.1);
}

.zahlen-item:last-child { border-right: none; }

.zahlen-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
  text-shadow: 0 2px 16px rgba(212,160,23,.35);
}

.zahlen-label {
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2px;
}

@media (max-width: 575px) {
  .zahlen-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 32px 20px;
  }
  .zahlen-item:last-child { border-bottom: none; }
}

/* ─── RESPONSIVE TWEAKS ─────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-section       { grid-template-columns: 1fr; }
  .hero-right         { min-height: 320px; }
  .hero-left          { padding: 56px 36px 44px; }

  /* Legacy row layout responsive */
  .team-row,
  .team-row--reverse  {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .team-row--reverse .team-photo-col { order: 0; }
  .team-row--reverse .team-bio-col   { order: 1; }
  .team-photo-frame,
  .team-photo         { width: 100%; height: auto; aspect-ratio: 305/463; }

  /* New panel layout responsive */
  .team-panel,
  .team-panel--reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .team-panel-img {
    min-height: 400px;
  }

  .team-panel--reverse .team-panel-bio {
    order: 0;
  }

  .team-panel--reverse .team-panel-img {
    order: 1;
  }

  .team-panel-bio {
    padding: 48px 36px;
  }

  .team-name {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-left          { padding: 48px 24px 40px; }
  .hero-stats         { gap: 16px; }
  .photo-card         { height: 300px; }
  .about-hero-content { padding: 60px 20px 90px; }
  .about-hero-title   { font-size: 2.2rem; }

  .team-panel-bio {
    padding: 40px 24px;
  }

  .team-name {
    font-size: 1.7rem;
  }

  .team-panel-img {
    min-height: 320px;
  }
}
