.trails-features {
  --tf-green: #00c98b;
  --tf-text: #19202c;
  --tf-muted: #4c515c;
  position: relative;
  width: 100%;
  font-family: inherit;
  isolation: isolate;
}

/* Grid */

.trails-features .tf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Kacheln */

.trails-features .tf-card {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 340px;
  margin: 0;
  padding: 34px 28px 30px;
  background: #fff;
  border: 1px solid rgba(19, 36, 30, .06);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 8px 36px rgba(20, 45, 37, .025);
  transition:
    transform .6s cubic-bezier(.2,.8,.2,1),
    box-shadow .6s ease,
    border-color .6s ease;
}

.trails-features .tf-card:hover,
.trails-features .tf-card.tf-active {
  transform: translateY(-5px);
  border-color: rgba(0, 201, 139, .34);
  box-shadow:
    0 20px 55px rgba(0, 65, 43, .09),
    0 0 0 1px rgba(0,201,139,.035);
}

/* Icons */

.trails-features .tf-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--tf-green);
  transition: transform .5s ease;
}

.trails-features .tf-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trails-features .tf-card.tf-active .tf-icon,
.trails-features .tf-card:hover .tf-icon {
  transform: scale(1.1);
}

/* Typografie */

.trails-features .tf-card h3 {
  color: var(--tf-text);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.025em;
  text-transform: none;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.trails-features .tf-card p {
  color: var(--tf-muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 0 !important;
  padding: 0 !important;
  flex-grow: 1;
}

/* Schalter und Links */

.trails-features .tf-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  min-height: 58px;
}

.trails-features .tf-switch {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 46px;
  min-width: 0;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #dce4e1;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background .35s ease,
    box-shadow .35s ease;
}

.trails-features .tf-switch:hover {
  background: #dce4e1;
}

.trails-features .tf-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.trails-features .tf-switch.is-on,
.trails-features .tf-switch.is-on:hover {
  background: var(--tf-green);
}

.trails-features .tf-switch.is-on::after {
  transform: translateX(20px);
}

.trails-features .tf-switch.tf-pulse {
  box-shadow: 0 0 0 9px rgba(0,201,139,.13);
}

.trails-features .tf-switch:focus-visible {
  outline: 2px solid var(--tf-green);
  outline-offset: 4px;
}

.trails-features .tf-bottom a {
  color: #00bb80;
  font-size: 13px;
  line-height: 20px;
  font-weight: 650;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  transition: opacity .2s;
}

.trails-features .tf-bottom a:hover {
  color: #00bb80;
  opacity: .6;
}

.trails-features .tf-link-placeholder {
  display: block;
  height: 20px;
}

/* Animierter Mauszeiger */

.trails-features .tf-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 34px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0,0,0);
  transition:
    transform 1.35s cubic-bezier(.45,0,.2,1),
    opacity .35s ease;
  will-change: transform;
}

.trails-features .tf-cursor svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(1px 3px 3px rgba(0,0,0,.13));
}

.trails-features .tf-cursor-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--tf-green);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.3);
}

.trails-features .tf-cursor.tf-click .tf-cursor-ring {
  animation: tf-click-wave .7s ease-out;
}

@keyframes tf-click-wave {
  0% {
    opacity: .8;
    transform: scale(.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* Responsive */

@media (max-width: 980px) {
  .trails-features .tf-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
  }

  .trails-features .tf-card {
    min-height: 320px;
    padding: 30px 22px;
  }
}

@media (max-width: 600px) {
  .trails-features .tf-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trails-features .tf-card {
    min-height: 285px;
    padding: 28px 24px;
  }

  .trails-features .tf-card p {
    max-width: 370px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trails-features *,
  .trails-features *::before,
  .trails-features *::after {
    animation: none !important;
    transition: none !important;
  }

  .trails-features .tf-cursor {
    display: none !important;
  }
}
