/* ========================================================================
   SMG WIDGETS - COMMON STYLES
   Allgemeine Styles für alle Elementor Widgets
   ======================================================================== */

/* ========================================================================
   DESIGN SYSTEM - CSS CUSTOM PROPERTIES
   ======================================================================== */

:root {
    /* Brand Colors */
    --smg-red: #dc2626;
    --smg-red-dark: #b91c1c;
    --smg-blue: #3b82f6;
    --smg-blue-dark: #2563eb;
    --smg-dark: #1e293b;
    
    /* Typography Scale */
    --smg-text-xs: 0.75rem;
    --smg-text-sm: 0.875rem;
    --smg-text-base: 1rem;
    --smg-text-lg: 1.125rem;
    --smg-text-xl: 1.25rem;
    --smg-text-2xl: 1.5rem;
    --smg-text-3xl: 1.875rem;
    --smg-text-4xl: 2.25rem;
    --smg-text-5xl: 3rem;
    --smg-text-6xl: 4rem;
    
    /* Spacing Scale */
    --smg-space-xs: 0.5rem;
    --smg-space-sm: 0.75rem;
    --smg-space-md: 1rem;
    --smg-space-lg: 1.5rem;
    --smg-space-xl: 2rem;
    --smg-space-2xl: 2.5rem;
    --smg-space-3xl: 3rem;
    
    /* Border Radius */
    --smg-radius-sm: 8px;
    --smg-radius-md: 12px;
    --smg-radius-lg: 16px;
    --smg-radius-xl: 20px;
    --smg-radius-full: 50px;
    
    /* Shadows */
    --smg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --smg-shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --smg-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --smg-shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --smg-transition-fast: 0.15s ease;
    --smg-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --smg-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradients */
    --smg-gradient-primary: linear-gradient(135deg, var(--smg-red) 0%, var(--smg-red-dark) 100%);
    --smg-gradient-secondary: linear-gradient(135deg, var(--smg-blue) 0%, var(--smg-blue-dark) 100%);
    --smg-gradient-brand: linear-gradient(135deg, var(--smg-red) 0%, var(--smg-blue) 100%);
    --smg-gradient-brand-alt: linear-gradient(135deg, var(--smg-blue) 0%, var(--smg-red) 100%);
}

/* Light Theme Variables */
:root {
    --smg-bg-light: #ffffff;
    --smg-bg-light-secondary: #f8fafc;
    --smg-text-light-primary: rgba(0, 0, 0, 0.9);
    --smg-text-light-secondary: rgba(0, 0, 0, 0.7);
    --smg-text-light-muted: rgba(0, 0, 0, 0.5);
    --smg-border-light: rgba(0, 0, 0, 0.1);
    --smg-shadow-light: rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
:root {
    --smg-bg-dark: #0f172a;
    --smg-bg-dark-secondary: #1e293b;
    --smg-text-dark-primary: rgba(255, 255, 255, 0.95);
    --smg-text-dark-secondary: rgba(255, 255, 255, 0.8);
    --smg-text-dark-muted: rgba(255, 255, 255, 0.6);
    --smg-border-dark: rgba(255, 255, 255, 0.1);
    --smg-shadow-dark: rgba(0, 0, 0, 0.3);
}

/* ========================================================================
   UNIFIED TYPOGRAPHY SYSTEM
   ======================================================================== */

/* Base Title Class */
.smg-title {
    font-family: var(--font-secondary);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--smg-space-lg);
    letter-spacing: -0.02em;
}

/* Title Sizes */
.smg-title-hero {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--smg-space-xl);
}

.smg-title-xl {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--smg-space-xl);
}

.smg-title-lg {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--smg-space-lg);
}

.smg-title-md {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--smg-space-lg);
}

.smg-title-sm {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: var(--smg-space-md);
}

