/**
 * UF Mega Menu Styles
 * Professionelles Mega Menu mit voller Breite und Animationen
 */

/* === CSS VARIABLEN (Defaults, werden von PHP überschrieben) === */
:root {
    --uf-primary: #020B60;
    --uf-primary-dark: #010847;
    --uf-accent: #A6D30F;
    --uf-accent-hover: #93BC09;
    --uf-header-height: 70px;
    --uf-header-height-scrolled: 56px;
    --uf-header-height-mobile: 60px;
    --uf-container-width: 1320px;
    --uf-mobile-breakpoint: 1024px;
    --uf-overlay-opacity: 0.3;

    /* Neutrals */
    --uf-text-primary: #1a1a1a;
    --uf-text-secondary: #4a5568;
    --uf-text-muted: #718096;
    --uf-border: #e2e8f0;
    --uf-bg-primary: #ffffff;
    --uf-bg-secondary: #f7fafc;
    --uf-bg-hover: #f1f5f9;

    /* Timing */
    --uf-transition-fast: 0.15s ease;
    --uf-transition-normal: 0.25s ease;
    --uf-transition-slow: 0.35s ease;
}

/* === RESET für Menu-Bereich === */
.uf-header *,
.uf-header *::before,
.uf-header *::after,
.uf-mega-dropdown *,
.uf-mega-dropdown *::before,
.uf-mega-dropdown *::after,
.uf-mobile-menu *,
.uf-mobile-menu *::before,
.uf-mobile-menu *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keine Underlines bei Links im gesamten Menu */
.uf-header a,
.uf-header a:hover,
.uf-header a:focus,
.uf-mega-dropdown a,
.uf-mega-dropdown a:hover,
.uf-mega-dropdown a:focus,
.uf-mobile-menu a,
.uf-mobile-menu a:hover,
.uf-mobile-menu a:focus {
    text-decoration: none !important;
}

/* === OVERLAY === */
.uf-mega-overlay {
    position: fixed;
    top: var(--uf-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--uf-transition-normal), visibility var(--uf-transition-normal);
    z-index: 998;
    pointer-events: none;
}

/* Overlay unter Header bei Admin Bar */
.admin-bar .uf-mega-overlay {
    top: calc(var(--uf-header-height) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .uf-mega-overlay {
        top: calc(var(--uf-header-height) + 46px);
    }
}

.uf-mega-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* === HEADER === */
.uf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--uf-header-height);
    background: var(--uf-bg-primary);
    border-bottom: 1px solid var(--uf-border);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

/* Header Shrink beim Scrollen */
.uf-header.is-scrolled {
    height: var(--uf-header-height-scrolled);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* WordPress Admin Bar Korrektur */
.admin-bar .uf-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .uf-header {
        top: 46px;
    }
}

.admin-bar .uf-mega-dropdown {
    top: calc(var(--uf-header-height) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .uf-mega-dropdown {
        top: calc(var(--uf-header-height) + 46px);
    }
}

/* Admin-bar Mobile Menu - wird in Mobile Media Query gesetzt */

.uf-header-container {
    max-width: calc(var(--uf-container-width) + 48px);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Body Padding für Fixed Header - damit Content nicht unter Header verschwindet */
body.uf-mega-menu-active {
    padding-top: var(--uf-header-height) !important;
}

@media screen and (max-width: 1024px) {
    body.uf-mega-menu-active {
        padding-top: var(--uf-header-height-mobile) !important;
    }
}

/* === LOGO === */
.uf-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.uf-logo-image {
    height: var(--uf-logo-height, 28px);
    width: auto;
    transition: height 0.3s ease;
}

/* Logo kleiner beim Scrollen */
.uf-header.is-scrolled .uf-logo-image {
    height: 24px;
}

.uf-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--uf-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.5px;
    transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
}

/* Logo Mark kleiner beim Scrollen */
.uf-header.is-scrolled .uf-logo-mark {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.uf-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--uf-text-primary);
    letter-spacing: -0.02em;
    transition: font-size 0.3s ease;
}

/* Logo Text kleiner beim Scrollen */
.uf-header.is-scrolled .uf-logo-text {
    font-size: 16px;
}

.uf-logo-text span {
    color: var(--uf-accent);
}

/* === NAVIGATION === */
.uf-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}

.uf-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.uf-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.uf-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--uf-text-secondary);
    text-decoration: none;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 6px;
    transition: all var(--uf-transition-fast), padding 0.3s ease, font-size 0.3s ease;
    white-space: nowrap;
}

/* Nav Links kleiner beim Scrollen */
.uf-header.is-scrolled .uf-nav-link {
    padding: 6px 10px;
    font-size: 14px !important;
}

.uf-nav-link:hover {
    color: var(--uf-text-primary);
}

.uf-nav-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: transform var(--uf-transition-normal), opacity var(--uf-transition-fast);
}

