/* =================================================================
   KAPITALANLEGER SPECIFIC STYLES
   Spezifische Styles nur für kapitalanleger.html
   ================================================================= */

/* Kapitalanleger Hero Background */
.hero-kapitalanleger {
    background-image: linear-gradient(rgba(23, 60, 75, 0.7), rgba(26, 68, 85, 0.7)), 
                      url(../src/img/kapital.png);
    background-size: cover;
    background-position: center;
    min-height: 90vh;
}

/* Fallback if investment image doesn't exist */
.hero-kapitalanleger:not([style*="background-image"]) {
    background-image: linear-gradient(rgba(23, 60, 75, 0.7), rgba(26, 68, 85, 0.7)), 
                      url(../src/img/kapital.png);
}

/* Kapitalanleger specific color accents - Gold theme */
.hero-kapitalanleger .stat-number {
    color: #daab36;
}

.hero-kapitalanleger .stat-item {
    border: 1px solid rgba(218, 171, 54, 0.3);
}

/* =================================================================
   INVESTMENT STRATEGIES SECTION
   ================================================================= */

.investment-strategies {
    padding: 5rem 0;
    background: white;
}

.investment-strategies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #173c4b;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.strategy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.strategy-icon img {
    height: 80px;
}

.strategy-card h3 {
    color: #173c4b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.strategy-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.strategy-card strong {
    color: #daab36;
    font-size: 1.1rem;
}

.strategy-details {
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.strategy-details small {
    color: #173c4b;
    font-weight: 500;
}

/* =================================================================
   TAX ADVANTAGES SECTION
   ================================================================= */

.tax-advantages {
    padding: 5rem 0;
    background: #f8fafc;
}

.tax-advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #173c4b;
}

.tax-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tax-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.tax-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tax-icon img {
    height: 56px;
}

.tax-card h3 {
    color: #173c4b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tax-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tax-benefit {
    color: #daab36;;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* =================================================================
   PORTFOLIO BUILDING SECTION
   ================================================================= */

.portfolio-building {
    padding: 5rem 0;
    background: white;
}

.portfolio-building h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #173c4b;
}

.timeline {
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #173c4b;
    transform: translateX(-50%);
}
/* Timeline Items - Basis Styling */
.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

/* Ungerade Items (links stehend) */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(odd) .timeline-year {
    /* Rechte Seite gerade (Verbindung), linke Seite rund */
    border-radius: 8px 0 0 8px;
}

.timeline-item:nth-child(odd) .timeline-content {
    /* Linke Seite gerade (Verbindung), rechte Seite rund */
    border-radius: 0 8px 8px 0;
}

/* Gerade Items (rechts stehend) */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-year {
    /* Linke Seite gerade (Verbindung), rechte Seite rund */
    border-radius: 0 8px 8px 0;
}

.timeline-item:nth-child(even) .timeline-content {
    /* Rechte Seite gerade (Verbindung), linke Seite rund */
    border-radius: 8px 0 0 8px;
}

/* Basis Styling für timeline-year */
.timeline-year {
    background: #173c4b;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: bold;
    min-width: 240px;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    /* border-radius wird oben überschrieben */
}

/* Basis Styling für timeline-content */
.timeline-content {
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    /* border-radius wird oben überschrieben */
}

/* Optional: Für nahtlose Verbindung */
.timeline-item:nth-child(odd) .timeline-year {
    margin-right: -1px; /* Überlappung für nahtlose Verbindung */
}

.timeline-item:nth-child(even) .timeline-year {
    margin-left: -1px; /* Überlappung für nahtlose Verbindung */
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .timeline-year {
        border-radius: 8px 8px 0 0 !important; /* Oben rund, unten gerade */
        margin: 0 !important;
    }
    
    .timeline-content {
        border-radius: 0 0 8px 8px !important; /* Oben gerade, unten rund */
        margin-top: -1px; /* Nahtlose Verbindung */
    }
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.timeline-content h3 {
    color: #173c4b;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    margin-bottom: 1rem;
}

.timeline-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-stats span {
    color: #daab36;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-summary {
    background: #173c4b;
    color: white;
    padding: 3rem;
    border-radius: 8px;
    margin-top: 3rem;
    text-align: center;
}

.portfolio-summary h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.summary-item {
    text-align: center;
}

.summary-item strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #daab36;
}

.summary-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =================================================================
   RESPONSIVE CALCULATOR STYLES - NEW CLASSES
   ================================================================= */

/* Calculator Result Title */
.calc-result-title {
    color: #daab36;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.calc-result-title.calc-warning {
    color: #f59e0b;
}

/* Calculator Stats Grid */
.calc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calc-stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.calc-stat-number {
    display: block;
    font-size: 1.3rem;
    color: #daab36;
    margin-bottom: 0.25rem;
}

