/* ==========================================================================
   WEBSERVICES.CSS - Spezifische Styles für die Webservices-Seite
   Basiert auf main.css für einheitliche Standards
   ========================================================================== */

/* ==========================================================================
   FEATURES SECTION - HORIZONTALES SCROLLING
   ========================================================================== */

.hosting-features {
    padding: clamp(60px, 12vw, 100px) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.features-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.horizontal-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0 40px;
    position: relative;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.features-grid {
    display: flex;
    gap: clamp(20px, 4vw, 32px);
    padding: 0 clamp(16px, 4vw, 24px);
    min-width: max-content;
}

.feature-item {
    min-width: clamp(240px, 25vw, 300px);
    max-width: clamp(240px, 25vw, 300px);
    height: clamp(200px, 20vw, 240px);
    padding: clamp(24px, 4vw, 32px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin-bottom: clamp(16px, 3vw, 24px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.feature-item h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: #0B7BBC;
}

/* ==========================================================================
   SCROLL NAVIGATION ARROWS
   ========================================================================== */

.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.scroll-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.scroll-nav.active {
    opacity: 1;
    visibility: visible;
}

.scroll-prev {
    left: 20px;
}

.scroll-next {
    right: 20px;
}

.scroll-nav svg {
    width: 24px;
    height: 24px;
    color: #374151;
    transition: color 0.3s ease;
}

.scroll-nav:hover svg {
    color: #0B7BBC;
}

/* ==========================================================================
   HOSTING PLANS SECTION
   ========================================================================== */

.hosting-plans-section {
    padding: clamp(80px, 15vw, 120px) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hosting-plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
}

.paket-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.paket-carousel {
    display: flex;
    gap: clamp(24px, 5vw, 40px);
    padding: 40px clamp(16px, 4vw, 24px) 60px;
    min-width: max-content;
    align-items: stretch;
}

.plan-card {
    min-width: clamp(320px, 35vw, 380px);
    max-width: clamp(320px, 35vw, 380px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.plan-card.empfohlen {
    border: 2px solid #f59e0b;
    box-shadow: 0 20px 80px rgba(245, 158, 11, 0.15);
    transform: scale(1.05);
}

.plan-card.empfohlen:hover {
    transform: translateY(-12px) scale(1.07);
}

.plan-card.beliebt {
    border: 2px solid #0B7BBC;
    box-shadow: 0 20px 80px rgba(37, 99, 235, 0.15);
    transform: scale(1.03);
}

.plan-card.beliebt:hover {
    transform: translateY(-12px) scale(1.05);
}

.plan-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.plan-label.empfohlen {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.plan-label.beliebt {
    background: linear-gradient(135deg, #0B7BBC 0%, #1d4ed8 100%);
}

.plan-header {
    padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 40px) clamp(24px, 4vw, 32px);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.plan-header h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.plan-subtitle {
    color: #64748b;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    font-weight: 500;
    margin-bottom: clamp(20px, 4vw, 32px);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: clamp(16px, 3vw, 24px);
}

.currency {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: #64748b;
    font-weight: 600;
}

.amount {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #1e293b;
    line-height: 0.9;
}

.period {
    font-size: clamp(0.875rem, 1.8vw, 1.125rem);
    color: #64748b;
    font-weight: 600;
}

.plan-features {
    padding: clamp(24px, 4vw, 32px);
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.5);
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: clamp(12px, 2vw, 16px) 0;
    color: #475569;
    position: relative;
    padding-left: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: clamp(0.875rem, 1.8vw, 0.95rem);
    font-weight: 500;
    line-height: 1.5;
}

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

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: clamp(12px, 2vw, 16px);
    color: #10b981;
    font-weight: 800;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-footer {
    padding: clamp(20px, 4vw, 32px);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
}

.plan-ideal {
    padding: clamp(20px, 4vw, 28px);
    font-size: clamp(0.75rem, 1.6vw, 0.875rem);
    color: #64748b;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    line-height: 1.6;
}

.plan-ideal strong {
    color: #374151;
    font-weight: 700;
}

/* ==========================================================================
   TECH SPECS SECTION
   ========================================================================== */

.tech-specs {
    padding: clamp(80px, 15vw, 120px) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.specs-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.specs-grid {
    display: flex;
    gap: clamp(24px, 4vw, 32px);
    padding: 20px clamp(16px, 4vw, 24px) 40px;
    min-width: max-content;
}

.spec-category {
    min-width: clamp(280px, 30vw, 340px);
    max-width: clamp(280px, 30vw, 340px);
    padding: clamp(28px, 5vw, 40px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.spec-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.spec-category h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: clamp(20px, 4vw, 28px);
}

.spec-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-category li {
    padding: clamp(10px, 2vw, 14px) 0;
    color: #475569;
    position: relative;
    padding-left: 24px;
    font-size: clamp(0.875rem, 1.8vw, 0.95rem);
    line-height: 1.6;
}

.spec-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 800;
    font-size: 1.2em;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    padding: clamp(80px, 15vw, 120px) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    margin-bottom: clamp(16px, 3vw, 24px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: clamp(20px, 4vw, 28px);
    background: rgba(248, 250, 252, 0.8);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: rgba(241, 245, 249, 0.9);
}

.faq-question h3 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-toggle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: rgba(102, 126, 234, 0.2);
}

.faq-answer {
    padding: 0 clamp(20px, 4vw, 28px);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
}

.faq-item.active .faq-answer {
    padding: clamp(20px, 4vw, 28px);
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: clamp(80px, 15vw, 120px) 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: clamp(16px, 3vw, 24px);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    margin-bottom: clamp(32px, 6vw, 48px);
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: clamp(16px, 3vw, 24px);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   SCROLL HINTS
   ========================================================================== */

.scroll-hint {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 24px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    display: none;
    font-weight: 500;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.feature-item,
.plan-card,
.spec-category {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.plan-card:nth-child(1) { animation-delay: 0.2s; }
.plan-card:nth-child(2) { animation-delay: 0.4s; }
.plan-card:nth-child(3) { animation-delay: 0.6s; }
.plan-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 1024px) {
    .scroll-nav {
        display: none !important;
    }

    .scroll-hint {
        display: block;
    }

    .features-grid {
        scroll-snap-type: x mandatory;
    }

    .feature-item {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .paket-carousel {
        scroll-snap-type: x mandatory;
    }

    .plan-card {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .specs-grid {
        scroll-snap-type: x mandatory;
    }

    .spec-category {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

@media (max-width: 768px) {
    .plan-card.empfohlen {
        transform: none;
    }

    .plan-card.beliebt {
        transform: none;
    }

    .plan-card.empfohlen:hover,
    .plan-card.beliebt:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .feature-item {
        min-width: clamp(260px, 70vw, 300px);
        max-width: clamp(260px, 70vw, 300px);
    }

    .plan-card {
        min-width: clamp(300px, 80vw, 360px);
        max-width: clamp(300px, 80vw, 360px);
    }

    .spec-category {
        min-width: clamp(280px, 75vw, 320px);
        max-width: clamp(280px, 75vw, 320px);
    }
}

@media (max-width: 480px) {
    .features-grid {
        padding: 0 16px;
        gap: 20px;
    }

    .feature-item {
        min-width: clamp(240px, 85vw, 280px);
        max-width: clamp(240px, 85vw, 280px);
        height: clamp(180px, 25vw, 220px);
    }

    .paket-carousel {
        padding: 20px 16px 40px;
        gap: 20px;
    }

    .plan-card {
        min-width: clamp(280px, 90vw, 320px);
        max-width: clamp(280px, 90vw, 320px);
    }

    .specs-grid {
        padding: 20px 16px 40px;
        gap: 20px;
    }

    .spec-category {
        min-width: clamp(260px, 85vw, 300px);
        max-width: clamp(260px, 85vw, 300px);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */

/* Enhanced Focus States */
.horizontal-scroll-wrapper:focus {
    outline: 3px solid #0B7BBC;
    outline-offset: 2px;
}

.feature-item:focus,
.plan-card:focus,
.spec-category:focus,
.faq-question:focus {
    outline: 3px solid #0B7BBC;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .feature-item,
    .plan-card,
    .spec-category,
    .faq-item {
        border: 2px solid #000;
    }

    .scroll-nav {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .horizontal-scroll-wrapper {
        scroll-behavior: auto;
    }

    .feature-item,
    .plan-card,
    .spec-category,
    .faq-item,
    .scroll-nav {
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimizations */
.feature-item,
.plan-card,
.spec-category {
    will-change: transform;
    contain: layout style paint;
}

.horizontal-scroll-wrapper {
    contain: layout style;
}