/* =========================================================
   PROducts for Engineers
   Downloadseite für das Allplan Plugin
========================================================= */

.products-engineers-page {
    height: 100vh;
    margin-bottom: 0;
}


/* =========================
   HAUPTLAYOUT
========================= */

.products-engineers-hero {
    height: 100%;
    padding: 125px 4% 38px;

    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    grid-template-rows: auto 1fr;
    column-gap: 34px;
    row-gap: 24px;

    align-content: center;
}


/* =========================
   OBEN LINKS
========================= */

.products-engineers-copy {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-engineers-label {
    display: block;
    margin-bottom: 14px;

    color: #4b91ff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.products-engineers-copy h1 {
    margin: 0 0 28px;

    max-width: 720px;

    font-size: 58px;
    line-height: 1.02;
}

.products-engineers-intro {
    max-width: 800px;
    padding: 22px 24px;

    background: linear-gradient(
        135deg,
        rgba(18, 34, 54, 0.94),
        rgba(7, 17, 31, 0.88)
    );

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;

    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.products-engineers-intro p {
    margin: 0;

    color: #f4f7fb;

    font-size: 18px;
    line-height: 1.55;
}

.products-engineers-flow {
    margin-top: 12px !important;

    font-size: 17px !important;
    font-weight: 700;
}


/* =========================
   OBEN RECHTS – DOWNLOAD
========================= */

.products-engineers-download {
    min-height: 100%;
    padding: 30px 34px;

    display: flex;
    flex-direction: column;

    background: linear-gradient(
        180deg,
        rgba(7, 17, 31, 0.97),
        rgba(10, 24, 42, 0.94)
    );

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;

    backdrop-filter: blur(14px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.download-label {
    display: block;
    margin-bottom: 10px;

    color: #4b91ff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.products-engineers-download h2 {
    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.1;
}

.download-text {
    margin: 0;

    max-width: 420px;

    color: #d6dfeb;

    font-size: 15px;
    line-height: 1.55;
}

.download-options {
    margin-top: auto;
    padding-top: 26px;
}

.download-option {
    min-height: 92px;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    color: #fff;
    text-decoration: none;

    transition: 0.2s;
}

.download-option:hover {
    transform: translateY(-2px);

    background: rgba(15, 111, 255, 0.16);
    border-color: rgba(75, 145, 255, 0.72);
}

.download-version {
    display: block;
    margin-bottom: 6px;

    color: #9aabc0;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.download-option strong {
    font-size: 17px;
    font-weight: 700;
}

.download-arrow {
    flex-shrink: 0;

    color: #4b91ff;

    font-size: 26px;
    line-height: 1;
}


/* =========================
   UNTEN – INGENIEURE / HERSTELLER
========================= */

.products-engineers-info {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.products-engineers-info-item {
    min-height: 220px;
    padding: 26px 30px;

    background: linear-gradient(
        135deg,
        rgba(7, 17, 31, 0.94),
        rgba(10, 24, 42, 0.90)
    );

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;

    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
}

.info-topline {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}

.info-topline > span:last-child {
    color: #a5b3c5;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.info-index {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(15, 111, 255, 0.14);
    color: #4b91ff;

    font-size: 11px;
    font-weight: 700;
}

.products-engineers-info-item h3 {
    margin: 0 0 12px;

    font-size: 22px;
    line-height: 1.25;
}

.products-engineers-info-item p {
    margin: 0;

    max-width: 680px;

    color: #d6dfeb;

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


.engineer-download {
    width: 100%;
}

.engineer-download .download-arrow {
    margin-left: auto;
    color: #ff6268;
}

/* Hersteller-Hinweis: 500 Produkte gratis */

.manufacturer-free-note {
    position: relative;
    overflow: hidden;

    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: 0.2s;

    margin: 2px 0 20px;
    padding: 16px 18px;

    display: flex;
    align-items: center;
    gap: 18px;

    background:
        linear-gradient(
            115deg,
            rgba(176, 30, 38, 0.28) 0%,
            rgba(15, 111, 255, 0.16) 58%,
            rgba(7, 17, 31, 0.22) 100%
        );

    border: 1px solid rgba(226, 70, 76, 0.72);
    border-left: 4px solid #e2464c;
    border-radius: 12px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 10px 28px rgba(0, 0, 0, 0.16);
}

.manufacturer-free-note:hover {
    transform: translateY(-2px);
    border-color: #ff6268;
    box-shadow: 0 12px 32px rgba(226, 70, 76, 0.28);
}

.free-badge {
    flex-shrink: 0;

    padding-right: 18px;

    border-right: 1px solid rgba(255, 255, 255, 0.16);

    color: #fff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.free-badge strong {
    display: block;

    margin-top: 2px;

    color: #ff6268;

    font-size: 20px;
    line-height: 1.05;
    letter-spacing: 1.4px;
}

.free-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.free-copy span {
    color: #e4eaf2;

    font-size: 14px;
    line-height: 1.4;
}

.free-cta {
    color: #fff;

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



/* Klare CTA-Zustaende fuer Ingenieure und Hersteller */
.manufacturer-free-note {
    min-height: 88px;
    border-width: 2px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 12px 30px rgba(0, 0, 0, 0.24);
}

.manufacturer-free-note .free-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.manufacturer-free-note .free-cta::after {
    content: "→";
    font-size: 19px;
    line-height: 1;
    transition: transform 180ms ease;
}

.manufacturer-free-note:hover .free-cta::after {
    transform: translateX(4px);
}

.manufacturer-free-note.engineer-download {
    background:
        linear-gradient(
            115deg,
            rgba(24, 166, 86, 0.38) 0%,
            rgba(22, 122, 76, 0.24) 58%,
            rgba(7, 31, 23, 0.34) 100%
        );
    border-color: rgba(60, 214, 126, 0.82);
    border-left: 5px solid #35d47d;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 12px 30px rgba(20, 145, 76, 0.2);
}

.manufacturer-free-note.engineer-download:hover {
    border-color: #65eda0;
    background:
        linear-gradient(
            115deg,
            rgba(31, 190, 99, 0.48) 0%,
            rgba(23, 139, 83, 0.3) 58%,
            rgba(7, 31, 23, 0.38) 100%
        );
    box-shadow: 0 14px 36px rgba(27, 180, 92, 0.3);
}

.manufacturer-free-note.engineer-download .free-badge strong,
.manufacturer-free-note.engineer-download .download-arrow {
    color: #65eda0;
}

.manufacturer-free-note.engineer-download .download-arrow {
    font-size: 30px;
}

/* =========================
   UPLOAD POPUP
========================= */

.upload-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
}

.upload-popup.active {
    display: flex;
}

.upload-popup-box {
    position: relative;
    width: min(760px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 34px;
    background: rgba(7, 17, 31, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.upload-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.upload-popup-label {
    display: block;
    margin-bottom: 8px;
    color: #4b91ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.upload-popup-box h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.upload-popup-intro {
    margin: 0 0 24px;
    color: #d6dfeb;
    font-size: 15px;
    line-height: 1.55;
}

.manufacturer-upload-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-required-note {
    margin: -4px 0 0;
    color: #aeb8c5;
    font-size: 12px;
    line-height: 1.45;
}

.form-required-note > span,
.required-marker {
    color: #ff6268;
    font-weight: 800;
}

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

.address-row {
    grid-template-columns: minmax(0, 3fr) minmax(110px, 1fr);
}

.form-field select {
    appearance: auto;
    cursor: pointer;
}

.form-field select:invalid {
    color: #8ea0b5;
}

.form-field select option {
    color: #111827;
    background: #fff;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field > span {
    color: #dbe3ed;
    font-size: 13px;
    font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field input[type="file"] {
    width: 100%;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    font: inherit;
}

.email-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.verify-button,
.upload-submit {
    border: 1px solid rgba(75, 145, 255, 0.62);
    border-radius: 10px;
    background: rgba(15, 111, 255, 0.18);
    color: #fff;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.verification-area {
    display: none;
    padding: 16px;
    background: rgba(15, 111, 255, 0.08);
    border: 1px solid rgba(75, 145, 255, 0.22);
    border-radius: 12px;
}

.verification-area.active {
    display: block;
}

.verification-status,
.upload-form-status {
    margin: 8px 0 0;
    color: #aeb8c5;
    font-size: 13px;
}

.detected-code-prompt {
    margin-top: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #dff9e9;
    background: rgba(32, 168, 91, 0.13);
    border: 1px solid rgba(89, 227, 151, 0.42);
    border-radius: 10px;
    font-size: 13px;
}

.detected-code-prompt[hidden] {
    display: none;
}

.detected-code-prompt button {
    min-height: 36px;
    padding: 0 14px;
    color: #fff;
    background: #20a85b;
    border: 1px solid #59e397;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.verification-status.success {
    color: #79d99a;
}

.verification-status.error,
.upload-form-status.error {
    color: #ff7b81;
}

.upload-field {
    padding: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 12px;
}

.upload-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-tooltip {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    color: #fff;
    background: #176ed6;
    border: 1px solid #75aeff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    cursor: help;
}

.upload-tooltip-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 20;
    width: min(390px, 78vw);
    padding: 15px 17px;
    display: none;
    flex-direction: column;
    gap: 7px;
    color: #eaf1fa;
    background: #101d2d;
    border: 1px solid rgba(117, 174, 255, 0.58);
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    transform: translateX(-50%);
}

.upload-tooltip-content strong {
    color: #fff;
    font-size: 14px;
}

.upload-tooltip:hover .upload-tooltip-content,
.upload-tooltip:focus .upload-tooltip-content,
.upload-tooltip:focus-within .upload-tooltip-content {
    display: flex;
}

.upload-field.has-file + .upload-form-actions .upload-submit.zip-valid {
    color: #18210a;
    background: #e4b526;
    border-color: #ffd75c;
    box-shadow: 0 8px 24px rgba(228, 181, 38, 0.28);
}

.upload-field.has-file + .upload-form-actions .upload-submit.zip-structured {
    color: #fff;
    background: #20a85b;
    border-color: #59e397;
    box-shadow: 0 8px 24px rgba(32, 168, 91, 0.28);
}

.upload-field small {
    color: #8ea0b5;
}

.upload-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.upload-submit {
    min-height: 46px;
    padding: 0 20px;
    background: #0f6fff;
    border-color: #0f6fff;
}

.upload-submit:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}


/* Verifizierungsablauf */
.email-verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 10px;
    align-items: stretch;
}

.email-verification-row input {
    min-width: 0;
}

.verify-button {
    min-height: 48px;
    min-width: 190px;
    padding: 0 18px;
    background: linear-gradient(135deg, #1478ff, #0759d8);
    border: 1px solid rgba(117, 174, 255, 0.9);
    box-shadow: 0 7px 20px rgba(15, 111, 255, 0.24);
    letter-spacing: 0.01em;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.verify-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2b88ff, #0865ed);
    box-shadow: 0 10px 26px rgba(15, 111, 255, 0.34);
}

.verify-button:focus-visible {
    outline: 3px solid rgba(112, 173, 255, 0.42);
    outline-offset: 2px;
}

.verify-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.upload-popup-box {
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.upload-popup-box.is-verified {
    border-color: rgba(55, 211, 125, 0.72);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(55, 211, 125, 0.16);
}

.upload-popup-box.is-verified .upload-popup-label,
.upload-popup-box.is-verified .form-field > span {
    color: #83e6aa;
}

.upload-popup-box.is-verified .verification-area {
    background: rgba(36, 177, 99, 0.1);
    border-color: rgba(55, 211, 125, 0.38);
}

.upload-popup-box.is-verified .upload-field {
    background: rgba(36, 177, 99, 0.055);
    border-color: rgba(55, 211, 125, 0.46);
}

.upload-popup-box.is-verified .verify-button {
    background: linear-gradient(135deg, #2acb70, #168e4a);
    border-color: #59e397;
    box-shadow: 0 8px 24px rgba(32, 168, 91, 0.28);
}

.upload-popup-box.is-verified .verify-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #37da7d, #1aa356);
    box-shadow: 0 10px 28px rgba(32, 168, 91, 0.38);
}

.upload-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;
    color: #fff;
    background: #176ed6;
    border: 1px solid #5a9df0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.upload-field input[type="file"]:disabled::file-selector-button {
    opacity: 0.46;
    cursor: not-allowed;
}

.upload-popup-box.is-verified .upload-field input[type="file"]::file-selector-button {
    background: #20a85b;
    border-color: #59e397;
    box-shadow: 0 7px 20px rgba(32, 168, 91, 0.28);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {

    .products-engineers-hero {
        padding-left: 5%;
        padding-right: 5%;
        column-gap: 24px;
    }

    .products-engineers-copy h1 {
        font-size: 50px;
    }
}


@media (max-width: 900px) {

    .manufacturer-free-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .free-badge {
        width: 100%;
        padding-right: 0;
        padding-bottom: 10px;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .products-engineers-page {
        height: auto;
        min-height: 100vh;
    }

    .products-engineers-hero {
        height: auto;

        padding: 130px 8% 60px;

        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
    }

    .products-engineers-copy h1 {
        font-size: 42px;
    }

    .products-engineers-download {
        min-height: 0;
    }

    .products-engineers-info {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .products-engineers-info-item {
        min-height: 0;
    }
}


@media (max-width: 900px) {
    .upload-popup {
        padding: 14px;
    }

    .upload-popup-box {
        padding: 28px 20px;
    }

    .form-row-two,
    .email-row,
    .email-verification-row {
        grid-template-columns: 1fr;
    }

    .verify-button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }
}
