/* Elementor Counter Widgets - Hauptstyles */
.elementor-counter-widget {
    text-align: center;
    padding: 30px;
    margin: 10px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Icon-Positionen */
.elementor-counter-widget.icon-position-top {
    flex-direction: column;
}

.elementor-counter-widget.icon-position-bottom {
    flex-direction: column-reverse;
}

.elementor-counter-widget.icon-position-left {
    flex-direction: row;
    text-align: left;
}

.elementor-counter-widget.icon-position-right {
    flex-direction: row-reverse;
    text-align: right;
}

/* Icon-Styles */
.counter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    transition: all 0.3s ease;
}

.elementor-counter-widget.icon-position-top .counter-icon {
    margin-bottom: 15px;
}

.elementor-counter-widget.icon-position-bottom .counter-icon {
    margin-top: 15px;
}

.elementor-counter-widget.icon-position-left .counter-icon {
    margin-right: 20px;
}

.elementor-counter-widget.icon-position-right .counter-icon {
    margin-left: 20px;
}

/* Content-Bereich */
.counter-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.elementor-counter-widget.icon-position-left .counter-content,
.elementor-counter-widget.icon-position-right .counter-content {
    align-items: flex-start;
}

/* Titel-Styles */
.counter-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.elementor-counter-widget.icon-position-left .counter-title,
.elementor-counter-widget.icon-position-right .counter-title {
    text-align: left;
}

/* Zahl-Styles */
.counter-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.elementor-counter-widget.icon-position-left .counter-number,
.elementor-counter-widget.icon-position-right .counter-number {
    justify-content: flex-start;
}

.counter-prefix,
.counter-suffix {
    font-size: 0.6em;
    opacity: 0.8;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.counter-value {
    font-size: 1em;
    font-weight: 900;
    transition: all 0.3s ease;
}

/* Beschreibung-Styles */
.counter-description {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.elementor-counter-widget.icon-position-left .counter-description,
.elementor-counter-widget.icon-position-right .counter-description {
    text-align: left;
}

/* Hover-Effekte */
.elementor-counter-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.elementor-counter-widget:hover .counter-icon {
    transform: scale(1.1);
}

.elementor-counter-widget:hover .counter-number {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .elementor-counter-widget {
        padding: 20px;
        min-height: 150px;
    }
    
    .elementor-counter-widget.icon-position-left,
    .elementor-counter-widget.icon-position-right {
        flex-direction: column;
        text-align: center;
    }
    
    .elementor-counter-widget.icon-position-left .counter-content,
    .elementor-counter-widget.icon-position-right .counter-content {
        align-items: center;
    }
    
    .elementor-counter-widget.icon-position-left .counter-title,
    .elementor-counter-widget.icon-position-right .counter-title,
    .elementor-counter-widget.icon-position-left .counter-description,
    .elementor-counter-widget.icon-position-right .counter-description {
        text-align: center;
    }
    
    .elementor-counter-widget.icon-position-left .counter-number,
    .elementor-counter-widget.icon-position-right .counter-number {
        justify-content: center;
    }
    
    .elementor-counter-widget.icon-position-left .counter-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .elementor-counter-widget.icon-position-right .counter-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .counter-title {
        font-size: 1.2rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .elementor-counter-widget {
        padding: 15px;
        min-height: 120px;
    }
    
    .counter-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .counter-number {
        font-size: 2rem;
        margin: 5px 0;
    }
    
    .counter-description {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

/* Animation für Zahlen */
.counter-value.animating {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Icon-spezifische Styles */
.counter-icon .dashicons {
    display: inline-block;
    vertical-align: middle;
}

.counter-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* Gradient-Hintergründe für verschiedene Stile */
.elementor-counter-widget.style-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.elementor-counter-widget.style-classic {
    background: #ffffff;
    color: #333333;
    border: 2px solid #e0e0e0;
}

.elementor-counter-widget.style-minimal {
    background: transparent;
    color: #333333;
    border: 1px solid #f0f0f0;
}

.elementor-counter-widget.style-bold {
    background: #2c3e50;
    color: white;
}

.elementor-counter-widget.style-elegant {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Spezielle Icon-Farben für verschiedene Stile */
.elementor-counter-widget.style-modern .counter-icon {
    color: rgba(255,255,255,0.9);
}

.elementor-counter-widget.style-classic .counter-icon {
    color: #667eea;
}

.elementor-counter-widget.style-minimal .counter-icon {
    color: #666666;
}

.elementor-counter-widget.style-bold .counter-icon {
    color: #ecf0f1;
}

.elementor-counter-widget.style-elegant .counter-icon {
    color: rgba(255,255,255,0.9);
}

/* Loading-Zustand */
.elementor-counter-widget.loading {
    opacity: 0.7;
    pointer-events: none;
}

.elementor-counter-widget.loading .counter-value {
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
