:root {
    --bg: #f4f3ef;
    --panel: #ffffff;
    --text: #1f2a38;
    --muted: #5f6b7a;
    --line: #d4d7dd;
    --primary: #243447;
    --primary-dark: #131d2b;
    --accent-gold: #e8c56f;
    --accent-gold-strong: #dcb252;
    --danger: #b91c1c;
    --ok: #047857;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #eaf2f5 0%, var(--bg) 320px);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1500px, 92vw);
    margin: 0 auto;
}

.topbar {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    color: #0f172a;
    border-bottom: 1px solid #e6ebf2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar a {
    color: #0f172a;
}

.topbar-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-width: 0;
    max-width: 420px;
}

.brand a {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 4px;
    transition: opacity 0.15s ease;
}

.brand a:hover {
    opacity: 0.85;
    text-decoration: none;
}

.brand-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: min(420px, 60vw);
    object-fit: contain;
}

.brand-name {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    color: #0f172a;
}

.brand-slogan {
    font-size: 0.72rem;
    line-height: 1.1;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-dropdown-summary:hover {
    background: rgba(15, 23, 42, 0.06);
    text-decoration: none;
}

.nav-link.is-active {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
    background: #1e293b;
    text-decoration: none;
}

.nav-cta-accent {
    background: #f2ca0b;
    color: #5b4500 !important;
}

.nav-cta-accent:hover {
    background: #e0bb09;
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: #e6ebf2;
    margin: 0 4px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown-summary::after {
    content: "\25BE";
    font-size: 0.75rem;
    opacity: 0.88;
}

.nav-dropdown[open] .nav-dropdown-summary {
    background: rgba(209, 250, 229, 0.2);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
    padding: 8px;
    display: grid;
    gap: 4px;
    z-index: 100;
}

.nav-dropdown-menu a {
    color: #0f172a;
    border-radius: 8px;
    padding: 8px 10px;
}

.nav-dropdown-menu a:hover {
    background: #eef2ff;
    text-decoration: none;
}

.content {
    padding: 24px 0 40px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 5px 18px rgba(2, 6, 23, 0.05);
}

.landing-hero {
    background: linear-gradient(135deg, #ffffff 0%, #faf6ea 100%);
}

.landing-hero h1 {
    margin-bottom: 8px;
}

.landing-hero p {
    margin-bottom: 0;
}

.landing-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 2px;
}

.landing-auth-card h2 {
    margin-bottom: 6px;
}

.landing-auth-card .muted {
    margin-top: 0;
    color: #2f495d;
}

.landing-auth-hint {
    margin: 12px 0 0;
    font-size: 0.88rem;
}

body.landing-parkdienst {
    background:
        linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
        url('../img/landing-bg-rheinhessen.jpg') center center / cover no-repeat;
}

.landing-parkdienst .topbar {
    display: none;
}

.landing-pd-hero-wrap {
    margin-bottom: 18px;
}

.landing-pd-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(120deg, #f8f9f3 0%, #f4f2e8 58%, #efe1ae 58%, #f2e5bb 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 34px;
    box-shadow: 0 28px 54px rgba(8, 15, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.landing-pd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 42%);
    pointer-events: none;
}

.landing-pd-copy {
    position: relative;
    z-index: 2;
    max-width: min(640px, 54%);
}

.landing-pd-copy h1 {
    font-size: clamp(1.55rem, 2.45vw, 2.45rem);
    line-height: 1.16;
    margin: 6px 0 14px;
    color: #051d2a;
    max-width: 760px;
    text-wrap: balance;
}

.landing-pd-card-logo {
    display: block;
    width: min(430px, 94%);
    height: auto;
    object-fit: contain;
    margin-top: -10px;
    margin-bottom: 54px;
}

.landing-pd-copy p {
    margin: 0;
    color: #3d5f52;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 760px;
}

.landing-pd-hero-points {
    position: absolute;
    right: 16px;
    top: 62px;
    z-index: 2;
    display: grid;
    gap: 8px;
    width: max-content;
    max-width: min(420px, 40%);
}

.landing-pd-hero-points p {
    margin: 0;
    color: #193044;
    font-weight: 700;
    font-size: 0.98rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-pd-point {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(44, 69, 97, 0.34);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.88) 0%, rgba(231, 238, 247, 0.72) 100%);
    box-shadow: 0 6px 14px rgba(18, 31, 50, 0.15);
}

.landing-pd-point i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f3b56;
    color: #fef3c7;
    font-size: 0.72rem;
}

.landing-pd-hero-login {
    position: absolute;
    right: 42px;
    bottom: 24px;
    z-index: 2;
    width: min(520px, 43%);
    padding: 0;
    border-radius: 14px;
    display: grid;
    gap: 10px;
}

.landing-pd-hero-login a i {
    font-size: 1rem;
    opacity: 0.95;
}

.landing-pd-hero-register-btn,
.landing-pd-hero-portal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 72px;
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.landing-pd-hero-register-btn {
    border: 1px solid rgba(31, 59, 86, 0.42);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.88) 0%, rgba(230, 238, 247, 0.84) 100%);
    color: #19314a;
    box-shadow:
        0 10px 18px rgba(16, 26, 43, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.landing-pd-hero-register-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 22px rgba(16, 26, 43, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    filter: brightness(1.02);
    text-decoration: none;
}

.landing-pd-hero-portal-btn {
    border: 1px solid rgba(242, 202, 11, 0.58);
    background: linear-gradient(140deg, #1f3b56 0%, #15293e 100%);
    color: #fff5d3;
    box-shadow:
        0 14px 24px rgba(16, 26, 43, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -3px 0 rgba(242, 202, 11, 0.34);
}

.landing-pd-hero-portal-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 28px rgba(16, 26, 43, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -3px 0 rgba(242, 202, 11, 0.42);
    filter: brightness(1.06) saturate(1.02);
    text-decoration: none;
}

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

@media (prefers-reduced-motion: no-preference) {
    .landing-pd-hero {
        animation: landingRise 420ms ease-out both;
    }

    .landing-pd-benefit-card {
        animation: landingRise 520ms ease-out both;
    }

    .landing-pd-benefit-card:nth-child(2) {
        animation-delay: 60ms;
    }

    .landing-pd-benefit-card:nth-child(3) {
        animation-delay: 110ms;
    }

    .landing-pd-auth .landing-auth-card,
    .landing-parkdienst .guest-flow-panel {
        animation: landingRise 560ms ease-out both;
    }
}

.landing-pd-kicker {
    margin: 0;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: #d5a316;
    font-size: 1.55rem;
}

.landing-pd-cta-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-pd-btn-primary {
    background: #efc12d;
    color: #111827;
    border: 1px solid #d2a515;
}

.landing-pd-btn-primary:hover {
    background: #e2b425;
}

.landing-pd-btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #c7d0d5;
}

.landing-pd-btn-secondary:hover {
    background: #f3f4f6;
}

.landing-pd-meta {
    margin-top: 14px;
    color: #3d5f52;
    font-size: 1rem;
}

.landing-pd-visual {
    position: relative;
    min-height: 280px;
}

.landing-pd-envelope {
    position: absolute;
    right: 32px;
    top: 46px;
    width: 220px;
    height: 150px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f5cf64, #e7b72a);
    box-shadow: 0 18px 30px rgba(110, 89, 19, 0.28);
}

.landing-pd-envelope::before,
.landing-pd-envelope::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.landing-pd-envelope::before {
    clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 0, 0 0);
}

.landing-pd-envelope::after {
    clip-path: polygon(0 100%, 50% 44%, 100% 100%, 100% 100%, 0 100%);
}

.landing-pd-sheet {
    position: absolute;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #cfd5db;
    box-shadow: 0 10px 18px rgba(8, 24, 40, 0.16);
}

.landing-pd-sheet-a {
    width: 180px;
    height: 120px;
    right: 120px;
    top: 15px;
    transform: rotate(-6deg);
}

.landing-pd-sheet-b {
    width: 160px;
    height: 110px;
    right: 20px;
    top: 18px;
    transform: rotate(8deg);
}

.landing-pd-dot {
    position: absolute;
    border-radius: 50%;
    background: #f2cb58;
}

.landing-pd-dot-a {
    width: 58px;
    height: 58px;
    right: 18px;
    bottom: 28px;
}

.landing-pd-dot-b {
    width: 26px;
    height: 26px;
    right: 92px;
    bottom: 18px;
}

.landing-pd-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.landing-pd-benefit-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(248, 249, 243, 0.95), rgba(235, 239, 227, 0.92));
    box-shadow: 0 14px 26px rgba(9, 18, 33, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-pd-benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f0c930 0%, #f6de7d 100%);
}

.landing-pd-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(9, 18, 33, 0.22);
}

.landing-pd-benefit-card h3 {
    margin: 0 0 6px;
    color: #051d2a;
    font-size: 1.28rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-pd-benefit-card h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(31, 59, 86, 0.96) 0%, rgba(21, 41, 62, 0.95) 100%);
    color: #f5ce45;
    font-size: 0.86rem;
    flex: 0 0 30px;
}

.landing-pd-benefit-flow h3::before {
    content: "\f073";
}

.landing-pd-benefit-easy h3::before {
    content: "\f0e0";
}

.landing-pd-benefit-safe h3::before {
    content: "\f3ed";
}

.landing-pd-benefit-card p {
    margin: 0;
    color: #2f495d;
    line-height: 1.45;
}

.landing-pd-auth .landing-auth-card,
.landing-parkdienst .guest-flow-panel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(248, 249, 243, 0.95), rgba(233, 238, 227, 0.93));
    box-shadow: 0 16px 30px rgba(9, 18, 33, 0.2);
}

.landing-pd-auth .landing-auth-card::before,
.landing-parkdienst .guest-flow-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34%;
    height: 100%;
    background: linear-gradient(140deg, rgba(240, 201, 48, 0.2) 0%, rgba(240, 201, 48, 0.07) 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.landing-pd-auth .landing-auth-card > *,
.landing-parkdienst .guest-flow-panel > * {
    position: relative;
    z-index: 1;
}

.landing-pd-auth .landing-auth-card h2,
.landing-parkdienst .guest-flow-panel h2 {
    color: #051d2a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-pd-auth .landing-auth-card h2::before,
.landing-parkdienst .guest-flow-panel h2::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(31, 59, 86, 0.96) 0%, rgba(21, 41, 62, 0.95) 100%);
    color: #f5ce45;
    font-size: 0.86rem;
    flex: 0 0 30px;
}

.landing-pd-auth .landing-auth-card h2::before {
    content: "\f0d6";
}

.landing-parkdienst .guest-flow-panel h2::before {
    content: "\f0c5";
}

.landing-auth-card-media {
    padding: 12px;
    min-height: 286px;
}

.guest-flow-panel {
    margin-top: 4px;
}

.guest-step-indicator {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 14px;
    list-style: none;
}

.guest-step-indicator li {
    padding: 7px 12px;
    border: 1px solid rgba(170, 182, 198, 0.62);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.guest-step-indicator li.is-active {
    border-color: #d3aa1d;
    background: rgba(240, 201, 48, 0.24);
    color: #5f4803;
}

.guest-step-indicator li.is-done {
    border-color: #1f384f;
    background: rgba(34, 66, 99, 0.14);
    color: #1f384f;
}

.guest-step {
    display: none;
}

.guest-step.is-active {
    display: block;
}

.guest-upload-zone {
    border: 2px dashed #b3c1d3;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    padding: 16px;
    text-align: center;
}

.guest-upload-zone.is-dragover {
    border-color: #d3aa1d;
    background: rgba(240, 201, 48, 0.18);
}

#guest_order_files {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.guest-upload-price {
    margin: 10px 0 0;
    font-weight: 600;
}

.guest-preview-panel {
    margin-top: 14px;
}

.guest-preview-panel .doc-thumb-wrap {
    height: 320px;
}

.guest-option-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid rgba(176, 190, 208, 0.72);
    border-radius: 12px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.74);
    color: #1a2c3f;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.guest-option-row:hover {
    border-color: #d3aa1d;
    box-shadow: 0 8px 16px rgba(17, 30, 49, 0.12);
    transform: translateY(-1px);
}

.guest-option-row input[type="checkbox"] {
    margin-top: 3px;
}

.guest-color-hint {
    margin-top: 8px;
    margin-bottom: 0;
}

.guest-advanced-options {
    margin-top: 10px;
}

.guest-fast-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #14532d;
    font-weight: 600;
}

.guest-summary-documents {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.guest-summary-doc-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(176, 190, 208, 0.66);
    border-radius: 10px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

body.landing-parkdienst #login-box input,
body.landing-parkdienst #login-box select,
body.landing-parkdienst #login-box textarea,
body.landing-parkdienst #guest-flow input,
body.landing-parkdienst #guest-flow select,
body.landing-parkdienst #guest-flow textarea {
    border: 1px solid rgba(169, 182, 199, 0.84);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.landing-parkdienst #login-box input:focus,
body.landing-parkdienst #login-box select:focus,
body.landing-parkdienst #login-box textarea:focus,
body.landing-parkdienst #guest-flow input:focus,
body.landing-parkdienst #guest-flow select:focus,
body.landing-parkdienst #guest-flow textarea:focus {
    outline: none;
    border-color: #d3aa1d;
    box-shadow: 0 0 0 3px rgba(240, 201, 48, 0.2);
}

body.landing-parkdienst #login-box button,
body.landing-parkdienst #guest-flow button,
body.landing-parkdienst #guest-flow .btn {
    border-radius: 10px;
    box-shadow: 0 8px 14px rgba(16, 26, 43, 0.18);
    transition: transform 0.15s ease, box-shadow 0.18s ease;
}

body.landing-parkdienst #login-box button:hover,
body.landing-parkdienst #guest-flow button:hover,
body.landing-parkdienst #guest-flow .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(16, 26, 43, 0.22);
}

h1, h2, h3 {
    margin-top: 0;
}

.grid {
    display: grid;
    gap: 12px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.four {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 6px;
}

input, select, textarea, button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 11px;
    font-size: 0.95rem;
    background: #fff;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button, .btn {
    display: inline-block;
    width: auto;
    border-radius: 8px;
    padding: 10px 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

button:hover, .btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    background: #1f2937;
}

