/* cf7-wohngebaeude: Eigenständiges Styling, analog zu cf7-hauptseite-kontakt.
   Markenfarbe ist hier zunächst neutral gehalten (anpassbar je Installation,
   z.B. andere Akzentfarbe für ImmoAssec vs. kopf-versicherungen.de). */

.cf7wg-wrapper {
    max-width: 100%;
}

.cf7wg-form {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c2c2c;
}

.cf7wg-h1 {
    font-size: 1.3rem;
    color: #891514;
    font-weight: 300;
    margin-bottom: 15px;
    border-left: 4px solid #aa1917;
    padding-left: 10px;
}

.cf7wg-intro {
    margin-bottom: 1.5em;
    padding-left: 1.2em;
}

.cf7wg-intro li {
    margin-bottom: 0.3em;
}

.cf7wg-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c2c2c;
}

.cf7wg-select,
.cf7wg-text,
.cf7wg-textarea {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7f7f7;
    transition: border 0.3s, box-shadow 0.3s;
}

.cf7wg-text-klein {
    max-width: 160px;
}

.cf7wg-select:focus,
.cf7wg-text:focus,
.cf7wg-textarea:focus {
    border-color: #aa1917;
    box-shadow: 0 0 0 2px rgba(170, 25, 23, 0.2);
    outline: none;
}

.cf7wg-textarea {
    min-height: 100px;
}

.cf7wg-bedingt {
    margin-left: 1em;
    padding-left: 1em;
    border-left: 3px solid #eee;
}

.cf7wg-datenschutz {
    font-size: 0.9em;
    font-weight: 400;
}

.cf7wg-datenschutz label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    font-weight: 400;
}

.cf7wg-submit {
    background-color: #aa1917;
    color: #fff;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.cf7wg-submit:hover {
    background-color: #891514;
}

.cf7wg-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Honeypot: für Menschen unsichtbar, aber im DOM vorhanden */
.cf7wg-honeypot-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf7wg-meldung {
    padding: 0.8em 1em;
    margin-bottom: 1em;
    border-radius: 6px;
    font-weight: 600;
}

.cf7wg-meldung-erfolg {
    background: #e6f4ea;
    color: #1e4620;
    border: 1px solid #b6dfc0;
}

.cf7wg-meldung-fehler {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c2c0;
}

.cf7wg-spinner {
    margin-left: 0.5em;
    font-style: italic;
    color: #555;
}

/* Hartes KO: ersetzt das Formular komplett durch einen klaren Stopp-Hinweis
   (Fallback, falls die finale serverseitige Pruefung beim Absenden trotzdem
   noch ein KO findet, das der Live-Check vorher nicht erfasst hatte) */
.cf7wg-ko-stop {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 12px;
    padding: 24px;
    color: #611a15;
    line-height: 1.6;
}

/* Live-KO-Hinweise direkt unter dem jeweiligen Feld */
.cf7wg-ko-hinweis {
    margin: -0.5em 0 1em 0;
    padding: 0.6em 0.9em;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 420px;
}

.cf7wg-ko-hinweis.cf7wg-ko-hart {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c2c0;
}

.cf7wg-ko-hinweis.cf7wg-ko-weich {
    background: #fff8e1;
    color: #6b5400;
    border: 1px solid #ffe39a;
}

@media (max-width: 480px) {
    .cf7wg-form {
        padding: 20px;
    }
}