/* Theme-based Title Colors */
.smg-title-light {
    background: var(--smg-gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.smg-title-dark {
    background: var(--smg-gradient-brand-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle System */
.smg-subtitle {
    font-size: var(--smg-text-xl);
    line-height: 1.6;
    margin-bottom: var(--smg-space-xl);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.smg-subtitle-light {
    color: var(--smg-text-light-secondary);
}

.smg-subtitle-dark {
    color: var(--smg-text-dark-secondary);
}

/* ========================================================================
   UNIFIED BUTTON SYSTEM
   ======================================================================== */

/* Base Button Class */
.smg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--smg-space-sm);
    padding: var(--smg-space-md) var(--smg-space-xl);
    border-radius: var(--smg-radius-md);
    font-weight: 600;
    font-size: var(--smg-text-base);
    text-decoration: none !important;
    transition: all var(--smg-transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

/* Button Sizes */
.smg-btn-sm {
    padding: var(--smg-space-sm) var(--smg-space-lg);
    font-size: var(--smg-text-sm);
    border-radius: var(--smg-radius-sm);
}

.smg-btn-lg {
    padding: var(--smg-space-lg) var(--smg-space-2xl);
    font-size: var(--smg-text-lg);
    border-radius: var(--smg-radius-lg);
}

/* Primary Buttons */
.smg-btn-primary-light {
    background: var(--smg-gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.smg-btn-primary-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    color: white;
}

.smg-btn-primary-dark {
    background: var(--smg-gradient-brand-alt);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.smg-btn-primary-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Secondary Buttons */
.smg-btn-secondary-light {
    background: rgba(0, 0, 0, 0.05);
    color: var(--smg-text-light-primary);
    border-color: var(--smg-border-light);
}

.smg-btn-secondary-light:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--smg-shadow-md);
    color: var(--smg-text-light-primary);
}

.smg-btn-secondary-dark {
    background: rgba(255, 255, 255, 0.1);
    color: var(--smg-text-dark-primary);
    border-color: var(--smg-border-dark);
    backdrop-filter: blur(10px);
}

.smg-btn-secondary-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--smg-shadow-dark);
    color: var(--smg-text-dark-primary);
}

/* Outline Buttons */
.smg-btn-outline-light {
    background: transparent;
    color: var(--smg-red);
    border-color: var(--smg-red);
}

.smg-btn-outline-light:hover {
    background: var(--smg-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.smg-btn-outline-dark {
    background: transparent;
    color: var(--smg-blue);
    border-color: var(--smg-blue);
}

.smg-btn-outline-dark:hover {
    background: var(--smg-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* ULTRA-MODERN BUTTON STYLES WITH MICRO-ANIMATIONS
   ======================================================================== */

.smg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.smg-btn::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;
}

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

.smg-btn > * {
    position: relative;
    z-index: 2;
}

/* Button Variants */
.smg-btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.smg-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, var(--primary-red) 100%);
    color: white;
}

.smg-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    transition: all 0.1s;
}

.smg-btn-secondary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.smg-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, var(--accent-blue) 100%);
    color: white;
}

.smg-btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.1s;
}

.smg-btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.smg-btn-outline:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.3);
}

.smg-btn-outline:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.smg-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.smg-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

.smg-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.smg-btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    color: white;
}

.smg-btn-success:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.1s;
}

.smg-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.smg-btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
    color: white;
}

.smg-btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.1s;
}

/* Button Sizes */
.smg-btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 12px;
}

.smg-btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.125rem;
    border-radius: 20px;
}

.smg-btn-xl {
    padding: 2rem 4rem;
    font-size: 1.25rem;
    border-radius: 24px;
}

/* Button Consistency for Legacy Classes */
.smg-filter-btn,
.smg-gallery-filter,
.smg-gallery-action {
    font-family: inherit;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ensure readable contrast and accessibility */
.smg-btn,
.smg-filter-btn,
.smg-gallery-filter {
    text-shadow: none;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.smg-btn:hover,
.smg-filter-btn:hover,
.smg-gallery-filter:hover {
    color: inherit;
    text-decoration: none !important;
}

/* High Contrast Button Styles for better readability */
.smg-btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff !important;
    border: 2px solid #dc2626;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.smg-btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff !important;
    border-color: #b91c1c;
}

.smg-btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: 2px solid #3b82f6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.smg-btn-secondary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff !important;
    border-color: #1d4ed8;
}

.smg-btn-outline {
    background: #ffffff;
    color: #dc2626 !important;
    border: 2px solid #dc2626;
    text-shadow: none;
}

.smg-btn-outline:hover {
    background: #dc2626;
    color: #ffffff !important;
    border-color: #dc2626;
}

.smg-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.smg-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
}

.smg-btn-icon {
    gap: 0.75rem;
}

.smg-btn-icon i {
    transition: transform 0.3s ease;
}

.smg-btn-icon:hover i {
    transform: translateX(3px);
}

.smg-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.smg-btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

.smg-btn-loading > * {
    opacity: 0;
}

/* GLOBAL STYLES & ANIMATIONS
   ======================================================================== */

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 1s;
    transition-timing-function: ease-out-cubic;
}