.calc-stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Calculator Detail Box */
.calc-detail-box {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.calc-detail-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.calc-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.calc-detail-item {
    margin-bottom: 0.5rem;
}

.calc-detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Calculator Evaluation Box */
.calc-evaluation-box {
    background: rgba(218, 171, 54, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.calc-evaluation-title {
    color: #daab36;
    display: block;
    margin-bottom: 0.5rem;
}

.calc-evaluation-text {
    margin: 0;
    line-height: 1.5;
}

/* Calculator Recommendations */
.calc-recommendations {
    margin-top: 1.5rem;
}

.calc-recommendations-title {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.calc-recommendations-content {
    margin-top: 0.5rem;
}

.calc-recommendation-item {
    margin: 0.25rem 0;
    line-height: 1.4;
}

/* Calculator Actions */
.calc-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.calc-actions .cta-button {
    margin-right: 1rem;
}

/* Calculator Disclaimer */
.calc-disclaimer {
    display: block;
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Cashflow Colors */
.calc-cashflow-positive {
    color: #10b981;
}

.calc-cashflow-negative {
    color: #ef4444;
}

/* Calculator Error */
.calc-error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Calculator Optimization */
.calc-optimization {
    margin: 1rem 0;
}

.calc-optimization-list {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.calc-optimization-list li {
    margin-bottom: 0.5rem;
}

/* Portfolio Specific Classes */
.calc-portfolio-summary {
    background: rgba(218, 171, 54, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.calc-portfolio-title {
    color: #daab36;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.calc-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.calc-portfolio-item {
    text-align: center;
}

.calc-portfolio-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.calc-portfolio-number {
    font-size: 1.3rem;
    color: #daab36;
    font-weight: bold;
}

/* Timeline Classes */
.calc-timeline {
    margin-top: 0.5rem;
}

.calc-timeline-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.calc-timeline-item strong {
    color: #daab36;
}

.calc-financing-info {
    margin-top: 0.5rem;
}

.calc-financing-info p {
    margin: 0.25rem 0;
}

/* =================================================================
   CALCULATOR SPECIFIC STYLING
   ================================================================= */

#rendite-calculator .input-group input:focus,
#steuer-calculator .input-group input:focus,
#portfolio-calculator .input-group input:focus,
#rendite-calculator .input-group select:focus,
#steuer-calculator .input-group select:focus,
#portfolio-calculator .input-group select:focus {
    border-color: #daab36;
    box-shadow: 0 0 0 3px rgba(218, 171, 54, 0.2);
}

#rendite-calculator .calculate-btn,
#steuer-calculator .calculate-btn,
#portfolio-calculator .calculate-btn {
    background: linear-gradient(135deg, #daab36, #c4982e);
}

#rendite-calculator .calculate-btn:hover,
#steuer-calculator .calculate-btn:hover,
#portfolio-calculator .calculate-btn:hover {
    background: linear-gradient(135deg, #c4982e, #b8901a);
}

/* Calculator result styling for kapitalanleger */
.calc-result.rendite-result {
    background: linear-gradient(135deg, rgba(218, 171, 54, 0.1), rgba(218, 171, 54, 0.05));
    border: 2px solid #daab36;
}

.calc-result.steuer-result {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid #10b981;
}

.calc-result.portfolio-result {
    background: linear-gradient(135deg, rgba(218, 171, 54, 0.1), rgba(218, 171, 54, 0.05));
    border: 2px solid #daab36;
}

/* Kapitalanleger form specific styling */
#kapitalanleger-form input:focus,
#kapitalanleger-form select:focus,
#kapitalanleger-form textarea:focus {
    border-color: #daab36;
    box-shadow: 0 0 0 3px rgba(218, 171, 54, 0.1);
}

#kapitalanleger-form button {
    background: linear-gradient(135deg, #daab36, #c4982e);
}

#kapitalanleger-form button:hover {
    background: linear-gradient(135deg, #c4982e, #b8901a);
}

/* Specialist note for kapitalanleger */
.specialist-note {
    border: 1px solid rgba(218, 171, 54, 0.3);
}

.specialist-note h4 {
    color: #daab36;
}

/* Success indicators */
.success-indicator {
    color: #daab36;
    font-weight: bold;
}

.success-badge {
    background: #daab36;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* CTA section kapitalanleger specific */
.cta-section .cta-benefit .benefit-icon {
    color: #daab36;
}

.cta-benefit img {
    width: 40px;
    filter: brightness(0) invert(1);
}

/* Testimonials details for kapitalanleger */
.testimonials .testimonial-details {
    font-size: 0.9rem;
    color: #daab36;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Animation for successful calculation */
@keyframes investmentPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.calc-result.show-success {
    animation: investmentPulse 0.6s ease-out;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .hero-kapitalanleger {
        min-height: 70vh;
    }
    
    .strategies-grid {
        grid-template-columns: 1fr;
    }
    
    .tax-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .timeline-year {
        position: absolute;
        left: -10px;
        margin: 0;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .timeline-content {
        margin-top: 3rem;
        border-left: none;
        border-top: 4px solid #daab36;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .summary-item strong {
        font-size: 1.5rem;
    }
    
    .investment-strategies h2,
    .tax-advantages h2,
    .portfolio-building h2 {
        font-size: 2rem;
    }
    
    /* Mobile Calculator Responsive */
    .calc-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .calc-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .calc-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .calc-stat-item {
        padding: 0.75rem;
    }
    
    .calc-stat-number {
        font-size: 1.1rem;
    }
    
    .calc-actions {
        text-align: center;
    }
    
    .calc-actions .cta-button {
        display: block;
        margin: 0 0 1rem 0;
        width: 100%;
    }
    
    .calc-actions .secondary-button {
        display: block;
        width: 100%;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .hero-kapitalanleger .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-kapitalanleger .hero-content p {
        font-size: 1rem;
    }
    
    .strategy-card,
    .tax-card {
        padding: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .portfolio-summary {
        padding: 2rem 1rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Extra small mobile calculator fixes */
    .calc-detail-box,
    .calc-evaluation-box,
    .calc-portfolio-summary {
        padding: 0.75rem;
    }
    
    .calc-stat-item {
        padding: 0.5rem;
    }
    
    .calc-stat-number {
        font-size: 1rem;
    }
    
    .calc-result-title {
        font-size: 1.2rem;
    }
    
    .calc-timeline-item {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
}