/* =========================================================
   KONTAKTFORMULAR – ERFOLGSMELDUNG
========================================================= */

/* Nach dem Senden: Felder ausblenden, nur die Meldung zeigen */
.contact-form.is-sent > *:not(.form-success) {
    display: none !important;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 380px;
    padding: 40px 24px;

    text-align: center;

    animation: formSuccessIn .5s cubic-bezier(.22, 1, .36, 1) both;
}

.form-success:focus {
    outline: none;
}

.form-success-icon {
    display: block;

    width: 96px;
    height: 96px;

    margin-bottom: 26px;
}

.form-success-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.form-success-icon circle {
    fill: #22c55e;
    transform-origin: center;
    animation: formSuccessPop .55s cubic-bezier(.34, 1.56, .64, 1) both;
}

.form-success-icon path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 40;
    stroke-dashoffset: 40;

    animation: formSuccessCheck .45s .35s ease-out forwards;
}

.form-success-title {
    display: block;

    margin-bottom: 12px;

    color: #16a34a;

    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.form-success-text {
    max-width: 380px;

    margin: 0 0 28px;

    color: #526581;

    font-size: 17px;
    line-height: 1.6;
}

.form-success-again {
    padding: 0 0 4px;

    border: 0;
    border-bottom: 1px solid #111827;
    border-radius: 0;

    background: transparent;
    color: #c4cad5;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: opacity .2s ease;
}

.form-success-again:hover {
    opacity: .6;
}

@keyframes formSuccessIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes formSuccessPop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}

@keyframes formSuccessCheck {
    to { stroke-dashoffset: 0; }
}

@media (max-width: 600px) {
    .form-success { min-height: 320px; padding: 30px 12px; }
    .form-success-icon { width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .form-success,
    .form-success-icon circle,
    .form-success-icon path { animation: none; }
    .form-success-icon path { stroke-dashoffset: 0; }
}
