/* Kontaktformular – eigenständiges Styling, passend zum Seitendesign */

.ih-form {
    margin: 0;
    color: #3d434a;
    font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.ih-form-wrap h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
}

.ih-form__hint {
    margin: 0 0 1.25rem;
    color: #676d75;
    font-size: 0.9rem;
}

.ih-form__field {
    margin: 0 0 1rem;
}

.ih-form__field label,
.ih-form__legend {
    display: block;
    margin-bottom: 0.35rem;
    color: #1f2328;
    font-weight: 600;
    font-size: 0.95rem;
}

.ih-form .ih-form__field input[type="text"],
.ih-form .ih-form__field input[type="email"],
.ih-form .ih-form__field input[type="tel"],
.ih-form .ih-form__field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #c9c4c0;
    border-radius: 6px;
    background: #fff;
    color: #1f2328;
    font: inherit;
    transition: border-color 140ms ease-out;
}

.ih-form .ih-form__field input:hover,
.ih-form .ih-form__field textarea:hover {
    border-color: #a9a29d;
}

.ih-form .ih-form__field textarea {
    min-height: 10rem;
    resize: vertical;
}

.ih-form .ih-form__field input:focus,
.ih-form .ih-form__field textarea:focus,
.ih-form__check input:focus,
.ih-form button:focus {
    outline: 3px solid #c400c4;
    outline-offset: 2px;
    border-color: #c400c4;
}

.ih-form .ih-form__field input[aria-invalid="true"],
.ih-form .ih-form__field textarea[aria-invalid="true"] {
    border-color: #b42318;
    background: #fff7f6;
}

.ih-form__check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
}

.ih-form__check input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    flex: 0 0 auto;
    accent-color: #c400c4;
}

.ih-form__check label {
    color: #3d434a;
    font-weight: 400;
    font-size: 0.95rem;
}

.ih-form a {
    color: #c400c4;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.ih-form a:hover {
    color: #9c009c;
}

.ih-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #c400c4;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 140ms ease-out;
}

.ih-form button[type="submit"]:hover {
    background: #9c009c;
}

.ih-form button[type="submit"][disabled] {
    background: #d9a3d9;
    cursor: progress;
}

.ih-form__status {
    margin: 1rem 0 0;
    min-height: 1.5em;
    font-weight: 600;
}

.ih-form__status.is-success {
    color: #1a7f37;
}

.ih-form__status.is-error {
    color: #b42318;
    font-weight: 400;
}

.ih-form__status ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
    font-weight: 400;
    list-style: disc;
}

/* Honeypot: für Menschen unsichtbar, für einfache Bots vorhanden */
.ih-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .ih-form button[type="submit"] {
        width: 100%;
    }
}