html {
    scroll-behavior: smooth;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.elementor-button {
    transition: var(--transition-base);
}

button:not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
input[type="button"]:not(:disabled):hover,
input[type="reset"]:not(:disabled):hover {
    animation: button-pulse 0.6s ease-in-out;
}

@keyframes button-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

a:not([class*="btn"]):not(.smg-solution-link):not(.smg-case-study-link) {
    transition: var(--transition-base);
}

a:not([class*="btn"]):not(.smg-solution-link):not(.smg-case-study-link):hover {
    animation: link-wiggle 0.4s ease-in-out;
}

@keyframes link-wiggle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

body {
    animation: page-fade-in 1s ease-out;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smg-hero-section,
.smg-solutions-section,
.smg-case-studies-widget,
.smg-product-spotlight,
.smg-stats-counter,
.smg-testimonials-widget {
    animation: gentle-float 8s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

i, .elementor-icon {
    animation: icon-breathe 4s ease-in-out infinite;
}

@keyframes icon-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* SELECTION & SCROLLBAR STYLING
   ======================================================================== */

::selection {
    background: var(--primary-red);
    color: white;
    text-shadow: none;
}

::-moz-selection {
    background: var(--primary-red);
    color: white;
    text-shadow: none;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red) 0%, #b91c1c 100%);
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b91c1c 0%, var(--primary-red) 100%);
}

/* FORM FOCUS STYLES
   ======================================================================== */

input:focus,
textarea:focus,
select:focus,
.elementor-field-group input:focus,
.elementor-field-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    animation: focus-pulse 2s ease-in-out infinite;
}

@keyframes focus-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.05); }
}

/* ELEMENTOR SECTION ENHANCEMENTS
   ======================================================================== */

.elementor-section,
.elementor-container,
.elementor-widget {
    position: relative;
}

.elementor-section::before,
.elementor-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.03;
    background: 
        radial-gradient(circle at 25% 25%, var(--primary-red) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--accent-blue) 0%, transparent 50%);
    animation: ambient-rotate 30s linear infinite;
}

@keyframes ambient-rotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.1); }
}

/* IMAGE HOVER EFFECTS
   ======================================================================== */

img {
    transition: var(--transition-base);
}

img:hover {
    transform: scale(1.02);
    filter: brightness(1.1) saturate(1.1);
}

/* UTILITY CLASSES
   ======================================================================== */

.smg-text-center {
    text-align: center;
}

.smg-text-left {
    text-align: left;
}

.smg-text-right {
    text-align: right;
}

.smg-mb-0 { margin-bottom: 0; }
.smg-mb-1 { margin-bottom: 1rem; }
.smg-mb-2 { margin-bottom: 2rem; }
.smg-mb-3 { margin-bottom: 3rem; }

.smg-mt-0 { margin-top: 0; }
.smg-mt-1 { margin-top: 1rem; }
.smg-mt-2 { margin-top: 2rem; }
.smg-mt-3 { margin-top: 3rem; }

/* ANIMATION UTILITIES
   ======================================================================== */

.smg-animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-animate-delay-1 { animation-delay: 0.1s; }
.smg-animate-delay-2 { animation-delay: 0.2s; }
.smg-animate-delay-3 { animation-delay: 0.3s; }
.smg-animate-delay-4 { animation-delay: 0.4s; }

.smg-hover-lift:hover {
    transform: translateY(-5px);
    transition: var(--transition-base);
}

.smg-hover-glow:hover {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(var(--primary-red), 0.2);
    transition: var(--transition-base);
}

/* WIDGET NOTICES & ALERTS
   ======================================================================== */

.smg-widget-notice {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f9fafb;
    color: #374151;
    font-size: 0.875rem;
}

.smg-widget-notice.error {
    background: #fef2f2;
    color: #991b1b;
}

.smg-widget-notice.success {
    background: #ecfdf5;
    color: #065f46;
}

.smg-widget-notice.info {
    background: #eff6ff;
    color: #1e40af;
}

/* NOTIFICATION SYSTEM
   ======================================================================== */

.smg-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
}

.smg-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.smg-notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.smg-notification-message {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.smg-notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6b7280;
    transition: var(--transition-base);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.smg-notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.smg-notification-success {
    /* Removed border-left */
}

.smg-notification-error {
    /* Removed border-left */
}

.smg-notification-info {
    /* Removed border-left */
}

.smg-notification-warning {
    /* Removed border-left */
}

/* LIGHTBOX SYSTEM
   ======================================================================== */

.smg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.smg-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.smg-lightbox-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-lightbox.show .smg-lightbox-content {
    transform: scale(1);
}

.smg-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1.25rem;
    color: #6b7280;
}

