    /* Keep single file! Actually better for loading purposes */
    :root {
        --primary-color: #1f4e79;
        --mid-color: #2d658f;
        --secondary-color: #3a7ca5;
        /*         --accent-color: #f6a800;
 */

        --accent-color: #acacac;
        --text-color: #333;
        --light-text: #fff;
        --bg-color: #f9f9f9;
        --card-bg: #fff;
        --border-color: #e0e0e0;
        --success-color: #2ecc71;
        --warning-color: #e67e22;
        --error-color: #e74c3c;
        --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: var(--text-color);
        background-color: var(--bg-color);
        transition: var(--transition);
        min-height: 100vh;
        /* Critical: forces body to be at least as tall as the screen */
        margin: 0;
        /* Removes default browser margins to prevent scrollbars */
        display: flex;
        flex-direction: column;
    }

    /* 2. Make the content grow to fill available space */
    main {
        flex: 1;
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    header {
        background-color: var(--primary-color);
        color: var(--light-text);
        padding: 1rem 0;
        box-shadow: var(--box-shadow);
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: none;
        /* Remove transition to prevent flickering */
    }

    /* Ensure container maintains consistent size */
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        min-height: 20px;
        transition: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.5rem;
        font-weight: bold;
    }

    /* Add a pointer cursor on hover for clickable elements */
    .logo:hover,
    button:hover,
    [role="button"]:hover {
        cursor: pointer;
    }

    /* Optional: Improve accessibility by also showing focus styles */
    .logo:focus,
    button:focus,
    [role="button"]:focus {
        outline: 2px solid #007bff;
        /* Or your brand's focus color */
        outline-offset: 2px;
    }

    /* Navigation */
    nav {
        background-color: var(--secondary-color);
        padding: 0;
    }

    .nav-menu {
        display: flex;
        list-style: none;
        flex-wrap: wrap;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        color: var(--light-text);
        text-decoration: none;
        transition: var(--transition);
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* =============================================================================
   DISABLED NAV ITEM
   ============================================================================= */
.nav-item.is-disabled {
    opacity: 0.5;            /* Make it look "faded" */
    pointer-events: none;    /* Disables clicking AND hovering (so no dropdowns) */
    cursor: default;         /* Resets the mouse cursor */
}

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--secondary-color);
        min-width: 200px;
        box-shadow: var(--box-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
        z-index: 100;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        display: block;
        padding: 10px 15px;
        color: var(--light-text);
        text-decoration: none;
        transition: var(--transition);
    }

    .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* Add styles for mobile menu toggle in header */
    .mobile-menu-toggle {
        background: none;
        border: none;
        color: var(--light-text);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        display: none;
        /* Hidden on desktop */
        transition: var(--transition);
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .mobile-menu-close {
        display: none;
        position: fixed;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--light-text);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1000;
    }



    .btn {
        display: inline-block;
        padding: 12px 24px;
        background-color: var(--accent-color);
        color: var(--text-color);
        text-decoration: none;
        border-radius: 4px;
        font-weight: bold;
        transition: var(--transition);
        border: none;
        cursor: pointer;
    }

    .btn:hover {
        background-color: #8a8a8a;
        transform: translateY(-2px);
    }

    .btn-outline {
        background: transparent;
        color: var(--light-text);
        border: 2px solid var(--light-text);
    }

    .btn-outline:hover {
        background-color: var(--light-text);
        color: var(--primary-color);
    }

    /* Main Content */
    main {
        padding: 10px 0;
    }

    .section {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 30px;
        position: relative;
        padding-bottom: 10px;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 3px;
        background-color: var(--accent-color);
    }

    /* Cards */
    .cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }

    .card {
        background-color: var(--card-bg);
        border-radius: 8px;
        box-shadow: var(--box-shadow);
        overflow: hidden;
        transition: var(--transition);
        margin-bottom: 1.0rem;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .card-header {
        background-color: var(--card-bg);
        color: var(--primary-color);
        padding: 15px 20px 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .card-header h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .card-header i {
        font-size: 1.1rem;
    }

    .card-header .toggle-icon {
        font-size: 24px;
        color: rgba(0, 0, 0, 0.35);
        transition: transform 0.3s ease, color 0.3s ease;
        flex-shrink: 0;
    }

    .card-header:hover .toggle-icon {
        color: rgba(0, 0, 0, 0.5);
    }

    .card.collapsed .card-header .toggle-icon {
        transform: rotate(-90deg);
    }

    .card.collapsed .card-body {
        display: none;
    }

    .card-body {
/*         padding: 20px;
 */        padding: 0px 20px 10px 20px;
    }

    .card-title {
        font-size: 1.3rem;
        /*         margin-bottom: 15px;
 */
        color: var(--primary-color);
    }

    .card-text {
        margin-bottom: 15px;
    }

    @media (max-width: 768px) {
        .card-header {
            padding: 10px 10px 10px 10px;
        }

        .card-body {
/*             padding: 10px;
 */            padding: 0px 10px 5px 10px;
        }
    }

    /* Tabs */
    .tabs-container {
        margin-bottom: 40px;
    }

    .tabs-nav {
        display: flex;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .tab-button {
        background: none;
        border: none;
        padding: 12px 20px;
        font-size: 1rem;
        cursor: pointer;
        border-bottom: 3px solid transparent;
        transition: var(--transition);
        color: var(--text-color);
    }

    .tab-button.active {
        border-bottom-color: var(--accent-color);
        color: var(--primary-color);
        font-weight: bold;
    }

    .tab-content {
        display: none;
        animation: fadeIn 0.5s;
    }

    .tab-content.active {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Comparison Tool Krankenversicherung */
    .kv-comparison-container {
        background-color: var(--card-bg);
        border-radius: 8px;
        box-shadow: var(--box-shadow);
        padding: 30px;
        margin-bottom: 40px;
    }

    .kv-comparison-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .kv-comparison-table th,
    .kv-comparison-table td {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .kv-comparison-table th {
        background-color: var(--primary-color);
        color: var(--light-text);
    }

    .kv-comparison-table tr:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* FAQ Section */
    .accordion {
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .accordion-item {
        border-bottom: 1px solid var(--border-color);
    }

    .accordion-item:last-child {
        border-bottom: none;
    }

    .accordion-header {
        background-color: var(--card-bg);
        padding: 15px 20px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: var(--transition);
    }

    .accordion-header:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .accordion-title {
        font-weight: bold;
    }

    .accordion-icon {
        transition: var(--transition);
    }

    .accordion-item.active .accordion-icon {
        transform: rotate(180deg);
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .accordion-item.active .accordion-content {
        max-height: 500px;
    }

    .accordion-body {
        padding: 0 20px 15px;
    }

    /* Form Elements */
    .form-group {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .form-label {
        display: inline-block;
        margin-bottom: 0;
        font-weight: 600;
        font-size: 0.9rem;
        min-width: 180px;
        /* Increased to accommodate longest label: "Kinderfreibeträge" */
        flex-shrink: 0;
    }

    .form-control {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        background-color: var(--card-bg);
        color: var(--text-color);
        font-size: 0.9rem;
        flex: 1;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
    }

    select.form-control {
        cursor: pointer;
    }

    /* Form row styling for horizontal layout */
    .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 0px;
        flex-wrap: wrap;
    }

    .form-row .form-group {
        flex: 1;
        min-width: 200px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Ensure all form-groups within form-rows use horizontal layout */
    .beamte-options .form-group,
    .tarif-options .form-group,
    .beamte-options-employment .form-group,
    .tarif-options-employment .form-group,
    .beamte-options-tax .tarif-options-tax .form-group,
    .beamte-options-allowances .form-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    @media (max-width: 768px) {
        .form-group {
            flex-direction: row;
            /* KEEP horizontal */
            align-items: center;
            gap: 8px;
        }

        .form-label {
            min-width: 140px;
            /* smaller label width for mobile */
            font-size: 0.85rem;
        }

        .form-control {
            font-size: 0.85rem;
            padding: 8px 10px;
        }

        .form-row {
            flex-direction: column;
            /* rows stack, but fields stay horizontal */
            gap: 8px;
        }

        .form-row .form-group {
            width: 100%;
            min-width: 0;
        }

        .zuschlags-container {
            padding: 8px 10px;
        }

        .zuschlags-container .quick-link-card h3 {
            font-size: 0.85rem;
        }

    }

    .form-label {
        flex: 0 0 180px;
    }

    @media (max-width: 768px) {
        .form-label {
            flex: 0 0 110px;
        }
    }

    /* Ensure Stufe field maintains horizontal layout even when JavaScript manipulates display */
    #stufe,
    #stufe.form-group {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    #stufe.form-group .form-label {
        display: inline-block !important;
        margin-bottom: 0 !important;
        min-width: 180px !important;
        flex-shrink: 0 !important;
    }

    #stufe.form-group .form-control {
        flex: 1 !important;
        width: 100% !important;
    }

    /* Override any JavaScript display changes for form groups */
    .beamte-options .form-group[style*="display: none"],
    .tarif-options .form-group[style*="display: none"],
    .beamte-options-employment .form-group[style*="display: none"],
    .tarif-options-employment .form-group[style*="display: none"],
    .beamte-options-tax .tarif-options-tax .form-group[style*="display: none"],
    .beamte-options-allowances .form-group[style*="display: none"] {
        display: flex !important;
    }

    /* When form groups are shown again, ensure flex layout */
    .beamte-options .form-group,
    .tarif-options .form-group,
    .beamte-options-employment .form-group,
    .tarif-options-employment .form-group,
    .beamte-options-tax .tarif-options-tax .form-group,
    .beamte-options-allowances .form-group {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* 1. The Container (The Visual Box) */
    .form-group.boxed-input {
        position: relative;
        /* Essential for positioning the label inside */
        display: block !important;
        /* Reset flex layout */
        height: 56px;
        /* Fixed height is important for consistency */

        /* Visual styling */
        border: 1px solid var(--border-color, #ccc);
        border-radius: 4px;
        background-color: var(--card-bg, #fff);
        padding: 0 !important;
        /* Remove padding from container, let select handle it */
        cursor: pointer;
    }
    
    /* Position info icon inside boxed-input */
    .form-group.boxed-input .info-icon {
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 15;
        /* Ensure it's above the select */
        font-size: 0.9em;
        color: #0066cc;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .form-group.boxed-input .info-icon:hover {
        color: #0056b3;
        background-color: rgba(255, 255, 255, 1);
        transform: translateY(-50%) scale(1.1);
    }

    /* 2. The Label (Floating at the top) */
    .form-group.boxed-input .form-label {
        position: absolute;
        top: 8px;
        /* Distance from top */
        left: 12px;
        /* Distance from left */
        z-index: 10;
        /* Ensure it sits on top of the select */

        font-size: 0.75rem;
        color: var(--text-color);
        opacity: 0.85;
        margin: 0;
        pointer-events: none;
        /* Clicks pass through the label to the select below */
        line-height: 1;
    }

    /* 3. The Select (Fills the whole box) */
    .form-group.boxed-input .form-control {
        width: 100%;
        height: 100%;

        /* Position text at the bottom */
        padding: 24px 50px 4px 12px !important;
        /* Right padding increased to make room for arrow AND info icon */
        margin: 0 !important;

        /* Remove default borders/backgrounds */
        border: none !important;
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;

        /* Text Styling */
        font-size: 0.9rem;
        color: var(--text-color);

        /* HIDE the native arrow so we can position our own */
        -webkit-appearance: none;
        appearance: none;

        /* INSERT custom arrow centered vertically */
        /* This SVG is a standard dark grey dropdown arrow */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        /* Arrow positioned at the right edge */
        background-size: 16px;

        cursor: pointer;
    }

    .form-group.boxed-input .form-control option {
        background-color: var(--card-bg, #fff);
        /* Background of the list */
        color: var(--text-color, #333);
        /* Text color of the list */
    }

    /* 5. Special handling for number inputs - FIXED */
    /* High specificity selector to override the default .boxed-input styles */
    .form-group.boxed-input input[type="number"].form-control,
    .form-group.boxed-input input[type="text"].form-control {
        background-image: none !important;
        /* Removes the custom dropdown arrow */
        -moz-appearance: textfield;
        /* Removes Spinner in Firefox */
        appearance: textfield;
        /* Standard property */
        padding: 24px 50px 4px 12px !important;
        /* Right padding increased to make room for info icon */
    }

    /* Removes Spinner in Chrome, Safari, Edge, Opera */
    /* We use the same high-specificity selector chain to be safe */
    .form-group.boxed-input input[type="number"].form-control::-webkit-outer-spin-button,
    .form-group.boxed-input input[type="number"].form-control::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* 4. Focus State */
    .form-group.boxed-input:focus-within {
        border-color: var(--primary-color);
        /* box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); */
        /* Optional glow */
    }

    /* Calculator Tool */
    .calculator-container {
        background-color: var(--card-bg);
        border-radius: 8px;
        box-shadow: var(--box-shadow);
        padding: 30px;
    }

    .calculator-result {
        margin-top: 20px;
        padding: 15px;
        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
        font-weight: bold;
    }

    /* News Section */
    .news-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }

    .news-item {
        background-color: var(--card-bg);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
    }

    .news-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .news-image {
        height: 180px;
        background-color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--light-text);
        font-size: 3rem;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .news-date {
        font-size: 0.9rem;
        color: #777;
        margin-bottom: 10px;
    }

    /* Footer */
    footer {
        background-color: var(--primary-color);
        color: var(--light-text);
        padding: 0px 0 10px;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 12px;
        margin: 0;
        /* Removes default browser margin for better vertical centering */
    }

    .footer-bottom a {
        color: inherit;
        /* Inherits the color from the parent <p> tag */
        text-decoration: none;
        /* Removes the standard link underline */
        font-weight: inherit;
        /* Ensures it uses the same font weight */
    }

    .social-links {
        display: flex;
        gap: 15px;
        margin-top: 15px;
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: var(--light-text);
        transition: var(--transition);
    }

    .social-link:hover {
        background-color: var(--accent-color);
        transform: translateY(-3px);
    }

    /* Utility Classes */
    .text-center {
        text-align: center;
    }

    .mb-20 {
        margin-bottom: 20px;
    }

    .mb-30 {
        margin-bottom: 30px;
    }

    .mt-20 {
        margin-top: 20px;
    }

    .mt-30 {
        margin-top: 30px;
    }


    @media (max-width: 768px) {

        /* Show mobile toggles */
        .mobile-menu-toggle {
            display: block;
            margin-left: auto;
            /* PUSHES THIS BUTTON TO FAR RIGHT */
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-50%) translateX(20px);
            }

            to {
                opacity: 1;
                transform: translateY(-50%) translateX(0);
            }
        }


        /* Header adjustments for mobile */
        header {
            padding: 0.5rem 0;
            min-height: 56px;
        }

        .header-content {
            min-height: 48px;
            position: relative;
            flex-wrap: nowrap;
            gap: 10px;
            justify-content: flex-start;
            /* PACK ITEMS TO THE LEFT */
        }

        .logo span {
            font-size: 1.2rem;
            /* smaller logo text */
        }

        .logo {
            flex: 0 1 auto;
            /* Don't force grow, just take needed space */
            min-width: 0;
            z-index: 999;
            /* keep logo above inactive search */
        }

        .header-actions {
            z-index: 999;
            position: relative;
        }

        .nav-menu {
            position: fixed;
            top: 56px;
            /* place menu just below header */
            right: -100%;
            width: 70%;
            height: calc(100vh - 72px);
            /* fill remaining viewport height */
            background-color: var(--secondary-color);
            flex-direction: column;
            padding-top: 20px;
            /* smaller padding since header space is reserved */
            transition: var(--transition);
            z-index: 999;
            /* keep above content, but below header if needed */
        }

        .nav-menu.active {
            right: 0;
        }

        .nav-item {
            width: 100%;
        }

        .dropdown-menu {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            display: none;
            background-color: rgba(0, 0, 0, 0.1);
        }

        .nav-item.active .dropdown-menu {
            display: block;
        }

        .nav-item>.nav-link {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Add arrow indicator for dropdown items on mobile */
        .nav-item:has(.dropdown-menu)>.nav-link::after {
            content: '▼';
            font-size: 0.7em;
            margin-left: 8px;
            transition: transform 0.3s ease;
        }

        /* Rotate arrow when dropdown is active */
        .nav-item.active:has(.dropdown-menu)>.nav-link::after {
            transform: rotate(180deg);
        }

        /* Override existing dropdown styles for mobile */
        .nav-item .dropdown-menu {
            position: static !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
            box-shadow: none !important;
            display: none !important;
            background-color: rgba(0, 0, 0, 0.1);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, display 0.3s ease;
        }

        /* Show dropdown when parent item is active */
        .nav-item.active .dropdown-menu {
            display: block !important;
            max-height: 500px;
        }

        /* Style dropdown items on mobile */
        .nav-item.active .dropdown-menu .dropdown-item {
            padding-left: 40px;
            /* Indent dropdown items */
            background-color: transparent;
        }

        .nav-item.active .dropdown-menu .dropdown-item:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }


        /* Comparison table smaller padding */
        .comparison-table {
            font-size: 0.9rem;
        }

        .comparison-table th,
        .comparison-table td {
            padding: 10px 5px;
        }

        .section-title {
            font-size: 1.5rem;
        }
    }


    @media (max-width: 576px) {
        .footer-content {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 200px) {
        .logo span {
            display: none;
            /*Hide text of header on very small screens */
        }
    }

    /* =============================================================================
    GLOBALE STILE (gelten auf allen Seiten)
    ============================================================================= */

    /* Grundlegende Stile für die quick-link-card Komponente */
    .quick-link-card {
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 8px 15px;
        box-shadow: var(--box-shadow);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
        height: 100%;
        min-height: 35px;
        width: 100%;
        box-sizing: border-box;
        justify-self: center;
        transform: translateZ(0);
        /* Hardware acceleration */
        will-change: transform;
        /* NEW: Crucial for positioning the status title */
        position: relative;
    }

    .quick-link-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 10;
    }

    .quick-link-card:hover .quick-link-icon {
        color: var(--primary-color);
    }

    .quick-link-content {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        height: 100%;
        overflow: visible;
        position: relative;
    }

    .quick-link-icon {
        font-size: 1.4rem;
        color: var(--primary-color);
        transition: color 0.3s ease;
        flex-shrink: 0;
    }

    .quick-link-card h3 {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
        margin: 0;
        color: var(--text-color);
        font-weight: 600;
        text-align: left;
        white-space: normal;
        /* allow line breaks */
        word-break: break-word;
        /* prevent overflow */
        overflow: hidden;
        flex: 1;
        min-width: 0;
        line-height: 1.4;
    }

    .quick-link-card p {
        display: none;
    }

    /* Hide default focus outline for all quick-link cards */
    .quick-link-card:focus {
        outline: none;
        box-shadow: none;
    }

    /* --- ADD THIS NEW RULE AT THE END OF YOUR STYLESHEET --- */
    /* The status title (e.g., "Aktuell", "Prognose") */
    /* This is created by the JavaScript and must have this class */
    .period-status {
        position: absolute;
        top: 0;
        /* Aligns with the top of the card */
        right: -10px;
        /* Aligns with the right edge of the card */
        transform: translateY(-50%);
        /* Pulls it up to be centered on the top border */
        font-size: 0.7rem;
        font-weight: bold;
        color: var(--accent-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 1;
        /* Ensures it's above the card background */
    }

    /* Ensure selected states override everything */
    .quick-link-card.is-selected,
    .quick-link-card.is-selected-sub,
    .quick-link-card.is-selected-period {
        outline: none !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
    }

    /* Stil für den ausgewählten Haupt-Button, der als "Zurück"-Schalter dient */
    .quick-link-card.is-selected {
        background-color: var(--primary-color, #007bff);
        color: white;
        transform: translateY(0);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }


    .quick-link-card.is-selected .quick-link-icon,
    .quick-link-card.is-selected h3 {
        color: white;
    }

    .quick-link-card.is-selected:hover {
        background-color: var(--primary-color, #007bff);
        color: white;
        transform: translateY(0);
    }

    /* Stil für ausgewählte Sub-Category-Buttons */
    .quick-link-card.is-selected-sub {
        background-color: var(--secondary-color);
        color: white;
        transform: translateY(0);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .quick-link-card.is-selected-period {
        background-color: var(--mid-color);
        color: white;
        transform: translateY(0);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .quick-link-card.is-selected-sub .quick-link-icon,
    .quick-link-card.is-selected-sub h3,
    .quick-link-card.is-selected-period h3 {
        color: white;
    }

    .quick-link-card.is-selected-sub:hover {
        background-color: var(--secondary-color);
        color: white;
        transform: translateY(0);
    }

    /* =============================================================================
    STILE FÜR DIE SEITE "Schnellzugriff" (#schnellzugriff)
    ============================================================================= */

    #schnellzugriff {
        margin-top: 0;
        margin-bottom: 40px;
    }

    #schnellzugriff .quick-links-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 20px;
        box-sizing: border-box;
    }


    /* ---- Responsive Breakpoints für "Schnellzugriff" ---- */

    @media (max-width: 768px) {
        .period-status {
            top: 2px;
            right: 2px;
        }

        #schnellzugriff {
            margin-bottom: 20px;
        }

        #schnellzugriff .quick-links-container {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            /* padding-left: 15px;
            padding-right: 15px; */
        }

        #schnellzugriff .quick-link-card {
            padding: 8px 12px;
            min-height: 50px;
            max-width: 200px;
        }

        #schnellzugriff .quick-link-content {
            gap: 10px;
        }

        #schnellzugriff .quick-link-icon {
            font-size: 1.4rem;
        }

        #schnellzugriff .quick-link-card h3 {
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        #schnellzugriff .quick-links-container {
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            /* padding-left: 10px;
            padding-right: 10px; */
        }

        #schnellzugriff .quick-link-card {
            padding: 6px 10px;
            min-height: 45px;
            max-width: 160px;
        }

        #schnellzugriff .quick-link-content {
            gap: 8px;
        }

        #schnellzugriff .quick-link-icon {
            font-size: 1.2rem;
        }

        #schnellzugriff .quick-link-card h3 {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 360px) {
        #schnellzugriff .quick-links-container {
            gap: 5px;
            /* padding-left: 10px;
            padding-right: 10px; */
        }

        #schnellzugriff .quick-link-card {
            padding: 5px 8px;
            min-height: 40px;
            max-width: 140px;
        }

        #schnellzugriff .quick-link-icon {
            font-size: 1.1rem;
        }

        #schnellzugriff .quick-link-card h3 {
            font-size: 0.8rem;
        }
    }

    /* =============================================================================
    STILE FÜR DIE SEITE "Besoldungstabellen" (#besoldungstabellen)
    ============================================================================= */

    .all-categories-container {
        margin-top: 20px;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        flex-wrap: wrap;
    }


    #besoldungstabellen {
        padding: 1rem 0;
    }

    #main-categories-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 0;
    }

    /* Logik zum Verstecken/Anzeigen der Haupt- und Sub-Buttons */
    .main-category-item.is-hidden,
    .sub-category-item.is-hidden,
    .period-level.is-hidden {
        display: none;
        /* Effektivste Methode zum Verstecken */
    }

    /* Each item fills its grid cell fully */
    #besoldungstabellen .main-category-item {
        width: 100%;
        box-sizing: border-box;
    }

    /* Each card stretches within its cell */
    #besoldungstabellen .quick-link-card {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: left;
        padding: 10px 15px;
        overflow: hidden;
    }

    .sub-category-item {
        width: 100%;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        margin-top: 0;
    }


    #besoldungstabellen .sub-category-item .quick-link-card {
        width: 100%;
    }

    /* ---- Responsive Breakpoints für "Besoldungstabellen" ---- */

    @media (max-width: 768px) {

        #besoldungstabellen #main-categories-container {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            padding: 0 0px;
            /* align with section-title */
        }

        #besoldungstabellen .quick-link-card {
            min-height: 50px;
        }

        #besoldungstabellen .quick-link-card h3 {
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


        #besoldungstabellen .quick-link-content {
            gap: 10px;
        }

        #besoldungstabellen .quick-link-icon {
            font-size: 1.4rem;
        }

        #besoldungstabellen .quick-link-card h3 {
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        #besoldungstabellen #main-categories-container {
            grid-template-columns: 1fr;
            /* one per row */
            gap: 6px;
            padding: 0 0px;
            /* align with section-title */
        }

        #besoldungstabellen .quick-link-card {
            padding: 8px 10px;
            min-height: 45px;
        }

        #besoldungstabellen .quick-link-card h3 {
            font-size: 0.85rem;
            text-overflow: ellipsis;
        }

        #besoldungstabellen .quick-link-content {
            gap: 8px;
        }

        #besoldungstabellen .quick-link-icon {
            font-size: 1.2rem;
        }

    }

    @media (max-width: 360px) {
        #besoldungstabellen #main-categories-container {
            grid-template-columns: 1fr;
            /* one per row */
            gap: 6px;
            padding: 0 0px;
            /* align with section-title */
        }

        #besoldungstabellen .quick-link-card {
            min-height: 40px;
        }

        #besoldungstabellen .quick-link-card h3 {
            font-size: 0.8rem;
        }

        #besoldungstabellen .quick-link-icon {
            font-size: 1.1rem;
        }
    }

    /* =============================================================================
    STILE FÜR DYNAMISCH GELADENE TABELLEN
    ============================================================================= */

    .table-validity {
        font-size: 0.9em;
        color: #666;
        margin: 1rem 0 0.5em 0;
        /* Explicit margin control */
        padding: 0;
        line-height: 1.4;
    }

    .table-source {
        font-size: 0.9em;
        color: #666;
        margin: 1rem 0 0.5em 0;
        /* Explicit margin control */
        padding: 0;
        line-height: 1.4;
    }

    .table-source a {
        /* color: #007bff; */
        text-decoration: none;
    }

    .table-source a:hover {
        text-decoration: underline;
    }

    /* --- Fix mobile table wrapper issues --- */
    .table-wrapper {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        border-radius: 8px;
        padding: 0.5rem;
        margin: 0 0 1rem 0;
        box-sizing: border-box;
        background-color: var(--card-bg, #fff);
        box-shadow: var(--box-shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
        border: 1px solid #e9ecef;
    }

    .table-wrapper:last-of-type {
        margin-bottom: 0;
    }

    /* Ensure horizontal scroll area has side padding on mobile */
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin: 0;
        /* remove negative margins for consistent look */
        padding-left: 0.5rem;
        /* restore horizontal space */
        padding-right: 0.5rem;
        scroll-behavior: smooth;
        width: 100%;
        /* ✅ container is full width */
        display: block;
        /* justify-content: flex-start; */
        /* ✅ keep table left-aligned */
    }

    /* Prevent bounce-back when reaching end of scroll */
    .table-scroll::-webkit-scrollbar {
        -webkit-appearance: none;
        height: 8px;
    }

    .table-scroll::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: rgba(0, 0, 0, 0.2);
    }

    /* Make sure the table uses full scroll width without shrinking */
    .data-table {
        width: max-content;
        /* min-width: 100%; */
        min-width: auto;
        font-size: 0.8rem;
        table-layout: auto;
        border-collapse: collapse;
        /* margin: 0 auto;  */
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.5rem;
        /* Kompaktere Zellen */
        text-align: center;
        vertical-align: top;
        white-space: nowrap;
        line-height: 1.2;
        border: 1px solid #e9ecef;
    }

    .data-table thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: var(--text-color, #495057);
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 2px solid #ced4da;
    }

    /* Spezieller Stil für die eingefrorene Spalte */
    .data-table th.sticky-col,
    .data-table td.sticky-col {
        position: sticky;
        left: 0;
        z-index: 11;
        background-color: #f8f9fa;
        font-weight: 600;
        border-right: 2px solid #ced4da;
    }

    .data-table td.sticky-col {
        background-color: #fff;
    }

    .data-table tbody tr:hover td:not(.sticky-col) {
        background-color: #f1f3f5;
    }

    .table-wrapper h3#table-title,
    .table-wrapper h3.table-title {
        margin-top: 0;
        padding-left: 0.5rem;
        font-size: 1rem;
        color: var(--text-color, #343a40);
    }

    /* On smaller devices, avoid cutoff at right edge */
    @media (max-width: 768px) {
        .table-scroll {
            margin: 0;
            /* visually extend scroll to viewport edge */
            padding-left: 0;
            padding-right: 0;
            display: block;
            /* simpler layout on small screens */
        }

        .table-wrapper {
            padding-left: 5px;
            padding-right: 5px;
            display: block;
            /* ✅ allow full width on small screens */
        }

        .table-wrapper h3#table-title,
        .table-wrapper h3.table-title {
            padding-left: 0;
        }
    }






    /* Medium screens (≤768px): bring it in slightly */
    @media (max-width: 768px) {
        .container {
            padding: 0 10px;
        }
    }


    .info-icon {
        cursor: pointer;
        color: #0066cc;
        margin-left: 5px;
        font-size: 0.9em;
        vertical-align: super;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .info-icon:active {
        transform: scale(0.95);
    }

    /* Style for the custom click/touch tooltip */
    .info-tooltip {
        background-color: #333;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        max-width: 350px;
        word-wrap: break-word;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        position: absolute;
        z-index: 1000;
        animation: fadeIn 0.2s ease-in-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (hover: none) and (pointer: coarse) {
        .info-icon {
            /* Remove title attribute effect on mobile */
            pointer-events: none;
            /* This is a trick to prevent the title tooltip from showing on tap */
            position: relative;
            /* Needed for the next part */
        }

        /* Make the icon clickable again by wrapping it in a pseudo-element */
        .info-icon::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: auto;
            /* This makes the overlay clickable */
        }
    }

    /* Style for desktop hover effect, using media query for better practice */
    @media (hover: hover) and (pointer: fine) {
        .info-icon:hover {
            color: #0056b3;
        }
    }


    /* Set a smaller padding for the scroll container of the clone */
    .compact-zulage-clone .table-scroll {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0.25rem;
        /* Slightly smaller bottom padding */
    }

    /* --- Allow multi-line text specifically for the first row of cloned tables --- */
    .compact-zulage-clone tbody tr:first-child th,
    .compact-zulage-clone tbody tr:first-child td {
        white-space: normal;
        /* This allows text to wrap */
        vertical-align: top;
        /* Align text to the top for better multi-line appearance */
        width: 60px;
        /* Give it a specific width to encourage wrapping */
        min-width: 60px;
        /* Prevent it from shrinking too much */
    }

    .compact-zulage-clone .data-table th,
    .compact-zulage-clone .data-table td {
        /* Reduce vertical padding significantly */
        padding: 0.25rem 0.45rem;
        line-height: 1.1;
        /* Also tighten the line-height */
        white-space: nowrap;
    }

    .zulage-line {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color, #dee2e6);
        font-size: 0.9rem;
    }

    .zulage-line:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Add this style block to your page */
    .zuschlags-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        align-items: start;
        width: 100%;
    }

    #zuschlags-container .quick-link-card {
        /* height: auto !important; */
        max-width: 100%;
        margin-bottom: 5px;
        overflow: hidden;
        /* Prevents overflow issues */

        /* Trying to match form-control styling */
        padding: 5px 5px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        background-color: var(--card-bg);
        color: var(--text-color);
        min-height: auto;

        /* New alignment styles to ensure exact height match */
        display: flex;
        align-items: center;
        /* Vertically centers the text */
        min-height: 25px;
    }


    #zuschlags-container .quick-link-card h3 {
        font-size: 0.9rem;
        margin: 0;
        color: var(--text-color);
        font-weight: 400;
        text-align: left;
        white-space: normal;
        word-break: break-word;
        overflow: hidden;
        flex: 1;
        min-width: 0;
        /* line-height: 1.6; */
    }

    .zuschlags-container .col-md-4 {
        padding: 0;
    }

    @media (max-width: 768px) {
        .zuschlags-container {
            gap: 10px;
        }

        #zuschlags-container .quick-link-card {
            width: 100;
            max-width: 100%;
        }
    }


    /* =============================================================================
    STILE FÜR DIE SEITE "Brutto-Netto-Rechner" (#brutto-netto-rechner)
    ============================================================================= */
    .calculation-results {
        padding: 0px;
    }

    .result-row {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 10px;
    }

    .result-box {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--mid-color) 100%);
        color: white;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex: 1;
        /* Makes boxes take equal width */
        min-width: 0;
        /* Prevents overflow */
    }

    /* Desktop styles for result items */
    .result-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .result-item:last-child {
        margin-bottom: 0;
    }

    .result-label {
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.7);
    }

    .result-value {
        font-size: 16px;
        color: var(--light-text);
    }

    .divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin-bottom: 16px;
    }


    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    .action-buttons .btn {
        flex: 1;
        padding: 12px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .action-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .details-section {
        margin-top: 15px;
    }

    .summary-section h4,
    .details-section h5 {
        color: var(--primary-color);
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--border-color);
    }

    /* Mobile Responsive Styles */
    @media (max-width: 768px) {
        .result-row {
            flex-direction: column;
            gap: 12px;
            margin-bottom: 12px;
        }

        .result-box {
            padding: 16px 12px;
            width: 100%;
            min-height: auto;
            margin-bottom: 0;
            /* Ensure no extra bottom margin */
        }

        .result-item {
            margin-bottom: 12px;
        }

        .result-label,
        .result-value {
            font-size: 15px;
            letter-spacing: 0.8px;
            line-height: 1.3;
        }

        .divider {
            margin-bottom: 12px;
        }

        .details-section {
            margin-top: 5px;
        }

        .summary-section h4,
        .details-section h5 {
            margin-bottom: 12px;
        }

    }

    @media (max-width: 480px) {
        .result-row {
            gap: 6px;
            /* Reduce gap between the boxes for smaller screens */
            margin-bottom: 8px;
        }

        .result-box {
            padding: 14px 10px;
        }

        .result-item {
            margin-bottom: 10px;
        }

        .result-label,
        .result-value {
            font-size: 14px;
            letter-spacing: 0.6px;
            line-height: 1.2;
        }

        .divider {
            margin-bottom: 10px;
        }

        .summary-section h4,
        .details-section h5 {
            margin-bottom: 10px;
            padding-bottom: 6px;
        }

    }

    /* Details Section Header */
    .details-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--border-color);
    }

    .details-header h5 {
        color: var(--primary-color);
        margin: 0;
        padding: 0;
        border: none;
        flex: 1;
        text-align: left;
    }

    .details-toggle-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        flex-shrink: 0;
    }

    .details-toggle-btn .toggle-icon {
        font-size: 24px;
        color: rgba(0, 0, 0, 0.35);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .details-toggle-btn:hover .toggle-icon {
        color: rgba(0, 0, 0, 0.5);
    }

    .details-toggle-btn.expanded .toggle-icon {
        transform: rotate(180deg);
    }

    /* Details Content */
    .details-content {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .details-content.visible {
        display: block;
        opacity: 1;
    }

    /* Details Cards */
    .details-card {
        background-color: var(--card-bg);
        border-radius: 6px;
        padding: 15px;
        box-shadow: var(--box-shadow);
        flex: 1;
        /* Makes cards take equal width */
        min-width: 0;
        /* Prevents overflow */
        display: flex;
        flex-direction: column;
    }

    /* Detail Rows */

    .detail-row,
    .deduction-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 44px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        background-color: transparent;
        transition: none;
    }

    .detail-row:hover,
    .deduction-row:hover {
        background-color: transparent;
        border-bottom: 1px solid #e9ecef;
    }

    .detail-row:last-child,
    .deduction-row:last-child {
        border-bottom: none;
    }

    .detail-row .label,
    .deduction-row .label {
        color: var(--text-color);
    }


    .detail-row .value.success {
        color: var(--text-color);
    }

    .detail-row.total .label {
        /* font-weight: 600; */
        font-weight: bold;
        color: var(--primary-color);
    }

    .detail-row.total .value {
        /* font-size: 18px; */
        font-weight: bold;
        color: var(--primary-color);
    }

    .detail-row.total {
        margin-top: auto;
        margin-bottom: 0px;
        border-top: 1.5px solid var(--border-color);
    }

    /* Apply same detail-row total styling to comparison results */
    .comparison-main .detail-row.total .label-text {
        font-weight: bold;
        color: var(--primary-color);
    }

    .comparison-main .detail-row.total .comparison-value {
        font-weight: bold;
        color: var(--primary-color);
    }

    .comparison-main .detail-row.total {
        margin-top: auto;
        margin-bottom: 0px;
        border-top: 1.5px solid var(--border-color);
    }

    .detail-row.total.comparison-brutto {
        border-bottom: none;
    }

    .deduction-row-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 44px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        background-color: transparent;
        transition: none;
    }

    .deduction-row-total .label {
        font-weight: 600;
        /* 500 Medium bold, 600 for more bold, 700 for total bold */
        color: var(--text-color);
    }

    .deduction-row-total .value {
        font-weight: 600;
        color: var(--text-color);
    }

    /* Apply the same deduction-row-total styling to comparison results */
    .comparison-main .deduction-row-total {
        /* We inherit the layout from .detail-row, so we only need to ensure borders/spacing match */
        border-bottom: 1px solid var(--border-color);
        background-color: transparent;
    }

    .comparison-main .deduction-row-total .label-text {
        font-weight: 600;
        color: var(--text-color);
    }

    .comparison-main .deduction-row-total .comparison-value {
        font-weight: 600;
        color: var(--text-color);
    }


    /* Mobile adjustments for details section */
    @media (max-width: 768px) {
        .details-header {
            margin-bottom: 8px;
        }

        .details-header h5 {
            font-size: 0.9rem;
        }

        .details-toggle-btn {
            padding: 5px 10px;
            margin-left: 8px;
        }

        .details-toggle-btn .toggle-icon {
            font-size: 20px;
        }
    }

    @media (max-width: 480px) {
        .details-header {
            padding: 4px;
        }

        .details-header h5 {
            font-size: 0.85rem;
        }

        .details-toggle-btn {
            padding: 4px 8px;
            margin-left: 6px;
        }

        .details-toggle-btn .toggle-icon {
            font-size: 18px;
        }

        .detail-row,
        .deduction-row,
        .deduction-row-total {
            height: 32px;
            padding: 6px 0;
        }
    }

    .details-card-row {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 20px;
    }

    /* Stack cards vertically in comparison mode */
    .comparison-main .details-card-row {
        flex-direction: column;
        gap: 8px;
        /* Reduced gap from 15px to 8px */
    }


    /* Mobile Responsive for details cards */
    @media (max-width: 768px) {
        .details-card-row {
            flex-direction: column;
            gap: 12px;
            margin-bottom: 12px;
        }

        .details-card {
            width: 100%;
            margin-bottom: 0;
        }
    }

    @media (max-width: 480px) {
        .details-card-row {
            gap: 8px;
            margin-bottom: 8px;
        }

        .details-card {
            padding: 10px 10px;
        }
    }

    /* =============================================================================
    Comparison Container & Layout
    ============================================================================= */
    .comparison-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
        padding: 0;
        width: 100%;
    }

    .calculation-column {
        min-width: 0;
        /* CSS Grid fix for text overflow */
    }

    .calc-card {
        border-radius: 8px;
        padding: 20px;
        background: white;
        height: 100%;
        /* Ensures cards are same height if one is longer */
        border: 2px solid var(--border-color);
        /* Fallback */
    }

    /* Dynamic Border Colors based on column position */
    .calculation-column:first-child .calc-card {
        border-color: var(--primary-color);
    }

    .calculation-column:last-child .calc-card {
        border-color: var(--primary-color);
    }

    .calc-header {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .calc-header h4 {
        margin: 0;
    }

    /* Dynamic Text Colors for Header */
    .calculation-column:first-child .calc-header h4 {
        color: var(--primary-color);
    }

    .calculation-column:last-child .calc-header h4 {
        color: var(--primary-color);
    }

    /* Note: You didn't have inline styles for .details-section,
    but ensuring the headers look right: */
    .details-header h5 {
        margin-bottom: 0px;
        margin-top: 0;
        flex: 1;
        text-align: left;
    }

    .laufzeit-display {
        margin-top: 10px;
        text-align: left;
        font-size: 0.75rem;
        color: var(--secondary-text-color);
    }

    #backToForm {
        background-color: var(--mid-color);
    }

    #newComparison {
        background-color: var(--secondary-color);
    }

    .disclaimer {
        margin-top: 25px;
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 6px;
        border-left: 4px solid var(--primary-color);
    }

    .disclaimer p {
        margin: 0;
        font-size: 12px;
        color: var(--text-color);
        opacity: 0.7;
        line-height: 1.5;
    }

    @media (max-width: 480px) {
        .comparison-container {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }


    /* =============================================================================
    comparison styles
    ============================================================================= */

    .comparison-results {
        padding: 0;
    }

    /* Container for side-by-side comparison result boxes */
    .comparison-result-boxes-container {
        display: flex;
        gap: 30px;
        margin-bottom: 25px;
        width: 100%;
    }

    .comparison-result-boxes {
        flex: 1;
        background-color: transparent;
        border-radius: 0px;
        padding: 0px;
        box-shadow: none;
        min-width: 0;
        /* Prevents flex items from overflowing */
    }

    /* Make result boxes smaller in comparison mode */
    .comparison-result-boxes .result-box {
        padding: 16px;
        border-radius: 8px;
    }

    .comparison-result-boxes .result-item {
        margin-bottom: 10px;
    }

    .comparison-result-boxes .result-item:last-child {
        margin-bottom: 0px;
    }

    .comparison-result-boxes .result-label {
        font-size: 14px;
        letter-spacing: 0.8px;
    }

    .comparison-result-boxes .result-value {
        font-size: 14px;
    }

    .comparison-result-boxes .divider {
        margin-bottom: 12px;
    }

    .comparison-result-boxes .comparison-calculation-header h3 {
        font-size: 1rem;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }

    .comparison-result-boxes .laufzeit-display {
        font-size: 0.75rem;
        margin-top: 5px;
    }

    .comparison-result-boxes .result-row {
        gap: 12px;
        margin-bottom: 0;
    }

    .comparison-calculation-header {
        text-align: left;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--border-color);
    }

    .comparison-calculation-header h3 {
        margin: 0 0 8px 0;
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .comparison-calculation-header .laufzeit-display {
        font-size: 0.8rem;
        color: var(--secondary-text-color);
    }

    .comparison-headers {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }

    .comparison-header {
        flex: 1;
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 15px;
        box-shadow: var(--box-shadow);
        text-align: center;
    }

    .comparison-header h4 {
        margin: 0 0 10px 0;
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .comparison-header .laufzeit-display {
        font-size: 0.8rem;
        color: var(--secondary-text-color);
    }

    .comparison-card {
        background-color: var(--card-bg);
        border-radius: 8px;
        box-shadow: var(--box-shadow);
        margin-bottom: 20px;
        overflow: hidden;
    }

    .comparison-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
    }

    .comparison-card-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }

    .card-toggle-btn,
    .section-toggle-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-toggle-btn .toggle-icon,
    .section-toggle-btn .toggle-icon {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.8);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .card-toggle-btn:hover .toggle-icon,
    .section-toggle-btn:hover .toggle-icon {
        color: white;
    }

    .card-toggle-btn.expanded .toggle-icon,
    .section-toggle-btn.expanded .toggle-icon {
        transform: rotate(180deg);
    }

    .comparison-card-content {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .comparison-card-content.visible {
        display: block;
        opacity: 1;
    }

    .comparison-section {
        border-bottom: 1px solid var(--border-color);
    }

    .comparison-section:last-child {
        border-bottom: none;
    }

    .comparison-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .comparison-section-header h4 {
        margin: 0;
        color: var(--primary-color);
        font-size: 1rem;
    }

    .comparison-section-content {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .comparison-section-content.visible {
        display: block;
        opacity: 1;
    }

    .comparison-table {
        padding: 15px 20px;
    }

    .comparison-value {
        flex: 1;
        font-size: 0.95rem;
    }

    .comparison-value.first-value {
        text-align: left;
    }

    .comparison-value.second-value {
        text-align: right;
    }

    .comparison-label {
        flex: 1.2;
        text-align: center;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .comparison-label .label-text {
        color: var(--text-color);
    }

    .comparison-label .info-icon {
        font-size: 0.8rem;
        color: var(--secondary-color);
        cursor: pointer;
    }


    /* Mobile-specific adjustments for comparison */
    @media (max-width: 768px) {
        .comparison-headers {
            display: flex;
            flex-direction: row;
            /* CHANGED: Keeps them side-by-side */
            gap: 10px;
            /* Reduced gap to save space */
            width: 100%;
        }

        .comparison-header {
            flex: 1;
            /* Ensures they take up equal space (50/50) */
            width: 50%;
            /* Explicit width for stability */
            padding: 10px 5px;
            /* Reduced padding for small screens */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .comparison-header h4 {
            font-size: 0.85rem;
            /* Smaller font to prevent breaking */
            line-height: 1.2;
            margin-bottom: 5px;
            word-break: break-word;
            /* Prevents long words from overflowing */
        }

        /* Stack comparison boxes vertically on mobile */
        .comparison-result-boxes-container {
            flex-direction: column;
            gap: 15px;
            margin-bottom: 15px;
        }

        .comparison-result-boxes {
            padding: 0px;
        }

        /* Make result boxes even smaller on mobile */
        .comparison-result-boxes .result-box {
            padding: 12px;
        }

        .comparison-result-boxes .result-item {
            margin-bottom: 10px;
        }

        .comparison-result-boxes .result-label {
            font-size: 13px;
            letter-spacing: 0.6px;
        }

        .comparison-result-boxes .result-value {
            font-size: 13px;
        }

        .comparison-result-boxes .divider {
            margin-bottom: 10px;
        }

        .comparison-result-boxes .comparison-calculation-header h3 {
            font-size: 0.95rem;
        }

        .comparison-result-boxes .laufzeit-display {
            font-size: 0.7rem;
        }

        .comparison-result-boxes .result-row {
            gap: 10px;
        }

        .comparison-calculation-header {
            margin-bottom: 12px;
            padding-bottom: 10px;
        }

        .comparison-header .laufzeit-display {
            font-size: 0.7rem;
        }

        .comparison-card-header {
            padding: 12px 15px;
        }

        .comparison-card-header h3 {
            font-size: 1.1rem;
        }

        .comparison-section-header {
            padding: 10px 15px;
        }

        .comparison-table {
            padding: 10px 15px;
        }

        .comparison-value {
            font-size: 0.9rem;
        }

        .comparison-label {
            font-size: 0.85rem;
        }

    }

    @media (max-width: 480px) {
        .comparison-header {
            padding: 10px 12px;
        }

        .comparison-header h4 {
            font-size: 0.9rem;
        }

        /* Keep stacked layout on very small screens */
        .comparison-result-boxes-container {
            flex-direction: column;
            gap: 12px;
            margin-bottom: 5px;
        }

        .comparison-result-boxes {
            padding: 0px;
        }

        /* Make result boxes even smaller on very small screens */
        .comparison-result-boxes .result-box {
            padding: 10px;
        }

        .comparison-result-boxes .result-item {
            margin-bottom: 8px;
        }

        .comparison-result-boxes .result-label {
            font-size: 12px;
            letter-spacing: 0.5px;
        }

        .comparison-result-boxes .result-value {
            font-size: 12px;
        }

        .comparison-result-boxes .divider {
            margin-bottom: 8px;
        }

        .comparison-result-boxes .comparison-calculation-header h3 {
            font-size: 0.9rem;
        }

        .comparison-result-boxes .laufzeit-display {
            font-size: 0.65rem;
        }

        .comparison-result-boxes .result-row {
            gap: 8px;
        }

        .comparison-calculation-header {
            margin-bottom: 10px;
            padding-bottom: 8px;
        }

        .comparison-calculation-header h3 {
            font-size: 0.9rem;
        }

        .comparison-card-header {
            padding: 10px 12px;
        }

        .comparison-card-header h3 {
            font-size: 1rem;
        }

        .comparison-section-header {
            padding: 8px 12px;
        }

        .comparison-section-header h4 {
            font-size: 0.9rem;
        }

        .comparison-table {
            padding: 8px 12px;
        }

        .comparison-value {
            font-size: 0.85rem;
        }

        .comparison-label {
            font-size: 0.8rem;
            flex: 1.5;
            /* Give more space to labels on very small screens */
        }
    }

    /* Mobile Comparison Box Styles */
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    /* Hide desktop elements on mobile */
    @media (max-width: 768px) {
        .desktop-only {
            display: none !important;
        }

        .mobile-only {
            display: block !important;
        }

    }

    @media (max-width: 480px) {

        /* Mobile comparison layout styles */
        .result-value-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            gap: 10px;
        }

        .result-value-left {
            flex: 1;
            text-align: left;
            font-size: 16px;
            color: var(--light-text);
            font-weight: 600;
        }

        .result-value-right {
            flex: 1;
            text-align: right;
            font-size: 16px;
            color: var(--light-text);
            font-weight: 600;
        }

        /* Mobile-specific adjustments for comparison layout */
        @media (max-width: 768px) {
            .result-value-container {
                gap: 8px;
            }

            .result-value-left,
            .result-value-right {
                font-size: 15px;
            }
        }

        @media (max-width: 480px) {
            .result-value-container {
                gap: 6px;
            }

            .result-value-left,
            .result-value-right {
                font-size: 14px;
            }
        }
    }

    /* =============================================================================
   SPECIFIC OVERRIDES FOR SUMMARY SECTION (Centering Layout)
   ============================================================================= */

    /* 1. Set the item to relative so we can absolutely position the label inside it */
    .summary-section.mobile-only .result-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Helps center vertically */
        min-height: 2rem;
        /* Ensures height for the absolute label */
    }

    /* 2. Position the Label perfectly in the center */
    .summary-section.mobile-only .result-label {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        /* Shifts it back by 50% of its own width to center perfectly */
        z-index: 1;
        /* Ensures it sits on top if space gets tight */
        white-space: nowrap;
        text-align: center;
        width: auto;
    }

    /* 3. Make the value container take full width and push values to edges */
    .summary-section.mobile-only .result-value-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        /* Pins left value to left, right value to right */
        align-items: center;
        gap: 0px;
        /* Remove gap so they push fully to edges */
    }

    /* 4. Ensure text alignment is strict */
    .summary-section.mobile-only .result-value-left {
        text-align: left;
    }

    .summary-section.mobile-only .result-value-right {
        text-align: right;
    }

    /* =============================================================================
NEW COMPARISON CARD LAYOUT STYLES
============================================================================= */

    /* Comparison row layout with label in the middle */
    .comparison-results .detail-row {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .comparison-results .detail-row:last-child {
        border-bottom: none;
    }

    .comparison-results .detail-row.total {
        font-weight: bold;
        border-top: 1.5px solid var(--border-color);
        margin-top: auto;
        margin-bottom: 0px;
    }

    .comparison-results .comparison-value {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .comparison-results .comparison-value.first-value {
        justify-content: flex-end;
        /* padding-right: 15px; */
    }

    .comparison-results .comparison-value.second-value {
        justify-content: flex-start;
        /* padding-left: 15px; */
    }

    .comparison-results .comparison-label {
        flex: 1.2;
        text-align: center;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .comparison-results .comparison-label .label-text {
        color: var(--text-color);
    }

    .comparison-results .detail-row.total .comparison-label .label-text {
        color: var(--primary-color);
        font-weight: bold;
    }

    /* Info icons in comparison mode */
    .comparison-results .comparison-value .info-icon {
        font-size: 0.8rem;
        color: #0066cc;
        margin: 0 5px;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Mobile adjustments for comparison card layout */
    @media (max-width: 768px) {
        .comparison-results .detail-row {
            padding: 8px 0;
        }

        .comparison-results .comparison-value.first-value {
            /* padding-right: 5px; */
            justify-content: flex-end !important;
            /* Override to align left on mobile */
            flex: 0.8;
            /* Reduce flex to take less space */
        }

        .comparison-results .comparison-value.second-value {
            /* padding-left: 5px; */
            justify-content: flex-start !important;
            /* Override to align right on mobile */
            flex: 0.8;
            /* Reduce flex to take less space */
        }

        .comparison-results .comparison-label {
            flex: 1;
            font-size: 0.85rem;
            padding: 0 3px;
            /* Add small padding to label */
        }

        .comparison-results .comparison-value .info-icon {
            font-size: 0.7rem;
        }
    }

    @media (max-width: 480px) {
        .comparison-results .detail-row {
            padding: 6px 0;
        }

        .comparison-results .comparison-value.first-value {
            /* padding-right: 1px; */
            justify-content: flex-end !important;
            /* Override to align left on mobile */
            flex: 0.8;
            /* Reduce flex to take less space */
        }

        .comparison-results .comparison-value.second-value {
            /* padding-left: 1px; */
            justify-content: flex-start !important;
            /* Override to align right on mobile */
            flex: 0.8;
            /* Reduce flex to take less space */
        }

        .comparison-results .comparison-label {
            flex: 1;
            font-size: 0.75rem;
            padding: 0 1px;
            /* Add small padding to label */
        }

        .comparison-results .comparison-value .info-icon {
            font-size: 0.6rem;
            margin: 0 1px;
        }
    }

    /* Container for the Value AND the Difference */
    .result-right-col {
        display: flex;
        flex-direction: column;
        /* Stacks Value on top, Difference below */
        align-items: flex-end;
        /* Aligns everything to the right */
        justify-content: center;
    }

    /* Style for the difference line itself */
    .diff-line {
        font-size: 0.85em;
        /* Slightly smaller than main value */
        font-weight: 600;
        margin-top: 10px;
        /* Small gap between value and diff */

    }

    /* Color definitions */
    .diff-positive {
        color: var(--success-color, #2ecc71);
    }

    .diff-negative {
        color: var(--error-color, #e74c3c);
    }

    /* Optional: Make the percentage distinct (e.g. smaller or lighter) */
    .diff-percent {
        opacity: 0.9;
        font-size: 0.9em;
        margin-left: 4px;
    }

    h1 {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    @media (max-width: 768px) {
        h1 {
            font-size: 1.35rem;
            margin-top: 9px;
        }
    }

    @media (max-width: 480px) {
        h1 {
            font-size: 1.25rem;
            margin-top: 8px;
        }
    }


    /* Center icons and text nicely */
    .btn-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* =============================================================================
   DESKTOP OVERRIDE: Left-Pinned Label with Overlay Values
   ============================================================================= */

    /* 1. Container setup */
    .comparison-result-boxes .result-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* Values stay pinned to the right */
        min-height: 2.8rem;
        /* Sufficient height for two lines of data */
        padding: 0px 0;
        width: 100%;
    }

    /* 2. Position the Label pegged to the left */
    .comparison-result-boxes .result-label {
        position: absolute;
        left: 0;
        /* Pinned to the left */
        top: 50%;
        transform: translateY(-50%);
        /* Centered vertically within the row */
        z-index: 2;
        /* Sits above the right-col if they overlap */
        white-space: nowrap;
        font-weight: 500;
        pointer-events: none;
        /* Clicks pass through to elements below */
    }

    /* 3. The value column takes full width */
    .comparison-result-boxes .result-right-col {
        width: 100%;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        z-index: 1;
        /* Sits behind the label */
    }

    /* 4. Ensure data doesn't wrap and can extend to the left as much as needed */
    .comparison-result-boxes .result-value,
    .comparison-result-boxes .diff-line {
        width: 100%;
        white-space: nowrap;
        line-height: 1.5;
    }


    /* --- New Header Back Button Styles --- */

    /* Parent container styles */
    .mobile-back-button-header {
        display: none;
        /* Hidden by default */
        align-items: center;
    }

    /* The actual button styling */
    #mobileHeaderBack {
        background-color: transparent;
        color: var(--light-text);
        border: none;
        padding: 4px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
        margin-right: 10px;
    }

    /* Optional: Add a hover effect since you had a transition defined */
    #mobileHeaderBack:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Icon size adjustments */
    #mobileHeaderBack .material-symbols-outlined {
        font-size: 20px;
    }


    /* Mobile back button for calculation results */
    @media (max-width: 768px) {
        .mobile-back-button-header {
            display: none;
            /* CHANGED: default to hidden to prevent flicker */
            /* JS will change this to 'flex' when needed */
        }

        /* Adjust header layout on mobile when showing results */
        .calculation-results .summary-header {
            flex-wrap: nowrap;
        }

        .calculation-results .summary-header h4 {
            font-size: 0.9rem;
            text-align: center;
            padding-right: 40px;
            /* Account for close button */
        }

        /* Adjust logo when back button is visible */
        .mobile-back-button-header~.logo {
            flex: 1;
            min-width: 0;
        }

        #backToForm {
            display: none !important;
            /* Hidden when on mobile */
        }
    }

    /* Force hide on desktop, overriding JS inline styles */
    @media (min-width: 769px) {
        .mobile-back-button-header {
            display: none !important;
        }
    }

    @media (max-width: 480px) {
        .calculation-results .summary-header h4 {
            font-size: 0.85rem;
        }
    }

    /* =============================================================================
   DISABLED STATE (For content not yet ready)
   ============================================================================= */

.quick-link-card.is-disabled {
    /* Visual cues */
    opacity: 0.8;                /* Make it semi-transparent */
    filter: grayscale(100%);     /* Remove color to make it look inactive */
    background-color: #f0f0f0;   /* Optional: Light gray background */
    cursor: default;             /* Reset cursor */
    
    /* Functional disabling */
    pointer-events: none;        /* Prevents ALL clicking and hovering interactions */
    box-shadow: none;            /* Remove the shadow depth */
}

/* Ensure hover animations don't happen even if pointer-events fails (failsafe) */
.quick-link-card.is-disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: #f0f0f0;
}

.quick-link-card.is-disabled .quick-link-icon,
.quick-link-card.is-disabled h3 {
    color: #999; /* Make text and icon gray */
}

/* =============================================================================
   CONSTRUCTION NOTICE (Disclaimer Section)
   ============================================================================= */
.construction-notice {
    background-color: var(--card-bg);     /* Matches your white cards */
    border-radius: 8px;                   /* Matches your card radius */
    box-shadow: var(--box-shadow);        /* Matches your drop shadows */
    border-left: 4px solid var(--primary-color); /* Uses your specific Dark Blue */
    padding: 2rem;
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition);
}

.construction-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-color);          /* Consistent header color */
    margin-bottom: 0.5rem;
}

