@import url("./telfo_autohaeuser_landingpage.css");


/* Final hard override: Ueber-uns section must stay compact */
#ueber-uns,
.section-wrapper:has(.team-heading),
.section-wrapper:has(.photo-label-name) {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

#ueber-uns .section,
.section:has(.team-heading) {
  align-items: center !important;
}

#ueber-uns .left,
.section .left:has(.team-heading) {
  padding-top: 18px !important;
}

#ueber-uns .right,
.section .right:has(.photo-wrapper img[alt="Das Team"]) {
  max-width: 500px !important;
}

#ueber-uns .photo-wrapper,
.section .photo-wrapper:has(img[alt="Das Team"]) {
  max-height: 600px !important;
}

#ueber-uns .photo-wrapper img,
.section .photo-wrapper img[alt="Das Team"] {
  width: 100% !important;
  height: 600px !important;
  max-height: 600px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center 36% !important;
}

@media (max-width: 900px) {
  #ueber-uns,
  .section-wrapper:has(.team-heading),
  .section-wrapper:has(.photo-label-name) {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  #ueber-uns .right,
  .section .right:has(.photo-wrapper img[alt="Das Team"]) {
    max-width: 100% !important;
  }

  #ueber-uns .photo-wrapper,
  .section .photo-wrapper:has(img[alt="Das Team"]) {
    max-height: 460px !important;
  }

  #ueber-uns .photo-wrapper img,
  .section .photo-wrapper img[alt="Das Team"] {
    height: 460px !important;
    max-height: 460px !important;
    object-position: center 32% !important;
  }
}



  .tm2-testimonials-section {
    padding: 100px 24px 60px;
    background: #ffffff;
    position: relative;
    overflow: visible;
  }
  .tm2-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
    transition:
      opacity 0.95s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 1.05s cubic-bezier(0.22, 0.61, 0.36, 1),
      filter 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--tm2-delay, 0ms);
    will-change: opacity, transform, filter;
  }
  .tm2-testimonials-section.tm2-inview .tm2-reveal {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  .tm2-testimonials-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -180px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,82,212,0.07) 0%, transparent 70%);
    pointer-events: none;
  }

  .tm2-section-header {
    text-align: center;
    margin-bottom: 64px;
  }

  .tm2-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a52d4;
    margin-bottom: 16px;
  }

  .tm2-section-eyebrow::before,
  .tm2-section-eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #1a52d4;
    border-radius: 2px;
  }

  .tm2-section-title {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 600;
    color: #0d1b3e;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  .tm2-section-subtitle {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 400;
    color: #6b7a99;
  }

  .tm2-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #1a52d4;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .tm2-all-link:hover {
    color: #0d1b3e;
    transform: translateX(2px);
  }

  .tm2-all-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tm2-carousel-wrapper {
    max-width: 900px;
    margin: 0 auto;
  }

  .tm2-carousel-track {
    min-height: 300px;
  }

  .tm2-testimonial-card {
    display: none;
    align-items: center;
    gap: 64px;
    animation: fadeSlide 0.5s ease both;
  }

  .tm2-testimonial-card.active { display: flex; }

  .tm2-testimonial-card:hover .tm2-quote-author-name,
  .tm2-testimonial-card:focus-within .tm2-quote-author-name {
    color: #0d1b3e;
  }

  .tm2-testimonial-card:hover .tm2-quote-divider,
  .tm2-testimonial-card:focus-within .tm2-quote-divider {
    width: 56px;
  }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .tm2-avatar-stack {
    flex-shrink: 0;
    position: relative;
    width: 180px;
    height: 220px;
  }

  .tm2-avatar-blob {
    position: absolute;
    top: 0; left: 0;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: #1a52d4;
    opacity: 0.10;
  }

  .tm2-avatar-ring {
    position: absolute;
    top: 18px; left: 18px;
    width: 148px; height: 148px;
    border-radius: 50%;
    border: 2px solid rgba(26,82,212,0.22);
  }

  .tm2-avatar-crop {
    position: absolute;
    top: 30px; left: 30px;
    width: 148px; height: 148px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 32px rgba(13,27,62,0.18);
  }
  .tm2-avatar-crop--initials {
    background: linear-gradient(135deg, #1a52d4 0%, #4f7df0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tm2-avatar-initials {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
  }
  .tm2-avatar-img {
    position: absolute;
    width: 132%;
    height: 132%;
    top: -8%;
    left: -16%;
    object-fit: cover;
    object-position: center 18%;
  }
  .tm2-avatar-img--klein {
    width: 144%;
    height: 144%;
    top: -1%;
    left: -22%;
    object-position: center 16%;
  }
  .tm2-avatar-img--jablonski {
    width: 146%;
    height: 146%;
    top: -2%;
    left: -23%;
    object-position: center 15%;
  }
  .tm2-avatar-img--woerner {
    inset: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center center;
  }

  .tm2-avatar-img--haasis {
    inset: 0;
    width: 118%;
    height: 118%;
    top: -9%;
    left: -9%;
    object-fit: contain;
    object-position: center center;
  }

  .tm2-avatar-img--aras {
    inset: 0;
    width: 112%;
    height: 112%;
    top: -4%;
    left: -6%;
    object-fit: cover;
    object-position: center 18%;
  }

  .tm2-avatar-img--hermanns {
    width: 136%;
    height: 136%;
    top: -2%;
    left: -18%;
    object-position: center 15%;
  }

  .tm2-quote-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .tm2-quote-mark {
    font-size: 80px;
    line-height: 0.6;
    color: #1a52d4;
    opacity: 0.12;
    font-family: Georgia, serif;
    margin-bottom: 18px;
    display: block;
    user-select: none;
  }

  .tm2-stars { display: flex; gap: 3px; margin-bottom: 20px; }
  .tm2-star  { color: #f5a623; font-size: 16px; }

  .tm2-quote-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.65;
    color: #1a2a50;
    letter-spacing: -0.01em;
    font-style: italic;
    margin-bottom: 28px;
  }

  .tm2-quote-divider {
    width: 40px; height: 3px;
    background: #1a52d4;
    border-radius: 2px;
    margin-bottom: 20px;
  }

  .tm2-quote-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a52d4;
    letter-spacing: -0.01em;
  }

  .tm2-quote-author-role {
    font-size: 14px;
    font-weight: 400;
    color: #6b7a99;
    margin-top: 3px;
  }

  .tm2-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1a52d4;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: gap 0.2s ease, color 0.2s ease;
  }

  .tm2-card-link:hover {
    gap: 11px;
    color: #0d1b3e;
  }

  .tm2-card-link:focus-visible {
    outline: 2px solid rgba(26,82,212,0.28);
    outline-offset: 4px;
    border-radius: 10px;
  }

  .tm2-card-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tm2-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 52px;
  }

  .tm2-nav-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid #d0d9ef;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a52d4;
    transition: all 0.2s ease;
  }

  .tm2-nav-btn:hover {
    background: #1a52d4;
    border-color: #1a52d4;
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,82,212,0.3);
  }

  .tm2-nav-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }

  .tm2-dots { display: none; }

  .tm2-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d0d9ef;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .tm2-dot.active {
    background: #1a52d4;
    width: 24px;
    border-radius: 4px;
  }

  @media (max-width: 680px) {
    .tm2-testimonials-section { padding: 56px 20px 28px; }
    .tm2-section-header { margin-bottom: 28px; }
    .tm2-section-subtitle { margin-top: 8px; font-size: 16px; }
    .tm2-all-link { margin-top: 14px; font-size: 13px; }
    .tm2-carousel-track { min-height: 0; }
    .tm2-testimonial-card { flex-direction: column; gap: 18px; }
    .tm2-avatar-stack { width: 126px; height: 126px; margin: 0 auto; }
    .tm2-avatar-blob  { width: 116px; height: 116px; }
    .tm2-avatar-ring  { top: 8px; left: 8px; width: 106px; height: 106px; }
    .tm2-avatar-crop  { top: 14px; left: 14px; width: 106px; height: 106px; }
    .tm2-avatar-initials { font-size: 34px; }
    .tm2-avatar-img   { width: 132%; height: 132%; top: -8%; left: -16%; }
    .tm2-avatar-img--klein { width: 142%; height: 142%; top: -3%; left: -22%; object-position: center 10%; }
    .tm2-avatar-img--jablonski { width: 146%; height: 146%; top: -4%; left: -24%; object-position: center 10%; }
    .tm2-avatar-img--goethlich { width: 152%; height: 152%; top: -14%; left: -26%; object-position: center 12%; }
    .tm2-quote-side { width: 100%; }
    .tm2-quote-mark { font-size: 52px; margin-bottom: 2px; line-height: 0.5; }
    .tm2-stars { margin-bottom: 14px; }
    .tm2-quote-text { font-size: 17px; line-height: 1.48; margin-bottom: 16px; }
    .tm2-quote-divider { margin-bottom: 14px; }
    .tm2-card-link { align-self: flex-start; margin-top: 14px; }
    .tm2-carousel-nav { margin-top: 26px; }
  }


