@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  border: none;
}

p {
  font-weight: 600;
}

ul {
  margin-left: 20px;
}

input {
  font-weight: 600;
}

#background img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  outline: none;
  z-index: -1;
}

body {
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

.italic {
  font-style: italic;
}

.top-heading {
  font-size: 60px;
  z-index: 10;
  color: #2e5631;
  margin-bottom: 48px;
  margin-top: 48px;
  text-align: center;
}

.blur-bg {
  padding: 20px;
  background: rgba(130, 130, 130, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 24px;
  margin-bottom: 20px;
  border: 1px solid #75757550;
  font-size: 20px;
}

input::placeholder {
  color: rgb(198, 198, 198);
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: 100%;
}

form {
  padding: 32px;
  background: rgba(100, 100, 100, 0.2);
  backdrop-filter: blur(3px);
  border-radius: 24px;
  border: 1px solid rgba(100, 100, 100, 0.4);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

form input#firstname,
form input#lastname {
  padding: 8px;
  border-radius: 8px;
  background: none;
  border: 1px solid white;
}

form input#firstname:focus,
form input#lastname:focus {
  outline: 1px solid #2e5631;
  border: 1px solid #2e5631;
}

form #adults-amount,
form #children-amount {
  width: 40px;
  height: 30px;
  border-radius: 24px;
  background: none;
  backdrop-filter: blur(5px);
  border: 1px solid white;
  padding: 8px;
}

form #adults-amount::-webkit-outer-spin-button,
form #adults-amount::-webkit-inner-spin-button,
form #children-amount::-webkit-outer-spin-button,
form #children-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

form #adults-amount[type="number"],
form #children-amount[type="number"] {
  -moz-appearance: textfield;
}

form #adults-amount:focus,
form #children-amount:focus {
  border: 1px solid #2e5631;
  outline: 1px solid #2e5631;
}

/* Vorträge */
.vortraege {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.vortrag-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.vortrag-item .image {
  height: 48px;
  background: white;
  border-radius: 8px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.vortrag-item .image.siemens img {
  border-radius: 8px;
}

.vortrag-item img {
  height: 40px;
  background: white;
}

.vortrag-item:has(.vortrag-checkbox:checked) {
  background: rgba(46, 86, 49, 0.25);
  border-color: rgba(46, 86, 49, 0.5);
}

.vortrag-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  user-select: none;
}

/* Hide native checkbox */
.vortrag-checkbox {
  display: none;
}

/* Custom checkmark */
.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.vortrag-checkbox:checked+.checkmark {
  background: #2e5631;
  border-color: #2e5631 !important;
}

.vortrag-checkbox:checked+.checkmark::after {
  content: "";
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Name section */
.name-section {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-section.hidden {
  display: none;
}

.name-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.name-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: none;
  backdrop-filter: blur(5px);
  color: inherit;
  font-size: 14px;
}

.name-input:focus {
  border: 1px solid #2e5631 !important;
  outline: 1px solid #2e5631;
}

.deleteNameBtn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(205, 24, 24, 0.15);
  border: 1px solid rgba(205, 24, 24, 0.4) !important;
  color: #cd1818;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease-in-out;
  padding: 0;
  line-height: 1;
}

.deleteNameBtn:hover {
  background: rgba(205, 24, 24, 0.3);
  border-color: rgba(205, 24, 24, 0.7) !important;
}

.addNameBtn {
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  background: #2e5631;
  color: white;
  font-size: 13px;
  text-align: left;
  transition: 0.2s ease-in-out;
  width: fit-content;
}

.addNameBtn:hover {
  background: #3a6e3e;
}

/* Children ages */
.children-ages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.child-age-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.child-age-input {
  width: 60px;
  height: 30px;
  border-radius: 24px;
  background: none;
  backdrop-filter: blur(5px);
  border: 1px solid white !important;
  padding: 8px;
  -moz-appearance: textfield;
}

.child-age-input::-webkit-outer-spin-button,
.child-age-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.child-age-input:focus {
  border: 1px solid #2e5631 !important;
  outline: 1px solid #2e5631;
}

.bottom-inputs {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-inputs input {
  padding: 8px;
  border-radius: 8px;
  background: none;
  border: 1px solid white;
  width: 100%;
}

.bottom-inputs input:focus {
  outline: 1px solid #2e5631;
  border: 1px solid #2e5631;
}

/* Container */
.agree-news,
.agree-data-protection {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

/* Checkbox ausblenden */
.agree-news input[type="checkbox"],
.agree-data-protection input[type="checkbox"] {
  display: none;
}

/* Label als Box */
.agree-news label,
.agree-data-protection label {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #2e5631;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}

/* Häkchen */
.agree-news input[type="checkbox"]:checked+label::after,
.agree-data-protection input[type="checkbox"]:checked+label::after {
  content: "";
  position: absolute;
  left: 27%;
  /* 27% von der Boxbreite */
  top: 1%;
  /* 1% von der Boxhöhe */
  width: 40%;
  /* Häkchen-Breite relativ zur Box */
  height: 80%;
  /* Häkchen-Höhe relativ zur Box */
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hintergrund bei aktiviert */
.agree-news input[type="checkbox"]:checked+label,
.agree-data-protection input[type="checkbox"]:checked+label {
  background-color: #2e5631;
  border-color: #2e5631;
}

.captcha-container {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom field errors */
.field-error {
  display: block;
  color: #cd1818;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
  animation: errorFadeIn 0.2s ease;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-error {
  border-color: #ff6b6b !important;
  outline: 1px solid #ff6b6b !important;
}

.agree-data-protection .field-error {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

#sendBtn {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  background: #2e5631;
  color: white;
  font-size: 14px;
  text-align: center;
  width: 100%;
  margin-top: 20px;
  transition: 0.2s ease-in-out;
}

#sendBtn:hover {
  background: #3a6e3e;
}

.thanks-to-partners {
  text-align: center;
  margin-top: 24px;
  padding: 20px;
  background: rgba(130, 130, 130, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 24px;
  margin-bottom: 20px;
  border: 1px solid #75757550;
}

.thanks-to-partners .partners-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 40px;
  justify-items: center;
  align-items: center;
}

.thanks-to-partners .partners-imgs img {
  height: 70px;
  width: 100%;
  object-fit: contain;
  display: block;
  background: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  main {
    padding: 16px;
  }

  .top-heading {
    font-size: 38px;
    margin-bottom: 24px;
  }

  .blur-bg {
    font-size: 16px;
  }

  form {
    padding: 20px;
    width: 100%;
  }

  form p {
    line-height: 2.2;
  }

  form input#firstname,
  form input#lastname {
    width: 100%;
    display: block;
    margin: 4px 0;
  }

  .vortrag-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .vortrag-item img {
    width: 120px;
  }

  .bottom-inputs {
    flex-direction: column;
  }

  .agree-news label,
  .agree-data-protection label {
    width: 32px;
    height: 32px;
  }

  .agree-news input[type="checkbox"]:checked+label::after,
  .agree-data-protection input[type="checkbox"]:checked+label::after {
    left: 35%;
    /* gleiche relative Position wie Desktop */
    top: 2%;
    /* leicht nach unten verschoben für größere Box */
    width: 25%;
    height: 76%;
    border-width: 0 3px 3px 0;
  }
}