/* ===========================================================
   ✉️ MODERN CONTACT FORM (FULLY RESPONSIVE)
   Farben: Dunkelviolett (#2c2a4d), Goldgelb (#fbbf24), Weiß (#fff)
   =========================================================== */

/* ---------- GLOBAL ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #1a1b2f;
  color: #fff;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1vw + 0.4rem, 1rem);
}

/* ---------- KONTAKTFORMULAR CONTAINER ---------- */
.contact-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 35px 30px;
  background: linear-gradient(145deg, #2c2a4d, #221f3b);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: all 0.3s ease;
}

.contact-container h2 {
  text-align: center;
  color: #fbbf24;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- FLASH MESSAGES ---------- */
.flash-message {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  opacity: 0.95;
}

.flash-message.success {
  background-color: #28a745;
  color: #fff;
}

.flash-message.danger {
  background-color: #dc3545;
  color: #fff;
}

/* ---------- FORM-GROUP ---------- */
.contact-group {
  position: relative;
  margin-bottom: 22px;
}

.contact-group input,
.contact-group textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #555;
  background-color: #fff;
  color: #1a1b2f;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Floating Labels */
.contact-group label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #fbbf24;
  font-weight: 600;
  pointer-events: none;
  background-color: transparent;
  transition: all 0.25s ease;
}

.contact-group input:focus + label,
.contact-group textarea:focus + label,
.contact-group input:not(:placeholder-shown) + label,
.contact-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 0.85rem;
  color: #ffc107;
  background-color: #2c2a4d;
  padding: 0 6px;
}

/* Input Fokus-Effekt */
.contact-group input:focus,
.contact-group textarea:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

/* ---------- SUBMIT BUTTON ---------- */
.contact-container button {
  background: linear-gradient(135deg, #fbbf24, #ffc107);
  color: #1a1b2f;
  border: none;
  padding: 16px 22px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.contact-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.5);
}

/* ---------- RESPONSIVE DESIGN ---------- */
/* Tablets & kleine Laptops */
@media (max-width: 992px) {
  .contact-container {
    margin: 40px 20px;
    padding: 30px 25px;
  }
}

/* Smartphones */
@media (max-width: 768px) {
  .contact-container {
    margin: 30px 15px;
    padding: 25px 20px;
  }

  .contact-container h2 {
    font-size: 1.6rem;
  }

  .contact-container button {
    width: 100%;
    font-size: 0.95rem;
    padding: 14px;
  }
}

/* Very Small Devices */
@media (max-width: 480px) {
  .contact-container {
    margin: 20px 10px;
    padding: 20px 15px;
    border-radius: 15px;
  }

  .contact-container h2 {
    font-size: 1.4rem;
  }

  .contact-group input,
  .contact-group textarea {
    padding: 14px 15px;
  }

  .contact-container button {
    font-size: 0.9rem;
    padding: 12px;
  }
}