.construction-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);             /* Uses #333 defined in :root */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .construction-notice {
        flex-direction: column;
        align-items: left;
        text-align: left;
        padding: 1rem;
    }
    
    .construction-content h2 {
        font-size: 1.3rem;
    }
}

/* Style specifically for disabled options in dropdowns */
select option:disabled {
    color: #a0a0a0;        /* Light grey text */
    background-color: #f4f4f4; /* Optional: very light grey background */
    font-style: italic;    /* Adds a nice visual cue */
}

/* Specific layout for Impressum/Legal pages */
.cards-container.legal-container {
    grid-template-columns: 1fr; /* Forces a single column */
    margin-left: auto;          /* Centers the container if max-width is used */
    margin-right: auto;         /* Centers the container if max-width is used */
}


/* Die schmale Leiste ganz oben */
.top-disclaimer {
    background-color: #f4f4f4; /* Sehr helles Grau, hebt sich vom Blau ab */
    color: #555;
    text-align: center;
    font-size: 11px;
    padding: 4px 10px;
    border-bottom: 1px solid #ddd;
    font-family: sans-serif;   /* Klare, einfache Schrift */
    letter-spacing: 0.5px;
}
/* Mobil-Optimierung */
@media (max-width: 600px) {
    .top-disclaimer {
        font-size: 10px;       /* Noch etwas kleiner auf Handys */
        padding: 4px 5px;      /* Weniger Platzverbrauch oben/unten */
        letter-spacing: 0.2px; /* Etwas mehr Zeichenabstand für die Lesbarkeit */
    }
}