/* Styles specific to the "Leben im Hospiz" page */

#leben-im-hospiz {
  --hero-image: url('../img/leben-im-hospiz/hero.png');
}

.leben-geborgenheit {
  position: relative;
  padding: 120px 0;
  background: #fff;
  overflow: hidden;
}

.leben-geborgenheit-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.leben-geborgenheit-text {
  max-width: 700px;
}

.leben-geborgenheit-text h2 {
  margin: 0 0 18px;
  color: #F39406;
}

.leben-geborgenheit-text p {
  margin: 0;
}

@media (max-width: 900px) {
  .leben-geborgenheit {
    padding: 96px 0;
  }

  .leben-geborgenheit-icon {
    width: 90px;
    left: 24px;
    bottom: 16px;
  }
}

@media (max-width: 600px) {
  .leben-geborgenheit {
    padding: 72px 0;
  }

  .leben-geborgenheit-icon {
    display: none;
  }

  .leben-geborgenheit-text {
    text-align: left;
  }
}

#leben-im-hospiz .section-work {
  background: linear-gradient(202deg, #7B9CCD 42.54%, #3E4E67 112.81%);
}

#leben-im-hospiz .work-top {
  grid-template-columns: 0fr 1fr;
  gap: 80px;
}

#leben-im-hospiz .work-copy {
  max-width: 824px;
  width: 100%;
}

/* Slider overrides for Leben im Hospiz */
#leben-im-hospiz .work-slider {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

#leben-im-hospiz .slider-window {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#leben-im-hospiz .slider-track {
  gap: 0;
}

#leben-im-hospiz .work-card {
  flex: 0 0 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 508px 1fr;
  align-items: stretch;
  min-height: 467px;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
}

#leben-im-hospiz .work-card > img {
  width: 508px;
  height: 467px;
  object-fit: cover;
  display: block;
}

#leben-im-hospiz .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  gap: 16px;
  background: #fff;
  height: 100%;
}

@media (max-width: 980px) {
  #leben-im-hospiz .work-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #leben-im-hospiz .work-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 508 / 467;
  }

  #leben-im-hospiz .card-body {
    padding: 24px;
  }
}

#leben-im-hospiz .card-body {
  padding: 70px 55px;
}

#leben-im-hospiz .card-body h3 {
  font-size: 28px;
font-style: normal;
font-weight: 700;
line-height: normal;
color: #F39406;
}

#leben-im-hospiz article.work-card p {
  color: #394669;
}


#leben-im-hospiz .work-accent {
  left: -250px;
  top: 40px;
}

/* Testimonials section */
#leben-im-hospiz .section-testimonials {
  position: relative;
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
  background: #fff;
}

#leben-im-hospiz .section-testimonials::before,
#leben-im-hospiz .section-testimonials::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(240px, 28vw, 360px);
  pointer-events: none;
  z-index: 2;
}

#leben-im-hospiz .section-testimonials::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.0) 100%);
}

#leben-im-hospiz .section-testimonials::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0.0) 100%);
}

#leben-im-hospiz .testimonials-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#leben-im-hospiz .testimonials-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: testimonials-marquee 60s linear infinite;
  will-change: transform;
}

#leben-im-hospiz .testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}

#leben-im-hospiz .testimonial-quote {
  flex: 0 0 clamp(320px, 33vw, 541px);
  min-height: 207px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--Orange, #F39406);
  font-family: "Tamil MN", 'Noto Serif', Georgia, serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#leben-im-hospiz .testimonial-quote span {
  display: block;
}

.testimonials-icon {
  position: absolute;
  width: 112px;
  height: auto;
  z-index: 3;
}

.testimonials-icon-left {
  bottom: 32px;
  left: 64px;
}

.testimonials-icon-right {
  top: 32px;
  right: 64px;
  transform: scaleX(-1);
}

@media (max-width: 1440px) {
  .testimonials-icon {
    width: 86px;
  }

  .testimonials-icon-left {
    left: 24px;
  }

  .testimonials-icon-right {
    right: 24px;
  }
}

