@import url("globals.css");

/* PHP-specific additions */
nav a[aria-current="page"] {
  color: var(--red);
  border-color: var(--red);
}

.hero-media {
  background-image: url("../public/Kontakt.jpg");
}

.service-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-image {
  height: 560px;
  min-height: 0;
  align-self: center;
}

.trust-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: trust-image-pan 16s ease-in-out infinite alternate;
}

@keyframes trust-image-pan {
  0%, 12% { object-position: left center; }
  88%, 100% { object-position: right center; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-image > img {
    animation: none;
    object-position: center;
  }
}

.trust-image::after {
  right: -12px;
  bottom: -12px;
  width: 42%;
  height: 34%;
  border-right-width: 8px;
  border-bottom-width: 8px;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  color: #ff4965;
  font-size: .85rem;
}

.seo-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.seo-service-card {
  background: var(--paper);
  border-bottom: 4px solid var(--red);
}

.seo-service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.seo-service-card > div {
  padding: 30px;
}

.seo-service-card h2 {
  margin-top: 0;
  font-size: 2rem;
}

.detail-image {
  height: 410px;
  margin-bottom: 24px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail .lead {
  font-size: 1.18rem;
  font-weight: 700;
}

.garage-easteregg {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.garage-easteregg img {
  filter: none;
}

.garage-easteregg:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 900px) {
  .trust-image {
    height: 430px;
  }

  .seo-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .trust-image {
    height: 330px;
  }

  .trust-image::after {
    right: -8px;
    bottom: -8px;
    border-right-width: 6px;
    border-bottom-width: 6px;
  }
}
