/* Spezifisches CSS für Geburtsdatum-Formular */
.birthdate-form-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only - für Barrierefreiheit */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Birthdate form wrapper positioning */
.birthdate-form-wrapper {
    position: relative;
}

/* Layout für Desktop und Mobil */
.birthdate-form-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.birthdate-form-container {
    background-color: #cbf0d9;
    border-radius: 6px; /* Halbe Rundung */
    padding: 16px; /* Verringertes Padding */
    width: 100%;
    max-width: calc(100vw - 40px); /* Maximale Breite verhindert Überlauf */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
    border: 2px solid #88d6c2; /* Hellere, weniger auffällige grüne Farbe */
    outline: none;
    box-sizing: border-box;
}

/* Titel-Stile */
.birthdate-form-title {
    color: #2e7d32;
    font-size: 14px; /* Kleinere Schriftgröße */
    font-weight: 500;
    margin-bottom: 4px;
    text-align: left;
    line-height: 1.4;
    border: none;
    background: none;
    padding: 0;
}

/* Desktop-Titel außerhalb der Box in grau */
.birthdate-form-desktop-title {
    display: none; /* In Media Query unten auf block gesetzt */
    color: #666; /* Graue Schrift */
    margin-bottom: 8px; /* Näher an der Box */
    margin-left: 10px; /* Einrückung nach rechts */
    font-size: 15px; /* Noch kleinere Schriftgröße für Desktop-Titel */
}

/* Mobile-Titel innerhalb der Box in grau */
.birthdate-form-mobile-title {
    display: block; /* In Media Query unten auf none gesetzt */
    color: #666; /* Graue Schrift für mobile Variante */
}

.birthdate-form-inputs {
    display: flex;
    gap: 8px; /* Kleinere Abstände zwischen Eingabefeldern */
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.birthdate-form-input-group {
    flex: 1;
    position: relative;
    margin: 0;
}

.birthdate-form-input-group.birthdate-form-year-input {
    flex: 1.5;
}

.birthdate-form-date-input {
    width: 100% !important;
    height: 56px;
    border: 2px solid #e0e0e0;
    border-radius: 4px; /* Halbe Rundung */
    background-color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    color: #333; /* Dunkles Grau für bessere Lesbarkeit */
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    margin: 0;
    padding: 0 8px;
    font-family: inherit;
    line-height: normal;
    vertical-align: baseline;
    box-shadow: none;
    box-sizing: border-box;
}

.birthdate-form-date-input::-webkit-outer-spin-button,
.birthdate-form-date-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Platzhaltertext-Styling */
.birthdate-form-date-input::placeholder {
    color: #999;
    opacity: 1;
}
.birthdate-form-date-input::-webkit-input-placeholder {
    color: #999;
    opacity: 1;
}
.birthdate-form-date-input::-moz-placeholder {
    color: #999;
    opacity: 1;
}
.birthdate-form-date-input:-ms-input-placeholder {
    color: #999;
    opacity: 1;
}

.birthdate-form-date-input:focus {
    border-color: #26a69a;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.25);
    outline: none;
    background-color: #fafafa;
}

.birthdate-form-date-input.birthdate-form-error {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.15);
}

.birthdate-form-date-input.birthdate-form-valid {
    border-color: #4caf50;
}

.birthdate-form-submit-button {
    width: 100%;
    height: 56px;
    background-color: #26a69a;
    color: white;
    border: none;
    border-radius: 4px; /* Halbe Rundung */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: none;
    margin: 0;
    padding: 0;
    font-family: inherit;
    line-height: normal;
    vertical-align: baseline;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
    /* Link-spezifische Styles für identisches Aussehen */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthdate-form-submit-button:hover:not(:disabled) {
    background-color: #00897b;
}

.birthdate-form-submit-button:disabled {
    background-color: #b0bec5;
    cursor: not-allowed;
}

.birthdate-form-error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: -6px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    line-height: 1.3;
    font-weight: normal;
    background: none;
    border: none;
    padding: 0;
}

.birthdate-form-error-message.birthdate-form-show {
    opacity: 1;
}

