/* ================================ */
/* ===== Kontaktseite Styles ===== */
/* ================================ */

/* Zentrierung wie auf der Startseite */
body.contact-page .viewport-center {
  display: flex;
  flex-direction: column;
  justify-content: center;        /* vertikal zentrieren */
  align-items: center;            /* horizontal zentrieren */
  min-height: calc(100vh - 150px - 100px); /* zwischen Header (150px) und Footer (100px) */
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Container im Main */
body.contact-page .content-container {
  display: block;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Kontaktformular */
body.contact-page .contact-form {
  display: block;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

body.contact-page .contact-form .inputs-div {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

body.contact-page .contact-form label {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;        /* etwas leichter */
  margin-top: 0.5rem;   /* mehr Abstand zum Input */
  margin-bottom: 0.2rem;
  text-align: left;
  line-height: 1.4;
  padding-left: 5px;         /* leichter Einzug nach rechts */
}

body.contact-page .contact-form input,
body.contact-page .contact-form textarea,
body.contact-page .contact-form select,
body.contact-page .contact-form button {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  background-color: transparent;
  border: 1px solid #ff6b00;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

body.contact-page .contact-form input::placeholder,
body.contact-page .contact-form textarea::placeholder {
  color: #ccc;
}

body.contact-page .contact-form input:focus,
body.contact-page .contact-form textarea:focus,
body.contact-page .contact-form select:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 5px #ff6b00;
}

body.contact-page .contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ff6b00' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 2rem;
  cursor: pointer;
}

body.contact-page .contact-form select option {
  background-color: #111;
  color: #fff;
}

body.contact-page .contact-form button {
  border: 1px solid #ff6b00;
  color: #fff;
  background-color: transparent;
  transition: background-color 0.3s ease;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

body.contact-page .contact-form button:hover {
  background-color: #ff6b00;
  color: #fff;
}

body.contact-page .contact-form button:disabled {
  border-color: #666;
  color: #666;
  cursor: not-allowed;
}

/* Overlay für Bestätigung */
.overlay-confirmation {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-box {
  background: #fff;
  padding: 24px 32px;
  border-radius: 8px;
  font-size: 1.2em;
  color: #000;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 0 24px #000;
}

/* ============================================= */
/* 📱📲💻🖥 RESPONSIVE BREAKPOINTS – 5 STUFEN BASIS */
/* ============================================= */

/* 📱 1. XS – Kleine Smartphones */
@media (max-width: 480px) {
  body.contact-page .viewport-center {
    min-height: calc(100vh - 144px - 100px);
    padding: 0 10px;
  }
  body.contact-page .contact-form {
    max-width: 100%;
    padding: 0 10px;
  }
}

/* 📱 2. S – Normale Smartphones */
@media (min-width: 481px) and (max-width: 768px) {
  body.contact-page .viewport-center {
    min-height: calc(100vh - 144px - 100px);
  }
  body.contact-page .contact-form {
    max-width: 90%;
  }
}

/* 📲 3. M – Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  body.contact-page .viewport-center {
    min-height: calc(100vh - 150px - 100px);
  }
  body.contact-page .contact-form {
    max-width: 85%;
  }
}

/* 💻 4. L – Laptops / kleine Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
  body.contact-page .viewport-center {
    min-height: calc(100vh - 150px - 100px);
  }
  body.contact-page .contact-form {
    max-width: 700px;
  }
}

/* 🖥 5. XL – große Desktops */
@media (min-width: 1441px) {
  body.contact-page .viewport-center {
    min-height: calc(100vh - 150px - 100px);
  }
  body.contact-page .contact-form {
    max-width: 700px;
  }
}
