.unternehmer-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Navigation */
.unternehmer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    margin-bottom: 20px !important;
    gap: 15px !important;
}

.unternehmer-header-welcome {
    font-size: 15px !important;
    color: #374151 !important;
    flex-shrink: 0 !important;
    line-height: 1.5 !important;
}

.unternehmer-header-welcome strong {
    color: #111827 !important;
    font-weight: 600 !important;
}

.unternehmer-header-actions {
    display: flex !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.unternehmer-header-btn {
    display: inline-block !important;
    padding: 10px 20px !important;
    background: #111827 !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.unternehmer-header-btn:hover {
    background: #374151 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.unternehmer-logout-btn {
    background: #ef4444 !important;
}

.unternehmer-logout-btn:hover {
    background: #dc2626 !important;
}

/* Hamburger Button - Hidden on Desktop */
.unternehmer-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.unternehmer-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #111827;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .unternehmer-header {
        position: relative;
        margin: 10px !important;
    }
    
    .unternehmer-hamburger {
        display: block !important;
    }
    
    /* Hide actions by default on mobile */
    .unternehmer-header-actions {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column !important;
        gap: 0 !important;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        overflow: hidden;
        z-index: 999;
    }
    
    /* Show menu when active */
    .unternehmer-header-actions.active {
        display: flex !important;
    }
    
    .unternehmer-header-btn {
        width: 100% !important;
        border-radius: 0 !important;
        padding: 15px 20px !important;
        text-align: left !important;
        background: #fff !important;
        color: #111827 !important;
        box-shadow: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .unternehmer-header-btn:last-child {
        border-bottom: none !important;
    }
    
    .unternehmer-header-btn:hover {
        background: #f3f4f6 !important;
        color: #111827 !important;
        transform: none !important;
    }
    
    .unternehmer-logout-btn {
        background: #fef2f2 !important;
        color: #ef4444 !important;
    }
    
    .unternehmer-logout-btn:hover {
        background: #fee2e2 !important;
        color: #dc2626 !important;
    }
    
    /* Hamburger Animation */
    .unternehmer-hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .unternehmer-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .unternehmer-hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}



.unternehmer-search-bar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.unternehmer-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.unternehmer-search-input:focus {
    outline: none;
    border-color: #6b7280;
}

.unternehmer-filter {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.unternehmer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

@media (min-width: 768px) {
    .unternehmer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

@media (min-width: 1024px) {
    .unternehmer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
}

.unternehmer-card {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
    height: 100% !important;
    cursor: pointer !important;
    position: relative !important;
    text-align: center !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.unternehmer-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    transform: translateY(-4px) !important;
}

.unternehmer-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    margin-bottom: 15px !important;
    background: #f3f4f6 !important;
    display: block !important;
}

.unternehmer-member-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #111827;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.unternehmer-firma {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    text-align: center;
}

.unternehmer-branche {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.unternehmer-spezialisierung {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 15px 0;
    font-style: italic;
}

.unternehmer-contact-item {
    font-size: 14px;
    color: #374151;
    margin: 6px 0;
    word-break: break-word;
}

.unternehmer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
}

.unternehmer-phone-icon {
    width: 15px;
    height: 15px;
    color: #111827;
    flex-shrink: 0;
}

