/* Depotuebertrag Kosten Dauer - Modern Design */

/* Grid Layouts - Follow global flex system */
.factors-grid,
.duration-factors .factors-grid,
.tips-grid,
.preparation-grid,
.documents-grid,
.transfer-brokers-grid,
.types-grid,
.reasons-grid,
.cost-breakdown,
.examples-grid,
.during-transfer,
.step-by-step-guide,
.tax-data-grid,
.scenarios-grid {
    gap: 1.5rem;
    margin: 2rem auto;
}

/* Card Styles - Modern and clean */
.factor-card,
.tip-item,
.document-card,
.cost-card,
.duration-card,
.guide-card,
.transfer-broker-card,
.type-card,
.reason-card,
.cost-breakdown-card,
.example-card,
.during-transfer-card,
.step-card,
.explanation-card,
.mistake-card,
.scenario-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    height: fit-content;
}

.factor-card:hover,
.tip-item:hover,
.document-card:hover,
.cost-card:hover,
.duration-card:hover,
.guide-card:hover,
.transfer-broker-card:hover,
.type-card:hover,
.reason-card:hover,
.cost-breakdown-card:hover,
.example-card:hover,
.during-transfer-card:hover,
.step-card:hover,
.explanation-card:hover,
.mistake-card:hover,
.scenario-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.08);
}

/* Example card special types */
.example-card.positive {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #bbf7d0;
}

.example-card.negative {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fca5a5;
}

.example-card.positive h4 {
    color: #166534;
}

.example-card.negative h4 {
    color: #dc2626;
}

/* Reason items */
.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.reason-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.reason-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

