/**
 * UI-Komponenten
 * Buttons, Karten, Formulare, etc.
 */

/* Moderne CTA-Buttons - VEREINHEITLICHT MIT ECKIGEN ECKEN */
.cta-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-bright) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 4px; /* Geändert von 50px zu 4px für einheitliches Design */
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(90deg, var(--accent-bright) 0%, var(--accent-color) 100%);
    color: white;
}

.cta-button.secondary-cta {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.cta-button.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.cta-button.large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-color);
}

.service-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.service-image img,
.service-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.service-image img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-icon {
    margin: -50px auto 15px;
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0; /* Z-Index auf 0 gesetzt, damit die Icons die Navigation nicht überlagern */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.service-icon i {
    font-size: 30px;
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
    padding: 8px 15px;
    border-radius: 4px;
    transition: var(--transition);
}

.service-link:hover {
    background-color: var(--accent-color-light);
    color: var(--accent-color);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Spezieller Button für "Mehr erfahren" */
.service-link.btn-more {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-link.btn-more:hover {
    background-color: var(--accent-bright);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-link.btn-more i {
    color: white;
}

/* USP Cards */
.usp-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: -1; /* Wichtig: Auf negativen Wert setzen, damit Karten UNTER der Navigation bleiben */
    text-align: center; /* Text zentrieren */
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.usp-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: -1; /* Wichtig: Auf negativen Wert setzen */
    margin-left: auto; /* Icon horizontal zentrieren */
    margin-right: auto;
}

.usp-icon i {
    font-size: 28px;
    color: var(--accent-color);
}

.usp-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center; /* Text zentrieren */
}

.usp-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    text-align: center; /* Text zentrieren */
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.trust-badge {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 4px; /* Geändert von 30px zu 4px für einheitliches Design */
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.trust-badge i {
    color: var(--accent-bright);
    margin-right: 8px;
    font-size: 1rem;
}

/* Price Cards - Design vereinheitlichen */
.price-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: visible; /* Geändert von 'hidden' zu 'visible', damit Badge über die Card hinausragen kann */
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    height: 100%; /* Sorgt für einheitliche Höhe */
    display: flex;
    flex-direction: column;
    margin-top: 15px; /* Platz für den Badge schaffen */
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.price-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 2; /* Sorgt dafür, dass die hervorgehobene Karte über den anderen liegt */
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    position: relative;
    border-radius: 8px 8px 0 0; /* Obere Ecken abrunden */
}

.price-header h3 {
    color: var(--white);
    margin-bottom: 0;
    font-size: 1.2rem; /* Einheitliche Größe für alle Überschriften */
    height: 50px; /* Einheitliche Höhe für die Überschriften */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Neu positionierter Badge - mit kontrastreichen Farben und verbesserter Sichtbarkeit */
.price-badge {
    position: absolute;
    top: -31px; /* Oberhalb der Karte */
    right: -20px; /* Leicht eingerückt vom rechten Rand */
    /* Neuer Goldton für besseren Kontrast zum blauen Header */
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #333; /* Dunklere Textfarbe für besseren Kontrast */
    font-size: 0.85rem;
    padding: 7px 17px;
    font-weight: 600;
    border-radius: 4px; /* Eckiger Badge */
    z-index: 3; /* Über der Karte */
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5); /* Verstärkter Schatten mit weißem Outline */
    animation: pulseBadge 2s infinite ease-in-out; /* Pulsier-Animation beibehalten */
    transform-origin: center;
    border: 1px solid rgba(255, 255, 255, 0.8); /* Heller Rand für bessere Abgrenzung */
}

/* Spezielles Styling für den "Sehr beliebt" Badge - in Grün */
.price-badge.popular {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-bright)); /* Grüner Farbverlauf beibehalten */
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5); /* Grüner Schatten mit weißem Outline */
    animation: pulseGreenBadge 2s infinite ease-in-out; /* Separate Animation für grünen Badge */
    color: white;
}

/* Pulsier-Animation für den goldenen Badge */
@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
}

/* Pulsier-Animation für den grünen Badge */
@keyframes pulseGreenBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
}

