.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row  a,
.top-row  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row  a:hover,
.top-row  .btn-link:hover {
    text-decoration: underline;
}

.top-row  a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Utility class to hide text on mobile */
.hide-on-mobile {
    display: inline;
}

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row  a,
    .top-row  .btn-link {
        margin-left: 0;
    }

    .top-row  .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .top-row.auth  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.footer {
    width: 100%;
    background-color: #373535;
    color: #d3d3d3;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
}

.footer-sections {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-link {
    color: #d3d3d3;
    text-decoration: none;
}
/* Style for the responsive container */
.responsive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
    .responsive-container {
        flex-direction: column;
        /* Stack elements vertically */
    }
}

/* Style for building details */
#building-details {
    flex: 1;
    padding: 10px;
    border: 1px solid #50acd5;
    border-radius: 5px;
    background-color: #f2f8fc;
}

/* Style for the map container */
#map-container {
    flex: 2;
    padding: 10px;
    border: 1px solid #50acd5;
    border-radius: 5px;
    background-color: #f2f8fc;
}

/* Restrict width of map-container on desktop screens */
@media (min-width: 1024px) {
    #map-container {
        max-width: 70%;
        /* Adjust as needed */
    }
}

/* Style for the map */
#map {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.lageklasse-box {
    display: inline-block;
    border: 1px solid black;
    padding: 5px;
    text-align: center;
    width: 80px;
    /* Ensure enough width for "Lageklasse" without wrapping */
    height: 90px;
    /* Adjust height for better fit */
    box-sizing: border-box;
    color: black;
    /* Change text color to black */
    background-color: #f0f0f0;
    /* Default light gray background */
}

.lageklasse-label {
    font-size: 12px;
    /* Slightly larger font for better readability */
    display: block;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.lageklasse-value {
    font-size: 24px;
    /* Larger font for the letter */
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.lageklasse-a {
    background-color: #9fe49f;
    /* Light grayish green for Lageklasse A */
}

.lageklasse-b {
    background-color: #b5d47e;
    /* Light grayish yellow-green for Lageklasse B */
}

.lageklasse-c {
    background-color: #d6ce70;
    /* Light grayish yellow for Lageklasse C */
}

.lageklasse-d {
    background-color: #d1a86f;
    /* Light grayish orange for Lageklasse D */
}

.lageklasse-e {
    background-color: #d37777;
    /* Light grayish red for Lageklasse E */
}

.lageklasse-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

@media (min-width: 768px) {
    .lageklasse-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .lageklasse-box {
        flex: 0 0 auto;
    }

    .lageklasse-explanation {
        flex: 1;
    }
}

/* Stile für den neuen Payment-Card-Bereich */
.payment-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #e2e8f0;
}

.payment-card-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.payment-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.payment-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.payment-subtitle {
    margin: 10px 0 0 0;
    font-size: 1rem;
    opacity: 0.85;
}

.payment-card-body {
    padding: 30px;
}

.payment-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    color: #4a5568;
}