.unternehmer-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.unternehmer-page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.unternehmer-page-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.unternehmer-page-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.unternehmer-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.unternehmer-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Registration Form */
.unternehmer-registration {
    max-width: 600px !important;
    margin: 40px auto !important;
    background: #fff !important;
    padding: 30px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.unternehmer-registration * {
    box-sizing: border-box !important;
}

.unternehmer-registration h2 {
    margin: 0 0 25px 0;
    color: #111827;
    font-size: 24px;
}

.unternehmer-form-group {
    margin-bottom: 20px;
}

.unternehmer-form-label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.unternehmer-form-input,
.unternehmer-form-select,
.unternehmer-form-textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.unternehmer-form-input:focus,
.unternehmer-form-select:focus,
.unternehmer-form-textarea:focus {
    outline: none !important;
    border-color: #6b7280 !important;
}

.unternehmer-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.unternehmer-form-file {
    padding: 8px;
}

.unternehmer-submit-btn {
    width: 100%;
    padding: 14px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.unternehmer-submit-btn:hover {
    background: #374151;
}

.unternehmer-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.unternehmer-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.unternehmer-message.success {
    background: #d1fae5;
    color: #065f46;
}

.unternehmer-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   MODAL STYLES - FIXED
   ======================================== */
.unternehmer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.unternehmer-modal.active {
    display: flex;
}

.unternehmer-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 45px 40px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    box-sizing: border-box;
    margin: auto;
}

/* Custom Scrollbar to not overlap border-radius */
.unternehmer-modal-content::-webkit-scrollbar {
    width: 8px;
}

.unternehmer-modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px 0;
}

.unternehmer-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.unternehmer-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.unternehmer-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    z-index: 10;
}

.unternehmer-modal-close:hover {
    background: #e5e7eb;
}

/* Two Column Layout */
.unternehmer-modal-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.unternehmer-modal-left {
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.unternehmer-modal-right {
    min-width: 0;
}

.unternehmer-modal-photo {
    margin-bottom: 20px;
    margin-top: 10px;
}

.unternehmer-modal-photo img {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.unternehmer-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.unternehmer-modal-member-id {
    font-size: 14px;
    color: #fff;
    background: #111827;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 0 0 12px 0;
    font-weight: 500;
    display: inline-block;
}

.unternehmer-modal-branche {
    font-size: 16px;
    color: #374151;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.unternehmer-modal-spezialisierung {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
    margin: 0 0 20px 0;
}

.unternehmer-modal-kurzbeschreibung {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.unternehmer-modal-kurzbeschreibung h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    text-align: left;
}

.unternehmer-modal-kurzbeschreibung p {
    font-size: 12px;
    color: #374151;
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

/* MOBILE: Kurzbeschreibung GRÖßER */
@media (max-width: 768px) {
    .unternehmer-modal-kurzbeschreibung p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    
    .unternehmer-modal-kurzbeschreibung h3 {
        font-size: 15px !important;
    }
    
    /* MODAL INFO GROUPS - ALLE TEXTE GRÖßER */
    .unternehmer-modal-info-group h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .unternehmer-modal-info-group p {
        font-size: 18px !important;
        line-height: 1.6 !important;
        margin-bottom: 14px !important;
    }
    
    .unternehmer-modal-info-group a {
        font-size: 18px !important;
    }
    
    /* MODAL TITLE */
    .unternehmer-modal-title {
        font-size: 24px !important;
    }
    
    /* MODAL PHOTO */
    .unternehmer-modal-photo img {
        width: 160px !important;
        height: 160px !important;
    }
}

/* Right Column - Info Groups */
.unternehmer-modal-right {
    padding-top: 10px;
}

.unternehmer-modal-info-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.unternehmer-modal-info-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.unternehmer-modal-info-group h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
}

.unternehmer-modal-info-group p {
    font-size: 15px;
    color: #374151;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.unternehmer-modal-info-group p:last-child {
    margin-bottom: 0;
}

.unternehmer-modal-info-group a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.unternehmer-modal-info-group a:hover {
    color: #6b7280;
}

.unternehmer-address-line {
    position: relative;
}

.unternehmer-address-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: #111827 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.unternehmer-address-link:hover {
    color: #3b82f6 !important;
}

.unternehmer-location-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.unternehmer-link {
    word-break: break-all;
}

/* Social Media Icons */
.unternehmer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.unternehmer-social-icons .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.unternehmer-social-icons .social-icon:hover {
    transform: translateY(-2px);
}

.unternehmer-social-icons .social-icon svg {
    width: 22px;
    height: 22px;
}

.unternehmer-social-icons .social-icon.linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.unternehmer-social-icons .social-icon.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.unternehmer-social-icons .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.unternehmer-social-icons .social-icon.tiktok:hover {
    background: #000;
    color: #fff;
}

/* Vorzüge Badges */
.unternehmer-vorzuege-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.unternehmer-vorzug-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Registration Form - Vorzüge Checkboxes */
.unternehmer-vorzuege-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.unternehmer-vorzuege-group label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-weight: normal !important;
    margin-bottom: 0 !important;
    color: #111827 !important;
}