.price-amount {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.price-features {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1; /* Sorgt dafür, dass die Features den verfügbaren Platz ausfüllen */
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features i {
    color: var(--accent-color);
    margin-right: 10px;
}

.price-cta {
    display: block;
    text-align: center;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto; /* Schiebt den Button ans Ende der Karte */
}

.price-cta:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Responsive Anpassungen für Badges */
@media (max-width: 992px) {
    .price-badge {
        top: -20px; /* Leicht angepasst für mittlere Bildschirme */
        right: 10px;
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}

@media (max-width: 768px) {
    .price-badge {
        top: -18px;
        right: 10px;
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    /* Zusätzlichen Abstand für die Preiskarten hinzufügen */
    .price-card {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .price-badge {
        top: -15px;
        right: 50%;
        transform: translateX(50%); /* Zentrieren auf kleinen Bildschirmen */
        font-size: 0.7rem;
        padding: 4px 10px;
        animation: none; /* Animation auf sehr kleinen Bildschirmen deaktivieren */
    }
    
    .price-badge.popular {
        animation: none; /* Animation auf sehr kleinen Bildschirmen deaktivieren */
    }
    
    /* Ausreichend Platz für den Badge */
    .price-card {
        margin-top: 22px;
    }
    
    /* Vertikal mehr Platz für Header-Text */
    .price-header h3 {
        height: auto;
        min-height: 50px;
        padding: 10px 5px;
    }
}

/* Pulsier-Animation für den goldenen Badge */
@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
}

/* Pulsier-Animation für den grünen Badge */
@keyframes pulseGreenBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
}

/* Contact Form Styling */
.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color-light);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group label {
    flex: 1;
}

.form-submit {
    margin-top: 10px;
    cursor: pointer;
}

.success-message,
.error-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background-color: var(--accent-color-light);
    color: var(--accent-dark);
    border: 1px solid var(--accent-color);
}

.error-message {
    background-color: #FFEBEE;
    color: #D32F2F;
    border: 1px solid #FFCDD2;
}

/* DSGVO-Hinweis im Formular */
.dsgvo-notice {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.4;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.dsgvo-notice a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Verbesserter Checkbox-Style für bessere Lesbarkeit */
.form-group.checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 95%;
}

.form-group.checkbox-group input[type="checkbox"] {
    margin-top: 0.35rem;
}

/* FAQ Items */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    padding-right: 20px;
}

.faq-toggle {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-toggle i {
    color: var(--accent-color);
    font-size: 0.8rem;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--dark-gray);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    background-color: var(--accent-color);
}

.faq-item.active .faq-toggle i {
    color: var(--white);
}

/* Testimonial Cards */
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 0; /* Von 1 auf 0 geändert */
}

.testimonial-slide {
    flex: 1;
    min-width: 300px;
}

.testimonial-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    z-index: 0; /* Neu hinzugefügt */
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent-color);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(0, 0, 0, 0.05);
    font-family: serif;
}

.testimonial-stars {
    margin-bottom: 15px;
    display: flex;
}

.testimonial-stars i {
    color: #FFC107;
    margin-right: 2px;
    font-size: 18px;
}