.uf-nav-item.has-dropdown.is-active .uf-nav-chevron {
    transform: rotate(-180deg);
    opacity: 1;
}

/* Animierte Accent Border unter aktivem Menu Item - exakt auf Header Border */
.uf-nav-item.has-dropdown::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--uf-accent);
    transition: width 0.3s ease;
    z-index: 10;
}

.uf-nav-item.has-dropdown.is-active::after {
    width: 100%;
}

/* === MEGA DROPDOWN - VOLLE BREITE === */
.uf-mega-dropdown {
    position: fixed;
    top: var(--uf-header-height);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--uf-bg-primary);
    border-bottom: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

/* Nur bei Klick (is-active) öffnen */
.uf-nav-item.has-dropdown.is-active .uf-mega-dropdown {
    max-height: 80vh;
}

/* Scrollbar erst nach Animation zeigen */
.uf-mega-dropdown::-webkit-scrollbar {
    width: 6px;
}

.uf-mega-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.uf-mega-dropdown::-webkit-scrollbar-thumb {
    background: var(--uf-border);
    border-radius: 3px;
}

.uf-mega-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--uf-text-muted);
}

/* Content Fade Animation */
.uf-mega-dropdown .uf-mega-content,
.uf-mega-dropdown .uf-mega-footer {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease 0.18s, transform 0.35s ease 0.18s;
}

.uf-nav-item.has-dropdown.is-active .uf-mega-dropdown .uf-mega-content,
.uf-nav-item.has-dropdown.is-active .uf-mega-dropdown .uf-mega-footer {
    opacity: 1;
    transform: translateY(0);
}

/* === MEGA CONTENT === */
.uf-mega-content {
    max-width: calc(var(--uf-container-width) + 48px);
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* === SPALTEN BREITEN === */
/* Gap ist 40px, bei 4 Spalten = 3 Gaps = 120px, bei 3 Spalten = 2 Gaps = 80px */
.uf-mega-col-20 { flex: 0 0 calc(20% - 32px); max-width: calc(20% - 32px); }
.uf-mega-col-25 { flex: 0 0 calc(25% - 30px); max-width: calc(25% - 30px); }
.uf-mega-col-33 { flex: 0 0 calc(33.333% - 26.67px); max-width: calc(33.333% - 26.67px); }
.uf-mega-col-40 { flex: 0 0 calc(40% - 24px); max-width: calc(40% - 24px); }
.uf-mega-col-50 { flex: 0 0 calc(50% - 20px); max-width: calc(50% - 20px); }
.uf-mega-col-66 { flex: 0 0 calc(66.666% - 13.33px); max-width: calc(66.666% - 13.33px); }
.uf-mega-col-75 { flex: 0 0 calc(75% - 10px); max-width: calc(75% - 10px); }
.uf-mega-col-100 { flex: 0 0 100%; max-width: 100%; }

/* === COLUMN TITLE === */
.uf-mega-column-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--uf-text-muted) !important;
    margin: 0 0 20px 0 !important;
    padding: 0 0 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--uf-border) !important;
    line-height: 1.4 !important;
}

h3.uf-mega-column-title {
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* === MEGA LIST === */
.uf-mega-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* === MEGA ITEM === */
.uf-mega-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    margin: 0 -8px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all var(--uf-transition-fast);
}

.uf-mega-item:hover {
    background: var(--uf-bg-hover);
    text-decoration: none !important;
}

/* === ITEM ICON === */
.uf-item-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity var(--uf-transition-fast);
}

.uf-mega-item:hover .uf-item-icon {
    opacity: 0.7;
}

.uf-item-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* === ITEM CONTENT === */
.uf-item-content {
    flex: 1;
    min-width: 0;
}

.uf-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--uf-text-primary);
    margin-bottom: 2px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.uf-item-title-text {
    flex: 1;
    min-width: 0;
}

.uf-item-title .uf-badge {
    flex-shrink: 0;
    margin-left: auto;
}

.uf-item-desc {
    font-size: 13px;
    color: var(--uf-text-muted);
    line-height: 1.4;
}

/* === BADGES === */
.uf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    margin-left: 8px;
    color: white;
}

/* Badge mit Icon (KI, Hot) - weniger padding links */
.uf-badge-ki,
.uf-badge-hot {
    padding: 3px 10px 3px 3px;
}

.uf-badge-new {
    background: #16a34a;
}

.uf-badge-pro {
    background: #2563eb;
}

.uf-badge-hot {
    background: #dc2626;
}

.uf-badge-custom {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 3px 10px;
}

.uf-badge-ki {
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #3B82F6, #8B5CF6);
    background-size: 300% 100%;
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.25), 0 0 8px rgba(236, 72, 153, 0.15);
    animation: ki-gradient 4s ease infinite, ki-glow 3s ease-in-out infinite alternate;
}

