/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
#idLeistungSection {
    background-image: linear-gradient(to top, #f5f3f1, rgb(255 255 255) 50%);
}
.leistung_content {
    width: 80%;
    margin: 0 auto;
}
.leistung_head,
.leistung_list {
    width: 80%;
    margin: 0 auto;
}
.leistung_intro {
    color: var(--text-color);
    text-align: justify;
    hyphens: auto;
}
.leistung_list {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0;
}
.leistung_list ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    list-style: none;
}
.leistung_list li {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--primary-color);
}
.leistung_list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.leistung_list li:focus-within, .leistung_list li:has(a:focus-visible) {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
.leistung_list li h3 {
    color: var(--accent-color);
    line-height: 1.3;
}
.leistung_list li p {
    margin: 0;
    color: var(--text-color);
    text-align: justify;
    hyphens: auto;
}
.placeholder {
    height: 3vh;
    min-height: 2rem;
}

/* Focus management for accessibility */
#idLeistungMain:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .leistung_list li {
        background: #fff;
        border: 2px solid #000;
    }
    .leistung_list li h3 {
        color: #000;
    }
    .leistung_list li p {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .leistung_list li {
        transition: none;
    }
    .leistung_list li:hover {
        transform: none;
    }
}

@media (max-width: 799px) {
    .leistung_content {
        width: 85%;
    }
    .leistung_head,
    .leistung_list {
        width: 100%;
    }
    .leistung_intro {
        margin-bottom: 1.5rem;
    }
    .leistung_list ul {
        gap: 1rem;
    }
    .leistung_list li {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .leistung_content {
        width: 85%;
    }
    .leistung_intro {
        margin-bottom: 1rem;
    }
    .leistung_list li {
        margin-bottom: 0.5rem;
        padding: 1rem;
    }
    .leistung_list li h3 {
        margin-bottom: 0.3rem;
    }
    .leistung_list li p {
        line-height: 1.5;
    }
}

/* Large screens */
/* @media (min-width: 1921px) {
    .leistung_list ul {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 2rem;
    }
} */