/* Startseite: Sektionen unter dem Intro */

:root {
  --mmm-bg-page: #f2f9f9;
  --mmm-bg-card: #e8f4f3;
  --mmm-teal: #2aa89a;
  --mmm-partners-bg: #7fa5a2;
}

body.mmm-page-home {
  background: var(--mmm-bg-page);
}

/* Zentrierter Inhalt (grid-size war in der Config leer) */
body.mmm-page-home .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

body.mmm-page-home .mmm-home-news__inner,
body.mmm-page-home .mmm-home-cta__inner,
body.mmm-page-home .mmm-home-downloads__inner,
body.mmm-page-home .mmm-home-partners__inner,
body.mmm-page-home .mmm-home-testimonials__inner,
body.mmm-page-home .mmm-home-faq__inner {
  width: 100%;
}

/* —— News —— */
.mmm-home-news {
  background: var(--mmm-bg-page);
  padding: clamp(2rem, 4vw, 3rem) 0 2.5rem;
}

.mmm-home-news__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.mmm-news-card {
  background: var(--mmm-bg-card);
  border-radius: 4px;
  min-height: 140px;
}

.mmm-news-card__link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 1.25rem 1.35rem;
  color: inherit;
  text-decoration: none;
}

.mmm-news-card__link:hover .mmm-news-card__title {
  color: var(--mmm-brown-hover);
}

.mmm-news-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mmm-brown-dark);
}

.mmm-news-card__date {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.mmm-home-news__pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.75rem;
}

.mmm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mmm-page-home .mmm-pagination li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mmm-pagination a,
.mmm-pagination span {
  font-size: 1rem;
  color: var(--mmm-brown-dark);
  text-decoration: none;
}

.mmm-pagination .is-active {
  color: var(--mmm-teal);
  font-weight: 600;
}

.mmm-pagination a:hover {
  color: var(--mmm-teal);
}

/* —— CTA —— */
.mmm-home-cta {
  background: var(--mmm-brown);
  padding: 1.35rem 0;
}

.mmm-home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.mmm-home-cta__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: #fff;
}

.mmm-home-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.35rem;
  background: #fff;
  border-radius: 999px;
  color: var(--mmm-brown-dark) !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mmm-home-cta__btn:hover {
  background: #f5f5f5;
}

.mmm-home-cta__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--mmm-brown);
  color: #fff;
  font-size: 0.75rem;
}

/* —— Kompetenzen: Bild als Hintergrund hinter dem Text —— */
.mmm-home-competencies {
  position: relative;
  background-color: var(--mmm-bg-page);
  overflow: hidden;
}

.mmm-home-competencies__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--mmm-bg-page);
  background-image: var(--mmm-kompetenzen-bg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}

.mmm-home-competencies__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(74, 47, 47, 0.28) 0%,
    rgba(227, 243, 242, 0.15) 28%,
    var(--mmm-bg-page) 52%
  );
}

.mmm-home-competencies__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(11rem, 26vw, 17rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.mmm-home-competencies__title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-competency-block {
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
}

.mmm-competency-block__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-competency-block__item {
  margin-bottom: 1.1rem;
  text-align: center;
}

.mmm-competency-block__heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-competency-block__text {
  margin: 0 auto;
  max-width: 820px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--mmm-text);
}

.mmm-competency-block__more {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.5rem;
  background: var(--mmm-kontakt-bg);
  border-radius: 4px;
  color: var(--mmm-brown-dark) !important;
  font-weight: 600;
  text-decoration: none;
}

.mmm-competency-block__more:hover {
  background: var(--mmm-kontakt-bg-hover);
}

@media (max-width: 768px) {
  .mmm-home-competencies__inner {
    padding-top: clamp(8rem, 40vw, 11rem);
  }
}

/* —— Downloads + Top Consultant (Original: 40 % Bild | 60 % Inhalt) —— */
.mmm-home-downloads {
  background: #fff;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
}

.mmm-home-downloads__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.mmm-home-downloads__media img {
  display: block;
  width: 100%;
  height: auto;
}

.mmm-home-downloads__content {
  min-width: 0;
}

.mmm-home-downloads__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-home-downloads__intro {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--mmm-text);
}