@keyframes ki-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes ki-glow {
    0% {
        box-shadow: 0 0 4px rgba(139, 92, 246, 0.25), 0 0 8px rgba(236, 72, 153, 0.15);
    }
    100% {
        box-shadow: 0 0 6px rgba(139, 92, 246, 0.35), 0 0 12px rgba(236, 72, 153, 0.25);
    }
}

.uf-badge svg {
    width: 14px;
    height: 14px;
    color: white;
}

.uf-badge-icon {
    width: 18px;
    height: 18px;
    padding: 3px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

/* === HIGHLIGHT STYLES (Button-Style) === */
.uf-mega-item.uf-highlight-accent {
    background: var(--uf-accent);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px -8px;
}

.uf-mega-item.uf-highlight-accent:hover {
    background: var(--uf-accent-hover);
}

.uf-mega-item.uf-highlight-accent .uf-item-icon,
.uf-mega-item.uf-highlight-accent .uf-item-title,
.uf-mega-item.uf-highlight-accent .uf-item-desc {
    color: white;
    opacity: 1;
}

.uf-mega-item.uf-highlight-accent .uf-item-icon {
    opacity: 0.9;
}

.uf-mega-item.uf-highlight-primary {
    background: var(--uf-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px -8px;
}

.uf-mega-item.uf-highlight-primary:hover {
    background: var(--uf-primary-dark);
}

.uf-mega-item.uf-highlight-primary .uf-item-icon,
.uf-mega-item.uf-highlight-primary .uf-item-title,
.uf-mega-item.uf-highlight-primary .uf-item-desc {
    color: white;
    opacity: 1;
}

.uf-mega-item.uf-highlight-primary .uf-item-icon {
    opacity: 0.9;
}

.uf-mega-item.uf-highlight-urgent {
    background: #dc2626;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px -8px;
}

.uf-mega-item.uf-highlight-urgent:hover {
    background: #b91c1c;
}

.uf-mega-item.uf-highlight-urgent .uf-item-icon,
.uf-mega-item.uf-highlight-urgent .uf-item-title,
.uf-mega-item.uf-highlight-urgent .uf-item-desc {
    color: white;
    opacity: 1;
}

.uf-mega-item.uf-highlight-urgent .uf-item-icon {
    opacity: 0.9;
}

/* === FEATURE CARD === */
.uf-feature-card {
    border-radius: 8px;
    padding: 28px;
    color: white;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.uf-feature-bg-primary {
    background: linear-gradient(135deg, var(--uf-primary) 0%, var(--uf-primary-dark) 100%);
}

.uf-feature-bg-accent {
    background: linear-gradient(135deg, var(--uf-accent) 0%, var(--uf-accent-hover) 100%);
}

.uf-feature-bg-purple {
    background: linear-gradient(135deg, var(--uf-purple) 0%, var(--uf-purple-dark) 100%);
}

.uf-feature-bg-custom1 {
    background: linear-gradient(135deg, var(--uf-custom1) 0%, var(--uf-custom1-dark) 100%);
}

.uf-feature-bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Text Farben für Feature Cards */
.uf-feature-card.uf-feature-text-dark {
    color: var(--uf-text-primary);
}

.uf-feature-card.uf-feature-text-dark .uf-feature-cta {
    background: var(--uf-primary);
    color: white;
}

.uf-feature-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.02em !important;
    color: var(--uf-purple) !important;
}

.uf-feature-desc {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 20px;
}

.uf-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--uf-primary);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--uf-transition-fast);
    align-self: flex-start;
}

.uf-feature-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.uf-feature-bg-accent .uf-feature-cta {
    background: var(--uf-primary);
    color: white;
}

/* === IMAGE CARD === */
.uf-image-card {
    background: var(--uf-bg-secondary);
    border: 1px solid var(--uf-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--uf-transition-fast);
}

.uf-image-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.uf-image-card-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--uf-bg-hover);
}

.uf-image-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uf-image-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--uf-text-primary);
    margin-bottom: 8px;
}

.uf-image-card-desc {
    font-size: 13px;
    color: var(--uf-text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.uf-image-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--uf-primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all var(--uf-transition-fast);
}

.uf-image-card-link:hover {
    gap: 8px;
}

/* === CUSTOM BOX === */
.uf-custom-box {
    padding: 20px;
    background: var(--uf-bg-secondary);
    border: 1px solid var(--uf-border);
    border-radius: 8px;
    height: 100%;
}

.uf-custom-box-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--uf-text-primary);
    margin-bottom: 8px;
}

.uf-custom-box-text {
    font-size: 13px;
    color: var(--uf-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.uf-custom-box-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--uf-primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.uf-custom-box-link:hover {
    color: var(--uf-accent);
}

/* === REFERENZEN CARDS === */
.uf-referenz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.uf-referenz-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--uf-border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all var(--uf-transition-fast);
}

.uf-referenz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--uf-primary);
}

