
/*
=========================================
ZSH Kontakt
Version 1.1
=========================================
*/

.zsh-kontakt-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    color: #111111;
    font-family: inherit;
}

/*
=========================================
Formular
=========================================
*/

.zsh-kontakt-form {
    position: relative;
    width: 100%;
}

.zsh-kontakt-heading {
    margin-bottom: 35px;
}

.zsh-kontakt-heading h2 {
    margin: 0 0 12px;
    color: #312783;
    font-size: 30px;
    font-weight: 600;
}

.zsh-kontakt-heading p {
    margin: 0;
    color: #444444;
    font-size: 16px;
    line-height: 1.6;
}

.zsh-kontakt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.zsh-kontakt-field {
    margin-bottom: 25px;
}

.zsh-kontakt-field label {
    display: block;
    margin-bottom: 9px;
    color: #111111;
    font-size: 15px;
    font-weight: 600;
}

.zsh-kontakt-field input,
.zsh-kontakt-field textarea {
    display: block;
    box-sizing: border-box;

    width: 100%;
    padding: 14px 16px;

    border: 1px solid #d1cfcf;
    border-radius: 0;

    background: #ffffff;
    color: #111111;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.zsh-kontakt-field input:hover,
.zsh-kontakt-field textarea:hover {
    border-color: #312783;
}

.zsh-kontakt-field input:focus,
.zsh-kontakt-field textarea:focus {
    border-color: #312783;
    box-shadow: 0 0 0 2px rgba(49, 39, 131, 0.10);
}

.zsh-kontakt-field textarea {
    min-height: 180px;
    resize: vertical;
}

/*
=========================================
Sicherheitsabfrage
=========================================
*/

.zsh-kontakt-captcha {
    margin: 10px 0 30px;
    padding: 25px;

    border: 1px solid #d1cfcf;
    border-left: 7px solid #312783;

    background: #f8f8fb;
}

.zsh-kontakt-captcha-title {
    margin-bottom: 10px;
    color: #312783;
    font-size: 17px;
    font-weight: 600;
}

.zsh-kontakt-captcha p {
    margin: 0 0 18px;
    color: #444444;
    font-size: 14px;
}

.zsh-kontakt-captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.zsh-kontakt-question {
    color: #111111;
    font-size: 22px;
    font-weight: 600;
}

.zsh-kontakt-captcha-row > span:nth-child(2) {
    font-size: 22px;
    font-weight: 600;
}

.zsh-kontakt-captcha-row input {
    box-sizing: border-box;

    width: 90px;
    height: 48px;
    padding: 8px;

    border: 1px solid #d1cfcf;
    border-radius: 0;

    background: #ffffff;
    color: #111111;

    font-family: inherit;
    font-size: 20px;
    text-align: center;
}

.zsh-kontakt-captcha-row input:focus {
    outline: 2px solid #312783;
    outline-offset: 1px;
}

.zsh-kontakt-refresh {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    padding: 0;

    border: 1px solid #312783;
    border-radius: 0;

    background: #ffffff;
    color: #312783;

    font-size: 26px;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.zsh-kontakt-refresh:hover {
    background: #312783;
    color: #ffffff;
}

/*
=========================================
Datenschutz
=========================================
*/

.zsh-kontakt-privacy {
    margin-bottom: 25px;
}

.zsh-kontakt-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.zsh-kontakt-privacy input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;

    accent-color: #312783;
    flex-shrink: 0;
}

.zsh-kontakt-privacy a {
    color: #312783;
    text-decoration: underline;
}

.zsh-kontakt-privacy a:hover {
    color: #111111;
}

/*
=========================================
Senden-Button
=========================================
*/

.zsh-kontakt-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    min-height: 52px;
    padding: 14px 28px;

    border: 2px solid #312783;
    border-radius: 0;

    background: #312783;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.zsh-kontakt-submit:hover {
    transform: translateY(-2px);

    background: #ffffff;
    color: #312783;

    box-shadow: 0 6px 18px rgba(49, 39, 131, 0.15);
}

.zsh-kontakt-submit:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.zsh-kontakt-required {
    margin-top: 15px;
    color: #777777;
    font-size: 13px;
}

/*
=========================================
Fehlermeldungen
=========================================
*/

.zsh-kontakt-feedback {
    display: none;
    margin-bottom: 20px;
    padding: 15px 20px;

    border-left: 5px solid #b42318;

    background: #fff2f0;
    color: #9b1c1c;

    font-size: 14px;
    line-height: 1.6;
}

.zsh-kontakt-feedback.is-visible {
    display: block;
}

/*
=========================================
Erfolgsmeldung
=========================================
*/

.zsh-kontakt-success {
    padding: 50px 30px;
    border: 1px solid #d1cfcf;
    border-left: 8px solid #312783;

    background: #ffffff;
    text-align: center;
}

.zsh-kontakt-success[hidden] {
    display: none;
}

.zsh-kontakt-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 75px;
    height: 75px;
    margin: 0 auto 25px;

    border-radius: 50%;

    /* ZSH-Violett statt Grün */
    background: #312783;
    color: #ffffff;

    font-size: 42px;
}

.zsh-kontakt-success h3 {
    margin: 0 0 15px;
    color: #312783;
    font-size: 28px;
}

.zsh-kontakt-success p {
    max-width: 500px;
    margin: 0 auto 30px;

    color: #444444;
    font-size: 16px;
    line-height: 1.7;
}

.zsh-kontakt-again {
    padding: 14px 25px;

    border: 2px solid #312783;
    border-radius: 0;

    background: #ffffff;
    color: #312783;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.zsh-kontakt-again:hover {
    background: #312783;
    color: #ffffff;
}

/*
=========================================
Honeypot
=========================================
*/

.zsh-kontakt-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/*
=========================================
Smartphone
=========================================
*/

@media (max-width: 650px) {

    .zsh-kontakt-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .zsh-kontakt-heading h2 {
        font-size: 26px;
    }

    .zsh-kontakt-captcha {
        padding: 20px;
    }

    .zsh-kontakt-submit {
        width: 100%;
    }

    .zsh-kontakt-success {
        padding: 35px 20px;
    }
}

/*
=========================================
Reduzierte Bewegung
=========================================
*/

@media (prefers-reduced-motion: reduce) {

    .zsh-kontakt-submit,
    .zsh-kontakt-refresh,
    .zsh-kontakt-field input,
    .zsh-kontakt-field textarea {
        transition: none;
    }

    .zsh-kontakt-submit:hover {
        transform: none;
    }
}
