/* Leistungen Hero - Überarbeitet */
.leistungen-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%), 
                url('leistungen-hero.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-text);
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 3rem;
}

.leistungen-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.leistungen-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leistungen-hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-links .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.hero-links .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.hero-links .secondary-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    border-width: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Leistungs-Navigation - Überarbeitet */
.leistungen-nav {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--accent-color);
}

.leistungen-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.leistungen-nav li {
    margin: 0;
}

.leistungen-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s;
    display: block;
    position: relative;
    font-size: 0.95rem;
}

.leistungen-nav a:hover {
    color: var(--primary-color);
}

.leistungen-nav a.active {
    color: var(--primary-color);
}

.leistungen-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-color);
}

/* Responsive Anpassungen für Hero */
@media (max-width: 992px) {
    .leistungen-hero {
        padding: 6rem 2rem 4rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .leistungen-hero h1 {
        font-size: 2.3rem;
    }
    
    .leistungen-hero p {
        font-size: 1.1rem;
    }
    
    .hero-links {
        gap: 1rem;
    }
    
    .hero-links .cta-button,
    .hero-links .secondary-button {
        padding: 0.8rem 1.5rem;
    }
    
    .leistungen-nav a {
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .leistungen-hero {
        padding: 5rem 1.5rem 3rem;
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    
    .leistungen-hero h1 {
        font-size: 2rem;
    }
    
    .hero-links {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-links a {
        width: 100%;
        max-width: 280px;
    }
    
    .leistungen-nav ul {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .leistungen-hero h1 {
        font-size: 1.8rem;
    }
    
    .leistungen-hero p {
        font-size: 1rem;
    }
    
    .leistungen-nav a {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

/* Leistung Sections */
.leistung-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.leistung-section:last-child {
    border-bottom: none;
}

.leistung-section.premium {
    background-color: rgba(245, 158, 11, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 0.8rem;
    font-size: 1.5rem;
}

.price-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.price-badge span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.leistung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.leistung-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.leistung-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

.feature-list {
    margin: 2rem 0;
}

.feature-list h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-list ul {
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 0.8rem;
    margin-top: 0.2rem;
}

.details-accordion {
    margin-top: 2rem;
    border-top: 1px solid var(--gray-light);
    padding-top: 1rem;
}

.details-accordion h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.details-accordion h4 i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.details-accordion h4.active i {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.accordion-content p {
    margin-bottom: 0.8rem;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.leistung-image {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leistung-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Box - Überarbeitet */
.cta-section {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cta-section h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.cta-section .cta-button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

/* Tabs */
.tabs {
    margin: 2rem 0;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 1rem;
}

.tab-link {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
}

.tab-content.active {
    display: block;
}

.themen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.thema {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.thema h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.thema h5 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.thema p {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.price-note {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Vergleichstabelle */
.vergleich {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.vergleich h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.vergleich h2 i {
    margin-right: 1rem;
}

.vergleich p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-dark);
}

.vergleich-table {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.vergleich-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.vergleich-header > div {
    padding: 1rem;
    text-align: center;
}

.vergleich-feature {
    text-align: left !important;
}

.vergleich-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--gray-light);
}

.vergleich-row:last-child {
    border-bottom: none;
}

.vergleich-row > div {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.vergleich-option {
    text-align: center;
    justify-content: center;
}

.vergleich-option.highlight {
    background-color: rgba(245, 158, 11, 0.1);
    position: relative;
}

.vergleich-option.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
}

.vergleich-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1rem;
    background-color: var(--secondary-color);
}

.vergleich-footer > div {
    display: flex;
    justify-content: center;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.faq-section h2 i {
    margin-right: 1rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.faq-question h3 i {
    margin-left: 1rem;
    transition: transform 0.3s;
}

.faq-question.active h3 i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    background-color: var(--secondary-color);
    display: none;
}

.faq-answer p {
    padding: 1.5rem 0;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .leistung-grid {
        grid-template-columns: 1fr;
    }
    
    .leistung-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .vergleich-header, .vergleich-row, .vergleich-footer {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .leistungen-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .vergleich-header, .vergleich-row, .vergleich-footer {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .vergleich-header div:nth-child(4),
    .vergleich-row div:nth-child(4),
    .vergleich-footer div:nth-child(4) {
        display: none;
    }
    
    .tab-header {
        flex-wrap: wrap;
    }
    
    .tab-link {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .leistungen-nav ul {
        justify-content: flex-start;
    }
    
    .vergleich-header, .vergleich-row, .vergleich-footer {
        grid-template-columns: 2fr 1fr;
    }
    
    .vergleich-header div:nth-child(3),
    .vergleich-row div:nth-child(3),
    .vergleich-footer div:nth-child(3) {
        display: none;
    }
    
    .hero-links {
        flex-direction: column;
    }
    
    .hero-links a {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}