:root {
  --orange: #ee741d;
  --blue: #0d71b9;
}

body {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  scroll-behavior: smooth;
}

h1 {
  font-size: clamp(1.2em, 3vw, 3em);
}

h2 {
  font-size: clamp(1.2em, 2.5vw, 2.2em);
}

body > main,
body > footer {
  max-width: 1200px;
  width: 100%;
}

main > header {
  display: flex;
  background: var(--orange);
  color: white;
}

a,
a:visited {
  color: white;
}

.content {
  padding: clamp(2em, 5vw, 3em);
}

main > header > .content {
  flex: 1 1 75%;
}

footer {
  background: var(--blue);
  color: white;
  text-align: right;
}

main > header > .logo {
  background: white;
  flex: 1 1 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 160px;
  padding-right: 20px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%, 100% 0%);
}

.plz {
  background: var(--blue);
  color: white;
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.plz > div {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.plz > div > p {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.plz > div > form {
  align-self: flex-end;
}

section.map {
  display: flex;
  flex-direction: row;
  margin-bottom: 2em;
  margin-top: 2em;
}

div.map {
  flex: 1 1 60%;
  height: 460px;
}

#map {
  height: 100%;
  width: 100%;
}

.gemeinde {
  fill: var(--blue);
  stroke: white;
  stroke-width: 0.1px;
  shape-rendering: auto;
  stroke-linejoin: round;
}

.seen {
  fill: transparent;
  stroke: red;
}

.highlight.highlight {
  fill: var(--orange);
}

.bold {
  font-weight: 700;
  font-size: 1.2em;
}

div.hint {
  font-weight: 700;
  font-size: 1.4em;
}

div.form,
div.hint {
  flex: 1 1 40%;
  color: var(--blue);
  padding: 10px 12px;
}

input {
  font-weight: 700;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 6px 10px;
  width: 13em;
}

.plz button:hover {
  color: var(--blue);
}

.plz button {
  --background-color: var(--blue);
  --color: white;
  font-weight: 700;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.button,
a.button {
  --background-color: white;
  --color: var(--blue);
  background: var(--background-color);
  color: var(--color);
  border: 2px solid var(--color);
  font-weight: 700;
  padding: 6px 10px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}

form {
  display: flex;
  gap: 3px;
}

.button:hover {
  color: var(--background-color);
}

.button::before {
  transition: all 0.5s cubic-bezier(0, 0, 0.23, 1);
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--color),
    var(--color) 50%,
    transparent 50%
  );
  background-size: 245% 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  z-index: -1;
}

.button:hover::before {
  width: 100%;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: flex-start;
}

h1,
h2 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1em;
}

.progress {
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress h2 {
  margin: 30px 0;
  background: var(--blue);
  color: white;
  padding: 7px 7px;
}

.disclaimer {
  font-size: 0.8em;
}

.autocomplete {
  background: white;
  z-index: 1000;
  font: 14px/22px "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(50, 50, 50, 0.6);
}

.autocomplete * {
  font: inherit;
}

.autocomplete > div {
  padding: 0 4px;
}

.autocomplete .group {
  background: #eee;
}

.autocomplete > div:hover:not(.group),
.autocomplete > div.selected {
  background: #81ca91;
  cursor: pointer;
}

.hidden {
  display: none;
}

.plz .first {
  flex: 1 1 65%;
}

.plz .second {
  flex: 1 1 35%;
}

.second h2 {
  font-size: 24px;
}

.plz img {
  max-width: 100%;
}

@media only screen and (max-width: 600px) {
  main > header {
    flex-direction: column;
  }
  main > header > .logo {
    margin-left: 0;
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%, 0% 100%);
    padding-top: 15%;
    padding-left: 30%;
    padding-bottom: 5%;
  }
  .logo img {
    width: 50%;
  }

  section.map {
    flex-direction: column;
  }
  .plz-input {
    width: 100%;
  }

  footer.content {
    text-align: left;
  }

  .plz {
    flex-direction: column;
  }
}

#paymentModalLink {
  display: none;
}

.numberInput {
  text-align: right;
}
.kanton {
  fill: transparent;
  stroke: red;
  stroke-width: 0.3;
}

.languages {
  margin-bottom: 1em;
  margin-top: clamp(-1em, -2.5vw, -1.5em);
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.language-switcher {
  text-transform: uppercase;
  text-decoration: none;
}

.form .place {
  font-weight: 700;
}