.uf-referenz-image {
    height: 100px;
    background-size: cover;
    background-position: center top;
}

.uf-referenz-content {
    padding: 12px;
}

.uf-referenz-logo {
    max-height: 28px;
    max-width: 100%;
    margin-bottom: 6px;
}

.uf-referenz-company {
    font-size: 13px;
    font-weight: 600;
    color: var(--uf-text-primary);
    display: block;
    margin-bottom: 4px;
}

.uf-referenz-desc {
    font-size: 12px;
    color: var(--uf-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* === CASE STUDY CARDS === */
.uf-case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.uf-case-study-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    border: 1px solid var(--uf-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--uf-transition-fast);
    position: relative;
}

.uf-case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E2A9F1 0%, #E2A9F1 100%);
    border-radius: 12px 12px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.uf-case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.uf-case-study-card:hover::before {
    transform: scaleX(1);
}

.uf-case-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--uf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--uf-border);
}

.uf-case-logo {
    max-height: 36px;
    max-width: 100%;
    margin-bottom: 16px;
}

.uf-case-metric {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E2A9F1;
    margin-bottom: 8px;
}

.uf-case-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--uf-primary);
    line-height: 1.4;
    flex-grow: 1;
    margin-bottom: 12px;
}

.uf-case-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--uf-primary);
    transition: color var(--uf-transition-fast);
}

.uf-case-study-card:hover .uf-case-cta {
    color: var(--uf-accent);
}

/* === FEATURED SHOWCASE (Use Case Card Style) === */
.uf-showcase-grid {
    display: grid;
    gap: 16px;
}

.uf-showcase-cols-1 {
    grid-template-columns: 1fr;
}

.uf-showcase-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.uf-showcase-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: white;
    border: 1px solid var(--uf-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.uf-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E2A9F1 0%, #E2A9F1 100%);
    border-radius: 8px 8px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.uf-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

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

.uf-showcase-badge {
    font-size: 9px;
    font-weight: 600;
    color: var(--uf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--uf-border);
}


.uf-showcase-metric {
    font-size: 18px;
    font-weight: 700;
    color: #E2A9F1;
    margin-bottom: 4px;
    line-height: 1.2;
}

.uf-showcase-tagline {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--uf-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    flex-grow: 1;
}

.uf-showcase-meta {
    margin-bottom: 8px;
}

.uf-showcase-industry {
    font-size: 10px;
    color: var(--uf-text-muted);
    background: var(--uf-bg-secondary);
    padding: 2px 6px;
    border-radius: 10px;
}

.uf-showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.uf-showcase-cta {
    font-size: 11px;
    font-weight: 600;
    color: var(--uf-primary);
    transition: color 0.3s ease;
}

.uf-showcase-card:hover .uf-showcase-cta {
    color: var(--uf-accent);
}

.uf-showcase-logo-small {
    max-height: 18px;
    max-width: 60px;
    width: auto;
    opacity: 0.6;
}

/* === PROMO CARD (in Spalten-Gruppe) === */
.uf-promo-card {
    position: relative;
    margin-top: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.uf-promo-card:first-of-type {
    margin-top: 16px;
}

.uf-promo-card:last-child {
    margin-bottom: 0;
}

/* Titel + Badge nebeneinander */
.uf-promo-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.uf-promo-title-row .uf-promo-title {
    margin-bottom: 0;
}

/* Promo Card als Link */
a.uf-promo-card {
    display: block;
    text-decoration: none;
    transition: transform var(--uf-transition-fast), box-shadow var(--uf-transition-fast);
}

a.uf-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.uf-promo-post {
    background: var(--uf-primary);
    border: none;
}

/* Header mit Kategorie + Titel über dem Bild */
.uf-promo-header {
    padding: 12px;
}

.uf-promo-category {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--uf-primary);
    background: rgba(2, 11, 96, 0.08);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

/* Bild mit Overlay */
.uf-promo-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.uf-promo-image {
    aspect-ratio: 16/9;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

a.uf-promo-card:hover .uf-promo-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.uf-promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 14px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: padding-bottom 0.3s ease;
}

a.uf-promo-card:hover .uf-promo-overlay {
    padding-bottom: 18px;
}

.uf-promo-overlay .uf-promo-category {
    background: rgba(255,255,255,0.2);
    color: white;
    width: auto;
    transition: background 0.3s ease;
}

a.uf-promo-card:hover .uf-promo-overlay .uf-promo-category {
    background: rgba(255,255,255,0.35);
}

.uf-promo-overlay .uf-promo-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.uf-promo-content {
    padding: 12px;
}

.uf-promo-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--uf-text-primary);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Promo Post mit blauem Hintergrund - weiße Texte */
.uf-promo-post .uf-promo-content {
    padding: 16px;
}

.uf-promo-post .uf-promo-title {
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}

.uf-promo-post .uf-promo-category {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    margin-bottom: 8px;
}

.uf-promo-header .uf-promo-title {
    font-size: 13px;
    line-height: 1.4;
}

.uf-promo-cta {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--uf-primary);
    text-decoration: none;
    transition: color var(--uf-transition-fast);
}

