html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.header {
  background-image: url("/img/bg.svg");
  background-color: var(--c-interactive-03);
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ls-m);
  padding: var(--ls-m) 0 var(--ls-s);
}

.header label {
  color: var(--c-text-06);
}

.header .title {
  color: var(--c-text-06);
}

.header .title h1, .header .title h2 {
  margin: 0;
}

.header .title h2 {
  font-weight: normal;
}

.headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--grid-row-gap);
}

@media (max-width: 1080px) {
  .headline {
    flex-direction: column;
    gap: .5rem;
  }
  .separation {
    display: none;
  }
}

.separation {
  width: 1px;
  height: 4rem;
  background-color: var(--c-background-04);
}

.headline .logo {
  width: 100px;
}

h1 {
  transform: translateY(4px);
}

.form {
  display: flex;
  gap: 2rem;
}

.input {
  display: flex;
  flex-direction: column;
  width: 33vw;
  max-width: 500px;
  gap: .5rem;
}

.input .mandatory {
  visibility: hidden;
  color: var(--c-text-06);
  font-size: var(--fs-xs);
  margin-left: 5px;
}

.input label {
  font-size: var(--fs-xs);
  margin-left: 5px;
}

.input input::placeholder {
  font-size: var(--fs-xs);
}

input {
  border-radius: var(--br-m);
  height: 2.5rem;
  padding: 0 .8rem;
  border: none;
  color: var(--grey-700);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 10%);
  transition: .2s;
}

select {
  display: none;
}

.nice-select-dropdown {
  width: 100%;
}

@media (max-width: 620px) {
  .form {
    flex-direction: column;
    width: 90%;
  }
  .input {
    width: 100%;
  }
  h1 {
    text-align: center;
    width: 90vw;
  }
}

.content {
  display: none;
  flex-grow: 1;
  flex-shrink: 0;
  overflow: hidden;
  transition: opacity .2s;
}

.content.inactive {
  opacity: 0;
}

.cluster-list {
  background-color: var(--c-background-03);
  border-right: solid 1px var(--grey-100);
  padding: var(--ls-m) var(--ls-s);
  width: 28%;
  min-width: 25rem;
  transition: .5s;
}

.list-title {
  margin-left: 10px;
}

.cluster-list ul {
  list-style: none;
  padding: 0;
}

.cluster-list li a {
  background-color: var(--c-background-04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  border-radius: var(--br-l);
  box-shadow: 0 0 25px rgba(0, 0, 0, 5%);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  transition: .15s;
  text-decoration: none;
}

.cluster-list li a[href]:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 25px rgba(0, 0, 0, 10%);
}

.cluster-list li a.recommended {
  background-color: var(--c-interactive-03);
  animation: attention 0.2s both;
}

.cluster-list li a.recommended {
  background-color: var(--c-interactive-03);
  box-shadow: 0 2px 25px rgba(0, 0, 0, 10%);
}

.cluster-list li a.recommended.active, li a[href].recommended:hover {
  background-color: var(--c-interactive-02);
}

.cluster-list li a.recommended * {
  color: var(--c-interactive-05);
  pointer-events: none;
}

.cluster-list li a:not([href]) {
  opacity: .4;
}

.cluster-list li a:not(.recommended).active {
  box-shadow: 0 0 0 2px var(--c-interactive-03) inset;
  transition: .2s;
}

.cluster-list li a .right-caret {
  font-size: 24px;
  color: var(--c-icon-03)
}

.cluster-list li a.recommended .right-caret {
  color: var(--c-interactive-05);
}

.cluster-list li h3 {
  font-size: var(--fs-m);
  margin: 0 0 5px 0;
  color: var(--c-text-02);
  display: inline-block;
}


.cluster-list li p {
  font-size: var(--fs-xxs);
  color: var(--grey-700);
  margin: 0;
}

span.recommended-tag {
  font-weight: bold;
  font-size: var(--fs-xs);
}

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  font-size: var(--fs-xs);
  color: var(--c-text-04);
}

footer a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  padding: var(--cs-s) var(--cs-s) var(--cs-s) 0;
}

.cluster-list li a:not(.recommended) span.recommended-tag {
  display: none;
}

.cluster-list li a.recommended span.recommended-tag {
  display: inline;
}

#map {
  justify-content: center;
  align-items: center;
  width: 75%;
  min-height: 40rem;
}

@media (max-width: 860px) {
  .content {
    overflow: visible;
  }
  .cluster-list {
    width: 50%;
    min-width: auto;
  }
  #map {
    display: 50%;
  }
  footer {
    position: static;
    text-align: center;
  }
  .input .mandatory {
    margin-bottom: 1rem;
  }
  .header:not(.resolved) {
    min-height: calc(100vh - 2.5rem);
  }
  .header .title {
    text-align: center;
  }
  .header .title h2 {
    margin-bottom: var(--ls-xs);
    margin-top: var(--ls-xs);
  }
  .form {
    border-top: 1px solid var(--c-line-07);
    padding-top: var(--ls-m);
  }
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }
  .cluster-list {
    border-right: none;
    padding: 3rem 1rem;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  #map {
    display: none;
  }
}

@keyframes attention {
  0% {
    background-color: var(--c-background-04);
  }
  100% {
    background-color: var(--c-interactive-03);
  }
}