/* Medium Screen Optimierung (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .birthdate-form-wrapper {
        max-width: 665px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .birthdate-form-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .birthdate-form-inputs-container {
        flex: 1;
    }

    .birthdate-form-submit-button {
        width: 250px;
        min-width: 200px;
        align-self: flex-end;
    }

    .birthdate-form-desktop-title {
        display: block;
    }

    .birthdate-form-mobile-title {
        display: none;
    }
}

/* Desktop-Optimierung: Button neben den Eingabefeldern (ab 1201px) */
@media (min-width: 1201px) {
    .birthdate-form-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px; /* Reduzierter Abstand zwischen Button und Eingabefeldern in Desktop */
    }

    .birthdate-form-inputs-container {
        flex: 1;
    }

    .birthdate-form-submit-button {
        width: 280px; /* Breiterer Button */
        min-width: 200px;
        align-self: flex-end;
    }

    .birthdate-form-desktop-title {
        display: block;
    }

    .birthdate-form-mobile-title {
        display: none;
    }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .birthdate-form-container {
        padding: 10px 8px; /* Noch kompakteres Padding */
        /*margin: 0 10px;*/
        border-radius: 6px; /* Kleinere Rundung für eleganteres Aussehen */
        max-width: calc(100vw - 20px); /* Verhindert Überlauf auf mobil */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Subtilerer Schatten */
    }

    .birthdate-form-title {
        font-size: 14px; /* Noch kleinere Schriftgröße */
        text-align: left;
        margin-bottom: 6px; /* Kleinerer Abstand */
        font-weight: 500;
    }

    .birthdate-form-inputs {
        gap: 5px; /* Noch kleinere Abstände zwischen Eingabefeldern */
        margin-bottom: 8px; /* Weiter reduzierter Abstand zum Button */
    }

    .birthdate-form-date-input {
        height: 48px; /* Deutlich kleinere Höhe */
        font-size: 17px; /* Kleinere Schriftgröße */
        border-radius: 4px; /* Kleinere Rundung */
        width: 100% !important;
        border: 1.5px solid #e0e0e0; /* Dünnerer Rahmen */
        padding: 0 6px; /* Weniger Padding */
    }

    .birthdate-form-submit-button {
        height: 48px; /* Gleiche Höhe wie Eingabefelder */
        font-size: 16px; /* Kleinere Schriftgröße */
        border-radius: 4px; /* Kleinere Rundung */
        font-weight: 500; /* Leichtere Schriftgewichtung */
        padding: 0 16px;
    }
}

/* Extra kleine Bildschirme */
@media (max-width: 360px) {
    .birthdate-form-container {
        margin: 0 5px;
        max-width: calc(100vw - 10px); /* Noch weniger Margin für sehr kleine Screens */
        padding: 8px 6px; /* Noch kompakteres Padding für sehr kleine Screens */
    }
    
    .birthdate-form-inputs {
        gap: 4px; /* Noch kleinere Abstände */
    }
    
    .birthdate-form-date-input {
        height: 44px; /* Noch etwas kleiner für sehr kleine Screens */
        font-size: 16px; /* Leicht reduzierte Schriftgröße */
        padding: 0 4px; /* Minimales Padding */
    }
    
    .birthdate-form-submit-button {
        height: 44px; /* Gleiche Höhe wie Eingabefelder */
        font-size: 15px; /* Angepasste Schriftgröße */
        padding: 0 12px;
    }
    
    .birthdate-form-title {
        font-size: 13px; /* Noch kleinere Schriftgröße */
        margin-bottom: 5px;
    }
}
.fillings-comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fillings-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.fillings-comparison-column {
    padding: 40px;
    position: relative;
}

.fillings-comparison-column:first-child {
    border-right: 1px solid #e0e0e0;
}

.fillings-comparison-image-container {
    width: 100%;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.fillings-comparison-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder styling */
.fillings-comparison-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border: 2px dashed #ddd;
}

.fillings-comparison-ai-prompt {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    max-width: 90%;
}

.fillings-comparison-ai-prompt strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.fillings-comparison-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #1a365d;
    text-align: center;
}

.fillings-comparison-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

.fillings-comparison-feature-list {
    list-style: none;
    padding-inline-start: 0;
}

.fillings-comparison-feature-item {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.fillings-comparison-feature-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background-color: white;
}

.fillings-comparison-feature-item::after {
    content: '×';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 18px;
    text-align: center;
    color: #d0d0d0;
}

.fillings-comparison-feature-item.fillings-comparison-checked::before {
    background-color: #00b4a6;
    border-color: #00b4a6;
}

.fillings-comparison-feature-item.fillings-comparison-checked::after {
    content: '✓';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
}

