.active-page {
  h1, h2, h3, p {
    margin: 0;
  }

  .alarm-chain {
    max-width: var(--content-width);
    margin: var(--section-gap) auto 0;
    padding: var(--space-l) var(--space-l) var(--space-xl);
    border-radius: var(--radius);
    color: white;
    background-color: var(--color-dark-petrol-green);
    background-image: url('../images/pattern.svg'), url('../images/pattern.svg');
    background-repeat: no-repeat;
    background-size: 300px auto, 300px auto;
    background-position: left -125px top -280px, right -65px bottom -140px;
    scroll-margin-top: var(--space-m);
    h2 {
      text-align: center;
      margin-bottom: var(--space-l);
    }

    .chain-content {
      position: relative;
      padding-bottom: var(--alarm-card-offset);
    }

    .alarm-cards {
      position: relative;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: var(--space-l);
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .alarm-card {
      position: relative;
      min-width: 0;
      overflow-wrap: anywhere;
      padding: var(--space-m);
      background: white;
      border-radius: var(--radius);
      color: var(--color-dark-petrol-green);
      min-height: 182px;
      &::after {
        content: "";
        position: absolute;
        left: 100%;
        top: calc(var(--alarm-card-offset) + var(--space-m));
        width: var(--space-l);
        height: calc(100% - var(--alarm-card-offset) - var(--space-m) - var(--space-m));
        background: url('../images/alarm-chain.svg') center / 100% 100% no-repeat;
        pointer-events: none;
      }
      &:last-child::after { content: none; }
      &:nth-child(even)::after { top: var(--space-m); }
      > img {
        width: 28px;
        height: 28px;
        margin-bottom: var(--space-s);
      }

      h3 {
        margin-bottom: var(--space-xs);
        overflow-wrap: anywhere;
      }

      &:nth-child(even) {
        transform: translateY(var(--alarm-card-offset));
      }
    }

    @media (max-width: 1168px) {
      margin-inline: var(--space-m);
    }

    @media (max-width: 700px) {
      padding: var(--space-l) var(--space-m);

      .chain-content {
        padding: 0;
      }

      .alarm-cards {
        grid-template-columns: 1fr;
        gap: var(--space-l);
      }

      .alarm-card {
        min-height: 0;
        position: relative;
        &::after,
        &:nth-child(even)::after {
          top: 100%;
          left: 20%;
          width: 60%;
          height: var(--space-l);
          background-image: url('../images/alarm-chain.svg#mobile');
        }
        &:nth-child(even) {
          transform: none;
        }
      }
    }
  }

  .steps-section {
    padding-block: var(--section-gap);
    background: var(--page-bg);
    scroll-margin-top: var(--space-m);
    .steps-content {
      max-width: var(--content-width);
      margin: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-xl);
      align-items: center;
    }

    .steps-text {
      h2 {
        margin-bottom: var(--space-l);
        &::after {
          content: "";
          display: block;
          width: 125px;
          height: 2px;
          background: var(--color-orange);
          margin-top: var(--space-xs);
        }
      }

      .steps {
        display: grid;
        gap: var(--space-l);
        list-style: none;
        padding: 0;
        margin: 0;
      }

      li {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: var(--space-m);
        align-items: start;
      }

      .step-number {
        display: grid;
        place-items: center;
        width: 56px;
        height: 56px;
        border-radius: var(--radius-round);
        background: var(--color-dark-petrol-green);
        color: white;
        font-weight: 700;
      }

      h3 {
        margin: var(--space-xs) 0;
      }

      p {
        max-width: 29ch;
      }
    }

    .download-preview {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: var(--space-l);
    }

    .phone-image {
      width: 188px;
      flex-shrink: 0;
      height: auto;
      filter: drop-shadow(0 16px 10px rgb(0 0 0 / 28%));
    }

    .download-details {
      min-width: 0;
      flex: 0 1 190px;
      max-width: 190px;
    }

    .download-note {
      font-weight: 700;
      margin-bottom: var(--space-s);
    }

    .store-buttons {
      display: grid;
      gap: var(--space-s);
      padding-bottom: var(--space-s);
      p {
        font-weight: 700;
      }

      button {
        padding: 0;
        border: 0;
        border-radius: var(--radius);
        background: transparent;
        width: fit-content;
      }

      img {
        width: 130px;
        height: auto;
      }
    }

    @media (max-width: 1168px) {
      .steps-content {
        margin-inline: var(--space-m);
        gap: var(--space-l);
      }
    }

    @media (max-width: 700px) {
      .steps-content {
        grid-template-columns: 1fr;
        gap: var(--space-l);
      }

      .download-preview {
        gap: var(--space-s);
      }

      .phone-image {
        width: 164px;
      }

      .download-details {
        max-width: 160px;
      }

      .store-buttons img {
        width: 120px;
      }
    }
  }
}

/* Volontärsektion */
.volunteer-section {
  padding: var(--section-gap) var(--gutter);
  background: var(--page-bg);
}
.volunteer-content {
  max-width: var(--content-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-l);
  align-items: center;
}
.volunteer-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: var(--space-m) 0 var(--space-m) var(--space-m);
}
.volunteer-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-m);
  border-radius: var(--radius-round);
  background: var(--color-soft-green);
}
.volunteer-icon img { filter: brightness(0) invert(1); }
.volunteer-text .small-title { margin-bottom: var(--space-xs); }
.volunteer-text h2 {
  margin-bottom: var(--space-m);
}
.volunteer-text p:not(.small-title) {
  margin-bottom: var(--space-s);
}
.volunteer-text .button { margin-top: var(--space-xs); }
.volunteer-photo {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 4 / 5;
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--color-dark-petrol-green);
}
.volunteer-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.volunteer-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(0 35 38 / 75%));
  z-index: 1;
  pointer-events: none;
}
.volunteer-badge {
  z-index: 2;
  position: absolute;
  bottom: var(--space-m);
  left: var(--space-m);
  right: var(--space-m);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: white;
  font-weight: 700;
}
.volunteer-badge img { flex-shrink: 0; filter: brightness(0) invert(1); }
@media (max-width: 900px) {
  .volunteer-content { gap: var(--space-m); }
  .volunteer-text { padding-left: 0; }
}
@media (max-width: 700px) {
  .volunteer-content { grid-template-columns: minmax(0, 1fr); }
  .volunteer-photo, .volunteer-text { grid-column: 1; grid-row: auto; }
  .volunteer-photo { grid-row: 1; }
  .volunteer-text { padding: 0; }
  .volunteer-badge { bottom: var(--space-s); left: var(--space-s); right: var(--space-s); }
}
