:root {
    --primary-color: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --secondary-color: #f59e0b;
    --accent-color: #ea580c;
    --success-color: #10b981;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    width: 100%;
}

.container {
    max-width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 2rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(22, 163, 74, 0.1);
}

.phone-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
}

.phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.3);
}

.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.4);
    color: white;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-circle {
    position: absolute;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    opacity: 0.2;
}

.check-circle.pulse-1 {
    width: 250px;
    height: 250px;
    animation: pulse-check 3s ease-in-out infinite;
}

.check-circle.pulse-2 {
    width: 350px;
    height: 350px;
    animation: pulse-check 3s ease-in-out 1s infinite;
}

.check-circle.pulse-3 {
    width: 450px;
    height: 450px;
    animation: pulse-check 3s ease-in-out 2s infinite;
}

.check-icon {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: 0 20px 60px rgba(22, 163, 74, 0.4);
    z-index: 2;
}

@keyframes pulse-check {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
}

.features-section {
    padding: 0 0 5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

.comparison-section {
    padding: 5rem 0;
    background: white;
    width: 100%;
    overflow: hidden;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.1));
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.duration-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.duration-btn {
    background: var(--bg-light);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.duration-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.duration-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.3);
}

.rates-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    table-layout: fixed;
}

.rates-table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.rates-table th {
    padding: 0.875rem 1rem;
    font-weight: 600;
    text-align: left;
    color: white;
    border: none;
    font-size: 0.875rem;
}

.rates-table th:nth-child(1) { width: 30%; } /* Bank */
.rates-table th:nth-child(2) { width: 11%; text-align: center; } /* Bewertung */
.rates-table th:nth-child(3) { width: 11%; text-align: center; } /* Land */
.rates-table th:nth-child(4) { width: 14%; text-align: center; } /* Zinssatz */
.rates-table th:nth-child(5) { width: 11%; text-align: center; } /* Laufzeit */
.rates-table th:nth-child(6) { width: 11%; text-align: center; } /* Mindestanlage */
.rates-table th:nth-child(7) { width: 12%; text-align: center; } /* Aktion */

.rates-table td:nth-child(2),
.rates-table td:nth-child(3),
.rates-table td:nth-child(4),
.rates-table td:nth-child(5),
.rates-table td:nth-child(6),
.rates-table td:nth-child(7) {
    text-align: center;
}

.rates-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.rates-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.rates-table tbody tr:hover {
    background: rgba(22, 163, 74, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rates-table tbody tr.priority-row {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent);
    border-left: 3px solid var(--secondary-color);
}

.rates-table tbody tr.priority-row:hover {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), transparent);
}

.rates-table td {
    padding: 1rem;
    border: none;
    vertical-align: middle;
}

.bank-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.bank-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.bank-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bank-badge {
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.country-flag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.country-flag i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.interest-rate-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.05));
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--primary-light);
    display: inline-block;
    min-width: 80px;
}

.interest-rate-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.interest-rate-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-light);
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.duration-badge i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.amount-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.action-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.3);
    color: white;
}

.contact-section {
    padding: 5rem 0;
    background: var(--bg-light);
    width: 100%;
    overflow: hidden;
}

.contact-info {
    padding-right: 2rem;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.4);
    color: white;
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    width: 100%;
    overflow: hidden;
}

.footer h5 {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    color: var(--text-dark);
    font-weight: 600;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        height: 300px;
        margin-top: 2rem;
    }

    .check-circle.pulse-1 {
        width: 180px;
        height: 180px;
    }

    .check-circle.pulse-2 {
        width: 250px;
        height: 250px;
    }

    .check-circle.pulse-3 {
        width: 320px;
        height: 320px;
    }

    .check-icon {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }

    .contact-info {
        padding-right: 0;
    }
}

.mobile-rate-card {
    display: none;
}

#mobileCardsContainer {
    display: none;
}

@media (max-width: 768px) {
    #mobileCardsContainer {
        display: block !important;
    }
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .table-responsive {
        display: none !important;
    }

    .mobile-rate-card {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
    }

    .mobile-card-header {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .mobile-bank-info {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        width: 100%;
    }

    .mobile-bank-info .bank-logo {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .mobile-bank-details {
        flex: 1;
        min-width: 0;
    }

    .mobile-bank-name {
        font-size: 0.9rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bank-meta {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.75rem;
        color: #6b7280;
    }

    .mobile-rate-highlight {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f0fdf4;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        border: 2px solid var(--primary-color);
    }

    .mobile-rate-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--primary-color);
        line-height: 1;
    }

    .mobile-rate-label {
        font-size: 0.65rem;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-left: 0.5rem;
    }

    .mobile-card-details {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
        margin-bottom: 0.875rem;
    }

    .mobile-detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    .mobile-detail-label {
        font-size: 0.8rem;
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .mobile-detail-value {
        font-size: 0.875rem;
        font-weight: 600;
        color: #1f2937;
        text-align: right;
    }

    .mobile-card-action {
        margin-top: 0.75rem;
    }

    .mobile-card-action .action-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.875rem;
        justify-content: center;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .phone-link {
        font-size: 0.875rem;
        padding: 0.5rem 1rem !important;
    }

    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .duration-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }
}
