/* 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;
}

/* Cell labels - visible only on mobile/tablet */
.cell-label {
    display: none;
}

/* Desktop: cell-value is transparent so layout unchanged */
.cell-value {
    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 - Tablet & Mobile: exact layout as design (two sections, 3 columns each) */
@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;
    }
    
    /* Two-section layout: row 1 = Bank 40% | Zinssatz 30% | Laufzeit 30%, row 2 = Land 40% | Zinsertrag 30% | Button 30% */
    .banking-comparison-main-row {
        display: grid;
        grid-template-columns: 40% 30% 30%;
        grid-template-rows: auto auto;
        gap: 0;
        padding: 20px;
        align-items: start;
        min-height: auto;
    }
    
    .mobile-row-group {
        display: contents;
    }
    
    /* Grid placement: row 1 = bank, zinssatz, laufzeit; row 2 = land, zinsertrag, button */
    .cell-bank {
        grid-row: 1;
        grid-column: 1;
    }
    .cell-zinssatz {
        grid-row: 1;
        grid-column: 2;
    }
    .cell-laufzeit {
        grid-row: 1;
        grid-column: 3;
    }
    .cell-land {
        grid-row: 2;
        grid-column: 1;
    }
    .cell-zinsertrag {
        grid-row: 2;
        grid-column: 2;
    }
    .cell-button {
        grid-row: 2;
        grid-column: 3;
    }
    
    /* Separator between top and bottom section */
    .cell-land,
    .cell-zinsertrag,
    .cell-button {
        border-top: 1px solid #e0e0e0;
        padding-top: 16px;
        margin-top: 16px;
    }
    
    /* Layout only: labels visible. No text-align so Elementor Style tab responsive options apply. */
    .cell-label {
        display: block;
        margin-bottom: 6px;
    }
    .cell-label-button {
        display: none;
    }
    
    .cell-value {
        display: block;
    }
    
    .cell-bank,
    .cell-zinssatz,
    .cell-laufzeit,
    .cell-zinsertrag {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .cell-land {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .cell-land .cell-value {
        align-self: stretch;
        width: 100%;
    }
    .cell-button {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-left: 0;
    }
    
    .cell-laufzeit .type-badge-desktop {
        display: none;
    }
    
    .cell-bank .cell-value {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Button: auto width only; Style tab controls colors/padding */
    .banking-comparison-action-btn {
        width: auto;
        text-align: center;
    }
}

/* Mobile only: ratings-aaa below country-name, not inline */
@media (max-width: 767px) {
    .cell-land .country-name-row {
        flex-wrap: wrap;
    }
    .cell-land .ratings-aaa {
        flex-basis: 100%;
        width: 100%;
    }
}
