/**
 * KDSI Dark Speaker - Custom CSS
 * @package Kadence_Dark_Speaker_Importer
 * @since   1.0.0
 */

/* 1. GLOBALE GRUNDLAGEN */
html { scroll-behavior: smooth; }
body, .site { background-color: #0B0B0D; }
::selection { background-color: rgba(198, 167, 94, 0.3); color: #F2F2F2; }

/* 2. HEADER & NAVIGATION */
#masthead .header-sticky-shadow { box-shadow: none !important; }

.item-is-fixed:not(.item-at-start):not(.item-hidden-above) #masthead,
.item-is-fixed:not(.item-at-start) .site-header-row-container-inner {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-navigation .header-menu-container > ul > li > a {
    position: relative;
    transition: color 0.3s ease;
}

.header-navigation .header-menu-container > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #C6A75E;
    transition: width 0.3s ease, left 0.3s ease;
}

.header-navigation .header-menu-container > ul > li > a:hover::after,
.header-navigation .header-menu-container > ul > li.current-menu-item > a::after {
    width: 100%;
    left: 0;
}

.site-branding img { transition: max-width 0.3s ease; }

/* 3. TYPOGRAFIE */
h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.entry-content a:not(.wp-block-button__link) {
    color: #C6A75E;
    text-decoration: none;
    border-bottom: 1px solid rgba(198, 167, 94, 0.3);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.entry-content a:not(.wp-block-button__link):hover {
    color: #D4B96E;
    border-bottom-color: #D4B96E;
}

/* 4. BUTTONS */
.wp-block-button__link {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link[style*="background-color:transparent"]:hover {
    background-color: #C6A75E !important;
    color: #0B0B0D !important;
}

.wp-block-button__link[style*="background-color:#C6A75E"]:hover {
    background-color: #D4B96E !important;
    transform: translateY(-1px);
}

/* 5. SEPARATOR */
.wp-block-separator.is-style-wide {
    max-width: 60px !important;
    border: none !important;
    height: 1px;
}

/* 6. COVER BLOCK (Hero) */
.wp-block-cover .wp-block-cover__inner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* 7. SERVICE-KARTEN HOVER */
.wp-block-column[style*="border-top-color:#C6A75E"] {
    transition: transform 0.3s ease;
}

.wp-block-column[style*="border-top-color:#C6A75E"]:hover {
    transform: translateY(-4px);
}

/* THEMEN-ZEILEN HOVER */
.wp-block-group[style*="border-bottom-color:#1A1A1F"] {
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.wp-block-group[style*="border-bottom-color:#1A1A1F"]:hover {
    background-color: rgba(26, 26, 31, 0.4);
    padding-left: 16px;
}

/* 8. MOBILE */
@media screen and (max-width: 768px) {
    .wp-block-group.alignfull[style*="padding-top:160px"] {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    .wp-block-group.alignfull[style*="padding-top:140px"] {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
    .wp-block-group.alignfull[style*="padding-top:180px"] {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}

/* 9. SCROLL-TO-TOP */
#kt-scroll-up {
    border-radius: 0 !important;
    background-color: rgba(198, 167, 94, 0.15) !important;
    border: 1px solid #C6A75E !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease !important;
}

#kt-scroll-up:hover { background-color: #C6A75E !important; }
#kt-scroll-up:hover .kadence-svg-iconset { color: #0B0B0D !important; }

/* 10. ANIMATIONEN */
@keyframes kdsi-fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.kdsi-animate-in {
    animation: kdsi-fade-in-up 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 11. FOOTER */
.site-footer a { transition: color 0.3s ease; }
.site-footer a:hover { color: #C6A75E !important; }

/* 12. MOBILE MENU */
.mobile-navigation .menu > li > a {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid #1A1A1F;
}

.mobile-navigation .menu > li > a:hover { color: #C6A75E; }
