/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #0088cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #005580;
}

ul {
    list-style: none;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    color: #0088cc;
    font-weight: 700;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav ul li a:hover {
    background-color: rgba(0, 136, 204, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0088cc, #005580);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #0088cc;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Rechner Section */
.rechner-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.rechner-inputs {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #0088cc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #005580;
}

.slider-value {
    display: flex;
    align-items: center;
    min-width: 100px;
}

input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    font-weight: 600;
}

.rechner-results {
    flex: 1;
    min-width: 300px;
}

.result-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.result-header {
    background-color: #0088cc;
    color: #fff;
    padding: 15px 20px;
}

.result-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.result-body {
    padding: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.result-label {
    font-weight: 600;
    color: #555;
}

.result-value {
    font-weight: 700;
    color: #0088cc;
}

.result-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.result-item.total .result-label,
.result-item.total .result-value {
    font-size: 18px;
    color: #0088cc;
}

/* Vergleich Section */
.vergleich-section {
    background-color: #f0f5f9;
}

.vergleich-container {
    overflow-x: auto;
    margin-top: 30px;
}

.vergleich-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vergleich-table th,
.vergleich-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.vergleich-table th {
    background-color: #0088cc;
    color: #fff;
    font-weight: 600;
}

.vergleich-table tr:last-child td {
    border-bottom: none;
}

.vergleich-table tr:hover {
    background-color: #f8f9fa;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0088cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #005580;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #0088cc;
    color: #0088cc;
}

.btn-outline:hover {
    background-color: #0088cc;
    color: #fff;
}

/* Angebot Section */
.angebot-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.angebot-info {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.angebot-info h3 {
    font-size: 24px;
    color: #0088cc;
    margin-bottom: 20px;
}

.angebot-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.angebot-info ul li i {
    color: #0088cc;
    margin-right: 10px;
}

.angebot-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

#zoho-form-container {
    min-height: 400px;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo h3 {
    font-size: 24px;
    color: #0088cc;
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links ul li a {
    color: #fff;
}

.footer-links ul li a:hover {
    color: #0088cc;
}

.footer-disclaimer {
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        justify-content: center;
    }

    .nav ul li {
        margin: 0 10px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .section-title p {
        font-size: 16px;
    }

    .rechner-container,
    .angebot-container {
        flex-direction: column;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Zoho Form Styles */
.zoho-form {
    padding: 20px;
}

.zoho-form .form-group {
    margin-bottom: 20px;
}

.zoho-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.zoho-form input[type="text"],
.zoho-form input[type="email"],
.zoho-form input[type="tel"],
.zoho-form textarea,
.zoho-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.zoho-form textarea {
    height: 120px;
    resize: vertical;
}

.zoho-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoho-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.zoho-form .btn-submit {
    background-color: #0088cc;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zoho-form .btn-submit:hover {
    background-color: #005580;
}

/* Zusätzliche Styles für den Sofortrenten-Rechner */
.selected-anbieter {
    background-color: rgba(0, 136, 204, 0.1) !important;
}

.anbieter-logo {
    max-height: 40px;
    max-width: 120px;
}

.dynamik-value {
    font-weight: 600;
    color: #0088cc;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Anpassungen für das Zoho Forms Formular */
#zoho-form-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