.payment-benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.benefit-icon {
    color: #38a169;
    margin-right: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.price-offer-container {
    background-color: #f7fafc;
    border: 2px solid #3182ce;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    margin-bottom: 25px;
}

.offer-badge {
    background-color: #e53e3e;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(229, 62, 62, 0.4);
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0 10px 0;
}

.old-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.old-price-label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.old-price {
    font-size: 1.1rem;
    color: #a0aec0;
    text-decoration: line-through;
    text-decoration-color: #e53e3e;
}

.new-price-container {
    background: #ebf8ff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.new-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2b6cb0;
    line-height: 1;
}

.new-price .price-value {
    color: #2b6cb0;
}

.savings-info {
    color: #276749;
    background-color: #c6f6d5;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.paypal-wrapper {
    margin: 20px 0;
}

.secure-payment-info {
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.lock-icon {
    font-size: 16px;
    color: #a0aec0;
}

@media (max-width: 480px) {
    .payment-card-body {
        padding: 20px;
    }
    
    .price-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .old-price-container {
        align-items: center;
    }
}

/* CSS für die Gesamtnote-Box */
.overall-rating-box {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 2em;
    overflow: hidden;
    /* Sicherstellen, dass die Tabs nicht überlaufen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.overall-rating-tabs {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #ccc;
}

.overall-rating-tab {
    flex: 1;
    /* Tabs teilen sich den Platz gleichmässig */
    padding: 12px 15px;
    text-align: center;
    border-right: 1px solid #ccc;
    color: #7a7a7a;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    /* Verhindert Zeilenumbruch der Tabs */
}

.overall-rating-tab:last-child {
    border-right: none;
}

.overall-rating-tab.active {
    font-weight: bold;
    color: #555;
    border-bottom: 3px solid #2b83a9;
    /* Stärkerer Border für aktiven Tab */
}

.overall-rating-tab:hover:not(.active) {
    background-color: #d0d0d0;
}

.overall-rating-content {
    padding: 20px;
    color: #333;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Report Page Container & Cards Layout */
.report-main-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem 1.25rem;
}

.report-test-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.report-test-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.report-test-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.test-number-badge {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
    white-space: nowrap;
}

.test-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.report-text-block {
    color: #334155;
    font-size: 1.025rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.report-text-block p {
    margin-bottom: 1rem;
}

.report-text-block p:last-child {
    margin-bottom: 0;
}

/* Callout / Warning box for Asbest & Lead tests */
.report-callout-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.report-callout-icon {
    color: #d97706;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Testergebnis Header */
.result-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern & Official Amtliche Lageklasse Badge System */
.lageklasse-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .lageklasse-container {
        flex-direction: row;
        align-items: stretch;
    }
}

.lageklasse-official-seal {
    flex: 0 0 210px;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border: 1.5px solid;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.lageklasse-seal-header {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.lageklasse-seal-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 0.25rem 0 0.5rem 0;
}

.lageklasse-scale-mini {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 160px;
}

.lageklasse-scale-step {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, opacity 0.2s;
}

.lageklasse-scale-step.active {
    transform: scaleY(1.4);
    opacity: 1;
}

/* Lageklasse Explanation Box */
.lageklasse-explanation {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 0.98rem;
    line-height: 1.65;
    border-left: 5px solid;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Color Themes for Lageklasse A - E */

/* Grade A - Optimal */
.lageklasse-official-seal.lageklasse-a {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
    color: #065f46;
}
.lageklasse-official-seal.lageklasse-a .lageklasse-seal-badge {
    background: linear-gradient(135deg, #059669, #10b981);
}
.lageklasse-explanation.lageklasse-a {
    background-color: #f0fdf4;
    border-left-color: #10b981;
    color: #166534;
    border-top: 1px solid #dcfce7;
    border-right: 1px solid #dcfce7;
    border-bottom: 1px solid #dcfce7;
}

/* Grade B - Geringe Belastung */
.lageklasse-official-seal.lageklasse-b {
    background: linear-gradient(145deg, #f7fee7 0%, #ecfccb 100%);
    border-color: #bef264;
    color: #3f6212;
}
.lageklasse-official-seal.lageklasse-b .lageklasse-seal-badge {
    background: linear-gradient(135deg, #65a30d, #84cc16);
}
.lageklasse-explanation.lageklasse-b {
    background-color: #f7fee7;
    border-left-color: #84cc16;
    color: #3f6212;
    border-top: 1px solid #ecfccb;
    border-right: 1px solid #ecfccb;
    border-bottom: 1px solid #ecfccb;
}

/* Grade C - Moderate Belastung */
.lageklasse-official-seal.lageklasse-c {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde047;
    color: #92400e;
}
.lageklasse-official-seal.lageklasse-c .lageklasse-seal-badge {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}
.lageklasse-explanation.lageklasse-c {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
    border-top: 1px solid #fef3c7;
    border-right: 1px solid #fef3c7;
    border-bottom: 1px solid #fef3c7;
}

/* Grade D - Erhöhte Belastung */
.lageklasse-official-seal.lageklasse-d {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
    color: #9a3412;
}
.lageklasse-official-seal.lageklasse-d .lageklasse-seal-badge {
    background: linear-gradient(135deg, #ea580c, #f97316);
}
.lageklasse-explanation.lageklasse-d {
    background-color: #fff7ed;
    border-left-color: #f97316;
    color: #9a3412;
    border-top: 1px solid #ffedd5;
    border-right: 1px solid #ffedd5;
    border-bottom: 1px solid #ffedd5;
}

/* Grade E - Hohe Belastung */
.lageklasse-official-seal.lageklasse-e {
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
    color: #991b1b;
}
.lageklasse-official-seal.lageklasse-e .lageklasse-seal-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}
/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
    .report-main-wrapper {
        padding: 0 0.5rem 2rem 0.5rem;
    }

    .report-test-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .report-test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .test-title {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .test-number-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .report-text-block {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .report-callout-warning {
        padding: 1rem;
        font-size: 0.875rem;
        flex-direction: row;
        gap: 0.75rem;
    }

    .lageklasse-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem;
    }

    .lageklasse-official-seal {
        flex: 0 0 auto !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 1rem;
    }

    .lageklasse-explanation {
        width: 100% !important;
        box-sizing: border-box;
        padding: 1rem;
        font-size: 0.925rem;
    }

    .overall-rating-box {
        margin-bottom: 1.5rem;
    }

    .overall-rating-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: 6px;
        padding: 8px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .overall-rating-tab {
        flex: 0 0 auto !important;
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
        border: 1px solid #cbd5e1 !important;
    }

    .overall-rating-tab.active {
        border-bottom: 1px solid transparent !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
        font-weight: 700;
    }

    .overall-rating-content {
        padding: 1.25rem 1rem;
        font-size: 0.95rem;
    }

    #building-profile {
        min-width: 0 !important;
        width: 100% !important;
        padding: 1.25rem 1rem !important;
    }

    #map-container {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #map {
        height: 280px !important;
    }
}




/* Allgemeines Layout */
.responsive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2em;
}

#building-details,
#map-container {
    flex: 1;
    min-width: 300px;
    /* Mindestbreite für Responsivität */
}

/* Aboutus */
.aboutus-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.aboutus-column {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .aboutus-container {
        flex-direction: column;
    }
}

/* Contact */
.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f9ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #2b6cb0;
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-header p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    border-top: 4px solid #50acd5;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #50acd5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(80, 172, 213, 0.15);
}

.btn-submit {
    background: #50acd5;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #3b8bb0;
    transform: translateY(-2px);
}

.success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #22c55e;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.success-box h3 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.success-box p {
    color: #15803d;
    margin-bottom: 1.5rem;
}

/* Disclaimer */
.disclaimer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.disclaimer-column {
    flex: 1 1 calc(50% - 1.5rem);
    box-sizing: border-box;
}

.disclaimer-column h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.disclaimer-column p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .disclaimer-column {
        flex: 1 1 100%;
    }
}

/* Imprint */
.imprint-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.imprint-column {
    padding: 0 1rem;
}

.imprint-column h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #2c3e50;
    border-bottom: 2px solid #50acd5;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.imprint-column p {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: #4a5568;
}