/* Promo Post CTA ist grün */
.uf-promo-post .uf-promo-cta {
    color: var(--uf-accent);
    font-size: 13px;
}

a.uf-promo-card:hover .uf-promo-cta {
    color: var(--uf-accent);
}

.uf-promo-post:hover .uf-promo-cta {
    color: white;
}

/* Feature Style Promo */
.uf-promo-feature {
    border: none;
}

.uf-promo-feature .uf-promo-content {
    padding: 16px;
}

.uf-promo-feature .uf-promo-title,
.uf-promo-feature .uf-promo-cta {
    color: white;
}

.uf-promo-feature .uf-promo-cta:hover {
    opacity: 0.8;
}

.uf-promo-bg-primary {
    background: var(--uf-gradient-primary);
}

.uf-promo-bg-accent {
    background: var(--uf-gradient-accent);
}

.uf-promo-bg-purple {
    background: var(--uf-gradient-purple);
}

/* === STATS BOX === */
.uf-stats-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: var(--uf-bg-secondary);
    border-radius: 12px;
    height: 100%;
}

.uf-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.uf-stat-icon {
    color: var(--uf-primary);
    margin-bottom: 2px;
}

.uf-stat-icon svg {
    width: 14px;
    height: 14px;
}

.uf-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uf-primary);
    line-height: 1;
}

.uf-stat-label {
    font-size: 12px;
    color: var(--uf-text-muted);
    font-weight: 500;
}

/* === TOOLS SHOWCASE === */
.uf-tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uf-tool-card {
    display: block;
    padding: 12px 14px;
    background: var(--uf-bg-secondary);
    border: 1px solid var(--uf-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.uf-tool-card:hover {
    background: white;
    border-color: var(--uf-primary);
    box-shadow: 0 4px 12px rgba(2, 11, 96, 0.1);
    transform: translateY(-2px);
}

.uf-tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uf-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--uf-primary) 0%, #4338ca 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.uf-tool-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.uf-tool-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--uf-text-primary);
    flex-grow: 1;
}

.uf-tool-badge {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 6px;
    border-radius: 4px;
    color: white;
}

.uf-tool-badge-new {
    background: #16a34a;
}

.uf-tool-badge-beta {
    background: #f59e0b;
}

.uf-tool-badge-free {
    background: var(--uf-primary);
}

.uf-tool-badge-pro {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

.uf-tool-desc {
    margin: 6px 0 0 42px;
    font-size: 11px;
    color: var(--uf-text-muted);
    line-height: 1.4;
}

.uf-tools-button {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--uf-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.uf-tools-button:hover {
    color: var(--uf-accent);
}

/* === MEGA FOOTER === */
.uf-mega-footer {
    background: var(--uf-bg-secondary);
    border-top: 1px solid var(--uf-border);
    padding: 16px 24px;
}

.uf-mega-footer-inner {
    max-width: calc(var(--uf-container-width) + 48px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.uf-mega-footer-left,
.uf-mega-footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.uf-mega-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uf-mega-footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uf-text-muted);
}

.uf-mega-footer-icon svg {
    width: 16px;
    height: 16px;
}

.uf-mega-footer-text {
    font-size: 13px;
    color: var(--uf-text-secondary);
}

.uf-mega-footer-link {
    font-size: 13px;
    color: var(--uf-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--uf-transition-fast);
}

.uf-mega-footer-link:hover {
    color: var(--uf-accent);
}

/* === HEADER ACTIONS === */
.uf-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* === BUTTONS === */
.uf-btn {
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--uf-transition-fast), padding 0.3s ease, font-size 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

/* Buttons kleiner beim Scrollen */
.uf-header.is-scrolled .uf-btn {
    padding: 10px 20px;
    font-size: 13px;
}

.uf-btn-text {
    color: var(--uf-text-secondary);
    background: transparent;
}

.uf-btn-text:hover {
    color: var(--uf-text-primary);
}

.uf-btn-outline {
    color: var(--uf-primary);
    background: transparent;
    border: 1px solid var(--uf-primary);
}

.uf-btn-outline:hover {
    background: var(--uf-primary);
    color: white;
}

.uf-btn-primary {
    color: var(--uf-primary);
    background: var(--uf-accent);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(166, 211, 15, 0.4);
    animation: uf-pulse-glow 3s ease-in-out infinite;
}

.uf-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: uf-shine 3s ease-in-out infinite;
}

.uf-btn-primary:hover {
    background: var(--uf-accent-hover);
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(166, 211, 15, 0.5);
    animation: none;
}

@keyframes uf-pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(166, 211, 15, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(166, 211, 15, 0.5);
    }
}

