/* =========================================================
   AGRITEC – HOMEPAGE ONLY
   scoped on .agritec-hp
   ========================================================= */

:root {
  --clr-brand-blue: #102a83;
  --clr-brand-green: #2c6e49;
  --clr-brand-orange: #d97706;
  --clr-ink-900: #0f172a;
  --clr-ink-600: #475569;
  --clr-surface: #ffffff;
  --clr-line: #e6e6e6;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.25);

  --overlay-dark: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .58));

  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-56: 56px;

  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;

  --wrap: 1320px;
}

/* =========================================================
   HOMEPAGE WRAPPER
   ========================================================= */

.agritec-hp {
  overflow: visible;
}

/* =========================================================
   HERO
   ========================================================= */

.agritec-hp .hp-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(260px, 45vw, 420px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--sp-16) var(--sp-40);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.agritec-hp .hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 0;
}

.agritec-hp .hp-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.agritec-hp .hp-hero h1 {
  margin: 0 0 var(--sp-24);
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.7rem);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.agritec-hp .btn-hero {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-8);
  background: rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.agritec-hp .btn-hero:hover {
  background: rgba(255, 255, 255, .3);
  transform: translateY(-1px);
}

/* =========================================================
   MAIN 3 CARDS
   ========================================================= */

.agritec-hp .home-main-cards {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sp-40) var(--sp-16);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-24);
}

.agritec-hp .home-main-card {
  position: relative;
  min-height: clamp(220px, 28vw, 300px);
  padding: 28px;
  border-radius: var(--radius-12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.agritec-hp .home-main-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 0;
}

.agritec-hp .home-main-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.agritec-hp .home-main-card.card-blue::before {
  background: linear-gradient(180deg, rgba(16, 42, 131, .22), rgba(16, 42, 131, .68));
}

.agritec-hp .home-main-card.card-green::before {
  background: linear-gradient(180deg, rgba(44, 110, 73, .22), rgba(44, 110, 73, .68));
}

.agritec-hp .home-main-card.card-orange::before {
  background: linear-gradient(180deg, rgba(217, 119, 6, .22), rgba(217, 119, 6, .68));
}

.agritec-hp .home-main-card h2,
.agritec-hp .home-main-card p,
.agritec-hp .home-main-card .hero-card-cta,
.agritec-hp .home-main-card .cta {
  position: relative;
  z-index: 1;
}

.agritec-hp .home-main-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
}

.agritec-hp .home-main-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.5;
}

.agritec-hp .home-main-card .hero-card-cta a,
.agritec-hp .home-main-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-8);
  background: rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease;
}

.agritec-hp .home-main-card .hero-card-cta a:hover,
.agritec-hp .home-main-card .cta:hover {
  background: rgba(255, 255, 255, .3);
}

/* =========================================================
   GENERIC HOMEPAGE SECTION
   ========================================================= */

.hp-aktuality .views-view-responsive-grid__item-inner .views-field-nothing-1 h2 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #102a83;
  margin: 14px 0 6px;
  padding: 0 8px;
}

.hp-aktuality .views-view-responsive-grid__item-inner .views-field-nothing-1 p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin: 0 0 10px;
  padding: 0 8px;
}

.agritec-hp .hp-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sp-40) var(--sp-16);
}

.agritec-hp .hp-section+.hp-section {
  padding-top: var(--sp-16);
}

.agritec-hp .hp-section-title {
  margin: 0 0 var(--sp-32);
  font-size: 1.9rem;
  line-height: 1.2;
  text-align: center;
  color: var(--clr-brand-blue);
  font-weight: 700;
}

/* =========================================================
   UNIVERSAL GRID FOR NEWS / SHOP / PEOPLE
   ========================================================= */

.agritec-hp .hp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-24);
}

/* =========================================================
   STANDARD CARD
   ========================================================= */

.agritec-hp .hp-card {
  background: #fff;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.agritec-hp .hp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.agritec-hp .hp-card-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}

.agritec-hp .hp-card h3 {
  margin: 16px 16px 6px;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--clr-brand-blue);
}

.agritec-hp .hp-card p {
  margin: 0 16px 14px;
  color: #333;
  line-height: 1.55;
}

.agritec-hp .hp-card a {
  margin: 0 16px 20px;
  color: var(--clr-brand-blue);
  text-decoration: none;
  font-weight: 600;
}

/* =========================================================
   PEOPLE CARDS
   ========================================================= */

.agritec-hp .hp-person-card {
  background: #fff;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 24px 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.agritec-hp .hp-person-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.agritec-hp .hp-person-img {
  width: 170px;
  height: 170px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.agritec-hp .hp-person-card h3 {
  margin: 0 0 8px;
  color: var(--clr-brand-blue);
  font-size: 1.15rem;
}

.agritec-hp .hp-person-card p {
  margin: 0 0 6px;
  color: var(--clr-ink-600);
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .agritec-hp .home-main-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agritec-hp .hp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .agritec-hp .hp-hero {
    min-height: 220px;
    padding-bottom: 24px;
  }

  .agritec-hp .hp-hero h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    padding: 0 8px;
  }

  .agritec-hp .btn-hero {
    min-width: 56%;
    text-align: center;
    padding: 8px 16px;
  }

  .agritec-hp .home-main-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .agritec-hp .home-main-card {
    padding: 20px;
  }

  .agritec-hp .home-main-card h2 {
    font-size: 1.25rem;
  }

  .agritec-hp .hp-section {
    padding: 32px 12px;
  }

  .agritec-hp .hp-section-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .agritec-hp .hp-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .agritec-hp .hp-person-img {
    width: 150px;
    height: 150px;
  }
}