@media (max-width: 768px) {
    .imprint-container {
        grid-template-columns: 1fr;
    }
}

/* Privacy */
.legal-doc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.legal-doc-column {
    flex: 1 1 calc(50% - 1.5rem);
    box-sizing: border-box;
}

.legal-doc-column h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.legal-doc-column p, .legal-doc-column ul {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.legal-doc-column ul {
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .legal-doc-column {
        flex: 1 1 100%;
    }
}

/* QualityAssurance */
.container-custom {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1280px;
    /* Equivalent to Tailwind's default container max-width */
}

.paragraph-spacing {
    margin-bottom: 1rem;
    /* mb-4 */
}

.paragraph-large-spacing {
    margin-bottom: 2rem;
    /* mb-8 */
}

.text-color-gray-700 {
    color: #4b5563;
}

.text-color-gray-800 {
    color: #374151;
}

.text-color-gray-900 {
    color: #111827;
}

.heading-2 {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 600;
    /* font-semibold */
    margin-bottom: 1rem;
    /* mb-4 */
}

.table-container-custom {
    overflow-x: auto;
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    margin-bottom: 2rem;
    /* mb-8 */
}

.table-custom {
    min-width: 100%;
    background-color: #fff;
    border-radius: 0.5rem;
    border-collapse: collapse;
    /* For divide-y */
}

.table-header-row-custom {
    background: linear-gradient(to right, #3b82f6, #4f46e5);
    /* bg-gradient-to-r from-blue-500 to-indigo-600 */
    color: #fff;
}

.table-header-cell-custom {
    padding: 0.75rem 1.5rem;
    /* py-3 px-6 */
    text-align: left;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
    text-transform: uppercase;
    /* uppercase */
    letter-spacing: 0.05em;
    /* tracking-wider */
}

.table-header-cell-custom.rounded-tl-lg {
    border-top-left-radius: 0.5rem;
}

.table-header-cell-custom.rounded-tr-lg {
    border-top-right-radius: 0.5rem;
}

.table-custom tbody tr:nth-child(even) {
    background-color: #f9fafb;
    /* Alternative for hover/transition, could add a hover effect here */
}

.table-row-custom {
    transition: background-color 150ms ease-in-out;
    /* transition duration-150 ease-in-out */
}

.table-row-custom:hover {
    background-color: #f9fafb;
    /* hover:bg-gray-50 */
}

.table-row-custom td {
    border-bottom: 1px solid #e5e7eb;
    /* part of divide-y */
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
    /* remove border from last row for clean look */
}

.table-data-cell-custom {
    padding: 1rem 1.5rem;
    /* py-4 px-6 */
    white-space: nowrap;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.table-footer-row-custom {
    background-color: #f3f4f6;
    /* bg-gray-100 */
    border-top: 1px solid #e5e7eb;
    /* border-t border-gray-200 */
}

.table-footer-cell-custom {
    padding: 0.75rem 1.5rem;
    /* py-3 px-6 */
    white-space: nowrap;
}

.table-footer-cell-custom.rounded-bl-lg {
    border-bottom-left-radius: 0.5rem;
}

.table-footer-cell-custom.rounded-br-lg {
    border-bottom-right-radius: 0.5rem;
}
/* Scope */
.scope-header {
    text-align: center;
    margin-bottom: 3rem;
}

.scope-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.scope-header p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.risk-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #50acd5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.risk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.risk-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.risk-icon {
    font-size: 2.5rem;
    color: #50acd5;
    background: #f0f9ff;
    padding: 0.75rem;
    border-radius: 50%;
}

.risk-card h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2d3748;
}

.risk-card > p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.risk-card h4 {
    font-size: 1rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.risk-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.risk-list li::before {
    content: "•";
    color: #50acd5;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.disclaimer-box {
    background: #fffaf0;
    border-left: 4px solid #ed8936;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.disclaimer-box strong {
    color: #c05621;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.disclaimer-box p {
    margin: 0;
    color: #7b341e;
    line-height: 1.6;
}

/* Career */
.career-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f2ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.career-header h1 {
    font-size: 2.5rem;
    color: #2b6cb0;
    margin-bottom: 1rem;
    font-weight: 800;
}

.career-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.career-section {
    margin-bottom: 3rem;
}

.career-section h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #50acd5;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    color: #50acd5;
    font-size: 2rem;
    background: #ebf8ff;
    padding: 0.5rem;
    border-radius: 8px;
}

.benefit-text {
    color: #4a5568;
    font-weight: 500;
    line-height: 1.4;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.role-tag {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #bee3f8;
}

.cta-box {
    background: #2b6cb0;
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(43, 108, 176, 0.2);
}

.cta-box h2 {
    color: white;
    border-bottom: none;
    margin-top: 0;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.apply-button {
    display: inline-block;
    background: #ffffff;
    color: #2b6cb0;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.apply-button:hover {
    background: #ebf8ff;
    transform: scale(1.05);
    color: #2b6cb0;
    text-decoration: none;
}

/* ==========================================================================
   Moderne Verkaufs- & Checkout-Seite (WohnGesundCheck Schweiz)
   ========================================================================== */

.sales-page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 0.5rem 3.5rem 0.5rem;
    color: #1e293b;
}

/* Header & Status Bar */
.sales-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.sales-breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.sales-breadcrumb a {
    color: #0284c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 500;
}

.sales-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.breadcrumb-active {
    color: #0f172a;
    font-weight: 600;
}

.sales-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
}

.sales-status-badge .status-icon {
    font-size: 16px;
    color: #10b981;
}

/* 2-Column Grid Layout */
.sales-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 2rem;
    align-items: start;
    margin-top: 1.25rem;
}