.reason-content h4 {
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.reason-content p {
    color: #4b5563;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Cost breakdown table */
.cost-table {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    min-width: 100%;
}

.cost-row {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr)
        minmax(180px, 1fr);
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    min-width: 600px;
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-header {
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}

.cost-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.cost-cell:last-child {
    border-right: none;
}

/* Example details */
.example-details {
    margin: 1rem 0;
}

.example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.example-row:last-child {
    border-bottom: none;
}

.example-row.total {
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-weight: 700;
    color: #1f2937;
}

.example-note {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* Tip items */
.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 50%;
    color: #3b82f6;
}

.tip-text h4 {
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.tip-text p {
    color: #4b5563;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Cost overview */
.cost-overview {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cost-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid #3b82f6;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cost-summary h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.cost-summary p {
    color: #1e40af;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Transfer explanation */
.transfer-explanation {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.explanation-card {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.explanation-card h3 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.explanation-card p {
    color: #92400e;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile responsive for cost table - keep as scrollable table */
@media (max-width: 768px) {
    .cost-table {
        /* Add subtle scroll indicator */
        box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.1);
    }

    .cost-row {
        /* Maintain grid structure for horizontal scrolling */
        min-width: 600px;
    }

    .cost-cell {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        min-height: 44px; /* Touch-friendly height */
    }

    /* Add scroll hint */
    .cost-breakdown::after {
        content: "← Horizontal scrollen für mehr Informationen →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #6b7280;
        margin-top: 0.5rem;
        font-style: italic;
    }

    .stat-item {
        min-width: 100px;
        padding: 0.75rem;
    }
}

/* Special card types */
.factor-card.fast {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #bbf7d0;
}

.factor-card.slow {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fca5a5;
}

.factor-card.fast h4 {
    color: #166534;
}

.factor-card.slow h4 {
    color: #dc2626;
}

/* Card Content */
.factor-card h4,
.tip-item h4,
.document-card h4,
.cost-card h4,
.duration-card h4,
.guide-card h4,
.transfer-broker-card h4,
.type-card h4,
.reason-card h4,
.cost-breakdown-card h4,
.example-card h4,
.during-transfer-card h4,
.step-card h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.factor-card p,
.tip-item .tip-text p,
.document-card p,
.cost-card p,
.duration-card p,
.guide-card p,
.transfer-broker-card p,
.type-card p,
.reason-card p,
.cost-breakdown-card p,
.example-card p,
.during-transfer-card p,
.step-card p {
    color: #4b5563;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Duration Overview - Modern container */
.duration-overview {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.duration-summary {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border: 1px solid #f59e0b;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.duration-summary h3 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.duration-summary p {
    color: #92400e;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Timeline Styling */
.timeline-process,
.depotubertrag-timeline {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

/* Ensure timeline items are visible and properly spaced */
.depotubertrag-timeline-item {
    opacity: 1;
    visibility: visible;
    position: relative;
    clear: both;
}

.timeline-process:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
}

.timeline-process h3 {
    color: #1f2937;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-timeline::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.timeline-step,
.depotubertrag-timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.timeline-step:last-child,
.depotubertrag-timeline-item:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -2rem;
    width: 3rem;
    height: 3rem;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-number:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.step-content {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.timeline-step:hover .step-content,
.depotubertrag-timeline-item:hover .step-content {
    background: #f1f5f9;
    border-color: #3b82f6;
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.step-content h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
}

.step-content p {
    color: #4b5563;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
}

.step-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-step:hover .step-duration,
.depotubertrag-timeline-item:hover .step-duration {
    background: #2563eb;
    transform: scale(1.05);
}

/* Remove old container borders */
.duration-factors,
.preparation-guide,
.cost-overview,
.documents-section {
    border: none;
    background: transparent;
    padding: 0;
    margin: 2rem auto;
    max-width: 1200px;
}

/* Section Titles */
.guide-section h2 {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guide-section h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep only essential responsive design for timeline */
@media (max-width: 768px) {
    .process-timeline {
        padding-left: 2rem;
    }

    .process-timeline::before {
        left: 1rem;
    }

    .timeline-step,
    .depotubertrag-timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .step-number {
        left: -2.25rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .step-content {
        padding: 1.25rem;
    }

    .step-duration {
        position: static;
        display: inline-block;
        margin-top: 0.75rem;
    }
}

/* Types grid (Vollübertrag/Teilübertrag) */
.type-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.type-card li {
    padding-left: 1.25rem;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
}

.type-card li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* Reasons grid (icons + content) */
.reasons-grid {
    gap: 1rem;
}

/* During transfer: two status columns */
.during-transfer {
    gap: 1.5rem;
}

.status-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    flex: 1 1 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.status-item h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: #1f2937;
}

.during-transfer .status-item:first-child h4 {
    color: #dc2626;
}
.during-transfer .status-item:last-child h4 {
    color: #059669;
}

.status-item ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Step-by-step guide */
.step-by-step-guide {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.guide-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-intro p {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0;
}

.detailed-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.step-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.step-detailed {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.step-detailed:last-child {
    margin-bottom: 0;
}

.step-detailed h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.checklist-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.checklist-item input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checklist-item label {
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.4;
}

/* Transfer brokers cards */
.transfer-brokers-grid > .transfer-broker-card {
    width: 350px;
    flex: 0 0 350px;
}

.transfer-broker-card .broker-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.transfer-broker-card .broker-header img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.5rem;
}

.transfer-broker-card .broker-title h3 {
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.transfer-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-text {
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    background: #d1fae5;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.transfer-conditions,
.transfer-bonus {
    margin-bottom: 1.5rem;
}

.transfer-conditions h4,
.transfer-bonus h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.transfer-conditions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 2.2rem;
}

.transfer-conditions li {
    color: #4b5563;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.transfer-conditions li::before {
    content: "✓";
    color: #059669;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.bonus-amount {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.bonus-amount strong {
    display: block;
    color: #92400e;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bonus-amount span {
    color: #92400e;
    font-size: 0.875rem;
}

.transfer-duration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.duration-label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.duration-value {
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 700;
}

.transfer-cta {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.transfer-cta:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Broker carousel styling - use standard carousel structure */
.broker-comparison-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

/* Standard carousel container for broker recommendations */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Ensure carousel track container doesn't overflow */
.carousel-track-container {
    overflow: hidden;
    border-radius: 12px;
    padding-top: 20px;
    width: 100%;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
}

.carousel-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.3s ease;
    width: 100%;
}

.carousel-item.broker-card {
    flex: 0 0 auto;
    width: fit-content;
    min-width: 280px;
    max-width: 320px;
    box-sizing: border-box;
    margin: 0;
}

.transfer-broker-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: auto;
    transition: all 0.3s ease;
}

.transfer-broker-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Desktop: Hide carousel controls, show normal grid */
@media (min-width: 769px) {
    .carousel-btn,
    .carousel-indicators {
        display: none;
    }

    .carousel-track-container {
        overflow: visible;
    }

    .carousel-track {
        flex-wrap: wrap;
        justify-content: center;
        transform: none !important;
    }
}

/* Mobile: Enable carousel functionality */
@media (max-width: 768px) {
    .carousel-btn,
    .carousel-indicators {
        display: flex;
    }

    .broker-comparison-grid {
        display: block;
        max-width: 350px;
        margin: auto;
        overflow: hidden;
    }

    .carousel-track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
    }

    .carousel-item.broker-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
    }
}

/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.carousel-prev {
    left: -1.5rem;
}

.carousel-next {
    right: -1.5rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #3b82f6;
    transform: scale(1.2);
}

.indicator:hover {
    background: #9ca3af;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .carousel-prev {
        left: -0.75rem;
    }

    .carousel-next {
        right: -0.75rem;
    }

    .broker-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .broker-header img {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .transfer-broker-card {
        padding: 1.5rem;
    }
}

/* Scenarios */
.scenario-card h4 {
    margin: 0 0 0.5rem 0;
}
.scenario-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* Professional tips area */
.tips-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive tweaks */
@media (min-width: 992px) {
    .detailed-steps .step-detailed {
        max-width: 760px;
    }
    .during-transfer {
        flex-wrap: wrap;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .step-section {
        padding: 1.5rem;
    }

    .detailed-steps {
        gap: 2rem;
    }

    .step-detailed {
        padding: 1rem;
    }

    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .broker-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .broker-header img {
        width: 50px;
        height: 50px;
    }
}

/* Tax sections - ensure proper structure */
.tax-tips,
.tax-scenarios {
    margin: 2rem 0;
}

.tax-tips h3,
.tax-scenarios h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tax tips card styling */
.tax-tips-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tax-tip {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: fit-content;
}

.tax-tip:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.tax-tip .tip-icon {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    display: block;
}

.tax-tip .tip-content h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tax-tip .tip-content p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Tax data grid - ensure proper card styling */
.tax-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.tax-data-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
}

.tax-data-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.tax-data-item h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tax-data-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tax-data-item li {
    color: #4b5563;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.tax-data-item li:last-child {
    border-bottom: none;
}

/* Scenarios grid styling - match steuerliche tipps styling */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.scenario-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: fit-content;
}

.scenario-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.scenario-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scenario-card p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive for card grids */
@media (max-width: 768px) {
    .tax-tips-list,
    .tax-data-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1rem;
        width: fit-content;
        margin: 0 auto;
    }

    .tax-tip,
    .tax-data-item,
    .scenario-card {
        width: 100%;
        max-width: none;
    }
}

/* Tablet responsive - show 2x2 grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .tax-tips-list,
    .tax-data-grid,
    .scenarios-grid {
        max-width: 700px;
        gap: 1rem;
    }
}
