.leistungen-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgba(89, 10, 125, 0.85) 0%, rgba(162, 102, 196, 0.7) 50%, rgba(255, 255, 255, 0.1) 100%);
    min-height: 100vh;
    padding: 60px 20px;
}

.leistungen-container {
    max-width: 1400px;
    margin: 0 auto;
}

.leistungen-title {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.leistungen-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.leistungen-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(89, 10, 125, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.leistungen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
    pointer-events: none;
    z-index: 2;
    border-radius: 24px;
}

.leistungen-card:hover::before {
    transform: translateX(100%);
}

.leistungen-card.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

.leistungen-card:nth-child(1) { animation-delay: 0.1s; }
.leistungen-card:nth-child(2) { animation-delay: 0.2s; }
.leistungen-card:nth-child(3) { animation-delay: 0.3s; }
.leistungen-card:nth-child(4) { animation-delay: 0.4s; }

.leistungen-card.expanded {
    grid-column: 1 / -1;
    box-shadow: 0 20px 60px rgba(89, 10, 125, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: default;
    overflow: visible;
}

.leistungen-card.expanded::before {
    display: none;
}

.leistungen-card:not(.expanded):hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(89, 10, 125, 0.4);
}

.leistungen-card.work-in-progress {
    opacity: 0.75;
    cursor: not-allowed;
}

.leistungen-card.work-in-progress:hover {
    transform: translateY(30px);
}

.leistungen-card.work-in-progress::before {
    display: none;
}

.wip-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.card-image-wrapper {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(89, 10, 125, 0.6) 0%, rgba(162, 102, 196, 0.5) 100%);
    border-radius: 24px 24px 0 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.leistungen-card:not(.expanded):hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(89, 10, 125, 0.4) 100%);
    z-index: 1;
}

.card-body {
    padding: 30px;
}

.card-header-title {
    font-size: 1.9rem;
    color: rgba(89, 10, 125, 1);
    margin-bottom: 15px;
    font-weight: 700;
}

.card-preview-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.btn-mehr-erfahren {
    display: inline-block;
    transition: all 0.3s ease;
}

.leistungen-card.expanded .btn-mehr-erfahren {
    display: none;
}

