/* ========================================================================
   SMG CONTENT-PAKETE WIDGET - MODERN LIGHT DESIGN mit AI-FOKUS
   Überarbeitetes Services Widget für Content-Pakete mit cockpitOS AI
   ======================================================================== */

.smg-content-packages-widget {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #e2e8f0 25%, 
        #f1f5f9 50%, 
        #e0e7ff 75%, 
        #f8fafc 100%
    );
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Animated Background Effects */
.smg-content-packages-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(220, 38, 38, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 35%);
    animation: cosmic-float 40s ease-in-out infinite;
    z-index: 1;
}

.smg-content-packages-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23475569" fill-opacity="0.03"><circle cx="30" cy="30" r="1"/></g></svg>') repeat;
    animation: stars-twinkle 25s linear infinite;
    z-index: 1;
}

@keyframes cosmic-float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.02); }
    50% { transform: rotate(-0.5deg) scale(0.98); }
    75% { transform: rotate(0.8deg) scale(1.01); }
}

@keyframes stars-twinkle {
    0% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 0.2; transform: scale(1); }
}

.smg-content-packages-widget > * {
    position: relative;
    z-index: 10;
}

/* ========================================================================
   HEADER SECTION - Moderner heller Look
   ======================================================================== */

.smg-packages-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.smg-packages-title {
    /* Use unified title system from common.css */
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    background: var(--smg-gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--smg-space-lg);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.smg-packages-subtitle {
    /* Use unified subtitle system from common.css */
    font-size: var(--smg-text-xl);
    color: var(--smg-text-light-secondary);
    font-weight: 400;
    margin-bottom: var(--smg-space-lg);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.smg-packages-description {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================================================
   PACKAGES GRID - Responsive & Modern mit gleichen Höhen
   ======================================================================== */

.smg-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    grid-auto-rows: 1fr; /* Alle Zeilen gleich hoch */
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: stretch; /* Stretch alle Grid Items */
}

/* ========================================================================
   PACKAGE CARDS - Glassmorphism mit AI-Theme (Hell) - Gleiche Höhen
   ======================================================================== */

.smg-package-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 15px 80px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: card-float 12s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.8s);
    
    /* Flexbox für interne Struktur */
    display: flex;
    flex-direction: column;
    height: 100%; /* Volle Höhe des Grid Items */
}

/* Individuelle Farben für Pakete - angepasst für helles Design */
.smg-package-card[data-package="impulse"] { 
    --package-color: #3b82f6; 
    --package-glow: rgba(59, 130, 246, 0.2);
}
.smg-package-card[data-package="echo"] { 
    --package-color: #10b981; 
    --package-glow: rgba(16, 185, 129, 0.2);
}
.smg-package-card[data-package="dialog"] { 
    --package-color: #dc2626; 
    --package-glow: rgba(220, 38, 38, 0.2);
}
.smg-package-card[data-package="magnet"] { 
    --package-color: #8b5cf6; 
    --package-glow: rgba(139, 92, 246, 0.2);
}

@keyframes card-float {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-8px) rotateX(1deg) rotateY(0.5deg); }
    50% { transform: translateY(-4px) rotateX(0) rotateY(-0.3deg); }
    75% { transform: translateY(-6px) rotateX(-0.5deg) rotateY(0.2deg); }
}

/* Featured Package - Enhanced für hell */
.smg-package-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--package-color, #dc2626);
    box-shadow: 
        0 25px 120px rgba(59, 130, 246, 0.15),
        0 0 0 1px var(--package-color, #dc2626),
        0 0 60px var(--package-glow, rgba(220, 38, 38, 0.2)),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: featured-pulse 4s ease-in-out infinite;
}

