/**
 * KFV WordPress Fix Stylesheet
 * Füge diese Styles zu deinem Theme hinzu
 */

/* =================================================================================
   CONTAINER & LAYOUT FIXES
   ================================================================================= */

.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =================================================================================
   HERO SECTION - FORCE STYLES
   ================================================================================= */

.kfv-hero-modern {
    background: linear-gradient(135deg, #3B5998 0%, #1B3978 100%) !important;
    min-height: 85vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
    padding: 4rem 0 !important;
}

.kfv-hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.kfv-hero-modern .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.kfv-hero-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px !important;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title,
.kfv-hero-modern h1 {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    font-weight: 800 !important;
    color: white !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 3rem !important;
    line-height: 1.6 !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white !important;
    color: #3B5998 !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn-outline:hover {
    background: white !important;
    color: #3B5998 !important;
}

/* =================================================================================
   STATS SECTION - FORCE STYLES
   ================================================================================= */

.stats-section {
    padding: 5rem 2rem !important;
    background: #F8F9FA !important;
    position: relative;
    margin-top: -50px !important;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
}

.stat-card {
    background: white !important;
    padding: 2.5rem 2rem !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(59, 89, 152, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #E31E24 0%, #F7941D 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #E31E24 0%, #F7941D 100%) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3) !important;
}

.stat-number {
    font-family: 'Poppins', sans-serif !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #3B5998 0%, #1B3978 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
}

.stat-label {
    color: #495057 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

.stat-description {
    color: #6C757D !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
}

/* =================================================================================
   VORSTAND CARDS - HORIZONTAL LAYOUT (SEHR WICHTIG!)
   ================================================================================= */

.kfv-vorstand-card {
    display: grid !important;
    grid-template-columns: 140px 1fr !important;
    gap: 0 !important;
    background: white !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(59, 89, 152, 0.1) !important;
    position: relative !important;
    height: 100% !important;
}

.kfv-vorstand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #E31E24 0%, #F7941D 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kfv-vorstand-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(227, 30, 36, 0.3) !important;
}

.kfv-vorstand-card:hover::before {
    opacity: 1 !important;
}

.kfv-vorstand-image {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #3B5998 0%, #1B3978 100%) !important;
    display: flex !important;
    align-items: flex-start !important;
    padding-top: 1.5rem !important;
}

.kfv-vorstand-image img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%) !important;
    transition: transform 0.4s ease !important;
}

.kfv-vorstand-card:hover .kfv-vorstand-image img {
    transform: scale(1.05) !important;
}

.kfv-vorstand-placeholder {
    width: 100% !important;
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 3rem !important;
    background: linear-gradient(135deg, #3B5998 0%, #1B3978 100%) !important;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%) !important;
}

.kfv-vorstand-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5) 0%, transparent 100%) !important;
}

.kfv-vorstand-position {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: white !important;
    background: linear-gradient(135deg, #E31E24 0%, #F7941D 100%) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3) !important;
    width: fit-content !important;
}

.kfv-vorstand-name {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    position: relative !important;
    padding-left: 1rem !important;
}

.kfv-vorstand-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #E31E24 0%, #F7941D 100%);
    border-radius: 2px;
}

.kfv-vorstand-address {
    font-size: 0.875rem !important;
    color: #6C757D !important;
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
    background: rgba(59, 89, 152, 0.03) !important;
    border-radius: 8px !important;
    border-left: 3px solid #3B5998 !important;
    padding-left: 2.5rem !important;
    position: relative !important;
}

.kfv-vorstand-address i {
    position: absolute !important;
    left: 0.75rem !important;
    top: 0.75rem !important;
    color: #3B5998 !important;
}

.kfv-vorstand-contact {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-top: auto !important;
}

.kfv-contact-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, #3B5998 0%, #5B7BB8 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.2) !important;
    transition: all 0.3s ease !important;
}

.kfv-contact-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(59, 89, 152, 0.3) !important;
    color: white !important;
}

/* =================================================================================
   NEWS CARDS - MODERN STYLE
   ================================================================================= */

.news-section {
    padding: 5rem 2rem !important;
    background: white !important;
}

.news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
}

.kfv-news-card-modern {
    background: white !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(59, 89, 152, 0.1) !important;
    display: grid !important;
    grid-template-rows: 250px 1fr !important;
}

.kfv-news-card-modern:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.kfv-news-card-image {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #3B5998 0%, #1B3978 100%) !important;
}

.kfv-news-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%) !important;
}

.kfv-news-card-modern:hover .kfv-news-card-image img {
    transform: scale(1.1) !important;
}

.kfv-news-category-badge {
    position: absolute !important;
    top: 1.5rem !important;
    left: 1.5rem !important;
    padding: 0.5rem 1rem !important;
    background: linear-gradient(135deg, #E31E24 0%, #F7941D 100%) !important;
    color: white !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3) !important;
    z-index: 10 !important;
}

.news-content {
    padding: 2rem !important;
}

.news-title,
.news-title a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

.news-title a:hover {
    color: #E31E24 !important;
}

/* =================================================================================
   CTA SECTION
   ================================================================================= */

.cta-section {
    padding: 6rem 2rem !important;
    background: linear-gradient(135deg, #3B5998 0%, #1B3978 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

.cta-section h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 1.5rem !important;
}

.cta-section p {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.7 !important;
}

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

@media (max-width: 768px) {
    .kfv-vorstand-card {
        grid-template-columns: 1fr !important;
    }
    
    .kfv-vorstand-image {
        min-height: 200px !important;
    }
    
    .kfv-vorstand-image img,
    .kfv-vorstand-placeholder {
        clip-path: none !important;
        height: 200px !important;
    }
    
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =================================================================================
   WORDPRESS OVERRIDES
   ================================================================================= */

/* Override WordPress default styles */
.site-main article {
    margin-bottom: 0 !important;
}

.entry-content {
    margin-top: 0 !important;
}

/* Fix für Twenty Twenty-Five Theme */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
}

/* =================================================================================
   MODERN FOOTER STYLES
   ================================================================================= */

.kfv-footer-modern {
    background: #212529 !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.kfv-footer-modern h3,
.kfv-footer-modern h4 {
    color: #F7941D !important;
    font-family: 'Poppins', sans-serif !important;
}

.kfv-footer-modern a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.kfv-footer-modern a:hover {
    color: #F7941D !important;
}

.kfv-footer-modern .footer-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.kfv-footer-modern .footer-list li {
    line-height: 2 !important;
}

.kfv-footer-modern .footer-list li::before {
    content: '▸' !important;
    color: #F7941D !important;
    margin-right: 0.5rem !important;
    font-weight: bold !important;
}

.kfv-footer-modern .wp-block-social-links {
    gap: 1rem !important;
}

.kfv-footer-modern .wp-block-social-link {
    background: rgba(247, 148, 29, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.kfv-footer-modern .wp-block-social-link:hover {
    background: #F7941D !important;
    transform: translateY(-4px) !important;
}

.kfv-footer-modern .wp-block-separator {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Footer auf Mobile */
@media (max-width: 768px) {
    .kfv-footer-modern .wp-block-columns {
        display: block !important;
    }
    
    .kfv-footer-modern .wp-block-column {
        margin-bottom: 2rem !important;
    }
}
