/* Banking Comparison Elementor Widget Styles */

.banking-comparison-widget {
    width: 100%;
}

/* Header Row - Desktop Only */
.banking-comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    padding-left: 10px;
    padding-bottom:10px;
    color: #1a4d7a;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
}

.banking-comparison-header .header-cell {
    text-align: left;
    display: flex;
    align-items: center;
}

.banking-comparison-header .header-cell:last-child {
    text-align: right;
}

/* Grid Container */
.banking-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Card */
.banking-comparison-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    overflow: hidden;
}

.banking-comparison-card:first-of-type {
    border-top: 1px solid #e0e0e0;
}

.banking-comparison-card:last-child {
    border-radius: 0 0 8px 8px;
}

/* Main Content Row */
.banking-comparison-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
    gap: 20px;
    padding: 20px;
    align-items: center;
    position: relative;
    min-height: 80px;
}

/* Desktop: Mobile wrappers should be transparent (display: contents) */
.mobile-row-group {
    display: contents;
}

/* Interest Rate (Zinssatz) */
.cell-zinssatz {
    text-align: left;
}

.interest-percentage-wrapper {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.interest-number {
    font-size: 28px;
    font-weight: 700;
    color: #0066cc;
    line-height: 1;
}

.interest-percent-group {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    line-height: 1;
    margin-left: 2px;
    justify-content: center;
}

.percent-symbol {
    font-size: 0.8em;
    font-weight: 700;
    color: #0066cc;
    line-height: 1;
    display: block;
    position: relative;
    top: -0.2em;
}

.interest-label {
    font-size: 0.8em;
    font-weight: 400;
    color: #0066cc;
    line-height: 1;
    display: block;
    margin-top: 2px;
}

/* Duration (Laufzeit) */
.cell-laufzeit {
    text-align: left;
}

.duration-text {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.type-badge .calendar-icon {
    width: 14px;
    height: 14px;
    stroke: #666;
    fill: none;
}

/* Bank */
.cell-bank {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bank-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

/* Country (Land) */
.cell-land {
    text-align: left;
}

.country-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.country-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.country-rating {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.ratings-aaa {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.info-icon {
    width: 14px;
    height: 14px;
    stroke: #666;
    fill: none;
    cursor: pointer;
    flex-shrink: 0;
}

.currency-text {
    font-size: 12px;
    color: #0066cc;
    margin-top: 2px;
    display: block;
    font-weight: 400;
}

/* Interest Income (Zinsertrag) */
.cell-zinsertrag {
    text-align: left;
}

.interest-income {
    display: flex;
    align-items: center;
    gap: 6px;
}

.income-amount {
    font-size: 15px;
    font-weight: 600;
    color: #0066cc;
}

.interest-income .info-icon {
    stroke: #0066cc;
}

/* Action Button */
.cell-button {
    text-align: right;
    padding-left: 20px;
}

.banking-comparison-action-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.banking-comparison-action-btn:hover {
    background-color: #0052a3;
    color: white;
}

/* Bottom Navigation */
.banking-comparison-bottom-nav {
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    background-color: #fff;
}

.banking-comparison-bottom-nav .nav-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.banking-comparison-bottom-nav .nav-link:hover,
.banking-comparison-bottom-nav .nav-link.active {
    color: #0066cc;
}

/* Accordion Content */
.banking-comparison-accordion-wrapper {
    border-top: 1px solid #e0e0e0;
}

.banking-comparison-accordion-content {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
}

.banking-comparison-accordion-content.active {
    display: block;
}

.accordion-content-inner {
    color: #333;
    line-height: 1.6;
}

/* Load More Button */
.banking-comparison-load-more-wrapper {
    text-align: center;
    padding: 30px 20px;
}

.banking-comparison-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banking-comparison-load-more-btn:hover {
    background-color: #0052a3;
}

.banking-comparison-load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .banking-comparison-header {
        display: none;
    }
    
    .banking-comparison-card {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e0e0e0;
        margin-bottom: 20px;
        border-top: 1px solid #e0e0e0;
    }
    
    .banking-comparison-card:first-of-type {
        border-top: 1px solid #e0e0e0;
    }
    
    .banking-comparison-card:last-child {
        border-radius: 8px;
    }
    
    .banking-comparison-main-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile wrapper groups - display cells in one line */
    .mobile-row-group {
        display: flex;
        align-items: center;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    /* Mobile: cell-zinssatz and cell-laufzeit in one line */
    .mobile-group-1 .cell-zinssatz,
    .mobile-group-1 .cell-laufzeit {
        display: flex;
        align-items: center;
        width: auto;
        margin: 0;
    }
    
    /* Mobile: cell-land and cell-zinsertrag in one line */
    .mobile-group-2 .cell-land {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: auto;
        margin: 0;
    }
    
    .mobile-group-2 .cell-zinsertrag {
        display: flex;
        align-items: center;
        width: auto;
        margin: 0;
    }
    
    /* Bank and Button remain full width */
    .cell-bank {
        width: 100%;
        display: block;
        margin: 15px 0;
    }
    
    .cell-button {
        text-align: left;
        padding-left: 0;
        width: 100%;
        display: block;
        margin-top: 15px;
    }
    
    .banking-comparison-action-btn {
        width: 100%;
        text-align: center;
    }
}
