/* =======================================================
    Core Variables and Base Styles
    ======================================================= */
    :root {
        --darkcyan: var(--color-primary);
        --darkcyan-light: var(--color-secondary);
        --primary-green: var(--color-secondary);
        --badge-green: var(--color-accent);
        --lightgray: var(--color-bg-light);
        --darkgray: var(--color-text-secondary);
        --hover-transition: all 0.3s ease;
    }

    /* Let the browser anchor immediately, including while detail resources load. */
    :root:has(#paketanfrage:target, #fachboersenwahl:target) {
        scroll-behavior: auto;
    }

    :root.package-fragment-entry:has(#paketanfrage:target:focus, #fachboersenwahl:target:focus) {
        overflow-anchor: none;
    }

    /* Animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-fade-in {
        animation: fadeIn 0.5s ease forwards;
    }

    /* =======================================================
    Package Layout and Components
    ======================================================= */
    /* Package Cards */
    .package-card {
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        transition: var(--hover-transition);
        background-color: white;
        overflow: hidden;
    }

    .package-header {
        border-radius: 12px 12px 0 0;
        padding: 1.5rem;
        background: linear-gradient(135deg, var(--darkcyan) 0%, var(--darkcyan-light) 100%);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .package-header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: rgba(180, 213, 148, 0.1);
        border-radius: 50%;
        transform: translate(50%, -50%);
    }

    .package-content {
        padding: 1.5rem;
    }

    /* Package Items */
    .package-items {
        margin-bottom: 2rem;
    }

    .package-items-header {
        background-color: var(--lightgray);
        border-radius: 8px 8px 0 0;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .package-item {
        background-color: white;
        border-radius: 8px;
        padding: 1.25rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid #f0f0f0;
        transition: var(--hover-transition);
    }

        .package-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border-color: #e9ecef;
        }

    .package-label {
        color: var(--darkgray);
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    /* Features and Jobboards */
    .feature-item {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }

    .feature-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background-color: rgba(6, 99, 111, 0.1);
        color: var(--color-primary);
        margin-right: 1rem;
    }

    .jobboard-box {
        display: flex;
        align-items: center;
    }

    .jobboard-logo {
        width: 120px;
        max-width: 100%;
        height: 48px;
        object-fit: scale-down;
        object-position: left center;
        transition: var(--hover-transition);
    }

        .jobboard-logo:hover {
            transform: scale(1.05);
        }

    /* Badges */
    .inklusive-badge {
        font-weight: 600;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        background-color: rgba(6, 99, 111, 0.1);
        color: var(--color-primary);
        display: inline-block;
        margin-right: 0.75rem;
        font-size: 0.875rem;
    }

    .product-badge {
        position: relative;
        display: inline-block;
        padding: 0.4rem 0.9rem;
        border-radius: 20px;
        background: rgba(180, 213, 148, 0.95);
        color: var(--color-primary);
        font-weight: 600;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
        width: fit-content;
        z-index: 10;
    }

        .product-badge:hover {
            background: rgba(180, 213, 148, 1);
        }

    .highlights-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: -0.25rem;
    }

    .highlight-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem;
        margin: 0.25rem;
        border-radius: 50px;
        background-color: rgba(6, 99, 111, 0.1);
        color: var(--color-primary);
        font-size: 0.75rem;
        font-weight: 500;
        transition: var(--hover-transition);
    }

        .highlight-badge:hover {
            background-color: var(--color-primary);
            color: white;
        }

    .befristetes-angebot {
        background-color: #FFD700;
        color: #000;
        font-weight: 500;
        font-size: 0.8rem;
    }

    /* =======================================================
    Kundenportal-Hinweis Card
    ======================================================= */
    .portal-hint-card {
        background: linear-gradient(135deg, #f0f9fa 0%, #e6f4f5 100%);
        border: 1px solid rgba(0, 99, 111, 0.15);
        transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }
    .portal-hint-card:hover {
        box-shadow: 0 4px 16px rgba(0, 99, 111, 0.12);
        transform: translateY(-2px);
        border-color: rgba(0, 99, 111, 0.35);
    }
    .portal-hint-card .portal-hint-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        background: rgba(0, 99, 111, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* =======================================================
    Neukunden-Rabatt-Hinweis Card
    ======================================================= */
    .neukunden-rabatt-card {
        background: linear-gradient(135deg, #fffbea 0%, #fff3cd 100%);
        border: 1px solid rgba(255, 193, 7, 0.4);
        transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }
    .neukunden-rabatt-card:hover {
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
        transform: translateY(-2px);
        border-color: rgba(255, 193, 7, 0.7);
    }
    .neukunden-rabatt-card .rabatt-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        background: rgba(255, 193, 7, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* =======================================================
    Price Display and Savings Visualization
    ======================================================= */
    .price-display {
        border-radius: 12px;
        overflow: hidden;
        background-color: #ffffff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
    }

    /* Section Headings */
    .section-heading {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin: 0;
    }

    .price-info-card .section-heading {
        color: white;
    }

    .savings-card .section-heading {
        color: #495057;
    }

    /* Price Card */
    .price-info-card {
        background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
        color: white;
        height: 100%;
    }

    .price-tag {
        font-size: 2.25rem;
        font-weight: 700;
    }

    .old-price {
        font-size: 1.3rem;
        color: white;
        margin: 5px 0;
    }

    .price-info {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.8rem;
    }

    /* Savings Card */
    .savings-card {
        background-color: white;
        height: 100%;
    }

    .savings-visualization {
        background-color: rgba(139, 195, 74, 0.08);
        border-radius: 8px;
        padding: 10px;
        max-width: 200px;
    }

    .savings-chart-container {
        position: relative;
        width: 90px;
        height: 90px;
    }

    .savings-chart-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .savings-percent {
        font-size: 1.3rem;
        font-weight: 700;
        color: #4CAF50;
        line-height: 1;
    }

    .savings-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1.2;
    }

    .savings-text {
        font-size: 0.75rem;
        color: #6c757d;
    }

    /* Countdown Timer */
    .countdown-container {
        background-color: rgba(6, 99, 111, 0.08);
        border-radius: 8px;
        padding: 10px;
        text-align: center;
    }

    /* Note: rgba color is hardcoded intentionally to match design */

    .countdown-timer {
        background-color: rgba(240, 250, 250, 0.6);
        border-radius: 8px;
        padding: 8px;
        display: inline-flex;
        margin: 0 auto;
        max-width: 280px;
    }

    .countdown-block {
        text-align: center;
        margin: 0 6px;
        min-width: 32px;
    }

    .time-value {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1;
    }

    .time-label {
        font-size: 0.65rem;
        color: var(--darkgray);
    }

    .countdown-separator {
        color: var(--color-primary);
        font-weight: bold;
        align-self: flex-start;
        font-size: 1.2rem;
        line-height: 1;
    }

    /* Product Description */
    .product-description-row {
        position: relative;
    }

    .description-full.expanded {
        display: block;
        opacity: 1;
        max-height: 1000px;
        transition: opacity 0.3s ease, max-height 0.5s ease;
    }

    .toggle-description-btn {
        font-size: 0.8rem;
        text-decoration: none;
    }

        .toggle-description-btn:hover {
            text-decoration: underline;
        }

    /* =======================================================
    Buttons, Forms, and Interactive Elements
    ======================================================= */
    .back-button, .pdf-button, .action-button {
        transition: var(--hover-transition);
    }

        .back-button:hover, .pdf-button:hover, .action-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

    /* Contact Form */
    .contact-form {
        border-radius: 12px;
        background-color: white;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        padding: 2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-control {
        border-radius: 8px;
        padding: 0.75rem 1rem;
        border: 1px solid #dee2e6;
        transition: var(--hover-transition);
    }

        .form-control:focus {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 0.2rem rgba(6, 99, 111, 0.25);
        }

    /* Buttons */
    .btn-primary {
        background-color: var(--darkcyan);
        border-color: var(--darkcyan);
        border-radius: 50px;
        padding: 0.75rem 2rem;
        font-weight: 600;
        transition: var(--hover-transition);
    }

        .btn-primary:hover {
            background-color: #04454d;
            border-color: #04454d;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

    /* Dropdown */
    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border: none;
        padding: 0.5rem;
    }

    /* =======================================================
    Responsive Styles
    ======================================================= */
    /* Utility Classes */
    .col-empty {
        display: none;
    }

    @media (min-width: 768px) {
        .col-empty {
            display: block;
        }
    }

    /* Tablet View (768px - 991px) */
    @media (min-width: 768px) and (max-width: 918px) {
        .package-table .d-flex.flex-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .package-table .highlight-badge {
            font-size: 0.75rem;
            padding: 0.4rem 0.8rem;
        }

        .table-responsive {
            overflow-x: auto;
        }
    }

    /* Desktop-Tablet Breakpoint */
    @media (max-width: 991.98px) {
        .savings-card, .price-info-card {
            padding: 1.5rem !important;
        }

        .d-flex.align-items-center {
            flex-direction: column;
        }

        .savings-chart-container {
            margin-bottom: 1rem !important;
            margin-right: 0 !important;
            width: 100px;
            height: 100px;
        }

        .savings-percent {
            font-size: 1.5rem;
        }

        .price-tag {
            font-size: 2rem;
        }

        .limited-offer-section {
            margin-top: 2rem !important;
        }
    }

    /* Mobile View */
    @media (max-width: 917.98px) {
        .empty-section {
            display: none;
        }

        .package-label {
            padding-bottom: 0.25rem;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 0.75rem;
        }

        .highlights-container {
            flex-direction: column;
            align-items: flex-start;
        }

        .highlight-badge {
            margin: 0.25rem 0;
            font-size: 0.7rem;
        }

        .jobboard-box {
            flex-direction: column;
            align-items: flex-start;
        }

        .inklusive-badge {
            margin-bottom: 0.75rem;
            margin-right: 0;
        }

        .package-header h1 {
            font-size: 1.25rem;
        }

        .paket-preis {
            display: block;
        }

        .price-tag {
            font-size: 2rem;
            justify-content: center !important;
        }

        .price-display .row {
            text-align: center;
        }

        .price-display .col-md-7 {
            order: 2;
            margin-top: 1rem;
        }

        .price-display .col-md-5 {
            order: 1;
        }

        .product-badge {
            max-width: 100%;
        }
    }

    /* Small Mobile View */
    @media (max-width: 576px) {
        .time-value {
            font-size: 0.9rem;
        }

        .countdown-block {
            min-width: 32px;
        }

        .savings-visualization {
            margin: 0 auto;
            text-align: center;
        }

        .countdown-block {
            margin: 0 4px;
        }

        .time-value {
            font-size: 1.25rem;
        }
    }

    /* Smallest Mobile View */
    @media (max-width: 400px) {
        .package-header h1 {
            font-size: 1.1rem;
        }

        .package-item {
            padding: 0.75rem;
        }

        .highlight-badge {
            font-size: 0.7rem;
            padding: 0.3rem 0.6rem;
        }

        .jobboard-logo {
            max-width: 100px;
        }
    }
