* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: #071a2d;
}

body {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.landing {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  background: radial-gradient(ellipse at 98% 48%, #543824, #1b2d42 34%, #071829 74%);
}

.landing-art {
  position: relative;
  width: min(100%, 150vh);
  width: min(100%, 150svh);
}

.department-area,
.desktop-art {
  position: relative;
}

.desktop-art img {
  display: block;
  width: 100%;
  height: auto;
}

.art-link {
  position: absolute;
  display: block;
  border-radius: 999px;
  -webkit-tap-highlight-color: #ffffff22;
}

.art-link:hover {
  background: #ffffff14;
  box-shadow: 0 0 14px #cbebff4d;
}

.art-link:focus-visible {
  outline: 3px solid #c4eeff;
  outline-offset: 4px;
}

/* Linkflaechen anhand ihrer Position im Originalbild. */
.desktop-art .art-link--kcs {
  inset: 71.386719% auto auto 18.945313%;
  width: 25.585938%;
  height: 5.566406%;
}

.desktop-art .art-link--transport {
  inset: 71.386719% auto auto 55.143229%;
  width: 28.645833%;
  height: 5.566406%;
}

.mobile-art,
.crop--title,
.crop--city {
  display: none;
}

.imprint {
  position: absolute;
  z-index: 1;
  inset: 34.6% 14.05% 16.65%;
  display: grid;
  place-items: center;
  visibility: hidden;
  overflow: auto;
  padding: clamp(.65rem, 2svh, 1.4rem) clamp(1rem, 4vw, 4rem);
  border: 2px solid #9adeff;
  border-radius: clamp(.95rem, 2vw, 2.2rem);
  color: #f2f8ff;
  background: radial-gradient(ellipse at 50% -15%, #244f6a, #102a43 52%, #081a2e 92%);
  box-shadow: inset 0 0 20px #83d3ff28, 0 8px 30px #05101dc4;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.imprint:target {
  visibility: visible;
}

.imprint:target ~ nav .art-link {
  visibility: hidden;
}

.imprint:focus,
.department-area:focus {
  outline: none;
}

.imprint-details {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(1rem, min(2.25vw, 3.5svh), 1.95rem);
  line-height: 1.38;
}

.imprint-details h2 {
  margin: 0 0 .5em;
  font-size: clamp(1.5rem, min(4vw, 6.5svh), 3.6rem);
  line-height: 1.04;
}

.imprint-details address {
  font-style: normal;
}

.imprint-details strong {
  display: block;
  margin-bottom: .16em;
}

.imprint-email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  margin-top: .45em;
  color: #c4ecff;
  overflow-wrap: anywhere;
  text-underline-offset: .18em;
}

.imprint-close,
.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5em .85em;
  border: 1px solid #8dcbf681;
  border-radius: 999px;
  color: #f2f8ff;
  background: #081a2de8;
  font: 600 clamp(.875rem, 1.1vw, 1.0625rem) / 1.2 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.imprint-close {
  position: absolute;
  top: clamp(.45rem, 2svh, 1.15rem);
  right: clamp(.45rem, 2svh, 1.15rem);
}

.imprint-close:hover,
.legal-footer a:hover {
  background: #1c4264;
}

.imprint a:focus-visible,
.legal-footer a:focus-visible {
  outline: 2px solid #c4eeff;
  outline-offset: 3px;
}

.legal-footer {
  position: absolute;
  right: 2%;
  bottom: clamp(.4rem, 1.5svh, 1rem);
}


@media (max-width: 660px), (max-aspect-ratio: 11/10) {
  .desktop-art {
    display: none;
  }

  .landing {
    display: block;
    background: radial-gradient(ellipse at 73% 16%, #183d5e, #071b30 51%, #051629);
  }

  .landing-art {
    display: grid;
    width: min(430px, calc(100% - 28px));
    margin-inline: auto;
    padding: 10px 0 14px;
    gap: 14px;
  }

  .mobile-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .crop {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .imprint {
    inset: 0;
    padding: 3.5rem 1rem 1.5rem;
  }

  .imprint-details {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
  }

  .legal-footer {
    position: static;
    text-align: center;
  }

  .crop img {
    position: absolute;
    top: var(--image-top);
    left: var(--image-left);
    display: block;
    width: var(--image-width);
    height: auto;
  }

  .crop--card {
    border-radius: 17px;
  }

  .crop--title {
    aspect-ratio: 812 / 321;
    --image-width: 189.162562%;
    --image-left: -44.581281%;
    --image-top: -4.672897%;
  }

  .crop--kcs {
    aspect-ratio: 545 / 498;
    --image-width: 281.834862%;
    --image-left: -39.633028%;
    --image-top: -71.485944%;
  }

  .crop--kcs .art-link {
    inset: 75.301205% auto auto 13.761468%;
    width: 72.110092%;
    height: 11.445783%;
  }

  .crop--transport {
    aspect-ratio: 545 / 498;
    --image-width: 281.834862%;
    --image-left: -142.201835%;
    --image-top: -71.485944%;
  }

  .crop--transport .art-link {
    inset: 75.301205% auto auto 13.211009%;
    width: 80.733945%;
    height: 11.445783%;
  }

  .crop--city {
    aspect-ratio: 650 / 141;
    --image-width: 236.307692%;
    --image-left: -67.384615%;
    --image-top: -605.673759%;
  }
}

@media (max-height: 480px) and (width > 660px) and (aspect-ratio > 11/10) {
  .imprint-details {
    font-size: .9375rem;
  }

  .imprint-details h2 {
    margin-bottom: .25em;
    font-size: 1.35rem;
  }

  .imprint-email {
    min-height: 2rem;
    margin-top: .15em;
  }

  .imprint-close {
    top: .35rem;
    right: .35rem;
    min-height: 2rem;
    padding: .35em .6em;
  }
}

.scene-sides {
  display: none;
}

@supports (mask-composite: intersect) {
  @media (width > 660px) and (aspect-ratio > 11/10) {
    .landing {
      --scene-height: min(100vh, 85vw);
      --scene-height: min(100svh, 85vw);
      --photo-width: calc(var(--scene-height) * 2 / 3);
      position: relative;
      isolation: isolate;
      grid-template-columns: minmax(0, 1fr);
      overflow: hidden;
    }

    .landing-art {
      width: calc(1.5 * var(--scene-height));
    }

    .desktop-art {
      isolation: isolate;
    }

    .scene-sides {
      position: absolute;
      z-index: -1;
      inset-inline: 0;
      top: 50%;
      display: block;
      height: var(--scene-height);
      overflow: hidden;
      transform: translateY(-50%);
      pointer-events: none;
    }

    .scene-sides::before,
    .scene-sides::after {
      position: absolute;
      inset-block: 0;
      content: "";
    }

    .scene-sides::before {
      left: 0;
      width: calc(50% - .37 * var(--scene-height));
      background: url("seitenpanorama.jpg") 22.2222% bottom / 280% 125% no-repeat;
    }

    .scene-sides::after {
      right: 0;
      width: calc(50% - .50 * var(--scene-height));
      background:
        linear-gradient(90deg, transparent, #071a2d44),
        url("seitenpanorama.jpg") right top / max(360%, var(--scene-height)) 100% no-repeat;
    }

    .scene-car,
    .scene-van {
      position: absolute;
      z-index: 1;
      inset-block: 0;
      width: var(--photo-width);
    }

    .scene-car {
      left: min(0px, calc(50% - .475 * var(--scene-height) - var(--photo-width)));
      background: url("bmw-heckansicht.jpg") center / cover no-repeat;
      mask-image: linear-gradient(90deg, #000 89%, transparent);
    }

    .scene-van {
      right: min(0px, calc(50% - .39 * var(--scene-height) - var(--photo-width)));
      background: url("transporter-vordergrund.jpg") center / cover no-repeat;
      mask-image: linear-gradient(90deg, transparent, #000 11.5%);
    }

    /* Die neue Straßenszene erscheint im Ausschnitt des bisherigen Transporters. */
    .desktop-art img {
      mask-image:
        radial-gradient(ellipse 17% 42% at 0 74%, transparent 76%, #000 84%),
        radial-gradient(ellipse 23% 22% at 100% 65%, transparent 97%, #000 106%),
        linear-gradient(90deg, transparent, #000 14.35%, #000 86%, transparent 97%);
      mask-composite: intersect, intersect;
    }

    /* Ergänzt den Kartenrand im Bereich des ausgetauschten Fotos. */
    .desktop-art::before {
      position: absolute;
      z-index: -1;
      inset: 34.96% 14.25% 16.99% 50.58%;
      border: 1.5px solid #93d6f3c4;
      border-radius: calc(.031 * var(--scene-height));
      background: linear-gradient(90deg, #071a2dd9, #0b20339c);
      clip-path: inset(0 0 0 64%);
      content: "";
      pointer-events: none;
    }

    /* Bildausschnitt der blauen Schaltfläche aus dem Originalmotiv. */
    .desktop-art .art-link--transport::before {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: url("landingpage-enrico-koebe.png") 77.281% 75.595% / 349.091% 1796.491% no-repeat;
      content: "";
      pointer-events: none;
    }

    .desktop-art .art-link--transport:hover::before {
      filter: brightness(1.07);
    }
  }
}

.desktop-art::after,
.crop--transport::after {
  position: absolute;
  border: 1.5px solid #193c51;
  border-radius: 4.4% / 12%;
  background: #041725 url("kleintransporte-logofeld.webp") center / cover no-repeat;
  pointer-events: none;
  content: "";
}

/* Das Logofeld an den Innenrahmen im Originalmotiv anpassen. */
.desktop-art::after {
  inset: 36.914063% 15.690104% 45.507813% 51.953125%;
}

.crop--transport::after {
  inset: 4.417671% 4.587156% 59.437751% 4.220183%;
}
