.shortcut {
  position: absolute;
  display: flex;
  z-index: 100;
  flex-direction: column;
  height: 500px;
  width: auto !important;
  bottom: 0;
  right: 0 !important;
  top: 8%;
  transform: translateY(-50%);
  gap: var(--g-gap-s);
}

.page.-cleebronn.-sub .shortcut,
.page.-steisslingen.-sub .shortcut,
.page.-iffeldorf.-sub .shortcut,
.page.-thailing.-sub .shortcut,
.page.-cleebronn.-subwithmenu .shortcut,
.page.-steisslingen.-subwithmenu .shortcut,
.page.-iffeldorf.-subwithmenu .shortcut,
.page.-thailing.-subwithmenu .shortcut {
  display: none;
}

.shortcut .shortcut__wrap h4 {
  color: rgb(var(--c-neutral-lightest));
  font-size: var(--f-size);
  font-weight: var(--f-weight-b);
  display: none;
  text-transform: uppercase;
}

.shortcut .shortcut__wrap .shortcut__button {
  display: grid;
  gap: var(--g-gap);
}

.shortcut .shortcut__wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  background-color: rgba(var(--c-primary));
  width: auto;
  position: relative;
  border-top-left-radius: var(--b-radius);
  border-bottom-left-radius: var(--b-radius);
}

.shortcut .shortcut__wrap .shortcut__button {
  width: auto;
  display: grid;
  align-items: center;
  height: auto;
  cursor: pointer;
}

.shortcut .shortcut__wrap .shortcut__button .shortcut__image__hover {
  display: none;
}

.shortcut .shortcut__wrap.-active .shortcut__image {
  display: none;
}

.shortcut .shortcut__wrap.-active .shortcut__button .shortcut__image__hover {
  display: block;
}

.shortcut .shortcut__wrap::after {
  content: "";
  display: block;
  position: absolute;
  top: 0.5rem;
  right: 0;
  bottom: 0;
  width: 0.5px;
  height: 80%;
  background: rgb(var(--c-neutral-lightest), 0.2);
  z-index: 1;
}

.shortcut .shortcut__wrap:last-child::after {
  content: none;
}

.shortcut .shortcut__wrap:nth-child(3) .shortcut__image {
  position: relative;
  left: 0;
}

.shortcut .shortcut__wrap > a {
  color: rgb(var(--c-neutral-lightest));
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  line-height: normal;
}

.shortcut__wrap img {
  max-width: 30px;
  max-height: 30px;
}

.shortcut__wrap img {
  margin: 0 auto;
  height: auto;
  max-width: 22px;
  max-height: 22px;
}

.shortcut .shortcut__wrap.-active {
  background-color: rgba(var(--c-neutral-lightest));
}

body:has(.shortcut__wrap.-active) .offer__info.-closed {
  z-index: 100;
}

/* Popup */
.shortcut__wrap.-active .popup {
  display: block;
}

body.-popupactive::before {
  position: fixed;
  content: "";
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  background-color: rgba(var(--c-neutral-darkest), 0.7);
}

.popup {
  background-color: rgb(var(--c-neutral-lightest));
  overflow: hidden;
  display: none;
  width: 300px;
  z-index: 2500;
  top: 18rem;
  padding: 2rem;
  position: fixed;
  right: auto;
  left: 50%;
  transform: translate(-100%, -50%);
  height: auto;
  max-height: calc(100vh - 120px + 3rem);
  color: rgb(var(--c-neutral-darkest));
  border-radius: var(--b-radius);
  -webkit-box-shadow: 0 0 10px rgba(var(--c-neutral-darkest), 0.1);
  -moz-box-shadow: 0 0 10px rgba(var(--c-neutral-darkest), 0.1);
  -o-box-shadow: 0 0 10px rgba(var(--c-neutral-darkest), 0.1);
  box-shadow: 0 0 10px rgba(var(--c-neutral-darkest), 0.1);
}

.popup__close {
  justify-self: flex-end;
  cursor: pointer;
  grid-column: 2;
}

.popup__close::after {
  content: "\f00d";
  font-family: "FaRegular", sans-serif;
  color: rgb(var(--c-neutral-darkest));
  font-size: 20px;
  right: 1rem;
  top: 0.5rem;
  position: absolute;
}

.popup__content .font__button {
  margin-bottom: 0.75rem;
}

.popup__content input {
  padding: 0.3rem 4rem 0.3rem 1rem;
  border-radius: var(--b-radius);
}

.popup__content input[type="submit"] {
  padding: 0.3rem 1.2rem;
  display: flex;
  margin-top: 0.5rem;
}

.popup__container {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  max-height: calc(100vh - 120px);
  scrollbar-color: rgb(var(--c-neutral-lighter)) rgb(var(--c-primary));
  scrollbar-width: thin;
}

.popup__container a {
  color: rgb(var(--c-primary));
  font-weight: var(--f-weight-b);
}

.popup__container::-webkit-scrollbar-track {
  background-color: rgb(var(--c-neutral-lighter));
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.popup__container::-webkit-scrollbar {
  width: 5px;
}

.popup__container::-webkit-scrollbar-thumb {
  background-color: rgb(var(--c-primary));
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.popup__container .font__button {
  text-transform: none;
  display: inline-block;
  color: rgb(var(--c-neutral-lightest));
  font-weight: var(--f-weight-b);
  width: auto;
  padding: 0.75rem 1.5rem;
  position: relative;
  margin-top: 2.5rem;
  background-color: rgb(var(--c-primary));
}

.popup__container h3:after {
  width: 100%;
  content: "";
  display: block;
  margin: 1rem 0 1rem 0;
  border-top: 1px solid rgb(var(--c-neutral-light));
}

@media (hover: hover) {
  .popup__container .font__button:hover {
    background-color: rgb(var(--c-primary-dark));
  }
}

/* =============================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 400px) {
  .popup {
    left: -4rem;
  }
}

@media (min-width: 640px) {
  .shortcut__wrap img {
    max-width: 27px;
    max-height: 30px;
  }

  .shortcut__wrap:nth-child(2) img {
    max-width: 30px;
    max-height: 30px;
  }

  .shortcut__wrap:nth-child(3) img {
    max-width: 22px;
    max-height: 34px;
  }
}

@media (min-width: 800px) {
  .shortcut .shortcut__wrap {
    display: flex;
    justify-content: flex-start;
    right: calc(-100% + 70px);
    width: 100%;
    transition: right 0.5s ease;
  }

  .shortcut .shortcut__wrap h4 {
    display: block;
  }

  .shortcut .shortcut__wrap .shortcut__button {
    grid-template-columns: 30px 1fr;
  }

  @media (hover: hover) {
    .shortcut .shortcut__wrap:hover {
      right: 0;
      z-index: 10;
    }

    .shortcut__wrap.-active:hover {
      right: calc(-100% + 70px);
    }
  }

  .popup {
    position: fixed;
    top: 22rem;
    border-radius: var(--b-radius);
    z-index: 0;
    right: 20rem;
    width: 400px;
    height: auto;
    left: 50%;
    transition: 0.3s ease-out;
  }

  body.-popupactive::before {
    position: inherit;
  }
}

@media (min-width: 1280px) {
  /* Popup */

  .popup__title {
    padding: 0 1.5rem;
    height: 80px;
  }

  .popup__content {
    padding: 1rem 1.5rem;
  }

  .popup__content .grid__main {
    display: block;
  }
}

@media (min-width: 1580px) {
  .popup {
    width: 480px;
  }
}
