/**
 * ACF Dynamic Social Icons - Styles
 * Design inspiriert vom hochgeladenen Screenshot
 */

/* CRITICAL FIX - Font Awesome Icons sichtbar machen */
.elementor-social-icon i {
    display: inline-block !important;
    font-size: inherit !important;
    line-height: 1 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Font Awesome 6 Free (Solid Icons) */
.elementor-social-icon i.fas,
.elementor-social-icon i.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Font Awesome 6 Brands (Brand Icons) */
.elementor-social-icon i.fab,
.elementor-social-icon i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Font Awesome 6 Regular */
.elementor-social-icon i.far,
.elementor-social-icon i.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Fallback für ältere Font Awesome Versionen */
.elementor-social-icon i[class*="fa-"] {
    font-family: FontAwesome, "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.elementor-social-icons-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.elementor-social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    box-sizing: border-box;
    min-width: 1em;
    min-height: 1em;
}

/* Stelle sicher dass Padding den Content nicht beeinflusst */
.elementor-social-icon > * {
    flex-shrink: 0;
    max-width: 100%;
    max-height: 100%;
}

/* Icons dürfen nicht aus der Kachel rausragen */
.elementor-social-icon i,
.elementor-social-icon svg,
.elementor-social-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Icon Styling */
.elementor-social-icon i {
    transition: all 0.3s ease;
    display: inline-block !important;
    line-height: 1 !important;
    font-style: normal !important;
    vertical-align: middle;
    color: inherit;
    width: 1em;
    height: 1em;
}

.elementor-social-icon svg {
    transition: all 0.3s ease;
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    vertical-align: middle;
    fill: currentColor !important;
    max-width: 100%;
    max-height: 100%;
}

/* SVG Kinder-Elemente (path, circle, etc.) */
.elementor-social-icon svg * {
    fill: inherit !important;
}

/* Entferne feste fill/stroke Attribute aus SVGs */
.elementor-social-icon svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.elementor-social-icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.elementor-social-icon img {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    object-fit: contain;
    vertical-align: middle;
}

/* Spezifische Icon Klassen */
.elementor-social-font-icon {
    font-size: inherit !important;
    line-height: inherit !important;
}

.elementor-social-svg {
    width: 1em !important;
    height: 1em !important;
    max-width: 100%;
    max-height: 100%;
}

/* Fix für Elementor Icons Manager Output */
.elementor-social-icon .e-font-icon-svg {
    width: 1em !important;
    height: 1em !important;
    display: inline-block;
}

/* SVG uploads aus Media Library */
.elementor-social-icon svg[class*="attachment"] {
    width: 1em !important;
    height: 1em !important;
}

/* Ensure icons are visible */
.elementor-social-icon i:before,
.elementor-social-icon svg,
.elementor-social-icon img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force icon display even if hidden by other CSS */
.elementor-social-icon i {
    content: normal !important;
}

.elementor-social-icon i:before {
    display: inline-block !important;
    font-family: inherit !important;
}

/* Screen Reader Only */
.elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Formen */
.elementor-shape-square .elementor-social-icon {
    border-radius: 0;
}

.elementor-shape-rounded .elementor-social-icon {
    border-radius: 8px;
}

.elementor-shape-circle .elementor-social-icon {
    border-radius: 50%;
}

/* Hover Effekte */
.elementor-social-icon:hover {
    transform: translateY(-2px);
}

/* Elementor Animations */
.elementor-animation-grow:hover {
    transform: scale(1.1);
}

.elementor-animation-shrink:hover {
    transform: scale(0.9);
}

.elementor-animation-pulse {
    animation: pulse 1s infinite;
}

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

.elementor-animation-buzz:hover {
    animation: buzz 0.15s linear 3;
}

@keyframes buzz {
    50% {
        transform: translateX(3px) rotate(2deg);
    }
    100% {
        transform: translateX(-3px) rotate(-2deg);
    }
}

.elementor-animation-float:hover {
    animation: float 1s ease-in-out infinite;
}

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

.elementor-animation-sink:hover {
    animation: sink 0.5s forwards;
}

@keyframes sink {
    100% {
        transform: translateY(8px);
    }
}

.elementor-animation-bob:hover {
    animation: bob 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .elementor-social-icons-wrapper {
        justify-content: center;
    }
    
    /* Touch-optimiert für Mobile */
    .elementor-social-icon {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Active State (beim Antippen) */
    .elementor-social-icon:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Touch Devices - Hover Simulation */
@media (hover: none) and (pointer: coarse) {
    /* Auf Touch-Geräten: :active statt :hover */
    .elementor-social-icon:active {
        opacity: 0.9;
    }
}

/* Elementor Editor Fixes */
.elementor-editor-active .elementor-social-icon i,
.elementor-editor-active .elementor-social-icon svg,
.elementor-editor-active .elementor-social-icon img {
    font-size: inherit !important;
    width: 1em !important;
    height: 1em !important;
}

/* Elementor Preview Fixes */
.elementor-element.elementor-widget-acf-social-icons .elementor-social-icon {
    font-size: inherit;
}

.elementor-element.elementor-widget-acf-social-icons .elementor-social-icon i {
    font-size: 1em !important;
}

.elementor-element.elementor-widget-acf-social-icons .elementor-social-icon svg {
    width: 1em !important;
    height: 1em !important;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .elementor-social-icon {
        /* Kann bei Bedarf angepasst werden */
    }
}

/* Brand Colors - Standardfarben für bekannte Social Media Plattformen */
.elementor-social-icon-facebook,
.elementor-social-icon-facebook-f {
    background-color: #1877f2 !important;
}

.elementor-social-icon-twitter,
.elementor-social-icon-x-twitter {
    background-color: #000000 !important;
}

.elementor-social-icon-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.elementor-social-icon-linkedin,
.elementor-social-icon-linkedin-in {
    background-color: #0077b5 !important;
}

.elementor-social-icon-youtube {
    background-color: #ff0000 !important;
}

.elementor-social-icon-pinterest,
.elementor-social-icon-pinterest-p {
    background-color: #bd081c !important;
}

.elementor-social-icon-whatsapp {
    background-color: #25d366 !important;
}

.elementor-social-icon-tiktok {
    background-color: #000000 !important;
}

.elementor-social-icon-snapchat {
    background-color: #fffc00 !important;
    color: #000000 !important;
}

.elementor-social-icon-reddit {
    background-color: #ff4500 !important;
}

.elementor-social-icon-tumblr {
    background-color: #35465c !important;
}

.elementor-social-icon-spotify {
    background-color: #1db954 !important;
}

.elementor-social-icon-soundcloud {
    background-color: #ff5500 !important;
}

.elementor-social-icon-twitch {
    background-color: #9146ff !important;
}

.elementor-social-icon-discord {
    background-color: #5865f2 !important;
}

.elementor-social-icon-github {
    background-color: #333333 !important;
}

.elementor-social-icon-gitlab {
    background-color: #fc6d26 !important;
}

.elementor-social-icon-behance {
    background-color: #1769ff !important;
}

.elementor-social-icon-dribbble {
    background-color: #ea4c89 !important;
}

.elementor-social-icon-vimeo {
    background-color: #1ab7ea !important;
}

.elementor-social-icon-xing {
    background-color: #026466 !important;
}

.elementor-social-icon-amazon {
    background-color: #ff9900 !important;
}

.elementor-social-icon-telegram {
    background-color: #0088cc !important;
}

.elementor-social-icon-envelope {
    background-color: #ea4335 !important;
}

.elementor-social-icon-rss {
    background-color: #ff6600 !important;
}

.elementor-social-icon-phone {
    background-color: #34b7f1 !important;
}