.unternehmer-vorzuege-group input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    cursor: pointer;
}

/* Login Styles */
.unternehmer-login-container {
    max-width: 450px !important;
    margin: 40px auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.unternehmer-login-container * {
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    /* Force Flatsome Theme Containers to Full Width ONLY for pages with login/registration */
    .unternehmer-login-container,
    .unternehmer-login-box,
    .unternehmer-registration {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Target parent containers that contain our forms */
    .page-wrapper:has(.unternehmer-login-container),
    .page-wrapper:has(.unternehmer-registration),
    .content-area:has(.unternehmer-login-container),
    .content-area:has(.unternehmer-registration),
    .row-main:has(.unternehmer-login-container),
    .row-main:has(.unternehmer-registration) {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Children of our containers */
    .unternehmer-login-container *,
    .unternehmer-registration * {
        max-width: 100% !important;
    }
    
    .unternehmer-login-container .row,
    .unternehmer-login-container .col,
    .unternehmer-login-container .col-inner,
    .unternehmer-registration .row,
    .unternehmer-registration .col,
    .unternehmer-registration .col-inner {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.unternehmer-login-box {
    background: #fff !important;
    padding: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .unternehmer-login-box {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 25px 20px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
}

.unternehmer-login-box h2 {
    margin: 0 0 25px 0;
    color: #111827;
    font-size: 24px;
    text-align: center;
}

.unternehmer-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #111827 !important;
    font-weight: 400 !important;
}

.unternehmer-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.unternehmer-login-links {
    text-align: center;
    margin-top: 20px;
}

.unternehmer-login-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.unternehmer-login-links a:hover {
    color: #111827;
}

/* Login Required Box */
.unternehmer-login-required {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.unternehmer-login-required h3 {
    margin: 0 0 15px 0;
    color: #111827;
    font-size: 24px;
}

.unternehmer-login-required p {
    margin: 0 0 25px 0;
    color: #6b7280;
    font-size: 16px;
}

.unternehmer-login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.unternehmer-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.unternehmer-btn:hover {
    background: #374151;
    color: #fff;
}

.unternehmer-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.unternehmer-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Einheitliche Button Class für alle Buttons */
.unternehmer-button {
    display: inline-block !important;
    min-width: 109px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 20px !important;
    background: #111827 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.unternehmer-button:hover {
    background: #374151 !important;
    color: #fff !important;
}

.unternehmer-button-secondary {
    background: #6b7280 !important;
    color: #fff !important;
}

.unternehmer-button-secondary:hover {
    background: #4b5563 !important;
    color: #fff !important;
}

/* Registration Form Mobile */
@media (max-width: 768px) {
    .unternehmer-login-required {
        margin: 20px 15px;
        padding: 30px 20px;
    }
    
    .unternehmer-login-required h3 {
        font-size: 20px;
    }
    
    .unternehmer-login-actions {
        flex-direction: column;
    }
    
    .unternehmer-btn {
        width: 100%;
    }
    
    .unternehmer-registration {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 20px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }
    
    /* Force Theme Containers to Full Width for Registration */
    .unternehmer-registration,
    body .unternehmer-registration,
    body div[class*="row"] .unternehmer-registration,
    body div[class*="col"] .unternehmer-registration {
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    .unternehmer-registration .row,
    .unternehmer-registration .col,
    .unternehmer-registration .col-inner,
    .unternehmer-registration .large-12 {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .unternehmer-registration h2 {
        font-size: 20px !important;
    }
    
    .unternehmer-form-input,
    .unternehmer-form-select,
    .unternehmer-form-textarea,
    .unternehmer-form-file {
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        border-radius: 6px !important;
    }
    
    .unternehmer-submit-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
    }
    
    .unternehmer-login-links {
        margin-top: 20px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .unternehmer-modal {
        padding: 0;
    }
    
    .unternehmer-modal-content {
        padding: 80px 20px 80px 20px;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
        min-height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    .unternehmer-modal-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .unternehmer-modal-left {
        padding-top: 0;
    }
    
    .unternehmer-modal-photo img {
        width: 160px !important;
        height: 160px !important;
    }
    
    .unternehmer-modal-title {
        font-size: 24px !important;
    }
    
    .unternehmer-modal-close {
        top: 10px;
        right: -10px;
        position: fixed;
        z-index: 10001;
    }
    
    .unternehmer-modal-section:last-of-type {
        padding-bottom: 40px;
        margin-bottom: 0;
    }
    
    .unternehmer-modal-social-links {
        margin-bottom: 30px;
    }
    
    /* Mobile Grid Full Width */
    .unternehmer-directory {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .unternehmer-search-bar {
        margin: 10px !important;
    }
    
    .unternehmer-grid {
        padding: 0 10px !important;
        gap: 15px !important;
    }
    
    .unternehmer-card {
        margin: 0 !important;
    }
    
    /* Mobile Phone Bigger */
    .unternehmer-phone {
        font-size: 17px !important;
        font-weight: 600 !important;
    }
    
    .unternehmer-phone-icon {
        width: 17px !important;
        height: 17px !important;
    }
}
/* Mein Profil Styles */
.unternehmer-mein-profil {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.unternehmer-mein-profil h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #111827;
}

.unternehmer-profile-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.unternehmer-profile-section:last-of-type {
    border-bottom: none;
}

.unternehmer-profile-section h3 {
    font-size: 20px;
    color: #374151;
    margin: 0 0 20px 0;
}

.unternehmer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .unternehmer-mein-profil {
        margin: 0;
        padding: 20px;
        border-radius: 0;
    }
    
    .unternehmer-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Google Review Button */
.unternehmer-google-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #4285F4;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
}

.unternehmer-google-review-btn:hover {
    background: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.unternehmer-google-review-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .unternehmer-google-review-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        margin-bottom: 20px !important;
    }
}

/* ============================================================================
   HIDE WP ADMIN BAR & THE7 USER PROFILE FOR CUSTOMERS
   ============================================================================ */

/* Hide WordPress Admin Bar completely */
body.mitglied_kunde #wpadminbar,
body.unternehmer_pending #wpadminbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Remove top margin caused by admin bar */
body.mitglied_kunde,
body.unternehmer_pending {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.mitglied_kunde html,
body.unternehmer_pending html {
    margin-top: 0 !important;
}

/* Hide The7 User Profile Icon/Link in header */
.mitglied_kunde .my-account,
.mitglied_kunde .my-account-icon,
.mitglied_kunde .user-account,
.mitglied_kunde .logged-in-account,
.unternehmer_pending .my-account,
.unternehmer_pending .my-account-icon,
.unternehmer_pending .user-account,
.unternehmer_pending .logged-in-account {
    display: none !important;
    visibility: hidden !important;
}

/* Hide The7 specific header elements */
.mitglied_kunde .mini-menu .my-account,
.unternehmer_pending .mini-menu .my-account {
    display: none !important;
}

/* Additional The7 user menu hiding */
.dt-header .mitglied_kunde-menu,
.dt-header .unternehmer_pending-menu {
    display: none !important;
}

/* ============================================================================
   JOB SYSTEM STYLES
   ============================================================================ */

/* Job Erstellen Form */
.unternehmer-job-erstellen {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 30px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.unternehmer-job-erstellen h2 {
    margin-bottom: 20px !important;
    color: #111827 !important;
}

/* Jobs Table */
.unternehmer-jobs-table {
    width: 100% !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border-collapse: collapse !important;
    font-size: 16px !important;
}

.unternehmer-jobs-table thead {
    background: #111827 !important;
    color: white !important;
}

.unternehmer-jobs-table th {
    padding: 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.unternehmer-jobs-table td {
    padding: 15px !important;
    font-size: 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.unternehmer-jobs-table tbody tr:hover {
    background: #f9fafb !important;
}

.unternehmer-jobs-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Job Company Link */
.job-company-link {
    color: #2196F3 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.job-company-link:hover {
    color: #1976D2 !important;
    text-decoration: underline !important;
}

/* Job Title Link (klickbar für Details) */
/* Job Title Link - Desktop subtle */
.job-title-link {
    color: #111827 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.job-title-link:hover {
    color: #2196F3 !important;
    text-decoration: underline !important;
}

/* Mobile: Job Title als Button-Style für klaren CTA */
@media (max-width: 768px) {
    .job-title-link {
        display: block !important;
        width: 100% !important;
        padding: 16px 20px !important;
        margin: 12px 0 !important;
        background: #1e3a8a !important;
        color: white !important;
        text-align: center !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
        font-size: 20px !important;
        text-decoration: none !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
    }
    
    .job-title-link:hover {
        background: #1e40af !important;
        color: white !important;
        text-decoration: none !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.15) !important;
    }
    
    .job-title-link:after {
        content: " – Details ansehen" !important;
        font-size: 14px !important;
        opacity: 0.95 !important;
        font-weight: 600 !important;
        pointer-events: none !important;
    }
}


/* Form Actions - Buttons nebeneinander */
.unternehmer-form-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 20px !important;
    align-items: stretch !important;
}

.unternehmer-form-actions .unternehmer-button {
    flex: 0 0 auto !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Small Button for Table Actions */
.unternehmer-button-small {
    padding: 0 20px !important;
    font-size: 14px !important;
    height: 44px !important;
    line-height: 44px !important;
    min-width: auto !important;
    margin-right: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
}

.unternehmer-button-small:last-child {
    margin-right: 0 !important;
}

/* Actions TD als Inline-Block für perfekte Button-Alignment */
.unternehmer-jobs-table td[data-label="Aktionen"] {
    white-space: nowrap !important;
}

.unternehmer-jobs-table td[data-label="Aktionen"] a,
.unternehmer-jobs-table td[data-label="Aktionen"] button {
    vertical-align: top !important;
}


/* Job Details Modal Content */
.unternehmer-job-details h2 {
    font-size: 24px !important;
}

.unternehmer-job-details h3 {
    font-size: 18px !important;
}

/* Responsive Table - Mobile Cards */
@media (max-width: 768px) {
    .unternehmer-jobs-table {
        display: block !important;
        width: 100% !important;
        box-shadow: none !important;
    }
    
    .unternehmer-jobs-table thead {
        display: none !important;
    }
    
    .unternehmer-jobs-table tbody {
        display: block !important;
        width: 100% !important;
    }
    
    /* CARD LAYOUT - wie auf Mockup */
    .unternehmer-jobs-table tbody tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 20px !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Default für alle TDs */
    .unternehmer-jobs-table td {
        display: block !important;
        text-align: left !important;
        padding: 0 !important;
        border: none !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
    
    /* Label ausblenden */
    .unternehmer-jobs-table td:before {
        display: none !important;
    }
    
    /* UNTERNEHMEN - Oben, groß, fett */
    .unternehmer-jobs-table td[data-label="Unternehmen"] {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        color: #111827 !important;
    }
    
    .unternehmer-jobs-table td[data-label="Unternehmen"] a {
        color: #111827 !important;
        text-decoration: none !important;
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    
    .unternehmer-jobs-table td[data-label="Unternehmen"] a strong {
        font-weight: 700 !important;
    }
    
    .unternehmer-jobs-table td[data-label="Unternehmen"] small {
        font-size: 14px !important;
        color: #6b7280 !important;
        font-weight: 400 !important;
    }
    
    /* ANSPRECHPARTNER - Mit Label */
    .unternehmer-jobs-table td[data-label="Ansprechpartner"] {
        font-size: 15px !important;
        color: #374151 !important;
        margin-bottom: 8px !important;
    }
    
    .unternehmer-jobs-table td[data-label="Ansprechpartner"]:before {
        content: "Ansprechpartner" !important;
        display: block !important;
        font-size: 13px !important;
        color: #6b7280 !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    
    /* ERSTELLT AM - Mit Label, kleiner */
    .unternehmer-jobs-table td[data-label="Erstellt am"] {
        font-size: 14px !important;
        color: #6b7280 !important;
        margin-bottom: 16px !important;
    }
    
    .unternehmer-jobs-table td[data-label="Erstellt am"]:before {
        content: "Erstellt am: " !important;
        display: inline !important;
        font-weight: 600 !important;
    }
    
    /* JOBTITEL - Als Button gestyled */
    .unternehmer-jobs-table td[data-label="Jobtitel"] {
        margin-bottom: 0 !important;
    }
    
    .unternehmer-jobs-table td[data-label="Jobtitel"] a {
        display: block !important;
        background: #5b21b6 !important;
        color: #fff !important;
        padding: 16px 20px !important;
        border-radius: 12px !important;
        text-align: left !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        transition: background 0.2s !important;
        position: relative !important;
    }
    
    .unternehmer-jobs-table td[data-label="Jobtitel"] a:after {
        content: "📄 Details ansehen" !important;
        display: block !important;
        font-size: 14px !important;
        margin-top: 8px !important;
        opacity: 0.9 !important;
    }
    
    .unternehmer-jobs-table td[data-label="Jobtitel"] a:hover {
        background: #6d28d9 !important;
    }
    
    /* Buttons in Mobile Cards - GROSS */
    .unternehmer-button-small {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
        font-size: 14px !important;
        padding: 0 20px !important;
        font-weight: 600 !important;
        height: 44px !important;
        line-height: 44px !important;
        box-sizing: border-box !important;
        border-radius: 25px !important;
        text-align: center !important;
        white-space: nowrap !important;
        text-transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .unternehmer-button-small:last-child {
        margin-bottom: 0 !important;
    }
}


/* Honeypot field - invisible to humans, visible to bots */
.unternehmer-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1 !important;
}

/* Video Play Icon on Card */
.unternehmer-photo-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

.unternehmer-photo-wrapper .unternehmer-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.unternehmer-video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 45px !important;
    height: 45px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.unternehmer-card:hover .unternehmer-video-indicator {
    background: rgba(255, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.unternehmer-play-icon {
    width: 22px !important;
    height: 22px !important;
    color: white;
}

/* Video Player in Modal */
.unternehmer-modal-video {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.unternehmer-video-player {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    display: block;
}

@media (max-width: 768px) {
    .unternehmer-video-player {
        max-height: 300px;
    }
    
    .unternehmer-video-indicator {
        width: 50px;
        height: 50px;
    }
    
    .unternehmer-play-icon {
        width: 25px;
        height: 25px;
    }
    
    /* FIX: Border-radius für mobile Cards - STARK ERZWUNGEN! */
    .unternehmer-card {
        border-radius: 12px !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
        overflow: hidden !important;
        -webkit-border-radius: 12px !important;
    }
    
    .unternehmer-photo {
        border-radius: 8px !important;
        -webkit-border-radius: 8px !important;
    }
    
    /* Verhindere dass Kinder die Ecken überschreiben */
    .unternehmer-card > *:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* =====================================================
   MEDIA SLIDER IN MODAL
   ===================================================== */

.unternehmer-media-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.unternehmer-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.unternehmer-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.unternehmer-slide.active {
    display: block;
}

.unternehmer-slide img,
.unternehmer-slide video {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    background: #000;
    border-radius: 8px;
}

/* Video iframe wrapper for YouTube/Vimeo */
.unternehmer-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.unternehmer-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Slider Navigation Buttons */
.unternehmer-slider-prev,
.unternehmer-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 14px;
    width: 25px !important;
    height: 25px !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unternehmer-slider-prev:hover,
.unternehmer-slider-next:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.15);
}

.unternehmer-slider-prev {
    left: 8px !important; /* LINKER BUTTON */
}

.unternehmer-slider-next {
    right: 2px !important; /* RECHTER BUTTON: GANZ NAH AM RAND! */
}

/* Slider Dots */
.unternehmer-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.unternehmer-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.unternehmer-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.unternehmer-dot.active {
    background: rgba(255, 0, 0, 0.9);
    border-color: white;
    transform: scale(1.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .unternehmer-slide img,
    .unternehmer-slide video {
        max-height: 400px;
        object-fit: contain;
    }
    
    .unternehmer-video-wrapper {
        height: 400px;
        max-height: 400px;
    }
    
    .unternehmer-slider-prev,
    .unternehmer-slider-next {
        width: 25px !important;
        height: 25px !important;
        font-size: 14px !important;
    }
    
    .unternehmer-slider-prev {
        left: 5px !important;
    }
    
    .unternehmer-slider-next {
        right: 2px !important;
    }
    
    .unternehmer-slider-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .unternehmer-dot {
        width: 10px;
        height: 10px;
    }
}

/* =====================================================
   FINAL FIX: Border-Radius für Mobile Cards
   Diese Regel kommt als LETZTE und überschreibt alles!
   ===================================================== */
@media (max-width: 768px) {
    .unternehmer-card {
        border-radius: 12px !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
        overflow: hidden !important;
        -webkit-border-radius: 12px !important;
        -moz-border-radius: 12px !important;
    }
    
    .unternehmer-photo {
        border-radius: 8px !important;
        -webkit-border-radius: 8px !important;
        -moz-border-radius: 8px !important;
    }
}


/* More spacing between media and title */
.unternehmer-media-slider {
    margin-bottom: 30px !important;
}

.unternehmer-modal-title {
    margin-top: 0 !important;
}

/* =====================================================
   ANPASSUNGEN FÜR SLIDER BUTTONS & ABSTÄNDE
   ===================================================== 
   
   HIER KANNST DU ANPASSEN:
   
   1. BUTTON-GRÖSSE (Desktop):
      Zeile 1797-1798: width + height (aktuell: 30px)
   
   2. BUTTON-GRÖSSE (Mobile):
      Zeile 1868-1869: width + height (aktuell: 30px)
   
   3. BUTTON-POSITION LINKS:
      Zeile 1802: left (aktuell: 10px)
      Zeile 1873: left mobile (aktuell: 5px)
   
   4. BUTTON-POSITION RECHTS:
      Zeile 1806: right (aktuell: 5px)
      Zeile 1877: right mobile (aktuell: 5px)
   
   5. BUTTON-SCHRIFTGRÖSSE:
      Zeile 1797: font-size (aktuell: 16px)
   
   6. VIDEO HÖHE (Mobile):
      Zeile 1862: min-height (aktuell: 400px)
      
   KLEINERE WERTE = näher am Rand
   GRÖSSERE WERTE = weiter vom Rand weg
   ===================================================== */

/* =====================================================
   🎬 PLAY BUTTON GRÖSSE ANPASSEN (Desktop Grid)
   ===================================================== 
   
   ZEILE 1696-1697: Play Button Kreis
   width: 60px;     ← GRÖSSE DES KREISES
   height: 60px;    ← GRÖSSE DES KREISES
   
   ZEILE 1711-1712: Play Icon (Dreieck)
   width: 30px;     ← GRÖSSE DES DREIECKS
   height: 30px;    ← GRÖSSE DES DREIECKS
   
   MOBILE (unter 768px):
   ZEILE 1739-1740: Kreis Mobile
   width: 50px;
   height: 50px;
   
   ZEILE 1744-1745: Icon Mobile
   width: 25px;
   height: 25px;
   
   BEISPIEL - KLEINER MACHEN:
   Desktop: 50px/25px
   Mobile: 40px/20px
   ===================================================== */

/* =====================================================
   DESKTOP PLAY BUTTON - FINALE OVERRIDE REGEL
   Diese kommt als LETZTE und überschreibt ALLES!
   ===================================================== */
@media (min-width: 769px) {
    .unternehmer-video-indicator {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }
    
    .unternehmer-play-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }
}
