/* Details carried over from the original Oxygen implementation. */

.brand__picture,
.footer__brand-picture {
  display: flex;
  align-items: center;
}

.seal__picture {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.quick-contact {
  background-image: linear-gradient(rgb(239 237 237 / .82), rgb(239 237 237 / .82)), var(--quick-contact-bg-fallback, url('../../images/hero-bike.jpg'));
}

@supports (background-image: image-set(url('../../images/hero-bike.avif') type('image/avif'))) {
  .quick-contact {
    background-image: linear-gradient(rgb(239 237 237 / .82), rgb(239 237 237 / .82)), var(--quick-contact-bg, image-set(url('../../images/hero-bike.avif') type('image/avif'), url('../../images/hero-bike.webp') type('image/webp'), url('../../images/hero-bike.jpg') type('image/jpeg')));
  }
}

/* Prefer AVIF, then WebP, while preserving the original JPEG as fallback. */
.responsive-picture {
  display: block;
  min-width: 0;
}

.responsive-picture > img {
  display: block;
}

.hero__slide > .responsive-picture,
.soforthilfe-page .conversion-hero > .responsive-picture,
.bielefeld-hero > .responsive-picture {
  position: absolute;
  inset: 0;
}

.hero__slide > .responsive-picture > img,
.soforthilfe-page .conversion-hero > .responsive-picture > img,
.bielefeld-hero > .responsive-picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split > .responsive-picture {
  width: 50%;
  flex: 1;
}

.split > .responsive-picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accident-intro .split > .responsive-picture {
  height: 630px;
}

.about > .responsive-picture {
  height: 500px;
}

.service .split > .responsive-picture {
  width: 40%;
  aspect-ratio: 1;
}

.bielefeld-media-image > .responsive-picture,
.location-map-link__picture {
  display: block;
  width: 100%;
}

.location-map-link__picture {
  height: 260px;
}

/* The dropdown wrapper is a flex item inside the full-height navigation.
   Stretch its button too, so it shares the links' vertical centre line. */
.nav-drop {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-drop > button {
  height: 100%;
}

.nav-drop__overview {
  display: flex;
  align-items: center;
  padding: 0 4px 0 16px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-drop > button {
  padding: 0 16px 0 4px;
}

.nav-drop button i {
  margin: -4px 0 0;
}

.nav-drop__overview:hover,
.nav-drop:focus-within .nav-drop__overview {
  color: var(--red);
  text-decoration: none;
  box-shadow: inset 0 -2px var(--red);
}

/* Lucide icons inherit the component colour and stay crisp at every size. */
.lucide-icon {
  display: block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
}

.quick-contact b {
  display: grid;
  place-items: center;
}

.quick-contact b .lucide-icon {
  width: 49px;
  height: 49px;
  stroke-width: 1.5;
}

.location-card__title > b,
.location-card__cta > b {
  display: grid;
  place-items: center;
}

.location-card__title .lucide-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.location-card__cta .lucide-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Hero: fade the image, then reveal each line independently. */
.hero__veil {
  background: transparent;
}

.hero__copy {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 100%;
  margin: 0;
  padding-bottom: 120px;
  justify-content: flex-end;
}

.hero__title,
.hero__copy p:not(.hero__title) {
  color: #d80000;
  font-weight: 700;
  text-shadow: 2px 2px 5px #000;
  opacity: 1;
  transition: opacity .8s ease-in-out, transform .8s ease-in-out;
}

.hero__title {
  max-width: none;
  transform: translateX(180px);
  font-size: clamp(20px, 2vw, 28px);
}

.hero__copy p:not(.hero__title) {
  transform: translateY(-75px);
  font-size: clamp(18px, 1.7vw, 24px);
}

.hero__slide.is-entering .hero__title,
.hero__slide.is-entering .hero__copy p:not(.hero__title) {
  opacity: 0;
  transition-delay: 0s;
}

.hero__slide.is-entering .hero__title { transform: translateX(180px); }
.hero__slide.is-entering .hero__copy p:not(.hero__title) { transform: translateY(-75px); }

.hero__slide.is-active:not(.is-entering) .hero__title,
.hero__slide.is-active:not(.is-entering) .hero__copy p:not(.hero__title) {
  transform: translate(0, 0);
}

.hero__slide.is-active:not(.is-entering) .hero__title {
  transition-delay: .35s;
}

.hero__slide.is-active:not(.is-entering) .hero__copy p:not(.hero__title) {
  transition-delay: .55s;
}

.hero__slide:not(.is-active) .hero__title,
.hero__slide:not(.is-active) .hero__copy p:not(.hero__title) {
  opacity: 0;
  transition-duration: .35s;
  transition-delay: 0s;
}

/* Vertical red slide navigation: the active indicator grows in length. */
.hero__dots {
  right: auto;
  bottom: 100px;
  left: 5%;
  flex-direction: column;
  gap: 9px;
}

.hero__dots button {
  width: 28px;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #d80000;
  box-shadow: none;
  opacity: .7;
  transition: width .3s ease, opacity .3s ease;
}

.hero__dots button.is-active {
  width: 56px;
  background: #d80000;
  box-shadow: none;
  opacity: 1;
}

.hero__arrow {
  top: auto;
  bottom: 50px;
  width: 60px;
  height: 30px;
  padding: 0;
  transform: none;
  background: transparent;
  color: transparent;
  font-size: 0;
  opacity: .75;
}

.hero__arrow::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d80000;
  border-right: 2px solid #d80000;
  content: "";
}

.hero__arrow--prev { left: 15%; }
.hero__arrow--next { right: auto; left: calc(15% + 70px); }
.hero__arrow--prev::after { transform: translate(-35%, -50%) rotate(-135deg); }
.hero__arrow--next::after { transform: translate(-65%, -50%) rotate(45deg); }
.hero__arrow:hover { color: transparent; opacity: 1; }

/* A single border keeps each certificate mark perfectly centered. */
.seals { gap: 20px; }

.seals a {
  display: grid;
  width: 208px;
  height: 208px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #d63535;
  border-radius: 50%;
  background: #fff;
}

.seals img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Section labels: airy Lato, generous tracking and uppercase where used originally. */
.section-title {
  margin-bottom: 25px;
  color: #666;
  font-weight: 100;
  letter-spacing: 10px;
  text-transform: uppercase;
}

.section-title--small {
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: none;
}

@media (max-width: 991px) {
  .hero__dots { display: none; }
}

@media (max-width: 767px) {
  .hero__copy {
    width: 90%;
    left: 5%;
    padding-bottom: 25px;
  }

  .hero__arrow { bottom: 15px; }

  .seals { gap: clamp(8px, 3vw, 20px); }
  .seals a {
    width: min(108px, calc((100vw - 72px) / 3));
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 479px) {
  .section-title { letter-spacing: 5px; }
  .section-title--small { letter-spacing: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__copy p:not(.hero__title) { transition: none; }
}

/* Reviews use an endless track without exposing the native scrollbar. */
.review-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.review-track.is-loop-jumping {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-controls button {
  position: relative;
  display: block;
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.review-controls button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d80000;
  border-right: 2px solid #d80000;
  content: "";
}

.review-controls button:hover::after {
  border-color: #fff;
}

.review-controls button[data-review-prev]::after {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.review-controls button[data-review-next]::after {
  transform: translate(-65%, -50%) rotate(45deg);
}

/* FAQ: the panel opens first, then its copy settles into place. */
.has-faq-motion .faq details > div {
  height: 0;
  overflow: hidden;
  padding: 0 50px 0 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: height .42s cubic-bezier(.22, .61, .36, 1), padding .42s cubic-bezier(.22, .61, .36, 1), opacity .26s ease, transform .26s ease;
}

.has-faq-motion .faq details > div.is-revealed {
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s, 0s, .13s, .13s;
}

@media (prefers-reduced-motion: reduce) {
  .has-faq-motion .faq details > div { transition: none; }
}

@media (max-width: 820px) {
  .nav-drop { display: flex; flex-wrap: wrap; align-items: center; height: auto; }
  .nav-drop > button { width:44px; height:44px; min-height:44px; padding:0; justify-content:center; }
  .nav-drop__overview { min-height:44px; padding:0; color:var(--red); font-size:17px; }
  .nav-drop__menu { flex-basis:100%; }
  .quick-contact b .lucide-icon { width:43px; height:43px; }

  .reviews .review-controls {
    justify-content: center;
    margin: 0 0 20px;
  }

  .split > .responsive-picture,
  .service .split > .responsive-picture,
  .accident-intro .split > .responsive-picture {
    width: 100%;
    height: auto;
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .about > .responsive-picture {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .split > .responsive-picture > img {
    width: 100%;
    height: 100%;
    aspect-ratio: inherit;
  }
}

@media (max-width: 520px) {
  .soforthilfe-page .conversion-hero > .responsive-picture > img {
    object-position: 58% center;
  }
}

/* Contact form: reproduce the open WordPress form treatment. */
.vehicle-form {
  gap: 6px 18px;
}

.vehicle-form > .form-field {
  margin: 0;
}

.vehicle-form > .form-field:nth-child(7) {
  grid-column: 1 / -1;
}

.vehicle-form > .form-field:nth-child(1) > .form-label,
.vehicle-form > .form-field:nth-child(2) > .form-label,
.vehicle-form > .form-field:nth-child(3) > .form-label,
.vehicle-form > .form-field:nth-child(4) > .form-label,
.vehicle-form > .form-field:nth-child(6) > .form-label,
.vehicle-form > .form-field:nth-child(7) > .form-label,
.vehicle-form > .form-field:nth-child(9) > .form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vehicle-form input:not([type=checkbox]),
.vehicle-form textarea {
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #efefef;
  color: #2b2c28;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  box-shadow: none;
}

.vehicle-form input:not([type=checkbox]):focus,
.vehicle-form textarea:focus {
  border: 0;
  background: #e5e5e5;
  box-shadow: none;
}

.vehicle-form textarea {
  height: 150px;
  min-height: 150px;
  resize: none;
}

.vehicle-form .form-input-file.dropzone {
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #efefef;
  color: #2b2c28;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.vehicle-form .form-input-file.dropzone .dz-default.dz-message {
  text-align: left;
}

.vehicle-form .basic-captcha .form-input-wrapper {
  border: 0;
  border-radius: 0;
}

.vehicle-form .button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #d63535;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.vehicle-form .button:hover,
.vehicle-form .button:focus-visible {
  background: #b71b1b;
  color: #fff;
}
