/* ETF Ratgeber Specific Styles */

/* Comparison Grid - Reusing component styles with fit-content */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.comparison-card.winner {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.comparison-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.broker-info img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.broker-info h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.rating {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.broker-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item div strong {
    color: #1f2937;
    font-weight: 600;
}

.feature-item div small {
    color: #6b7280;
    font-size: 0.75rem;
}

.broker-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.broker-actions .btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.broker-actions .btn-primary {
    background: #3b82f6;
    color: white;
}

.broker-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.broker-actions .btn-secondary {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.broker-actions .btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

/* Benefits Grid with fit-content and margin auto */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.benefit-card p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Mistakes Grid with fit-content */
.mistakes-grid {
    gap: 2rem;
    margin-top: 2rem;
}

.mistake-card {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.mistake-card:hover {
    border-color: #f87171;
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.1);
    transform: translateY(-2px);
}

.mistake-card h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.mistake-card p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.mistake-card strong {
    color: #1f2937;
    font-weight: 600;
}

/* ETF Recommendations Section */
.etf-recommendations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.etf-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.etf-card.featured {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.etf-card.featured:hover {
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.25);
    border-color: #059669;
}

.etf-card .etf-badge {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.etf-card h3 {
    color: #1f2937;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.etf-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.etf-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.etf-info span {
    font-size: 0.9rem;
    color: #4b5563;
    padding: 0.3rem 0;
}

.etf-info strong {
    color: #1f2937;
    font-weight: 700;
}

.etf-description {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.02);
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.etf-description p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.etf-pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pros {
    background: rgba(16, 185, 129, 0.03);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.pros h4 {
    color: #059669;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
}

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

.pros li {
    color: #374151;
    padding: 0.3rem 0;
    position: relative;
    padding-left: 2rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
    font-size: 1rem;
    background: rgba(16, 185, 129, 0.1);
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Criteria Grid with flex layout */
.criteria-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin: 2rem auto 0;
}

.criteria-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.criteria-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.criteria-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.criteria-card p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.criteria-card strong {
    color: #3b82f6;
    font-weight: 600;
}

/* ETF Selection Components */
.etf-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-top: 2rem;
}

.etf-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
}

.etf-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.etf-examples span {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.etf-examples a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.etf-examples a:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.cost-examples {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.cost-examples span {
    display: block;
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.diversification-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.diversification-examples span {
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ETF List for Trade Republic Page */
.etf-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.etf-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.etf-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.etf-item h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.etf-item .etf-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.etf-item .etf-details span {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.etf-item p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Steps Timeline with depot transfer logic - More specific to override ratgeber.css */
#sparplan-einrichten .etf-sparplan-timeline {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#sparplan-einrichten .etf-sparplan-timeline:hover {
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.1);
}

#sparplan-einrichten .process-timeline {
    position: relative;
    padding-left: 2rem;
}

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

#sparplan-einrichten .etf-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 2rem;
}

#sparplan-einrichten .etf-timeline-item:last-child {
    margin-bottom: 0;
}

#sparplan-einrichten .etf-timeline-item .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: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

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

#sparplan-einrichten .etf-timeline-item .step-content h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
}

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

#sparplan-einrichten .etf-timeline-item .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;
}

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

/* Selection Criteria Grid */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    gap: 1.5rem;
    margin-top: 2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    gap: 1.5rem;
    margin-top: 2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    gap: 1.5rem;
    margin-top: 2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ETF Selection Grid */
.etf-selection-grid {
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Broker Comparison Simple - 3 items per row on desktop */
.broker-comparison-simple {
    display: grid !important;
    grid-template-columns: repeat(3, 300px) !important;
    gap: 1.5rem;
    margin-top: 2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Criteria Card Hover Effects */
.criteria-card,
.benefit-card,
.mistake-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    width: 100%;
}

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

/* ETF Selection Cards */
.etf-type-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .etf-card {
        padding: 1.5rem;
    }

    .criteria-grid,
    .benefits-grid,
    .mistakes-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .criteria-card,
    .benefit-card,
    .mistake-card {
        margin: 0 auto;
    }

    .etf-selection-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .broker-comparison-simple {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .etf-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .etf-examples {
        flex-direction: column;
        align-items: flex-start;
    }

    .steps-timeline {
        width: 100%;
        padding: 0 1rem;
    }

    #sparplan-einrichten .etf-sparplan-timeline {
        padding: 1.5rem;
        margin: 1rem auto 0;
    }

    #sparplan-einrichten .process-timeline {
        padding-left: 2.5rem;
    }

    #sparplan-einrichten .process-timeline::before {
        left: 1.25rem;
    }

    #sparplan-einrichten .etf-timeline-item {
        padding-left: 2.5rem;
    }

    #sparplan-einrichten .etf-timeline-item .step-number {
        left: -2.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    #sparplan-einrichten .etf-timeline-item .step-content {
        padding: 1.25rem;
    }

    #sparplan-einrichten .etf-timeline-item .step-duration {
        position: static;
        display: inline-block;
        margin-top: 0.5rem;
    }
}