@keyframes featured-pulse {
    0%, 100% { 
        box-shadow: 
            0 25px 120px rgba(59, 130, 246, 0.15),
            0 0 0 1px var(--package-color, #dc2626),
            0 0 60px var(--package-glow, rgba(220, 38, 38, 0.2)),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    50% { 
        box-shadow: 
            0 30px 140px rgba(59, 130, 246, 0.25),
            0 0 0 2px var(--package-color, #dc2626),
            0 0 100px var(--package-glow, rgba(220, 38, 38, 0.3)),
            inset 0 1px 0 rgba(255, 255, 255, 1);
    }
}

/* Hover Effects mit Micro-Animationen */
.smg-package-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--package-color, rgba(59, 130, 246, 0.3));
    box-shadow: 
        0 35px 150px rgba(59, 130, 246, 0.2),
        0 0 0 1px var(--package-color, rgba(59, 130, 246, 0.3)),
        0 0 80px var(--package-glow, rgba(59, 130, 246, 0.15)),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.smg-package-card:hover .smg-package-icon {
    transform: scale(1.2) rotate(10deg);
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% { filter: drop-shadow(0 0 20px var(--package-glow, rgba(59, 130, 246, 0.3))); }
    50% { filter: drop-shadow(0 0 40px var(--package-glow, rgba(59, 130, 246, 0.5))); }
}

/* Glow Borders */
.smg-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--package-color, #3b82f6), 
        transparent, 
        var(--package-color, #3b82f6)
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smg-package-card:hover::before {
    opacity: 0.4;
}

/* ========================================================================
   PACKAGE HEADER
   ======================================================================== */

.smg-package-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.smg-package-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 5px 20px rgba(59, 130, 246, 0.1));
}

.smg-package-name {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, #1e293b, var(--package-color, #3b82f6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.smg-package-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--package-color, #3b82f6);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--package-glow, rgba(59, 130, 246, 0.2));
}

.smg-package-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ========================================================================
   PACKAGE CONTENT SECTIONS
   ======================================================================== */

.smg-package-content {
    flex: 1; /* Nimmt verfügbaren Platz ein */
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.smg-package-section {
    margin-bottom: 0; /* Entfernt margin, da wir gap verwenden */
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1; /* Gleichmäßige Verteilung */
    min-height: 120px; /* Mindesthöhe für Konsistenz */
}

.smg-package-section:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: var(--package-color, rgba(59, 130, 246, 0.2));
    transform: translateY(-2px);
}

.smg-package-section.ai-section {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05), 
        rgba(139, 92, 246, 0.05)
    );
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.smg-package-section.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.smg-package-section.ai-section:hover::before {
    transform: translateX(100%);
}

.smg-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Package Features mit gleichen Höhen */
.smg-package-features,
.smg-ai-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100px; /* Mindesthöhe für Konsistenz */
}

.smg-package-features li,
.smg-ai-features li {
    padding: 0.5rem 0;
    color: #475569;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
    margin: 0; /* Entfernt default margins */
}

.smg-package-features li:hover,
.smg-ai-features li:hover {
    color: #1e293b;
    transform: translateX(5px);
}

.smg-package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--package-color, #10b981);
    font-weight: bold;
    font-size: 1.1rem;
}

.smg-ai-features li::before {
    content: '🧠';
    position: absolute;
    left: 0;
    font-size: 1rem;
    animation: brain-pulse 3s ease-in-out infinite;
}

@keyframes brain-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================================================
   PACKAGE PRICING - Mit Glow Effects (Hell)
   ======================================================================== */

.smg-package-pricing {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.06);
    margin-top: auto; /* Schiebt Pricing nach unten */
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.smg-package-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--package-color, #3b82f6), 
        transparent
    );
    animation: price-shimmer 3s ease-in-out infinite;
}

@keyframes price-shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.smg-new-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--package-glow, rgba(59, 130, 246, 0.2));
}

