/* style-kontakt.css */

/* Allgemeine Anpassungen für die Kontakt-Sektion */
#kontakt {
  padding-top: 4rem; /* NEU: Abstand oben angepasst */
  padding-bottom: 4rem; /* NEU: Abstand unten angepasst */
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column; /* NEU: Stellt sicher, dass der Inhalt der Sektion gestapelt ist */
  justify-content: center; /* NEU: Vertikale Zentrierung des Sektionsinhalts */
  align-items: center; /* NEU: Horizontale Zentrierung des Sektionsinhalts */
  min-height: calc(100vh - var(--header-height, 80px) - var(--footer-height, 100px)); /* Mindesthöhe für Zentrierung. Standardwerte für --header-height/--footer-height falls nicht definiert */
}

#kontakt h1 {
  margin-bottom: 0.5rem;
  text-align: center; /* Sicherstellen, dass der Haupttitel zentriert ist */
}

#kontakt .subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem; /* NEU: Abstand zum Grid reduziert */
}

/* Haupt-Grid für Kontaktbox und Formular */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Stellt sicher, dass die Boxen im Grid zentriert sind */
  gap: 2rem;
  max-width: 1000px; /* Maximale Breite des Grids */
  width: 90%; /* NEU: Macht das Grid etwas flexibler in der Breite */
  margin: 0 auto; /* Zentrierung des Grids innerhalb der Sektion */
  align-items: flex-start;
}

/* Linke Spalte: Kontaktinformationen Box */
.contact-info-box {
  background-color: #333;
  color: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 320px;
  max-width: 450px;
}

.contact-info-box h3 {
  color: #ffffff; /* Überschrift in Weiß */
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  border-bottom: 2px solid #ffffff; /* Unterstrich in Weiß */
  padding-bottom: 0.5rem;
}

.contact-info-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Styling-Regel für die Liste in der Info-Box */
.contact-info-box ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.contact-info-box ul li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.contact-info-box ul li::before {
  content: '✓';
  color: #ff9900;
  position: absolute;
  left: 0;
  top: 0;
}


.contact-info-box .person-name {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-details {
  margin-top: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  color: #ff9900;
  flex-shrink: 0;
}

.detail-text {
  font-size: 0.95rem;
  word-break: break-word;
}

.detail-text a {
  color: #ff9900;
  text-decoration: none;
}

.detail-text a:hover {
  text-decoration: underline;
}

/* Rechte Spalte: Kontaktformular Box */
.contact-form-box {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 320px;
  max-width: 450px;
}

.form-intro {
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #333;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #ff9900;
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Captcha Styling */
.captcha-text {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

#captcha-image {
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 70px; /* Höhe auf 70px, passend zur PHP-Ausgabe */
  width: 100%; /* NEU: Stellt sicher, dass das Bild die volle Breite des Containers einnimmt */
  max-width: 220px; /* NEU: Maximale Breite des Bildes, passend zur PHP-Ausgabe */
  object-fit: contain; /* NEU: Bildinhalt wird skaliert, um in den Container zu passen, ohne abgeschnitten zu werden */
}

.refresh-captcha-button {
  background-color: #003366;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.refresh-captcha-button:hover {
  background-color: #002244;
}

/* Datenschutzhinweis */
.privacy-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.privacy-note a {
  color: #003366;
  text-decoration: underline;
}

.privacy-note a:hover {
  color: #ff9900;
}

/* Nachrichten-Container (Fehler/Erfolg) */
.form-messages {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.error-messages {
    background-color: #ffe0e0;
    color: #cc0000;
    border: 1px solid #ff9999;
}

.success-message {
    background-color: #e0ffe0;
    color: #008000;
    border: 1px solid #99ff99;
}

.form-messages p {
    margin: 0;
    padding: 0.2rem 0;
}


.send-button {
  background-color: #ff9900;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
  margin-top: 1rem;
}

.send-button:hover {
  background-color: #cc7a00;
  transform: translateY(-1px);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-info-box,
  .contact-form-box {
    width: 95%;
    max-width: 500px;
    padding: 1.5rem;
  }

  .send-button {
    width: 100%;
    align-self: stretch;
  }
}
