/* =========================================================
   AddiSol – Home Next
   wird nur auf /home-next/ geladen
   ========================================================= */

.home-next {
  --home-next-radius: 16px;
  --home-next-card-bg: rgba(255, 255, 255, 0.58);

  width: 100%;
  padding: 1.5rem 0 4rem;
}

/* Hero */

.home-next-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: stretch;

  padding: clamp(2.5rem, 5vw, 4.5rem);

  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.home-next-hero-copy,
.home-next-hero-media {
  min-width: 0;
  min-height: clamp(470px, 33vw, 560px);
}

.home-next-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-next-eyebrow {
  margin: 0 0 1.1rem;

  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-next-hero-title {
  max-width: 620px;
  margin: 0;

  font-family: var(--font-headline);
  line-height: 1;
  letter-spacing: -0.025em;
}

.home-next-hero-title-main,
.home-next-hero-title-highlight {
  display: block;
}

.home-next-hero-title-main {
  color: var(--text-main);
  font-size: clamp(2.65rem, 4.2vw, 4.25rem);
}

.home-next-hero-title-highlight {
  margin-top: 1.1rem;
  color: var(--warm-main);
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.home-next-hero-text {
  max-width: 520px;
  margin: 1.75rem 0 0;

  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.home-next-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.home-next-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;

  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 7px;

  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.home-next-button:hover {
  transform: translateY(-2px);
}

.home-next-button-primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.home-next-button-primary:hover {
  background: var(--accent-main);
}

.home-next-button-secondary {
  border-color: rgba(44, 82, 122, 0.38);
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-dark);
}

.home-next-button-secondary:hover {
  background: rgba(58, 110, 165, 0.09);
}

/* Hero-Slider */

.home-next-hero-media {
  display: flex;
  align-items: stretch;
}

.home-next-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--home-next-radius);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-soft);
}

.home-next-slider .swiper-wrapper,
.home-next-slider .swiper-slide,
.home-next-slide {
  height: 100%;
}

.home-next-slide {
  position: relative;
  width: 100%;
  margin: 0;
}

.home-next-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-next-slide figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;

  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.65rem 0.9rem;

  border-left: 3px solid var(--warm-main);
  border-radius: 4px;
  background: rgba(38, 38, 38, 0.72);
  color: #fff;

  font-size: 0.88rem;
  line-height: 1.4;
  backdrop-filter: blur(6px);
}

.home-next-slider .swiper-button-prev,
.home-next-slider .swiper-button-next {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.home-next-slider .swiper-button-prev::after,
.home-next-slider .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.home-next-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.55;
}

.home-next-slider .swiper-pagination-bullet-active {
  background: var(--warm-main);
  opacity: 1;
}

/* Allgemeine Abschnitte */

.home-next-section {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);

  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--home-next-radius);
  background: var(--home-next-card-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.home-next-section-heading {
  margin-bottom: 1.75rem;
}

.home-next-section-heading-centered {
  text-align: center;
}

.home-next-section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

/* Drei Fakten */

.home-next-facts-section {
  padding: 1.5rem;
}

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

.home-next-fact-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;

  padding: 1.25rem;

  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.home-next-fact-symbol {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(201, 138, 58, 0.32);
  border-radius: 50%;
  color: var(--warm-main);

  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
}

.home-next-fact-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.home-next-fact-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
  line-height: 1.55;
}

/* Ergebnisse */

.home-next-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-next-result-card {
  padding: 1.25rem;

  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.home-next-result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.home-next-result-value {
  margin-bottom: 1rem;
  color: var(--warm-main);

  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 700;
}

.home-next-result-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.home-next-result-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 1.55;
}

/* Partner */

.home-next-partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.home-next-partner {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;

  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);

  transition:
    transform 180ms ease,
    background 180ms ease;
}

.home-next-partner:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.72);
}

.home-next-partner img {
  display: block;
  max-width: 190px;
  max-height: 76px;
  object-fit: contain;
}

/* Unterer Bereich */

.home-next-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.home-next-about-card,
.home-next-news-card {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);

  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--home-next-radius);
  background: var(--home-next-card-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.home-next-about-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(210px, 1.1fr);
  gap: 1.5rem;
  align-items: center;
}

.home-next-about-copy h2,
.home-next-news-heading h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.home-next-about-copy > p:not(.home-next-eyebrow) {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.home-next-about-image {
  overflow: hidden;
  border-radius: 12px;
}

.home-next-about-image img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Aktuelles */

.home-next-news-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.home-next-linkedin-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;

  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.home-next-linkedin-link span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;

  border-radius: 3px;
  background: #0a66c2;
  color: #fff;

  font-family: Arial, sans-serif;
  font-weight: 700;
}

.home-next-news-list {
  margin-bottom: 1.25rem;
}

.home-next-news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 1rem;
  align-items: center;

  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);

  color: inherit;
  text-decoration: none;
}

.home-next-news-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-next-news-copy time {
  color: var(--text-meta);
  font-size: 0.75rem;
}

.home-next-news-copy h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1rem;
}

.home-next-news-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;

  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.45;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-next-news-item img {
  display: block;
  width: 130px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
}

/* Responsive */

@media (max-width: 980px) {
  .home-next-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-next-hero-copy,
  .home-next-hero-media {
    min-height: auto;
  }

  .home-next-hero-copy {
    max-width: 720px;
  }

  .home-next-hero-media {
    width: 100%;
    height: 500px;
  }

  .home-next-partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-next-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-next-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-next {
    padding-top: 0.75rem;
  }

  .home-next-hero {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .home-next-hero-title-main {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }

  .home-next-hero-title-highlight {
    font-size: clamp(2.05rem, 9vw, 2.9rem);
  }

  .home-next-hero-media {
    height: 360px;
  }

  .home-next-facts {
    grid-template-columns: 1fr;
  }

  .home-next-partners {
    grid-template-columns: 1fr;
  }

  .home-next-about-card {
    grid-template-columns: 1fr;
  }

  .home-next-about-image img {
    height: auto;
  }
}

@media (max-width: 520px) {
  .home-next-hero {
    padding: 1.25rem;
  }

  .home-next-hero-title-main,
  .home-next-hero-title-highlight {
    line-height: 1.05;
  }

  .home-next-hero-actions {
    flex-direction: column;
  }

  .home-next-button {
    width: 100%;
  }

  .home-next-hero-media {
    height: 290px;
  }

  .home-next-results {
    grid-template-columns: 1fr;
  }

  .home-next-news-heading {
    display: block;
  }

  .home-next-linkedin-link {
    margin-top: 0.75rem;
  }

  .home-next-news-item {
    grid-template-columns: 1fr;
  }

  .home-next-news-item img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
}

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

@media (max-width: 620px) {
  .home-next-partners {
    grid-template-columns: 1fr;
  }
}
