/* Ultramodernes Service Modal Design - Verbesserte Responsive Version */
.service-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px; /* Mobile padding */
}

.service-modal.show {
    opacity: 1;
}

.service-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.service-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 20px); /* Bessere mobile Höhe */
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    overflow: hidden;
    overflow-y: auto; /* Scrollbar für lange Inhalte */
    transform: scale(0.8) translateY(50px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-modal.show .service-modal-content {
    transform: scale(1) translateY(0);
}

/* Ultramoderner Close Button */
.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.1) rotate(90deg);
}

.service-modal-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.service-modal-close span:first-child {
    transform: rotate(45deg);
}

.service-modal-close span:last-child {
    transform: rotate(-45deg);
}

.service-modal-close:hover span {
    background: #ef4444;
}

/* Spektakulärer Header */
.service-modal-header {
    position: relative;
    background: linear-gradient(135deg, #091d77 0%, #783b3b 25%, #3e3e52 50%, #f55799 75%, #35424d 100%);
    padding: 50px 30px 40px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    width: 14px;
    height: 14px;
    top: 70%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.service-modal-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.service-modal-icon i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.service-modal-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff 30%, #f0f9ff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

/* Luxuriöser Body */
.service-modal-body {
    padding: 0;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.95) 0%, 
        rgba(241, 245, 249, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.content-wrapper {
    padding: 40px 30px;
}

.service-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #1e293b;
    text-align: justify;
    margin-bottom: 35px;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
}

.service-description::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 4rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

.service-description::after {
    content: '"';
    position: absolute;
    bottom: -40px;
    right: -5px;
    font-size: 4rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

/* Premium Highlight Section */
.premium-highlight {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin: 35px 0;
    text-align: center;
    overflow: hidden;
}

.highlight-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(102, 126, 234, 0.3) 60deg,
        transparent 120deg,
        rgba(245, 158, 11, 0.3) 240deg,
        transparent 300deg
    );
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.premium-highlight p {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #667eea 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spektakulärer Action Button */
.action-section {
    text-align: center;
    padding-top: 15px;
}

.service-contact-btn {
    position: relative;
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #f59e0b 0%, 
        #f97316 25%, 
        #ef4444 50%, 
        #ec4899 75%, 
        #8b5cf6 100%);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    border-radius: inherit;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.service-contact-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 15px 30px rgba(245, 158, 11, 0.4),
        0 0 40px rgba(245, 158, 11, 0.2);
}

.service-contact-btn:hover .btn-bg {
    animation-duration: 1s;
}

.service-contact-btn i {
    font-size: 1.1em;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(3px);
    }
}

/* ===== TABLET RESPONSIVE (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .service-modal {
        padding: 15px;
    }
    
    .service-modal-content {
        width: 95%;
        max-height: calc(100vh - 30px);
        border-radius: 28px;
    }
    
    .service-modal-header {
        padding: 45px 35px 35px;
    }
    
    .service-modal-header h1 {
        font-size: 2.5rem;
    }
    
    .service-modal-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .service-modal-icon i {
        font-size: 2.8rem;
    }
    
    .content-wrapper {
        padding: 35px 25px;
    }
    
    .service-description {
        font-size: 1.15rem;
        line-height: 1.7;
    }
    
    .premium-highlight {
        padding: 22px;
        margin: 30px 0;
    }
    
    .premium-highlight p {
        font-size: 1.25rem;
    }
    
    .service-contact-btn {
        padding: 16px 40px;
    }
}

/* ===== MOBILE RESPONSIVE (bis 767px) ===== */
@media (max-width: 767px) {
    .service-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .service-modal-content {
        width: 100%;
        max-width: calc(100vw - 10px);
        max-height: calc(100vh - 40px);
        border-radius: 20px;
        margin: 0;
    }
    
    .service-modal-header {
        padding: 30px 20px 25px;
    }
    
    .service-modal-header h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .service-modal-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin-bottom: 15px;
    }
    
    .service-modal-icon i {
        font-size: 2.2rem;
    }
    
    .content-wrapper {
        padding: 25px 18px;
    }
    
    .service-description {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 25px;
    }
    
    .service-description::before {
        font-size: 3rem;
        top: -10px;
        left: -10px;
    }
    
    .service-description::after {
        font-size: 3rem;
        bottom: -25px;
        right: 0;
    }
    
    .premium-highlight {
        padding: 18px;
        margin: 25px 0;
        border-radius: 12px;
    }
    
    .premium-highlight p {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .service-contact-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .service-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    
    .service-modal-close span {
        width: 16px;
    }
    
    .header-accent {
        width: 60px;
    }
}

/* ===== SEHR KLEINE MOBILE GERÄTE (bis 480px) ===== */
@media (max-width: 480px) {
    .service-modal {
        padding-top: 10px;
    }
    
    .service-modal-content {
        border-radius: 16px;
    }
    
    .service-modal-header {
        padding: 25px 15px 20px;
    }
    
    .service-modal-header h1 {
        font-size: 1.7rem;
    }
    
    .service-modal-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
    
    .service-modal-icon i {
        font-size: 2rem;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .premium-highlight {
        padding: 15px;
        margin: 20px 0;
    }
    
    .premium-highlight p {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .service-contact-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .btn-content {
        gap: 8px;
    }
}

/* Scrollbar Styling für bessere UX */
.service-modal-content::-webkit-scrollbar {
    width: 6px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.service-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Touch-optimierte Interaktionen */
@media (hover: none) and (pointer: coarse) {
    .service-contact-btn:active {
        transform: scale(0.98);
    }
    
    .service-modal-close:active {
        transform: scale(0.9);
    }
}