.selector-wrapper {
    background: linear-gradient(135deg, rgba(162, 102, 196, 0.15) 0%, rgba(89, 10, 125, 0.1) 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 2px solid rgba(162, 102, 196, 0.3);
}

.selector-label {
    color: rgba(89, 10, 125, 1);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: block;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-display {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1.05rem;
    border: 2px solid rgba(162, 102, 196, 0.4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: rgba(89, 10, 125, 1);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(89, 10, 125, 0.1);
    position: relative;
}

.select-display:hover {
    border-color: rgba(89, 10, 125, 0.6);
    box-shadow: 0 4px 15px rgba(89, 10, 125, 0.2);
    transform: translateY(-2px);
}

.select-display::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(162, 102, 196, 1);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.custom-select.open .select-display::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid rgba(162, 102, 196, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(89, 10, 125, 0.25);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.custom-select.open .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
    font-weight: 500;
    border-bottom: 1px solid rgba(162, 102, 196, 0.1);
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: linear-gradient(135deg, rgba(162, 102, 196, 0.15) 0%, rgba(89, 10, 125, 0.1) 100%);
    color: rgba(89, 10, 125, 1);
    font-weight: 600;
}

.select-option.active {
    background: linear-gradient(135deg, rgba(162, 102, 196, 0.2) 0%, rgba(89, 10, 125, 0.15) 100%);
    color: rgba(89, 10, 125, 1);
    font-weight: 600;
}

.card-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.leistungen-card.expanded .card-expanded-content {
    max-height: 5000px;
    opacity: 1;
}

.content-variant {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-variant.active {
    display: block;
}

.specs-section {
    background: linear-gradient(135deg, rgba(162, 102, 196, 0.12) 0%, rgba(89, 10, 125, 0.08) 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(162, 102, 196, 0.2);
}

.specs-section-title {
    color: rgba(89, 10, 125, 1);
    margin-bottom: 15px;
    font-size: 1.35rem;
    font-weight: 600;
}

.specs-list {
    list-style: none;
    padding-left: 0;
}

.specs-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #444;
    line-height: 1.6;
}

.specs-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(89, 10, 125, 1);
    font-weight: bold;
    font-size: 1.2rem;
}

.price-display {
    font-size: 2.8rem;
    background: linear-gradient(135deg, rgba(89, 10, 125, 1) 0%, rgba(162, 102, 196, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin: 25px 0;
    text-align: center;
}

.price-prefix {
    font-size: 1.4rem;
    color: #666;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.includes-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(162, 102, 196, 0.2);
}

.includes-box h4 {
    color: rgba(89, 10, 125, 1);
    margin-bottom: 12px;
    font-weight: 600;
}

.includes-list {
    list-style: none;
    padding-left: 0;
}

.includes-list li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: #555;
}

.includes-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(162, 102, 196, 1);
    font-size: 1.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(89, 10, 125, 1) 0%, rgba(162, 102, 196, 1) 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(89, 10, 125, 0.4);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(89, 10, 125, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-close {
    background: linear-gradient(135deg, rgba(162, 102, 196, 1) 0%, rgba(89, 10, 125, 1) 100%);
    margin-top: 25px;
    margin-right: 15px;
}

.btn-request {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    margin-top: 25px;
}

.btn-request:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.option-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(162, 102, 196, 0.4);
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
}

.option-box h4 {
    color: rgba(89, 10, 125, 1);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Animationen */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */

/* Tablets und kleinere Desktops (bis 1024px) */
@media (max-width: 1024px) {
    .leistungen-section {
        padding: 50px 15px;
    }

    .leistungen-title {
        font-size: 2.5rem;
    }

    .leistungen-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .leistungen-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .card-header-title {
        font-size: 1.7rem;
    }

    .price-display {
        font-size: 2.4rem;
    }
}

/* Tablets im Portrait-Modus (bis 768px) */
@media (max-width: 768px) {
    .leistungen-section {
        padding: 40px 15px;
    }

    .leistungen-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .leistungen-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
        padding: 0 10px;
    }

    .leistungen-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-body {
        padding: 25px;
    }

    .card-header-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .card-preview-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .wip-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .selector-wrapper {
        padding: 20px;
    }

    .selector-label {
        font-size: 1rem;
    }

    .select-display {
        padding: 14px 45px 14px 18px;
        font-size: 1rem;
    }

    .select-option {
        padding: 14px 18px;
    }

    .specs-section {
        padding: 20px;
    }

    .specs-section-title {
        font-size: 1.2rem;
    }

    .specs-list li {
        font-size: 0.95rem;
        padding: 8px 0;
        padding-left: 28px;
    }

    .price-display {
        font-size: 2.2rem;
    }

    .price-prefix {
        font-size: 1.2rem;
    }

    .includes-box {
        padding: 18px;
    }

    .includes-box h4 {
        font-size: 1.1rem;
    }

    .includes-list li {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .button-group {
        gap: 12px;
    }

    .option-box {
        padding: 18px;
    }

    .option-box h4 {
        font-size: 1.1rem;
    }

    /* Hover-Effekte für Touch-Geräte deaktivieren */
    .leistungen-card:not(.expanded):hover {
        transform: translateY(30px);
    }

    .select-display:hover {
        transform: translateY(0);
    }

    .btn-primary:hover {
        transform: translateY(0);
    }
}

/* Smartphones (bis 480px) */
@media (max-width: 480px) {
    .leistungen-section {
        padding: 30px 10px;
    }

    .leistungen-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .leistungen-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .leistungen-grid {
        gap: 15px;
    }

    .leistungen-card {
        border-radius: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .card-header-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .card-preview-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .card-image-wrapper {
        height: 180px;
        border-radius: 20px 20px 0 0;
    }

    .wip-badge {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .selector-wrapper {
        padding: 18px;
        border-radius: 14px;
        margin-bottom: 25px;
    }

    .selector-label {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .select-display {
        padding: 12px 40px 12px 16px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .select-display::after {
        right: 16px;
        font-size: 0.8rem;
    }

    .select-options {
        border-radius: 14px;
    }

    .select-option {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .specs-section {
        padding: 18px;
        border-radius: 14px;
        margin: 18px 0;
    }

    .specs-section-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .specs-list li {
        font-size: 0.9rem;
        padding: 7px 0;
        padding-left: 26px;
    }

    .specs-list li::before {
        font-size: 1.1rem;
    }

    .price-display {
        font-size: 1.9rem;
        margin: 20px 0;
    }

    .price-prefix {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .includes-box {
        padding: 16px;
        border-radius: 10px;
        margin-top: 12px;
    }

    .includes-box h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .includes-list li {
        font-size: 0.9rem;
        padding: 5px 0;
        padding-left: 20px;
    }

    .includes-list li::before {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 11px 24px;
        font-size: 0.95rem;
        border-radius: 25px;
    }

    .btn-close, .btn-request {
        margin-top: 20px;
        margin-right: 10px;
    }

    .button-group {
        gap: 10px;
        flex-direction: column;
    }

    .button-group .btn-primary {
        width: 100%;
        text-align: center;
    }

    .option-box {
        padding: 16px;
        border-radius: 12px;
        margin: 18px 0;
    }

    .option-box h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

/* Sehr kleine Smartphones (bis 360px) */
@media (max-width: 360px) {
    .leistungen-section {
        padding: 25px 8px;
    }

    .leistungen-title {
        font-size: 1.6rem;
    }

    .leistungen-subtitle {
        font-size: 0.9rem;
    }

    .card-body {
        padding: 18px;
    }

    .card-header-title {
        font-size: 1.3rem;
    }

    .card-preview-text {
        font-size: 0.9rem;
    }

    .card-image-wrapper {
        height: 160px;
    }

    .price-display {
        font-size: 1.7rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Landscape-Modus für Smartphones */
@media (max-width: 768px) and (orientation: landscape) {
    .leistungen-section {
        padding: 30px 15px;
    }

    .leistungen-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .leistungen-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .card-image-wrapper {
        height: 160px;
    }

    .leistungen-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Touch-Optimierungen */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .select-display,
    .select-option {
        -webkit-tap-highlight-color: transparent;
    }

    .leistungen-card:not(.expanded):hover {
        transform: translateY(30px);
        box-shadow: 0 8px 32px rgba(89, 10, 125, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(0);
        box-shadow: 0 6px 20px rgba(89, 10, 125, 0.4);
    }

    .select-display:hover {
        transform: translateY(0);
        border-color: rgba(162, 102, 196, 0.4);
        box-shadow: 0 2px 10px rgba(89, 10, 125, 0.1);
    }
}