.fillings-comparison-highlight {
    font-weight: bold;
}

.fillings-comparison-green-text {
    color: #00b4a6;
    font-weight: bold;
}

@media (max-width: 768px) {
    .fillings-comparison-grid {
        grid-template-columns: 1fr;
    }

    .fillings-comparison-column:first-child {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .fillings-comparison-column {
        padding: 30px 20px;
    }
    
    .fillings-comparison-image-container {
        height: 150px;
        margin-bottom: 15px;
    }
    
    .fillings-comparison-ai-prompt {
        font-size: 11px;
        padding: 15px;
    }
    
    .fillings-comparison-ai-prompt strong {
        font-size: 12px;
    }
}
.insurance-table-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.insurance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.insurance-table th,
.insurance-table td {
    padding: 12px 16px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.insurance-table thead {
    background-color: #f8f9fa;
}

.insurance-table-header-group {
    font-weight: 600;
    font-size: 14px;
}

.insurance-table-header-top {
    background-color: #e8f5e9;
}

.insurance-table-header-price {
    background-color: #e3f2fd;
}

.insurance-table-company {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.insurance-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.insurance-table tbody tr:hover {
    background-color: #f0f0f0;
}

.insurance-table-section-header {
    background-color: #f5f5f5;
    font-weight: 600;
    text-align: left;
    padding-left: 20px;
}

.insurance-table-row-header {
    text-align: left;
    font-weight: 500;
    padding-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .insurance-table-container {
        border-radius: 4px;
    }

    .insurance-table th,
    .insurance-table td {
        padding: 8px 12px;
        font-size: 13px;
    }

    .insurance-table-company {
        font-size: 12px;
    }

    /* Scroll Indicator */
    .insurance-table-container {
        position: relative;
    }

    .insurance-table-container::after {
        content: '→';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: #666;
        pointer-events: none;
        opacity: 0.7;
    }

    .insurance-table-container::-webkit-scrollbar {
        height: 6px;
    }

    .insurance-table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .insurance-table-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
}
/* Refund Grid Styles */
.refund-grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 32px;
    /*background-color: #f8fafb;*/
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.refund-grid__card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Removed hover effect to prevent movement */

.refund-grid__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.refund-grid__icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

/* Removed hover effect on icons */

.refund-grid__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 32px;
}

.refund-grid__cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    /* Removed border-bottom */
}

/* Removed unnecessary style for last-child */

.refund-grid__cost-row--result {
    /* Removed all borders and backgrounds */
    margin-top: 16px;
    padding-top: 20px;
}

.refund-grid__cost-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.refund-grid__cost-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.refund-grid__cost-value--negative {
    color: #e53e3e;
}

.refund-grid__cost-value--positive {
    color: #38a169;
}

.refund-grid__cost-value--highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
}

.refund-grid__savings {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.refund-grid__savings-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.refund-grid__savings-value {
    font-size: 28px;
    font-weight: 800;
}

.refund-grid__with-insurance {
    /* Simple text display without background */
    padding: 12px 0;
    margin-top: 12px;
    text-align: center;
}

.refund-grid__with-insurance-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
}

