:root {
  --weiss: #fff;
  --orange: #f29e2f;
  --blau: #bbe5f5;
  --dunkelblau: #36819c;
  --grau: #3d3f45;
  --rot: red;
}

body {
  margin: 0;
  background-color: var(--blau);
}

main * {
  font-family: system-ui, sans-serif; /* Hier Font angeben */
}

main {
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
}

h1 {
  text-align: center;
  color: var(--grau);
  margin-bottom: 2rem;
  width: 100%;
}

h2 {
  margin-bottom: 0;
  color: var(--grau);
}

form {
  background-color: var(--orange);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
  max-width: 700px;
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

textarea {
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
  width: 100%;
  min-width: 100%;
  min-height: 8em;
  resize: vertical;
}

button[type="submit"] {
  background-color: var(--blau);
  color: var(--grau);
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.75em 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
  background-color: var(--dunkelblau);
  color: var(--weiss);
}

input[type="tel"],
input[type="text"],
input[type="email"] {
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--weiss);
  border-radius: 6px;
}

.animate input {
  width: 100%;
  height: 45px;
}

.split50 {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 1rem;
}

.split50 > div {
  flex: 1 1 calc(50% - 10px);
}

.split70 {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 1rem;
}

.split70 div:first-child {
  flex: 0 1 calc(70% - 10px);
}

.split70 div:last-child {
  flex: 0 1 calc(30% - 10px);
}

.produktAuswahl {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.produktAuswahl > div {
  border: 2px solid var(--weiss);
  padding: 1rem 1rem;
  border-radius: 6px;
}

.produktAuswahl > div a {
  color: var(--weiss);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.produktAuswahl > div div {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.produktAuswahl input[type="text"] {
  text-align: right;
  width: 80px;
  text-align: right;
  padding: 0.25rem 0.5rem;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}

.produktAuswahl p {
  margin: 0 0 0 12px;
  color: var(--grau);
}

.animate {
  position: relative;
  width: 100%;
}

.animate {
  position: relative;
}

.animate input {
  box-sizing: border-box;
  padding: 0 4px;
}

.animate input:focus {
  border: none;
}

.animateLabel {
  position: absolute;
  padding: 0 4px;
  color: var(--grau);
  font-size: 1rem;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  transition: all 0.2s;
  background-color: var(--weiss);
  pointer-events: none;
}

input[type="tel"]:not(:placeholder-shown) + .animateLabel,
input[type="tel"]:focus + .animateLabel,
input[type="text"]:not(:placeholder-shown) + .animateLabel,
input[type="text"]:focus + .animateLabel,
input[type="email"]:not(:placeholder-shown) + .animateLabel,
input[type="email"]:focus + .animateLabel,
textarea:not(:placeholder-shown) + .animateLabel,
textarea:focus + .animateLabel {
  transform: translateY(-150%);
  color: var(--grau);
}

.mandatory {
  color: var(--rot);
}

@media (max-width: 600px) {
  .split {
    flex-wrap: wrap;
  }

  .split .animate {
    flex: 1 1 100%;
  }

  .split70,
  .split50 {
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .split70 div,
  .split50 div {
    display: block;
    width: 100%;
    flex: unset !important;
  }

  .produktAuswahl div div {
    display: block;
  }

  .produktAuswahl div div input {
    text-align: left !important;
  }

  .produktAuswahl p {
    margin: 0.5rem 0 0 0 !important;
  }
}
