/* ================= HERO ================= */

.anfrage-hero {
    padding: 0px 60px 30px 60px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.55), transparent 35%), 
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.45), transparent 30%), 
        linear-gradient(135deg, #d7e4fb 0%, #e6efff 45%, #eef4ff 100%);
    box-shadow: var(--shadow-soft);
    margin: 0 20px;
}

.anfrage-hero .container {
    max-width: 1645px;
}

.anfrage-hero .row {
    min-height: 420px;
}

.anfrage-hero .left-side {
    padding-top: 120px;
}

.anfrage-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 99, 216, 0.1);
    color: #2f63d8;
    font-size: 0.85rem;
    font-weight: 600;
}

.anfrage-hero h1 {
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.anfrage-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5f6f89;
    margin-bottom: 30px;
}

.anfrage-hero-image {
    display: block;
    object-fit: contain;
    margin-left: auto;
    max-width: 750px;
    width: 100%;
    margin-top: 60px;
}

/* ================= FORM ================= */

.anfrage-form-section {
    padding: 70px 0 110px;
}

.anfrage-form-head h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-main-text, #123f82);
    margin-bottom: 14px;
}

.anfrage-form-head p {
    color: var(--color-text-soft, #5f6f89);
    line-height: 1.7;
    margin: 0;
}

.anfrage-form-card {
    padding: 46px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: var(--shadow-soft);
}

.anfrage-form {
    width: 100%;
}

/* ================= FORM BLOCKS ================= */

.form-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-block-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.form-block-head span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(47, 99, 216, 0.1);
    color: var(--brand, #2f63d8);
    font-weight: 700;
    font-size: 0.9rem;
}

.form-block-head h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-main-text, #123f82);
}

/* ================= INPUTS ================= */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--color-sub-text);
}

.anfrage-form input:not([type="checkbox"]),
.anfrage-form textarea,
.anfrage-form select {
    width: 100%;
    padding: 14px 15px;
    border-radius: 10px;
    border: 1px solid var(--color-border-line);
    background: rgba(255,255,255,0.04);
    color: var(--color-sub-text);
    transition: 0.2s ease;
}

.anfrage-form input:not([type="checkbox"]):focus,
.anfrage-form textarea:focus,
.anfrage-form select:focus {
    outline: none;
    border-color: var(--color-sub-text);
    background: rgba(255,255,255,0.08);
}

/* ================= CHECKBOX (FINAL CLEAN VERSION) ================= */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--color-border-line);
    background: rgba(255, 255, 255, 0.55);
    position: relative;
    cursor: pointer;
}

.checkbox-box::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.checkbox-group input:checked + .checkbox-box {
    background: linear-gradient(135deg, #2f63d8, #6ea8ff);
    border-color: #2f63d8;
}

.checkbox-group input:checked + .checkbox-box::after {
    opacity: 1;
}

.checkbox-text {
    font-size: 14px;
    line-height: 22px; /* 🔥 exakt mittig zur Checkbox */
    color: var(--color-sub-text);
}

.privacy-link {
    color: var(--brand, #2f63d8);
    text-decoration: none;
    font-weight: 600;
}

.privacy-link:hover {
    text-decoration: underline !important;
}

/* ================= BUTTON ================= */

.anfrage-form button {
    margin-top: 10px;
}

.form-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}

/* ================= Honeypot ================= */

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ================= TURNSTILE ================= */

.turnstile-box {
    margin: 18px 0 10px;
}

/* ================= Messages ================= */

.anfrage-messages {
    margin-bottom: 22px;
}

.anfrage-message {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.anfrage-message.success {
    background: rgba(46, 204, 113, 0.12);
    color: #168a45;
    border: 1px solid rgba(46, 204, 113, 0.22);
}

.anfrage-message.error {
    background: rgba(231, 76, 60, 0.12);
    color: #b83227;
    border: 1px solid rgba(231, 76, 60, 0.22);
}

/* ================= POP-UP ================= */

.success-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 63, 122, 0.35);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    width: min(460px, 100%);
    padding: 38px 34px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 30px 80px rgba(18, 63, 122, 0.22);
    text-align: center;
}

.success-modal-content h3 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-main-text, #123f82);
    margin-bottom: 10px;
}

.success-modal-content p {
    color: var(--color-sub-text);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ================= MOBILE ================= */

@media (max-width: 992px) {
    .anfrage-hero {
        padding: 60px 20px;
    }

    .anfrage-hero h1 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .main {
        padding: 20px 0 30px;
    }

    .anfrage-hero {
        margin: 0 10px;
        padding: 22px 18px 34px;
        border-radius: 24px;
    }

    .anfrage-hero .container {
        width: 100%;
        padding: 0;
    }

    .anfrage-hero .row {
        min-height: auto;
        flex-direction: column-reverse;
    }

    .anfrage-hero .left-side {
        padding-top: 18px;
        text-align: left;
    }

    .anfrage-eyebrow {
        font-size: 0.78rem;
        padding: 7px 12px;
        margin-bottom: 14px;
    }

    .anfrage-hero h1 {
        font-size: 2rem;
        line-height: 1.12;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .anfrage-hero h1 br {
        display: none;
    }

    .anfrage-hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 0;
        max-width: 100%;
    }

    .anfrage-hero-image {
        max-width: 82%;
        margin: 8px auto 14px;
        display: block;
    }

    .anfrage-form-section {
        padding: 30px 0 5px;
    }

    .anfrage-form-card {
        margin-top: 20px;
    }
}