@media (max-width: 1024px) {
    .sales-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.sales-main-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    min-width: 0;
}

/* Generic Card Styles */
.sales-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    padding: 1.75rem;
    position: relative;
}

.sales-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.sales-section-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: 0.35rem;
}

/* 1. Objekt-Übersicht Card */
.building-overview-card {
    padding: 1.75rem;
}

.object-badge {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0284c7;
    background-color: #e0f2fe;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.object-address-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.object-address-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
    margin: 0.25rem 0 0 0;
}

.egaid-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.building-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .building-overview-grid {
        grid-template-columns: 1fr;
    }
}

.building-specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.spec-item:hover {
    background-color: #f1f5f9;
}

.spec-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon-wrap .material-icons {
    font-size: 20px;
}

.spec-data {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b;
}

.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.building-map-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sales-map {
    width: 100% !important;
    height: 280px !important;
    min-height: 260px;
    border: none;
    z-index: 1;
}

.map-caption {
    padding: 0.5rem 0.85rem;
    font-size: 0.775rem;
    color: #64748b;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* 2. 10-Punkte Teaser Grid */
.tests-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.test-teaser-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.test-teaser-item:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08);
}

.test-teaser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.test-teaser-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-teaser-icon-wrap.accent-warning {
    background-color: #fef3c7;
    color: #b45309;
}

.test-teaser-icon-wrap .material-icons {
    font-size: 20px;
}

.test-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.test-teaser-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.test-teaser-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.test-teaser-footer {
    display: flex;
    align-items: center;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
}

.lock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0369a1;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

.lock-pill .material-icons {
    font-size: 13px;
    color: #0284c7;
}

/* 3. Rating System Preview */
.rating-scale-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.scale-step {
    flex: 1;
    min-width: 85px;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid transparent;
}

.scale-step .grade {
    font-size: 1.15rem;
    font-weight: 800;
}

