:root {
    --brand: #2f5faa;
    --brand-dark: #183f79;
    --brand-deep: #0d2b58;
    --brand-soft: #eaf1fb;
    --accent: #4a7bc3;
    --ink: #101828;
    --muted: #667085;
    --line: #d8e1ed;
    --panel: #ffffff;
    --page: #f3f6f9;
    --success: #16825d;
    --success-bg: #ecfdf3;
    --error: #b42318;
    --error-bg: #fff4f2;
    --shadow: 0 18px 50px rgba(16, 40, 75, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(215, 225, 238, 0.9);
    box-shadow: 0 8px 28px rgba(24, 63, 121, 0.05);
}

.header-inner {
    width: min(1380px, calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: min(360px, 44vw);
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.header-nav a {
    text-decoration: none;
    color: #31435d;
    font-size: 14px;
    font-weight: 750;
    transition: color 160ms ease;
}

.header-nav a:hover {
    color: var(--brand);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: var(--brand-soft);
    border: 1px solid #d3e1f4;
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.secure-dot,
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #24b47e;
    box-shadow: 0 0 0 5px rgba(36, 180, 126, 0.13);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    background:
        linear-gradient(112deg, rgba(10, 38, 79, 0.98), rgba(47, 95, 170, 0.95)),
        var(--brand);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to right, black, transparent 80%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    right: -250px;
    top: -330px;
    border: 80px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.hero-pattern {
    position: absolute;
    width: 370px;
    height: 370px;
    right: 13%;
    bottom: -265px;
    border: 44px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1380px, calc(100% - 48px));
    min-height: 390px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
    align-items: center;
    gap: 70px;
    padding: 62px 0 70px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #bdd3f4;
    font-size: 13px;
    letter-spacing: 0.22em;
    font-weight: 900;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 850;
}

.hero h1 span {
    color: #bcd3f6;
}

.hero-text {
    max-width: 700px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-visual {
    position: relative;
    min-height: 220px;
}

.visual-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.20);
}

.visual-card-main {
    right: 80px;
    top: 15px;
    width: 360px;
    padding: 26px;
    border-radius: 24px;
    transform: rotate(-2deg);
}

.visual-card-main img {
    width: 74px;
    height: 74px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
}

.visual-card strong,
.visual-card span {
    display: block;
}

.visual-card strong {
    font-size: 20px;
}

.visual-card span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.visual-card-small {
    right: 0;
    bottom: 2px;
    width: 280px;
    padding: 18px 20px;
    border-radius: 18px;
    transform: rotate(2deg);
}

.visual-card-small strong {
    font-size: 15px;
}

.visual-check {
    display: grid !important;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    margin: 0 !important;
    border-radius: 50%;
    background: #fff;
    color: var(--brand) !important;
    font-weight: 900;
    font-size: 20px !important;
}

.page-shell {
    width: min(1380px, calc(100% - 48px));
    margin: -38px auto 80px;
    position: relative;
    z-index: 5;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(16, 40, 75, 0.06);
}

.alert-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
}

.alert strong {
    display: block;
    margin: 2px 0 3px;
}

.alert p,
.alert ul {
    margin: 0;
    color: #475467;
    font-size: 14px;
}

.alert ul {
    padding-left: 19px;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid #abefc6;
}

.alert-success .alert-icon {
    background: var(--success);
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid #fecdca;
}

.alert-error .alert-icon {
    background: var(--error);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 24px;
    align-items: start;
}

.form-column {
    display: grid;
    gap: 24px;
}

.form-card,
.summary-card {
    background: var(--panel);
    border: 1px solid #e3eaf3;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card {
    padding: 34px;
    scroll-margin-top: 115px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

.section-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 9px 24px rgba(47, 95, 170, 0.28);
}

.section-heading h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.drop-zone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 275px;
    padding: 35px 24px;
    text-align: center;
    border: 2px dashed #b7c9e1;
    border-radius: 20px;
    background:
        radial-gradient(circle at center, rgba(47, 95, 170, 0.06), transparent 62%),
        #f9fbfe;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragover {
    border-color: var(--brand);
    background: #f2f7fd;
    transform: translateY(-1px);
}

.drop-zone.has-files {
    border-style: solid;
    border-color: #89a9d5;
    background: #f5f9fe;
}