@keyframes uf-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* === MOBILE CTA BUTTON === */
.uf-mobile-cta {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px;
    background: var(--uf-accent);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    /* Gleicher Effekt wie Desktop CTA */
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(166, 211, 15, 0.3);
    animation: uf-pulse-glow 2s ease-in-out infinite;
    width: 44px;
    height: 44px;
}

.uf-mobile-cta span:not(.uf-mobile-cta-slash) {
    display: none;
}

.uf-mobile-cta-dual {
    width: auto;
    padding: 10px 14px;
    border-radius: 9999px;
    gap: 6px;
}

.uf-mobile-cta-slash {
    display: block;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.7;
}

.uf-mobile-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: uf-shine 3s ease-in-out infinite;
}

.uf-mobile-cta:hover {
    background: var(--uf-accent-hover);
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(166, 211, 15, 0.4);
    animation: none;
}

.uf-mobile-cta:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(166, 211, 15, 0.3);
}

.uf-mobile-cta svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.uf-mobile-cta-icon_only {
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.uf-mobile-cta-icon_only svg {
    width: 20px;
    height: 20px;
}

/* === MOBILE TOGGLE === */
.uf-mobile-toggle {
    display: none;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent !important;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    order: -1; /* Hamburger links auf Mobile */
}

.uf-mobile-toggle:hover,
.uf-mobile-toggle:focus,
.uf-mobile-toggle:active {
    background: transparent !important;
    outline: none;
}

.uf-hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.uf-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--uf-text-primary);
    border-radius: 2px;
    transition: all var(--uf-transition-normal);
    transform-origin: center;
}

/* Hamburger Animation */
.uf-mobile-toggle.is-active .uf-hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.uf-mobile-toggle.is-active .uf-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.uf-mobile-toggle.is-active .uf-hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === MOBILE MENU MIT PANEL-NAVIGATION === */
.uf-mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    bottom: 0;
    width: 75%;
    max-width: 400px;
    background: var(--uf-bg-primary);
    z-index: 999;
    overflow: hidden;
    display: none;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease-out, width 0.3s ease-out;
    /* Prevent any scroll issues on mobile */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.uf-mobile-menu.is-active {
    transform: translateX(0);
}

/* Breiteres Menu wenn Submenu offen */
.uf-mobile-menu.is-expanded {
    width: 85%;
    max-width: 440px;
}

/* === MOBILE PANELS === */
.uf-mobile-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--uf-bg-primary);
    transform: translateX(100%);
    transition: transform 0.4s ease-out, opacity 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.uf-mobile-panel-main {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.uf-mobile-panel.is-active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.uf-mobile-panel-main.is-hidden {
    transform: translateX(-30%);
    opacity: 0.3;
}

/* Panel Header mit Zurück-Button */
.uf-mobile-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--uf-border);
    background: var(--uf-bg-primary);
    z-index: 10;
}

.uf-mobile-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    background: var(--uf-bg-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--uf-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.uf-mobile-back:hover {
    background: var(--uf-bg-tertiary);
}

.uf-mobile-back svg {
    width: 18px;
    height: 18px;
    color: var(--uf-text-secondary);
}

.uf-mobile-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--uf-text-primary);
}

/* Panel Title als Link - klickbar */
a.uf-mobile-panel-title {
    text-decoration: none;
    transition: color 0.2s ease;
}

a.uf-mobile-panel-title:hover,
a.uf-mobile-panel-title:active {
    color: var(--uf-accent);
}

/* Panel Content */
.uf-mobile-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Panel Footer (sticky) */
.uf-mobile-panel-footer {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: var(--uf-bg-secondary);
    border-top: 1px solid var(--uf-border);
    padding: 16px 20px;
}

/* Content Fade Animation für Panel-Inhalte */
.uf-mobile-panel-sub .uf-mobile-panel-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}

.uf-mobile-panel-sub.is-active .uf-mobile-panel-content {
    opacity: 1;
    transform: translateY(0);
}

/* === MOBILE NAV (Hauptmenü) === */
.uf-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uf-mobile-nav-item {
    border-bottom: 1px solid var(--uf-border);
}

.uf-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    color: var(--uf-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.uf-mobile-nav-link span {
    flex: 1;
}

.uf-mobile-chevron {
    width: 20px;
    height: 20px;
    color: var(--uf-text-muted);
    transition: transform 0.2s ease;
}

.uf-mobile-nav-link:hover .uf-mobile-chevron,
.uf-mobile-nav-link:active .uf-mobile-chevron {
    transform: translateX(4px);
    color: var(--uf-primary);
}

/* Kein Hover-Background auf Mobile Parent Items */
.uf-mobile-nav-link:hover,
.uf-mobile-nav-link:active,
.uf-mobile-nav-link:focus {
    background: transparent;
}

/* Mobile Actions - Button Container am Ende des Mobile Menus */
.uf-mobile-actions {
    padding: 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--uf-bg-secondary);
    border-top: 1px solid var(--uf-border);
    position: sticky;
    bottom: 0;
}