.smg-new-price strong {
    color: var(--package-color, #3b82f6);
    font-size: 1.6rem;
    text-shadow: 0 0 30px var(--package-glow, rgba(59, 130, 246, 0.3));
}

.smg-price-explanation {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    font-style: italic;
    background: rgba(59, 130, 246, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.08);
    margin-top: 0.5rem;
}

/* ========================================================================
   AI OVERVIEW TABLE - Modernes helles Design
   ======================================================================== */

.smg-ai-overview {
    margin: 6rem auto 4rem;
    max-width: 1400px;
    padding: 0 2rem;
}

.smg-ai-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1e293b, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.smg-ai-table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(59, 130, 246, 0.1);
}

.smg-ai-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.smg-ai-table th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    color: #1e293b;
    font-weight: 700;
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smg-ai-table td {
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    color: #475569;
    transition: all 0.3s ease;
}

.smg-ai-table tr:hover td {
    background: rgba(59, 130, 246, 0.03);
    color: #1e293b;
}

.smg-ai-table tr.featured-row {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.02));
}

.smg-ai-table tr.featured-row td {
    border-color: rgba(220, 38, 38, 0.15);
}

.smg-ai-table .check {
    color: #10b981;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.smg-ai-table .dash {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* ========================================================================
   LEGAL NOTES & CTA - Helle moderne Abschluss-Sektion
   ======================================================================== */

.smg-legal-notes {
    margin: 4rem auto;
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.06);
}

.smg-legal-notes h4 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.smg-legal-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smg-legal-notes li {
    color: #64748b;
    padding: 0.5rem 0;
    line-height: 1.5;
}

.smg-packages-cta {
    text-align: center;
    margin: 4rem auto 0;
    max-width: 900px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05), 
        rgba(220, 38, 38, 0.05)
    );
    backdrop-filter: blur(25px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(59, 130, 246, 0.08);
}

.smg-packages-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    transform: translateX(-100%);
    animation: cta-shine 4s ease-in-out infinite;
}

@keyframes cta-shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.smg-cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.smg-cta-subtitle {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.smg-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 60px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.smg-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.smg-cta-button:hover::before {
    left: 100%;
}

.smg-cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 100px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.smg-cta-button i {
    transition: transform 0.3s ease;
}

.smg-cta-button:hover i {
    transform: translateX(5px);
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 1200px) {
    .smg-packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
    
    .smg-ai-table {
        font-size: 0.8rem;
    }
    
    .smg-ai-table th,
    .smg-ai-table td {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .smg-content-packages-widget {
        padding: 4rem 0;
    }
    
    .smg-packages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        grid-auto-rows: auto; /* Auto-Höhe auf mobil für bessere Flexibilität */
    }
    
    .smg-package-card {
        padding: 2rem;
        height: auto; /* Auto-Höhe auf mobil */
    }
    
    .smg-package-card.featured {
        transform: none;
    }
    
    .smg-package-section {
        min-height: 80px; /* Reduzierte Mindesthöhe auf mobil */
    }
    
    .smg-package-features,
    .smg-ai-features {
        min-height: 80px; /* Reduzierte Mindesthöhe auf mobil */
    }
    
    .smg-ai-table-container {
        overflow-x: auto;
    }
    
    .smg-ai-table {
        min-width: 600px;
    }
    
    .smg-packages-cta {
        padding: 3rem 1.5rem;
        margin: 3rem 1rem 0;
    }
    
    .smg-cta-title {
        font-size: 1.6rem;
    }
    
    .smg-cta-button {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .smg-packages-title {
        font-size: 2.5rem;
    }
    
    .smg-packages-subtitle {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
    
    .smg-package-name {
        font-size: 1.8rem;
    }
    
    .smg-package-section {
        padding: 1rem;
    }
    
    .smg-ai-title {
        font-size: 2rem;
    }
}

/* ========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
    .smg-content-packages-widget::before,
    .smg-content-packages-widget::after,
    .smg-package-card,
    .smg-packages-title,
    .smg-cta-button::before,
    .smg-package-section.ai-section::before {
        animation: none !important;
    }
    
    .smg-package-card:hover,
    .smg-cta-button:hover {
        transform: none !important;
    }
} 