.refund-grid__with-insurance-value {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

.refund-grid__benefit {
    background: #f0fdf4;
    color: #166534;
    border: none;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: center;
}

.refund-grid__benefit-text {
    color: #166534;
    font-weight: 600;
    font-size: 16px;
}

.refund-grid__euro {
    font-size: 0.9em;
    margin-left: 2px;
}

/* Eigenanteil Box Styling */
.refund-grid__eigenanteil-box {
    background: #f0fdf4;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    text-align: center;
    position: relative;
}

.refund-grid__eigenanteil-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.refund-grid__eigenanteil-icon {
    font-size: 24px;
}

.refund-grid__eigenanteil-label {
    font-size: 15px;
    color: #047857;
    font-weight: 600;
}

.refund-grid__eigenanteil-amount {
    font-size: 36px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 16px;
}

.refund-grid__savings-info {
    background: transparent;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refund-grid__savings-text {
    font-size: 14px;
    color: #065f46;
    font-weight: 500;
}

.refund-grid__savings-text strong {
    font-weight: 700;
    color: #047857;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .refund-grid__container {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .refund-grid__card {
        padding: 12px;
    }

    .refund-grid__title {
        font-size: 14px;
    }
    
    .refund-grid__eigenanteil-box {
        padding: 16px;
        margin-top: 20px;
    }
    
    .refund-grid__eigenanteil-amount {
        font-size: 28px;
    }
    
    .refund-grid__eigenanteil-label {
        font-size: 13px;
    }
    
    .refund-grid__savings-text {
        font-size: 13px;
    }
}
/* Desktop Table of Contents - Non-Sticky Version for Split Layouts */
.comparison-toc-desktop {
    /*background: #f8fafb;*/
    border-radius: 8px;
    /*padding: 1rem 0.75rem;*/
    /*border: 1px solid #e2e8f0;*/
}

.comparison-toc-desktop-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-toc-desktop-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comparison-toc-desktop-main-item {
    display: block;
    padding: 0.375rem 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.2s ease;
    background: transparent;
    border-left: 2px solid transparent;
    position: relative;
}

.comparison-toc-desktop-main-item:hover {
    color: #24b2a5;
}

.comparison-toc-desktop-main-item.active {
    color: #24b2a5;
    font-weight: 500;
    border-left-color: #24b2a5;
}

/* Mobile: Hide desktop TOC on mobile devices */
@media (max-width: 768px) {
    .comparison-toc-desktop {
        display: none !important;
    }
}

/* Table of Contents Styling */
.comparison-toc-container {
    background: linear-gradient(135deg, #f8fafb 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 2.5rem 0;
    margin: 3rem 0;
}

.comparison-toc {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.comparison-toc-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-toc-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: transparent;
    border-left: 3px solid transparent;
    position: relative;
}

.comparison-toc-item:hover {
    background: rgba(36, 178, 165, 0.08);
    color: #24b2a5;
    border-left-color: rgba(36, 178, 165, 0.3);
    transform: translateX(4px);
}

.comparison-toc-item.active {
    background: linear-gradient(135deg, rgba(36, 178, 165, 0.15) 0%, rgba(72, 194, 183, 0.1) 100%);
    color: #1a365d;
    font-weight: 600;
    border-left-color: #24b2a5;
    box-shadow: 0 2px 8px rgba(36, 178, 165, 0.2);
}

.comparison-toc-item.active:hover {
    background: linear-gradient(135deg, rgba(36, 178, 165, 0.2) 0%, rgba(72, 194, 183, 0.15) 100%);
    transform: translateX(6px);
}

/* Mobile Sticky TOC */
.comparison-toc-mobile-sticky {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(36, 178, 165, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.comparison-toc-mobile-sticky.sticky-visible {
    transform: translateY(0);
}

.comparison-toc-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.comparison-toc-mobile-header:hover {
    background-color: rgba(36, 178, 165, 0.03);
}

.comparison-toc-mobile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-right: 1rem;
}

.comparison-toc-mobile-title {
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
}

.comparison-toc-mobile-current-wrapper {
    position: relative;
    width: 100%;
    height: 1.4rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.comparison-toc-mobile-current {
    position: absolute;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 400;
    color: #1a365d;
    text-align: left;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.25s ease;
    opacity: 1;
}

.comparison-toc-mobile-current.fade-out {
    opacity: 0;
}

.comparison-toc-mobile-current.fade-in {
    opacity: 1;
}

.comparison-toc-mobile-current-next {
    display: none; /* Hide the unused next element */
}

/* Desktop Sticky TOC */
.comparison-toc-desktop-sticky {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 450px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(36, 178, 165, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comparison-toc-desktop-sticky.sticky-visible {
    transform: translateY(0);
    opacity: 1;
    display: block;
}

.comparison-toc-desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    border-radius: 12px 12px 0 0;
    transition: background-color 0.2s ease;
}

.comparison-toc-desktop-header:hover {
    background-color: rgba(36, 178, 165, 0.05);
}

.comparison-toc-desktop-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-right: 0.8rem;
}

.comparison-toc-desktop-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
}

.comparison-toc-desktop-current-wrapper {
    position: relative;
    width: 100%;
    min-height: 2rem;
    display: flex;
    align-items: center;
}

.comparison-toc-desktop-current {
    width: 100%;
    max-width: 370px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a365d;
    text-align: left;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.25s ease;
    opacity: 1;
}

.comparison-toc-desktop-current.fade-out {
    opacity: 0;
}

.comparison-toc-desktop-current.fade-in {
    opacity: 1;
}

.comparison-toc-desktop-toggle {
    background: none;
    border: none;
    color: #24b2a5;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-toc-desktop-toggle:hover {
    background: rgba(36, 178, 165, 0.1);
}

.comparison-toc-desktop-toggle.expanded svg {
    transform: rotate(180deg);
}

.comparison-toc-desktop-nav {
    /*max-height: 0;*/
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
}

.comparison-toc-desktop-sticky.expanded .comparison-toc-desktop-nav {
    max-height: 400px;
    overflow-y: auto;
}

.comparison-toc-desktop-item {
    display: block;
    padding: 0.4rem 0.75rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.2s ease;
    border-left: 2px solid transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.comparison-toc-desktop-item:hover {
    color: #24b2a5;
}

.comparison-toc-desktop-item.active {
    color: #24b2a5;
    font-weight: 500;
    border-left-color: #24b2a5;
}

.comparison-toc-mobile-toggle {
    background: none;
    border: none;
    color: #24b2a5;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-toc-mobile-toggle:hover {
    background: rgba(36, 178, 165, 0.1);
}

.comparison-toc-mobile-toggle.expanded svg {
    transform: rotate(180deg);
}

.comparison-toc-mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border-top: 1px solid rgba(36, 178, 165, 0.1);
}

.comparison-toc-mobile-sticky.expanded .comparison-toc-mobile-nav {
    max-height: 400px;
    overflow-y: auto;
}

.comparison-toc-mobile-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.2s ease;
    border-left: 2px solid transparent;
}

.comparison-toc-mobile-item:hover {
    color: #24b2a5;
}

.comparison-toc-mobile-item.active {
    color: #24b2a5;
    font-weight: 500;
    border-left-color: #24b2a5;
}

/* Mobile responsive TOC */
@media (max-width: 768px) {
    .comparison-toc-container {
        padding: 2rem 0;
        margin: 2rem 0;
    }

    .comparison-toc {
        padding: 0 1rem;
    }

    .comparison-toc-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .comparison-toc-nav {
        padding: 1rem;
        gap: 0.2rem;
    }

    .comparison-toc-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .comparison-toc-item:hover {
        transform: translateX(2px);
    }

    .comparison-toc-item.active:hover {
        transform: translateX(3px);
    }

    /* Show mobile sticky TOC */
    .comparison-toc-mobile-sticky {
        display: block;
    }
    
    /* Hide desktop sticky TOC on mobile */
    .comparison-toc-desktop-sticky {
        display: none !important;
    }
}

/* Desktop only - show desktop sticky TOC */
@media (min-width: 769px) {
    .comparison-toc-desktop-sticky {
        display: none; /* Will be shown by JavaScript when needed */
    }
    
    .comparison-toc-mobile-sticky {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .comparison-toc-container {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }

    .comparison-toc {
        padding: 0;
    }

    .comparison-toc-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .comparison-toc-nav {
        padding: 0.8rem;
    }

    .comparison-toc-item {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Mobile sticky adjustments */
    .comparison-toc-mobile-header {
        padding: 0.5rem 1rem;
    }

    .comparison-toc-mobile-content {
        margin-right: 0.5rem;
        gap: 0.2rem;
    }

    .comparison-toc-mobile-title {
        font-size: 0.6rem;
        letter-spacing: 0.6px;
    }

    .comparison-toc-mobile-current-wrapper {
        height: 1.6rem;
    }

    .comparison-toc-mobile-current {
        font-size: 0.8rem;
    }

    .comparison-toc-mobile-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}
/* Treatment Cost Table Styles */
.tct__container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.tct__table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background-color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.tct__header {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
}

.tct__treatment {
    background-color: #f1f3f4;
    font-weight: 600;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.tct__cost-standard {
    background-color: white;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: top;
}

.tct__cost-insurance {
    background-color: white;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: top;
}

.tct__cost-private {
    background-color: #fee2e2;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: top;
    font-weight: 600;
}

.tct__note {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.tct__price-range {
    font-weight: 600;
    color: #dc7c26;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .tct__container {
        margin: 10px 0;
    }

    .tct__table {
        font-size: 12px;
    }

    .tct__header,
    .tct__treatment,
    .tct__cost-standard,
    .tct__cost-insurance,
    .tct__cost-private {
        padding: 8px 6px;
    }
}

/* Scrollbar styling */
.tct__container::-webkit-scrollbar {
    height: 8px;
}

.tct__container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tct__container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.tct__container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