.uf-btn-block {
    width: 100%;
}

/* === MOBILE MEGA CONTENT STYLES === */
/* Mobile verwendet die gleichen Desktop-Klassen für konsistentes Aussehen */

.uf-mobile-section {
    margin-bottom: 20px;
}

.uf-mobile-section:last-child {
    margin-bottom: 0;
}

/* Mobile Section Title - wie Desktop Column Title */
.uf-mobile-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--uf-text-muted);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--uf-border);
}

/* Mobile Mega List - wie Desktop */
.uf-mobile-panel-content .uf-mega-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile Mega Item - wie Desktop */
.uf-mobile-panel-content .uf-mega-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    margin: 0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all var(--uf-transition-fast);
}

.uf-mobile-panel-content .uf-mega-item:hover,
.uf-mobile-panel-content .uf-mega-item:active {
    background: var(--uf-bg-hover);
}

/* Mobile Item Icon - wie Desktop */
.uf-mobile-panel-content .uf-item-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.4;
}

.uf-mobile-panel-content .uf-item-icon svg {
    width: 20px;
    height: 20px;
}

/* Mobile Item Content - wie Desktop */
.uf-mobile-panel-content .uf-item-content {
    flex: 1;
    min-width: 0;
}

.uf-mobile-panel-content .uf-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--uf-text-primary);
    margin-bottom: 2px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.uf-mobile-panel-content .uf-item-desc {
    font-size: 13px;
    color: var(--uf-text-muted);
    line-height: 1.4;
}