.btn-danger {
    background: var(--danger);
}

.btn-create-order {
    background: var(--ok);
}

.btn-create-order:hover {
    background: #065f46;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    border: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef2ff;
    font-size: 0.92rem;
}

.status {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.82rem;
    color: #fff;
    background: #475569;
}

.status-uploaded { background: #2563eb; }
.status-accepted { background: #0f766e; }
.status-printed { background: #7c3aed; }
.status-enveloped { background: #d97706; }
.status-shipped { background: #059669; }
.status-cancelled { background: #6b7280; }
.status-error { background: #dc2626; }

.flash {
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.flash-success {
    background: #dcfce7;
    color: #065f46;
    border: 1px solid #86efac;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.flash-info {
    background: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 18px 0 28px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 8px;
}

.footer-links a {
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links a + a::before {
    content: "|";
    color: #9ca3af;
    margin: 0 10px;
}

.footer-note {
    display: block;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.muted {
    color: var(--muted);
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: 0;
    accent-color: var(--primary);
}

input[type="radio"] {
    width: auto;
    padding: 0;
    border: 0;
    accent-color: var(--primary);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
}

.checkbox-inline input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hint-info {
    color: #0c4a6e;
}

.hint-success {
    color: #065f46;
}

.hint-error {
    color: #991b1b;
}

.doc-preview-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    min-height: 80px;
}

.doc-card {
    width: 320px;
    min-width: 320px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    cursor: grab;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.doc-card.dragging {
    opacity: 0.45;
}

.doc-card.drag-over {
    border-color: var(--primary);
    outline: 2px dashed #2dd4bf;
    outline-offset: 1px;
}

.doc-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    height: 3.4em;
    margin-bottom: 10px;
    word-break: break-word;
    overflow: hidden;
}

.doc-thumb-wrap {
    border: 1px solid #dbe1e8;
    border-radius: 8px;
    overflow: hidden;
    height: 450px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-page-layer {
    position: relative;
    width: 100%;
    aspect-ratio: 210 / 297;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.doc-thumb {
    width: 100%;
    height: 100%;
    border: none;
}

.doc-thumb-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    background: #fff;
}

.doc-preview-bw {
    filter: grayscale(100%);
}

.doc-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
    padding: 12px;
    background: rgba(248, 250, 252, 0.92);
}

.address-highlight-overlay {
    position: absolute;
    background: rgba(255, 235, 59, 0.35);
    border: 1px solid rgba(202, 138, 4, 0.78);
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
}

.doc-type-badge {
    margin-top: 8px;
    display: inline-block;
    font-size: 0.76rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}

.doc-card-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.doc-card-meta .doc-type-badge {
    margin-top: 0;
    transform: translateY(1px);
}

.doc-remove-btn {
    margin-left: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 5px;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(1px);
}

.doc-remove-btn:hover {
    background: #b91c1c;
}

.order-detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.order-detail-header p {
    margin-bottom: 0;
}

.order-overview-top {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.order-overview-top h2 {
    margin-bottom: 10px;
}

.order-overview-top p {
    margin: 4px 0;
}

.detail-status-badge {
    font-size: 0.9rem;
    padding: 8px 14px;
}

.order-timeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.timeline-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.92rem;
}

.timeline-step.is-done {
    color: #1f2937;
}

.timeline-step.is-active .timeline-label {
    font-weight: 700;
}

.timeline-dot {
    font-size: 0.95rem;
    line-height: 1;
}

.timeline-separator {
    color: #94a3b8;
}

.order-status-description {
    margin-top: 14px;
    margin-bottom: 0;
}

.order-progress-actions {
    margin-top: 14px;
}

.order-cancel-btn {
    border-radius: 8px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.price-list {
    display: grid;
    gap: 8px;
}

.price-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.price-list .price-total {
    border-top: 1px solid #dbe1e8;
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 700;
}

.price-hint {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.invoice-price-list h3 {
    margin-bottom: 10px;
}

.invoice-price-group {
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
}

.invoice-price-group + .invoice-price-group {
    margin-top: 10px;
}

.invoice-price-group h4 {
    margin: 0 0 8px;
    font-size: 0.98rem;
}

.history-list {
    margin: 0;
    padding-left: 18px;
}

.history-list li + li {
    margin-top: 8px;
}

@media (max-width: 980px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        display: none;
    }

    .settings-mobile-switch {
        display: block;
    }
    .brand-slogan {
        display: none;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav {
        justify-content: flex-end;
        gap: 4px;
    }

    .topbar-row {
        padding: 10px 0;
        gap: 12px;
    }

    .brand-logo {
        height: 40px;
        max-width: 200px;
    }

    .nav-link {
        padding: 8px 10px;
    }

    .nav-link span {
        display: none;
    }

    .nav-link i {
        font-size: 1.05rem;
    }

    .nav-cta {
        padding: 8px 12px;
    }

    .nav-divider {
        display: none;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        margin-top: 8px;
        min-width: 100%;
    }
}


.settings-page-head p {
    margin-bottom: 0;
}

.settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.settings-sidebar {
    position: sticky;
    top: 14px;
}

.settings-nav {
    display: grid;
    gap: 6px;
}

.settings-nav-link {
    display: block;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    padding: 10px 12px;
    color: #1f2937;
    background: #f8fafc;
    text-decoration: none;
    font-weight: 600;
}

.settings-nav-link:hover {
    background: #eef2ff;
    text-decoration: none;
}

.settings-nav-link.is-active {
    border-color: #155e75;
    background: #e0f2fe;
    color: #0c4a6e;
}

.settings-content {
    min-width: 0;
}

.settings-section-head p {
    margin-bottom: 14px;
}

.settings-form .settings-fieldset {
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0 0;
}

.settings-form .settings-fieldset legend {
    padding: 0 6px;
    font-weight: 600;
    color: #1f2937;
}

.branding-info-box {
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
}

.branding-info-box h3 {
    margin: 0 0 8px;
}

.branding-info-box p {
    margin: 5px 0;
}

.branding-setup-success {
    border: 1px solid #86efac;
    border-radius: 10px;
    background: #dcfce7;
    color: #14532d;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.branding-setup-success-icon {
    color: #15803d;
    font-size: 1rem;
    line-height: 1.2;
}

.branding-preview-wrap {
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background: #ffffff;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.branding-preview-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

.branding-preview-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
}

.branding-example-box {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.branding-example-image {
    width: 30%;
    min-width: 220px;
    max-width: 360px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.settings-inline {
    margin-top: 10px;
    max-width: 280px;
}

.settings-inline.is-disabled {
    opacity: 0.65;
}

.settings-checkbox-group {
    display: grid;
    gap: 10px;
}

.radio-inline {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 8px;
    color: var(--text);
}

.radio-inline input[type="radio"] {
    flex: 0 0 auto;
    margin-top: 2px;
}

.settings-mobile-switch {
    display: none;
    margin-bottom: 12px;
}

.settings-mobile-switch label {
    margin-bottom: 4px;
}

#billing-separate-fields.is-disabled {
    opacity: 0.65;
}

.paper-type-select.is-recycled {
    background: #e3f3e6;
    border-color: #7da88a;
    color: #14532d;
    font-weight: 600;
}

.paper-type-select option.paper-recycling-option {
    background: #d8ecdc;
    color: #14532d;
    font-weight: 600;
}
@media (max-width: 980px) {
    .landing-pd-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .landing-pd-copy {
        max-width: 100%;
    }

    .landing-pd-copy h1 {
        font-size: clamp(1.4rem, 4.9vw, 2rem);
    }

    .landing-pd-card-logo {
        width: min(360px, 96%);
        margin-top: -6px;
        margin-bottom: 36px;
    }

    .landing-pd-hero-login {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 680px;
    }

    .landing-pd-hero-points {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 680px;
        margin-top: 2px;
        margin-bottom: 6px;
    }

    .landing-pd-visual {
        min-height: 220px;
    }

    .landing-pd-benefits {
        grid-template-columns: 1fr;
    }

    .landing-pd-envelope {
        right: 24px;
    }

    .landing-pd-sheet-a {
        right: 104px;
    }

    .landing-auth-grid {
        grid-template-columns: 1fr;
    }

    .landing-pd-auth .landing-auth-card::before,
    .landing-parkdienst .guest-flow-panel::before {
        width: 24%;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        display: none;
    }

    .settings-mobile-switch {
        display: block;
    }
}

@media (max-width: 720px) {
    .landing-pd-cta-row {
        flex-direction: column;
    }

    .landing-pd-btn-primary,
    .landing-pd-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .landing-pd-visual {
        min-height: 180px;
    }

    .landing-pd-envelope {
        width: 170px;
        height: 118px;
        right: 18px;
        top: 38px;
    }

    .landing-pd-sheet-a {
        width: 140px;
        height: 94px;
        right: 96px;
        top: 10px;
    }

    .landing-pd-sheet-b {
        width: 128px;
        height: 90px;
        right: 12px;
        top: 12px;
    }

    .landing-pd-auth .landing-auth-card::before,
    .landing-parkdienst .guest-flow-panel::before {
        display: none;
    }

    .landing-pd-hero-portal-btn {
        min-height: 64px;
        font-size: 1.05rem;
    }

    .landing-pd-hero-register-btn {
        min-height: 64px;
        font-size: 1.02rem;
    }
}

/* =========================================
   Landing V2 (SaaS / Premium)
   ========================================= */
body.landing-parkdienst {
    background: linear-gradient(180deg, #f7f9fc 0%, #f3f5f8 100%);
}

body.landing-parkdienst .container {
    width: min(1280px, 92vw);
}

body.landing-parkdienst .content {
    padding-top: 44px;
    padding-bottom: 72px;
}

body.landing-parkdienst .landing-saas-hero-wrap > .landing-pd-hero,
body.landing-parkdienst .landing-pd-benefits,
body.landing-parkdienst .landing-auth-grid.landing-pd-auth {
    display: none;
}

.landing-saas-v2 {
    display: grid;
    gap: 26px;
    margin-bottom: 28px;
}

.landing-saas-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 46px);
    display: grid;
    gap: 28px;
}

.landing-saas-logo {
    display: block;
    width: min(420px, 100%);
    height: auto;
    margin-bottom: 26px;
}

.landing-saas-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.07;
    letter-spacing: -0.03em;
    color: #0f172a;
    max-width: 16ch;
}

.landing-saas-copy p {
    margin: 0;
    color: #475569;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.62;
    max-width: 68ch;
}

.landing-saas-trust-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.landing-saas-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 600;
}

.landing-saas-trust-list li i {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #17314d;
    background: #e5edf6;
}

.landing-saas-portal-card {
    background: #f8fafc;
    border: 1px solid #d8e1ec;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 24px);
}

.landing-saas-kicker {
    margin: 0 0 8px;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-saas-portal-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.62rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.landing-saas-portal-card p {
    margin: 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
}

.landing-saas-cta-group {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.landing-saas-upload-btn,
.landing-saas-login-btn {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.landing-saas-upload-btn {
    background: #0f172a;
    color: #f8fafc;
    cursor: pointer;
}

.landing-saas-upload-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.landing-saas-login-btn {
    background: #f2ca0b;
    color: #111827;
    border-color: #e1bc0c;
}

.landing-saas-login-btn:hover {
    background: #eabf00;
    transform: translateY(-1px);
    text-decoration: none;
}

.landing-saas-register-link {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.landing-saas-register-link:hover {
    text-decoration: underline;
}

.landing-saas-feature-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: clamp(16px, 2.8vw, 28px);
    display: grid;
    gap: 22px;
}

.landing-saas-feature {
    padding-bottom: 2px;
}

.landing-saas-feature h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.13rem;
    letter-spacing: -0.01em;
}

.landing-saas-feature p {
    margin: 0;
    color: #475569;
    line-height: 1.58;
    font-size: 0.96rem;
}

.landing-saas-price-strip {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #eef3fb;
    padding: 14px 16px;
}

.landing-saas-price-strip p {
    margin: 0;
    text-align: center;
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.5;
}

.landing-saas-price-strip strong {
    color: #0f172a;
    font-size: 1.05rem;
}

body.landing-parkdienst .guest-flow-panel {
    margin-top: 0;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    padding: clamp(18px, 2.8vw, 30px);
}

body.landing-parkdienst .guest-flow-panel::before {
    display: none;
}

body.landing-parkdienst .guest-flow-panel h2 {
    margin-bottom: 10px;
}

body.landing-parkdienst .guest-step-indicator li {
    background: #ffffff;
    border-color: #d6dce8;
}

body.landing-parkdienst .guest-step-indicator li.is-active {
    background: #fff8db;
    border-color: #e6bf16;
    color: #5a4400;
}

body.landing-parkdienst .guest-upload-zone {
    background: #f8fafc;
    border-color: #c9d4e5;
}

body.landing-parkdienst .guest-upload-zone.is-dragover {
    background: #ecf3ff;
    border-color: #4f7db8;
}

body.landing-parkdienst .guest-flow-panel > h2,
body.landing-parkdienst .guest-flow-panel > p.muted {
    display: none;
}

.guest-flow-head {
    margin-bottom: 24px;
}

body.landing-parkdienst .guest-flow-head h2 {
    display: block;
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.12;
    letter-spacing: 0;
}

body.landing-parkdienst .guest-flow-head h2::before {
    display: none;
    content: none;
}

.guest-flow-head p {
    margin: 0;
    max-width: 760px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

.guest-entry-cards {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.guest-entry-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: clamp(18px, 2.6vw, 26px);
    box-shadow: 0 10px 28px rgba(20, 37, 61, 0.05);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.guest-entry-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 14px 34px rgba(20, 37, 61, 0.08);
    transform: translateY(-1px);
}

.guest-entry-card-featured {
    border-color: rgba(20, 37, 61, 0.22);
    background: linear-gradient(180deg, #f8f8f6 0%, #fbf7ec 100%);
    box-shadow: 0 18px 42px rgba(20, 37, 61, 0.1);
}

.guest-entry-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #dff5ea;
    color: #14532d;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.guest-entry-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.guest-entry-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4e8bf;
    color: #14253d;
    flex: 0 0 38px;
}

.guest-entry-card h3 {
    margin: 0;
    color: #111827;
    font-size: 1.22rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.guest-entry-card p {
    color: #6b7280;
    line-height: 1.58;
}

.guest-entry-card > p {
    margin: 0 0 16px;
}

.guest-entry-card ul {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.guest-entry-card li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #111827;
    font-size: 0.94rem;
    font-weight: 600;
}

.guest-entry-card li i {
    color: #047857;
    font-size: 0.8rem;
}

.guest-entry-price {
    margin: 0 0 16px;
    color: #14253d;
    font-weight: 800;
}

.guest-entry-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-weight: 800;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.guest-entry-btn:hover {
    transform: translateY(-1px);
}

.guest-entry-btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #14253d;
}

.guest-entry-btn-secondary:hover {
    background: #f8f8f6;
    border-color: #9ca3af;
}

.guest-entry-btn-primary {
    background: #14253d;
    color: #ffffff;
}

.guest-entry-btn-primary:hover {
    background: #1f3658;
}

body.landing-parkdienst .guest-step-indicator {
    gap: 10px;
    margin: 0 0 24px;
    padding: 8px;
    border-radius: 12px;
    background: #f8f8f6;
}

body.landing-parkdienst .guest-step-indicator li {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #6b7280;
    padding: 9px 13px;
    font-weight: 700;
}

body.landing-parkdienst .guest-step-indicator li.is-active {
    border-color: #14253d;
    background: #14253d;
    color: #ffffff;
}

body.landing-parkdienst .guest-step-indicator li.is-done {
    border-color: #dff5ea;
    background: #dff5ea;
    color: #14532d;
}

body.landing-parkdienst .guest-step h3 {
    color: #111827;
    letter-spacing: 0;
}

body.landing-parkdienst .guest-step[data-step="1"] > p.muted {
    display: none;
}

body.landing-parkdienst .guest-upload-zone {
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8f8f6;
    padding: clamp(28px, 5vw, 52px) 20px;
    display: grid;
    justify-items: center;
    text-align: center;
}

body.landing-parkdienst .guest-upload-zone:hover {
    border-color: #14253d;
    background: #ffffff;
}

body.landing-parkdienst .guest-upload-zone.is-dragover {
    background: #dff5ea;
    border-color: #047857;
}

.guest-upload-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #14253d;
    font-size: 1.65rem;
}

.guest-upload-zone h4 {
    margin: 0 0 6px;
    color: #111827;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: 0;
}

.guest-upload-format {
    margin: 0 0 16px;
    color: #6b7280;
}

body.landing-parkdienst .guest-upload-zone #guest-pick-file-btn {
    min-height: 46px;
    border-radius: 9px;
    background: #14253d;
    color: #ffffff;
    padding-inline: 22px;
}

body.landing-parkdienst .guest-upload-zone #guest-pick-file-btn:hover {
    background: #1f3658;
}

.guest-upload-price {
    margin-top: 14px;
    color: #14253d;
    font-size: 0;
    font-weight: 700;
}

.guest-upload-price::after {
    content: "Gastversand ab 1,79 \20AC  pro Brief";
    font-size: 0.94rem;
}

@media (min-width: 820px) {
    .guest-entry-cards {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .guest-entry-btn,
    body.landing-parkdienst .guest-upload-zone #guest-pick-file-btn {
        width: 100%;
    }

    body.landing-parkdienst .guest-step-indicator {
        align-items: stretch;
    }

    body.landing-parkdienst .guest-step-indicator li {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 900px) {
    .landing-saas-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
        align-items: start;
    }

    .landing-saas-feature-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .landing-saas-feature + .landing-saas-feature {
        border-left: 1px solid #e9edf5;
        padding-left: 22px;
    }
}

/* =========================================
   Auth SaaS (Login)
   ========================================= */
body.auth-saas {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body.auth-saas .container {
    width: min(1280px, 92vw);
}

body.auth-saas .topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

body.auth-saas .nav-link {
    color: #1f2a38;
}

body.auth-saas .nav-link:hover {
    background: rgba(15, 23, 42, 0.06);
}

body.auth-saas .content {
    padding-top: 44px;
    padding-bottom: 72px;
}

.auth-saas-wrap {
    display: grid;
    gap: 20px;
}

.auth-saas-shell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: clamp(20px, 3.5vw, 42px);
    display: grid;
    gap: 24px;
}

.auth-saas-kicker {
    margin: 0 0 8px;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-saas-brand h1 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(1.7rem, 3.8vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 18ch;
}

.auth-saas-brand > p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    max-width: 64ch;
}

.auth-saas-trust {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.auth-saas-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-saas-trust i {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #17314d;
    background: #e5edf6;
    font-size: 0.72rem;
}

.auth-saas-backlink {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.auth-saas-backlink:hover {
    text-decoration: underline;
}

.auth-saas-card {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: clamp(16px, 2.2vw, 24px);
}

.auth-saas-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.auth-saas-card > p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.55;
}

.auth-saas-form {
    display: grid;
    gap: 13px;
}

.auth-saas-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-saas-form-group input {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #ffffff;
    padding: 11px 12px;
    font-size: 0.95rem;
}

.auth-saas-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.auth-saas-submit,
.auth-saas-register-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.auth-saas-submit {
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.auth-saas-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.auth-saas-register-btn {
    border: 1px solid #e2b60f;
    background: #f2ca0b;
    color: #111827;
}

.auth-saas-register-btn:hover {
    background: #eabf00;
    transform: translateY(-1px);
    text-decoration: none;
}

.auth-saas-forgot-link {
    justify-self: start;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-saas-forgot-link:hover {
    text-decoration: underline;
}

@media (min-width: 980px) {
    .auth-saas-shell {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        align-items: start;
    }
}

/* =========================================
   Auth SaaS - Registrierung (Erweiterung)
   ========================================= */
body.auth-saas.register-page .auth-saas-card--register {
    background: #ffffff;
}

@media (min-width: 1080px) {
    .auth-saas-shell--register {
        grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
        gap: 36px;
    }

    /* Linke Spalte als zusammenhaengender Block, der auf langer
       Formularseite mitlaeuft, statt unten Leere zu hinterlassen */
    .auth-saas-shell--register .auth-saas-brand {
        position: sticky;
        top: 24px;
        align-self: start;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .auth-saas-shell--register .auth-saas-brand h1 {
        font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    }

    .auth-saas-shell--register .auth-saas-brand > p {
        font-size: 0.97rem;
        line-height: 1.6;
    }

    .auth-saas-shell--register .auth-saas-trust {
        margin-top: 4px;
    }
}

.auth-saas-form--register {
    gap: 18px;
}

.auth-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px 18px;
    margin: 0;
    display: grid;
    gap: 13px;
    background: #ffffff;
}

.auth-fieldset > legend {
    padding: 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-saas-form-row {
    display: grid;
    gap: 13px;
}

@media (min-width: 640px) {
    .auth-saas-form-row {
        grid-template-columns: 1fr 1fr;
    }
    .auth-saas-form-row--address {
        grid-template-columns: 0.55fr 1fr;
    }
}

.auth-saas-form-group .req {
    color: #dc2626;
    font-weight: 700;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #64748b;
    min-height: 1.1em;
    line-height: 1.35;
}

.field-hint--error {
    color: #b91c1c;
}

.field-hint--ok {
    color: #15803d;
}

.auth-saas-form-group input.input--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.pw-strength {
    height: 6px;
    margin-top: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.pw-strength-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: #dc2626;
    transition: width 0.18s ease, background-color 0.18s ease;
}

.pw-strength-bar[data-level="2"] { background: #f59e0b; }
.pw-strength-bar[data-level="3"] { background: #2563eb; }
.pw-strength-bar[data-level="4"] { background: #15803d; }

.billing-address-block {
    display: grid;
    gap: 13px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.billing-address-block[hidden] {
    display: none !important;
}

.auth-saas-card .checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    line-height: 1.45;
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 500;
}

.auth-saas-card .checkbox-inline input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #0f172a;
    flex: 0 0 18px;
}

.auth-saas-card .checkbox-terms {
    background: #fffbeb;
    border-color: #fde68a;
}

.auth-saas-card .checkbox-terms a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
}

.auth-saas-footnote {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
}

.auth-saas-footnote a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.auth-saas-footnote a:hover {
    text-decoration: underline;
}

/* Info-Hinweis innerhalb des Registrierungsformulars */
.auth-saas-card .info-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-saas-card .info-callout i {
    color: #1d4ed8;
    font-size: 1.05rem;
    margin-top: 2px;
    flex: 0 0 auto;
}

.auth-saas-card .info-callout strong {
    color: #0f172a;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.field-label-block {
    margin: 4px 0 -2px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Auswahl-Karten (z.B. Rechnungszustellung) */
.radio-card-group {
    display: grid;
    gap: 10px;
}

@media (min-width: 640px) {
    .radio-card-group {
        grid-template-columns: 1fr 1fr;
    }
}

.radio-card {
    display: block;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    position: relative;
}

.radio-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.radio-card.is-selected {
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card-body {
    display: block;
}

.radio-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.radio-card-head i {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5edf6;
    color: #17314d;
    font-size: 0.78rem;
    flex: 0 0 26px;
}

.radio-card.is-selected .radio-card-head i {
    background: #0f172a;
    color: #f2ca0b;
}

.radio-card-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.98rem;
}

.radio-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
}

.radio-card-tag--free {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.radio-card-tag--paid {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.radio-card-desc {
    display: block;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.45;
}

/* Willkommens-Promo auf der Registrierungsseite */
.register-promo {
    margin-top: 4px;
    padding: 18px 20px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.10);
    position: relative;
    overflow: hidden;
}

.register-promo::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(242, 202, 11, 0.18) 0%, rgba(242, 202, 11, 0) 70%);
    pointer-events: none;
}

.register-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #f2ca0b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.register-promo-badge i {
    font-size: 0.85rem;
}

.register-promo-title {
    margin: 12px 0 6px;
    color: #0f172a;
    font-size: 1.3rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    max-width: 22ch;
}

.register-promo-text {
    margin: 0 0 12px;
    color: #1f2937;
    line-height: 1.5;
    font-size: 0.92rem;
}

.register-promo-text strong {
    color: #0f172a;
    font-weight: 700;
}

.register-promo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.register-promo-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1f2937;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.45;
}

.register-promo-list i {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #f2ca0b;
    font-size: 0.7rem;
}

/* Deadline-Hinweis im Willkommens-Promo (Registrierungsseite) */
.register-promo-deadline {
    margin: 14px 0 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.register-promo-deadline i {
    color: #b45309;
}

.register-promo-deadline strong {
    color: #0f172a;
    font-weight: 700;
}

/* Kleiner Deadline-Hinweis in Hero-Microcopy (Landingpage / Gastversand) */
.lp-hero-microcopy-deadline {
    display: inline;
    margin-left: 4px;
    color: #6b7280;
    font-size: 0.92em;
    font-weight: 500;
}

/* Kleiner Deadline-Hinweis innerhalb der Plan-Vorteile */
.lp-plan-deadline {
    display: inline;
    margin-left: 4px;
    color: #6b7280;
    font-size: 0.85em;
    font-weight: 500;
}

/* "So einfach geht's" - 3-Schritte-Block */
.how-it-works {
    padding: 18px 20px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.how-it-works-kicker {
    margin: 0 0 12px;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.how-it-works-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: step;
    position: relative;
}

.how-it-works-steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

/* Verbindungslinie zwischen den Schritt-Nummern */
.how-it-works-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(to bottom, #cbd5e1 0%, #cbd5e1 60%, transparent 100%);
    z-index: 0;
}

.how-it-works-steps .step-num {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #0f172a;
    color: #f2ca0b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 1;
    flex-shrink: 0;
}

.how-it-works-steps li > div {
    padding-top: 4px;
}

.how-it-works-steps li strong {
    display: block;
    color: #0f172a;
    font-size: 0.97rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.005em;
}

.how-it-works-steps li span {
    display: block;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.5;
}

/* Fuß der linken Aside-Spalte: Hilfe-Link + Zur-Startseite */
.register-aside-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.register-aside-foot .auth-saas-backlink {
    margin-top: 0;
}

.register-help-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.register-help-link:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    text-decoration: none;
}

.register-help-link i {
    color: #1d4ed8;
    font-size: 1rem;
    flex: 0 0 auto;
}

.register-help-link strong {
    color: #1d4ed8;
    font-weight: 700;
}

.auth-saas-submit--shake {
    animation: auth-saas-shake 0.42s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes auth-saas-shake {
    10%, 90%   { transform: translateX(-1px); }
    20%, 80%   { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60%   { transform: translateX(4px); }
}

/* =========================================
   Customer SaaS Surfaces
   ========================================= */
body.customer-saas {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body.customer-saas .container {
    width: min(1280px, 92vw);
}

body.customer-saas .topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

body.customer-saas .nav-link {
    color: #1f2a38;
}

body.customer-saas .nav-link:hover {
    background: rgba(15, 23, 42, 0.06);
}

body.customer-saas .content {
    padding-top: 40px;
    padding-bottom: 70px;
}

body.customer-saas .panel {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: clamp(16px, 2.2vw, 26px);
}

body.customer-saas h1,
body.customer-saas h2 {
    color: #0f172a;
    letter-spacing: -0.01em;
}

body.customer-saas .muted {
    color: #475569;
}

body.customer-saas button,
body.customer-saas .btn {
    border-radius: 10px;
    min-height: 42px;
}

.customer-dashboard-page .dashboard-hero h1 {
    margin-bottom: 8px;
}

.customer-dashboard-page .dashboard-hero p {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 65ch;
}

.customer-dashboard-page .dashboard-hero .actions {
    margin-top: 16px;
}

.table-scroll {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.app-list {
    margin-top: 16px;
}

.app-list-search {
    position: relative;
    max-width: 360px;
    margin-bottom: 18px;
}

.app-list-search i {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.app-list-search input {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 8px 8px 8px 28px;
    color: #0f172a;
    font-size: 0.95rem;
    box-shadow: none;
}

.app-list-search input:focus {
    outline: none;
    box-shadow: none;
}

.app-list-search input::placeholder {
    color: #64748b;
}

.app-list-tabs {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.app-list-tabs button {
    width: auto;
    min-height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    padding: 0 0 11px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
    white-space: nowrap;
    cursor: pointer;
}

.app-list-tabs button span {
    color: #94a3b8;
    font-weight: 500;
}

.app-list-tabs button.is-active {
    color: #0f172a;
    box-shadow: inset 0 -2px 0 #2563eb;
}

.app-list-tabs button.is-active span {
    color: #64748b;
}

.app-list .table-scroll {
    margin-top: 0;
    border: 0;
    border-radius: 0;
}

body.customer-saas .app-list-table {
    min-width: 840px;
    border-collapse: separate;
    border-spacing: 0;
}

body.customer-saas .app-list-table th,
body.customer-saas .app-list-table td {
    border: 0;
    border-bottom: 1px solid #edf0f4;
    padding: 16px 18px;
    vertical-align: middle;
}

body.customer-saas .app-list-table th {
    background: #ffffff;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
}

body.customer-saas .app-list-table td {
    color: #1f2937;
    font-size: 0.92rem;
}

body.customer-saas .app-list-table tbody tr:hover td {
    background: #fafbfc;
}

body.customer-saas .app-list-table tbody tr:last-child td {
    border-bottom: 0;
}

body.customer-saas .app-list-table .status {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
}

body.customer-saas table {
    min-width: 840px;
}

body.customer-saas th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.customer-saas td {
    color: #0f172a;
    background: #ffffff;
}

body.customer-saas tbody tr:hover td {
    background: #f8fafc;
}

body.customer-saas td a {
    color: #1d4ed8;
    font-weight: 600;
}

body.customer-saas .settings-page-head {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.customer-saas .settings-page-head h1 {
    margin-bottom: 8px;
}

body.customer-saas .settings-page-head p {
    margin: 0;
    max-width: 72ch;
}

body.customer-saas .settings-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
}

body.customer-saas .settings-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body.customer-saas .settings-nav {
    gap: 8px;
}

body.customer-saas .settings-nav-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    padding: 10px 12px;
}

body.customer-saas .settings-nav-link:hover {
    background: #f1f5f9;
}

body.customer-saas .settings-nav-link.is-active {
    border-color: #cbd5e1;
    background: #e8f0ff;
    color: #1d4ed8;
}

body.customer-saas .settings-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body.customer-saas .settings-section-head {
    margin-bottom: 16px;
}

body.customer-saas .settings-section-head h2 {
    margin-bottom: 8px;
}

body.customer-saas .settings-section-head p {
    margin: 0;
}

.management-section-note {
    margin-top: 12px;
}

.management-filter-form {
    margin-top: 12px;
}

.management-filter-actions {
    grid-column: 1 / -1;
}

.management-table-wrap {
    margin-top: 16px;
}

.management-price-list {
    margin-top: 12px;
}

.price-list-divider {
    grid-column: 1 / -1;
    height: 1px;
    margin: 4px 0;
    background: #e2e8f0;
}

body.customer-saas .invoice-price-group {
    border-radius: 12px;
    border-color: #e2e8f0;
    background: #ffffff;
}

body.customer-saas .settings-form .grid.two {
    gap: 14px 16px;
}

body.customer-saas .settings-form .settings-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

body.customer-saas .radio-inline {
    margin-bottom: 10px;
}

.settings-form-actions {
    margin-top: 16px;
}

@media (max-width: 980px) {
    body.customer-saas .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* Guest shipping page extraction */
body.guest-shipping-page {
    background: linear-gradient(180deg, #f8f8f6 0%, #f4f6f8 100%);
    color: #111827;
}

body.guest-shipping-page .content {
    padding-top: 26px;
}

.guest-shipping-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.guest-shipping-logo img {
    display: block;
    width: min(310px, 56vw);
    height: auto;
}

.guest-shipping-topbar nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.guest-shipping-topbar a {
    color: #14253d;
    font-weight: 700;
    text-decoration: none;
}

.guest-shipping-topbar nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guest-shipping-topbar nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 37, 61, 0.22);
    box-shadow: 0 12px 28px rgba(20, 37, 61, 0.08);
}

.guest-shipping-topbar .guest-shipping-topbar-cta {
    background: #14253d;
    color: #ffffff;
    border-color: #14253d;
}

.guest-shipping-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(244, 232, 191, 0.82), transparent 34%),
        #ffffff;
    box-shadow: 0 24px 60px rgba(20, 37, 61, 0.08);
}

.guest-shipping-kicker {
    margin: 0 0 12px;
    color: #14253d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.guest-shipping-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.guest-shipping-hero p:not(.guest-shipping-kicker) {
    max-width: 720px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

.guest-shipping-hero aside {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid rgba(20, 37, 61, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, #dff5ea 0%, #f8f8f6 100%);
}

.guest-shipping-hero aside span {
    color: #6b7280;
    font-weight: 700;
}

.guest-shipping-hero aside strong {
    color: #14253d;
    font-size: 1.45rem;
    line-height: 1.18;
}

.guest-shipping-hero aside a,
.guest-account-benefit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #14253d;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.guest-shipping-hero aside a:hover,
.guest-account-benefit-btn:hover {
    transform: translateY(-1px);
    background: #1f3658;
    box-shadow: 0 14px 28px rgba(20, 37, 61, 0.18);
}

.guest-shipping-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 24px;
    align-items: start;
}

.guest-shipping-upload-card,
.guest-account-benefit-box,
.landing-how-panel {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 46px rgba(20, 37, 61, 0.07);
}

.guest-shipping-upload-card {
    padding: clamp(22px, 3vw, 32px);
}

.guest-shipping-card-head {
    margin-bottom: 20px;
}

.guest-shipping-card-head h2,
.landing-how-head h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
    letter-spacing: -0.04em;
}

.guest-shipping-card-head p,
.landing-how-head p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #6b7280;
    line-height: 1.65;
}

.guest-shipping-page .guest-step-indicator {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8f8f6;
}

.guest-shipping-page .guest-step-indicator li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #6b7280;
    font-weight: 800;
}

.guest-shipping-page .guest-step-indicator li.is-active {
    background: #14253d;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 37, 61, 0.18);
}

.guest-shipping-page .guest-step-indicator li.is-done {
    background: #dff5ea;
    color: #14532d;
}

.guest-shipping-page .guest-step h3 {
    color: #111827;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.guest-shipping-page .guest-upload-zone {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 290px;
    padding: clamp(28px, 5vw, 52px);
    border: 1.5px dashed #cbd5e1;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f6 100%);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.guest-shipping-page .guest-upload-zone:hover,
.guest-shipping-page .guest-upload-zone.is-dragover {
    border-color: #14253d;
    background: #ffffff;
    transform: translateY(-1px);
}

.guest-shipping-page .guest-upload-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.guest-shipping-page .guest-upload-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #f4e8bf;
    color: #14253d;
    font-size: 2rem;
}

.guest-shipping-page .guest-upload-zone h4 {
    margin: 4px 0 0;
    color: #111827;
    font-size: 1.18rem;
}

.guest-shipping-page .guest-upload-zone #guest-pick-file-btn,
.guest-shipping-actions button,
.guest-shipping-actions .btn {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 800;
}

.guest-shipping-page .guest-upload-zone #guest-pick-file-btn {
    padding-inline: 22px;
    background: #14253d;
}

.guest-shipping-page .guest-upload-zone #guest-pick-file-btn:hover {
    background: #1f3658;
}

.guest-shipping-actions {
    margin-top: 22px;
    gap: 12px;
}

.guest-advanced-toggle {
    margin: 10px 0 16px;
}

.guest-optional-register-box {
    display: grid;
    gap: 7px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(4, 120, 87, 0.16);
    border-radius: 16px;
    background: #dff5ea;
    color: #14532d;
}

.guest-optional-register-box a {
    width: fit-content;
    color: #14253d;
    font-weight: 800;
}

.guest-account-benefit-box {
    position: sticky;
    top: 20px;
    padding: 24px;
}

.guest-account-benefit-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f4e8bf;
    color: #14253d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guest-account-benefit-box h2 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.03em;
}

.guest-account-benefit-box p {
    color: #6b7280;
    line-height: 1.65;
}

.guest-account-benefit-box ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.guest-account-benefit-box li {
    display: flex;
    gap: 10px;
    color: #111827;
    font-weight: 700;
}

.guest-account-benefit-box li i {
    margin-top: 3px;
    color: #047857;
}

.guest-entry-btn {
    text-decoration: none;
}

.guest-start-panel .guest-entry-cards {
    margin-top: 22px;
}

.landing-how-panel {
    margin-top: 24px;
    padding: clamp(24px, 3vw, 34px);
}

.landing-how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.landing-how-steps article {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f8f8f6;
}

.landing-how-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #14253d;
    color: #ffffff;
    font-weight: 900;
}

.landing-how-steps h3 {
    margin: 0 0 8px;
    color: #111827;
}

.landing-how-steps p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .guest-shipping-hero,
    .guest-shipping-layout,
    .landing-how-steps {
        grid-template-columns: 1fr;
    }

    .guest-account-benefit-box {
        position: static;
    }
}

@media (max-width: 680px) {
    .guest-shipping-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .guest-shipping-topbar nav,
    .guest-shipping-topbar nav a,
    .guest-shipping-hero aside a,
    .guest-account-benefit-btn {
        width: 100%;
    }

    .guest-shipping-page .guest-step-indicator {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-shipping-actions button,
    .guest-shipping-actions .btn {
        width: 100%;
    }
}
.guest-page-limit-message {
    margin: 4px 0 0;
    font-weight: 700;
}

.guest-shipping-actions button:disabled,
.guest-shipping-actions .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.guest-sender-card,
.guest-payment-box {
    margin-top: 18px;
    padding: clamp(18px, 2.5vw, 24px);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
}

.guest-sender-card h4,
.guest-payment-box h4 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.16rem;
    letter-spacing: -0.02em;
}

.guest-sender-card > p,
.guest-payment-box p {
    margin-top: 0;
}

.guest-finish-grid {
    margin-top: 18px;
}

.guest-payment-box {
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f6 100%);
}

.guest-payment-copy {
    display: grid;
    gap: 6px;
}

.guest-payment-kicker {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4e8bf;
    color: #14253d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.guest-paypal-container {
    min-height: 46px;
}

.guest-paypal-status {
    margin: 0;
    font-weight: 700;
}

/* =====================================================================
   MODERN LANDING PAGE  (body.landing-modern)
   Namespace: .lp-*
   Self-contained, does not affect other pages.
   ===================================================================== */

body.landing-modern {
    --lp-bg: #f7f8fb;
    --lp-bg-alt: #ffffff;
    --lp-ink: #0f172a;
    --lp-ink-soft: #475569;
    --lp-ink-muted: #64748b;
    --lp-line: #e6ebf2;
    --lp-line-soft: #eef2f7;
    --lp-primary: #0f172a;
    --lp-primary-hover: #1e293b;
    --lp-accent: #f2ca0b;
    --lp-accent-soft: #fff4c2;
    --lp-accent-ink: #5b4500;
    --lp-success: #047857;
    --lp-success-soft: #dff5ea;
    --lp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    --lp-shadow-md: 0 6px 16px rgba(15, 23, 42, 0.06), 0 18px 40px rgba(15, 23, 42, 0.06);
    --lp-shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.10);
    --lp-radius: 18px;
    --lp-radius-lg: 24px;

    background: var(--lp-bg);
    color: var(--lp-ink);
}

/* .topbar is already modern globally; landing-modern uses the same look. */
body.landing-modern .topbar {
    border-bottom-color: var(--lp-line);
}

body.landing-modern .content {
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.landing-modern .container.content {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* ---- Buttons (lp-) ---- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
    white-space: nowrap;
}

.lp-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.lp-btn-primary {
    background: var(--lp-primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.lp-btn-primary:hover {
    background: var(--lp-primary-hover);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.lp-btn-secondary {
    background: var(--lp-accent);
    color: #111827;
    border-color: #e2b60f;
}

.lp-btn-secondary:hover {
    background: #ecbf04;
}

.lp-btn-ghost {
    background: #ffffff;
    color: var(--lp-ink);
    border-color: var(--lp-line);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.lp-btn-ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.lp-btn-lg {
    min-height: 58px;
    padding: 0 28px;
    font-size: 1.05rem;
}

/* ---- Section scaffolding ---- */
.lp-section {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 110px) 0;
}

.lp-section-alt {
    width: 100%;
    background: var(--lp-bg-alt);
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
}

.lp-section-alt > * {
    width: min(1200px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

.lp-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.lp-section-kicker {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent-ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lp-section-head h2 {
    margin: 0 0 14px;
    color: var(--lp-ink);
    font-size: clamp(1.85rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.lp-section-head p {
    margin: 0;
    color: var(--lp-ink-soft);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.62;
}

/* =====================================================================
   HERO
   ===================================================================== */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 84px);
    background: linear-gradient(180deg, #ffffff 0%, var(--lp-bg) 100%);
    border-bottom: 1px solid var(--lp-line);
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 40% at 80% 0%, rgba(242, 202, 11, 0.15), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(15, 23, 42, 0.04), transparent 60%);
}

.lp-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    opacity: 0.55;
}

.lp-hero-inner {
    position: relative;
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 22px;
    border: 1px solid var(--lp-line);
    background: #ffffff;
    border-radius: 999px;
    color: var(--lp-ink);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--lp-shadow-sm);
}

.lp-eyebrow i {
    color: var(--lp-success);
}

.lp-hero-title {
    margin: 0 0 18px;
    color: var(--lp-ink);
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.lp-hero-title-accent {
    background: linear-gradient(180deg, transparent 60%, var(--lp-accent) 60%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 0 4px;
}

.lp-hero-sub {
    margin: 0 0 30px;
    color: var(--lp-ink-soft);
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.6;
    max-width: 56ch;
}

.lp-hero-sub strong {
    color: var(--lp-ink);
}

.lp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.lp-hero-microcopy {
    margin: 0;
    color: var(--lp-ink-soft);
    font-size: 0.95rem;
}

.lp-hero-microcopy i {
    color: var(--lp-accent-ink);
    margin-right: 6px;
}

.lp-hero-microcopy strong {
    color: var(--lp-ink);
}

.lp-hero-microcopy a {
    color: var(--lp-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--lp-accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* ---- Hero Mock Card ---- */
.lp-hero-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-lg);
    overflow: hidden;
    transform: rotate(-0.4deg);
}

.lp-mock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--lp-line);
}

.lp-mock-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #cbd5e1;
}

.lp-mock-dot-r { background: #f87171; }
.lp-mock-dot-y { background: #fbbf24; }
.lp-mock-dot-g { background: #34d399; }

.lp-mock-title {
    margin-left: 8px;
    color: var(--lp-ink-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.lp-mock-body {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.lp-mock-upload {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    background: #fafbfd;
}

.lp-mock-upload > i {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 1.05rem;
}

.lp-mock-upload strong {
    display: block;
    color: var(--lp-ink);
    font-size: 0.95rem;
}

.lp-mock-upload span {
    color: var(--lp-ink-muted);
    font-size: 0.82rem;
}

.lp-mock-ok {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-success-soft);
    color: var(--lp-success);
    font-size: 0.75rem;
}

.lp-mock-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lp-mock-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--lp-ink-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.lp-mock-steps li.is-done {
    color: var(--lp-ink);
}

.lp-mock-steps li.is-current {
    background: var(--lp-accent-soft);
    color: var(--lp-accent-ink);
}

.lp-mock-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.7rem;
}

.lp-mock-steps li.is-done .lp-mock-step-dot {
    background: var(--lp-success-soft);
    color: var(--lp-success);
}

.lp-mock-steps li.is-current .lp-mock-step-dot {
    background: #fde68a;
    color: var(--lp-accent-ink);
}

.lp-mock-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--lp-primary);
    color: #ffffff;
    font-size: 0.95rem;
}

.lp-mock-foot strong {
    font-size: 1.2rem;
    font-weight: 800;
}

@media (min-width: 980px) {
    .lp-hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    }
}

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.lp-trust {
    width: min(1200px, 92vw);
    margin: -28px auto 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    box-shadow: var(--lp-shadow-md);
}

.lp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--lp-ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.lp-trust-item i {
    color: var(--lp-success);
}

.lp-trust .fa-divider {
    width: 1px;
    height: 22px;
    background: var(--lp-line);
}

@media (max-width: 880px) {
    .lp-trust {
        border-radius: 18px;
    }
    .lp-trust .fa-divider {
        display: none;
    }
}

/* =====================================================================
   STEPS
   ===================================================================== */
.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    counter-reset: lpstep;
}

.lp-step {
    position: relative;
    padding: 30px 26px 28px;
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lp-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-md);
    border-color: #d6dee9;
}

.lp-step-num {
    position: absolute;
    top: 22px;
    right: 24px;
    color: var(--lp-line);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.lp-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-primary);
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.lp-step h3 {
    margin: 0 0 8px;
    color: var(--lp-ink);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.lp-step p {
    margin: 0;
    color: var(--lp-ink-soft);
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (min-width: 820px) {
    .lp-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =====================================================================
   FEATURES
   ===================================================================== */
.lp-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.lp-feature {
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lp-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-md);
    border-color: #d6dee9;
}

.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.15rem;
    background: var(--lp-accent-soft);
    color: var(--lp-accent-ink);
}

.lp-feature-icon-time  { background: #e0f2fe; color: #0369a1; }
.lp-feature-icon-cost  { background: var(--lp-accent-soft); color: var(--lp-accent-ink); }
.lp-feature-icon-legal { background: #ede9fe; color: #5b21b6; }
.lp-feature-icon-track { background: var(--lp-success-soft); color: var(--lp-success); }
.lp-feature-icon-brand { background: #fee2e2; color: #991b1b; }
.lp-feature-icon-team  { background: #e0e7ff; color: #3730a3; }

.lp-feature h3 {
    margin: 0 0 8px;
    color: var(--lp-ink);
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

.lp-feature p {
    margin: 0;
    color: var(--lp-ink-soft);
    line-height: 1.6;
    font-size: 0.96rem;
}

@media (min-width: 700px) {
    .lp-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .lp-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =====================================================================
   PRICING
   ===================================================================== */
.lp-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.lp-price-card {
    position: relative;
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lp-price-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-md);
    border-color: #d6dee9;
}

.lp-price-card-feat {
    border-color: var(--lp-primary);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.lp-price-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--lp-primary);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-price-card header {
    margin-bottom: 12px;
}

.lp-price-pill {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--lp-line-soft);
    color: var(--lp-ink-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-price-card h3 {
    margin: 0;
    color: var(--lp-ink);
    font-size: 1.18rem;
    letter-spacing: -0.01em;
}

.lp-price-amount {
    margin: 14px 0 16px;
    color: var(--lp-ink);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.lp-price-amount span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lp-ink-soft);
    margin-left: 2px;
}

.lp-price-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.lp-price-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lp-ink);
    font-size: 0.92rem;
}

.lp-price-card li i {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-success-soft);
    color: var(--lp-success);
    font-size: 0.62rem;
    flex: 0 0 18px;
}

.lp-price-note {
    margin: 28px auto 0;
    max-width: 720px;
    text-align: center;
    color: var(--lp-ink-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.lp-price-note i {
    color: var(--lp-ink-soft);
    margin-right: 6px;
}

@media (min-width: 700px) {
    .lp-pricing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .lp-pricing {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =====================================================================
   PLANS  (Gast vs. Konto)
   ===================================================================== */
.lp-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.lp-plan {
    position: relative;
    padding: 30px 28px;
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-plan-featured {
    background: linear-gradient(180deg, #ffffff 0%, #fefcf3 100%);
    border-color: var(--lp-primary);
    box-shadow: var(--lp-shadow-lg);
}

.lp-plan-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--lp-success);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-plan-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: var(--lp-ink);
    font-size: 1.15rem;
    flex: 0 0 44px;
}

.lp-plan-icon-gold {
    background: var(--lp-accent-soft);
    color: var(--lp-accent-ink);
}

.lp-plan h3 {
    margin: 0;
    color: var(--lp-ink);
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.lp-plan-desc {
    margin: 0;
    color: var(--lp-ink-soft);
    line-height: 1.6;
    font-size: 0.98rem;
}

.lp-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.lp-plan-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lp-ink);
    font-size: 0.95rem;
    font-weight: 500;
}

.lp-plan-list li i {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-success-soft);
    color: var(--lp-success);
    font-size: 0.62rem;
    flex: 0 0 18px;
}

.lp-plan-price {
    margin: 0;
    padding-top: 4px;
    color: var(--lp-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.lp-plan-price strong {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-plan-price span {
    color: var(--lp-ink-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.lp-plan .lp-btn {
    width: 100%;
    margin-top: auto;
}

@media (min-width: 820px) {
    .lp-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================================================================
   AUDIENCE
   ===================================================================== */
.lp-audience {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.lp-audience-card {
    padding: 26px 22px;
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lp-audience-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow-md);
    border-color: #d6dee9;
}

.lp-audience-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: var(--lp-line-soft);
    color: var(--lp-primary);
    font-size: 1.05rem;
}

.lp-audience-card h3 {
    margin: 0 0 8px;
    color: var(--lp-ink);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.lp-audience-card p {
    margin: 0;
    color: var(--lp-ink-soft);
    line-height: 1.55;
    font-size: 0.94rem;
}

@media (min-width: 700px) {
    .lp-audience {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .lp-audience {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =====================================================================
   FAQ
   ===================================================================== */
.lp-faq {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.lp-faq-item {
    background: #ffffff;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    box-shadow: var(--lp-shadow-sm);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lp-faq-item[open] {
    border-color: #cbd5e1;
    box-shadow: var(--lp-shadow-md);
}

.lp-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    color: var(--lp-ink);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    content: "\002B";
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--lp-line-soft);
    color: var(--lp-ink);
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.18s ease;
}

.lp-faq-item[open] summary::after {
    content: "\2212";
    background: var(--lp-primary);
    color: #ffffff;
}

.lp-faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--lp-ink-soft);
    line-height: 1.66;
    font-size: 0.97rem;
}

.lp-faq-item p strong {
    color: var(--lp-ink);
}

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.lp-final-cta {
    padding: clamp(48px, 7vw, 90px) 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(242, 202, 11, 0.16), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    color: #f8fafc;
    text-align: center;
    border-top: 1px solid #0b1220;
}

.lp-final-cta-inner {
    width: min(800px, 92vw);
    margin: 0 auto;
}

.lp-final-cta h2 {
    margin: 0 0 14px;
    font-size: clamp(1.85rem, 4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: #ffffff;
}

.lp-final-cta p {
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.6;
}

.lp-final-cta .lp-hero-cta {
    justify-content: center;
    margin-bottom: 24px;
}

.lp-final-cta .lp-btn-primary {
    background: var(--lp-accent);
    color: #111827;
    border-color: var(--lp-accent);
    box-shadow: 0 10px 24px rgba(242, 202, 11, 0.3);
}

.lp-final-cta .lp-btn-primary:hover {
    background: #ecbf04;
    border-color: #ecbf04;
}

.lp-final-cta .lp-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.lp-final-cta .lp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}

.lp-final-cta-note {
    margin: 0;
    color: #94a3b8;
    font-size: 0.88rem;
}

.lp-final-cta-note i {
    margin: 0 4px 0 14px;
    color: var(--lp-accent);
}

.lp-final-cta-note i:first-child {
    margin-left: 0;
}

/* =====================================================================
   FOOTER tweaks for landing-modern
   ===================================================================== */
body.landing-modern .footer {
    background: #ffffff;
    border-top: 1px solid var(--lp-line);
}

body.landing-modern .footer .container {
    width: min(1200px, 92vw);
    padding: 26px 0;
}

body.landing-modern .footer-links a {
    color: var(--lp-ink);
}

body.landing-modern .footer-note {
    color: var(--lp-ink-muted);
}

/* =====================================================================
   Small screens
   ===================================================================== */
@media (max-width: 640px) {
    .lp-hero-card {
        transform: none;
    }
    .lp-btn {
        width: 100%;
    }
    .lp-hero-cta .lp-btn {
        flex: 1 1 100%;
    }
    .lp-trust {
        padding: 16px 18px;
        gap: 10px 18px;
    }
    .lp-trust-item {
        font-size: 0.85rem;
    }
}

/* =====================================================================
   GLOBAL MODERNIZATION
   Applies to all pages that do NOT set a specific body class
   (default styling for info pages, admin/customer pages without
   customer-saas, etc.).
   Existing body classes (.customer-saas, .auth-saas, .guest-shipping-page,
   .landing-modern, .landing-parkdienst) keep their higher-specificity
   overrides intact.
   ===================================================================== */

body {
    background: #f7f8fb;
    color: #0f172a;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Topbar: clean white with subtle border, sticky */
.topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    color: #0f172a;
    border-bottom: 1px solid #e6ebf2;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar a {
    color: #0f172a;
}

.topbar-row {
    padding: 12px 0;
}

.brand-logo {
    height: 52px;
}

/* Nav links: dark text, soft hover */
.nav-link {
    color: #0f172a;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-dropdown-summary:hover {
    background: rgba(15, 23, 42, 0.06);
}

/* Container width: tighter for modern feel */
.container {
    width: min(1280px, 92vw);
}

/* Content vertical rhythm */
.content {
    padding: 32px 0 56px;
}

/* Panel: white card, soft shadow, larger radius */
.panel {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    padding: 26px 28px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
                0 8px 28px rgba(15, 23, 42, 0.05);
}

.panel h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.panel h2 {
    margin: 24px 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.panel h3 {
    margin: 18px 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.panel p,
.panel li {
    color: #334155;
    line-height: 1.62;
}

.panel ul,
.panel ol {
    padding-left: 20px;
}

.panel ul li,
.panel ol li {
    margin-bottom: 4px;
}

/* Buttons: align with landing accent system */
button, .btn {
    border-radius: 10px;
    padding: 11px 18px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    font-weight: 700;
    font-size: 0.96rem;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

button:hover, .btn:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f2ca0b;
    color: #111827;
    border-color: #e2b60f;
}

.btn-secondary:hover {
    background: #ecbf04;
    border-color: #ecbf04;
}

.btn-danger {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-danger:hover {
    background: #991b1b;
    border-color: #991b1b;
}

.btn-create-order {
    background: #047857;
    border-color: #047857;
}

.btn-create-order:hover {
    background: #065f46;
    border-color: #065f46;
}

/* Inputs: rounded, focus ring */
input, select, textarea {
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
}

/* Tables: softer borders, modern header */
table {
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    border: none;
    border-bottom: 1px solid #eef2f7;
    padding: 12px 14px;
}

th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
}

tbody tr:hover td {
    background: #fafbfc;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges: keep colors but softer pill */
.status {
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Flash messages: pill shape, less harsh */
.flash {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.flash-success {
    background: #dff5ea;
    color: #065f46;
    border-color: #a7e8c7;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fbb4b4;
}

.flash-info {
    background: #e0f2fe;
    color: #0c4a6e;
    border-color: #a5d8f7;
}

/* Footer: clean white with subtle border */
.footer {
    background: #ffffff;
    border-top: 1px solid #e6ebf2;
    padding: 26px 0 36px;
    color: #64748b;
    margin-top: 48px;
}

.footer-links a {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a + a::before {
    color: #cbd5e1;
}

.footer-note {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Muted helper */
.muted {
    color: #64748b;
}

/* =====================================================================
   INFO PAGE  (body.info-page)
   Long-form legal & info content: better typography, max-width, ToC-ready.
   ===================================================================== */
body.info-page .content {
    padding-top: 40px;
    padding-bottom: 64px;
}

body.info-page .container.content {
    width: min(820px, 92vw);
}

body.info-page .panel {
    padding: clamp(28px, 4vw, 48px);
    margin-bottom: 0;
}

body.info-page .panel h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e6ebf2;
}

body.info-page .panel h2 {
    margin-top: 32px;
    font-size: 1.15rem;
}

body.info-page .panel h2:first-of-type {
    margin-top: 24px;
}

body.info-page .panel p,
body.info-page .panel li {
    font-size: 1rem;
    line-height: 1.72;
    color: #334155;
}

body.info-page .panel p strong {
    color: #0f172a;
}

body.info-page .panel ul,
body.info-page .panel ol {
    margin: 8px 0 16px;
}

body.info-page .panel ul li,
body.info-page .panel ol li {
    margin-bottom: 6px;
}

body.info-page .info-page-meta {
    margin: 18px 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* =====================================================================
   ACCENT SYSTEM ALIGNMENT
   Update existing modern body classes so their accent button colour
   matches the landing page (gold accent + dark navy primary).
   ===================================================================== */

/* auth-saas: gold register button stays, but tune the focus ring */
body.auth-saas .auth-saas-form-group input:focus {
    border-color: #f2ca0b;
    box-shadow: 0 0 0 3px rgba(242, 202, 11, 0.22);
}

/* customer-saas: match primary button to navy + add subtle accent hover */
body.customer-saas button,
body.customer-saas .btn {
    border-radius: 10px;
}

body.customer-saas .btn-secondary {
    background: #f2ca0b;
    color: #111827;
    border-color: #e2b60f;
}

body.customer-saas .btn-secondary:hover {
    background: #ecbf04;
    border-color: #ecbf04;
}

/* guest-shipping-page: keep its identity but soften the topbar to match */
body.guest-shipping-page .topbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e6ebf2;
}

/* =====================================================================
   Small screens
   ===================================================================== */
@media (max-width: 640px) {
    .topbar-row {
        padding: 10px 0;
    }
    .brand-logo {
        height: 42px;
    }
    .panel {
        padding: 20px 18px;
        border-radius: 16px;
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* =====================================================================
   GASTVERSAND PAGE  (body.gastversand-page)
   Modernes Layout: lp-Hero + lp-Trust + dedizierte Flow-Karte.
   Sitzt auf landing-modern + guest-shipping-page, justiert nur den
   Inhalts-Container und das Innenleben des Upload-Flows.
   ===================================================================== */

body.gastversand-page .lp-hero {
    padding-bottom: clamp(40px, 5vw, 64px);
}

body.gastversand-page .gastversand-hero {
    align-items: stretch;
}

body.gastversand-page .gastversand-benefit-card {
    align-self: stretch;
}

body.gastversand-page .gastversand-benefit-card .lp-btn {
    width: 100%;
}

body.gastversand-page .gastversand-flow-section {
    padding-top: clamp(40px, 5vw, 64px);
}

/* Outer wrapper around the multi-step form */
body.gastversand-page .gastversand-flow-card {
    padding: clamp(22px, 3vw, 38px);
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
                0 18px 46px rgba(15, 23, 42, 0.06);
    max-width: 920px;
    margin: 0 auto;
}

/* Step indicator: 4 pills, modern look */
body.gastversand-page .guest-step-indicator {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 28px;
    padding: 6px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f7f8fb;
    list-style: none;
    box-shadow: none;
}

body.gastversand-page .guest-step-indicator li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
}

body.gastversand-page .guest-step-indicator li.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

body.gastversand-page .guest-step-indicator li.is-done {
    background: #dff5ea;
    border-color: #c7ebd7;
    color: #047857;
}

/* Step headings */
body.gastversand-page .guest-step h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    letter-spacing: -0.02em;
    font-weight: 800;
}

body.gastversand-page .guest-step > p.muted {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.6;
}

/* Upload dropzone */
body.gastversand-page .guest-upload-zone {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 260px;
    padding: clamp(28px, 5vw, 48px);
    border: 1.5px dashed #cfd8e3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
    text-align: center;
}

body.gastversand-page .guest-upload-zone:hover,
body.gastversand-page .guest-upload-zone.is-dragover {
    border-color: #0f172a;
    background: #ffffff;
    transform: translateY(-1px);
}

body.gastversand-page .guest-upload-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.gastversand-page .guest-upload-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff4c2;
    color: #5b4500;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

body.gastversand-page .guest-upload-zone h4 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.gastversand-page .guest-upload-format {
    margin: 0 0 12px;
    color: #64748b;
}

body.gastversand-page #guest-pick-file-btn {
    width: auto;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    font-weight: 700;
    cursor: pointer;
}

body.gastversand-page #guest-pick-file-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-1px);
}

body.gastversand-page .guest-upload-price {
    margin-top: 14px;
    color: #0f172a;
    font-weight: 700;
}

body.gastversand-page .guest-upload-price::after {
    content: "";
}

body.gastversand-page .guest-page-limit-message {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
}

body.gastversand-page .guest-page-limit-message.hint-success {
    color: #047857;
}

body.gastversand-page .guest-page-limit-message.hint-error {
    color: #b91c1c;
}

/* Preview panel */
body.gastversand-page .guest-preview-panel {
    margin-top: 20px;
    padding: 22px;
    background: #f7f8fb;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: none;
}

body.gastversand-page .guest-preview-panel h4 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

body.gastversand-page .guest-preview-panel .hint-info { color: #1d4ed8; }
body.gastversand-page .guest-preview-panel .hint-success { color: #047857; }
body.gastversand-page .guest-preview-panel .hint-error { color: #b91c1c; }

body.gastversand-page .doc-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

body.gastversand-page .doc-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #ffffff;
    cursor: grab;
}

body.gastversand-page .doc-card.dragging {
    opacity: 0.6;
}

body.gastversand-page .doc-card.drag-over {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

body.gastversand-page .doc-card-title {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

body.gastversand-page .doc-thumb-wrap {
    position: relative;
    background: #f7f8fb;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    overflow: hidden;
}

body.gastversand-page .doc-page-layer {
    position: relative;
    width: 100%;
    height: 100%;
}

body.gastversand-page .doc-thumb-fallback {
    padding: 24px;
    color: #94a3b8;
    text-align: center;
    font-size: 0.85rem;
}

body.gastversand-page .doc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.gastversand-page .doc-type-badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff4c2;
    color: #5b4500;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.gastversand-page .doc-remove-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
}

body.gastversand-page .doc-remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    transform: none;
}

body.gastversand-page .address-highlight-overlay {
    position: absolute;
    border: 2px solid #f2ca0b;
    background: rgba(242, 202, 11, 0.18);
    border-radius: 4px;
    pointer-events: none;
}

/* Step 2: option rows */
body.gastversand-page .guest-option-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

body.gastversand-page .guest-option-row:hover {
    border-color: #cbd5e1;
    background: #f7f8fb;
}

body.gastversand-page .guest-option-row input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0f172a;
}

body.gastversand-page .guest-option-row span {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.55;
}

body.gastversand-page .guest-option-row span strong {
    color: #0f172a;
    font-weight: 700;
}

body.gastversand-page .guest-color-hint {
    margin: 4px 0 14px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Advanced toggle */
body.gastversand-page .guest-advanced-toggle {
    width: auto;
    margin: 6px 0 14px;
    padding: 10px 16px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    font-weight: 600;
}

body.gastversand-page .guest-advanced-toggle:hover {
    background: #f7f8fb;
    border-color: #cbd5e1;
}

/* Action button rows */
body.gastversand-page .guest-shipping-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

body.gastversand-page .guest-shipping-actions button {
    width: auto;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    font-weight: 700;
}

body.gastversand-page .guest-shipping-actions button:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-1px);
}

body.gastversand-page .guest-shipping-actions .btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #e6ebf2;
}

body.gastversand-page .guest-shipping-actions .btn-secondary:hover {
    background: #f7f8fb;
    border-color: #cbd5e1;
}

body.gastversand-page .guest-shipping-actions .btn-create-order {
    background: #047857;
    color: #ffffff;
    border-color: #047857;
}

body.gastversand-page .guest-shipping-actions .btn-create-order:hover {
    background: #065f46;
    border-color: #065f46;
}

body.gastversand-page .guest-shipping-actions button:disabled,
body.gastversand-page .guest-shipping-actions .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Step 3: Summary list */
body.gastversand-page .guest-summary-documents {
    margin: 0 0 14px;
    display: grid;
    gap: 8px;
}

body.gastversand-page .guest-summary-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f7f8fb;
}

body.gastversand-page .guest-summary-doc-row span {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
}

body.gastversand-page .guest-summary-doc-row strong {
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

body.gastversand-page .price-list {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

body.gastversand-page .price-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #334155;
}

body.gastversand-page .price-list > div:hover {
    background: #f7f8fb;
}

body.gastversand-page .price-list > div strong {
    color: #0f172a;
    font-weight: 700;
}

body.gastversand-page .price-list .price-total {
    margin-top: 6px;
    padding: 14px 16px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
}

body.gastversand-page .price-list .price-total:hover {
    background: #0f172a;
}

body.gastversand-page .price-list .price-total span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.gastversand-page .price-list .price-total strong {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

/* Step 4: Sender card */
body.gastversand-page .guest-sender-card {
    margin: 0 0 20px;
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: none;
}

body.gastversand-page .guest-sender-card h4 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.gastversand-page .guest-sender-card > p.muted {
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.6;
}

body.gastversand-page .guest-finish-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.gastversand-page .guest-finish-grid label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
}

body.gastversand-page .guest-finish-grid input {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.95rem;
    background: #ffffff;
}

body.gastversand-page .guest-finish-grid input:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

body.gastversand-page #guest-finish-feedback {
    margin: 6px 0 14px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
}

body.gastversand-page #guest-finish-feedback.hint-success { color: #047857; }
body.gastversand-page #guest-finish-feedback.hint-error { color: #b91c1c; }

/* PayPal box */
body.gastversand-page .guest-payment-box {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 2.5vw, 28px);
    margin: 0 0 18px;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

body.gastversand-page .guest-payment-copy {
    display: grid;
    gap: 6px;
}

body.gastversand-page .guest-payment-kicker {
    display: inline-block;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff4c2;
    color: #5b4500;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.gastversand-page .guest-payment-box h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

body.gastversand-page .guest-payment-box p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

body.gastversand-page .guest-paypal-container {
    min-height: 46px;
}

body.gastversand-page .guest-paypal-status {
    margin: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
}

body.gastversand-page .guest-paypal-status.hint-info { color: #1d4ed8; }
body.gastversand-page .guest-paypal-status.hint-success { color: #047857; }
body.gastversand-page .guest-paypal-status.hint-error { color: #b91c1c; }

/* Optional register hint */
body.gastversand-page .guest-optional-register-box {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    padding: 16px 20px;
    border: 1px solid #c7ebd7;
    border-radius: 16px;
    background: #dff5ea;
    color: #065f46;
}

body.gastversand-page .guest-optional-register-box strong {
    color: #065f46;
    font-weight: 800;
}

body.gastversand-page .guest-optional-register-box a {
    width: fit-content;
    color: #065f46;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.gastversand-page .guest-fast-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #dff5ea;
    border: 1px solid #c7ebd7;
    color: #065f46;
    font-weight: 600;
}

@media (min-width: 720px) {
    body.gastversand-page .guest-finish-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body.gastversand-page .guest-step-indicator {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.gastversand-page .guest-shipping-actions button,
    body.gastversand-page #guest-pick-file-btn {
        width: 100%;
    }
}

/* =====================================================================
   CUSTOMER LIST PANELS  (Dashboard & Management)
   Modernes Listen-Design: Pill-Suche, Pill-Tabs, weiche Status-Badges,
   sauberere Tabellenzeilen.
   Wirkt auf body.customer-saas .app-list und benachbarte Komponenten,
   plus Dashboard-Hero.
   ===================================================================== */

/* ---- Hero-Panel auf Dashboard ---- */
body.customer-saas .dashboard-hero {
    padding: clamp(24px, 3vw, 36px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
                0 12px 36px rgba(15, 23, 42, 0.06);
}

body.customer-saas .dashboard-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

body.customer-saas .dashboard-hero p {
    margin: 0 0 18px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 70ch;
}

body.customer-saas .dashboard-hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.customer-saas .dashboard-hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.customer-saas .dashboard-hero .btn:hover {
    transform: translateY(-1px);
}

body.customer-saas .dashboard-hero .btn-create-order {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
}

body.customer-saas .dashboard-hero .btn-create-order:hover {
    background: #1e293b;
    border-color: #1e293b;
}

body.customer-saas .dashboard-hero .btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e6ebf2;
}

body.customer-saas .dashboard-hero .btn-secondary:hover {
    background: #f7f8fb;
    border-color: #cbd5e1;
}

/* ---- Listen-Panel allgemein ---- */
body.customer-saas .dashboard-orders-panel,
body.customer-saas .management-table-wrap {
    border-radius: 20px;
}

body.customer-saas .dashboard-orders-panel h2,
body.customer-saas .settings-section-head h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f172a;
}

body.customer-saas .app-list {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

/* ---- Suche: Pill mit Border ---- */
body.customer-saas .app-list-search {
    position: relative;
    max-width: 420px;
    margin: 0;
}

body.customer-saas .app-list-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.92rem;
    pointer-events: none;
}

body.customer-saas .app-list-search input {
    width: 100%;
    height: 44px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 16px 0 40px;
    color: #0f172a;
    font-size: 0.95rem;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.customer-saas .app-list-search input:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}

body.customer-saas .app-list-search input::placeholder {
    color: #94a3b8;
}

/* ---- Tabs: segmentierte Pill-Buttons ---- */
body.customer-saas .app-list-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f7f8fb;
    padding: 6px;
    margin: 0;
}

body.customer-saas .app-list-tabs button {
    width: auto;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.customer-saas .app-list-tabs button:hover {
    background: #ffffff;
    color: #0f172a;
    transform: none;
}

body.customer-saas .app-list-tabs button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    border: 1px solid #e6ebf2;
}

body.customer-saas .app-list-tabs button.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

body.customer-saas .app-list-tabs button.is-active span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: transparent;
}

/* ---- Tabelle: weiche Karten-Optik ---- */
body.customer-saas .app-list .table-scroll {
    margin-top: 0;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

body.customer-saas .app-list-table {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

body.customer-saas .app-list-table thead tr {
    background: #f7f8fb;
}

body.customer-saas .app-list-table th {
    background: #f7f8fb;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #eef2f7;
}

body.customer-saas .app-list-table td {
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #0f172a;
    vertical-align: middle;
    background: #ffffff;
}

body.customer-saas .app-list-table tbody tr {
    transition: background 0.14s ease;
}

body.customer-saas .app-list-table tbody tr:hover td {
    background: #fafbfd;
}

body.customer-saas .app-list-table tbody tr:last-child td {
    border-bottom: 0;
}

body.customer-saas .app-list-table td:first-child {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
}

body.customer-saas .app-list-table td a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 1px;
    transition: border-color 0.14s ease, color 0.14s ease;
}

body.customer-saas .app-list-table td a:hover {
    color: #0f172a;
    border-color: #0f172a;
    text-decoration: none;
}

/* Empty-state Zeile */
body.customer-saas .app-list-table tbody tr td[colspan]:only-child {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 32px 18px;
}

/* ---- Status-Badges: Soft-Pill (farbiges Soft-Bg + dunkler Text) ---- */
body.customer-saas .status,
body.customer-saas .app-list-table .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #334155;
}

body.customer-saas .status::before,
body.customer-saas .app-list-table .status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

body.customer-saas .status-uploaded,
body.customer-saas .app-list-table .status-uploaded {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

body.customer-saas .status-accepted,
body.customer-saas .app-list-table .status-accepted {
    background: #ccfbf1;
    color: #115e59;
    border-color: #99f6e4;
}

body.customer-saas .status-printed,
body.customer-saas .app-list-table .status-printed {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #ddd6fe;
}

body.customer-saas .status-enveloped,
body.customer-saas .app-list-table .status-enveloped {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

body.customer-saas .status-shipped,
body.customer-saas .app-list-table .status-shipped {
    background: #dff5ea;
    color: #065f46;
    border-color: #a7e8c7;
}

body.customer-saas .status-cancelled,
body.customer-saas .app-list-table .status-cancelled {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

body.customer-saas .status-error,
body.customer-saas .app-list-table .status-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fbb4b4;
}

/* ---- Filter-Form (Management) ---- */
body.customer-saas .management-section-note {
    margin: 6px 0 18px;
    color: #64748b;
}

body.customer-saas .management-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 18px;
    background: #f7f8fb;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    margin-bottom: 18px;
}

body.customer-saas .management-filter-form label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.customer-saas .management-filter-form input,
body.customer-saas .management-filter-form select {
    width: 100%;
    height: 42px;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    padding: 0 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.94rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.customer-saas .management-filter-form input:focus,
body.customer-saas .management-filter-form select:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}

body.customer-saas .management-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

body.customer-saas .management-filter-actions button,
body.customer-saas .management-filter-actions .btn {
    width: auto;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: none;
}

body.customer-saas .management-filter-actions button[type="submit"] {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
}

body.customer-saas .management-filter-actions button[type="submit"]:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-1px);
}

body.customer-saas .management-filter-actions .btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e6ebf2;
}

body.customer-saas .management-filter-actions .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

body.customer-saas .management-filter-actions .btn:not(.btn-secondary) {
    background: #f2ca0b;
    color: #111827;
    border: 1px solid #e2b60f;
}

body.customer-saas .management-filter-actions .btn:not(.btn-secondary):hover {
    background: #ecbf04;
    border-color: #ecbf04;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
    body.customer-saas .app-list-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    body.customer-saas .app-list-search {
        max-width: none;
    }
}

/* =====================================================================
   NEW ORDER PAGE  (body.customer-new-order-page)
   Mehrstufiges Auftrags-Formular im modernen lp-Stil:
   Hero, sektionierte Karten mit Schritt-Nummern, Dropzone, Doc-Cards,
   2-Spalten-Grid, Action-Bar.
   Sitzt auf customer-saas.
   ===================================================================== */

body.customer-new-order-page .content {
    padding-bottom: 96px;
}

/* ---- Page-Hero ---- */
body.customer-new-order-page .new-order-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(24px, 3vw, 36px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
                0 12px 36px rgba(15, 23, 42, 0.06);
    margin-bottom: 22px;
}

body.customer-new-order-page .new-order-hero-inner {
    flex: 1 1 380px;
    min-width: 0;
}

body.customer-new-order-page .new-order-kicker {
    display: inline-block;
    padding: 5px 11px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #fff4c2;
    color: #5b4500;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.customer-new-order-page .new-order-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

body.customer-new-order-page .new-order-hero p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.62;
    max-width: 70ch;
}

body.customer-new-order-page .new-order-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e6ebf2;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

body.customer-new-order-page .new-order-hero-back:hover {
    text-decoration: none;
    border-color: #cbd5e1;
    background: #f7f8fb;
    transform: translateY(-1px);
}

/* ---- Form scaffold ---- */
body.customer-new-order-page .new-order-form {
    display: grid;
    gap: 18px;
}

body.customer-new-order-page .new-order-section {
    padding: clamp(20px, 2.6vw, 30px);
    border-radius: 20px;
    border: 1px solid #e6ebf2;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
                0 8px 28px rgba(15, 23, 42, 0.05);
    margin: 0;
}

body.customer-new-order-page .new-order-section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

body.customer-new-order-page .new-order-step {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

body.customer-new-order-page .new-order-section-head h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

body.customer-new-order-page .new-order-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.55;
}

body.customer-new-order-page .new-order-section-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f0f7ff;
    color: #155083;
    border: 1px solid #d4e6f9;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.customer-new-order-page .new-order-section-hint i {
    margin-top: 2px;
    color: #1d4ed8;
    flex: 0 0 auto;
}

/* ---- Dropzone ---- */
body.customer-new-order-page .new-order-dropzone {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: clamp(22px, 3vw, 30px);
    border: 1.5px dashed #cfd8e3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.customer-new-order-page .new-order-dropzone:hover,
body.customer-new-order-page .new-order-dropzone.is-dragover {
    border-color: #0f172a;
    background: #ffffff;
    transform: translateY(-1px);
}

body.customer-new-order-page .new-order-dropzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff4c2;
    color: #5b4500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

body.customer-new-order-page .new-order-dropzone-text {
    display: grid;
    gap: 4px;
}

body.customer-new-order-page .new-order-dropzone-text strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.005em;
}

body.customer-new-order-page .new-order-dropzone-text span {
    color: #64748b;
    font-size: 0.88rem;
}

body.customer-new-order-page .new-order-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ---- Preview block ---- */
body.customer-new-order-page .new-order-preview-block {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    background: #f7f8fb;
}

body.customer-new-order-page .new-order-preview-head h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.customer-new-order-page .new-order-preview-head p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.customer-new-order-page .new-order-preview-empty {
    padding: 22px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    border: 1px dashed #d6dee9;
    border-radius: 12px;
    background: #ffffff;
}

/* Override existing .doc-card chrome inside this page */
body.customer-new-order-page .doc-card {
    width: 280px;
    min-width: 280px;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

body.customer-new-order-page .doc-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

body.customer-new-order-page .doc-card.dragging {
    opacity: 0.5;
    transform: rotate(-1deg);
}

body.customer-new-order-page .doc-card.drag-over {
    border-color: #0f172a;
    outline: 2px solid rgba(15, 23, 42, 0.18);
    outline-offset: 2px;
}

body.customer-new-order-page .doc-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.35;
    height: 2.7em;
    margin-bottom: 10px;
    word-break: break-word;
    overflow: hidden;
}

body.customer-new-order-page .doc-thumb-wrap {
    height: auto;
    aspect-ratio: 210 / 297;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #ffffff;
}

body.customer-new-order-page .doc-card-meta {
    margin-top: 10px;
}

body.customer-new-order-page .doc-type-badge {
    background: #fff4c2;
    color: #5b4500;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 4px 9px;
}

body.customer-new-order-page .doc-card:not(:first-child) .doc-type-badge {
    background: #f1f5f9;
    color: #475569;
}

body.customer-new-order-page .doc-remove-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    line-height: 1;
    transform: none;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

body.customer-new-order-page .doc-remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    transform: none;
}

/* ---- Toggle row (Briefkopf-Adresse) ---- */
body.customer-new-order-page .new-order-toggle-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f7f8fb;
    cursor: pointer;
}

body.customer-new-order-page .new-order-toggle-row input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0f172a;
}

body.customer-new-order-page .new-order-toggle-text {
    display: grid;
    gap: 4px;
}

body.customer-new-order-page .new-order-toggle-text strong {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
}

body.customer-new-order-page .new-order-toggle-text small {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.5;
}

body.customer-new-order-page .new-order-toggle-text small.hint-info { color: #1d4ed8; }
body.customer-new-order-page .new-order-toggle-text small.hint-success { color: #047857; }
body.customer-new-order-page .new-order-toggle-text small.hint-error { color: #b91c1c; }

/* ---- Field grid ---- */
body.customer-new-order-page .new-order-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 16px;
}

body.customer-new-order-page .new-order-field {
    min-width: 0;
}

body.customer-new-order-page .new-order-field-full {
    grid-column: 1 / -1;
    margin-top: 18px;
}

body.customer-new-order-page .new-order-field label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.customer-new-order-page .new-order-field-opt {
    color: #94a3b8;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

body.customer-new-order-page .new-order-field input,
body.customer-new-order-page .new-order-field select,
body.customer-new-order-page .new-order-field textarea {
    width: 100%;
    height: 44px;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.customer-new-order-page .new-order-field textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
    line-height: 1.55;
    resize: vertical;
}

body.customer-new-order-page .new-order-field input:focus,
body.customer-new-order-page .new-order-field select:focus,
body.customer-new-order-page .new-order-field textarea:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}

body.customer-new-order-page .new-order-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

@media (min-width: 720px) {
    body.customer-new-order-page .new-order-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Action bar ---- */
body.customer-new-order-page .new-order-actionbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(20px, 2.6vw, 28px);
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
                0 18px 40px rgba(15, 23, 42, 0.06);
    position: sticky;
    bottom: 16px;
    z-index: 5;
}

body.customer-new-order-page .new-order-cancel,
body.customer-new-order-page .new-order-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    border: 1px solid transparent;
}

body.customer-new-order-page .new-order-cancel {
    background: #ffffff;
    color: #0f172a;
    border-color: #e6ebf2;
}

body.customer-new-order-page .new-order-cancel:hover {
    background: #f7f8fb;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    text-decoration: none;
}

body.customer-new-order-page .new-order-submit {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    width: auto;
}

body.customer-new-order-page .new-order-submit:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    body.customer-new-order-page .new-order-dropzone {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    body.customer-new-order-page .new-order-actionbar {
        flex-direction: column-reverse;
        position: static;
    }
    body.customer-new-order-page .new-order-cancel,
    body.customer-new-order-page .new-order-submit {
        width: 100%;
    }
}

/* =====================================================================
   ORDER DETAIL PAGE  (body.customer-order-detail-page)
   Hero, Progress-Timeline, Stats-Strip, zweispaltiges Daten-Grid mit
   Letter-Adresse, History-Timeline, Support-Card.
   ===================================================================== */

body.customer-order-detail-page .content {
    padding-bottom: 64px;
}

body.customer-order-detail-page .panel {
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
                0 8px 28px rgba(15, 23, 42, 0.05);
}

/* ---- Hero ---- */
body.customer-order-detail-page .od-hero {
    padding: clamp(22px, 3vw, 36px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    margin-bottom: 18px;
}

body.customer-order-detail-page .od-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: #f7f8fb;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

body.customer-order-detail-page .od-hero-back:hover {
    background: #eef2f7;
    color: #0f172a;
    text-decoration: none;
}

body.customer-order-detail-page .od-hero-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-start;
    justify-content: space-between;
}

body.customer-order-detail-page .od-hero-main {
    flex: 1 1 320px;
    min-width: 0;
}

body.customer-order-detail-page .od-kicker {
    display: inline-block;
    padding: 5px 11px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #fff4c2;
    color: #5b4500;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.customer-order-detail-page .od-hero h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

body.customer-order-detail-page .od-order-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.015em;
}

body.customer-order-detail-page .od-hero-sub {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.55;
}

body.customer-order-detail-page .od-hero-sub strong {
    color: #0f172a;
    font-weight: 700;
}

body.customer-order-detail-page .od-hero-status {
    flex: 0 1 280px;
    text-align: right;
    min-width: 0;
}

body.customer-order-detail-page .od-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    line-height: 1.2;
}

body.customer-order-detail-page .od-status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

body.customer-order-detail-page .od-status-desc {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.customer-order-detail-page .od-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
}

body.customer-order-detail-page .od-cancel-form {
    display: inline-block;
    margin: 0;
}

/* ---- Buttons (eigener kleiner Button-Set für die Detail-Seite) ---- */
body.customer-order-detail-page .od-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
    width: auto;
}

body.customer-order-detail-page .od-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

body.customer-order-detail-page .od-btn-primary {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

body.customer-order-detail-page .od-btn-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
}

body.customer-order-detail-page .od-btn-ghost {
    background: #ffffff;
    color: #0f172a;
    border-color: #e6ebf2;
}

body.customer-order-detail-page .od-btn-ghost:hover {
    background: #f7f8fb;
    border-color: #cbd5e1;
}

body.customer-order-detail-page .od-btn-danger {
    background: #ffffff;
    color: #b91c1c;
    border-color: #fbb4b4;
}

body.customer-order-detail-page .od-btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* ---- Section-Header (gemeinsamer Stil) ---- */
body.customer-order-detail-page .od-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

body.customer-order-detail-page .od-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f7f8fb;
    color: #0f172a;
    border: 1px solid #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 38px;
}

body.customer-order-detail-page .od-section-head h2 {
    margin: 0 0 2px;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

body.customer-order-detail-page .od-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- Progress Timeline ---- */
body.customer-order-detail-page .od-progress {
    padding: clamp(20px, 2.6vw, 30px);
    margin-bottom: 18px;
}

body.customer-order-detail-page .od-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    position: relative;
}

body.customer-order-detail-page .od-timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e6ebf2;
    z-index: 0;
}

body.customer-order-detail-page .od-timeline-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0 6px;
}

body.customer-order-detail-page .od-timeline-dot {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e6ebf2;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.customer-order-detail-page .od-timeline-step.is-done .od-timeline-dot {
    background: #047857;
    border-color: #047857;
    color: #ffffff;
}

body.customer-order-detail-page .od-timeline-step.is-active .od-timeline-dot {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.10);
    transform: scale(1.06);
}

body.customer-order-detail-page .od-timeline-label {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

body.customer-order-detail-page .od-timeline-step.is-active .od-timeline-label,
body.customer-order-detail-page .od-timeline-step.is-done .od-timeline-label {
    color: #0f172a;
    font-weight: 700;
}

body.customer-order-detail-page .od-progress-note {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.customer-order-detail-page .od-progress-note.is-cancelled {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

body.customer-order-detail-page .od-progress-note.is-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fbb4b4;
}

/* ---- Stats Strip ---- */
body.customer-order-detail-page .od-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

body.customer-order-detail-page .od-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.customer-order-detail-page .od-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex: 0 0 42px;
    background: #f7f8fb;
    color: #0f172a;
}

body.customer-order-detail-page .od-stat-icon-pages    { background: #e0f2fe; color: #075985; }
body.customer-order-detail-page .od-stat-icon-print    { background: #ede9fe; color: #5b21b6; }
body.customer-order-detail-page .od-stat-icon-envelope { background: #fef3c7; color: #92400e; }
body.customer-order-detail-page .od-stat-icon-shipping { background: #dff5ea; color: #047857; }

body.customer-order-detail-page .od-stat-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.customer-order-detail-page .od-stat-value {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ---- Details Grid (Document + Recipient) ---- */
body.customer-order-detail-page .od-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

body.customer-order-detail-page .od-card {
    padding: clamp(20px, 2.6vw, 30px);
    margin: 0;
}

body.customer-order-detail-page .od-deflist {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

body.customer-order-detail-page .od-deflist > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

body.customer-order-detail-page .od-deflist > div:last-child {
    border-bottom: none;
}

body.customer-order-detail-page .od-deflist dt {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

body.customer-order-detail-page .od-deflist dd {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

body.customer-order-detail-page .od-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body.customer-order-detail-page .od-muted {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.92rem;
    font-style: italic;
}

body.customer-order-detail-page .od-muted i {
    color: #94a3b8;
}

/* ---- Address (letter-style) ---- */
body.customer-order-detail-page .od-address {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    margin: 0 0 18px;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    background: #fafbfd;
    color: #0f172a;
    font-style: normal;
    font-size: 0.96rem;
    line-height: 1.55;
}

body.customer-order-detail-page .od-address strong {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 4px;
}

body.customer-order-detail-page .od-address span {
    color: #334155;
}

/* ---- History Timeline ---- */
body.customer-order-detail-page .od-history {
    padding: clamp(20px, 2.6vw, 30px);
    margin-bottom: 18px;
}

body.customer-order-detail-page .od-history-empty {
    margin: 0;
    padding: 18px;
    background: #f7f8fb;
    border-radius: 12px;
    text-align: center;
}

body.customer-order-detail-page .od-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    position: relative;
}

body.customer-order-detail-page .od-history-list::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: #eef2f7;
}

body.customer-order-detail-page .od-history-list li {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 8px 0;
    align-items: center;
}

body.customer-order-detail-page .od-history-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #e6ebf2;
    flex: 0 0 16px;
    z-index: 1;
}

body.customer-order-detail-page .od-history-dot.status-uploaded  { background: #0ea5e9; }
body.customer-order-detail-page .od-history-dot.status-accepted  { background: #14b8a6; }
body.customer-order-detail-page .od-history-dot.status-printed   { background: #7c3aed; }
body.customer-order-detail-page .od-history-dot.status-enveloped { background: #d97706; }
body.customer-order-detail-page .od-history-dot.status-shipped   { background: #047857; }
body.customer-order-detail-page .od-history-dot.status-cancelled { background: #94a3b8; }
body.customer-order-detail-page .od-history-dot.status-error     { background: #b91c1c; }

body.customer-order-detail-page .od-history-list li > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

body.customer-order-detail-page .od-history-list li:hover > div {
    background: #fafbfd;
    border-color: #e6ebf2;
}

body.customer-order-detail-page .od-history-list li strong {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
}

body.customer-order-detail-page .od-history-list li span {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ---- Support card ---- */
body.customer-order-detail-page .od-support {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(20px, 2.6vw, 28px);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    flex-wrap: wrap;
    margin-bottom: 18px;
}

body.customer-order-detail-page .od-support-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff4c2;
    color: #5b4500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex: 0 0 56px;
}

body.customer-order-detail-page .od-support-text {
    flex: 1 1 280px;
    min-width: 0;
}

body.customer-order-detail-page .od-support-text h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

body.customer-order-detail-page .od-support-text p {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.5;
}

/* ---- Footnote ---- */
body.customer-order-detail-page .od-footnote {
    margin: 8px 0 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.55;
}

body.customer-order-detail-page .od-footnote i {
    margin-right: 6px;
    color: #cbd5e1;
}

/* ---- Empty state (404) ---- */
body.customer-order-detail-page .od-empty {
    text-align: center;
    padding: clamp(36px, 6vw, 64px);
}

body.customer-order-detail-page .od-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: #f7f8fb;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

body.customer-order-detail-page .od-empty h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
}

body.customer-order-detail-page .od-empty p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.55;
}

/* ---- Status-Pill-Farben (Soft) für die Hero-Status-Pille ---- */
body.customer-order-detail-page .status.status-uploaded.od-status-pill   { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
body.customer-order-detail-page .status.status-accepted.od-status-pill   { background: #ccfbf1; color: #115e59; border-color: #99f6e4; }
body.customer-order-detail-page .status.status-printed.od-status-pill    { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
body.customer-order-detail-page .status.status-enveloped.od-status-pill  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
body.customer-order-detail-page .status.status-shipped.od-status-pill    { background: #dff5ea; color: #065f46; border-color: #a7e8c7; }
body.customer-order-detail-page .status.status-cancelled.od-status-pill  { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
body.customer-order-detail-page .status.status-error.od-status-pill      { background: #fee2e2; color: #991b1b; border-color: #fbb4b4; }

/* ---- Responsive ---- */
@media (min-width: 720px) {
    body.customer-order-detail-page .od-grid {
        grid-template-columns: 1fr 1fr;
    }
    body.customer-order-detail-page .od-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    body.customer-order-detail-page .od-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.customer-order-detail-page .od-hero-status {
        text-align: left;
        flex: 1 1 100%;
    }
    body.customer-order-detail-page .od-timeline {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    body.customer-order-detail-page .od-timeline::before {
        display: none;
    }
    body.customer-order-detail-page .od-timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 14px;
        padding: 10px 14px;
        border-radius: 12px;
        background: #f7f8fb;
        border: 1px solid #eef2f7;
    }
    body.customer-order-detail-page .od-timeline-step.is-active {
        background: #0f172a;
    }
    body.customer-order-detail-page .od-timeline-step.is-active .od-timeline-label {
        color: #ffffff;
    }
    body.customer-order-detail-page .od-deflist > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    body.customer-order-detail-page .od-btn {
        width: 100%;
    }
}

/* =====================================================================
   GENERIC PAGE POLISH
   Greift auf alle customer-saas / admin-page Seiten OHNE eigene
   spezielle Page-Klasse (Listen-Seiten, Settings-Forms, Team, Admin).
   Verbessert Page-Header, Filter-Forms, einfache Tabellen, Stat-Tiles
   und Empty-States ohne PHP-Änderungen.
   ===================================================================== */

/* ---- Generischer Page-Header  (panel mit h1 + p.muted + actions) ---- */
body.customer-saas .panel > h1:first-child {
    margin: 0 0 6px;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

body.customer-saas .panel > h1:first-child + p.muted {
    margin: 0 0 18px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 70ch;
}

body.customer-saas .panel > h1:first-child + p > .btn,
body.customer-saas .panel > h1:first-child + p:not(.muted) > .btn {
    margin-top: 4px;
}

/* ---- Filter-Form (.grid.four innerhalb panel) ---- */
body.customer-saas .panel form.grid.four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 18px;
    background: #f7f8fb;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    margin-bottom: 8px;
}

body.customer-saas .panel form.grid.four label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.customer-saas .panel form.grid.four input,
body.customer-saas .panel form.grid.four select {
    width: 100%;
    height: 42px;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    padding: 0 12px;
    background: #ffffff;
    font-size: 0.94rem;
    color: #0f172a;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.customer-saas .panel form.grid.four input:focus,
body.customer-saas .panel form.grid.four select:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}

body.customer-saas .panel form.grid.four .actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

body.customer-saas .panel form.grid.four button,
body.customer-saas .panel form.grid.four .btn {
    width: auto;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: none;
}

body.customer-saas .panel form.grid.four button[type="submit"] {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
}

body.customer-saas .panel form.grid.four button[type="submit"]:hover {
    background: #1e293b;
    border-color: #1e293b;
}

body.customer-saas .panel form.grid.four .btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e6ebf2;
}

body.customer-saas .panel form.grid.four .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

body.customer-saas .panel form.grid.four .btn:not(.btn-secondary):not([type]) {
    background: #f2ca0b;
    color: #111827;
    border: 1px solid #e2b60f;
}

body.customer-saas .panel form.grid.four .btn:not(.btn-secondary):not([type]):hover {
    background: #ecbf04;
    border-color: #ecbf04;
}

/* ---- Standard-Tabellen (nicht .app-list-table) ---- */
body.customer-saas .panel > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ebf2;
}

body.customer-saas .panel > table thead tr {
    background: #f7f8fb;
}

body.customer-saas .panel > table th {
    background: #f7f8fb;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}

body.customer-saas .panel > table td {
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.93rem;
    color: #0f172a;
    background: #ffffff;
    vertical-align: middle;
}

body.customer-saas .panel > table tbody tr:hover td {
    background: #fafbfd;
}

body.customer-saas .panel > table tbody tr:last-child td {
    border-bottom: 0;
}

body.customer-saas .panel > table td a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #cbd5e1;
    transition: border-color 0.14s ease;
}

body.customer-saas .panel > table td a:hover {
    border-color: #0f172a;
}

body.customer-saas .panel > table td .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: none;
}

body.customer-saas .panel > table td .btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #e6ebf2;
}

body.customer-saas .panel > table td .btn-secondary:hover {
    background: #f7f8fb;
    border-color: #cbd5e1;
}

body.customer-saas .panel > table td .btn-danger {
    background: #ffffff;
    color: #b91c1c;
    border-color: #fbb4b4;
}

body.customer-saas .panel > table td .btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Empty-State Zeile in Standard-Tabellen */
body.customer-saas .panel > table tbody tr td[colspan]:only-child {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 28px 18px;
}

/* ---- Stat-Tiles (.grid.four mit Panels innerhalb)  ---- */
body.customer-saas .panel .grid.four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

body.customer-saas .panel .grid.four > .panel {
    margin: 0;
    padding: 18px 20px;
    background: #f7f8fb;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: none;
    display: grid;
    gap: 4px;
}

body.customer-saas .panel .grid.four > .panel:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

body.customer-saas .panel .grid.four > .panel strong:first-child {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.customer-saas .panel .grid.four > .panel > div {
    color: #0f172a;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* ---- Settings-Form-Polish ---- */
body.customer-saas .settings-checkbox-group {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

body.customer-saas .checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f7f8fb;
    cursor: pointer;
    transition: border-color 0.14s ease, background 0.14s ease;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.5;
}

body.customer-saas .checkbox-inline:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

body.customer-saas .checkbox-inline input[type="checkbox"],
body.customer-saas .checkbox-inline input[type="radio"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #0f172a;
    flex: 0 0 18px;
}

body.customer-saas .radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #eef2f7;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    margin-right: 8px;
    font-size: 0.92rem;
    transition: border-color 0.14s ease, background 0.14s ease;
}

body.customer-saas .radio-inline:hover {
    border-color: #cbd5e1;
}

/* ---- Submit-Bar in Settings ---- */
body.customer-saas .settings-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

body.customer-saas .settings-form-actions button,
body.customer-saas .settings-form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    width: auto;
}

/* ---- Explizite Empty-State-Karte (Klasse muss gesetzt sein) ---- */
body.customer-saas .panel.panel-empty-state {
    text-align: center;
    padding: clamp(36px, 5vw, 56px);
}

body.customer-saas .panel.panel-empty-state h1 {
    margin-bottom: 8px;
}

body.customer-saas .panel.panel-empty-state p.muted {
    margin: 0 auto;
    max-width: 56ch;
}

/* ---- Admin-Hinweis (klein im Topbar) ---- */
body.admin-page .topbar::before {
    content: "Admin";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1;
}

body.admin-page .topbar {
    position: sticky;
    top: 0;
}

/* ---- p mit nur einem Button (z. B. "Neuen Kunden anlegen") ---- */
body.customer-saas .panel > p:has(> .btn:only-child) {
    margin: 0;
}

/* Action-Row direkt im Panel */
body.customer-saas .panel > .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

body.customer-saas .panel > .actions .btn,
body.customer-saas .panel > .actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

/* Upload feedback (Gastversand + Neuer Auftrag) */
.upload-feedback {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    border: 1px solid transparent;
}
.upload-feedback.hint-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.upload-feedback.hint-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}
.upload-feedback.hint-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.guest-upload-format-hint {
    margin-top: 4px;
    font-size: 0.82rem;
}

.new-order-pages-summary {
    margin: 0 0 10px;
    font-size: 0.88rem;
}
.new-order-pages-summary.hint-info { color: #475569; }
.new-order-pages-summary.hint-success { color: #047857; }
.new-order-pages-summary.hint-error { color: #b91c1c; font-weight: 600; }

/* Drop-Insertion-Indikator für Reihenfolge-Karten */
.doc-card { position: relative; }
.doc-card.drag-before::before,
.doc-card.drag-after::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: #2dd4bf;
    border-radius: 2px;
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.25);
}
.doc-card.drag-before::before { left: -8px; }
.doc-card.drag-after::after { right: -8px; }

/* Inline-Forms innerhalb von .actions (z. B. Passwort zurücksetzen / Deaktivieren) */
body.customer-saas .inline-form {
    display: inline-flex;
    margin: 0;
}