.testimonial-content blockquote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--light-gray);
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.author-info span {
    color: var(--dark-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.author-info span i {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Routenplaner Button */
.route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(28, 61, 90, 0.3);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.route-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(28, 61, 90, 0.4);
    color: white;
}

.route-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(28, 61, 90, 0.4);
}

.route-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.route-button:hover::after {
    transform: translateX(100%);
}

.route-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Anpassung für mobile Geräte */
@media (max-width: 480px) {
    .route-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Steuervorteils-Hinweis - kompaktere Version mit zentriertem Einleitungstext */
.tax-benefit-box {
    background: var(--primary-color); /* Blauer Hintergrund statt Grau-Gradient */
    border: 1px solid var(--primary-light); /* Hellblauer Rand statt Grün */
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 88px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: white; /* Weiße Textfarbe für den gesamten Box-Inhalt */
}

.tax-benefit-box::before {
    content: "€";
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.05); /* Helleres Euro-Symbol im Hintergrund */
    font-weight: bold;
    z-index: 0;
}

.tax-benefit-box h3 {
    color: white; /* Weiße Überschrift */
    font-size: 1.25rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.tax-benefit-box > p {
    color: white; /* Weißer Einleitungstext */
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    text-align: center;
}

.tax-highlight {
    background-color: rgba(255, 255, 255, 0.9); /* Weißer Hintergrund mit leichter Transparenz */
    border-left: 3px solid var(--accent-color);
    padding: 12px 15px;
    margin: 15px 0;
    position: relative;
    z-index: 1;
    color: var(--primary-color); /* Blauer Text im weißen Infokasten */
    border-radius: 4px; /* Leichte Abrundung für bessere Optik */
}

.tax-highlight-header {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tax-highlight p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-color); /* Text-Farbe im Infokasten bleibt gleich */
}

.tax-highlight strong {
    color: var(--accent-dark);
    font-size: 1rem;
}

.tax-benefit-conclusion {
    font-size: 1.05rem;
    text-align: center;
    margin-top: 12px;
    color: white; /* Weiße Textfarbe für die Schlussfolgerung */
    font-weight: 500; /* Etwas stärker hervorheben */
}

/* Kleingedrucktes/Fußnoten */
.tax-footnotes {
    background-color: #e9e7e7;
    border-radius: 4px;
    padding: 15px 15px;
    margin-top: 0px;
    margin-bottom: 65px;
    font-size: 0.75rem;
    color: #6c757d;
}

.tax-footnotes p {
    margin-bottom: 3px; /* Reduziert von 5px */
    line-height: 1.3;
}

.tax-footnotes sup {
    font-weight: bold;
    color: var(--accent-color);
}

/* Responsive Anpassungen für Steuervorteils-Box */
@media (max-width: 768px) {
    .tax-benefit-box {
        padding: 12px 15px;
    }
    
    .tax-benefit-box h3 {
        font-size: 1.1rem;
    }
    
    .tax-highlight {
        padding: 10px 12px;
    }
    
    .tax-benefit-conclusion {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tax-benefit-box {
        padding: 10px 12px;
    }
    
    .tax-benefit-box h3 {
        font-size: 1rem;
    }
    
    .tax-highlight-header {
        font-size: 0.95rem;
    }
    
    .tax-highlight strong {
        font-size: 0.95rem;
    }
    
    .tax-benefit-conclusion {
        font-size: 0.95rem;
    }
    
    .tax-footnotes {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}

/* Individuelles Angebot Box mit blauem Hintergrund */
.custom-quote {
    background-color: var(--primary-color);
    border-radius: 6px;
    padding: 25px 30px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: white;
    border: 1px solid var(--primary-light);
}

.custom-quote h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.custom-quote p {
    color: white;
    margin-bottom: 20px;
}

.custom-quote .cta-button {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
}

.custom-quote .cta-button:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Pulsier-Animation für den grünen Badge */
@keyframes pulseGreenBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
}

/* Responsive Anpassungen für Badges */
@media (max-width: 768px) {
    .price-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .price-badge {
        right: 50%;
        transform: translateX(50%); /* Zentrieren auf kleinen Bildschirmen */
        animation: pulseBadgeMobile 2s infinite ease-in-out; /* Angepasste Animation für mobile Geräte */
    }
    
    .price-badge.popular {
        animation: pulseGreenBadgeMobile 2s infinite ease-in-out; /* Separate mobile Animation für grünen Badge */
    }
    
    @keyframes pulseBadgeMobile {
        0% {
            transform: translateX(50%) scale(1);
            box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5);
        }
        50% {
            transform: translateX(50%) scale(1.05);
            box-shadow: 0 5px 15px rgba(255, 193, 7, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.7);
        }
        100% {
            transform: translateX(50%) scale(1);
            box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5);
        }
    }
    
    @keyframes pulseGreenBadgeMobile {
        0% {
            transform: translateX(50%) scale(1);
            box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
        }
        50% {
            transform: translateX(50%) scale(1.05);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.7);
        }
        100% {
            transform: translateX(50%) scale(1);
            box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.5);
        }
    }
}

/* Contact Form Styling */
.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color-light);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group label {
    flex: 1;
}

.form-submit {
    margin-top: 10px;
    cursor: pointer;
}

.success-message,
.error-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background-color: var(--accent-color-light);
    color: var(--accent-dark);
    border: 1px solid var(--accent-color);
}

.error-message {
    background-color: #FFEBEE;
    color: #D32F2F;
    border: 1px solid #FFCDD2;
}

/* DSGVO-Hinweis im Formular */
.dsgvo-notice {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.4;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.dsgvo-notice a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Verbesserter Checkbox-Style für bessere Lesbarkeit */
.form-group.checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 95%;
}

.form-group.checkbox-group input[type="checkbox"] {
    margin-top: 0.35rem;
}

/* FAQ Items */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    padding-right: 20px;
}

.faq-toggle {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-toggle i {
    color: var(--accent-color);
    font-size: 0.8rem;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--dark-gray);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    background-color: var(--accent-color);
}