/* Mobile Highlight Styles - exakt wie Desktop */
.uf-mobile-panel-content .uf-mega-item.uf-highlight-accent {
    background: var(--uf-accent);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px 0;
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-accent:hover {
    background: var(--uf-accent-hover);
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-accent .uf-item-icon,
.uf-mobile-panel-content .uf-mega-item.uf-highlight-accent .uf-item-title,
.uf-mobile-panel-content .uf-mega-item.uf-highlight-accent .uf-item-desc {
    color: white;
    opacity: 1;
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-primary {
    background: var(--uf-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px 0;
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-primary:hover {
    background: var(--uf-primary-dark);
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-primary .uf-item-icon,
.uf-mobile-panel-content .uf-mega-item.uf-highlight-primary .uf-item-title,
.uf-mobile-panel-content .uf-mega-item.uf-highlight-primary .uf-item-desc {
    color: white;
    opacity: 1;
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-urgent {
    background: #dc2626;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px 0;
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-urgent:hover {
    background: #b91c1c;
}

.uf-mobile-panel-content .uf-mega-item.uf-highlight-urgent .uf-item-icon,
.uf-mobile-panel-content .uf-mega-item.uf-highlight-urgent .uf-item-title,
.uf-mobile-panel-content .uf-mega-item.uf-highlight-urgent .uf-item-desc {
    color: white;
    opacity: 1;
}

/* Mobile Feature Card - exakt wie Desktop */
.uf-mobile-panel-content .uf-feature-card {
    border-radius: 8px;
    padding: 24px;
    color: white;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 16px;
}

.uf-mobile-panel-content .uf-feature-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.02em !important;
}

.uf-mobile-panel-content .uf-feature-desc {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 16px;
}

.uf-mobile-panel-content .uf-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--uf-primary);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--uf-transition-fast);
    align-self: flex-start;
}

.uf-mobile-panel-content .uf-feature-bg-accent .uf-feature-cta {
    background: var(--uf-primary);
    color: white;
}

/* Mobile Image Card - exakt wie Desktop */
.uf-mobile-panel-content .uf-image-card {
    background: var(--uf-bg-secondary);
    border: 1px solid var(--uf-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.uf-mobile-panel-content .uf-image-card-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--uf-bg-hover);
}

.uf-mobile-panel-content .uf-image-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uf-mobile-panel-content .uf-image-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--uf-text-primary);
    margin-bottom: 6px;
}

.uf-mobile-panel-content .uf-image-card-desc {
    font-size: 13px;
    color: var(--uf-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.uf-mobile-panel-content .uf-image-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--uf-primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

/* Mobile Custom Box - exakt wie Desktop */
.uf-mobile-panel-content .uf-custom-box {
    padding: 16px;
    background: var(--uf-bg-secondary);
    border: 1px solid var(--uf-border);
    border-radius: 8px;
    margin-bottom: 16px;
}

.uf-mobile-panel-content .uf-custom-box-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--uf-text-primary);
    margin-bottom: 6px;
}

.uf-mobile-panel-content .uf-custom-box-text {
    font-size: 13px;
    color: var(--uf-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.uf-mobile-panel-content .uf-custom-box-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--uf-primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

/* Mobile Promo Card - erbt Desktop Styles */
.uf-mobile-panel-content .uf-promo-card {
    width: 100%;
    margin-top: 0;
}

/* Mobile Grid Anpassungen - volle Breite, untereinander mit Abstand */
.uf-mobile-panel-content .uf-referenz-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uf-mobile-panel-content .uf-case-study-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uf-mobile-panel-content .uf-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uf-mobile-panel-content .uf-referenz-card,
.uf-mobile-panel-content .uf-case-study-card,
.uf-mobile-panel-content .uf-showcase-card {
    width: 100%;
}

/* Mobile Tools List */
.uf-mobile-panel-content .uf-tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uf-mobile-panel-content .uf-tool-card {
    width: 100%;
}

/* Mobile Stats Box - 2 Spalten */
.uf-mobile-panel-content .uf-stats-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Mobile Footer Items - immer links angeordnet */
.uf-mobile-footer-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.uf-mobile-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uf-mobile-footer-icon {
    color: var(--uf-primary);
    flex-shrink: 0;
}

.uf-mobile-footer-icon svg {
    width: 18px;
    height: 18px;
}

.uf-mobile-footer-text {
    font-size: 13px;
    color: var(--uf-text-secondary);
}

.uf-mobile-footer-link {
    font-size: 13px;
    color: var(--uf-primary);
    text-decoration: none;
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    /* Mobile Header Höhe - NICHT schrumpfen beim Scrollen */
    .uf-header {
        height: var(--uf-header-height-mobile);
    }

    .uf-header.is-scrolled {
        height: var(--uf-header-height-mobile);
        /* Box-Shadow bleibt beim Scrollen */
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    /* Logo Größe auf Mobile */
    .uf-logo-image {
        height: var(--uf-logo-height-mobile, 30px);
        max-width: 160px;
        object-fit: contain;
    }

    /* Logo NICHT verkleinern auf Mobile beim Scrollen */
    .uf-header.is-scrolled .uf-logo-image {
        height: var(--uf-logo-height-mobile, 30px);
    }

    .uf-header.is-scrolled .uf-logo-mark {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .uf-header.is-scrolled .uf-logo-text {
        font-size: 18px;
    }

    /* Buttons NICHT verkleinern auf Mobile */
    .uf-header.is-scrolled .uf-btn {
        padding: 9px 18px;
        font-size: 14px;
    }

    /* Mobile Header Layout: Hamburger links, Logo Mitte, CTA rechts */
    .uf-header-container {
        justify-content: space-between;
    }

    .uf-nav {
        display: none;
    }

    .uf-header-actions {
        display: none;
    }

    .uf-mobile-toggle {
        display: flex;
        order: 1;
        flex: 0 0 auto;
        min-width: 44px;
    }

    .uf-logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: 0 0 auto;
    }

    .uf-mobile-cta {
        display: flex;
        order: 3;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .uf-header-container {
        position: relative;
    }

    .uf-mobile-menu {
        display: block;
        top: 80px;
        bottom: 0;
    }

    .uf-mega-dropdown {
        display: none;
    }

    /* Overlay Position für Mobile */
    .uf-mega-overlay {
        top: var(--uf-header-height-mobile);
    }

    .admin-bar .uf-mobile-menu {
        top: calc(80px + 32px);
    }

    .admin-bar .uf-mega-overlay {
        top: calc(80px + 32px);
    }

    /* Admin Bar auf kleinen Screens ist 46px statt 32px */
    @media screen and (max-width: 782px) {
        .admin-bar .uf-mobile-menu {
            top: calc(80px + 46px);
        }

        .admin-bar .uf-mega-overlay {
            top: calc(80px + 46px);
        }
    }
}

/* Tablet Adjustments */
@media (min-width: 1025px) and (max-width: 1200px) {
    .uf-mega-col-25 { flex: 0 0 calc(33.333% - 21.33px); max-width: calc(33.333% - 21.33px); }
    .uf-mega-col-33 { flex: 0 0 calc(50% - 16px); max-width: calc(50% - 16px); }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .uf-header-container,
    .uf-mega-content {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* === ANIMATIONS === */
@keyframes uf-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes uf-fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* === ACCESSIBILITY === */
.uf-nav-link:focus,
.uf-mega-item:focus,
.uf-btn:focus,
.uf-mobile-nav-link:focus {
    outline: 2px solid var(--uf-accent);
    outline-offset: 2px;
}

/* Skip to content (falls vorhanden) */
.uf-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--uf-primary);
    color: white;
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top var(--uf-transition-fast);
}

.uf-skip-link:focus {
    top: 0;
}

/* === PRINT === */
@media print {
    .uf-header,
    .uf-mega-dropdown,
    .uf-mobile-menu,
    .uf-mega-overlay {
        display: none !important;
    }

    body.uf-mega-menu-active {
        padding-top: 0 !important;
    }
}
