/* ============================================================
   Kontaktformular (ra-hoeer.de)
   Layout angelehnt an die Vorlage: Labels über den Feldern,
   helle abgerundete Eingabefelder, grüner Senden-Button.
   ============================================================ */

#kontaktformular {
    max-width: 780px;
    margin: 0 0 10px;
}

#kontaktformular input,
#kontaktformular textarea,
#kontaktformular button {
    font-family: inherit;
}

/* --- Felder ------------------------------------------------- */
#kontaktformular .ra-field {
    margin: 0 0 22px;
}

#kontaktformular .ra-field > label {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #2c3b4e;
    letter-spacing: 0;
    text-transform: none;
}

#kontaktformular input[type="text"],
#kontaktformular input[type="email"],
#kontaktformular input[type="tel"],
#kontaktformular textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    margin: 0;
    padding: 14px 16px;
    background: #f8f8f6;
    border: 1px solid #dcdcd8;
    border-radius: 6px;
    box-shadow: none;
    font-size: 17px;
    line-height: 1.45;
    color: #3a3a3a;
    -webkit-appearance: none;
    appearance: none;
}

#kontaktformular input::placeholder,
#kontaktformular textarea::placeholder {
    color: #a9a9a4;
    opacity: 1;
}

#kontaktformular input[type="text"]:focus,
#kontaktformular input[type="email"]:focus,
#kontaktformular input[type="tel"]:focus,
#kontaktformular textarea:focus {
    background: #ffffff;
    border-color: #6b8b52;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(107, 139, 82, 0.16);
}

#kontaktformular textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.65;
}

/* --- Captcha ------------------------------------------------ */
#kontaktformular .ra-hint {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #8d8d88;
}

#kontaktformular .ra-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

#kontaktformular .ra-captcha-img {
    display: block;
    width: 180px;
    height: 60px;
    border: 1px solid #dcdcd8;
    border-radius: 6px;
    background: #f8f8f6;
}

#kontaktformular .ra-captcha-refresh {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: #6b8b52;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: underline;
    cursor: pointer;
}

#kontaktformular .ra-captcha-refresh:hover {
    color: #4f6b3b;
}

#kontaktformular .ra-captcha-question {
    font-size: 17px;
    color: #3a3a3a;
}

#kontaktformular .ra-captcha-row input {
    flex: 1 1 200px;
    min-width: 170px;
    max-width: 260px;
}

/* --- Button + Vertraulichkeitshinweis ----------------------- */
#kontaktformular .ra-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin: 30px 0 0;
}

#kontaktformular .ra-submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    min-width: 300px;
    padding: 16px 26px;
    background: #6b8b52;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#kontaktformular .ra-submit:hover,
#kontaktformular .ra-submit:focus {
    background: #5d7a46;
    color: #ffffff;
    outline: 0;
}

#kontaktformular .ra-submit:active {
    transform: translateY(1px);
}

#kontaktformular .ra-submit-icon {
    flex: 0 0 auto;
}

#kontaktformular .ra-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #8d8d88;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

#kontaktformular .ra-privacy svg {
    flex: 0 0 auto;
}

/* --- Spam-Falle (für Menschen unsichtbar) ------------------- */
#kontaktformular .ra-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Hinweisboxen (Erfolg / Fehler) ------------------------- */
.ra-notice {
    max-width: 780px;
    margin: 0 0 26px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.55;
}

.ra-notice-success {
    background: #f1f6ec;
    border: 1px solid #b9cda8;
    color: #3f5230;
}

.ra-notice-error {
    background: #fdf1f0;
    border: 1px solid #e2b6b1;
    color: #8c2f26;
}

/* --- Erfolgs-Overlay ---------------------------------------- */
.ra-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 40, 30, 0.55);
    animation: ra-overlay-fade 0.22s ease-out;
}

.ra-overlay-box {
    width: 100%;
    max-width: 460px;
    padding: 34px 30px 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: ra-overlay-pop 0.24s ease-out;
}

.ra-overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 0 16px;
    background: #eef4e8;
    border-radius: 50%;
    color: #6b8b52;
}

.ra-overlay-title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3b4e;
}

.ra-overlay-text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #55584f;
}

.ra-overlay-close {
    display: inline-block;
    padding: 12px 30px;
    background: #6b8b52;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ra-overlay-close:hover,
.ra-overlay-close:focus {
    background: #5d7a46;
    color: #ffffff;
    outline: 0;
}

@keyframes ra-overlay-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ra-overlay-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

/* --- Mobil -------------------------------------------------- */
@media (max-width: 767px) {
    .ra-overlay-box {
        padding: 26px 20px 22px;
    }

    #kontaktformular .ra-submit {
        width: 100%;
        min-width: 0;
    }

    #kontaktformular .ra-actions {
        gap: 16px;
    }

    #kontaktformular .ra-captcha-row input {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