.faq-item.active .faq-toggle i {
    color: var(--white);
}

/* Testimonial Cards */
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 0; /* Von 1 auf 0 geändert */
}

.testimonial-slide {
    flex: 1;
    min-width: 300px;
}

.testimonial-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    z-index: 0; /* Neu hinzugefügt */
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent-color);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(0, 0, 0, 0.05);
    font-family: serif;
}

.testimonial-stars {
    margin-bottom: 15px;
    display: flex;
}

.testimonial-stars i {
    color: #FFC107;
    margin-right: 2px;
    font-size: 18px;
}

.testimonial-content blockquote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--light-gray);
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.author-info span {
    color: var(--dark-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.author-info span i {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Routenplaner Button */
.route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(28, 61, 90, 0.3);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.route-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(28, 61, 90, 0.4);
    color: white;
}

.route-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(28, 61, 90, 0.4);
}

.route-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.route-button:hover::after {
    transform: translateX(100%);
}

.route-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Anpassung für mobile Geräte */
@media (max-width: 480px) {
    .route-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Steuervorteils-Hinweis - kompaktere Version mit zentriertem Einleitungstext */
.tax-benefit-box {
    background: var(--primary-color); /* Blauer Hintergrund statt Grau-Gradient */
    border: 1px solid var(--primary-light); /* Hellblauer Rand statt Grün */
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 88px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: white; /* Weiße Textfarbe für den gesamten Box-Inhalt */
}

.tax-benefit-box::before {
    content: "€";
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.05); /* Helleres Euro-Symbol im Hintergrund */
    font-weight: bold;
    z-index: 0;
}

.tax-benefit-box h3 {
    color: white; /* Weiße Überschrift */
    font-size: 1.25rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.tax-benefit-box > p {
    color: white; /* Weißer Einleitungstext */
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    text-align: center;
}

.tax-highlight {
    background-color: rgba(255, 255, 255, 0.9); /* Weißer Hintergrund mit leichter Transparenz */
    border-left: 3px solid var(--accent-color);
    padding: 12px 15px;
    margin: 15px 0;
    position: relative;
    z-index: 1;
    color: var(--primary-color); /* Blauer Text im weißen Infokasten */
    border-radius: 4px; /* Leichte Abrundung für bessere Optik */
}

.tax-highlight-header {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tax-highlight p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-color); /* Text-Farbe im Infokasten bleibt gleich */
}

.tax-highlight strong {
    color: var(--accent-dark);
    font-size: 1rem;
}

.tax-benefit-conclusion {
    font-size: 1.05rem;
    text-align: center;
    margin-top: 12px;
    color: white; /* Weiße Textfarbe für die Schlussfolgerung */
    font-weight: 500; /* Etwas stärker hervorheben */
}

/* Kleingedrucktes/Fußnoten */
.tax-footnotes {
    background-color: #e9e7e7;
    border-radius: 4px;
    padding: 15px 15px;
    margin-top: 0px;
    margin-bottom: 65px;
    font-size: 0.75rem;
    color: #6c757d;
}

.tax-footnotes p {
    margin-bottom: 3px; /* Reduziert von 5px */
    line-height: 1.3;
}

.tax-footnotes sup {
    font-weight: bold;
    color: var(--accent-color);
}

/* Responsive Anpassungen für Steuervorteils-Box */
@media (max-width: 768px) {
    .tax-benefit-box {
        padding: 12px 15px;
    }
    
    .tax-benefit-box h3 {
        font-size: 1.1rem;
    }
    
    .tax-highlight {
        padding: 10px 12px;
    }
    
    .tax-benefit-conclusion {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tax-benefit-box {
        padding: 10px 12px;
    }
    
    .tax-benefit-box h3 {
        font-size: 1rem;
    }
    
    .tax-highlight-header {
        font-size: 0.95rem;
    }
    
    .tax-highlight strong {
        font-size: 0.95rem;
    }
    
    .tax-benefit-conclusion {
        font-size: 0.95rem;
    }
    
    .tax-footnotes {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}

/* Individuelles Angebot Box mit blauem Hintergrund */
.custom-quote {
    background-color: var(--primary-color);
    border-radius: 6px;
    padding: 25px 30px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: white;
    border: 1px solid var(--primary-light);
}

.custom-quote h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.custom-quote p {
    color: white;
    margin-bottom: 20px;
}

.custom-quote .cta-button {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
}

.custom-quote .cta-button:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}