.scale-step .desc {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.scale-step.step-a { background-color: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.scale-step.step-b { background-color: #ecfccb; color: #3f6212; border-color: #d9f99d; }
.scale-step.step-c { background-color: #fef3c7; color: #92400e; border-color: #fde68a; }
.scale-step.step-d { background-color: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.scale-step.step-e { background-color: #fee2e2; color: #991b1b; border-color: #fecaca; }

.rating-blur-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    color: #334155;
}

/* 4. Sample Report Banner */
.sample-report-callout {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
}

.sample-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sample-icon-circle .material-icons {
    font-size: 22px;
}

/* 5. FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 1rem;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 0.975rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.faq-answer {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Right Sticky Checkout Column & Card
   ========================================================================== */
.sales-sidebar-column {
    position: relative;
}

.sales-sticky-sidebar {
    position: sticky;
    top: 4.5rem;
    z-index: 10;
}

.sales-checkout-card {
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #0284c7;
    box-shadow: 0 16px 36px -6px rgba(2, 132, 199, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.checkout-card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    text-align: center;
    position: relative;
}

.checkout-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.checkout-headline {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.checkout-subline {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.35rem 0 0 0;
    line-height: 1.4;
}

.checkout-card-body {
    padding: 1.5rem;
}

/* Pricing Highlight */
.checkout-pricing-box {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #7dd3fc;
    border-radius: 12px;
    padding: 1.25rem 1rem 1rem 1rem;
    text-align: center;
    position: relative;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.checkout-offer-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.checkout-price-old-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.checkout-price-old {
    font-size: 1.05rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    font-weight: 600;
    line-height: 1.2;
}

.checkout-price-current {
    font-size: 2.3rem;
    font-weight: 900;
    color: #0369a1;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.checkout-price-current .currency {
    font-size: 1.25rem;
    font-weight: 800;
}

.checkout-savings-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.checkout-once-note {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Benefits Checklist */
.checkout-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checkout-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.35;
}

.checkout-benefits-list .check-icon {
    font-size: 18px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 1px;
}

/* CTA Buttons */
.checkout-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-primary-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    color: #ffffff;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}

.checkout-primary-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
    text-decoration: none;
}

.checkout-secondary-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.65rem 1rem;
    font-size: 0.925rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.checkout-secondary-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
    text-decoration: none;
}

.checkout-login-hint {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.4;
    text-align: center;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #f1f5f9;
}

/* Trust Box */
.checkout-trust-box {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.775rem;
    color: #64748b;
    font-weight: 500;
}

.trust-item .trust-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Support Card */
.sales-support-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

/* Hidden on screen by default */
.print-only {
    display: none !important;
}

/* ==========================================================================
   Druckansicht (Amtlich anmutendes, reduziertes Schweizer Dokumenten-Design)
   ========================================================================== */
@media print {
    /* 1. Page Configuration & Exact Color Reproduction */
    @page {
        size: A4 portrait;
        margin: 12mm 14mm 14mm 14mm;
    }

    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* 2. Hide Web-Only Elements */
    .top-row, .footer, .btn, .no-print, .sales-sidebar-column, .sales-header-bar,
    .leaflet-control-container, .leaflet-popup-close-button,
    .overall-rating-tabs, .object-badge, .egaid-pill {
        display: none !important;
    }

    /* 3. Show Print-Only Elements */
    .print-only {
        display: block !important;
    }

    body, .page, main, .content {
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        font-size: 9.5pt !important;
        line-height: 1.4 !important;
    }

    .report-main-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* 4. Dokument-Kopfbereich (Offizielle Typografie & Nüchternheit) */
    .print-official-header {
        border-bottom: 2px solid #334155;
        padding-bottom: 8pt;
        margin-bottom: 11pt;
    }

    .print-header-grid {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12pt;
        margin-bottom: 8pt;
    }

    .print-header-brand {
        display: flex;
        align-items: center;
        gap: 8pt;
    }

    .print-swiss-flag {
        width: 28pt;
        height: 28pt;
        background-color: #334155 !important;
        color: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18pt;
        font-weight: 900;
        border-radius: 3pt;
        line-height: 1;
        border: 1px solid #1e293b;
    }

    .print-header-org {
        font-size: 13pt;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.2pt;
        line-height: 1.15;
    }

    .print-header-desc {
        font-size: 7.5pt;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: 0.5pt;
        font-weight: 600;
        margin-top: 1pt;
    }

    .print-header-docinfo {
        text-align: right;
        font-size: 8pt;
        line-height: 1.35;
        border-left: 1px solid #cbd5e1;
        padding-left: 10pt;
    }

    .print-doc-meta-row {
        display: flex;
        justify-content: flex-end;
        gap: 6pt;
    }

    .print-doc-meta-row .meta-title {
        color: #64748b;
        font-weight: 600;
    }

    .print-doc-meta-row .meta-val {
        color: #0f172a;
        font-weight: 700;
    }

    .print-status-tag {
        background-color: #f1f5f9 !important;
        color: #1e293b !important;
        border: 1.5px solid #475569 !important;
        padding: 1.5pt 6pt;
        border-radius: 2pt;
        font-size: 6.8pt;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4pt;
        font-family: monospace, monospace;
    }

    .print-title-banner {
        background-color: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 4pt solid #334155 !important;
        padding: 6pt 10pt;
        margin-top: 5pt;
    }

    .print-main-title {
        font-size: 11pt;
        font-weight: 800;
        letter-spacing: 0.5pt;
        color: #0f172a;
        margin: 0;
        text-transform: uppercase;
    }

    .print-sub-title {
        font-size: 7.5pt;
        color: #475569;
        margin-top: 2pt;
        font-weight: 500;
    }

    /* 5. Gebäude-Übersicht & Katasterdaten */
    .building-overview-card {
        padding: 9pt 11pt !important;
        margin-bottom: 9pt !important;
        border: 1.5px solid #64748b !important;
        border-radius: 4pt !important;
        box-shadow: none !important;
        background: #ffffff !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .object-address-title {
        font-size: 13pt !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin: 0 !important;
    }

    .object-address-subtitle {
        font-size: 9.5pt !important;
        color: #475569 !important;
        margin: 0 !important;
    }

    .building-overview-grid {
        display: grid !important;
        grid-template-columns: 1.1fr 0.9fr !important;
        gap: 10pt !important;
        margin-top: 7pt !important;
    }

    .building-specs-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4pt !important;
    }

    .spec-item {
        padding: 3.5pt 5pt !important;
        margin-bottom: 0 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 3pt !important;
        background-color: #f8fafc !important;
        font-size: 8pt !important;
        gap: 5pt !important;
    }

    .spec-icon-wrap {
        width: 18pt !important;
        height: 18pt !important;
        min-width: 18pt !important;
        border-radius: 3pt !important;
        background-color: #e2e8f0 !important;
        color: #475569 !important;
    }

    .spec-icon-wrap .material-icons {
        font-size: 11pt !important;
        color: #475569 !important;
    }

    .spec-label {
        font-size: 6.5pt !important;
        font-weight: 700 !important;
        color: #64748b !important;
        text-transform: uppercase;
        letter-spacing: 0.3pt;
    }

    .spec-value {
        font-size: 8pt !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    .building-map-wrapper {
        border: 1.5px solid #64748b !important;
        border-radius: 4pt !important;
        overflow: hidden !important;
    }

    .sales-map {
        height: 160px !important;
        min-height: 160px !important;
    }

    .map-caption {
        padding: 3pt 6pt !important;
        font-size: 7pt !important;
        background: #f1f5f9 !important;
        border-top: 1px solid #cbd5e1 !important;
        color: #475569 !important;
    }

    .map-caption .material-icons {
        color: #64748b !important;
    }

    /* 6. Gesamtnote Box (Nüchterner Auszug-Stil) */
    .overall-rating-box {
        border: 1.5px solid #334155 !important;
        border-radius: 4pt !important;
        margin-bottom: 9pt !important;
        background: #ffffff !important;
        box-shadow: none !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        overflow: hidden;
    }

    .print-rating-certificate {
        display: flex;
        align-items: center;
        gap: 12pt;
        padding: 7pt 12pt;
        background-color: #f8fafc !important;
    }

    .print-rating-badge {
        flex: 0 0 130pt;
        text-align: center;
        padding: 5pt 8pt;
        border-radius: 3pt;
        border: 2px solid #334155 !important;
        background-color: #ffffff !important;
        color: #0f172a !important;
    }

    .print-rating-grade {
        font-size: 11.5pt;
        font-weight: 900;
        text-transform: uppercase;
        display: block;
        line-height: 1.1;
        color: #0f172a !important;
    }

    .print-rating-sub {
        font-size: 7pt;
        font-weight: 700;
        letter-spacing: 0.5pt;
        margin-top: 2pt;
        display: block;
        color: #475569 !important;
    }

    .print-rating-text {
        flex: 1;
        font-size: 8pt;
        line-height: 1.35;
        color: #1e293b;
    }

    .print-rating-text p {
        margin: 0 0 3pt 0 !important;
    }
    .print-rating-text p:last-child {
        margin-bottom: 0 !important;
    }

    /* Einheitliche grau/anthrazit Tönung für Notenabzeichen im Druck */
    .print-rating-badge.rating-1,
    .print-rating-badge.rating-2,
    .print-rating-badge.rating-3,
    .print-rating-badge.rating-4,
    .print-rating-badge.rating-5 {
        background-color: #f1f5f9 !important;
        border-color: #334155 !important;
        color: #0f172a !important;
    }

    /* 7. Ergebnis-Übersichtstabelle (Tabellarische Katasterstruktur) */
    .print-summary-card {
        border: 1.5px solid #334155 !important;
        border-radius: 4pt !important;
        margin-bottom: 12pt !important;
        padding: 8pt 10pt !important;
        background: #ffffff !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        page-break-after: always !important; /* Seite 1 schliesst als vollstaendiges Deckblatt ab */
    }

    .print-summary-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1.5px solid #334155;
        padding-bottom: 4pt;
        margin-bottom: 5pt;
    }

    .print-summary-title {
        font-size: 9pt;
        font-weight: 800;
        color: #0f172a;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.4pt;
    }

    .print-summary-note {
        font-size: 6.8pt;
        color: #64748b;
        font-weight: 600;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 7.5pt;
    }

    .print-table th {
        background-color: #e2e8f0 !important;
        color: #0f172a !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        font-size: 6.8pt;
        letter-spacing: 0.3pt;
        padding: 3.5pt 5pt !important;
        border: 1px solid #94a3b8 !important;
        text-align: left;
    }

    .print-table td {
        padding: 3pt 5pt !important;
        border: 1px solid #cbd5e1 !important;
        vertical-align: middle;
        color: #1e293b;
        font-size: 7.3pt;
    }

    .print-table tr:nth-child(even) td {
        background-color: #f8fafc !important;
    }

    /* Amtliche Lageklassen-Siegel als nüchterne Kastenstempel */
    .badge-seal,
    .badge-seal.seal-a,
    .badge-seal.seal-b,
    .badge-seal.seal-c,
    .badge-seal.seal-d,
    .badge-seal.seal-e {
        display: inline-block !important;
        width: 16pt !important;
        height: 16pt !important;
        line-height: 14pt !important;
        text-align: center !important;
        border-radius: 3pt !important;
        font-size: 8.5pt !important;
        font-weight: 900 !important;
        font-family: monospace, monospace !important;
        background-color: #f1f5f9 !important;
        border: 1.5px solid #334155 !important;
        color: #0f172a !important;
        box-shadow: none !important;
    }

    /* 8. Detaillierte Einzelprüfungen (Cards 1-10) */
    .print-details-header {
        border-bottom: 2px solid #334155;
        padding-bottom: 4pt;
        margin-bottom: 9pt;
    }

    .print-details-title {
        font-size: 10.5pt;
        font-weight: 800;
        color: #0f172a;
        text-transform: uppercase;
        margin: 0;
        letter-spacing: 0.3pt;
    }

    .print-details-subtitle {
        font-size: 7.2pt;
        color: #475569;
        margin-top: 1pt;
    }

    .report-test-card {
        padding: 6pt 9pt !important;
        margin-bottom: 7pt !important;
        border: 1.2px solid #64748b !important;
        border-radius: 4pt !important;
        box-shadow: none !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        background: #ffffff !important;
    }

    .report-test-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6pt !important;
        padding-bottom: 3pt !important;
        border-bottom: 1px solid #cbd5e1 !important;
        margin-bottom: 4pt !important;
    }

    .test-number-badge {
        font-size: 6.8pt !important;
        padding: 1.5pt 4.5pt !important;
        background-color: #334155 !important;
        color: #ffffff !important;
        box-shadow: none !important;
        border-radius: 2pt !important;
        font-weight: 800 !important;
        letter-spacing: 0.4pt !important;
    }

    .test-title {
        font-size: 9.5pt !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .report-text-block {
        font-size: 7.3pt !important;
        line-height: 1.32 !important;
        color: #334155 !important;
        margin-bottom: 3.5pt !important;
    }

    .report-text-block p {
        margin-bottom: 2pt !important;
    }

    .report-callout-warning {
        padding: 3pt 5pt !important;
        margin: 3pt 0 !important;
        font-size: 6.8pt !important;
        line-height: 1.25 !important;
        background-color: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 3pt solid #64748b !important;
        color: #334155 !important;
        border-radius: 2pt !important;
    }

    .report-callout-icon {
        font-size: 10pt !important;
        color: #64748b !important;
    }

    .result-section-title {
        font-size: 7.2pt !important;
        font-weight: 700 !important;
        margin-top: 2.5pt !important;
        margin-bottom: 2.5pt !important;
        color: #0f172a !important;
        text-transform: uppercase;
        letter-spacing: 0.2pt;
    }

    .result-section-title .material-icons {
        display: none !important;
    }

    .lageklasse-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 6pt !important;
        margin-top: 2.5pt !important;
        margin-bottom: 1pt !important;
    }

    /* Alle Lageklassen im Druck einheitlich sachlich in Grautönen */
    .lageklasse-official-seal,
    .lageklasse-official-seal.lageklasse-a,
    .lageklasse-official-seal.lageklasse-b,
    .lageklasse-official-seal.lageklasse-c,
    .lageklasse-official-seal.lageklasse-d,
    .lageklasse-official-seal.lageklasse-e {
        flex: 0 0 75pt !important;
        padding: 3pt 4pt !important;
        border-radius: 3pt !important;
        border: 1.5px solid #475569 !important;
        background: #f8fafc !important;
        color: #0f172a !important;
        box-shadow: none !important;
        text-align: center !important;
    }

    .lageklasse-seal-header {
        font-size: 5.5pt !important;
        margin-bottom: 1pt !important;
        font-weight: 800 !important;
        color: #475569 !important;
        letter-spacing: 0.4pt !important;
    }

    .lageklasse-seal-badge,
    .lageklasse-official-seal.lageklasse-a .lageklasse-seal-badge,
    .lageklasse-official-seal.lageklasse-b .lageklasse-seal-badge,
    .lageklasse-official-seal.lageklasse-c .lageklasse-seal-badge,
    .lageklasse-official-seal.lageklasse-d .lageklasse-seal-badge,
    .lageklasse-official-seal.lageklasse-e .lageklasse-seal-badge {
        width: 24pt !important;
        height: 24pt !important;
        font-size: 14pt !important;
        font-weight: 900 !important;
        margin: 1pt auto 1.5pt auto !important;
        background: #1e293b !important;
        color: #ffffff !important;
        border-radius: 3pt !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .lageklasse-scale-mini {
        display: flex !important;
        height: 3pt !important;
        gap: 1.5pt !important;
        margin-top: 1.5pt !important;
        max-width: 55pt !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Farbbalken im Druck durch sachlichen Graustufen-Indikator ersetzen */
    .lageklasse-scale-step {
        height: 3pt !important;
        background-color: #cbd5e1 !important; /* Inaktive Stufen in dezentem Hellgrau */
        border-radius: 1pt !important;
    }

    .lageklasse-scale-step.active {
        background-color: #0f172a !important; /* Aktive Stufe als sattes Anthrazit */
    }

    .lageklasse-explanation,
    .lageklasse-explanation.lageklasse-a,
    .lageklasse-explanation.lageklasse-b,
    .lageklasse-explanation.lageklasse-c,
    .lageklasse-explanation.lageklasse-d,
    .lageklasse-explanation.lageklasse-e {
        flex: 1 !important;
        padding: 3.5pt 6pt !important;
        font-size: 7.2pt !important;
        line-height: 1.32 !important;
        border-radius: 3pt !important;
        background-color: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 3.5pt solid #475569 !important;
        color: #1e293b !important;
        box-shadow: none !important;
    }

    /* 9. Signatur- & Prüfstempelblock am Ende */
    .print-official-footer-block {
        border-top: 2px solid #334155;
        margin-top: 12pt;
        padding-top: 7pt;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .print-footer-signature-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 12pt;
    }

    .print-footer-info {
        font-size: 7.3pt;
        line-height: 1.35;
        color: #334155;
    }

    .print-sign-title {
        font-size: 6.5pt;
        text-transform: uppercase;
        color: #64748b;
        font-weight: 700;
        margin-bottom: 2pt;
        letter-spacing: 0.3pt;
    }

    .print-org-name {
        font-size: 9pt;
        font-weight: 800;
        color: #0f172a;
    }

    .print-owner {
        font-weight: 700;
        color: #1e293b;
    }

    /* Authentischer, offiziell wirkender Prüfstempel im Doppelring */
    .official-swiss-seal {
        border: 2px solid #334155 !important;
        border-radius: 50% !important;
        width: 74pt !important;
        height: 74pt !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 3pt !important;
        color: #334155 !important;
        background-color: #ffffff !important;
        box-shadow: inset 0 0 0 1.5pt #ffffff, inset 0 0 0 2.5pt #475569 !important;
    }

    .seal-header {
        font-size: 4.2pt !important;
        font-weight: 800 !important;
        letter-spacing: 0.3pt !important;
        text-transform: uppercase !important;
        color: #334155 !important;
    }

    .seal-cross {
        font-size: 13pt !important;
        line-height: 1 !important;
        color: #1e293b !important;
        font-weight: 900 !important;
        margin: 1pt 0 !important;
    }

    .seal-badge {
        font-size: 5pt !important;
        font-weight: 900 !important;
        letter-spacing: 0.5pt !important;
        text-transform: uppercase !important;
        color: #1e293b !important;
        border-top: 0.75pt solid #334155 !important;
        border-bottom: 0.75pt solid #334155 !important;
        padding: 1pt 3pt !important;
        margin: 1pt 0 !important;
    }

    .seal-sub {
        font-size: 3.8pt !important;
        font-weight: 700 !important;
        color: #475569 !important;
        letter-spacing: 0.3pt !important;
    }

    .seal-date {
        font-size: 4.8pt !important;
        font-weight: 700 !important;
        margin-top: 1pt !important;
        color: #334155 !important;
        font-family: monospace, monospace !important;
    }

    .print-disclaimer {
        margin-top: 6pt;
        padding-top: 4pt;
        border-top: 1px dotted #94a3b8;
        font-size: 6.2pt;
        color: #64748b;
        line-height: 1.25;
        text-align: justify;
    }
}