.drop-zone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    border-radius: 21px;
    background: var(--brand);
    box-shadow: 0 16px 32px rgba(47, 95, 170, 0.24);
}

.drop-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #fff;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drop-zone h3 {
    margin: 0;
    font-size: 21px;
}

.drop-zone p {
    margin: 6px 0;
    color: var(--muted);
}

.drop-zone p span {
    color: var(--brand);
    font-weight: 850;
}

.drop-zone small {
    max-width: 650px;
    color: #7c8ba1;
    font-size: 12px;
    line-height: 1.7;
}

.file-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.file-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.file-type {
    display: grid;
    place-items: center;
    width: 48px;
    height: 40px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 900;
}

.file-meta {
    min-width: 0;
}

.file-meta strong,
.file-meta span {
    display: block;
}

.file-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.file-meta span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.file-remove {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f2f4f7;
    color: #667085;
    cursor: pointer;
    font-size: 18px;
    transition: background 160ms ease, color 160ms ease;
}

.file-remove:hover {
    background: #fee4e2;
    color: var(--error);
}

.file-error {
    border-color: #fda29b;
    background: #fff7f6;
}

.upload-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 13px;
    background: #f6f8fb;
}

.info-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.upload-info p {
    margin: 0;
    color: #5b6b80;
    font-size: 12px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

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

.field-wide {
    grid-column: 1 / -1;
}

.field > span,
.process-fieldset legend {
    color: #2e3b4e;
    font-size: 13px;
    font-weight: 800;
}

.field b,
.privacy-check b {
    color: var(--brand);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #cdd8e6;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.field input,
.field select {
    height: 48px;
    padding: 0 14px;
}

.field textarea {
    min-height: 124px;
    padding: 13px 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(47, 95, 170, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #98a2b3;
}

.process-fieldset {
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.process-fieldset legend {
    margin-bottom: 12px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.process-option {
    cursor: pointer;
}

.process-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.process-box {
    position: relative;
    min-height: 105px;
    padding: 17px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.process-box img {
    width: 31px;
    height: 31px;
}

.process-box strong {
    font-size: 13px;
}

.option-check {
    position: absolute;
    right: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef2f6;
    color: transparent;
    font-size: 12px;
    font-weight: 900;
}

.process-option:hover .process-box {
    border-color: #9eb8dc;
    transform: translateY(-1px);
}

.process-option input:checked + .process-box {
    border-color: var(--brand);
    background: #f3f7fd;
    box-shadow: 0 0 0 3px rgba(47, 95, 170, 0.08);
}

.process-option input:checked + .process-box .option-check {
    background: var(--brand);
    color: #fff;
}

.message-field {
    margin-top: 22px;
}

.summary-column {
    position: relative;
}

.summary-card {
    position: sticky;
    top: 116px;
    overflow: hidden;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 19px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 34%),
        linear-gradient(135deg, var(--brand-deep), var(--brand));
}

.summary-header img {
    width: 52px;
    height: 52px;
    padding: 10px;
    border-radius: 15px;
    background: #fff;
}

.summary-header span,
.summary-header h2 {
    display: block;
    margin: 0;
}

.summary-header span {
    color: #bad0ef;
    font-size: 10px;
    letter-spacing: 0.18em;
    font-weight: 900;
}

.summary-header h2 {
    margin-top: 2px;
    font-size: 21px;
}

.summary-status {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 20px 24px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f2f8f5;
    color: #237557;
    font-size: 12px;
    font-weight: 800;
}

.summary-list {
    margin: 20px 24px 0;
}

.summary-list > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}

.summary-list dt,
.summary-list dd {
    margin: 0;
    font-size: 13px;
}

.summary-list dt {
    color: var(--muted);
}

.summary-list dd {
    text-align: right;
    color: #243247;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.summary-note {
    margin: 19px 24px 0;
    padding: 16px;
    border-radius: 14px;
    background: var(--brand-soft);
    border-left: 4px solid var(--brand);
}

.summary-note strong {
    color: var(--brand-dark);
    font-size: 13px;
}

.summary-note p {
    margin: 5px 0 0;
    color: #526781;
    font-size: 12px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 19px 24px 0;
    cursor: pointer;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 18px;
    accent-color: var(--brand);
}

.privacy-check span {
    color: #5c6d82;
    font-size: 11px;
    line-height: 1.55;
}

.submit-button {
    width: calc(100% - 48px);
    min-height: 54px;
    margin: 20px 24px 0;
    padding: 0 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(47, 95, 170, 0.28);
    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: #285397;
    box-shadow: 0 18px 36px rgba(47, 95, 170, 0.34);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.submit-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.summary-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 14px 24px 22px;
    color: #7c8ba1;
    font-size: 10px;
}

.site-footer {
    min-height: 180px;
    padding: 38px max(24px, calc((100% - 1380px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--brand-deep);
    color: rgba(255, 255, 255, 0.68);
}

.site-footer img {
    width: 300px;
    max-width: 100%;
    height: auto;
    max-height: 72px;
    padding: 9px 14px;
    object-fit: contain;
    object-position: left;
    background: #ffffff;
    border-radius: 12px;
}

.site-footer p {
    margin: 8px 0 0;
    font-size: 13px;
}

.site-footer > span {
    font-size: 12px;
}

@media (max-width: 1120px) {
    .header-nav {
        display: none;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .hero-content {
        grid-template-columns: 1fr 390px;
        gap: 25px;
    }

    .visual-card-main {
        right: 25px;
        width: 330px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        width: min(100% - 32px, 1380px);
        min-height: 78px;
    }

    .brand img {
        height: 54px;
    }

    .secure-badge {
        margin-left: auto;
    }

    .hero-content {
        width: min(100% - 32px, 1380px);
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 56px 0 62px;
    }

    .hero-visual {
        display: none;
    }

    .page-shell {
        width: min(100% - 32px, 1380px);
        margin-top: -28px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .summary-column {
        order: -1;
    }

    .summary-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
    }

    .summary-list > div {
        grid-template-columns: 1fr;
    }

    .summary-list dd {
        text-align: left;
        margin-top: 3px;
    }
}

@media (max-width: 660px) {
    .header-inner {
        min-height: 70px;
        width: calc(100% - 24px);
    }

    .brand img {
        width: 240px;
        height: 48px;
    }

    .secure-badge {
        display: none;
    }

    .hero-content,
    .page-shell {
        width: calc(100% - 24px);
    }

    .hero {
        min-height: 330px;
    }

    .hero-content {
        padding: 45px 0 55px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 15px;
    }

    .form-card {
        padding: 23px 18px;
        border-radius: 18px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .field-grid,
    .process-grid,
    .summary-list {
        grid-template-columns: 1fr;
    }

    .drop-zone {
        min-height: 250px;
        padding: 28px 15px;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        min-height: 210px;
    }
}

@media (max-width: 420px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 37px;
    }

    .file-item {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .file-type {
        width: 42px;
    }
}


/* Optionale Kundenadresse */
.address-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding: 16px 18px;
    border: 1px solid #dce6f3;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fafe, #eef4fb);
}

.address-divider-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(47, 95, 170, 0.22);
}

.address-divider strong,
.address-divider small {
    display: block;
}

.address-divider strong {
    color: #20334f;
    font-size: 14px;
}

.address-divider small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.postal-input-wrap {
    position: relative;
}

.postal-input-wrap input {
    padding-right: 44px;
}

.postal-spinner {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(47, 95, 170, 0.18);
    border-top-color: var(--brand);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.field.is-loading .postal-spinner {
    opacity: 1;
    animation: postal-spin 700ms linear infinite;
}

.field-hint {
    min-height: 18px;
    color: #7c8ba1;
    font-size: 11px;
    line-height: 1.45;
}

.field.has-success .field-hint {
    color: var(--success);
}

.field.has-error .field-hint {
    color: var(--error);
}

.field.has-success input {
    border-color: #75c8a5;
    background: #fbfffd;
}

.field.has-error input {
    border-color: #f0a19a;
    background: #fffafa;
}

.locality-select {
    width: 100%;
    height: 42px;
    margin-top: 8px;
    padding: 0 12px;
    border: 1px solid #b7c8dd;
    border-radius: 10px;
    background: #f8fbff;
    color: #243247;
    outline: none;
}

.locality-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(47, 95, 170, 0.12);
}

@keyframes postal-spin {
    to { transform: rotate(360deg); }
}


/* Datenschutz-Popup für den CAD-Upload */
body.privacy-modal-open {
    overflow: hidden;
}

.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 24, 50, 0.72);
    backdrop-filter: blur(10px);
    animation: privacyFadeIn 180ms ease both;
}

.privacy-modal-overlay.is-closing {
    animation: privacyFadeOut 180ms ease both;
}

.privacy-modal {
    width: min(760px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.privacy-modal-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(135deg, #0d2b58, #2f5faa);
}

.privacy-modal-head span,
.privacy-modal-head h2 {
    display: block;
    margin: 0;
}

.privacy-modal-head span {
    margin-bottom: 4px;
    color: #bdd3f4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.privacy-modal-head h2 {
    font-size: 24px;
    line-height: 1.18;
}

.privacy-shield {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 16px;
    background: #fff;
    color: #2f5faa;
    font-size: 25px;
    font-weight: 900;
}

.privacy-modal-content {
    padding: 26px;
}

.privacy-modal-content > p {
    margin: 0;
    color: #475467;
}

.privacy-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.privacy-facts > div {
    padding: 15px;
    border: 1px solid #d8e1ed;
    border-radius: 14px;
    background: #f8fbff;
}

.privacy-facts strong,
.privacy-facts span {
    display: block;
}

.privacy-facts strong {
    margin-bottom: 4px;
    color: #183f79;
    font-size: 13px;
}

.privacy-facts span {
    color: #5c6d82;
    font-size: 12px;
    line-height: 1.55;
}

.privacy-upload-warning {
    margin-top: 18px;
    padding: 16px 18px;
    border-left: 4px solid #2f5faa;
    border-radius: 13px;
    background: #eaf1fb;
}

.privacy-upload-warning strong {
    color: #183f79;
    font-size: 13px;
}

.privacy-upload-warning ul {
    margin: 8px 0 0;
    padding-left: 19px;
    color: #526781;
    font-size: 12px;
}

.privacy-details-link {
    margin-top: 18px !important;
    font-size: 12px;
    line-height: 1.65;
}

.privacy-details-link a,
.privacy-check a {
    color: #2f5faa;
    font-weight: 800;
}

.privacy-modal-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #cdd8e6;
    border-radius: 14px;
    cursor: pointer;
}

.privacy-modal-check input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex: 0 0 20px;
    accent-color: #2f5faa;
}

.privacy-modal-check span {
    color: #31435d;
    font-size: 13px;
    font-weight: 750;
}

.privacy-modal-actions {
    padding: 0 26px 26px;
}

.privacy-modal-actions button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-radius: 14px;
    background: #2f5faa;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(47, 95, 170, .26);
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.privacy-modal-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #285397;
}

.privacy-modal-actions button:disabled {
    cursor: not-allowed;
    opacity: .42;
    box-shadow: none;
}

.privacy-modal-actions svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes privacyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes privacyFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 640px) {
    .privacy-modal-overlay {
        padding: 10px;
    }

    .privacy-modal {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .privacy-modal-head,
    .privacy-modal-content,
    .privacy-modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .privacy-modal-head h2 {
        font-size: 19px;
    }

    .privacy-facts {
        grid-template-columns: 1fr;
    }

}

/* PLZ és Ort mezők felső igazítása */
#kundendaten .field-grid > .field {
    align-content: start;
}


/* Strukturierte Materialauswahl */
.material-legacy-field {
    display: none !important;
}

.material-catalog-field select:disabled {
    background: #f5f7fa;
    color: #98a2b3;
    cursor: not-allowed;
}

.material-format-info {
    display: block;
    min-height: 18px;
    color: #526781;
    font-size: 11px;
    line-height: 1.45;
}

.material-format-info strong {
    color: var(--brand-dark);
}

.custom-thickness-wrap {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border: 1px solid #f3b4ae;
    border-radius: 14px;
    background: #fff8f7;
}

.custom-thickness-wrap[hidden] {
    display: none !important;
}

.custom-thickness-field {
    max-width: 420px;
}

.material-nonstandard-warning {
    margin: 12px 0 0;
    color: #b42318;
    font-size: 12px;
    line-height: 1.55;
}

.material-nonstandard-warning strong {
    font-weight: 900;
}


/* Materialstärke und Menge oben bündig ausrichten */
#fertigung .field-grid > .field {
    align-content: start;
}
