/* Poppins importieren */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hintergrundbild malta */
body {
  font-family: "Poppins", sans-serif;
  background:
    linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)),
    url("../medien/malta.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #1e293b;
  padding: 40px 20px;
  min-height: 100vh;
}

/* Überschriften */
h1 {
  text-align: center;
  font-size: 2.7rem;
  color: #f8dc6f;
  margin-bottom: 20px;
}

h2.untertitel {
  margin-top: 20px;
  margin-bottom: 20px;
  color: #2563eb;
  font-size: 1.9rem;
  text-align: center;
}

h2 {
  text-align: center;
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 30px;
}

/* Labels */
label {
  font-weight: 500;
  display: inline-block;
  margin-bottom: 8px;
}

/* Inputs */
input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #dbeafe;
  border-radius: 14px;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #f8fafc;
  font-family: "Poppins", sans-serif;
}

/* Ausnahmen die nie 100% sein sollen */
input[type="radio"],
input[type="checkbox"] {
  width: auto !important;
}

input[type="range"] {
  width: 100% !important;
  accent-color: #2563eb;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  margin-bottom: 8px;
}

/* Hover + Focus */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15);
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Radio & Checkbox */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
  accent-color: #2563eb;
}

/* CHF Anzeige - inline damit es neben der Zahl bleibt */
#budgetValue {
  display: inline !important;
  font-weight: 600;
  color: #2563eb;
  margin-left: 4px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Error Messages müssen ja rot sein */
span {
  display: block;
  margin-top: -10px;
  margin-bottom: 15px;
  color: #dc2626 !important;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Button */
button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 15px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

/* KI Nr. 8  */
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

button:active {
  transform: scale(0.98);
}

/* Felder benutzerfreundlich kürzen*/
@media (min-width: 600px) {
  input[type="text"] {
    width: 50% !important;
  }
  input[type="email"] {
    width: 380px !important;
  }
  input[type="tel"] {
    width: 260px !important;
  }
  input[type="date"] {
    width: 220px !important;
  }
  select {
    width: 220px !important;
  }
  textarea {
    width: 100% !important;
  }
}

/* KI Nr. 2  */
/* Mobile Optimierung */
@media (max-width: 599px) {
  body {
    padding: 20px 10px;
    background-attachment: scroll;
  }

  form {
    padding: 20px 15px;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2.untertitel {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1rem;
  }

  /* Auf Mobile alle Felder volle Breite */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select {
    width: 100% !important;
  }

  button {
    font-size: 1rem;
    padding: 14px;
  }
}

/* Footer an Stil anpassen*/
footer {
  max-width: 850px;
  margin: 0 auto 30px auto;
  background: #f8dc6f;
  padding: 20px 40px;
  /* KI Nr. 15  */
  border-radius: 0 0 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  /*fertig KI  */
  display: flex;
  align-items: center;
  gap: 20px;
}

footer p {
  color: #1e293b;
  font-size: 0.9rem;
}

footer a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

form {
  max-width: 850px;
  margin: 30px auto 0 auto;
  background: #f8dc6f;
  padding: 40px;
  border-radius: 24px 24px 0 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/*Selbst gemacht*/
/* Mobile */
@media (max-width: 599px) {
  footer {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Confirm Container */
.confirm-container {
  max-width: 850px;
  margin: 30px auto 0 auto;
  background: #f8dc6f;
  padding: 40px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.confirm-box h2 {
  text-align: left;
  font-size: 1.2rem;
  color: #1e293b;
  margin: 20px 0 10px 0;
}

.confirm-box p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #1e293b;
}

.confirm-box hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin: 20px 0;
}

/*Selbst gemacht*/
/* Mobile */
@media (max-width: 599px) {
  .confirm-container {
    padding: 20px 15px;
  }
}

.logo-lingoWay {
  text-align: left;
  padding: 20px;
}

.logo-lingoWay img {
  height: 60px;
  width: auto;
}

/* Handy */
@media (max-width: 768px) {
  .logo-lingoWay {
    text-align: center;
  }
}
