/* E-Mail-Verschleierung */
.email-wrapper {
    margin: 15px 0;
    color: whitesmoke;
}

.email-obfuscated {
    direction: rtl; /* Text von rechts nach links */
    unicode-bidi: bidi-override; /* Erzwingt die Richtung */
    display: inline-block; /* Verhindert Umbrüche */
}

.email-link {
    color: #ebb000;
    text-decoration: none;
    margin-left: 10px;
}

.email-link:hover {
    text-decoration: underline;
}

/* Kontaktformular */
#contact-form {
    width: 60%; /* Reduzierte Breite auf 60% */
    max-width: 600px; /* Maximale Breite für größere Bildschirme */
    margin: 0 auto; /* Zentriert das Formular */
}
.form-group-contact input:focus,
.form-group-contact textarea:focus,
.form-group-contact select:focus {
    border: 2px solid #ebb000;
    outline: none;
}

.form-group-contact {
    margin-bottom: 0px;
}

.form-group-contact label {
    display: block;
    color: whitesmoke;
    margin-bottom: 5px;
}

.form-group-contact input,
.form-group-contact select,
.form-group-contact textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: whitesmoke;
}

.form-group-contact textarea {
    resize: vertical;
}
.form-group-contact select {
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 40px; /* Lücke zwischen Feldern */
    flex-wrap: wrap; /* Fallback für kleine Bildschirme */
}

.form-col {
    flex: 1; /* Gleiche Breite für Felder wie E-Mail, Telefon, Straße, Ort */
    min-width: 120px; /* Minimale Breite für kleine Bildschirme */
}

.form-col-small {
    flex: 0 0 20%; /* Schmaleres Feld für Hausnummer (ca. 20%) */
    max-width: 80px; /* Begrenzt die Breite */
}

.form-col-medium {
    flex: 0 0 30%; /* Mittleres Feld für PLZ (ca. 30%) */
    max-width: 120px; /* Begrenzt die Breite */
}

#submit-button {
    background-color: #ebb000;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto; /* Typische Button-Breite */
    display: inline-block;
}

#submit-button:hover {
    background-color: #ffd700;
}

.captcha-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Viewport-Einheiten für volle Abdeckung */
    height: 100vh;
    background: rgba(70, 62, 62, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.captcha-content {
    background: rgba(70, 62, 62, 1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid #ebb000;
    position: relative;
}

.captcha-content input {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.captcha-content button {
    padding: 10px 20px;
    background: #ebb000;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.captcha-content button:hover {
    background: #FFD700;
}

.captcha-content input:focus {
    border: 2px solid #ebb000;
    outline: none;
}

.captcha-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ebb000;
    font-size: 18px; /* Kleiner für dezenteren Look */
    cursor: pointer;
    padding: 4px; /* Minimales Padding für bessere Klickfläche */
    line-height: 1;
    width: 24px; /* Feste Größe für Konsistenz */
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s, background 0.3s;
}

.captcha-close:hover {
    color: #000;
    background: rgba(235, 176, 0, 0.3);
    border-radius: 30%; /* Rund für einen modernen Look */
}

/* Responsive Anpassung */
@media (max-width: 600px) {
    #contact-form {
        width: 100%; /* Volle Breite auf Mobilgeräten */
    }
    .form-row {
        flex-direction: column; /* Felder untereinander auf kleinen Bildschirmen */
    }
    .form-col, .form-col-small, .form-col-medium {
        flex: 1;
        max-width: none; /* Entfernt Breitenbeschränkungen */
    }
    .captcha-content {
        width: 95%;
        padding: 15px;
    }
}

/* Date-Picker-Styling */
.ui-datepickebb000 {
    background-color: #333;
    color: whitesmoke;
    border: 1px solid #555;
    border-radius: 5px;
}

.ui-datepicker a {
    color: #ebb000;
}

.ui-datepicker .ui-state-active {
    background-color: #b5984f;
    color: #000;
}

/* HTML5 Date-Picker */
input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: whitesmoke;
}

/* Für bessere Browser-Kompatibilität */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Weiße Kalender-Ikone für dunklen Hintergrund */
}