.mmm-home-downloads__subheading {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-home-downloads__subheading--award {
  margin-top: 2rem;
}

.mmm-home-downloads__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mmm-home-downloads__list li {
  margin: 0.65rem 0;
}

.mmm-home-downloads__file {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--mmm-teal) !important;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}

.mmm-home-downloads__file:hover .mmm-home-downloads__file-label {
  text-decoration: underline;
}

.mmm-home-downloads__file-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 22px;
  line-height: 1;
  color: var(--mmm-teal);
}

.mmm-home-downloads__file-label {
  color: var(--mmm-teal);
}

.mmm-home-downloads__award {
  margin-top: 0.5rem;
}

.mmm-home-downloads__video {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 400px;
  margin-top: 0.75rem;
  background-color: #c5c5c5;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  text-decoration: none;
  overflow: hidden;
}

.mmm-home-downloads__video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}

.mmm-home-downloads__video:hover::before {
  background: rgba(0, 0, 0, 0.35);
}

.mmm-home-downloads__play {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.mmm-home-downloads__play .fa {
  font-size: 4.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mmm-home-downloads__video:hover .fa {
  transform: scale(1.06);
  color: var(--mmm-teal);
}

.mmm-home-downloads__video-caption {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Partner —— */
.mmm-home-partners {
  background: var(--mmm-partners-bg);
  padding: clamp(2rem, 4vw, 3rem) 0;
  color: #fff;
}

.mmm-home-partners__heading {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

.mmm-home-partners__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.mmm-partner-card {
  text-align: center;
}

.mmm-partner-card__logo {
  display: block;
  background: #fff;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.mmm-partner-card__logo img {
  display: block;
  max-width: 220px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.mmm-partner-card__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mmm-partner-card__more {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  color: var(--mmm-brown-dark) !important;
  font-size: 0.9rem;
  text-decoration: none;
}

/* —— Testimonials —— */
.mmm-home-testimonials {
  background: #fff;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.mmm-home-testimonials__title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-home-testimonials__layout {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
}

.mmm-home-testimonials__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
}

.mmm-home-testimonials__logos img {
  max-height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.mmm-testimonial-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mmm-testimonial-slider__track {
  flex: 1;
  min-height: 200px;
}

.mmm-testimonial {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.mmm-testimonial[hidden] {
  display: none !important;
}

.mmm-testimonial__header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.mmm-testimonial__avatar {
  width: 48px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.mmm-testimonial__name {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mmm-brown-dark);
}

.mmm-testimonial__stars {
  color: var(--mmm-teal);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.mmm-testimonial__company {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.mmm-testimonial__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--mmm-text);
}

.mmm-testimonial-slider__arrow {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--mmm-teal);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mmm-testimonial-slider__dots {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.mmm-testimonial-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.mmm-testimonial-slider__dots button.is-active {
  background: var(--mmm-teal);
}

/* —— FAQ —— */
.mmm-home-faq {
  background: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.mmm-home-faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.mmm-home-faq__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.mmm-home-faq__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--mmm-brown-dark);
}

.mmm-faq-category {
  margin-bottom: 1.5rem;
}

.mmm-faq-category__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mmm-brown);
}

.mmm-faq-item {
  margin: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
}

.mmm-faq-item__question {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-weight: 500;
  color: var(--mmm-brown-dark);
  cursor: pointer;
  list-style: none;
}

.mmm-faq-item__question::-webkit-details-marker {
  display: none;
}

.mmm-faq-item__question::after {
  content: '+';
  float: right;
  margin-right: -1.5rem;
  color: var(--mmm-brown);
  font-weight: 400;
}

.mmm-faq-item[open] .mmm-faq-item__question::after {
  content: '−';
}

.mmm-faq-item__answer {
  padding: 0 1rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mmm-text);
}

.mmm-faq-item__answer p {
  margin: 0;
}

@media (max-width: 960px) {
  .mmm-home-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmm-home-testimonials__layout,
  .mmm-home-faq__inner,
  .mmm-home-downloads__inner {
    grid-template-columns: 1fr;
  }

  .mmm-home-downloads__media {
    max-width: 420px;
    margin: 0 auto;
  }

  .mmm-home-downloads__video {
    max-width: none;
    min-height: min(40vh, 320px);
  }

  .mmm-home-partners__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mmm-home-news__grid {
    grid-template-columns: 1fr;
  }

  .mmm-home-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}
