/* ETF Sparplan Einrichten - Specific Styles */

/* Quick Steps */
.quick-steps {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-step {
    background: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

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

.quick-step .step-number {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.quick-step h3 {
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 700;
}

.quick-step p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

.step-action {
    margin-top: 1rem;
}

.step-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.step-link:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.step-info {
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Quick Start CTA */
.quick-start-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.quick-start-cta h3 {
    color: #166534;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
}

.quick-start-cta p {
    color: #166534;
    margin-bottom: 1.5rem;
}

.recommended-combo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.combo-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.combo-item strong {
    color: #166534;
}

/* Detailed Steps */
.detailed-steps {
    margin-top: 2rem;
}

.step-section {
    margin-bottom: 3rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

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

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.checklist-item:hover {
    background: #f1f5f9;
}

.checklist-item input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    accent-color: #10b981;
}

.checklist-item span {
    color: #4b5563;
    line-height: 1.5;
    flex: 1;
}

/* Strategy Options */
.strategy-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strategy-option {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.strategy-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.strategy-option h5 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.strategy-option p {
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Broker Comparison Simple */
.broker-comparison-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.broker-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.broker-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.broker-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.broker-info img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.broker-details h5 {
    margin: 0 0 0.25rem 0;
    color: #1f2937;
    font-weight: 700;
}

.broker-details p {
    margin: 0;
    color: #4b5563;
    font-size: 0.875rem;
}

.broker-select {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.broker-select:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ETF Recommendations Simple */
.etf-recommendations-simple {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

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

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

.etf-option.featured {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.etf-badge {
    position: absolute;
    top: -15px;
    left: 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.etf-option h5 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 700;
}

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

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

.etf-option p {
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Depot Steps */
.depot-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.depot-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.depot-step span {
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Sparplan Config */
.sparplan-config {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 1.5rem;
    margin-top: 1rem;
}

.config-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.config-item h5 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.config-item p {
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ETF Decision Tree */
.etf-decision-tree {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.decision-node h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.decision-options {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
}

.decision-path {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.path-answer {
    background: #3b82f6;
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.path-result {
    padding: 1.5rem;
}

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

.path-result p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recommended-etf {
    background: #10b981;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

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

.path-result li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.path-result li:last-child {
    border-bottom: none;
}

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

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

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

.criteria-item-detailed h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.criteria-rule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rule-requirement {
    color: #3b82f6;
    font-weight: 600;
    font-size: 1rem;
}

.rule-explanation {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Config Sections */
.config-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.config-section {
    width: fit-content;
    margin: auto;
    background: white;
    border-radius: 12px;
    padding: 2rem;
}

.config-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
}

/* Sparrate Guide */
.sparrate-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sparrate-rule h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.income-examples {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.income-example {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.sparrate-tips h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

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

.sparrate-tips li {
    color: #4b5563;
    padding: 0.375rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

/* Execution Day Guide */
.execution-day-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.day-options {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 1rem;
}

.day-option {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.day-option:hover {
    border-color: #3b82f6;
}

.day-option.recommended {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.day-option h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.day-option p {
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.timing-tip {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
}

.timing-tip p {
    color: #92400e;
    font-weight: 500;  
    max-width: 100%;
    margin-bottom: 1.5rem;
}

/* Additional Settings */
.additional-settings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.setting-item h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.setting-item p {
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Tax Tips */
.tax-tips {
    /* display: grid; */ /* Comment out grid properties */
    /* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
    column-count: 2; /* For a two-column Masonry-like layout */
    column-gap: 2rem; /* Adjusted gap for columns */
    margin-top: 2rem;
}

.tax-tip-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem; /* Add vertical spacing between items in columns */
    break-inside: avoid; /* Prevent items from breaking across columns */
    align-self: flex-start; /* Ensure card only takes necessary height */
}

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

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

.freibetrag-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.freibetrag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.tax-comparison {
    display: grid;
    width: fit-content;
    margin: auto;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tax-option {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.tax-option.recommended {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

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

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

.tax-option li {
    color: #4b5563;
    padding: 0.375rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.tax-option li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #3b82f6;
    font-weight: bold;
}

.documentation-tips ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.documentation-tips li {
    color: #4b5563;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.documentation-tips li::before {
    content: "✅";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Common Mistakes */
.common-mistakes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.mistake-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    width: fit-content; /* Set width to fit content */
    margin: 0 auto; /* Center horizontally */
}

.mistake-category h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
}

.mistakes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mistake-item {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 1.5rem;
}

.mistake-item h4 {
    color: #dc2626;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center; /* Ensure heading is centered */
}

.mistake-item p {
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
    text-align: center; /* Explicitly center paragraph text */
    width: 100%; /* Ensure p takes full width */
}

.optimization-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    padding: 1.5rem;
}

.tip-item h4 {
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.tip-item p {
    color: #166534;
    margin: 0;
    line-height: 1.5;
} 

/* Responsive Design */
@media (max-width: 768px) {
    .quick-steps {
        grid-template-columns: 1fr;
    }
    
    .recommended-combo {
        grid-template-columns: 1fr;
    }
    
    .broker-comparison-detailed {
        grid-template-columns: 1fr;
    }
    
    .decision-options {
        grid-template-columns: 1fr;
    }
    
    .criteria-grid-detailed {
        grid-template-columns: 1fr;
    }
    
    .day-options {
        grid-template-columns: 1fr;
    }

    .sparplan-config {
        grid-template-columns: 1fr;
    }
    
    .tax-tips {
        column-count: 1; /* Single column on small screens */
    }
    
    .tax-comparison {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .income-example {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}