.smg-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #374151;
}

.smg-lightbox img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.smg-lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

body.lightbox-open {
    overflow: hidden;
}

/* FORM VALIDATION STYLES
   ======================================================================== */

.smg-form-group input.error,
.smg-form-group textarea.error,
.smg-form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.smg-form-group input:valid,
.smg-form-group textarea:valid {
    border-color: #10b981;
}

.smg-form-group input:valid:not(:placeholder-shown),
.smg-form-group textarea:valid:not(:placeholder-shown) {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* LOADING & SKELETON STYLES
   ======================================================================== */

.smg-loading {
    position: relative;
    overflow: hidden;
}

.smg-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    to { left: 100%; }
}

.smg-skeleton {
    background: linear-gradient(-90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 400% 400%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* SCROLL PROGRESS BAR
   ======================================================================== */

.smg-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9998;
}

.smg-scroll-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-blue));
    width: 0%;
    transition: width 0.1s ease;
}

/* RESPONSIVE BREAKPOINTS - MOBILE FIRST
   ======================================================================== */

@media (max-width: 768px) {
    .smg-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .smg-btn-small {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .smg-btn-large {
        padding: 1.25rem 2.5rem;
        font-size: 1rem;
    }

    .smg-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .smg-lightbox-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .smg-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
}

/* ========================================================================
   CUSTOMER JOURNEY WIDGET - KRITISCHE BASIS-STYLES
   Diese Styles sind essentiell und werden immer geladen
   ======================================================================== */

.smg-customer-journey-widget {
    position: relative;
    min-height: 100vh;
    padding: 8rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.smg-customer-journey-widget[data-style="galaxy"] {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.smg-customer-journey-widget[data-style="gradient"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.smg-customer-journey-widget[data-style="clean"] {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.smg-journey-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 10;
}

.smg-journey-title {
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.smg-journey-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

.smg-journey-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 10;
}

.smg-journey-steps {
    position: relative;
    z-index: 5;
}

.smg-journey-step {
    position: relative;
    margin-bottom: 12rem; /* Erhöht für längere Verbindungslinien */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start; /* Geändert von center zu flex-start */
    justify-content: space-between;
}

.smg-journey-step.smg-step-active {
    opacity: 1;
    transform: translateY(0);
}

/* STEP COLOR VARIATIONS */
.smg-journey-step:nth-child(1) {
    --step-color: #dc2626;
}

.smg-journey-step:nth-child(2) {
    --step-color: #3b82f6;
}

.smg-journey-step:nth-child(3) {
    --step-color: #10b981;
}

.smg-journey-step:nth-child(4) {
    --step-color: #f59e0b;
}

.smg-journey-step:nth-child(5) {
    --step-color: #8b5cf6;
}

.smg-journey-step:nth-child(6) {
    --step-color: #ef4444;
}

/* STEP NUMBER STYLING */
.smg-step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--step-color, #dc2626), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 15px var(--step-color, #dc2626);
    z-index: 10;
    transition: all 0.4s ease;
}

.smg-step-number span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-secondary);
}

.smg-journey-step.smg-step-active .smg-step-number {
    transform: scale(1.1);
    animation: step-number-pulse 2s infinite ease-in-out;
}

@keyframes step-number-pulse {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            0 0 15px var(--step-color, #dc2626);
    }
    50% { 
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.4),
            0 0 25px var(--step-color, #dc2626);
    }
}

/* TOUCHPOINT TAGS */
.smg-step-touchpoints {
    margin-top: 1.5rem;
}

.smg-step-touchpoints strong {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.smg-touchpoint-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.smg-touchpoint-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.smg-touchpoint-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .smg-customer-journey-widget {
        padding: 4rem 0;
    }
    
    .smg-journey-step {
        margin-bottom: 6rem;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }
    
    .smg-journey-step:nth-child(even) .smg-step-card {
        margin-left: 0;
        margin-right: 0;
    }
    
    .smg-step-card {
        margin-right: 0;
        padding: 2rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .smg-step-number {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 0 auto 1rem;
    }
    
    .smg-customer-persona {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-top: 2rem;
        width: 100% !important;
    }
    
    .smg-thought-bubble {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        max-width: 100%;
        margin-top: 1rem;
        transform: none !important;
    }
    
    .smg-thought-bubble::before,
    .smg-thought-bubble::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .smg-journey-connection {
        display: none;
    }
    
    .smg-journey-progress {
        display: none;
    }
} 