/* =====================================================
TOWNWORK UPLOAD CONTENT
Datei: upload-content.css
===================================================== */

:root {
    --tw-blue: #0d4f93;
    --tw-blue-dark: #061f5f;
    --tw-orange: #ff7417;
    --tw-orange-dark: #e65e08;
    --tw-text: #10244a;
    --tw-muted: #45556e;
    --tw-border: #dce5f1;
    --tw-white: #ffffff;
    --tw-shadow-soft: 0 18px 44px rgba(8, 38, 94, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--tw-text);
    background: #ffffff;
}

.upload-page {
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 10%, rgba(13, 79, 147, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #e8f2fd 58%, #ffffff 100%);
}

/* MAIN AREA */

.upload-area {
    position: relative;
    min-height: 690px;
    padding: 34px 0 30px;
    display: grid;
    justify-items: center;
    align-content: start;
    border-top: 3px solid var(--tw-orange);
}

.upload-skyline {
    position: absolute;
    bottom: 96px;
    width: 46%;
    height: 560px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.92;
    filter: brightness(0.78) contrast(1.12) saturate(1.2);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.upload-skyline-left {
    left: 0;
    background-image: url('/img/upload_img_hero_left.png');
    background-position: bottom left;
}

.upload-skyline-right {
    right: 0;
    background-image: url('/img/upload_img_hero_right.png');
    background-position: bottom right;
}

.upload-head,
.upload-layout,
.upload-trustbar-inner {
    position: relative;
    z-index: 2;
}

.upload-head {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto 24px;
    text-align: center;
}

.upload-head h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--tw-blue-dark);
}

.upload-head p {
    margin: 0 auto;
    max-width: 860px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.45;
    font-weight: 600;
    color: #25365a;
}

.upload-layout {
    width: min(1230px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 760px) 275px;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.upload-card {
    min-height: 520px;
    padding: 30px 82px 26px;
    text-align: left;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(221, 230, 243, 0.95);
    border-radius: 14px;
    box-shadow: var(--tw-shadow-soft);
}

/* PROGRESS */

.upload-progress {
    width: min(480px, 100%);
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
}

.progress-item {
    position: relative;
    min-width: 150px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: #777f8d;
}

.progress-item span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d9dde4;
    color: #5e6572;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.progress-item strong {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    white-space: nowrap;
}

.progress-item.is-active span {
    color: #ffffff;
    background: linear-gradient(180deg, #ff8425 0%, var(--tw-orange-dark) 100%);
}

.progress-item.is-active strong {
    color: var(--tw-blue-dark);
}

.progress-line {
    height: 2px;
    margin-top: 19px;
    background: #c9ced8;
}

/* FORM */

.upload-form {
    display: grid;
    gap: 18px;
}

.upload-field {
    display: grid;
    gap: 8px;
}

.upload-field label,
.upload-code-label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.upload-field input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 2px solid #d1d7e1;
    border-radius: 8px;
    background: #ffffff;
    color: var(--tw-blue-dark);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.upload-field input::placeholder {
    color: #8a95a8;
}

.upload-field input:focus,
.upload-code-inputs input:focus {
    border-color: var(--tw-blue);
    box-shadow: 0 0 0 4px rgba(13, 79, 147, 0.12);
}

.upload-code-block {
    display: grid;
    gap: 12px;
}

.upload-code-inputs {
    display: grid;
    grid-template-columns: repeat(6, 62px);
    gap: 32px;
    justify-content: space-between;
}

.upload-code-inputs input {
    width: 62px;
    height: 62px;
    border: 2px solid #d1d7e1;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
    color: var(--tw-blue-dark);
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.upload-submit {
    width: min(470px, 100%);
    height: 56px;
    margin: 4px auto 0;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(180deg, #ff8425 0%, #fb5b00 100%);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 8px 18px rgba(230, 94, 8, .25);
}

.upload-submit span {
    font-size: 24px;
}

.upload-help-link {
    width: fit-content;
    margin: 0 auto;
    color: #005bdd;
    text-decoration: underline;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.upload-note {
    min-height: 78px;
    margin-top: 26px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    background: #eef7ff;
    border: 1px solid #c5dff7;
    border-radius: 10px;
}

.upload-note-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(180deg, #0d4f93 0%, #061f5f 100%);
    font-size: 25px;
    font-weight: 900;
}

.upload-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: #25365a;
}

/* SIDE */

.upload-side-card {
    min-height: 365px;
    padding: 28px 26px;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(221, 230, 243, 0.95);
    border-radius: 14px;
    box-shadow: var(--tw-shadow-soft);
}

.upload-side-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf3ff;
}

.upload-side-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.upload-side-card h2 {
    margin: 0 0 15px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.upload-side-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
    color: #34415d;
}

.upload-side-divider {
    width: 100%;
    height: 1px;
    margin: 26px 0 20px;
    background: #dce5f1;
}

.upload-support-row {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
}

.upload-support-icon {
    width: 38px;
    height: 38px;
}

.upload-support-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.upload-support-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.upload-support-row span {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    color: #34415d;
}

/* TRUST BAR */

.upload-trustbar {
    padding: 0 0 58px;
}

.upload-trustbar-inner {
    width: min(1230px, calc(100% - 64px));
    margin: 0 auto;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    background: #ffffff;
    border: 1px solid var(--tw-border);
    border-radius: 12px;
    box-shadow: var(--tw-shadow-soft);
}

.upload-trust-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
}

.upload-trust-item:not(:last-child) {
    border-right: 1px solid var(--tw-border);
    padding-right: 18px;
}

.upload-trust-icon {
    width: 58px;
    height: 58px;
}

.upload-trust-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.upload-trust-item h2 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--tw-blue-dark);
}

.upload-trust-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    color: #2d3c4b;
}

/* RESPONSIVE */

@media (max-width: 1040px) {
    .upload-layout {
        grid-template-columns: 1fr;
        width: min(820px, calc(100% - 64px));
    }

    .upload-side-card {
        min-height: auto;
    }

    .upload-trustbar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .upload-trust-item:not(:last-child) {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 700px) {
    .upload-head,
    .upload-layout,
    .upload-trustbar-inner {
        width: min(100% - 28px, 520px);
    }

    .upload-area {
        padding: 28px 0 30px;
    }

    .upload-card {
        padding: 24px 18px 28px;
    }

    .upload-progress {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .progress-line {
        display: none;
    }

    .progress-item {
        min-width: 0;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .progress-item span {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .progress-item strong {
        white-space: normal;
        font-size: 12px;
    }

    .upload-code-inputs {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }

    .upload-code-inputs input {
        width: 100%;
        height: 54px;
        font-size: 24px;
    }

    .upload-note {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .upload-trustbar-inner {
        grid-template-columns: 1fr;
    }
}

/* FORMULARMELDUNGEN */
.upload-message {
    margin: 0 0 18px;
    padding: 14px 18px;
    text-align: left;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.upload-message p {
    margin: 0 0 6px;
}

.upload-message p:last-child {
    margin-bottom: 0;
}

.upload-message-error {
    background: #fff1f1;
    border: 1px solid #ffc3c3;
    color: #8a1f1f;
    box-shadow: 0 8px 20px rgba(138, 31, 31, 0.08);
}

.upload-message-success {
    background: #eefaf1;
    border: 1px solid #bfe9c8;
    color: #146b27;
    box-shadow: 0 8px 20px rgba(20, 107, 39, 0.08);
}