@media (max-width: 1199px) {
  .testimonials-icon {
    display: none;
  }
}

@keyframes testimonials-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.3333%);
  }
}

@media (max-width: 900px) {
  #leben-im-hospiz .section-testimonials {
    padding: 64px 0;
  }

  #leben-im-hospiz .testimonials-track {
    gap: 24px;
    animation-duration: 48s;
  }

  #leben-im-hospiz .testimonial-quote {
    flex-basis: clamp(260px, 42vw, 420px);
    font-size: 24px;
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  #leben-im-hospiz .section-testimonials {
    padding: 48px 0;
  }

  #leben-im-hospiz .section-testimonials::before,
  #leben-im-hospiz .section-testimonials::after {
    content: none;
  }

  #leben-im-hospiz .testimonials-track {
    animation-duration: 36s;
  }

  #leben-im-hospiz .testimonial-quote {
    font-size: 20px;
    padding: 18px;
    min-height: 160px;
  }
}

#leben-im-hospiz .section-support {
  min-height: 500px;
  height: auto;
}

#leben-im-hospiz .section-support::before {
  background:
    linear-gradient(0deg, rgba(243, 148, 6, 0.7), rgba(243, 148, 6, 0.7)),
    url('../img/leben-im-hospiz/leben-im-hospiz-support.jpg') center/cover no-repeat;
}

#leben-im-hospiz .section-events {
  position: relative;
  padding: 110px 0 130px;
  background: linear-gradient(180deg, #7ea3d5 0%, #5b79a6 100%);
  color: #fff;
  overflow: hidden;
}

#leben-im-hospiz .events-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 20% 30%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(closest-side at 80% 60%, rgba(255, 255, 255, 0.12), transparent 65%);
  pointer-events: none;
}

#leben-im-hospiz .events-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#leben-im-hospiz .events-header h2 {
  margin: 0 0 12px;
}

#leben-im-hospiz .events-header p {
  margin: 0 auto;
  max-width: 820px;
}

#leben-im-hospiz .events-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

#leben-im-hospiz .event-card {
  width: 100%;
  grid-column: span 4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  background: #dfe7f5;
}

#leben-im-hospiz .event-card:nth-child(n+4):nth-child(-n+7) {
  grid-column: span 3;
}

#leben-im-hospiz .event-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 341px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

#leben-im-hospiz .event-card:nth-child(n+4):nth-child(-n+7) .event-media {
  min-height: 335px;
}

#leben-im-hospiz .event-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#leben-im-hospiz .event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 1;
}

#leben-im-hospiz .event-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 16px;
  color: #fff;
  text-align: center;
  font-family: "Tamil MN", 'Noto Serif', Georgia, serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#leben-im-hospiz .events-deco {
  position: absolute;
  right: -10%;
  top: 15%;
  width: 180px;
  height: auto;
  transform: rotate(15deg);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
  opacity: 0.9;
}

@media (max-width: 900px) {
  #leben-im-hospiz .section-events {
    padding: 88px 0 100px;
  }

  #leben-im-hospiz .event-title {
    font-size: 20px;
  }

  #leben-im-hospiz .events-deco {
display: none
  }

  #leben-im-hospiz .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #leben-im-hospiz .event-card,
  #leben-im-hospiz .event-card:nth-child(n+4):nth-child(-n+7) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  #leben-im-hospiz .section-events {
    padding: 72px 0 88px;
  }

  #leben-im-hospiz .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #leben-im-hospiz .event-card {
    grid-column: span 1;
  }

  #leben-im-hospiz .events-deco {
    display: none;
  }
}

#leben-im-hospiz .admission-icon {
  position: absolute;
  width: 100px;
  height: auto;
  right: -9%;
  top: auto;
  bottom: -16%;
  width: 200px;
}

@media (max-width: 900px) {
  #leben-im-hospiz .admission-icon {
    width: 150px;
    right: -5%;
    bottom: -20%;
  }
}

@media (max-width: 600px) {
  #leben-im-hospiz .admission-icon {
    display: none;
  }
}
